/******/ (() => { // webpackBootstrap
/******/ 	var __webpack_modules__ = ({

/***/ "./node_modules/@fortawesome/fontawesome-svg-core/index.es.js":
/*!********************************************************************!*\
  !*** ./node_modules/@fortawesome/fontawesome-svg-core/index.es.js ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "icon": () => (/* binding */ icon),
/* harmony export */   "noAuto": () => (/* binding */ noAuto),
/* harmony export */   "config": () => (/* binding */ config),
/* harmony export */   "toHtml": () => (/* binding */ toHtml),
/* harmony export */   "layer": () => (/* binding */ layer),
/* harmony export */   "text": () => (/* binding */ text),
/* harmony export */   "counter": () => (/* binding */ counter),
/* harmony export */   "library": () => (/* binding */ library),
/* harmony export */   "dom": () => (/* binding */ dom),
/* harmony export */   "parse": () => (/* binding */ parse),
/* harmony export */   "findIconDefinition": () => (/* binding */ findIconDefinition)
/* harmony export */ });
/*!
 * Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
 */
function _typeof(obj) {
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
    _typeof = function (obj) {
      return typeof obj;
    };
  } else {
    _typeof = function (obj) {
      return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
    };
  }

  return _typeof(obj);
}

function _classCallCheck(instance, Constructor) {
  if (!(instance instanceof Constructor)) {
    throw new TypeError("Cannot call a class as a function");
  }
}

function _defineProperties(target, props) {
  for (var i = 0; i < props.length; i++) {
    var descriptor = props[i];
    descriptor.enumerable = descriptor.enumerable || false;
    descriptor.configurable = true;
    if ("value" in descriptor) descriptor.writable = true;
    Object.defineProperty(target, descriptor.key, descriptor);
  }
}

function _createClass(Constructor, protoProps, staticProps) {
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  if (staticProps) _defineProperties(Constructor, staticProps);
  return Constructor;
}

function _defineProperty(obj, key, value) {
  if (key in obj) {
    Object.defineProperty(obj, key, {
      value: value,
      enumerable: true,
      configurable: true,
      writable: true
    });
  } else {
    obj[key] = value;
  }

  return obj;
}

function _objectSpread(target) {
  for (var i = 1; i < arguments.length; i++) {
    var source = arguments[i] != null ? arguments[i] : {};
    var ownKeys = Object.keys(source);

    if (typeof Object.getOwnPropertySymbols === 'function') {
      ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
        return Object.getOwnPropertyDescriptor(source, sym).enumerable;
      }));
    }

    ownKeys.forEach(function (key) {
      _defineProperty(target, key, source[key]);
    });
  }

  return target;
}

function _slicedToArray(arr, i) {
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
}

function _toConsumableArray(arr) {
  return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
}

function _arrayWithoutHoles(arr) {
  if (Array.isArray(arr)) {
    for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];

    return arr2;
  }
}

function _arrayWithHoles(arr) {
  if (Array.isArray(arr)) return arr;
}

function _iterableToArray(iter) {
  if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
}

function _iterableToArrayLimit(arr, i) {
  var _arr = [];
  var _n = true;
  var _d = false;
  var _e = undefined;

  try {
    for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
      _arr.push(_s.value);

      if (i && _arr.length === i) break;
    }
  } catch (err) {
    _d = true;
    _e = err;
  } finally {
    try {
      if (!_n && _i["return"] != null) _i["return"]();
    } finally {
      if (_d) throw _e;
    }
  }

  return _arr;
}

function _nonIterableSpread() {
  throw new TypeError("Invalid attempt to spread non-iterable instance");
}

function _nonIterableRest() {
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
}

var noop = function noop() {};

var _WINDOW = {};
var _DOCUMENT = {};
var _MUTATION_OBSERVER = null;
var _PERFORMANCE = {
  mark: noop,
  measure: noop
};

try {
  if (typeof window !== 'undefined') _WINDOW = window;
  if (typeof document !== 'undefined') _DOCUMENT = document;
  if (typeof MutationObserver !== 'undefined') _MUTATION_OBSERVER = MutationObserver;
  if (typeof performance !== 'undefined') _PERFORMANCE = performance;
} catch (e) {}

var _ref = _WINDOW.navigator || {},
    _ref$userAgent = _ref.userAgent,
    userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;

var WINDOW = _WINDOW;
var DOCUMENT = _DOCUMENT;
var MUTATION_OBSERVER = _MUTATION_OBSERVER;
var PERFORMANCE = _PERFORMANCE;
var IS_BROWSER = !!WINDOW.document;
var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');

var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
var UNITS_IN_GRID = 16;
var DEFAULT_FAMILY_PREFIX = 'fa';
var DEFAULT_REPLACEMENT_CLASS = 'svg-inline--fa';
var DATA_FA_I2SVG = 'data-fa-i2svg';
var DATA_FA_PSEUDO_ELEMENT = 'data-fa-pseudo-element';
var DATA_FA_PSEUDO_ELEMENT_PENDING = 'data-fa-pseudo-element-pending';
var DATA_PREFIX = 'data-prefix';
var DATA_ICON = 'data-icon';
var HTML_CLASS_I2SVG_BASE_CLASS = 'fontawesome-i2svg';
var MUTATION_APPROACH_ASYNC = 'async';
var TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ['HTML', 'HEAD', 'STYLE', 'SCRIPT'];
var PRODUCTION = function () {
  try {
    return "development" === 'production';
  } catch (e) {
    return false;
  }
}();
var PREFIX_TO_STYLE = {
  'fas': 'solid',
  'far': 'regular',
  'fal': 'light',
  'fad': 'duotone',
  'fab': 'brands',
  'fak': 'kit',
  'fa': 'solid'
};
var STYLE_TO_PREFIX = {
  'solid': 'fas',
  'regular': 'far',
  'light': 'fal',
  'duotone': 'fad',
  'brands': 'fab',
  'kit': 'fak'
};
var LAYERS_TEXT_CLASSNAME = 'fa-layers-text';
var FONT_FAMILY_PATTERN = /Font Awesome ([5 ]*)(Solid|Regular|Light|Duotone|Brands|Free|Pro|Kit).*/i; // TODO: do we need to handle font-weight for kit SVG pseudo-elements?

var FONT_WEIGHT_TO_PREFIX = {
  '900': 'fas',
  '400': 'far',
  'normal': 'far',
  '300': 'fal'
};
var oneToTen = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
var oneToTwenty = oneToTen.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);
var ATTRIBUTES_WATCHED_FOR_MUTATION = ['class', 'data-prefix', 'data-icon', 'data-fa-transform', 'data-fa-mask'];
var DUOTONE_CLASSES = {
  GROUP: 'group',
  SWAP_OPACITY: 'swap-opacity',
  PRIMARY: 'primary',
  SECONDARY: 'secondary'
};
var RESERVED_CLASSES = ['xs', 'sm', 'lg', 'fw', 'ul', 'li', 'border', 'pull-left', 'pull-right', 'spin', 'pulse', 'rotate-90', 'rotate-180', 'rotate-270', 'flip-horizontal', 'flip-vertical', 'flip-both', 'stack', 'stack-1x', 'stack-2x', 'inverse', 'layers', 'layers-text', 'layers-counter', DUOTONE_CLASSES.GROUP, DUOTONE_CLASSES.SWAP_OPACITY, DUOTONE_CLASSES.PRIMARY, DUOTONE_CLASSES.SECONDARY].concat(oneToTen.map(function (n) {
  return "".concat(n, "x");
})).concat(oneToTwenty.map(function (n) {
  return "w-".concat(n);
}));

var initial = WINDOW.FontAwesomeConfig || {};

function getAttrConfig(attr) {
  var element = DOCUMENT.querySelector('script[' + attr + ']');

  if (element) {
    return element.getAttribute(attr);
  }
}

function coerce(val) {
  // Getting an empty string will occur if the attribute is set on the HTML tag but without a value
  // We'll assume that this is an indication that it should be toggled to true
  // For example <script data-search-pseudo-elements src="..."></script>
  if (val === '') return true;
  if (val === 'false') return false;
  if (val === 'true') return true;
  return val;
}

if (DOCUMENT && typeof DOCUMENT.querySelector === 'function') {
  var attrs = [['data-family-prefix', 'familyPrefix'], ['data-replacement-class', 'replacementClass'], ['data-auto-replace-svg', 'autoReplaceSvg'], ['data-auto-add-css', 'autoAddCss'], ['data-auto-a11y', 'autoA11y'], ['data-search-pseudo-elements', 'searchPseudoElements'], ['data-observe-mutations', 'observeMutations'], ['data-mutate-approach', 'mutateApproach'], ['data-keep-original-source', 'keepOriginalSource'], ['data-measure-performance', 'measurePerformance'], ['data-show-missing-icons', 'showMissingIcons']];
  attrs.forEach(function (_ref) {
    var _ref2 = _slicedToArray(_ref, 2),
        attr = _ref2[0],
        key = _ref2[1];

    var val = coerce(getAttrConfig(attr));

    if (val !== undefined && val !== null) {
      initial[key] = val;
    }
  });
}

var _default = {
  familyPrefix: DEFAULT_FAMILY_PREFIX,
  replacementClass: DEFAULT_REPLACEMENT_CLASS,
  autoReplaceSvg: true,
  autoAddCss: true,
  autoA11y: true,
  searchPseudoElements: false,
  observeMutations: true,
  mutateApproach: 'async',
  keepOriginalSource: true,
  measurePerformance: false,
  showMissingIcons: true
};

var _config = _objectSpread({}, _default, initial);

if (!_config.autoReplaceSvg) _config.observeMutations = false;

var config = _objectSpread({}, _config);

WINDOW.FontAwesomeConfig = config;

var w = WINDOW || {};
if (!w[NAMESPACE_IDENTIFIER]) w[NAMESPACE_IDENTIFIER] = {};
if (!w[NAMESPACE_IDENTIFIER].styles) w[NAMESPACE_IDENTIFIER].styles = {};
if (!w[NAMESPACE_IDENTIFIER].hooks) w[NAMESPACE_IDENTIFIER].hooks = {};
if (!w[NAMESPACE_IDENTIFIER].shims) w[NAMESPACE_IDENTIFIER].shims = [];
var namespace = w[NAMESPACE_IDENTIFIER];

var functions = [];

var listener = function listener() {
  DOCUMENT.removeEventListener('DOMContentLoaded', listener);
  loaded = 1;
  functions.map(function (fn) {
    return fn();
  });
};

var loaded = false;

if (IS_DOM) {
  loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);
  if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', listener);
}

function domready (fn) {
  if (!IS_DOM) return;
  loaded ? setTimeout(fn, 0) : functions.push(fn);
}

var PENDING = 'pending';
var SETTLED = 'settled';
var FULFILLED = 'fulfilled';
var REJECTED = 'rejected';

var NOOP = function NOOP() {};

var isNode = typeof __webpack_require__.g !== 'undefined' && typeof __webpack_require__.g.process !== 'undefined' && typeof __webpack_require__.g.process.emit === 'function';
var asyncSetTimer = typeof setImmediate === 'undefined' ? setTimeout : setImmediate;
var asyncQueue = [];
var asyncTimer;

function asyncFlush() {
  // run promise callbacks
  for (var i = 0; i < asyncQueue.length; i++) {
    asyncQueue[i][0](asyncQueue[i][1]);
  } // reset async asyncQueue


  asyncQueue = [];
  asyncTimer = false;
}

function asyncCall(callback, arg) {
  asyncQueue.push([callback, arg]);

  if (!asyncTimer) {
    asyncTimer = true;
    asyncSetTimer(asyncFlush, 0);
  }
}

function invokeResolver(resolver, promise) {
  function resolvePromise(value) {
    resolve(promise, value);
  }

  function rejectPromise(reason) {
    reject(promise, reason);
  }

  try {
    resolver(resolvePromise, rejectPromise);
  } catch (e) {
    rejectPromise(e);
  }
}

function invokeCallback(subscriber) {
  var owner = subscriber.owner;
  var settled = owner._state;
  var value = owner._data;
  var callback = subscriber[settled];
  var promise = subscriber.then;

  if (typeof callback === 'function') {
    settled = FULFILLED;

    try {
      value = callback(value);
    } catch (e) {
      reject(promise, e);
    }
  }

  if (!handleThenable(promise, value)) {
    if (settled === FULFILLED) {
      resolve(promise, value);
    }

    if (settled === REJECTED) {
      reject(promise, value);
    }
  }
}

function handleThenable(promise, value) {
  var resolved;

  try {
    if (promise === value) {
      throw new TypeError('A promises callback cannot return that same promise.');
    }

    if (value && (typeof value === 'function' || _typeof(value) === 'object')) {
      // then should be retrieved only once
      var then = value.then;

      if (typeof then === 'function') {
        then.call(value, function (val) {
          if (!resolved) {
            resolved = true;

            if (value === val) {
              fulfill(promise, val);
            } else {
              resolve(promise, val);
            }
          }
        }, function (reason) {
          if (!resolved) {
            resolved = true;
            reject(promise, reason);
          }
        });
        return true;
      }
    }
  } catch (e) {
    if (!resolved) {
      reject(promise, e);
    }

    return true;
  }

  return false;
}

function resolve(promise, value) {
  if (promise === value || !handleThenable(promise, value)) {
    fulfill(promise, value);
  }
}

function fulfill(promise, value) {
  if (promise._state === PENDING) {
    promise._state = SETTLED;
    promise._data = value;
    asyncCall(publishFulfillment, promise);
  }
}

function reject(promise, reason) {
  if (promise._state === PENDING) {
    promise._state = SETTLED;
    promise._data = reason;
    asyncCall(publishRejection, promise);
  }
}

function publish(promise) {
  promise._then = promise._then.forEach(invokeCallback);
}

function publishFulfillment(promise) {
  promise._state = FULFILLED;
  publish(promise);
}

function publishRejection(promise) {
  promise._state = REJECTED;
  publish(promise);

  if (!promise._handled && isNode) {
    __webpack_require__.g.process.emit('unhandledRejection', promise._data, promise);
  }
}

function notifyRejectionHandled(promise) {
  __webpack_require__.g.process.emit('rejectionHandled', promise);
}
/**
 * @class
 */


function P(resolver) {
  if (typeof resolver !== 'function') {
    throw new TypeError('Promise resolver ' + resolver + ' is not a function');
  }

  if (this instanceof P === false) {
    throw new TypeError('Failed to construct \'Promise\': Please use the \'new\' operator, this object constructor cannot be called as a function.');
  }

  this._then = [];
  invokeResolver(resolver, this);
}

P.prototype = {
  constructor: P,
  _state: PENDING,
  _then: null,
  _data: undefined,
  _handled: false,
  then: function then(onFulfillment, onRejection) {
    var subscriber = {
      owner: this,
      then: new this.constructor(NOOP),
      fulfilled: onFulfillment,
      rejected: onRejection
    };

    if ((onRejection || onFulfillment) && !this._handled) {
      this._handled = true;

      if (this._state === REJECTED && isNode) {
        asyncCall(notifyRejectionHandled, this);
      }
    }

    if (this._state === FULFILLED || this._state === REJECTED) {
      // already resolved, call callback async
      asyncCall(invokeCallback, subscriber);
    } else {
      // subscribe
      this._then.push(subscriber);
    }

    return subscriber.then;
  },
  catch: function _catch(onRejection) {
    return this.then(null, onRejection);
  }
};

P.all = function (promises) {
  if (!Array.isArray(promises)) {
    throw new TypeError('You must pass an array to Promise.all().');
  }

  return new P(function (resolve, reject) {
    var results = [];
    var remaining = 0;

    function resolver(index) {
      remaining++;
      return function (value) {
        results[index] = value;

        if (! --remaining) {
          resolve(results);
        }
      };
    }

    for (var i = 0, promise; i < promises.length; i++) {
      promise = promises[i];

      if (promise && typeof promise.then === 'function') {
        promise.then(resolver(i), reject);
      } else {
        results[i] = promise;
      }
    }

    if (!remaining) {
      resolve(results);
    }
  });
};

P.race = function (promises) {
  if (!Array.isArray(promises)) {
    throw new TypeError('You must pass an array to Promise.race().');
  }

  return new P(function (resolve, reject) {
    for (var i = 0, promise; i < promises.length; i++) {
      promise = promises[i];

      if (promise && typeof promise.then === 'function') {
        promise.then(resolve, reject);
      } else {
        resolve(promise);
      }
    }
  });
};

P.resolve = function (value) {
  if (value && _typeof(value) === 'object' && value.constructor === P) {
    return value;
  }

  return new P(function (resolve) {
    resolve(value);
  });
};

P.reject = function (reason) {
  return new P(function (resolve, reject) {
    reject(reason);
  });
};

var picked = typeof Promise === 'function' ? Promise : P;

var d = UNITS_IN_GRID;
var meaninglessTransform = {
  size: 16,
  x: 0,
  y: 0,
  rotate: 0,
  flipX: false,
  flipY: false
};

function isReserved(name) {
  return ~RESERVED_CLASSES.indexOf(name);
}
function insertCss(css) {
  if (!css || !IS_DOM) {
    return;
  }

  var style = DOCUMENT.createElement('style');
  style.setAttribute('type', 'text/css');
  style.innerHTML = css;
  var headChildren = DOCUMENT.head.childNodes;
  var beforeChild = null;

  for (var i = headChildren.length - 1; i > -1; i--) {
    var child = headChildren[i];
    var tagName = (child.tagName || '').toUpperCase();

    if (['STYLE', 'LINK'].indexOf(tagName) > -1) {
      beforeChild = child;
    }
  }

  DOCUMENT.head.insertBefore(style, beforeChild);
  return css;
}
var idPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
function nextUniqueId() {
  var size = 12;
  var id = '';

  while (size-- > 0) {
    id += idPool[Math.random() * 62 | 0];
  }

  return id;
}
function toArray(obj) {
  var array = [];

  for (var i = (obj || []).length >>> 0; i--;) {
    array[i] = obj[i];
  }

  return array;
}
function classArray(node) {
  if (node.classList) {
    return toArray(node.classList);
  } else {
    return (node.getAttribute('class') || '').split(' ').filter(function (i) {
      return i;
    });
  }
}
function getIconName(familyPrefix, cls) {
  var parts = cls.split('-');
  var prefix = parts[0];
  var iconName = parts.slice(1).join('-');

  if (prefix === familyPrefix && iconName !== '' && !isReserved(iconName)) {
    return iconName;
  } else {
    return null;
  }
}
function htmlEscape(str) {
  return "".concat(str).replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#39;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
}
function joinAttributes(attributes) {
  return Object.keys(attributes || {}).reduce(function (acc, attributeName) {
    return acc + "".concat(attributeName, "=\"").concat(htmlEscape(attributes[attributeName]), "\" ");
  }, '').trim();
}
function joinStyles(styles) {
  return Object.keys(styles || {}).reduce(function (acc, styleName) {
    return acc + "".concat(styleName, ": ").concat(styles[styleName], ";");
  }, '');
}
function transformIsMeaningful(transform) {
  return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;
}
function transformForSvg(_ref) {
  var transform = _ref.transform,
      containerWidth = _ref.containerWidth,
      iconWidth = _ref.iconWidth;
  var outer = {
    transform: "translate(".concat(containerWidth / 2, " 256)")
  };
  var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
  var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
  var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
  var inner = {
    transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
  };
  var path = {
    transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
  };
  return {
    outer: outer,
    inner: inner,
    path: path
  };
}
function transformForCss(_ref2) {
  var transform = _ref2.transform,
      _ref2$width = _ref2.width,
      width = _ref2$width === void 0 ? UNITS_IN_GRID : _ref2$width,
      _ref2$height = _ref2.height,
      height = _ref2$height === void 0 ? UNITS_IN_GRID : _ref2$height,
      _ref2$startCentered = _ref2.startCentered,
      startCentered = _ref2$startCentered === void 0 ? false : _ref2$startCentered;
  var val = '';

  if (startCentered && IS_IE) {
    val += "translate(".concat(transform.x / d - width / 2, "em, ").concat(transform.y / d - height / 2, "em) ");
  } else if (startCentered) {
    val += "translate(calc(-50% + ".concat(transform.x / d, "em), calc(-50% + ").concat(transform.y / d, "em)) ");
  } else {
    val += "translate(".concat(transform.x / d, "em, ").concat(transform.y / d, "em) ");
  }

  val += "scale(".concat(transform.size / d * (transform.flipX ? -1 : 1), ", ").concat(transform.size / d * (transform.flipY ? -1 : 1), ") ");
  val += "rotate(".concat(transform.rotate, "deg) ");
  return val;
}

var ALL_SPACE = {
  x: 0,
  y: 0,
  width: '100%',
  height: '100%'
};

function fillBlack(abstract) {
  var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;

  if (abstract.attributes && (abstract.attributes.fill || force)) {
    abstract.attributes.fill = 'black';
  }

  return abstract;
}

function deGroup(abstract) {
  if (abstract.tag === 'g') {
    return abstract.children;
  } else {
    return [abstract];
  }
}

function makeIconMasking (_ref) {
  var children = _ref.children,
      attributes = _ref.attributes,
      main = _ref.main,
      mask = _ref.mask,
      explicitMaskId = _ref.maskId,
      transform = _ref.transform;
  var mainWidth = main.width,
      mainPath = main.icon;
  var maskWidth = mask.width,
      maskPath = mask.icon;
  var trans = transformForSvg({
    transform: transform,
    containerWidth: maskWidth,
    iconWidth: mainWidth
  });
  var maskRect = {
    tag: 'rect',
    attributes: _objectSpread({}, ALL_SPACE, {
      fill: 'white'
    })
  };
  var maskInnerGroupChildrenMixin = mainPath.children ? {
    children: mainPath.children.map(fillBlack)
  } : {};
  var maskInnerGroup = {
    tag: 'g',
    attributes: _objectSpread({}, trans.inner),
    children: [fillBlack(_objectSpread({
      tag: mainPath.tag,
      attributes: _objectSpread({}, mainPath.attributes, trans.path)
    }, maskInnerGroupChildrenMixin))]
  };
  var maskOuterGroup = {
    tag: 'g',
    attributes: _objectSpread({}, trans.outer),
    children: [maskInnerGroup]
  };
  var maskId = "mask-".concat(explicitMaskId || nextUniqueId());
  var clipId = "clip-".concat(explicitMaskId || nextUniqueId());
  var maskTag = {
    tag: 'mask',
    attributes: _objectSpread({}, ALL_SPACE, {
      id: maskId,
      maskUnits: 'userSpaceOnUse',
      maskContentUnits: 'userSpaceOnUse'
    }),
    children: [maskRect, maskOuterGroup]
  };
  var defs = {
    tag: 'defs',
    children: [{
      tag: 'clipPath',
      attributes: {
        id: clipId
      },
      children: deGroup(maskPath)
    }, maskTag]
  };
  children.push(defs, {
    tag: 'rect',
    attributes: _objectSpread({
      fill: 'currentColor',
      'clip-path': "url(#".concat(clipId, ")"),
      mask: "url(#".concat(maskId, ")")
    }, ALL_SPACE)
  });
  return {
    children: children,
    attributes: attributes
  };
}

function makeIconStandard (_ref) {
  var children = _ref.children,
      attributes = _ref.attributes,
      main = _ref.main,
      transform = _ref.transform,
      styles = _ref.styles;
  var styleString = joinStyles(styles);

  if (styleString.length > 0) {
    attributes['style'] = styleString;
  }

  if (transformIsMeaningful(transform)) {
    var trans = transformForSvg({
      transform: transform,
      containerWidth: main.width,
      iconWidth: main.width
    });
    children.push({
      tag: 'g',
      attributes: _objectSpread({}, trans.outer),
      children: [{
        tag: 'g',
        attributes: _objectSpread({}, trans.inner),
        children: [{
          tag: main.icon.tag,
          children: main.icon.children,
          attributes: _objectSpread({}, main.icon.attributes, trans.path)
        }]
      }]
    });
  } else {
    children.push(main.icon);
  }

  return {
    children: children,
    attributes: attributes
  };
}

function asIcon (_ref) {
  var children = _ref.children,
      main = _ref.main,
      mask = _ref.mask,
      attributes = _ref.attributes,
      styles = _ref.styles,
      transform = _ref.transform;

  if (transformIsMeaningful(transform) && main.found && !mask.found) {
    var width = main.width,
        height = main.height;
    var offset = {
      x: width / height / 2,
      y: 0.5
    };
    attributes['style'] = joinStyles(_objectSpread({}, styles, {
      'transform-origin': "".concat(offset.x + transform.x / 16, "em ").concat(offset.y + transform.y / 16, "em")
    }));
  }

  return [{
    tag: 'svg',
    attributes: attributes,
    children: children
  }];
}

function asSymbol (_ref) {
  var prefix = _ref.prefix,
      iconName = _ref.iconName,
      children = _ref.children,
      attributes = _ref.attributes,
      symbol = _ref.symbol;
  var id = symbol === true ? "".concat(prefix, "-").concat(config.familyPrefix, "-").concat(iconName) : symbol;
  return [{
    tag: 'svg',
    attributes: {
      style: 'display: none;'
    },
    children: [{
      tag: 'symbol',
      attributes: _objectSpread({}, attributes, {
        id: id
      }),
      children: children
    }]
  }];
}

function makeInlineSvgAbstract(params) {
  var _params$icons = params.icons,
      main = _params$icons.main,
      mask = _params$icons.mask,
      prefix = params.prefix,
      iconName = params.iconName,
      transform = params.transform,
      symbol = params.symbol,
      title = params.title,
      maskId = params.maskId,
      titleId = params.titleId,
      extra = params.extra,
      _params$watchable = params.watchable,
      watchable = _params$watchable === void 0 ? false : _params$watchable;

  var _ref = mask.found ? mask : main,
      width = _ref.width,
      height = _ref.height;

  var isUploadedIcon = prefix === 'fak';
  var widthClass = isUploadedIcon ? '' : "fa-w-".concat(Math.ceil(width / height * 16));
  var attrClass = [config.replacementClass, iconName ? "".concat(config.familyPrefix, "-").concat(iconName) : '', widthClass].filter(function (c) {
    return extra.classes.indexOf(c) === -1;
  }).filter(function (c) {
    return c !== '' || !!c;
  }).concat(extra.classes).join(' ');
  var content = {
    children: [],
    attributes: _objectSpread({}, extra.attributes, {
      'data-prefix': prefix,
      'data-icon': iconName,
      'class': attrClass,
      'role': extra.attributes.role || 'img',
      'xmlns': 'http://www.w3.org/2000/svg',
      'viewBox': "0 0 ".concat(width, " ").concat(height)
    })
  };
  var uploadedIconWidthStyle = isUploadedIcon && !~extra.classes.indexOf('fa-fw') ? {
    width: "".concat(width / height * 16 * 0.0625, "em")
  } : {};

  if (watchable) {
    content.attributes[DATA_FA_I2SVG] = '';
  }

  if (title) content.children.push({
    tag: 'title',
    attributes: {
      id: content.attributes['aria-labelledby'] || "title-".concat(titleId || nextUniqueId())
    },
    children: [title]
  });

  var args = _objectSpread({}, content, {
    prefix: prefix,
    iconName: iconName,
    main: main,
    mask: mask,
    maskId: maskId,
    transform: transform,
    symbol: symbol,
    styles: _objectSpread({}, uploadedIconWidthStyle, extra.styles)
  });

  var _ref2 = mask.found && main.found ? makeIconMasking(args) : makeIconStandard(args),
      children = _ref2.children,
      attributes = _ref2.attributes;

  args.children = children;
  args.attributes = attributes;

  if (symbol) {
    return asSymbol(args);
  } else {
    return asIcon(args);
  }
}
function makeLayersTextAbstract(params) {
  var content = params.content,
      width = params.width,
      height = params.height,
      transform = params.transform,
      title = params.title,
      extra = params.extra,
      _params$watchable2 = params.watchable,
      watchable = _params$watchable2 === void 0 ? false : _params$watchable2;

  var attributes = _objectSpread({}, extra.attributes, title ? {
    'title': title
  } : {}, {
    'class': extra.classes.join(' ')
  });

  if (watchable) {
    attributes[DATA_FA_I2SVG] = '';
  }

  var styles = _objectSpread({}, extra.styles);

  if (transformIsMeaningful(transform)) {
    styles['transform'] = transformForCss({
      transform: transform,
      startCentered: true,
      width: width,
      height: height
    });
    styles['-webkit-transform'] = styles['transform'];
  }

  var styleString = joinStyles(styles);

  if (styleString.length > 0) {
    attributes['style'] = styleString;
  }

  var val = [];
  val.push({
    tag: 'span',
    attributes: attributes,
    children: [content]
  });

  if (title) {
    val.push({
      tag: 'span',
      attributes: {
        class: 'sr-only'
      },
      children: [title]
    });
  }

  return val;
}
function makeLayersCounterAbstract(params) {
  var content = params.content,
      title = params.title,
      extra = params.extra;

  var attributes = _objectSpread({}, extra.attributes, title ? {
    'title': title
  } : {}, {
    'class': extra.classes.join(' ')
  });

  var styleString = joinStyles(extra.styles);

  if (styleString.length > 0) {
    attributes['style'] = styleString;
  }

  var val = [];
  val.push({
    tag: 'span',
    attributes: attributes,
    children: [content]
  });

  if (title) {
    val.push({
      tag: 'span',
      attributes: {
        class: 'sr-only'
      },
      children: [title]
    });
  }

  return val;
}

var noop$1 = function noop() {};

var p = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {
  mark: noop$1,
  measure: noop$1
};
var preamble = "FA \"5.15.4\"";

var begin = function begin(name) {
  p.mark("".concat(preamble, " ").concat(name, " begins"));
  return function () {
    return end(name);
  };
};

var end = function end(name) {
  p.mark("".concat(preamble, " ").concat(name, " ends"));
  p.measure("".concat(preamble, " ").concat(name), "".concat(preamble, " ").concat(name, " begins"), "".concat(preamble, " ").concat(name, " ends"));
};

var perf = {
  begin: begin,
  end: end
};

/**
 * Internal helper to bind a function known to have 4 arguments
 * to a given context.
 */

var bindInternal4 = function bindInternal4(func, thisContext) {
  return function (a, b, c, d) {
    return func.call(thisContext, a, b, c, d);
  };
};

/**
 * # Reduce
 *
 * A fast object `.reduce()` implementation.
 *
 * @param  {Object}   subject      The object to reduce over.
 * @param  {Function} fn           The reducer function.
 * @param  {mixed}    initialValue The initial value for the reducer, defaults to subject[0].
 * @param  {Object}   thisContext  The context for the reducer.
 * @return {mixed}                 The final result.
 */


var reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {
  var keys = Object.keys(subject),
      length = keys.length,
      iterator = thisContext !== undefined ? bindInternal4(fn, thisContext) : fn,
      i,
      key,
      result;

  if (initialValue === undefined) {
    i = 1;
    result = subject[keys[0]];
  } else {
    i = 0;
    result = initialValue;
  }

  for (; i < length; i++) {
    key = keys[i];
    result = iterator(result, subject[key], key, subject);
  }

  return result;
};

function toHex(unicode) {
  var result = '';

  for (var i = 0; i < unicode.length; i++) {
    var hex = unicode.charCodeAt(i).toString(16);
    result += ('000' + hex).slice(-4);
  }

  return result;
}

function defineIcons(prefix, icons) {
  var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  var _params$skipHooks = params.skipHooks,
      skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
  var normalized = Object.keys(icons).reduce(function (acc, iconName) {
    var icon = icons[iconName];
    var expanded = !!icon.icon;

    if (expanded) {
      acc[icon.iconName] = icon.icon;
    } else {
      acc[iconName] = icon;
    }

    return acc;
  }, {});

  if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {
    namespace.hooks.addPack(prefix, normalized);
  } else {
    namespace.styles[prefix] = _objectSpread({}, namespace.styles[prefix] || {}, normalized);
  }
  /**
   * Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
   * of new styles we needed to differentiate between them. Prefix `fa` is now an alias
   * for `fas` so we'll easy the upgrade process for our users by automatically defining
   * this as well.
   */


  if (prefix === 'fas') {
    defineIcons('fa', icons);
  }
}

var styles = namespace.styles,
    shims = namespace.shims;
var _byUnicode = {};
var _byLigature = {};
var _byOldName = {};
var build = function build() {
  var lookup = function lookup(reducer) {
    return reduce(styles, function (o, style, prefix) {
      o[prefix] = reduce(style, reducer, {});
      return o;
    }, {});
  };

  _byUnicode = lookup(function (acc, icon, iconName) {
    if (icon[3]) {
      acc[icon[3]] = iconName;
    }

    return acc;
  });
  _byLigature = lookup(function (acc, icon, iconName) {
    var ligatures = icon[2];
    acc[iconName] = iconName;
    ligatures.forEach(function (ligature) {
      acc[ligature] = iconName;
    });
    return acc;
  });
  var hasRegular = 'far' in styles;
  _byOldName = reduce(shims, function (acc, shim) {
    var oldName = shim[0];
    var prefix = shim[1];
    var iconName = shim[2];

    if (prefix === 'far' && !hasRegular) {
      prefix = 'fas';
    }

    acc[oldName] = {
      prefix: prefix,
      iconName: iconName
    };
    return acc;
  }, {});
};
build();
function byUnicode(prefix, unicode) {
  return (_byUnicode[prefix] || {})[unicode];
}
function byLigature(prefix, ligature) {
  return (_byLigature[prefix] || {})[ligature];
}
function byOldName(name) {
  return _byOldName[name] || {
    prefix: null,
    iconName: null
  };
}

var styles$1 = namespace.styles;
var emptyCanonicalIcon = function emptyCanonicalIcon() {
  return {
    prefix: null,
    iconName: null,
    rest: []
  };
};
function getCanonicalIcon(values) {
  return values.reduce(function (acc, cls) {
    var iconName = getIconName(config.familyPrefix, cls);

    if (styles$1[cls]) {
      acc.prefix = cls;
    } else if (config.autoFetchSvg && Object.keys(PREFIX_TO_STYLE).indexOf(cls) > -1) {
      acc.prefix = cls;
    } else if (iconName) {
      var shim = acc.prefix === 'fa' ? byOldName(iconName) : {};
      acc.iconName = shim.iconName || iconName;
      acc.prefix = shim.prefix || acc.prefix;
    } else if (cls !== config.replacementClass && cls.indexOf('fa-w-') !== 0) {
      acc.rest.push(cls);
    }

    return acc;
  }, emptyCanonicalIcon());
}
function iconFromMapping(mapping, prefix, iconName) {
  if (mapping && mapping[prefix] && mapping[prefix][iconName]) {
    return {
      prefix: prefix,
      iconName: iconName,
      icon: mapping[prefix][iconName]
    };
  }
}

function toHtml(abstractNodes) {
  var tag = abstractNodes.tag,
      _abstractNodes$attrib = abstractNodes.attributes,
      attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib,
      _abstractNodes$childr = abstractNodes.children,
      children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;

  if (typeof abstractNodes === 'string') {
    return htmlEscape(abstractNodes);
  } else {
    return "<".concat(tag, " ").concat(joinAttributes(attributes), ">").concat(children.map(toHtml).join(''), "</").concat(tag, ">");
  }
}

var noop$2 = function noop() {};

function isWatched(node) {
  var i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;
  return typeof i2svg === 'string';
}

function getMutator() {
  if (config.autoReplaceSvg === true) {
    return mutators.replace;
  }

  var mutator = mutators[config.autoReplaceSvg];
  return mutator || mutators.replace;
}

var mutators = {
  replace: function replace(mutation) {
    var node = mutation[0];
    var abstract = mutation[1];
    var newOuterHTML = abstract.map(function (a) {
      return toHtml(a);
    }).join('\n');

    if (node.parentNode && node.outerHTML) {
      node.outerHTML = newOuterHTML + (config.keepOriginalSource && node.tagName.toLowerCase() !== 'svg' ? "<!-- ".concat(node.outerHTML, " Font Awesome fontawesome.com -->") : '');
    } else if (node.parentNode) {
      var newNode = document.createElement('span');
      node.parentNode.replaceChild(newNode, node);
      newNode.outerHTML = newOuterHTML;
    }
  },
  nest: function nest(mutation) {
    var node = mutation[0];
    var abstract = mutation[1]; // If we already have a replaced node we do not want to continue nesting within it.
    // Short-circuit to the standard replacement

    if (~classArray(node).indexOf(config.replacementClass)) {
      return mutators.replace(mutation);
    }

    var forSvg = new RegExp("".concat(config.familyPrefix, "-.*"));
    delete abstract[0].attributes.style;
    delete abstract[0].attributes.id;
    var splitClasses = abstract[0].attributes.class.split(' ').reduce(function (acc, cls) {
      if (cls === config.replacementClass || cls.match(forSvg)) {
        acc.toSvg.push(cls);
      } else {
        acc.toNode.push(cls);
      }

      return acc;
    }, {
      toNode: [],
      toSvg: []
    });
    abstract[0].attributes.class = splitClasses.toSvg.join(' ');
    var newInnerHTML = abstract.map(function (a) {
      return toHtml(a);
    }).join('\n');
    node.setAttribute('class', splitClasses.toNode.join(' '));
    node.setAttribute(DATA_FA_I2SVG, '');
    node.innerHTML = newInnerHTML;
  }
};

function performOperationSync(op) {
  op();
}

function perform(mutations, callback) {
  var callbackFunction = typeof callback === 'function' ? callback : noop$2;

  if (mutations.length === 0) {
    callbackFunction();
  } else {
    var frame = performOperationSync;

    if (config.mutateApproach === MUTATION_APPROACH_ASYNC) {
      frame = WINDOW.requestAnimationFrame || performOperationSync;
    }

    frame(function () {
      var mutator = getMutator();
      var mark = perf.begin('mutate');
      mutations.map(mutator);
      mark();
      callbackFunction();
    });
  }
}
var disabled = false;
function disableObservation() {
  disabled = true;
}
function enableObservation() {
  disabled = false;
}
var mo = null;
function observe(options) {
  if (!MUTATION_OBSERVER) {
    return;
  }

  if (!config.observeMutations) {
    return;
  }

  var treeCallback = options.treeCallback,
      nodeCallback = options.nodeCallback,
      pseudoElementsCallback = options.pseudoElementsCallback,
      _options$observeMutat = options.observeMutationsRoot,
      observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT : _options$observeMutat;
  mo = new MUTATION_OBSERVER(function (objects) {
    if (disabled) return;
    toArray(objects).forEach(function (mutationRecord) {
      if (mutationRecord.type === 'childList' && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {
        if (config.searchPseudoElements) {
          pseudoElementsCallback(mutationRecord.target);
        }

        treeCallback(mutationRecord.target);
      }

      if (mutationRecord.type === 'attributes' && mutationRecord.target.parentNode && config.searchPseudoElements) {
        pseudoElementsCallback(mutationRecord.target.parentNode);
      }

      if (mutationRecord.type === 'attributes' && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {
        if (mutationRecord.attributeName === 'class') {
          var _getCanonicalIcon = getCanonicalIcon(classArray(mutationRecord.target)),
              prefix = _getCanonicalIcon.prefix,
              iconName = _getCanonicalIcon.iconName;

          if (prefix) mutationRecord.target.setAttribute('data-prefix', prefix);
          if (iconName) mutationRecord.target.setAttribute('data-icon', iconName);
        } else {
          nodeCallback(mutationRecord.target);
        }
      }
    });
  });
  if (!IS_DOM) return;
  mo.observe(observeMutationsRoot, {
    childList: true,
    attributes: true,
    characterData: true,
    subtree: true
  });
}
function disconnect() {
  if (!mo) return;
  mo.disconnect();
}

function styleParser (node) {
  var style = node.getAttribute('style');
  var val = [];

  if (style) {
    val = style.split(';').reduce(function (acc, style) {
      var styles = style.split(':');
      var prop = styles[0];
      var value = styles.slice(1);

      if (prop && value.length > 0) {
        acc[prop] = value.join(':').trim();
      }

      return acc;
    }, {});
  }

  return val;
}

function classParser (node) {
  var existingPrefix = node.getAttribute('data-prefix');
  var existingIconName = node.getAttribute('data-icon');
  var innerText = node.innerText !== undefined ? node.innerText.trim() : '';
  var val = getCanonicalIcon(classArray(node));

  if (existingPrefix && existingIconName) {
    val.prefix = existingPrefix;
    val.iconName = existingIconName;
  }

  if (val.prefix && innerText.length > 1) {
    val.iconName = byLigature(val.prefix, node.innerText);
  } else if (val.prefix && innerText.length === 1) {
    val.iconName = byUnicode(val.prefix, toHex(node.innerText));
  }

  return val;
}

var parseTransformString = function parseTransformString(transformString) {
  var transform = {
    size: 16,
    x: 0,
    y: 0,
    flipX: false,
    flipY: false,
    rotate: 0
  };

  if (!transformString) {
    return transform;
  } else {
    return transformString.toLowerCase().split(' ').reduce(function (acc, n) {
      var parts = n.toLowerCase().split('-');
      var first = parts[0];
      var rest = parts.slice(1).join('-');

      if (first && rest === 'h') {
        acc.flipX = true;
        return acc;
      }

      if (first && rest === 'v') {
        acc.flipY = true;
        return acc;
      }

      rest = parseFloat(rest);

      if (isNaN(rest)) {
        return acc;
      }

      switch (first) {
        case 'grow':
          acc.size = acc.size + rest;
          break;

        case 'shrink':
          acc.size = acc.size - rest;
          break;

        case 'left':
          acc.x = acc.x - rest;
          break;

        case 'right':
          acc.x = acc.x + rest;
          break;

        case 'up':
          acc.y = acc.y - rest;
          break;

        case 'down':
          acc.y = acc.y + rest;
          break;

        case 'rotate':
          acc.rotate = acc.rotate + rest;
          break;
      }

      return acc;
    }, transform);
  }
};
function transformParser (node) {
  return parseTransformString(node.getAttribute('data-fa-transform'));
}

function symbolParser (node) {
  var symbol = node.getAttribute('data-fa-symbol');
  return symbol === null ? false : symbol === '' ? true : symbol;
}

function attributesParser (node) {
  var extraAttributes = toArray(node.attributes).reduce(function (acc, attr) {
    if (acc.name !== 'class' && acc.name !== 'style') {
      acc[attr.name] = attr.value;
    }

    return acc;
  }, {});
  var title = node.getAttribute('title');
  var titleId = node.getAttribute('data-fa-title-id');

  if (config.autoA11y) {
    if (title) {
      extraAttributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(titleId || nextUniqueId());
    } else {
      extraAttributes['aria-hidden'] = 'true';
      extraAttributes['focusable'] = 'false';
    }
  }

  return extraAttributes;
}

function maskParser (node) {
  var mask = node.getAttribute('data-fa-mask');

  if (!mask) {
    return emptyCanonicalIcon();
  } else {
    return getCanonicalIcon(mask.split(' ').map(function (i) {
      return i.trim();
    }));
  }
}

function blankMeta() {
  return {
    iconName: null,
    title: null,
    titleId: null,
    prefix: null,
    transform: meaninglessTransform,
    symbol: false,
    mask: null,
    maskId: null,
    extra: {
      classes: [],
      styles: {},
      attributes: {}
    }
  };
}
function parseMeta(node) {
  var _classParser = classParser(node),
      iconName = _classParser.iconName,
      prefix = _classParser.prefix,
      extraClasses = _classParser.rest;

  var extraStyles = styleParser(node);
  var transform = transformParser(node);
  var symbol = symbolParser(node);
  var extraAttributes = attributesParser(node);
  var mask = maskParser(node);
  return {
    iconName: iconName,
    title: node.getAttribute('title'),
    titleId: node.getAttribute('data-fa-title-id'),
    prefix: prefix,
    transform: transform,
    symbol: symbol,
    mask: mask,
    maskId: node.getAttribute('data-fa-mask-id'),
    extra: {
      classes: extraClasses,
      styles: extraStyles,
      attributes: extraAttributes
    }
  };
}

function MissingIcon(error) {
  this.name = 'MissingIcon';
  this.message = error || 'Icon unavailable';
  this.stack = new Error().stack;
}
MissingIcon.prototype = Object.create(Error.prototype);
MissingIcon.prototype.constructor = MissingIcon;

var FILL = {
  fill: 'currentColor'
};
var ANIMATION_BASE = {
  attributeType: 'XML',
  repeatCount: 'indefinite',
  dur: '2s'
};
var RING = {
  tag: 'path',
  attributes: _objectSpread({}, FILL, {
    d: 'M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z'
  })
};

var OPACITY_ANIMATE = _objectSpread({}, ANIMATION_BASE, {
  attributeName: 'opacity'
});

var DOT = {
  tag: 'circle',
  attributes: _objectSpread({}, FILL, {
    cx: '256',
    cy: '364',
    r: '28'
  }),
  children: [{
    tag: 'animate',
    attributes: _objectSpread({}, ANIMATION_BASE, {
      attributeName: 'r',
      values: '28;14;28;28;14;28;'
    })
  }, {
    tag: 'animate',
    attributes: _objectSpread({}, OPACITY_ANIMATE, {
      values: '1;0;1;1;0;1;'
    })
  }]
};
var QUESTION = {
  tag: 'path',
  attributes: _objectSpread({}, FILL, {
    opacity: '1',
    d: 'M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z'
  }),
  children: [{
    tag: 'animate',
    attributes: _objectSpread({}, OPACITY_ANIMATE, {
      values: '1;0;0;0;0;1;'
    })
  }]
};
var EXCLAMATION = {
  tag: 'path',
  attributes: _objectSpread({}, FILL, {
    opacity: '0',
    d: 'M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z'
  }),
  children: [{
    tag: 'animate',
    attributes: _objectSpread({}, OPACITY_ANIMATE, {
      values: '0;0;1;1;0;0;'
    })
  }]
};
var missing = {
  tag: 'g',
  children: [RING, DOT, QUESTION, EXCLAMATION]
};

var styles$2 = namespace.styles;
function asFoundIcon(icon) {
  var width = icon[0];
  var height = icon[1];

  var _icon$slice = icon.slice(4),
      _icon$slice2 = _slicedToArray(_icon$slice, 1),
      vectorData = _icon$slice2[0];

  var element = null;

  if (Array.isArray(vectorData)) {
    element = {
      tag: 'g',
      attributes: {
        class: "".concat(config.familyPrefix, "-").concat(DUOTONE_CLASSES.GROUP)
      },
      children: [{
        tag: 'path',
        attributes: {
          class: "".concat(config.familyPrefix, "-").concat(DUOTONE_CLASSES.SECONDARY),
          fill: 'currentColor',
          d: vectorData[0]
        }
      }, {
        tag: 'path',
        attributes: {
          class: "".concat(config.familyPrefix, "-").concat(DUOTONE_CLASSES.PRIMARY),
          fill: 'currentColor',
          d: vectorData[1]
        }
      }]
    };
  } else {
    element = {
      tag: 'path',
      attributes: {
        fill: 'currentColor',
        d: vectorData
      }
    };
  }

  return {
    found: true,
    width: width,
    height: height,
    icon: element
  };
}
function findIcon(iconName, prefix) {
  return new picked(function (resolve, reject) {
    var val = {
      found: false,
      width: 512,
      height: 512,
      icon: missing
    };

    if (iconName && prefix && styles$2[prefix] && styles$2[prefix][iconName]) {
      var icon = styles$2[prefix][iconName];
      return resolve(asFoundIcon(icon));
    }

    if (iconName && prefix && !config.showMissingIcons) {
      reject(new MissingIcon("Icon is missing for prefix ".concat(prefix, " with icon name ").concat(iconName)));
    } else {
      resolve(val);
    }
  });
}

var styles$3 = namespace.styles;

function generateSvgReplacementMutation(node, nodeMeta) {
  var iconName = nodeMeta.iconName,
      title = nodeMeta.title,
      titleId = nodeMeta.titleId,
      prefix = nodeMeta.prefix,
      transform = nodeMeta.transform,
      symbol = nodeMeta.symbol,
      mask = nodeMeta.mask,
      maskId = nodeMeta.maskId,
      extra = nodeMeta.extra;
  return new picked(function (resolve, reject) {
    picked.all([findIcon(iconName, prefix), findIcon(mask.iconName, mask.prefix)]).then(function (_ref) {
      var _ref2 = _slicedToArray(_ref, 2),
          main = _ref2[0],
          mask = _ref2[1];

      resolve([node, makeInlineSvgAbstract({
        icons: {
          main: main,
          mask: mask
        },
        prefix: prefix,
        iconName: iconName,
        transform: transform,
        symbol: symbol,
        mask: mask,
        maskId: maskId,
        title: title,
        titleId: titleId,
        extra: extra,
        watchable: true
      })]);
    });
  });
}

function generateLayersText(node, nodeMeta) {
  var title = nodeMeta.title,
      transform = nodeMeta.transform,
      extra = nodeMeta.extra;
  var width = null;
  var height = null;

  if (IS_IE) {
    var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);
    var boundingClientRect = node.getBoundingClientRect();
    width = boundingClientRect.width / computedFontSize;
    height = boundingClientRect.height / computedFontSize;
  }

  if (config.autoA11y && !title) {
    extra.attributes['aria-hidden'] = 'true';
  }

  return picked.resolve([node, makeLayersTextAbstract({
    content: node.innerHTML,
    width: width,
    height: height,
    transform: transform,
    title: title,
    extra: extra,
    watchable: true
  })]);
}

function generateMutation(node) {
  var nodeMeta = parseMeta(node);

  if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) {
    return generateLayersText(node, nodeMeta);
  } else {
    return generateSvgReplacementMutation(node, nodeMeta);
  }
}

function onTree(root) {
  var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  if (!IS_DOM) return;
  var htmlClassList = DOCUMENT.documentElement.classList;

  var hclAdd = function hclAdd(suffix) {
    return htmlClassList.add("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
  };

  var hclRemove = function hclRemove(suffix) {
    return htmlClassList.remove("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
  };

  var prefixes = config.autoFetchSvg ? Object.keys(PREFIX_TO_STYLE) : Object.keys(styles$3);
  var prefixesDomQuery = [".".concat(LAYERS_TEXT_CLASSNAME, ":not([").concat(DATA_FA_I2SVG, "])")].concat(prefixes.map(function (p) {
    return ".".concat(p, ":not([").concat(DATA_FA_I2SVG, "])");
  })).join(', ');

  if (prefixesDomQuery.length === 0) {
    return;
  }

  var candidates = [];

  try {
    candidates = toArray(root.querySelectorAll(prefixesDomQuery));
  } catch (e) {// noop
  }

  if (candidates.length > 0) {
    hclAdd('pending');
    hclRemove('complete');
  } else {
    return;
  }

  var mark = perf.begin('onTree');
  var mutations = candidates.reduce(function (acc, node) {
    try {
      var mutation = generateMutation(node);

      if (mutation) {
        acc.push(mutation);
      }
    } catch (e) {
      if (!PRODUCTION) {
        if (e instanceof MissingIcon) {
          console.error(e);
        }
      }
    }

    return acc;
  }, []);
  return new picked(function (resolve, reject) {
    picked.all(mutations).then(function (resolvedMutations) {
      perform(resolvedMutations, function () {
        hclAdd('active');
        hclAdd('complete');
        hclRemove('pending');
        if (typeof callback === 'function') callback();
        mark();
        resolve();
      });
    }).catch(function () {
      mark();
      reject();
    });
  });
}
function onNode(node) {
  var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  generateMutation(node).then(function (mutation) {
    if (mutation) {
      perform([mutation], callback);
    }
  });
}

function replaceForPosition(node, position) {
  var pendingAttribute = "".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(position.replace(':', '-'));
  return new picked(function (resolve, reject) {
    if (node.getAttribute(pendingAttribute) !== null) {
      // This node is already being processed
      return resolve();
    }

    var children = toArray(node.children);
    var alreadyProcessedPseudoElement = children.filter(function (c) {
      return c.getAttribute(DATA_FA_PSEUDO_ELEMENT) === position;
    })[0];
    var styles = WINDOW.getComputedStyle(node, position);
    var fontFamily = styles.getPropertyValue('font-family').match(FONT_FAMILY_PATTERN);
    var fontWeight = styles.getPropertyValue('font-weight');
    var content = styles.getPropertyValue('content');

    if (alreadyProcessedPseudoElement && !fontFamily) {
      // If we've already processed it but the current computed style does not result in a font-family,
      // that probably means that a class name that was previously present to make the icon has been
      // removed. So we now should delete the icon.
      node.removeChild(alreadyProcessedPseudoElement);
      return resolve();
    } else if (fontFamily && content !== 'none' && content !== '') {
      var _content = styles.getPropertyValue('content');

      var prefix = ~['Solid', 'Regular', 'Light', 'Duotone', 'Brands', 'Kit'].indexOf(fontFamily[2]) ? STYLE_TO_PREFIX[fontFamily[2].toLowerCase()] : FONT_WEIGHT_TO_PREFIX[fontWeight];
      var hexValue = toHex(_content.length === 3 ? _content.substr(1, 1) : _content);
      var iconName = byUnicode(prefix, hexValue);
      var iconIdentifier = iconName; // Only convert the pseudo element in this :before/:after position into an icon if we haven't
      // already done so with the same prefix and iconName

      if (iconName && (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconIdentifier)) {
        node.setAttribute(pendingAttribute, iconIdentifier);

        if (alreadyProcessedPseudoElement) {
          // Delete the old one, since we're replacing it with a new one
          node.removeChild(alreadyProcessedPseudoElement);
        }

        var meta = blankMeta();
        var extra = meta.extra;
        extra.attributes[DATA_FA_PSEUDO_ELEMENT] = position;
        findIcon(iconName, prefix).then(function (main) {
          var abstract = makeInlineSvgAbstract(_objectSpread({}, meta, {
            icons: {
              main: main,
              mask: emptyCanonicalIcon()
            },
            prefix: prefix,
            iconName: iconIdentifier,
            extra: extra,
            watchable: true
          }));
          var element = DOCUMENT.createElement('svg');

          if (position === ':before') {
            node.insertBefore(element, node.firstChild);
          } else {
            node.appendChild(element);
          }

          element.outerHTML = abstract.map(function (a) {
            return toHtml(a);
          }).join('\n');
          node.removeAttribute(pendingAttribute);
          resolve();
        }).catch(reject);
      } else {
        resolve();
      }
    } else {
      resolve();
    }
  });
}

function replace(node) {
  return picked.all([replaceForPosition(node, ':before'), replaceForPosition(node, ':after')]);
}

function processable(node) {
  return node.parentNode !== document.head && !~TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS.indexOf(node.tagName.toUpperCase()) && !node.getAttribute(DATA_FA_PSEUDO_ELEMENT) && (!node.parentNode || node.parentNode.tagName !== 'svg');
}

function searchPseudoElements (root) {
  if (!IS_DOM) return;
  return new picked(function (resolve, reject) {
    var operations = toArray(root.querySelectorAll('*')).filter(processable).map(replace);
    var end = perf.begin('searchPseudoElements');
    disableObservation();
    picked.all(operations).then(function () {
      end();
      enableObservation();
      resolve();
    }).catch(function () {
      end();
      enableObservation();
      reject();
    });
  });
}

var baseStyles = "svg:not(:root).svg-inline--fa {\n  overflow: visible;\n}\n\n.svg-inline--fa {\n  display: inline-block;\n  font-size: inherit;\n  height: 1em;\n  overflow: visible;\n  vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n  vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n  width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n  width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n  width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n  width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n  width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n  width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n  width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n  width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n  width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n  width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n  width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n  width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n  width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n  width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n  width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n  width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n  width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n  width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n  width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n  width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n  margin-right: 0.3em;\n  width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n  margin-left: 0.3em;\n  width: auto;\n}\n.svg-inline--fa.fa-border {\n  height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n  width: 2em;\n}\n.svg-inline--fa.fa-fw {\n  width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.fa-layers {\n  display: inline-block;\n  height: 1em;\n  position: relative;\n  text-align: center;\n  vertical-align: -0.125em;\n  width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n  display: inline-block;\n  position: absolute;\n  text-align: center;\n}\n\n.fa-layers-text {\n  left: 50%;\n  top: 50%;\n  -webkit-transform: translate(-50%, -50%);\n          transform: translate(-50%, -50%);\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter {\n  background-color: #ff253a;\n  border-radius: 1em;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  color: #fff;\n  height: 1.5em;\n  line-height: 1;\n  max-width: 5em;\n  min-width: 1.5em;\n  overflow: hidden;\n  padding: 0.25em;\n  right: 0;\n  text-overflow: ellipsis;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n  bottom: 0;\n  right: 0;\n  top: auto;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: bottom right;\n          transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n  bottom: 0;\n  left: 0;\n  right: auto;\n  top: auto;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: bottom left;\n          transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n  right: 0;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-top-left {\n  left: 0;\n  right: auto;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top left;\n          transform-origin: top left;\n}\n\n.fa-lg {\n  font-size: 1.3333333333em;\n  line-height: 0.75em;\n  vertical-align: -0.0667em;\n}\n\n.fa-xs {\n  font-size: 0.75em;\n}\n\n.fa-sm {\n  font-size: 0.875em;\n}\n\n.fa-1x {\n  font-size: 1em;\n}\n\n.fa-2x {\n  font-size: 2em;\n}\n\n.fa-3x {\n  font-size: 3em;\n}\n\n.fa-4x {\n  font-size: 4em;\n}\n\n.fa-5x {\n  font-size: 5em;\n}\n\n.fa-6x {\n  font-size: 6em;\n}\n\n.fa-7x {\n  font-size: 7em;\n}\n\n.fa-8x {\n  font-size: 8em;\n}\n\n.fa-9x {\n  font-size: 9em;\n}\n\n.fa-10x {\n  font-size: 10em;\n}\n\n.fa-fw {\n  text-align: center;\n  width: 1.25em;\n}\n\n.fa-ul {\n  list-style-type: none;\n  margin-left: 2.5em;\n  padding-left: 0;\n}\n.fa-ul > li {\n  position: relative;\n}\n\n.fa-li {\n  left: -2em;\n  position: absolute;\n  text-align: center;\n  width: 2em;\n  line-height: inherit;\n}\n\n.fa-border {\n  border: solid 0.08em #eee;\n  border-radius: 0.1em;\n  padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n  float: left;\n}\n\n.fa-pull-right {\n  float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n  margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n  margin-left: 0.3em;\n}\n\n.fa-spin {\n  -webkit-animation: fa-spin 2s infinite linear;\n          animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n  -webkit-animation: fa-spin 1s infinite steps(8);\n          animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n\n@keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n.fa-rotate-90 {\n  -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";\n  -webkit-transform: rotate(90deg);\n          transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n  -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";\n  -webkit-transform: rotate(180deg);\n          transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n  -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";\n  -webkit-transform: rotate(270deg);\n          transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n  -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";\n  -webkit-transform: scale(-1, 1);\n          transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n  -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\";\n  -webkit-transform: scale(1, -1);\n          transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n  -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\";\n  -webkit-transform: scale(-1, -1);\n          transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n  -webkit-filter: none;\n          filter: none;\n}\n\n.fa-stack {\n  display: inline-block;\n  height: 2em;\n  position: relative;\n  width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n  height: 1em;\n  width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n  height: 2em;\n  width: 2.5em;\n}\n\n.fa-inverse {\n  color: #fff;\n}\n\n.sr-only {\n  border: 0;\n  clip: rect(0, 0, 0, 0);\n  height: 1px;\n  margin: -1px;\n  overflow: hidden;\n  padding: 0;\n  position: absolute;\n  width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n  clip: auto;\n  height: auto;\n  margin: 0;\n  overflow: visible;\n  position: static;\n  width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n  fill: var(--fa-primary-color, currentColor);\n  opacity: 1;\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n  fill: var(--fa-secondary-color, currentColor);\n  opacity: 0.4;\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n  opacity: 0.4;\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n  opacity: 1;\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n  fill: black;\n}\n\n.fad.fa-inverse {\n  color: #fff;\n}";

function css () {
  var dfp = DEFAULT_FAMILY_PREFIX;
  var drc = DEFAULT_REPLACEMENT_CLASS;
  var fp = config.familyPrefix;
  var rc = config.replacementClass;
  var s = baseStyles;

  if (fp !== dfp || rc !== drc) {
    var dPatt = new RegExp("\\.".concat(dfp, "\\-"), 'g');
    var customPropPatt = new RegExp("\\--".concat(dfp, "\\-"), 'g');
    var rPatt = new RegExp("\\.".concat(drc), 'g');
    s = s.replace(dPatt, ".".concat(fp, "-")).replace(customPropPatt, "--".concat(fp, "-")).replace(rPatt, ".".concat(rc));
  }

  return s;
}

var Library =
/*#__PURE__*/
function () {
  function Library() {
    _classCallCheck(this, Library);

    this.definitions = {};
  }

  _createClass(Library, [{
    key: "add",
    value: function add() {
      var _this = this;

      for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {
        definitions[_key] = arguments[_key];
      }

      var additions = definitions.reduce(this._pullDefinitions, {});
      Object.keys(additions).forEach(function (key) {
        _this.definitions[key] = _objectSpread({}, _this.definitions[key] || {}, additions[key]);
        defineIcons(key, additions[key]);
        build();
      });
    }
  }, {
    key: "reset",
    value: function reset() {
      this.definitions = {};
    }
  }, {
    key: "_pullDefinitions",
    value: function _pullDefinitions(additions, definition) {
      var normalized = definition.prefix && definition.iconName && definition.icon ? {
        0: definition
      } : definition;
      Object.keys(normalized).map(function (key) {
        var _normalized$key = normalized[key],
            prefix = _normalized$key.prefix,
            iconName = _normalized$key.iconName,
            icon = _normalized$key.icon;
        if (!additions[prefix]) additions[prefix] = {};
        additions[prefix][iconName] = icon;
      });
      return additions;
    }
  }]);

  return Library;
}();

function ensureCss() {
  if (config.autoAddCss && !_cssInserted) {
    insertCss(css());

    _cssInserted = true;
  }
}

function apiObject(val, abstractCreator) {
  Object.defineProperty(val, 'abstract', {
    get: abstractCreator
  });
  Object.defineProperty(val, 'html', {
    get: function get() {
      return val.abstract.map(function (a) {
        return toHtml(a);
      });
    }
  });
  Object.defineProperty(val, 'node', {
    get: function get() {
      if (!IS_DOM) return;
      var container = DOCUMENT.createElement('div');
      container.innerHTML = val.html;
      return container.children;
    }
  });
  return val;
}

function findIconDefinition(iconLookup) {
  var _iconLookup$prefix = iconLookup.prefix,
      prefix = _iconLookup$prefix === void 0 ? 'fa' : _iconLookup$prefix,
      iconName = iconLookup.iconName;
  if (!iconName) return;
  return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);
}

function resolveIcons(next) {
  return function (maybeIconDefinition) {
    var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
    var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});
    var mask = params.mask;

    if (mask) {
      mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});
    }

    return next(iconDefinition, _objectSpread({}, params, {
      mask: mask
    }));
  };
}

var library = new Library();
var noAuto = function noAuto() {
  config.autoReplaceSvg = false;
  config.observeMutations = false;
  disconnect();
};
var _cssInserted = false;
var dom = {
  i2svg: function i2svg() {
    var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

    if (IS_DOM) {
      ensureCss();
      var _params$node = params.node,
          node = _params$node === void 0 ? DOCUMENT : _params$node,
          _params$callback = params.callback,
          callback = _params$callback === void 0 ? function () {} : _params$callback;

      if (config.searchPseudoElements) {
        searchPseudoElements(node);
      }

      return onTree(node, callback);
    } else {
      return picked.reject('Operation requires a DOM of some kind.');
    }
  },
  css: css,
  insertCss: function insertCss$$1() {
    if (!_cssInserted) {
      insertCss(css());

      _cssInserted = true;
    }
  },
  watch: function watch() {
    var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
    var autoReplaceSvgRoot = params.autoReplaceSvgRoot,
        observeMutationsRoot = params.observeMutationsRoot;

    if (config.autoReplaceSvg === false) {
      config.autoReplaceSvg = true;
    }

    config.observeMutations = true;
    domready(function () {
      autoReplace({
        autoReplaceSvgRoot: autoReplaceSvgRoot
      });
      observe({
        treeCallback: onTree,
        nodeCallback: onNode,
        pseudoElementsCallback: searchPseudoElements,
        observeMutationsRoot: observeMutationsRoot
      });
    });
  }
};
var parse = {
  transform: function transform(transformString) {
    return parseTransformString(transformString);
  }
};
var icon = resolveIcons(function (iconDefinition) {
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  var _params$transform = params.transform,
      transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
      _params$symbol = params.symbol,
      symbol = _params$symbol === void 0 ? false : _params$symbol,
      _params$mask = params.mask,
      mask = _params$mask === void 0 ? null : _params$mask,
      _params$maskId = params.maskId,
      maskId = _params$maskId === void 0 ? null : _params$maskId,
      _params$title = params.title,
      title = _params$title === void 0 ? null : _params$title,
      _params$titleId = params.titleId,
      titleId = _params$titleId === void 0 ? null : _params$titleId,
      _params$classes = params.classes,
      classes = _params$classes === void 0 ? [] : _params$classes,
      _params$attributes = params.attributes,
      attributes = _params$attributes === void 0 ? {} : _params$attributes,
      _params$styles = params.styles,
      styles = _params$styles === void 0 ? {} : _params$styles;
  if (!iconDefinition) return;
  var prefix = iconDefinition.prefix,
      iconName = iconDefinition.iconName,
      icon = iconDefinition.icon;
  return apiObject(_objectSpread({
    type: 'icon'
  }, iconDefinition), function () {
    ensureCss();

    if (config.autoA11y) {
      if (title) {
        attributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(titleId || nextUniqueId());
      } else {
        attributes['aria-hidden'] = 'true';
        attributes['focusable'] = 'false';
      }
    }

    return makeInlineSvgAbstract({
      icons: {
        main: asFoundIcon(icon),
        mask: mask ? asFoundIcon(mask.icon) : {
          found: false,
          width: null,
          height: null,
          icon: {}
        }
      },
      prefix: prefix,
      iconName: iconName,
      transform: _objectSpread({}, meaninglessTransform, transform),
      symbol: symbol,
      title: title,
      maskId: maskId,
      titleId: titleId,
      extra: {
        attributes: attributes,
        styles: styles,
        classes: classes
      }
    });
  });
});
var text = function text(content) {
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  var _params$transform2 = params.transform,
      transform = _params$transform2 === void 0 ? meaninglessTransform : _params$transform2,
      _params$title2 = params.title,
      title = _params$title2 === void 0 ? null : _params$title2,
      _params$classes2 = params.classes,
      classes = _params$classes2 === void 0 ? [] : _params$classes2,
      _params$attributes2 = params.attributes,
      attributes = _params$attributes2 === void 0 ? {} : _params$attributes2,
      _params$styles2 = params.styles,
      styles = _params$styles2 === void 0 ? {} : _params$styles2;
  return apiObject({
    type: 'text',
    content: content
  }, function () {
    ensureCss();
    return makeLayersTextAbstract({
      content: content,
      transform: _objectSpread({}, meaninglessTransform, transform),
      title: title,
      extra: {
        attributes: attributes,
        styles: styles,
        classes: ["".concat(config.familyPrefix, "-layers-text")].concat(_toConsumableArray(classes))
      }
    });
  });
};
var counter = function counter(content) {
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  var _params$title3 = params.title,
      title = _params$title3 === void 0 ? null : _params$title3,
      _params$classes3 = params.classes,
      classes = _params$classes3 === void 0 ? [] : _params$classes3,
      _params$attributes3 = params.attributes,
      attributes = _params$attributes3 === void 0 ? {} : _params$attributes3,
      _params$styles3 = params.styles,
      styles = _params$styles3 === void 0 ? {} : _params$styles3;
  return apiObject({
    type: 'counter',
    content: content
  }, function () {
    ensureCss();
    return makeLayersCounterAbstract({
      content: content.toString(),
      title: title,
      extra: {
        attributes: attributes,
        styles: styles,
        classes: ["".concat(config.familyPrefix, "-layers-counter")].concat(_toConsumableArray(classes))
      }
    });
  });
};
var layer = function layer(assembler) {
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  var _params$classes4 = params.classes,
      classes = _params$classes4 === void 0 ? [] : _params$classes4;
  return apiObject({
    type: 'layer'
  }, function () {
    ensureCss();
    var children = [];
    assembler(function (args) {
      Array.isArray(args) ? args.map(function (a) {
        children = children.concat(a.abstract);
      }) : children = children.concat(args.abstract);
    });
    return [{
      tag: 'span',
      attributes: {
        class: ["".concat(config.familyPrefix, "-layers")].concat(_toConsumableArray(classes)).join(' ')
      },
      children: children
    }];
  });
};
var api = {
  noAuto: noAuto,
  config: config,
  dom: dom,
  library: library,
  parse: parse,
  findIconDefinition: findIconDefinition,
  icon: icon,
  text: text,
  counter: counter,
  layer: layer,
  toHtml: toHtml
};

var autoReplace = function autoReplace() {
  var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  var _params$autoReplaceSv = params.autoReplaceSvgRoot,
      autoReplaceSvgRoot = _params$autoReplaceSv === void 0 ? DOCUMENT : _params$autoReplaceSv;
  if ((Object.keys(namespace.styles).length > 0 || config.autoFetchSvg) && IS_DOM && config.autoReplaceSvg) api.dom.i2svg({
    node: autoReplaceSvgRoot
  });
};




/***/ }),

/***/ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js":
/*!********************************************************************!*\
  !*** ./node_modules/@fortawesome/free-solid-svg-icons/index.es.js ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "fas": () => (/* binding */ _iconsCache),
/* harmony export */   "prefix": () => (/* binding */ prefix),
/* harmony export */   "faAd": () => (/* binding */ faAd),
/* harmony export */   "faAddressBook": () => (/* binding */ faAddressBook),
/* harmony export */   "faAddressCard": () => (/* binding */ faAddressCard),
/* harmony export */   "faAdjust": () => (/* binding */ faAdjust),
/* harmony export */   "faAirFreshener": () => (/* binding */ faAirFreshener),
/* harmony export */   "faAlignCenter": () => (/* binding */ faAlignCenter),
/* harmony export */   "faAlignJustify": () => (/* binding */ faAlignJustify),
/* harmony export */   "faAlignLeft": () => (/* binding */ faAlignLeft),
/* harmony export */   "faAlignRight": () => (/* binding */ faAlignRight),
/* harmony export */   "faAllergies": () => (/* binding */ faAllergies),
/* harmony export */   "faAmbulance": () => (/* binding */ faAmbulance),
/* harmony export */   "faAmericanSignLanguageInterpreting": () => (/* binding */ faAmericanSignLanguageInterpreting),
/* harmony export */   "faAnchor": () => (/* binding */ faAnchor),
/* harmony export */   "faAngleDoubleDown": () => (/* binding */ faAngleDoubleDown),
/* harmony export */   "faAngleDoubleLeft": () => (/* binding */ faAngleDoubleLeft),
/* harmony export */   "faAngleDoubleRight": () => (/* binding */ faAngleDoubleRight),
/* harmony export */   "faAngleDoubleUp": () => (/* binding */ faAngleDoubleUp),
/* harmony export */   "faAngleDown": () => (/* binding */ faAngleDown),
/* harmony export */   "faAngleLeft": () => (/* binding */ faAngleLeft),
/* harmony export */   "faAngleRight": () => (/* binding */ faAngleRight),
/* harmony export */   "faAngleUp": () => (/* binding */ faAngleUp),
/* harmony export */   "faAngry": () => (/* binding */ faAngry),
/* harmony export */   "faAnkh": () => (/* binding */ faAnkh),
/* harmony export */   "faAppleAlt": () => (/* binding */ faAppleAlt),
/* harmony export */   "faArchive": () => (/* binding */ faArchive),
/* harmony export */   "faArchway": () => (/* binding */ faArchway),
/* harmony export */   "faArrowAltCircleDown": () => (/* binding */ faArrowAltCircleDown),
/* harmony export */   "faArrowAltCircleLeft": () => (/* binding */ faArrowAltCircleLeft),
/* harmony export */   "faArrowAltCircleRight": () => (/* binding */ faArrowAltCircleRight),
/* harmony export */   "faArrowAltCircleUp": () => (/* binding */ faArrowAltCircleUp),
/* harmony export */   "faArrowCircleDown": () => (/* binding */ faArrowCircleDown),
/* harmony export */   "faArrowCircleLeft": () => (/* binding */ faArrowCircleLeft),
/* harmony export */   "faArrowCircleRight": () => (/* binding */ faArrowCircleRight),
/* harmony export */   "faArrowCircleUp": () => (/* binding */ faArrowCircleUp),
/* harmony export */   "faArrowDown": () => (/* binding */ faArrowDown),
/* harmony export */   "faArrowLeft": () => (/* binding */ faArrowLeft),
/* harmony export */   "faArrowRight": () => (/* binding */ faArrowRight),
/* harmony export */   "faArrowUp": () => (/* binding */ faArrowUp),
/* harmony export */   "faArrowsAlt": () => (/* binding */ faArrowsAlt),
/* harmony export */   "faArrowsAltH": () => (/* binding */ faArrowsAltH),
/* harmony export */   "faArrowsAltV": () => (/* binding */ faArrowsAltV),
/* harmony export */   "faAssistiveListeningSystems": () => (/* binding */ faAssistiveListeningSystems),
/* harmony export */   "faAsterisk": () => (/* binding */ faAsterisk),
/* harmony export */   "faAt": () => (/* binding */ faAt),
/* harmony export */   "faAtlas": () => (/* binding */ faAtlas),
/* harmony export */   "faAtom": () => (/* binding */ faAtom),
/* harmony export */   "faAudioDescription": () => (/* binding */ faAudioDescription),
/* harmony export */   "faAward": () => (/* binding */ faAward),
/* harmony export */   "faBaby": () => (/* binding */ faBaby),
/* harmony export */   "faBabyCarriage": () => (/* binding */ faBabyCarriage),
/* harmony export */   "faBackspace": () => (/* binding */ faBackspace),
/* harmony export */   "faBackward": () => (/* binding */ faBackward),
/* harmony export */   "faBacon": () => (/* binding */ faBacon),
/* harmony export */   "faBacteria": () => (/* binding */ faBacteria),
/* harmony export */   "faBacterium": () => (/* binding */ faBacterium),
/* harmony export */   "faBahai": () => (/* binding */ faBahai),
/* harmony export */   "faBalanceScale": () => (/* binding */ faBalanceScale),
/* harmony export */   "faBalanceScaleLeft": () => (/* binding */ faBalanceScaleLeft),
/* harmony export */   "faBalanceScaleRight": () => (/* binding */ faBalanceScaleRight),
/* harmony export */   "faBan": () => (/* binding */ faBan),
/* harmony export */   "faBandAid": () => (/* binding */ faBandAid),
/* harmony export */   "faBarcode": () => (/* binding */ faBarcode),
/* harmony export */   "faBars": () => (/* binding */ faBars),
/* harmony export */   "faBaseballBall": () => (/* binding */ faBaseballBall),
/* harmony export */   "faBasketballBall": () => (/* binding */ faBasketballBall),
/* harmony export */   "faBath": () => (/* binding */ faBath),
/* harmony export */   "faBatteryEmpty": () => (/* binding */ faBatteryEmpty),
/* harmony export */   "faBatteryFull": () => (/* binding */ faBatteryFull),
/* harmony export */   "faBatteryHalf": () => (/* binding */ faBatteryHalf),
/* harmony export */   "faBatteryQuarter": () => (/* binding */ faBatteryQuarter),
/* harmony export */   "faBatteryThreeQuarters": () => (/* binding */ faBatteryThreeQuarters),
/* harmony export */   "faBed": () => (/* binding */ faBed),
/* harmony export */   "faBeer": () => (/* binding */ faBeer),
/* harmony export */   "faBell": () => (/* binding */ faBell),
/* harmony export */   "faBellSlash": () => (/* binding */ faBellSlash),
/* harmony export */   "faBezierCurve": () => (/* binding */ faBezierCurve),
/* harmony export */   "faBible": () => (/* binding */ faBible),
/* harmony export */   "faBicycle": () => (/* binding */ faBicycle),
/* harmony export */   "faBiking": () => (/* binding */ faBiking),
/* harmony export */   "faBinoculars": () => (/* binding */ faBinoculars),
/* harmony export */   "faBiohazard": () => (/* binding */ faBiohazard),
/* harmony export */   "faBirthdayCake": () => (/* binding */ faBirthdayCake),
/* harmony export */   "faBlender": () => (/* binding */ faBlender),
/* harmony export */   "faBlenderPhone": () => (/* binding */ faBlenderPhone),
/* harmony export */   "faBlind": () => (/* binding */ faBlind),
/* harmony export */   "faBlog": () => (/* binding */ faBlog),
/* harmony export */   "faBold": () => (/* binding */ faBold),
/* harmony export */   "faBolt": () => (/* binding */ faBolt),
/* harmony export */   "faBomb": () => (/* binding */ faBomb),
/* harmony export */   "faBone": () => (/* binding */ faBone),
/* harmony export */   "faBong": () => (/* binding */ faBong),
/* harmony export */   "faBook": () => (/* binding */ faBook),
/* harmony export */   "faBookDead": () => (/* binding */ faBookDead),
/* harmony export */   "faBookMedical": () => (/* binding */ faBookMedical),
/* harmony export */   "faBookOpen": () => (/* binding */ faBookOpen),
/* harmony export */   "faBookReader": () => (/* binding */ faBookReader),
/* harmony export */   "faBookmark": () => (/* binding */ faBookmark),
/* harmony export */   "faBorderAll": () => (/* binding */ faBorderAll),
/* harmony export */   "faBorderNone": () => (/* binding */ faBorderNone),
/* harmony export */   "faBorderStyle": () => (/* binding */ faBorderStyle),
/* harmony export */   "faBowlingBall": () => (/* binding */ faBowlingBall),
/* harmony export */   "faBox": () => (/* binding */ faBox),
/* harmony export */   "faBoxOpen": () => (/* binding */ faBoxOpen),
/* harmony export */   "faBoxTissue": () => (/* binding */ faBoxTissue),
/* harmony export */   "faBoxes": () => (/* binding */ faBoxes),
/* harmony export */   "faBraille": () => (/* binding */ faBraille),
/* harmony export */   "faBrain": () => (/* binding */ faBrain),
/* harmony export */   "faBreadSlice": () => (/* binding */ faBreadSlice),
/* harmony export */   "faBriefcase": () => (/* binding */ faBriefcase),
/* harmony export */   "faBriefcaseMedical": () => (/* binding */ faBriefcaseMedical),
/* harmony export */   "faBroadcastTower": () => (/* binding */ faBroadcastTower),
/* harmony export */   "faBroom": () => (/* binding */ faBroom),
/* harmony export */   "faBrush": () => (/* binding */ faBrush),
/* harmony export */   "faBug": () => (/* binding */ faBug),
/* harmony export */   "faBuilding": () => (/* binding */ faBuilding),
/* harmony export */   "faBullhorn": () => (/* binding */ faBullhorn),
/* harmony export */   "faBullseye": () => (/* binding */ faBullseye),
/* harmony export */   "faBurn": () => (/* binding */ faBurn),
/* harmony export */   "faBus": () => (/* binding */ faBus),
/* harmony export */   "faBusAlt": () => (/* binding */ faBusAlt),
/* harmony export */   "faBusinessTime": () => (/* binding */ faBusinessTime),
/* harmony export */   "faCalculator": () => (/* binding */ faCalculator),
/* harmony export */   "faCalendar": () => (/* binding */ faCalendar),
/* harmony export */   "faCalendarAlt": () => (/* binding */ faCalendarAlt),
/* harmony export */   "faCalendarCheck": () => (/* binding */ faCalendarCheck),
/* harmony export */   "faCalendarDay": () => (/* binding */ faCalendarDay),
/* harmony export */   "faCalendarMinus": () => (/* binding */ faCalendarMinus),
/* harmony export */   "faCalendarPlus": () => (/* binding */ faCalendarPlus),
/* harmony export */   "faCalendarTimes": () => (/* binding */ faCalendarTimes),
/* harmony export */   "faCalendarWeek": () => (/* binding */ faCalendarWeek),
/* harmony export */   "faCamera": () => (/* binding */ faCamera),
/* harmony export */   "faCameraRetro": () => (/* binding */ faCameraRetro),
/* harmony export */   "faCampground": () => (/* binding */ faCampground),
/* harmony export */   "faCandyCane": () => (/* binding */ faCandyCane),
/* harmony export */   "faCannabis": () => (/* binding */ faCannabis),
/* harmony export */   "faCapsules": () => (/* binding */ faCapsules),
/* harmony export */   "faCar": () => (/* binding */ faCar),
/* harmony export */   "faCarAlt": () => (/* binding */ faCarAlt),
/* harmony export */   "faCarBattery": () => (/* binding */ faCarBattery),
/* harmony export */   "faCarCrash": () => (/* binding */ faCarCrash),
/* harmony export */   "faCarSide": () => (/* binding */ faCarSide),
/* harmony export */   "faCaravan": () => (/* binding */ faCaravan),
/* harmony export */   "faCaretDown": () => (/* binding */ faCaretDown),
/* harmony export */   "faCaretLeft": () => (/* binding */ faCaretLeft),
/* harmony export */   "faCaretRight": () => (/* binding */ faCaretRight),
/* harmony export */   "faCaretSquareDown": () => (/* binding */ faCaretSquareDown),
/* harmony export */   "faCaretSquareLeft": () => (/* binding */ faCaretSquareLeft),
/* harmony export */   "faCaretSquareRight": () => (/* binding */ faCaretSquareRight),
/* harmony export */   "faCaretSquareUp": () => (/* binding */ faCaretSquareUp),
/* harmony export */   "faCaretUp": () => (/* binding */ faCaretUp),
/* harmony export */   "faCarrot": () => (/* binding */ faCarrot),
/* harmony export */   "faCartArrowDown": () => (/* binding */ faCartArrowDown),
/* harmony export */   "faCartPlus": () => (/* binding */ faCartPlus),
/* harmony export */   "faCashRegister": () => (/* binding */ faCashRegister),
/* harmony export */   "faCat": () => (/* binding */ faCat),
/* harmony export */   "faCertificate": () => (/* binding */ faCertificate),
/* harmony export */   "faChair": () => (/* binding */ faChair),
/* harmony export */   "faChalkboard": () => (/* binding */ faChalkboard),
/* harmony export */   "faChalkboardTeacher": () => (/* binding */ faChalkboardTeacher),
/* harmony export */   "faChargingStation": () => (/* binding */ faChargingStation),
/* harmony export */   "faChartArea": () => (/* binding */ faChartArea),
/* harmony export */   "faChartBar": () => (/* binding */ faChartBar),
/* harmony export */   "faChartLine": () => (/* binding */ faChartLine),
/* harmony export */   "faChartPie": () => (/* binding */ faChartPie),
/* harmony export */   "faCheck": () => (/* binding */ faCheck),
/* harmony export */   "faCheckCircle": () => (/* binding */ faCheckCircle),
/* harmony export */   "faCheckDouble": () => (/* binding */ faCheckDouble),
/* harmony export */   "faCheckSquare": () => (/* binding */ faCheckSquare),
/* harmony export */   "faCheese": () => (/* binding */ faCheese),
/* harmony export */   "faChess": () => (/* binding */ faChess),
/* harmony export */   "faChessBishop": () => (/* binding */ faChessBishop),
/* harmony export */   "faChessBoard": () => (/* binding */ faChessBoard),
/* harmony export */   "faChessKing": () => (/* binding */ faChessKing),
/* harmony export */   "faChessKnight": () => (/* binding */ faChessKnight),
/* harmony export */   "faChessPawn": () => (/* binding */ faChessPawn),
/* harmony export */   "faChessQueen": () => (/* binding */ faChessQueen),
/* harmony export */   "faChessRook": () => (/* binding */ faChessRook),
/* harmony export */   "faChevronCircleDown": () => (/* binding */ faChevronCircleDown),
/* harmony export */   "faChevronCircleLeft": () => (/* binding */ faChevronCircleLeft),
/* harmony export */   "faChevronCircleRight": () => (/* binding */ faChevronCircleRight),
/* harmony export */   "faChevronCircleUp": () => (/* binding */ faChevronCircleUp),
/* harmony export */   "faChevronDown": () => (/* binding */ faChevronDown),
/* harmony export */   "faChevronLeft": () => (/* binding */ faChevronLeft),
/* harmony export */   "faChevronRight": () => (/* binding */ faChevronRight),
/* harmony export */   "faChevronUp": () => (/* binding */ faChevronUp),
/* harmony export */   "faChild": () => (/* binding */ faChild),
/* harmony export */   "faChurch": () => (/* binding */ faChurch),
/* harmony export */   "faCircle": () => (/* binding */ faCircle),
/* harmony export */   "faCircleNotch": () => (/* binding */ faCircleNotch),
/* harmony export */   "faCity": () => (/* binding */ faCity),
/* harmony export */   "faClinicMedical": () => (/* binding */ faClinicMedical),
/* harmony export */   "faClipboard": () => (/* binding */ faClipboard),
/* harmony export */   "faClipboardCheck": () => (/* binding */ faClipboardCheck),
/* harmony export */   "faClipboardList": () => (/* binding */ faClipboardList),
/* harmony export */   "faClock": () => (/* binding */ faClock),
/* harmony export */   "faClone": () => (/* binding */ faClone),
/* harmony export */   "faClosedCaptioning": () => (/* binding */ faClosedCaptioning),
/* harmony export */   "faCloud": () => (/* binding */ faCloud),
/* harmony export */   "faCloudDownloadAlt": () => (/* binding */ faCloudDownloadAlt),
/* harmony export */   "faCloudMeatball": () => (/* binding */ faCloudMeatball),
/* harmony export */   "faCloudMoon": () => (/* binding */ faCloudMoon),
/* harmony export */   "faCloudMoonRain": () => (/* binding */ faCloudMoonRain),
/* harmony export */   "faCloudRain": () => (/* binding */ faCloudRain),
/* harmony export */   "faCloudShowersHeavy": () => (/* binding */ faCloudShowersHeavy),
/* harmony export */   "faCloudSun": () => (/* binding */ faCloudSun),
/* harmony export */   "faCloudSunRain": () => (/* binding */ faCloudSunRain),
/* harmony export */   "faCloudUploadAlt": () => (/* binding */ faCloudUploadAlt),
/* harmony export */   "faCocktail": () => (/* binding */ faCocktail),
/* harmony export */   "faCode": () => (/* binding */ faCode),
/* harmony export */   "faCodeBranch": () => (/* binding */ faCodeBranch),
/* harmony export */   "faCoffee": () => (/* binding */ faCoffee),
/* harmony export */   "faCog": () => (/* binding */ faCog),
/* harmony export */   "faCogs": () => (/* binding */ faCogs),
/* harmony export */   "faCoins": () => (/* binding */ faCoins),
/* harmony export */   "faColumns": () => (/* binding */ faColumns),
/* harmony export */   "faComment": () => (/* binding */ faComment),
/* harmony export */   "faCommentAlt": () => (/* binding */ faCommentAlt),
/* harmony export */   "faCommentDollar": () => (/* binding */ faCommentDollar),
/* harmony export */   "faCommentDots": () => (/* binding */ faCommentDots),
/* harmony export */   "faCommentMedical": () => (/* binding */ faCommentMedical),
/* harmony export */   "faCommentSlash": () => (/* binding */ faCommentSlash),
/* harmony export */   "faComments": () => (/* binding */ faComments),
/* harmony export */   "faCommentsDollar": () => (/* binding */ faCommentsDollar),
/* harmony export */   "faCompactDisc": () => (/* binding */ faCompactDisc),
/* harmony export */   "faCompass": () => (/* binding */ faCompass),
/* harmony export */   "faCompress": () => (/* binding */ faCompress),
/* harmony export */   "faCompressAlt": () => (/* binding */ faCompressAlt),
/* harmony export */   "faCompressArrowsAlt": () => (/* binding */ faCompressArrowsAlt),
/* harmony export */   "faConciergeBell": () => (/* binding */ faConciergeBell),
/* harmony export */   "faCookie": () => (/* binding */ faCookie),
/* harmony export */   "faCookieBite": () => (/* binding */ faCookieBite),
/* harmony export */   "faCopy": () => (/* binding */ faCopy),
/* harmony export */   "faCopyright": () => (/* binding */ faCopyright),
/* harmony export */   "faCouch": () => (/* binding */ faCouch),
/* harmony export */   "faCreditCard": () => (/* binding */ faCreditCard),
/* harmony export */   "faCrop": () => (/* binding */ faCrop),
/* harmony export */   "faCropAlt": () => (/* binding */ faCropAlt),
/* harmony export */   "faCross": () => (/* binding */ faCross),
/* harmony export */   "faCrosshairs": () => (/* binding */ faCrosshairs),
/* harmony export */   "faCrow": () => (/* binding */ faCrow),
/* harmony export */   "faCrown": () => (/* binding */ faCrown),
/* harmony export */   "faCrutch": () => (/* binding */ faCrutch),
/* harmony export */   "faCube": () => (/* binding */ faCube),
/* harmony export */   "faCubes": () => (/* binding */ faCubes),
/* harmony export */   "faCut": () => (/* binding */ faCut),
/* harmony export */   "faDatabase": () => (/* binding */ faDatabase),
/* harmony export */   "faDeaf": () => (/* binding */ faDeaf),
/* harmony export */   "faDemocrat": () => (/* binding */ faDemocrat),
/* harmony export */   "faDesktop": () => (/* binding */ faDesktop),
/* harmony export */   "faDharmachakra": () => (/* binding */ faDharmachakra),
/* harmony export */   "faDiagnoses": () => (/* binding */ faDiagnoses),
/* harmony export */   "faDice": () => (/* binding */ faDice),
/* harmony export */   "faDiceD20": () => (/* binding */ faDiceD20),
/* harmony export */   "faDiceD6": () => (/* binding */ faDiceD6),
/* harmony export */   "faDiceFive": () => (/* binding */ faDiceFive),
/* harmony export */   "faDiceFour": () => (/* binding */ faDiceFour),
/* harmony export */   "faDiceOne": () => (/* binding */ faDiceOne),
/* harmony export */   "faDiceSix": () => (/* binding */ faDiceSix),
/* harmony export */   "faDiceThree": () => (/* binding */ faDiceThree),
/* harmony export */   "faDiceTwo": () => (/* binding */ faDiceTwo),
/* harmony export */   "faDigitalTachograph": () => (/* binding */ faDigitalTachograph),
/* harmony export */   "faDirections": () => (/* binding */ faDirections),
/* harmony export */   "faDisease": () => (/* binding */ faDisease),
/* harmony export */   "faDivide": () => (/* binding */ faDivide),
/* harmony export */   "faDizzy": () => (/* binding */ faDizzy),
/* harmony export */   "faDna": () => (/* binding */ faDna),
/* harmony export */   "faDog": () => (/* binding */ faDog),
/* harmony export */   "faDollarSign": () => (/* binding */ faDollarSign),
/* harmony export */   "faDolly": () => (/* binding */ faDolly),
/* harmony export */   "faDollyFlatbed": () => (/* binding */ faDollyFlatbed),
/* harmony export */   "faDonate": () => (/* binding */ faDonate),
/* harmony export */   "faDoorClosed": () => (/* binding */ faDoorClosed),
/* harmony export */   "faDoorOpen": () => (/* binding */ faDoorOpen),
/* harmony export */   "faDotCircle": () => (/* binding */ faDotCircle),
/* harmony export */   "faDove": () => (/* binding */ faDove),
/* harmony export */   "faDownload": () => (/* binding */ faDownload),
/* harmony export */   "faDraftingCompass": () => (/* binding */ faDraftingCompass),
/* harmony export */   "faDragon": () => (/* binding */ faDragon),
/* harmony export */   "faDrawPolygon": () => (/* binding */ faDrawPolygon),
/* harmony export */   "faDrum": () => (/* binding */ faDrum),
/* harmony export */   "faDrumSteelpan": () => (/* binding */ faDrumSteelpan),
/* harmony export */   "faDrumstickBite": () => (/* binding */ faDrumstickBite),
/* harmony export */   "faDumbbell": () => (/* binding */ faDumbbell),
/* harmony export */   "faDumpster": () => (/* binding */ faDumpster),
/* harmony export */   "faDumpsterFire": () => (/* binding */ faDumpsterFire),
/* harmony export */   "faDungeon": () => (/* binding */ faDungeon),
/* harmony export */   "faEdit": () => (/* binding */ faEdit),
/* harmony export */   "faEgg": () => (/* binding */ faEgg),
/* harmony export */   "faEject": () => (/* binding */ faEject),
/* harmony export */   "faEllipsisH": () => (/* binding */ faEllipsisH),
/* harmony export */   "faEllipsisV": () => (/* binding */ faEllipsisV),
/* harmony export */   "faEnvelope": () => (/* binding */ faEnvelope),
/* harmony export */   "faEnvelopeOpen": () => (/* binding */ faEnvelopeOpen),
/* harmony export */   "faEnvelopeOpenText": () => (/* binding */ faEnvelopeOpenText),
/* harmony export */   "faEnvelopeSquare": () => (/* binding */ faEnvelopeSquare),
/* harmony export */   "faEquals": () => (/* binding */ faEquals),
/* harmony export */   "faEraser": () => (/* binding */ faEraser),
/* harmony export */   "faEthernet": () => (/* binding */ faEthernet),
/* harmony export */   "faEuroSign": () => (/* binding */ faEuroSign),
/* harmony export */   "faExchangeAlt": () => (/* binding */ faExchangeAlt),
/* harmony export */   "faExclamation": () => (/* binding */ faExclamation),
/* harmony export */   "faExclamationCircle": () => (/* binding */ faExclamationCircle),
/* harmony export */   "faExclamationTriangle": () => (/* binding */ faExclamationTriangle),
/* harmony export */   "faExpand": () => (/* binding */ faExpand),
/* harmony export */   "faExpandAlt": () => (/* binding */ faExpandAlt),
/* harmony export */   "faExpandArrowsAlt": () => (/* binding */ faExpandArrowsAlt),
/* harmony export */   "faExternalLinkAlt": () => (/* binding */ faExternalLinkAlt),
/* harmony export */   "faExternalLinkSquareAlt": () => (/* binding */ faExternalLinkSquareAlt),
/* harmony export */   "faEye": () => (/* binding */ faEye),
/* harmony export */   "faEyeDropper": () => (/* binding */ faEyeDropper),
/* harmony export */   "faEyeSlash": () => (/* binding */ faEyeSlash),
/* harmony export */   "faFan": () => (/* binding */ faFan),
/* harmony export */   "faFastBackward": () => (/* binding */ faFastBackward),
/* harmony export */   "faFastForward": () => (/* binding */ faFastForward),
/* harmony export */   "faFaucet": () => (/* binding */ faFaucet),
/* harmony export */   "faFax": () => (/* binding */ faFax),
/* harmony export */   "faFeather": () => (/* binding */ faFeather),
/* harmony export */   "faFeatherAlt": () => (/* binding */ faFeatherAlt),
/* harmony export */   "faFemale": () => (/* binding */ faFemale),
/* harmony export */   "faFighterJet": () => (/* binding */ faFighterJet),
/* harmony export */   "faFile": () => (/* binding */ faFile),
/* harmony export */   "faFileAlt": () => (/* binding */ faFileAlt),
/* harmony export */   "faFileArchive": () => (/* binding */ faFileArchive),
/* harmony export */   "faFileAudio": () => (/* binding */ faFileAudio),
/* harmony export */   "faFileCode": () => (/* binding */ faFileCode),
/* harmony export */   "faFileContract": () => (/* binding */ faFileContract),
/* harmony export */   "faFileCsv": () => (/* binding */ faFileCsv),
/* harmony export */   "faFileDownload": () => (/* binding */ faFileDownload),
/* harmony export */   "faFileExcel": () => (/* binding */ faFileExcel),
/* harmony export */   "faFileExport": () => (/* binding */ faFileExport),
/* harmony export */   "faFileImage": () => (/* binding */ faFileImage),
/* harmony export */   "faFileImport": () => (/* binding */ faFileImport),
/* harmony export */   "faFileInvoice": () => (/* binding */ faFileInvoice),
/* harmony export */   "faFileInvoiceDollar": () => (/* binding */ faFileInvoiceDollar),
/* harmony export */   "faFileMedical": () => (/* binding */ faFileMedical),
/* harmony export */   "faFileMedicalAlt": () => (/* binding */ faFileMedicalAlt),
/* harmony export */   "faFilePdf": () => (/* binding */ faFilePdf),
/* harmony export */   "faFilePowerpoint": () => (/* binding */ faFilePowerpoint),
/* harmony export */   "faFilePrescription": () => (/* binding */ faFilePrescription),
/* harmony export */   "faFileSignature": () => (/* binding */ faFileSignature),
/* harmony export */   "faFileUpload": () => (/* binding */ faFileUpload),
/* harmony export */   "faFileVideo": () => (/* binding */ faFileVideo),
/* harmony export */   "faFileWord": () => (/* binding */ faFileWord),
/* harmony export */   "faFill": () => (/* binding */ faFill),
/* harmony export */   "faFillDrip": () => (/* binding */ faFillDrip),
/* harmony export */   "faFilm": () => (/* binding */ faFilm),
/* harmony export */   "faFilter": () => (/* binding */ faFilter),
/* harmony export */   "faFingerprint": () => (/* binding */ faFingerprint),
/* harmony export */   "faFire": () => (/* binding */ faFire),
/* harmony export */   "faFireAlt": () => (/* binding */ faFireAlt),
/* harmony export */   "faFireExtinguisher": () => (/* binding */ faFireExtinguisher),
/* harmony export */   "faFirstAid": () => (/* binding */ faFirstAid),
/* harmony export */   "faFish": () => (/* binding */ faFish),
/* harmony export */   "faFistRaised": () => (/* binding */ faFistRaised),
/* harmony export */   "faFlag": () => (/* binding */ faFlag),
/* harmony export */   "faFlagCheckered": () => (/* binding */ faFlagCheckered),
/* harmony export */   "faFlagUsa": () => (/* binding */ faFlagUsa),
/* harmony export */   "faFlask": () => (/* binding */ faFlask),
/* harmony export */   "faFlushed": () => (/* binding */ faFlushed),
/* harmony export */   "faFolder": () => (/* binding */ faFolder),
/* harmony export */   "faFolderMinus": () => (/* binding */ faFolderMinus),
/* harmony export */   "faFolderOpen": () => (/* binding */ faFolderOpen),
/* harmony export */   "faFolderPlus": () => (/* binding */ faFolderPlus),
/* harmony export */   "faFont": () => (/* binding */ faFont),
/* harmony export */   "faFontAwesomeLogoFull": () => (/* binding */ faFontAwesomeLogoFull),
/* harmony export */   "faFootballBall": () => (/* binding */ faFootballBall),
/* harmony export */   "faForward": () => (/* binding */ faForward),
/* harmony export */   "faFrog": () => (/* binding */ faFrog),
/* harmony export */   "faFrown": () => (/* binding */ faFrown),
/* harmony export */   "faFrownOpen": () => (/* binding */ faFrownOpen),
/* harmony export */   "faFunnelDollar": () => (/* binding */ faFunnelDollar),
/* harmony export */   "faFutbol": () => (/* binding */ faFutbol),
/* harmony export */   "faGamepad": () => (/* binding */ faGamepad),
/* harmony export */   "faGasPump": () => (/* binding */ faGasPump),
/* harmony export */   "faGavel": () => (/* binding */ faGavel),
/* harmony export */   "faGem": () => (/* binding */ faGem),
/* harmony export */   "faGenderless": () => (/* binding */ faGenderless),
/* harmony export */   "faGhost": () => (/* binding */ faGhost),
/* harmony export */   "faGift": () => (/* binding */ faGift),
/* harmony export */   "faGifts": () => (/* binding */ faGifts),
/* harmony export */   "faGlassCheers": () => (/* binding */ faGlassCheers),
/* harmony export */   "faGlassMartini": () => (/* binding */ faGlassMartini),
/* harmony export */   "faGlassMartiniAlt": () => (/* binding */ faGlassMartiniAlt),
/* harmony export */   "faGlassWhiskey": () => (/* binding */ faGlassWhiskey),
/* harmony export */   "faGlasses": () => (/* binding */ faGlasses),
/* harmony export */   "faGlobe": () => (/* binding */ faGlobe),
/* harmony export */   "faGlobeAfrica": () => (/* binding */ faGlobeAfrica),
/* harmony export */   "faGlobeAmericas": () => (/* binding */ faGlobeAmericas),
/* harmony export */   "faGlobeAsia": () => (/* binding */ faGlobeAsia),
/* harmony export */   "faGlobeEurope": () => (/* binding */ faGlobeEurope),
/* harmony export */   "faGolfBall": () => (/* binding */ faGolfBall),
/* harmony export */   "faGopuram": () => (/* binding */ faGopuram),
/* harmony export */   "faGraduationCap": () => (/* binding */ faGraduationCap),
/* harmony export */   "faGreaterThan": () => (/* binding */ faGreaterThan),
/* harmony export */   "faGreaterThanEqual": () => (/* binding */ faGreaterThanEqual),
/* harmony export */   "faGrimace": () => (/* binding */ faGrimace),
/* harmony export */   "faGrin": () => (/* binding */ faGrin),
/* harmony export */   "faGrinAlt": () => (/* binding */ faGrinAlt),
/* harmony export */   "faGrinBeam": () => (/* binding */ faGrinBeam),
/* harmony export */   "faGrinBeamSweat": () => (/* binding */ faGrinBeamSweat),
/* harmony export */   "faGrinHearts": () => (/* binding */ faGrinHearts),
/* harmony export */   "faGrinSquint": () => (/* binding */ faGrinSquint),
/* harmony export */   "faGrinSquintTears": () => (/* binding */ faGrinSquintTears),
/* harmony export */   "faGrinStars": () => (/* binding */ faGrinStars),
/* harmony export */   "faGrinTears": () => (/* binding */ faGrinTears),
/* harmony export */   "faGrinTongue": () => (/* binding */ faGrinTongue),
/* harmony export */   "faGrinTongueSquint": () => (/* binding */ faGrinTongueSquint),
/* harmony export */   "faGrinTongueWink": () => (/* binding */ faGrinTongueWink),
/* harmony export */   "faGrinWink": () => (/* binding */ faGrinWink),
/* harmony export */   "faGripHorizontal": () => (/* binding */ faGripHorizontal),
/* harmony export */   "faGripLines": () => (/* binding */ faGripLines),
/* harmony export */   "faGripLinesVertical": () => (/* binding */ faGripLinesVertical),
/* harmony export */   "faGripVertical": () => (/* binding */ faGripVertical),
/* harmony export */   "faGuitar": () => (/* binding */ faGuitar),
/* harmony export */   "faHSquare": () => (/* binding */ faHSquare),
/* harmony export */   "faHamburger": () => (/* binding */ faHamburger),
/* harmony export */   "faHammer": () => (/* binding */ faHammer),
/* harmony export */   "faHamsa": () => (/* binding */ faHamsa),
/* harmony export */   "faHandHolding": () => (/* binding */ faHandHolding),
/* harmony export */   "faHandHoldingHeart": () => (/* binding */ faHandHoldingHeart),
/* harmony export */   "faHandHoldingMedical": () => (/* binding */ faHandHoldingMedical),
/* harmony export */   "faHandHoldingUsd": () => (/* binding */ faHandHoldingUsd),
/* harmony export */   "faHandHoldingWater": () => (/* binding */ faHandHoldingWater),
/* harmony export */   "faHandLizard": () => (/* binding */ faHandLizard),
/* harmony export */   "faHandMiddleFinger": () => (/* binding */ faHandMiddleFinger),
/* harmony export */   "faHandPaper": () => (/* binding */ faHandPaper),
/* harmony export */   "faHandPeace": () => (/* binding */ faHandPeace),
/* harmony export */   "faHandPointDown": () => (/* binding */ faHandPointDown),
/* harmony export */   "faHandPointLeft": () => (/* binding */ faHandPointLeft),
/* harmony export */   "faHandPointRight": () => (/* binding */ faHandPointRight),
/* harmony export */   "faHandPointUp": () => (/* binding */ faHandPointUp),
/* harmony export */   "faHandPointer": () => (/* binding */ faHandPointer),
/* harmony export */   "faHandRock": () => (/* binding */ faHandRock),
/* harmony export */   "faHandScissors": () => (/* binding */ faHandScissors),
/* harmony export */   "faHandSparkles": () => (/* binding */ faHandSparkles),
/* harmony export */   "faHandSpock": () => (/* binding */ faHandSpock),
/* harmony export */   "faHands": () => (/* binding */ faHands),
/* harmony export */   "faHandsHelping": () => (/* binding */ faHandsHelping),
/* harmony export */   "faHandsWash": () => (/* binding */ faHandsWash),
/* harmony export */   "faHandshake": () => (/* binding */ faHandshake),
/* harmony export */   "faHandshakeAltSlash": () => (/* binding */ faHandshakeAltSlash),
/* harmony export */   "faHandshakeSlash": () => (/* binding */ faHandshakeSlash),
/* harmony export */   "faHanukiah": () => (/* binding */ faHanukiah),
/* harmony export */   "faHardHat": () => (/* binding */ faHardHat),
/* harmony export */   "faHashtag": () => (/* binding */ faHashtag),
/* harmony export */   "faHatCowboy": () => (/* binding */ faHatCowboy),
/* harmony export */   "faHatCowboySide": () => (/* binding */ faHatCowboySide),
/* harmony export */   "faHatWizard": () => (/* binding */ faHatWizard),
/* harmony export */   "faHdd": () => (/* binding */ faHdd),
/* harmony export */   "faHeadSideCough": () => (/* binding */ faHeadSideCough),
/* harmony export */   "faHeadSideCoughSlash": () => (/* binding */ faHeadSideCoughSlash),
/* harmony export */   "faHeadSideMask": () => (/* binding */ faHeadSideMask),
/* harmony export */   "faHeadSideVirus": () => (/* binding */ faHeadSideVirus),
/* harmony export */   "faHeading": () => (/* binding */ faHeading),
/* harmony export */   "faHeadphones": () => (/* binding */ faHeadphones),
/* harmony export */   "faHeadphonesAlt": () => (/* binding */ faHeadphonesAlt),
/* harmony export */   "faHeadset": () => (/* binding */ faHeadset),
/* harmony export */   "faHeart": () => (/* binding */ faHeart),
/* harmony export */   "faHeartBroken": () => (/* binding */ faHeartBroken),
/* harmony export */   "faHeartbeat": () => (/* binding */ faHeartbeat),
/* harmony export */   "faHelicopter": () => (/* binding */ faHelicopter),
/* harmony export */   "faHighlighter": () => (/* binding */ faHighlighter),
/* harmony export */   "faHiking": () => (/* binding */ faHiking),
/* harmony export */   "faHippo": () => (/* binding */ faHippo),
/* harmony export */   "faHistory": () => (/* binding */ faHistory),
/* harmony export */   "faHockeyPuck": () => (/* binding */ faHockeyPuck),
/* harmony export */   "faHollyBerry": () => (/* binding */ faHollyBerry),
/* harmony export */   "faHome": () => (/* binding */ faHome),
/* harmony export */   "faHorse": () => (/* binding */ faHorse),
/* harmony export */   "faHorseHead": () => (/* binding */ faHorseHead),
/* harmony export */   "faHospital": () => (/* binding */ faHospital),
/* harmony export */   "faHospitalAlt": () => (/* binding */ faHospitalAlt),
/* harmony export */   "faHospitalSymbol": () => (/* binding */ faHospitalSymbol),
/* harmony export */   "faHospitalUser": () => (/* binding */ faHospitalUser),
/* harmony export */   "faHotTub": () => (/* binding */ faHotTub),
/* harmony export */   "faHotdog": () => (/* binding */ faHotdog),
/* harmony export */   "faHotel": () => (/* binding */ faHotel),
/* harmony export */   "faHourglass": () => (/* binding */ faHourglass),
/* harmony export */   "faHourglassEnd": () => (/* binding */ faHourglassEnd),
/* harmony export */   "faHourglassHalf": () => (/* binding */ faHourglassHalf),
/* harmony export */   "faHourglassStart": () => (/* binding */ faHourglassStart),
/* harmony export */   "faHouseDamage": () => (/* binding */ faHouseDamage),
/* harmony export */   "faHouseUser": () => (/* binding */ faHouseUser),
/* harmony export */   "faHryvnia": () => (/* binding */ faHryvnia),
/* harmony export */   "faICursor": () => (/* binding */ faICursor),
/* harmony export */   "faIceCream": () => (/* binding */ faIceCream),
/* harmony export */   "faIcicles": () => (/* binding */ faIcicles),
/* harmony export */   "faIcons": () => (/* binding */ faIcons),
/* harmony export */   "faIdBadge": () => (/* binding */ faIdBadge),
/* harmony export */   "faIdCard": () => (/* binding */ faIdCard),
/* harmony export */   "faIdCardAlt": () => (/* binding */ faIdCardAlt),
/* harmony export */   "faIgloo": () => (/* binding */ faIgloo),
/* harmony export */   "faImage": () => (/* binding */ faImage),
/* harmony export */   "faImages": () => (/* binding */ faImages),
/* harmony export */   "faInbox": () => (/* binding */ faInbox),
/* harmony export */   "faIndent": () => (/* binding */ faIndent),
/* harmony export */   "faIndustry": () => (/* binding */ faIndustry),
/* harmony export */   "faInfinity": () => (/* binding */ faInfinity),
/* harmony export */   "faInfo": () => (/* binding */ faInfo),
/* harmony export */   "faInfoCircle": () => (/* binding */ faInfoCircle),
/* harmony export */   "faItalic": () => (/* binding */ faItalic),
/* harmony export */   "faJedi": () => (/* binding */ faJedi),
/* harmony export */   "faJoint": () => (/* binding */ faJoint),
/* harmony export */   "faJournalWhills": () => (/* binding */ faJournalWhills),
/* harmony export */   "faKaaba": () => (/* binding */ faKaaba),
/* harmony export */   "faKey": () => (/* binding */ faKey),
/* harmony export */   "faKeyboard": () => (/* binding */ faKeyboard),
/* harmony export */   "faKhanda": () => (/* binding */ faKhanda),
/* harmony export */   "faKiss": () => (/* binding */ faKiss),
/* harmony export */   "faKissBeam": () => (/* binding */ faKissBeam),
/* harmony export */   "faKissWinkHeart": () => (/* binding */ faKissWinkHeart),
/* harmony export */   "faKiwiBird": () => (/* binding */ faKiwiBird),
/* harmony export */   "faLandmark": () => (/* binding */ faLandmark),
/* harmony export */   "faLanguage": () => (/* binding */ faLanguage),
/* harmony export */   "faLaptop": () => (/* binding */ faLaptop),
/* harmony export */   "faLaptopCode": () => (/* binding */ faLaptopCode),
/* harmony export */   "faLaptopHouse": () => (/* binding */ faLaptopHouse),
/* harmony export */   "faLaptopMedical": () => (/* binding */ faLaptopMedical),
/* harmony export */   "faLaugh": () => (/* binding */ faLaugh),
/* harmony export */   "faLaughBeam": () => (/* binding */ faLaughBeam),
/* harmony export */   "faLaughSquint": () => (/* binding */ faLaughSquint),
/* harmony export */   "faLaughWink": () => (/* binding */ faLaughWink),
/* harmony export */   "faLayerGroup": () => (/* binding */ faLayerGroup),
/* harmony export */   "faLeaf": () => (/* binding */ faLeaf),
/* harmony export */   "faLemon": () => (/* binding */ faLemon),
/* harmony export */   "faLessThan": () => (/* binding */ faLessThan),
/* harmony export */   "faLessThanEqual": () => (/* binding */ faLessThanEqual),
/* harmony export */   "faLevelDownAlt": () => (/* binding */ faLevelDownAlt),
/* harmony export */   "faLevelUpAlt": () => (/* binding */ faLevelUpAlt),
/* harmony export */   "faLifeRing": () => (/* binding */ faLifeRing),
/* harmony export */   "faLightbulb": () => (/* binding */ faLightbulb),
/* harmony export */   "faLink": () => (/* binding */ faLink),
/* harmony export */   "faLiraSign": () => (/* binding */ faLiraSign),
/* harmony export */   "faList": () => (/* binding */ faList),
/* harmony export */   "faListAlt": () => (/* binding */ faListAlt),
/* harmony export */   "faListOl": () => (/* binding */ faListOl),
/* harmony export */   "faListUl": () => (/* binding */ faListUl),
/* harmony export */   "faLocationArrow": () => (/* binding */ faLocationArrow),
/* harmony export */   "faLock": () => (/* binding */ faLock),
/* harmony export */   "faLockOpen": () => (/* binding */ faLockOpen),
/* harmony export */   "faLongArrowAltDown": () => (/* binding */ faLongArrowAltDown),
/* harmony export */   "faLongArrowAltLeft": () => (/* binding */ faLongArrowAltLeft),
/* harmony export */   "faLongArrowAltRight": () => (/* binding */ faLongArrowAltRight),
/* harmony export */   "faLongArrowAltUp": () => (/* binding */ faLongArrowAltUp),
/* harmony export */   "faLowVision": () => (/* binding */ faLowVision),
/* harmony export */   "faLuggageCart": () => (/* binding */ faLuggageCart),
/* harmony export */   "faLungs": () => (/* binding */ faLungs),
/* harmony export */   "faLungsVirus": () => (/* binding */ faLungsVirus),
/* harmony export */   "faMagic": () => (/* binding */ faMagic),
/* harmony export */   "faMagnet": () => (/* binding */ faMagnet),
/* harmony export */   "faMailBulk": () => (/* binding */ faMailBulk),
/* harmony export */   "faMale": () => (/* binding */ faMale),
/* harmony export */   "faMap": () => (/* binding */ faMap),
/* harmony export */   "faMapMarked": () => (/* binding */ faMapMarked),
/* harmony export */   "faMapMarkedAlt": () => (/* binding */ faMapMarkedAlt),
/* harmony export */   "faMapMarker": () => (/* binding */ faMapMarker),
/* harmony export */   "faMapMarkerAlt": () => (/* binding */ faMapMarkerAlt),
/* harmony export */   "faMapPin": () => (/* binding */ faMapPin),
/* harmony export */   "faMapSigns": () => (/* binding */ faMapSigns),
/* harmony export */   "faMarker": () => (/* binding */ faMarker),
/* harmony export */   "faMars": () => (/* binding */ faMars),
/* harmony export */   "faMarsDouble": () => (/* binding */ faMarsDouble),
/* harmony export */   "faMarsStroke": () => (/* binding */ faMarsStroke),
/* harmony export */   "faMarsStrokeH": () => (/* binding */ faMarsStrokeH),
/* harmony export */   "faMarsStrokeV": () => (/* binding */ faMarsStrokeV),
/* harmony export */   "faMask": () => (/* binding */ faMask),
/* harmony export */   "faMedal": () => (/* binding */ faMedal),
/* harmony export */   "faMedkit": () => (/* binding */ faMedkit),
/* harmony export */   "faMeh": () => (/* binding */ faMeh),
/* harmony export */   "faMehBlank": () => (/* binding */ faMehBlank),
/* harmony export */   "faMehRollingEyes": () => (/* binding */ faMehRollingEyes),
/* harmony export */   "faMemory": () => (/* binding */ faMemory),
/* harmony export */   "faMenorah": () => (/* binding */ faMenorah),
/* harmony export */   "faMercury": () => (/* binding */ faMercury),
/* harmony export */   "faMeteor": () => (/* binding */ faMeteor),
/* harmony export */   "faMicrochip": () => (/* binding */ faMicrochip),
/* harmony export */   "faMicrophone": () => (/* binding */ faMicrophone),
/* harmony export */   "faMicrophoneAlt": () => (/* binding */ faMicrophoneAlt),
/* harmony export */   "faMicrophoneAltSlash": () => (/* binding */ faMicrophoneAltSlash),
/* harmony export */   "faMicrophoneSlash": () => (/* binding */ faMicrophoneSlash),
/* harmony export */   "faMicroscope": () => (/* binding */ faMicroscope),
/* harmony export */   "faMinus": () => (/* binding */ faMinus),
/* harmony export */   "faMinusCircle": () => (/* binding */ faMinusCircle),
/* harmony export */   "faMinusSquare": () => (/* binding */ faMinusSquare),
/* harmony export */   "faMitten": () => (/* binding */ faMitten),
/* harmony export */   "faMobile": () => (/* binding */ faMobile),
/* harmony export */   "faMobileAlt": () => (/* binding */ faMobileAlt),
/* harmony export */   "faMoneyBill": () => (/* binding */ faMoneyBill),
/* harmony export */   "faMoneyBillAlt": () => (/* binding */ faMoneyBillAlt),
/* harmony export */   "faMoneyBillWave": () => (/* binding */ faMoneyBillWave),
/* harmony export */   "faMoneyBillWaveAlt": () => (/* binding */ faMoneyBillWaveAlt),
/* harmony export */   "faMoneyCheck": () => (/* binding */ faMoneyCheck),
/* harmony export */   "faMoneyCheckAlt": () => (/* binding */ faMoneyCheckAlt),
/* harmony export */   "faMonument": () => (/* binding */ faMonument),
/* harmony export */   "faMoon": () => (/* binding */ faMoon),
/* harmony export */   "faMortarPestle": () => (/* binding */ faMortarPestle),
/* harmony export */   "faMosque": () => (/* binding */ faMosque),
/* harmony export */   "faMotorcycle": () => (/* binding */ faMotorcycle),
/* harmony export */   "faMountain": () => (/* binding */ faMountain),
/* harmony export */   "faMouse": () => (/* binding */ faMouse),
/* harmony export */   "faMousePointer": () => (/* binding */ faMousePointer),
/* harmony export */   "faMugHot": () => (/* binding */ faMugHot),
/* harmony export */   "faMusic": () => (/* binding */ faMusic),
/* harmony export */   "faNetworkWired": () => (/* binding */ faNetworkWired),
/* harmony export */   "faNeuter": () => (/* binding */ faNeuter),
/* harmony export */   "faNewspaper": () => (/* binding */ faNewspaper),
/* harmony export */   "faNotEqual": () => (/* binding */ faNotEqual),
/* harmony export */   "faNotesMedical": () => (/* binding */ faNotesMedical),
/* harmony export */   "faObjectGroup": () => (/* binding */ faObjectGroup),
/* harmony export */   "faObjectUngroup": () => (/* binding */ faObjectUngroup),
/* harmony export */   "faOilCan": () => (/* binding */ faOilCan),
/* harmony export */   "faOm": () => (/* binding */ faOm),
/* harmony export */   "faOtter": () => (/* binding */ faOtter),
/* harmony export */   "faOutdent": () => (/* binding */ faOutdent),
/* harmony export */   "faPager": () => (/* binding */ faPager),
/* harmony export */   "faPaintBrush": () => (/* binding */ faPaintBrush),
/* harmony export */   "faPaintRoller": () => (/* binding */ faPaintRoller),
/* harmony export */   "faPalette": () => (/* binding */ faPalette),
/* harmony export */   "faPallet": () => (/* binding */ faPallet),
/* harmony export */   "faPaperPlane": () => (/* binding */ faPaperPlane),
/* harmony export */   "faPaperclip": () => (/* binding */ faPaperclip),
/* harmony export */   "faParachuteBox": () => (/* binding */ faParachuteBox),
/* harmony export */   "faParagraph": () => (/* binding */ faParagraph),
/* harmony export */   "faParking": () => (/* binding */ faParking),
/* harmony export */   "faPassport": () => (/* binding */ faPassport),
/* harmony export */   "faPastafarianism": () => (/* binding */ faPastafarianism),
/* harmony export */   "faPaste": () => (/* binding */ faPaste),
/* harmony export */   "faPause": () => (/* binding */ faPause),
/* harmony export */   "faPauseCircle": () => (/* binding */ faPauseCircle),
/* harmony export */   "faPaw": () => (/* binding */ faPaw),
/* harmony export */   "faPeace": () => (/* binding */ faPeace),
/* harmony export */   "faPen": () => (/* binding */ faPen),
/* harmony export */   "faPenAlt": () => (/* binding */ faPenAlt),
/* harmony export */   "faPenFancy": () => (/* binding */ faPenFancy),
/* harmony export */   "faPenNib": () => (/* binding */ faPenNib),
/* harmony export */   "faPenSquare": () => (/* binding */ faPenSquare),
/* harmony export */   "faPencilAlt": () => (/* binding */ faPencilAlt),
/* harmony export */   "faPencilRuler": () => (/* binding */ faPencilRuler),
/* harmony export */   "faPeopleArrows": () => (/* binding */ faPeopleArrows),
/* harmony export */   "faPeopleCarry": () => (/* binding */ faPeopleCarry),
/* harmony export */   "faPepperHot": () => (/* binding */ faPepperHot),
/* harmony export */   "faPercent": () => (/* binding */ faPercent),
/* harmony export */   "faPercentage": () => (/* binding */ faPercentage),
/* harmony export */   "faPersonBooth": () => (/* binding */ faPersonBooth),
/* harmony export */   "faPhone": () => (/* binding */ faPhone),
/* harmony export */   "faPhoneAlt": () => (/* binding */ faPhoneAlt),
/* harmony export */   "faPhoneSlash": () => (/* binding */ faPhoneSlash),
/* harmony export */   "faPhoneSquare": () => (/* binding */ faPhoneSquare),
/* harmony export */   "faPhoneSquareAlt": () => (/* binding */ faPhoneSquareAlt),
/* harmony export */   "faPhoneVolume": () => (/* binding */ faPhoneVolume),
/* harmony export */   "faPhotoVideo": () => (/* binding */ faPhotoVideo),
/* harmony export */   "faPiggyBank": () => (/* binding */ faPiggyBank),
/* harmony export */   "faPills": () => (/* binding */ faPills),
/* harmony export */   "faPizzaSlice": () => (/* binding */ faPizzaSlice),
/* harmony export */   "faPlaceOfWorship": () => (/* binding */ faPlaceOfWorship),
/* harmony export */   "faPlane": () => (/* binding */ faPlane),
/* harmony export */   "faPlaneArrival": () => (/* binding */ faPlaneArrival),
/* harmony export */   "faPlaneDeparture": () => (/* binding */ faPlaneDeparture),
/* harmony export */   "faPlaneSlash": () => (/* binding */ faPlaneSlash),
/* harmony export */   "faPlay": () => (/* binding */ faPlay),
/* harmony export */   "faPlayCircle": () => (/* binding */ faPlayCircle),
/* harmony export */   "faPlug": () => (/* binding */ faPlug),
/* harmony export */   "faPlus": () => (/* binding */ faPlus),
/* harmony export */   "faPlusCircle": () => (/* binding */ faPlusCircle),
/* harmony export */   "faPlusSquare": () => (/* binding */ faPlusSquare),
/* harmony export */   "faPodcast": () => (/* binding */ faPodcast),
/* harmony export */   "faPoll": () => (/* binding */ faPoll),
/* harmony export */   "faPollH": () => (/* binding */ faPollH),
/* harmony export */   "faPoo": () => (/* binding */ faPoo),
/* harmony export */   "faPooStorm": () => (/* binding */ faPooStorm),
/* harmony export */   "faPoop": () => (/* binding */ faPoop),
/* harmony export */   "faPortrait": () => (/* binding */ faPortrait),
/* harmony export */   "faPoundSign": () => (/* binding */ faPoundSign),
/* harmony export */   "faPowerOff": () => (/* binding */ faPowerOff),
/* harmony export */   "faPray": () => (/* binding */ faPray),
/* harmony export */   "faPrayingHands": () => (/* binding */ faPrayingHands),
/* harmony export */   "faPrescription": () => (/* binding */ faPrescription),
/* harmony export */   "faPrescriptionBottle": () => (/* binding */ faPrescriptionBottle),
/* harmony export */   "faPrescriptionBottleAlt": () => (/* binding */ faPrescriptionBottleAlt),
/* harmony export */   "faPrint": () => (/* binding */ faPrint),
/* harmony export */   "faProcedures": () => (/* binding */ faProcedures),
/* harmony export */   "faProjectDiagram": () => (/* binding */ faProjectDiagram),
/* harmony export */   "faPumpMedical": () => (/* binding */ faPumpMedical),
/* harmony export */   "faPumpSoap": () => (/* binding */ faPumpSoap),
/* harmony export */   "faPuzzlePiece": () => (/* binding */ faPuzzlePiece),
/* harmony export */   "faQrcode": () => (/* binding */ faQrcode),
/* harmony export */   "faQuestion": () => (/* binding */ faQuestion),
/* harmony export */   "faQuestionCircle": () => (/* binding */ faQuestionCircle),
/* harmony export */   "faQuidditch": () => (/* binding */ faQuidditch),
/* harmony export */   "faQuoteLeft": () => (/* binding */ faQuoteLeft),
/* harmony export */   "faQuoteRight": () => (/* binding */ faQuoteRight),
/* harmony export */   "faQuran": () => (/* binding */ faQuran),
/* harmony export */   "faRadiation": () => (/* binding */ faRadiation),
/* harmony export */   "faRadiationAlt": () => (/* binding */ faRadiationAlt),
/* harmony export */   "faRainbow": () => (/* binding */ faRainbow),
/* harmony export */   "faRandom": () => (/* binding */ faRandom),
/* harmony export */   "faReceipt": () => (/* binding */ faReceipt),
/* harmony export */   "faRecordVinyl": () => (/* binding */ faRecordVinyl),
/* harmony export */   "faRecycle": () => (/* binding */ faRecycle),
/* harmony export */   "faRedo": () => (/* binding */ faRedo),
/* harmony export */   "faRedoAlt": () => (/* binding */ faRedoAlt),
/* harmony export */   "faRegistered": () => (/* binding */ faRegistered),
/* harmony export */   "faRemoveFormat": () => (/* binding */ faRemoveFormat),
/* harmony export */   "faReply": () => (/* binding */ faReply),
/* harmony export */   "faReplyAll": () => (/* binding */ faReplyAll),
/* harmony export */   "faRepublican": () => (/* binding */ faRepublican),
/* harmony export */   "faRestroom": () => (/* binding */ faRestroom),
/* harmony export */   "faRetweet": () => (/* binding */ faRetweet),
/* harmony export */   "faRibbon": () => (/* binding */ faRibbon),
/* harmony export */   "faRing": () => (/* binding */ faRing),
/* harmony export */   "faRoad": () => (/* binding */ faRoad),
/* harmony export */   "faRobot": () => (/* binding */ faRobot),
/* harmony export */   "faRocket": () => (/* binding */ faRocket),
/* harmony export */   "faRoute": () => (/* binding */ faRoute),
/* harmony export */   "faRss": () => (/* binding */ faRss),
/* harmony export */   "faRssSquare": () => (/* binding */ faRssSquare),
/* harmony export */   "faRubleSign": () => (/* binding */ faRubleSign),
/* harmony export */   "faRuler": () => (/* binding */ faRuler),
/* harmony export */   "faRulerCombined": () => (/* binding */ faRulerCombined),
/* harmony export */   "faRulerHorizontal": () => (/* binding */ faRulerHorizontal),
/* harmony export */   "faRulerVertical": () => (/* binding */ faRulerVertical),
/* harmony export */   "faRunning": () => (/* binding */ faRunning),
/* harmony export */   "faRupeeSign": () => (/* binding */ faRupeeSign),
/* harmony export */   "faSadCry": () => (/* binding */ faSadCry),
/* harmony export */   "faSadTear": () => (/* binding */ faSadTear),
/* harmony export */   "faSatellite": () => (/* binding */ faSatellite),
/* harmony export */   "faSatelliteDish": () => (/* binding */ faSatelliteDish),
/* harmony export */   "faSave": () => (/* binding */ faSave),
/* harmony export */   "faSchool": () => (/* binding */ faSchool),
/* harmony export */   "faScrewdriver": () => (/* binding */ faScrewdriver),
/* harmony export */   "faScroll": () => (/* binding */ faScroll),
/* harmony export */   "faSdCard": () => (/* binding */ faSdCard),
/* harmony export */   "faSearch": () => (/* binding */ faSearch),
/* harmony export */   "faSearchDollar": () => (/* binding */ faSearchDollar),
/* harmony export */   "faSearchLocation": () => (/* binding */ faSearchLocation),
/* harmony export */   "faSearchMinus": () => (/* binding */ faSearchMinus),
/* harmony export */   "faSearchPlus": () => (/* binding */ faSearchPlus),
/* harmony export */   "faSeedling": () => (/* binding */ faSeedling),
/* harmony export */   "faServer": () => (/* binding */ faServer),
/* harmony export */   "faShapes": () => (/* binding */ faShapes),
/* harmony export */   "faShare": () => (/* binding */ faShare),
/* harmony export */   "faShareAlt": () => (/* binding */ faShareAlt),
/* harmony export */   "faShareAltSquare": () => (/* binding */ faShareAltSquare),
/* harmony export */   "faShareSquare": () => (/* binding */ faShareSquare),
/* harmony export */   "faShekelSign": () => (/* binding */ faShekelSign),
/* harmony export */   "faShieldAlt": () => (/* binding */ faShieldAlt),
/* harmony export */   "faShieldVirus": () => (/* binding */ faShieldVirus),
/* harmony export */   "faShip": () => (/* binding */ faShip),
/* harmony export */   "faShippingFast": () => (/* binding */ faShippingFast),
/* harmony export */   "faShoePrints": () => (/* binding */ faShoePrints),
/* harmony export */   "faShoppingBag": () => (/* binding */ faShoppingBag),
/* harmony export */   "faShoppingBasket": () => (/* binding */ faShoppingBasket),
/* harmony export */   "faShoppingCart": () => (/* binding */ faShoppingCart),
/* harmony export */   "faShower": () => (/* binding */ faShower),
/* harmony export */   "faShuttleVan": () => (/* binding */ faShuttleVan),
/* harmony export */   "faSign": () => (/* binding */ faSign),
/* harmony export */   "faSignInAlt": () => (/* binding */ faSignInAlt),
/* harmony export */   "faSignLanguage": () => (/* binding */ faSignLanguage),
/* harmony export */   "faSignOutAlt": () => (/* binding */ faSignOutAlt),
/* harmony export */   "faSignal": () => (/* binding */ faSignal),
/* harmony export */   "faSignature": () => (/* binding */ faSignature),
/* harmony export */   "faSimCard": () => (/* binding */ faSimCard),
/* harmony export */   "faSink": () => (/* binding */ faSink),
/* harmony export */   "faSitemap": () => (/* binding */ faSitemap),
/* harmony export */   "faSkating": () => (/* binding */ faSkating),
/* harmony export */   "faSkiing": () => (/* binding */ faSkiing),
/* harmony export */   "faSkiingNordic": () => (/* binding */ faSkiingNordic),
/* harmony export */   "faSkull": () => (/* binding */ faSkull),
/* harmony export */   "faSkullCrossbones": () => (/* binding */ faSkullCrossbones),
/* harmony export */   "faSlash": () => (/* binding */ faSlash),
/* harmony export */   "faSleigh": () => (/* binding */ faSleigh),
/* harmony export */   "faSlidersH": () => (/* binding */ faSlidersH),
/* harmony export */   "faSmile": () => (/* binding */ faSmile),
/* harmony export */   "faSmileBeam": () => (/* binding */ faSmileBeam),
/* harmony export */   "faSmileWink": () => (/* binding */ faSmileWink),
/* harmony export */   "faSmog": () => (/* binding */ faSmog),
/* harmony export */   "faSmoking": () => (/* binding */ faSmoking),
/* harmony export */   "faSmokingBan": () => (/* binding */ faSmokingBan),
/* harmony export */   "faSms": () => (/* binding */ faSms),
/* harmony export */   "faSnowboarding": () => (/* binding */ faSnowboarding),
/* harmony export */   "faSnowflake": () => (/* binding */ faSnowflake),
/* harmony export */   "faSnowman": () => (/* binding */ faSnowman),
/* harmony export */   "faSnowplow": () => (/* binding */ faSnowplow),
/* harmony export */   "faSoap": () => (/* binding */ faSoap),
/* harmony export */   "faSocks": () => (/* binding */ faSocks),
/* harmony export */   "faSolarPanel": () => (/* binding */ faSolarPanel),
/* harmony export */   "faSort": () => (/* binding */ faSort),
/* harmony export */   "faSortAlphaDown": () => (/* binding */ faSortAlphaDown),
/* harmony export */   "faSortAlphaDownAlt": () => (/* binding */ faSortAlphaDownAlt),
/* harmony export */   "faSortAlphaUp": () => (/* binding */ faSortAlphaUp),
/* harmony export */   "faSortAlphaUpAlt": () => (/* binding */ faSortAlphaUpAlt),
/* harmony export */   "faSortAmountDown": () => (/* binding */ faSortAmountDown),
/* harmony export */   "faSortAmountDownAlt": () => (/* binding */ faSortAmountDownAlt),
/* harmony export */   "faSortAmountUp": () => (/* binding */ faSortAmountUp),
/* harmony export */   "faSortAmountUpAlt": () => (/* binding */ faSortAmountUpAlt),
/* harmony export */   "faSortDown": () => (/* binding */ faSortDown),
/* harmony export */   "faSortNumericDown": () => (/* binding */ faSortNumericDown),
/* harmony export */   "faSortNumericDownAlt": () => (/* binding */ faSortNumericDownAlt),
/* harmony export */   "faSortNumericUp": () => (/* binding */ faSortNumericUp),
/* harmony export */   "faSortNumericUpAlt": () => (/* binding */ faSortNumericUpAlt),
/* harmony export */   "faSortUp": () => (/* binding */ faSortUp),
/* harmony export */   "faSpa": () => (/* binding */ faSpa),
/* harmony export */   "faSpaceShuttle": () => (/* binding */ faSpaceShuttle),
/* harmony export */   "faSpellCheck": () => (/* binding */ faSpellCheck),
/* harmony export */   "faSpider": () => (/* binding */ faSpider),
/* harmony export */   "faSpinner": () => (/* binding */ faSpinner),
/* harmony export */   "faSplotch": () => (/* binding */ faSplotch),
/* harmony export */   "faSprayCan": () => (/* binding */ faSprayCan),
/* harmony export */   "faSquare": () => (/* binding */ faSquare),
/* harmony export */   "faSquareFull": () => (/* binding */ faSquareFull),
/* harmony export */   "faSquareRootAlt": () => (/* binding */ faSquareRootAlt),
/* harmony export */   "faStamp": () => (/* binding */ faStamp),
/* harmony export */   "faStar": () => (/* binding */ faStar),
/* harmony export */   "faStarAndCrescent": () => (/* binding */ faStarAndCrescent),
/* harmony export */   "faStarHalf": () => (/* binding */ faStarHalf),
/* harmony export */   "faStarHalfAlt": () => (/* binding */ faStarHalfAlt),
/* harmony export */   "faStarOfDavid": () => (/* binding */ faStarOfDavid),
/* harmony export */   "faStarOfLife": () => (/* binding */ faStarOfLife),
/* harmony export */   "faStepBackward": () => (/* binding */ faStepBackward),
/* harmony export */   "faStepForward": () => (/* binding */ faStepForward),
/* harmony export */   "faStethoscope": () => (/* binding */ faStethoscope),
/* harmony export */   "faStickyNote": () => (/* binding */ faStickyNote),
/* harmony export */   "faStop": () => (/* binding */ faStop),
/* harmony export */   "faStopCircle": () => (/* binding */ faStopCircle),
/* harmony export */   "faStopwatch": () => (/* binding */ faStopwatch),
/* harmony export */   "faStopwatch20": () => (/* binding */ faStopwatch20),
/* harmony export */   "faStore": () => (/* binding */ faStore),
/* harmony export */   "faStoreAlt": () => (/* binding */ faStoreAlt),
/* harmony export */   "faStoreAltSlash": () => (/* binding */ faStoreAltSlash),
/* harmony export */   "faStoreSlash": () => (/* binding */ faStoreSlash),
/* harmony export */   "faStream": () => (/* binding */ faStream),
/* harmony export */   "faStreetView": () => (/* binding */ faStreetView),
/* harmony export */   "faStrikethrough": () => (/* binding */ faStrikethrough),
/* harmony export */   "faStroopwafel": () => (/* binding */ faStroopwafel),
/* harmony export */   "faSubscript": () => (/* binding */ faSubscript),
/* harmony export */   "faSubway": () => (/* binding */ faSubway),
/* harmony export */   "faSuitcase": () => (/* binding */ faSuitcase),
/* harmony export */   "faSuitcaseRolling": () => (/* binding */ faSuitcaseRolling),
/* harmony export */   "faSun": () => (/* binding */ faSun),
/* harmony export */   "faSuperscript": () => (/* binding */ faSuperscript),
/* harmony export */   "faSurprise": () => (/* binding */ faSurprise),
/* harmony export */   "faSwatchbook": () => (/* binding */ faSwatchbook),
/* harmony export */   "faSwimmer": () => (/* binding */ faSwimmer),
/* harmony export */   "faSwimmingPool": () => (/* binding */ faSwimmingPool),
/* harmony export */   "faSynagogue": () => (/* binding */ faSynagogue),
/* harmony export */   "faSync": () => (/* binding */ faSync),
/* harmony export */   "faSyncAlt": () => (/* binding */ faSyncAlt),
/* harmony export */   "faSyringe": () => (/* binding */ faSyringe),
/* harmony export */   "faTable": () => (/* binding */ faTable),
/* harmony export */   "faTableTennis": () => (/* binding */ faTableTennis),
/* harmony export */   "faTablet": () => (/* binding */ faTablet),
/* harmony export */   "faTabletAlt": () => (/* binding */ faTabletAlt),
/* harmony export */   "faTablets": () => (/* binding */ faTablets),
/* harmony export */   "faTachometerAlt": () => (/* binding */ faTachometerAlt),
/* harmony export */   "faTag": () => (/* binding */ faTag),
/* harmony export */   "faTags": () => (/* binding */ faTags),
/* harmony export */   "faTape": () => (/* binding */ faTape),
/* harmony export */   "faTasks": () => (/* binding */ faTasks),
/* harmony export */   "faTaxi": () => (/* binding */ faTaxi),
/* harmony export */   "faTeeth": () => (/* binding */ faTeeth),
/* harmony export */   "faTeethOpen": () => (/* binding */ faTeethOpen),
/* harmony export */   "faTemperatureHigh": () => (/* binding */ faTemperatureHigh),
/* harmony export */   "faTemperatureLow": () => (/* binding */ faTemperatureLow),
/* harmony export */   "faTenge": () => (/* binding */ faTenge),
/* harmony export */   "faTerminal": () => (/* binding */ faTerminal),
/* harmony export */   "faTextHeight": () => (/* binding */ faTextHeight),
/* harmony export */   "faTextWidth": () => (/* binding */ faTextWidth),
/* harmony export */   "faTh": () => (/* binding */ faTh),
/* harmony export */   "faThLarge": () => (/* binding */ faThLarge),
/* harmony export */   "faThList": () => (/* binding */ faThList),
/* harmony export */   "faTheaterMasks": () => (/* binding */ faTheaterMasks),
/* harmony export */   "faThermometer": () => (/* binding */ faThermometer),
/* harmony export */   "faThermometerEmpty": () => (/* binding */ faThermometerEmpty),
/* harmony export */   "faThermometerFull": () => (/* binding */ faThermometerFull),
/* harmony export */   "faThermometerHalf": () => (/* binding */ faThermometerHalf),
/* harmony export */   "faThermometerQuarter": () => (/* binding */ faThermometerQuarter),
/* harmony export */   "faThermometerThreeQuarters": () => (/* binding */ faThermometerThreeQuarters),
/* harmony export */   "faThumbsDown": () => (/* binding */ faThumbsDown),
/* harmony export */   "faThumbsUp": () => (/* binding */ faThumbsUp),
/* harmony export */   "faThumbtack": () => (/* binding */ faThumbtack),
/* harmony export */   "faTicketAlt": () => (/* binding */ faTicketAlt),
/* harmony export */   "faTimes": () => (/* binding */ faTimes),
/* harmony export */   "faTimesCircle": () => (/* binding */ faTimesCircle),
/* harmony export */   "faTint": () => (/* binding */ faTint),
/* harmony export */   "faTintSlash": () => (/* binding */ faTintSlash),
/* harmony export */   "faTired": () => (/* binding */ faTired),
/* harmony export */   "faToggleOff": () => (/* binding */ faToggleOff),
/* harmony export */   "faToggleOn": () => (/* binding */ faToggleOn),
/* harmony export */   "faToilet": () => (/* binding */ faToilet),
/* harmony export */   "faToiletPaper": () => (/* binding */ faToiletPaper),
/* harmony export */   "faToiletPaperSlash": () => (/* binding */ faToiletPaperSlash),
/* harmony export */   "faToolbox": () => (/* binding */ faToolbox),
/* harmony export */   "faTools": () => (/* binding */ faTools),
/* harmony export */   "faTooth": () => (/* binding */ faTooth),
/* harmony export */   "faTorah": () => (/* binding */ faTorah),
/* harmony export */   "faToriiGate": () => (/* binding */ faToriiGate),
/* harmony export */   "faTractor": () => (/* binding */ faTractor),
/* harmony export */   "faTrademark": () => (/* binding */ faTrademark),
/* harmony export */   "faTrafficLight": () => (/* binding */ faTrafficLight),
/* harmony export */   "faTrailer": () => (/* binding */ faTrailer),
/* harmony export */   "faTrain": () => (/* binding */ faTrain),
/* harmony export */   "faTram": () => (/* binding */ faTram),
/* harmony export */   "faTransgender": () => (/* binding */ faTransgender),
/* harmony export */   "faTransgenderAlt": () => (/* binding */ faTransgenderAlt),
/* harmony export */   "faTrash": () => (/* binding */ faTrash),
/* harmony export */   "faTrashAlt": () => (/* binding */ faTrashAlt),
/* harmony export */   "faTrashRestore": () => (/* binding */ faTrashRestore),
/* harmony export */   "faTrashRestoreAlt": () => (/* binding */ faTrashRestoreAlt),
/* harmony export */   "faTree": () => (/* binding */ faTree),
/* harmony export */   "faTrophy": () => (/* binding */ faTrophy),
/* harmony export */   "faTruck": () => (/* binding */ faTruck),
/* harmony export */   "faTruckLoading": () => (/* binding */ faTruckLoading),
/* harmony export */   "faTruckMonster": () => (/* binding */ faTruckMonster),
/* harmony export */   "faTruckMoving": () => (/* binding */ faTruckMoving),
/* harmony export */   "faTruckPickup": () => (/* binding */ faTruckPickup),
/* harmony export */   "faTshirt": () => (/* binding */ faTshirt),
/* harmony export */   "faTty": () => (/* binding */ faTty),
/* harmony export */   "faTv": () => (/* binding */ faTv),
/* harmony export */   "faUmbrella": () => (/* binding */ faUmbrella),
/* harmony export */   "faUmbrellaBeach": () => (/* binding */ faUmbrellaBeach),
/* harmony export */   "faUnderline": () => (/* binding */ faUnderline),
/* harmony export */   "faUndo": () => (/* binding */ faUndo),
/* harmony export */   "faUndoAlt": () => (/* binding */ faUndoAlt),
/* harmony export */   "faUniversalAccess": () => (/* binding */ faUniversalAccess),
/* harmony export */   "faUniversity": () => (/* binding */ faUniversity),
/* harmony export */   "faUnlink": () => (/* binding */ faUnlink),
/* harmony export */   "faUnlock": () => (/* binding */ faUnlock),
/* harmony export */   "faUnlockAlt": () => (/* binding */ faUnlockAlt),
/* harmony export */   "faUpload": () => (/* binding */ faUpload),
/* harmony export */   "faUser": () => (/* binding */ faUser),
/* harmony export */   "faUserAlt": () => (/* binding */ faUserAlt),
/* harmony export */   "faUserAltSlash": () => (/* binding */ faUserAltSlash),
/* harmony export */   "faUserAstronaut": () => (/* binding */ faUserAstronaut),
/* harmony export */   "faUserCheck": () => (/* binding */ faUserCheck),
/* harmony export */   "faUserCircle": () => (/* binding */ faUserCircle),
/* harmony export */   "faUserClock": () => (/* binding */ faUserClock),
/* harmony export */   "faUserCog": () => (/* binding */ faUserCog),
/* harmony export */   "faUserEdit": () => (/* binding */ faUserEdit),
/* harmony export */   "faUserFriends": () => (/* binding */ faUserFriends),
/* harmony export */   "faUserGraduate": () => (/* binding */ faUserGraduate),
/* harmony export */   "faUserInjured": () => (/* binding */ faUserInjured),
/* harmony export */   "faUserLock": () => (/* binding */ faUserLock),
/* harmony export */   "faUserMd": () => (/* binding */ faUserMd),
/* harmony export */   "faUserMinus": () => (/* binding */ faUserMinus),
/* harmony export */   "faUserNinja": () => (/* binding */ faUserNinja),
/* harmony export */   "faUserNurse": () => (/* binding */ faUserNurse),
/* harmony export */   "faUserPlus": () => (/* binding */ faUserPlus),
/* harmony export */   "faUserSecret": () => (/* binding */ faUserSecret),
/* harmony export */   "faUserShield": () => (/* binding */ faUserShield),
/* harmony export */   "faUserSlash": () => (/* binding */ faUserSlash),
/* harmony export */   "faUserTag": () => (/* binding */ faUserTag),
/* harmony export */   "faUserTie": () => (/* binding */ faUserTie),
/* harmony export */   "faUserTimes": () => (/* binding */ faUserTimes),
/* harmony export */   "faUsers": () => (/* binding */ faUsers),
/* harmony export */   "faUsersCog": () => (/* binding */ faUsersCog),
/* harmony export */   "faUsersSlash": () => (/* binding */ faUsersSlash),
/* harmony export */   "faUtensilSpoon": () => (/* binding */ faUtensilSpoon),
/* harmony export */   "faUtensils": () => (/* binding */ faUtensils),
/* harmony export */   "faVectorSquare": () => (/* binding */ faVectorSquare),
/* harmony export */   "faVenus": () => (/* binding */ faVenus),
/* harmony export */   "faVenusDouble": () => (/* binding */ faVenusDouble),
/* harmony export */   "faVenusMars": () => (/* binding */ faVenusMars),
/* harmony export */   "faVest": () => (/* binding */ faVest),
/* harmony export */   "faVestPatches": () => (/* binding */ faVestPatches),
/* harmony export */   "faVial": () => (/* binding */ faVial),
/* harmony export */   "faVials": () => (/* binding */ faVials),
/* harmony export */   "faVideo": () => (/* binding */ faVideo),
/* harmony export */   "faVideoSlash": () => (/* binding */ faVideoSlash),
/* harmony export */   "faVihara": () => (/* binding */ faVihara),
/* harmony export */   "faVirus": () => (/* binding */ faVirus),
/* harmony export */   "faVirusSlash": () => (/* binding */ faVirusSlash),
/* harmony export */   "faViruses": () => (/* binding */ faViruses),
/* harmony export */   "faVoicemail": () => (/* binding */ faVoicemail),
/* harmony export */   "faVolleyballBall": () => (/* binding */ faVolleyballBall),
/* harmony export */   "faVolumeDown": () => (/* binding */ faVolumeDown),
/* harmony export */   "faVolumeMute": () => (/* binding */ faVolumeMute),
/* harmony export */   "faVolumeOff": () => (/* binding */ faVolumeOff),
/* harmony export */   "faVolumeUp": () => (/* binding */ faVolumeUp),
/* harmony export */   "faVoteYea": () => (/* binding */ faVoteYea),
/* harmony export */   "faVrCardboard": () => (/* binding */ faVrCardboard),
/* harmony export */   "faWalking": () => (/* binding */ faWalking),
/* harmony export */   "faWallet": () => (/* binding */ faWallet),
/* harmony export */   "faWarehouse": () => (/* binding */ faWarehouse),
/* harmony export */   "faWater": () => (/* binding */ faWater),
/* harmony export */   "faWaveSquare": () => (/* binding */ faWaveSquare),
/* harmony export */   "faWeight": () => (/* binding */ faWeight),
/* harmony export */   "faWeightHanging": () => (/* binding */ faWeightHanging),
/* harmony export */   "faWheelchair": () => (/* binding */ faWheelchair),
/* harmony export */   "faWifi": () => (/* binding */ faWifi),
/* harmony export */   "faWind": () => (/* binding */ faWind),
/* harmony export */   "faWindowClose": () => (/* binding */ faWindowClose),
/* harmony export */   "faWindowMaximize": () => (/* binding */ faWindowMaximize),
/* harmony export */   "faWindowMinimize": () => (/* binding */ faWindowMinimize),
/* harmony export */   "faWindowRestore": () => (/* binding */ faWindowRestore),
/* harmony export */   "faWineBottle": () => (/* binding */ faWineBottle),
/* harmony export */   "faWineGlass": () => (/* binding */ faWineGlass),
/* harmony export */   "faWineGlassAlt": () => (/* binding */ faWineGlassAlt),
/* harmony export */   "faWonSign": () => (/* binding */ faWonSign),
/* harmony export */   "faWrench": () => (/* binding */ faWrench),
/* harmony export */   "faXRay": () => (/* binding */ faXRay),
/* harmony export */   "faYenSign": () => (/* binding */ faYenSign),
/* harmony export */   "faYinYang": () => (/* binding */ faYinYang)
/* harmony export */ });
/*!
 * Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
 */
var prefix = "fas";
var faAd = {
  prefix: 'fas',
  iconName: 'ad',
  icon: [512, 512, [], "f641", "M157.52 272h36.96L176 218.78 157.52 272zM352 256c-13.23 0-24 10.77-24 24s10.77 24 24 24 24-10.77 24-24-10.77-24-24-24zM464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM250.58 352h-16.94c-6.81 0-12.88-4.32-15.12-10.75L211.15 320h-70.29l-7.38 21.25A16 16 0 0 1 118.36 352h-16.94c-11.01 0-18.73-10.85-15.12-21.25L140 176.12A23.995 23.995 0 0 1 162.67 160h26.66A23.99 23.99 0 0 1 212 176.13l53.69 154.62c3.61 10.4-4.11 21.25-15.11 21.25zM424 336c0 8.84-7.16 16-16 16h-16c-4.85 0-9.04-2.27-11.98-5.68-8.62 3.66-18.09 5.68-28.02 5.68-39.7 0-72-32.3-72-72s32.3-72 72-72c8.46 0 16.46 1.73 24 4.42V176c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v160z"]
};
var faAddressBook = {
  prefix: 'fas',
  iconName: 'address-book',
  icon: [448, 512, [], "f2b9", "M436 160c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20zm-228-32c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H118.4C106 384 96 375.4 96 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"]
};
var faAddressCard = {
  prefix: 'fas',
  iconName: 'address-card',
  icon: [576, 512, [], "f2bb", "M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-352 96c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H86.4C74 384 64 375.4 64 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2zM512 312c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-64c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-64c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16z"]
};
var faAdjust = {
  prefix: 'fas',
  iconName: 'adjust',
  icon: [512, 512, [], "f042", "M8 256c0 136.966 111.033 248 248 248s248-111.034 248-248S392.966 8 256 8 8 119.033 8 256zm248 184V72c101.705 0 184 82.311 184 184 0 101.705-82.311 184-184 184z"]
};
var faAirFreshener = {
  prefix: 'fas',
  iconName: 'air-freshener',
  icon: [512, 512, [], "f5d0", "M224 160H96C43 160 0 203 0 256V480C0 497.625 14.375 512 32 512H288C305.625 512 320 497.625 320 480V256C320 203 277 160 224 160ZM160 416C115.875 416 80 380.125 80 336S115.875 256 160 256S240 291.875 240 336S204.125 416 160 416ZM224 32C224 14.375 209.625 0 192 0H128C110.375 0 96 14.375 96 32V128H224V32ZM381.781 51.578C383 50.969 384 49.359 384 48C384 46.625 383 45.031 381.781 44.422L352 32L339.562 2.219C338.969 1 337.375 0 336 0S333.031 1 332.406 2.219L320 32L290.219 44.422C289 45.031 288 46.625 288 48C288 49.359 289 50.969 290.219 51.578L320 64L332.406 93.781C333.031 95 334.625 96 336 96S338.969 95 339.562 93.781L352 64L381.781 51.578ZM448 64L460.406 93.781C461.031 95 462.625 96 464 96S466.969 95 467.562 93.781L480 64L509.781 51.578C511 50.969 512 49.359 512 48C512 46.625 511 45.031 509.781 44.422L480 32L467.562 2.219C466.969 1 465.375 0 464 0S461.031 1 460.406 2.219L448 32L418.219 44.422C417 45.031 416 46.625 416 48C416 49.359 417 50.969 418.219 51.578L448 64ZM480 224L467.562 194.219C466.969 193 465.375 192 464 192S461.031 193 460.406 194.219L448 224L418.219 236.422C417 237.031 416 238.625 416 240C416 241.359 417 242.969 418.219 243.578L448 256L460.406 285.781C461.031 287 462.625 288 464 288S466.969 287 467.562 285.781L480 256L509.781 243.578C511 242.969 512 241.359 512 240C512 238.625 511 237.031 509.781 236.422L480 224ZM445.781 147.578C447 146.969 448 145.359 448 144C448 142.625 447 141.031 445.781 140.422L416 128L403.562 98.219C402.969 97 401.375 96 400 96S397.031 97 396.406 98.219L384 128L354.219 140.422C353 141.031 352 142.625 352 144C352 145.359 353 146.969 354.219 147.578L384 160L396.406 189.781C397.031 191 398.625 192 400 192S402.969 191 403.562 189.781L416 160L445.781 147.578Z"]
};
var faAlignCenter = {
  prefix: 'fas',
  iconName: 'align-center',
  icon: [448, 512, [], "f037", "M432 160H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 256H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM108.1 96h231.81A12.09 12.09 0 0 0 352 83.9V44.09A12.09 12.09 0 0 0 339.91 32H108.1A12.09 12.09 0 0 0 96 44.09V83.9A12.1 12.1 0 0 0 108.1 96zm231.81 256A12.09 12.09 0 0 0 352 339.9v-39.81A12.09 12.09 0 0 0 339.91 288H108.1A12.09 12.09 0 0 0 96 300.09v39.81a12.1 12.1 0 0 0 12.1 12.1z"]
};
var faAlignJustify = {
  prefix: 'fas',
  iconName: 'align-justify',
  icon: [448, 512, [], "f039", "M432 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-128H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-128H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-128H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
};
var faAlignLeft = {
  prefix: 'fas',
  iconName: 'align-left',
  icon: [448, 512, [], "f036", "M12.83 352h262.34A12.82 12.82 0 0 0 288 339.17v-38.34A12.82 12.82 0 0 0 275.17 288H12.83A12.82 12.82 0 0 0 0 300.83v38.34A12.82 12.82 0 0 0 12.83 352zm0-256h262.34A12.82 12.82 0 0 0 288 83.17V44.83A12.82 12.82 0 0 0 275.17 32H12.83A12.82 12.82 0 0 0 0 44.83v38.34A12.82 12.82 0 0 0 12.83 96zM432 160H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 256H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
};
var faAlignRight = {
  prefix: 'fas',
  iconName: 'align-right',
  icon: [448, 512, [], "f038", "M16 224h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm416 192H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm3.17-384H172.83A12.82 12.82 0 0 0 160 44.83v38.34A12.82 12.82 0 0 0 172.83 96h262.34A12.82 12.82 0 0 0 448 83.17V44.83A12.82 12.82 0 0 0 435.17 32zm0 256H172.83A12.82 12.82 0 0 0 160 300.83v38.34A12.82 12.82 0 0 0 172.83 352h262.34A12.82 12.82 0 0 0 448 339.17v-38.34A12.82 12.82 0 0 0 435.17 288z"]
};
var faAllergies = {
  prefix: 'fas',
  iconName: 'allergies',
  icon: [448, 512, [], "f461", "M416 112c-17.6 0-32 14.4-32 32v72c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V64c0-17.6-14.4-32-32-32s-32 14.4-32 32v152c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V32c0-17.6-14.4-32-32-32s-32 14.4-32 32v184c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V64c0-17.6-14.4-32-32-32S96 46.4 96 64v241l-23.6-32.5c-13-17.9-38-21.8-55.9-8.8s-21.8 38-8.8 55.9l125.6 172.7c9 12.4 23.5 19.8 38.8 19.8h197.6c22.3 0 41.6-15.3 46.7-37l26.5-112.7c3.2-13.7 4.9-28.3 5.1-42.3V144c0-17.6-14.4-32-32-32zM176 416c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-96c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm64 128c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-96c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm64 32c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm32 64c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm32-128c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"]
};
var faAmbulance = {
  prefix: 'fas',
  iconName: 'ambulance',
  icon: [640, 512, [], "f0f9", "M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm144-248c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48zm176 248c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"]
};
var faAmericanSignLanguageInterpreting = {
  prefix: 'fas',
  iconName: 'american-sign-language-interpreting',
  icon: [640, 512, [], "f2a3", "M290.547 189.039c-20.295-10.149-44.147-11.199-64.739-3.89 42.606 0 71.208 20.475 85.578 50.576 8.576 17.899-5.148 38.071-23.617 38.071 18.429 0 32.211 20.136 23.617 38.071-14.725 30.846-46.123 50.854-80.298 50.854-.557 0-94.471-8.615-94.471-8.615l-66.406 33.347c-9.384 4.693-19.815.379-23.895-7.781L1.86 290.747c-4.167-8.615-1.111-18.897 6.946-23.621l58.072-33.069L108 159.861c6.39-57.245 34.731-109.767 79.743-146.726 11.391-9.448 28.341-7.781 37.51 3.613 9.446 11.394 7.78 28.067-3.612 37.516-12.503 10.559-23.618 22.509-32.509 35.57 21.672-14.729 46.679-24.732 74.186-28.067 14.725-1.945 28.063 8.336 29.73 23.065 1.945 14.728-8.336 28.067-23.062 29.734-16.116 1.945-31.12 7.503-44.178 15.284 26.114-5.713 58.712-3.138 88.079 11.115 13.336 6.669 18.893 22.509 12.224 35.848-6.389 13.06-22.504 18.617-35.564 12.226zm-27.229 69.472c-6.112-12.505-18.338-20.286-32.231-20.286a35.46 35.46 0 0 0-35.565 35.57c0 21.428 17.808 35.57 35.565 35.57 13.893 0 26.119-7.781 32.231-20.286 4.446-9.449 13.614-15.006 23.339-15.284-9.725-.277-18.893-5.835-23.339-15.284zm374.821-37.237c4.168 8.615 1.111 18.897-6.946 23.621l-58.071 33.069L532 352.16c-6.39 57.245-34.731 109.767-79.743 146.726-10.932 9.112-27.799 8.144-37.51-3.613-9.446-11.394-7.78-28.067 3.613-37.516 12.503-10.559 23.617-22.509 32.508-35.57-21.672 14.729-46.679 24.732-74.186 28.067-10.021 2.506-27.552-5.643-29.73-23.065-1.945-14.728 8.336-28.067 23.062-29.734 16.116-1.946 31.12-7.503 44.178-15.284-26.114 5.713-58.712 3.138-88.079-11.115-13.336-6.669-18.893-22.509-12.224-35.848 6.389-13.061 22.505-18.619 35.565-12.227 20.295 10.149 44.147 11.199 64.739 3.89-42.606 0-71.208-20.475-85.578-50.576-8.576-17.899 5.148-38.071 23.617-38.071-18.429 0-32.211-20.136-23.617-38.071 14.033-29.396 44.039-50.887 81.966-50.854l92.803 8.615 66.406-33.347c9.408-4.704 19.828-.354 23.894 7.781l44.455 88.926zm-229.227-18.618c-13.893 0-26.119 7.781-32.231 20.286-4.446 9.449-13.614 15.006-23.339 15.284 9.725.278 18.893 5.836 23.339 15.284 6.112 12.505 18.338 20.286 32.231 20.286a35.46 35.46 0 0 0 35.565-35.57c0-21.429-17.808-35.57-35.565-35.57z"]
};
var faAnchor = {
  prefix: 'fas',
  iconName: 'anchor',
  icon: [576, 512, [], "f13d", "M12.971 352h32.394C67.172 454.735 181.944 512 288 512c106.229 0 220.853-57.38 242.635-160h32.394c10.691 0 16.045-12.926 8.485-20.485l-67.029-67.029c-4.686-4.686-12.284-4.686-16.971 0l-67.029 67.029c-7.56 7.56-2.206 20.485 8.485 20.485h35.146c-20.29 54.317-84.963 86.588-144.117 94.015V256h52c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-52v-5.47c37.281-13.178 63.995-48.725 64-90.518C384.005 43.772 341.605.738 289.37.01 235.723-.739 192 42.525 192 96c0 41.798 26.716 77.35 64 90.53V192h-52c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h52v190.015c-58.936-7.399-123.82-39.679-144.117-94.015h35.146c10.691 0 16.045-12.926 8.485-20.485l-67.029-67.029c-4.686-4.686-12.284-4.686-16.971 0L4.485 331.515C-3.074 339.074 2.28 352 12.971 352zM288 64c17.645 0 32 14.355 32 32s-14.355 32-32 32-32-14.355-32-32 14.355-32 32-32z"]
};
var faAngleDoubleDown = {
  prefix: 'fas',
  iconName: 'angle-double-down',
  icon: [320, 512, [], "f103", "M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"]
};
var faAngleDoubleLeft = {
  prefix: 'fas',
  iconName: 'angle-double-left',
  icon: [448, 512, [], "f100", "M223.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L319.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L393.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34zm-192 34l136 136c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9L127.9 256l96.4-96.4c9.4-9.4 9.4-24.6 0-33.9L201.7 103c-9.4-9.4-24.6-9.4-33.9 0l-136 136c-9.5 9.4-9.5 24.6-.1 34z"]
};
var faAngleDoubleRight = {
  prefix: 'fas',
  iconName: 'angle-double-right',
  icon: [448, 512, [], "f101", "M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34zm192-34l-136-136c-9.4-9.4-24.6-9.4-33.9 0l-22.6 22.6c-9.4 9.4-9.4 24.6 0 33.9l96.4 96.4-96.4 96.4c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l136-136c9.4-9.2 9.4-24.4 0-33.8z"]
};
var faAngleDoubleUp = {
  prefix: 'fas',
  iconName: 'angle-double-up',
  icon: [320, 512, [], "f102", "M177 255.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 351.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 425.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1zm-34-192L7 199.7c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l96.4-96.4 96.4 96.4c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9l-136-136c-9.2-9.4-24.4-9.4-33.8 0z"]
};
var faAngleDown = {
  prefix: 'fas',
  iconName: 'angle-down',
  icon: [320, 512, [], "f107", "M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"]
};
var faAngleLeft = {
  prefix: 'fas',
  iconName: 'angle-left',
  icon: [256, 512, [], "f104", "M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"]
};
var faAngleRight = {
  prefix: 'fas',
  iconName: 'angle-right',
  icon: [256, 512, [], "f105", "M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"]
};
var faAngleUp = {
  prefix: 'fas',
  iconName: 'angle-up',
  icon: [320, 512, [], "f106", "M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z"]
};
var faAngry = {
  prefix: 'fas',
  iconName: 'angry',
  icon: [496, 512, [], "f556", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM136 240c0-9.3 4.1-17.5 10.5-23.4l-31-9.3c-8.5-2.5-13.3-11.5-10.7-19.9 2.5-8.5 11.4-13.2 19.9-10.7l80 24c8.5 2.5 13.3 11.5 10.7 19.9-2.1 6.9-8.4 11.4-15.3 11.4-.5 0-1.1-.2-1.7-.2.7 2.7 1.7 5.3 1.7 8.2 0 17.7-14.3 32-32 32S136 257.7 136 240zm168 154.2c-27.8-33.4-84.2-33.4-112.1 0-13.5 16.3-38.2-4.2-24.6-20.5 20-24 49.4-37.8 80.6-37.8s60.6 13.8 80.6 37.8c13.8 16.5-11.1 36.6-24.5 20.5zm76.6-186.9l-31 9.3c6.3 5.8 10.5 14.1 10.5 23.4 0 17.7-14.3 32-32 32s-32-14.3-32-32c0-2.9.9-5.6 1.7-8.2-.6.1-1.1.2-1.7.2-6.9 0-13.2-4.5-15.3-11.4-2.5-8.5 2.3-17.4 10.7-19.9l80-24c8.4-2.5 17.4 2.3 19.9 10.7 2.5 8.5-2.3 17.4-10.8 19.9z"]
};
var faAnkh = {
  prefix: 'fas',
  iconName: 'ankh',
  icon: [320, 512, [], "f644", "M296 256h-44.62C272.46 222.01 288 181.65 288 144 288 55.63 230.69 0 160 0S32 55.63 32 144c0 37.65 15.54 78.01 36.62 112H24c-13.25 0-24 10.74-24 24v32c0 13.25 10.75 24 24 24h96v152c0 13.25 10.75 24 24 24h32c13.25 0 24-10.75 24-24V336h96c13.25 0 24-10.75 24-24v-32c0-13.26-10.75-24-24-24zM160 80c29.61 0 48 24.52 48 64 0 34.66-27.14 78.14-48 100.87-20.86-22.72-48-66.21-48-100.87 0-39.48 18.39-64 48-64z"]
};
var faAppleAlt = {
  prefix: 'fas',
  iconName: 'apple-alt',
  icon: [448, 512, [], "f5d1", "M350.85 129c25.97 4.67 47.27 18.67 63.92 42 14.65 20.67 24.64 46.67 29.96 78 4.67 28.67 4.32 57.33-1 86-7.99 47.33-23.97 87-47.94 119-28.64 38.67-64.59 58-107.87 58-10.66 0-22.3-3.33-34.96-10-8.66-5.33-18.31-8-28.97-8s-20.3 2.67-28.97 8c-12.66 6.67-24.3 10-34.96 10-43.28 0-79.23-19.33-107.87-58-23.97-32-39.95-71.67-47.94-119-5.32-28.67-5.67-57.33-1-86 5.32-31.33 15.31-57.33 29.96-78 16.65-23.33 37.95-37.33 63.92-42 15.98-2.67 37.95-.33 65.92 7 23.97 6.67 44.28 14.67 60.93 24 16.65-9.33 36.96-17.33 60.93-24 27.98-7.33 49.96-9.67 65.94-7zm-54.94-41c-9.32 8.67-21.65 15-36.96 19-10.66 3.33-22.3 5-34.96 5l-14.98-1c-1.33-9.33-1.33-20 0-32 2.67-24 10.32-42.33 22.97-55 9.32-8.67 21.65-15 36.96-19 10.66-3.33 22.3-5 34.96-5l14.98 1 1 15c0 12.67-1.67 24.33-4.99 35-3.99 15.33-10.31 27.67-18.98 37z"]
};
var faArchive = {
  prefix: 'fas',
  iconName: 'archive',
  icon: [512, 512, [], "f187", "M32 448c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V160H32v288zm160-212c0-6.6 5.4-12 12-12h104c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-8zM480 32H32C14.3 32 0 46.3 0 64v48c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16V64c0-17.7-14.3-32-32-32z"]
};
var faArchway = {
  prefix: 'fas',
  iconName: 'archway',
  icon: [576, 512, [], "f557", "M560 448h-16V96H32v352H16.02c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16H176c8.84 0 16-7.16 16-16V320c0-53.02 42.98-96 96-96s96 42.98 96 96l.02 160v16c0 8.84 7.16 16 16 16H560c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm0-448H16C7.16 0 0 7.16 0 16v32c0 8.84 7.16 16 16 16h544c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16z"]
};
var faArrowAltCircleDown = {
  prefix: 'fas',
  iconName: 'arrow-alt-circle-down',
  icon: [512, 512, [], "f358", "M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM212 140v116h-70.9c-10.7 0-16.1 13-8.5 20.5l114.9 114.3c4.7 4.7 12.2 4.7 16.9 0l114.9-114.3c7.6-7.6 2.2-20.5-8.5-20.5H300V140c0-6.6-5.4-12-12-12h-64c-6.6 0-12 5.4-12 12z"]
};
var faArrowAltCircleLeft = {
  prefix: 'fas',
  iconName: 'arrow-alt-circle-left',
  icon: [512, 512, [], "f359", "M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm116-292H256v-70.9c0-10.7-13-16.1-20.5-8.5L121.2 247.5c-4.7 4.7-4.7 12.2 0 16.9l114.3 114.9c7.6 7.6 20.5 2.2 20.5-8.5V300h116c6.6 0 12-5.4 12-12v-64c0-6.6-5.4-12-12-12z"]
};
var faArrowAltCircleRight = {
  prefix: 'fas',
  iconName: 'arrow-alt-circle-right',
  icon: [512, 512, [], "f35a", "M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zM140 300h116v70.9c0 10.7 13 16.1 20.5 8.5l114.3-114.9c4.7-4.7 4.7-12.2 0-16.9l-114.3-115c-7.6-7.6-20.5-2.2-20.5 8.5V212H140c-6.6 0-12 5.4-12 12v64c0 6.6 5.4 12 12 12z"]
};
var faArrowAltCircleUp = {
  prefix: 'fas',
  iconName: 'arrow-alt-circle-up',
  icon: [512, 512, [], "f35b", "M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm292 116V256h70.9c10.7 0 16.1-13 8.5-20.5L264.5 121.2c-4.7-4.7-12.2-4.7-16.9 0l-115 114.3c-7.6 7.6-2.2 20.5 8.5 20.5H212v116c0 6.6 5.4 12 12 12h64c6.6 0 12-5.4 12-12z"]
};
var faArrowCircleDown = {
  prefix: 'fas',
  iconName: 'arrow-circle-down',
  icon: [512, 512, [], "f0ab", "M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-143.6-28.9L288 302.6V120c0-13.3-10.7-24-24-24h-16c-13.3 0-24 10.7-24 24v182.6l-72.4-75.5c-9.3-9.7-24.8-9.9-34.3-.4l-10.9 11c-9.4 9.4-9.4 24.6 0 33.9L239 404.3c9.4 9.4 24.6 9.4 33.9 0l132.7-132.7c9.4-9.4 9.4-24.6 0-33.9l-10.9-11c-9.5-9.5-25-9.3-34.3.4z"]
};
var faArrowCircleLeft = {
  prefix: 'fas',
  iconName: 'arrow-circle-left',
  icon: [512, 512, [], "f0a8", "M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm28.9-143.6L209.4 288H392c13.3 0 24-10.7 24-24v-16c0-13.3-10.7-24-24-24H209.4l75.5-72.4c9.7-9.3 9.9-24.8.4-34.3l-11-10.9c-9.4-9.4-24.6-9.4-33.9 0L107.7 239c-9.4 9.4-9.4 24.6 0 33.9l132.7 132.7c9.4 9.4 24.6 9.4 33.9 0l11-10.9c9.5-9.5 9.3-25-.4-34.3z"]
};
var faArrowCircleRight = {
  prefix: 'fas',
  iconName: 'arrow-circle-right',
  icon: [512, 512, [], "f0a9", "M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm-28.9 143.6l75.5 72.4H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h182.6l-75.5 72.4c-9.7 9.3-9.9 24.8-.4 34.3l11 10.9c9.4 9.4 24.6 9.4 33.9 0L404.3 273c9.4-9.4 9.4-24.6 0-33.9L271.6 106.3c-9.4-9.4-24.6-9.4-33.9 0l-11 10.9c-9.5 9.6-9.3 25.1.4 34.4z"]
};
var faArrowCircleUp = {
  prefix: 'fas',
  iconName: 'arrow-circle-up',
  icon: [512, 512, [], "f0aa", "M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm143.6 28.9l72.4-75.5V392c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V209.4l72.4 75.5c9.3 9.7 24.8 9.9 34.3.4l10.9-11c9.4-9.4 9.4-24.6 0-33.9L273 107.7c-9.4-9.4-24.6-9.4-33.9 0L106.3 240.4c-9.4 9.4-9.4 24.6 0 33.9l10.9 11c9.6 9.5 25.1 9.3 34.4-.4z"]
};
var faArrowDown = {
  prefix: 'fas',
  iconName: 'arrow-down',
  icon: [448, 512, [], "f063", "M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z"]
};
var faArrowLeft = {
  prefix: 'fas',
  iconName: 'arrow-left',
  icon: [448, 512, [], "f060", "M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"]
};
var faArrowRight = {
  prefix: 'fas',
  iconName: 'arrow-right',
  icon: [448, 512, [], "f061", "M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"]
};
var faArrowUp = {
  prefix: 'fas',
  iconName: 'arrow-up',
  icon: [448, 512, [], "f062", "M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"]
};
var faArrowsAlt = {
  prefix: 'fas',
  iconName: 'arrows-alt',
  icon: [512, 512, [], "f0b2", "M352.201 425.775l-79.196 79.196c-9.373 9.373-24.568 9.373-33.941 0l-79.196-79.196c-15.119-15.119-4.411-40.971 16.971-40.97h51.162L228 284H127.196v51.162c0 21.382-25.851 32.09-40.971 16.971L7.029 272.937c-9.373-9.373-9.373-24.569 0-33.941L86.225 159.8c15.119-15.119 40.971-4.411 40.971 16.971V228H228V127.196h-51.23c-21.382 0-32.09-25.851-16.971-40.971l79.196-79.196c9.373-9.373 24.568-9.373 33.941 0l79.196 79.196c15.119 15.119 4.411 40.971-16.971 40.971h-51.162V228h100.804v-51.162c0-21.382 25.851-32.09 40.97-16.971l79.196 79.196c9.373 9.373 9.373 24.569 0 33.941L425.773 352.2c-15.119 15.119-40.971 4.411-40.97-16.971V284H284v100.804h51.23c21.382 0 32.09 25.851 16.971 40.971z"]
};
var faArrowsAltH = {
  prefix: 'fas',
  iconName: 'arrows-alt-h',
  icon: [512, 512, [], "f337", "M377.941 169.941V216H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.568 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296h243.882v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.568 0-33.941l-86.059-86.059c-15.119-15.12-40.971-4.412-40.971 16.97z"]
};
var faArrowsAltV = {
  prefix: 'fas',
  iconName: 'arrows-alt-v',
  icon: [256, 512, [], "f338", "M214.059 377.941H168V134.059h46.059c21.382 0 32.09-25.851 16.971-40.971L144.971 7.029c-9.373-9.373-24.568-9.373-33.941 0L24.971 93.088c-15.119 15.119-4.411 40.971 16.971 40.971H88v243.882H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.568 9.373 33.941 0l86.059-86.059c15.12-15.119 4.412-40.971-16.97-40.971z"]
};
var faAssistiveListeningSystems = {
  prefix: 'fas',
  iconName: 'assistive-listening-systems',
  icon: [512, 512, [], "f2a2", "M216 260c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-44.112 35.888-80 80-80s80 35.888 80 80c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-13.234-10.767-24-24-24s-24 10.766-24 24zm24-176c-97.047 0-176 78.953-176 176 0 15.464 12.536 28 28 28s28-12.536 28-28c0-66.168 53.832-120 120-120s120 53.832 120 120c0 75.164-71.009 70.311-71.997 143.622L288 404c0 28.673-23.327 52-52 52-15.464 0-28 12.536-28 28s12.536 28 28 28c59.475 0 107.876-48.328 108-107.774.595-34.428 72-48.24 72-144.226 0-97.047-78.953-176-176-176zm-80 236c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zM32 448c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm480-187.993c0-1.518-.012-3.025-.045-4.531C510.076 140.525 436.157 38.47 327.994 1.511c-14.633-4.998-30.549 2.809-35.55 17.442-5 14.633 2.81 30.549 17.442 35.55 85.906 29.354 144.61 110.513 146.077 201.953l.003.188c.026 1.118.033 2.236.033 3.363 0 15.464 12.536 28 28 28s28.001-12.536 28.001-28zM152.971 439.029l-80-80L39.03 392.97l80 80 33.941-33.941z"]
};
var faAsterisk = {
  prefix: 'fas',
  iconName: 'asterisk',
  icon: [512, 512, [], "f069", "M478.21 334.093L336 256l142.21-78.093c11.795-6.477 15.961-21.384 9.232-33.037l-19.48-33.741c-6.728-11.653-21.72-15.499-33.227-8.523L296 186.718l3.475-162.204C299.763 11.061 288.937 0 275.48 0h-38.96c-13.456 0-24.283 11.061-23.994 24.514L216 186.718 77.265 102.607c-11.506-6.976-26.499-3.13-33.227 8.523l-19.48 33.741c-6.728 11.653-2.562 26.56 9.233 33.037L176 256 33.79 334.093c-11.795 6.477-15.961 21.384-9.232 33.037l19.48 33.741c6.728 11.653 21.721 15.499 33.227 8.523L216 325.282l-3.475 162.204C212.237 500.939 223.064 512 236.52 512h38.961c13.456 0 24.283-11.061 23.995-24.514L296 325.282l138.735 84.111c11.506 6.976 26.499 3.13 33.227-8.523l19.48-33.741c6.728-11.653 2.563-26.559-9.232-33.036z"]
};
var faAt = {
  prefix: 'fas',
  iconName: 'at',
  icon: [512, 512, [], "f1fa", "M256 8C118.941 8 8 118.919 8 256c0 137.059 110.919 248 248 248 48.154 0 95.342-14.14 135.408-40.223 12.005-7.815 14.625-24.288 5.552-35.372l-10.177-12.433c-7.671-9.371-21.179-11.667-31.373-5.129C325.92 429.757 291.314 440 256 440c-101.458 0-184-82.542-184-184S154.542 72 256 72c100.139 0 184 57.619 184 160 0 38.786-21.093 79.742-58.17 83.693-17.349-.454-16.91-12.857-13.476-30.024l23.433-121.11C394.653 149.75 383.308 136 368.225 136h-44.981a13.518 13.518 0 0 0-13.432 11.993l-.01.092c-14.697-17.901-40.448-21.775-59.971-21.775-74.58 0-137.831 62.234-137.831 151.46 0 65.303 36.785 105.87 96 105.87 26.984 0 57.369-15.637 74.991-38.333 9.522 34.104 40.613 34.103 70.71 34.103C462.609 379.41 504 307.798 504 232 504 95.653 394.023 8 256 8zm-21.68 304.43c-22.249 0-36.07-15.623-36.07-40.771 0-44.993 30.779-72.729 58.63-72.729 22.292 0 35.601 15.241 35.601 40.77 0 45.061-33.875 72.73-58.161 72.73z"]
};
var faAtlas = {
  prefix: 'fas',
  iconName: 'atlas',
  icon: [448, 512, [], "f558", "M318.38 208h-39.09c-1.49 27.03-6.54 51.35-14.21 70.41 27.71-13.24 48.02-39.19 53.3-70.41zm0-32c-5.29-31.22-25.59-57.17-53.3-70.41 7.68 19.06 12.72 43.38 14.21 70.41h39.09zM224 97.31c-7.69 7.45-20.77 34.42-23.43 78.69h46.87c-2.67-44.26-15.75-71.24-23.44-78.69zm-41.08 8.28c-27.71 13.24-48.02 39.19-53.3 70.41h39.09c1.49-27.03 6.53-51.35 14.21-70.41zm0 172.82c-7.68-19.06-12.72-43.38-14.21-70.41h-39.09c5.28 31.22 25.59 57.17 53.3 70.41zM247.43 208h-46.87c2.66 44.26 15.74 71.24 23.43 78.69 7.7-7.45 20.78-34.43 23.44-78.69zM448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM224 64c70.69 0 128 57.31 128 128s-57.31 128-128 128S96 262.69 96 192 153.31 64 224 64zm160 384H96c-19.2 0-32-12.8-32-32s16-32 32-32h288v64z"]
};
var faAtom = {
  prefix: 'fas',
  iconName: 'atom',
  icon: [448, 512, [], "f5d2", "M223.99908,224a32,32,0,1,0,32.00782,32A32.06431,32.06431,0,0,0,223.99908,224Zm214.172-96c-10.877-19.5-40.50979-50.75-116.27544-41.875C300.39168,34.875,267.63386,0,223.99908,0s-76.39066,34.875-97.89653,86.125C50.3369,77.375,20.706,108.5,9.82907,128-6.54984,157.375-5.17484,201.125,34.958,256-5.17484,310.875-6.54984,354.625,9.82907,384c29.13087,52.375,101.64652,43.625,116.27348,41.875C147.60842,477.125,180.36429,512,223.99908,512s76.3926-34.875,97.89652-86.125c14.62891,1.75,87.14456,10.5,116.27544-41.875C454.55,354.625,453.175,310.875,413.04017,256,453.175,201.125,454.55,157.375,438.171,128ZM63.33886,352c-4-7.25-.125-24.75,15.00391-48.25,6.87695,6.5,14.12891,12.875,21.88087,19.125,1.625,13.75,4,27.125,6.75,40.125C82.34472,363.875,67.09081,358.625,63.33886,352Zm36.88478-162.875c-7.752,6.25-15.00392,12.625-21.88087,19.125-15.12891-23.5-19.00392-41-15.00391-48.25,3.377-6.125,16.37891-11.5,37.88478-11.5,1.75,0,3.875.375,5.75.375C104.09864,162.25,101.84864,175.625,100.22364,189.125ZM223.99908,64c9.50195,0,22.25586,13.5,33.88282,37.25-11.252,3.75-22.50391,8-33.88282,12.875-11.377-4.875-22.62892-9.125-33.88283-12.875C201.74516,77.5,214.49712,64,223.99908,64Zm0,384c-9.502,0-22.25392-13.5-33.88283-37.25,11.25391-3.75,22.50587-8,33.88283-12.875C235.378,402.75,246.62994,407,257.8819,410.75,246.25494,434.5,233.501,448,223.99908,448Zm0-112a80,80,0,1,1,80-80A80.00023,80.00023,0,0,1,223.99908,336ZM384.6593,352c-3.625,6.625-19.00392,11.875-43.63479,11,2.752-13,5.127-26.375,6.752-40.125,7.75195-6.25,15.00391-12.625,21.87891-19.125C384.7843,327.25,388.6593,344.75,384.6593,352ZM369.65538,208.25c-6.875-6.5-14.127-12.875-21.87891-19.125-1.625-13.5-3.875-26.875-6.752-40.25,1.875,0,4.002-.375,5.752-.375,21.50391,0,34.50782,5.375,37.88283,11.5C388.6593,167.25,384.7843,184.75,369.65538,208.25Z"]
};
var faAudioDescription = {
  prefix: 'fas',
  iconName: 'audio-description',
  icon: [512, 512, [], "f29e", "M162.925 238.709l8.822 30.655h-25.606l9.041-30.652c1.277-4.421 2.651-9.994 3.872-15.245 1.22 5.251 2.594 10.823 3.871 15.242zm166.474-32.099h-14.523v98.781h14.523c29.776 0 46.175-17.678 46.175-49.776 0-32.239-17.49-49.005-46.175-49.005zM512 112v288c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48zM245.459 336.139l-57.097-168A12.001 12.001 0 0 0 177 160h-35.894a12.001 12.001 0 0 0-11.362 8.139l-57.097 168C70.003 343.922 75.789 352 84.009 352h29.133a12 12 0 0 0 11.535-8.693l8.574-29.906h51.367l8.793 29.977A12 12 0 0 0 204.926 352h29.172c8.22 0 14.006-8.078 11.361-15.861zm184.701-80.525c0-58.977-37.919-95.614-98.96-95.614h-57.366c-6.627 0-12 5.373-12 12v168c0 6.627 5.373 12 12 12H331.2c61.041 0 98.96-36.933 98.96-96.386z"]
};
var faAward = {
  prefix: 'fas',
  iconName: 'award',
  icon: [384, 512, [], "f559", "M97.12 362.63c-8.69-8.69-4.16-6.24-25.12-11.85-9.51-2.55-17.87-7.45-25.43-13.32L1.2 448.7c-4.39 10.77 3.81 22.47 15.43 22.03l52.69-2.01L105.56 507c8 8.44 22.04 5.81 26.43-4.96l52.05-127.62c-10.84 6.04-22.87 9.58-35.31 9.58-19.5 0-37.82-7.59-51.61-21.37zM382.8 448.7l-45.37-111.24c-7.56 5.88-15.92 10.77-25.43 13.32-21.07 5.64-16.45 3.18-25.12 11.85-13.79 13.78-32.12 21.37-51.62 21.37-12.44 0-24.47-3.55-35.31-9.58L252 502.04c4.39 10.77 18.44 13.4 26.43 4.96l36.25-38.28 52.69 2.01c11.62.44 19.82-11.27 15.43-22.03zM263 340c15.28-15.55 17.03-14.21 38.79-20.14 13.89-3.79 24.75-14.84 28.47-28.98 7.48-28.4 5.54-24.97 25.95-45.75 10.17-10.35 14.14-25.44 10.42-39.58-7.47-28.38-7.48-24.42 0-52.83 3.72-14.14-.25-29.23-10.42-39.58-20.41-20.78-18.47-17.36-25.95-45.75-3.72-14.14-14.58-25.19-28.47-28.98-27.88-7.61-24.52-5.62-44.95-26.41-10.17-10.35-25-14.4-38.89-10.61-27.87 7.6-23.98 7.61-51.9 0-13.89-3.79-28.72.25-38.89 10.61-20.41 20.78-17.05 18.8-44.94 26.41-13.89 3.79-24.75 14.84-28.47 28.98-7.47 28.39-5.54 24.97-25.95 45.75-10.17 10.35-14.15 25.44-10.42 39.58 7.47 28.36 7.48 24.4 0 52.82-3.72 14.14.25 29.23 10.42 39.59 20.41 20.78 18.47 17.35 25.95 45.75 3.72 14.14 14.58 25.19 28.47 28.98C104.6 325.96 106.27 325 121 340c13.23 13.47 33.84 15.88 49.74 5.82a39.676 39.676 0 0 1 42.53 0c15.89 10.06 36.5 7.65 49.73-5.82zM97.66 175.96c0-53.03 42.24-96.02 94.34-96.02s94.34 42.99 94.34 96.02-42.24 96.02-94.34 96.02-94.34-42.99-94.34-96.02z"]
};
var faBaby = {
  prefix: 'fas',
  iconName: 'baby',
  icon: [384, 512, [], "f77c", "M192 160c44.2 0 80-35.8 80-80S236.2 0 192 0s-80 35.8-80 80 35.8 80 80 80zm-53.4 248.8l25.6-32-61.5-51.2L56.8 383c-11.4 14.2-11.7 34.4-.8 49l48 64c7.9 10.5 19.9 16 32 16 8.3 0 16.8-2.6 24-8 17.7-13.2 21.2-38.3 8-56l-29.4-39.2zm142.7-83.2l-61.5 51.2 25.6 32L216 448c-13.2 17.7-9.7 42.8 8 56 7.2 5.4 15.6 8 24 8 12.2 0 24.2-5.5 32-16l48-64c10.9-14.6 10.6-34.8-.8-49l-45.9-57.4zM376.7 145c-12.7-18.1-37.6-22.4-55.7-9.8l-40.6 28.5c-52.7 37-124.2 37-176.8 0L63 135.3C44.9 122.6 20 127 7.3 145-5.4 163.1-1 188 17 200.7l40.6 28.5c17 11.9 35.4 20.9 54.4 27.9V288h160v-30.8c19-7 37.4-16 54.4-27.9l40.6-28.5c18.1-12.8 22.4-37.7 9.7-55.8z"]
};
var faBabyCarriage = {
  prefix: 'fas',
  iconName: 'baby-carriage',
  icon: [512, 512, [], "f77d", "M144.8 17c-11.3-17.8-37.2-22.8-54-9.4C35.3 51.9 0 118 0 192h256L144.8 17zM496 96h-48c-35.3 0-64 28.7-64 64v64H0c0 50.6 23 96.4 60.3 130.7C25.7 363.6 0 394.7 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-8.9-1.8-17.2-4.4-25.2 21.6 5.9 44.6 9.2 68.4 9.2s46.9-3.3 68.4-9.2c-2.7 8-4.4 16.3-4.4 25.2 0 44.2 35.8 80 80 80s80-35.8 80-80c0-37.3-25.7-68.4-60.3-77.3C425 320.4 448 274.6 448 224v-64h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM80 464c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32zm320-32c0 17.6-14.4 32-32 32s-32-14.4-32-32 14.4-32 32-32 32 14.4 32 32z"]
};
var faBackspace = {
  prefix: 'fas',
  iconName: 'backspace',
  icon: [640, 512, [], "f55a", "M576 64H205.26A63.97 63.97 0 0 0 160 82.75L9.37 233.37c-12.5 12.5-12.5 32.76 0 45.25L160 429.25c12 12 28.28 18.75 45.25 18.75H576c35.35 0 64-28.65 64-64V128c0-35.35-28.65-64-64-64zm-84.69 254.06c6.25 6.25 6.25 16.38 0 22.63l-22.62 22.62c-6.25 6.25-16.38 6.25-22.63 0L384 301.25l-62.06 62.06c-6.25 6.25-16.38 6.25-22.63 0l-22.62-22.62c-6.25-6.25-6.25-16.38 0-22.63L338.75 256l-62.06-62.06c-6.25-6.25-6.25-16.38 0-22.63l22.62-22.62c6.25-6.25 16.38-6.25 22.63 0L384 210.75l62.06-62.06c6.25-6.25 16.38-6.25 22.63 0l22.62 22.62c6.25 6.25 6.25 16.38 0 22.63L429.25 256l62.06 62.06z"]
};
var faBackward = {
  prefix: 'fas',
  iconName: 'backward',
  icon: [512, 512, [], "f04a", "M11.5 280.6l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2zm256 0l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2z"]
};
var faBacon = {
  prefix: 'fas',
  iconName: 'bacon',
  icon: [576, 512, [], "f7e5", "M218.92 336.39c34.89-34.89 44.2-59.7 54.05-86 10.61-28.29 21.59-57.54 61.37-97.34s69.05-50.77 97.35-61.38c23.88-9 46.64-17.68 76.79-45.37L470.81 8.91a31 31 0 0 0-40.18-2.83c-13.64 10.1-25.15 14.39-41 20.3C247 79.52 209.26 191.29 200.65 214.1c-29.75 78.83-89.55 94.68-98.72 98.09-24.86 9.26-54.73 20.38-91.07 50.36C-3 374-3.63 395 9.07 407.61l35.76 35.51C80 410.52 107 400.15 133 390.39c26.27-9.84 51.06-19.12 85.92-54zm348-232l-35.75-35.51c-35.19 32.63-62.18 43-88.25 52.79-26.26 9.85-51.06 19.16-85.95 54s-44.19 59.69-54 86C292.33 290 281.34 319.22 241.55 359s-69 50.73-97.3 61.32c-23.86 9-46.61 17.66-76.72 45.33l37.68 37.43a31 31 0 0 0 40.18 2.82c13.6-10.06 25.09-14.34 40.94-20.24 142.2-53 180-164.1 188.94-187.69C405 219.18 464.8 203.3 474 199.86c24.87-9.27 54.74-20.4 91.11-50.41 13.89-11.4 14.52-32.45 1.82-45.05z"]
};
var faBacteria = {
  prefix: 'fas',
  iconName: 'bacteria',
  icon: [640, 512, [], "e059", "M272.35,226.4A17.71,17.71,0,0,0,281.46,203l-4-9.08a121.29,121.29,0,0,1,12.36-3.08A83.34,83.34,0,0,0,323.57,177l10,9a17.76,17.76,0,1,0,23.92-26.27l-9.72-8.76a83.12,83.12,0,0,0,11.65-48.18l11.85-3.51a17.73,17.73,0,1,0-10.15-34l-11.34,3.36a84,84,0,0,0-36.38-35.57l2.84-10.85a17.8,17.8,0,0,0-34.47-8.93l-2.82,10.78a83.25,83.25,0,0,0-16.74,1.1C250.83,27,240,30.22,229.1,33.39l-3.38-9.46a17.8,17.8,0,0,0-33.56,11.89l3.49,9.8a286.74,286.74,0,0,0-43.94,23.57l-6.32-8.43a17.9,17.9,0,0,0-24.94-3.6A17.69,17.69,0,0,0,116.84,82l6.45,8.61a286.59,286.59,0,0,0-34.95,35.33l-8.82-6.42a17.84,17.84,0,0,0-24.89,3.86,17.66,17.66,0,0,0,3.88,24.77l8.88,6.47a286.6,286.6,0,0,0-23,43.91l-10.48-3.59a17.73,17.73,0,1,0-11.59,33.52L32.67,232c-2.79,10-5.79,19.84-7.52,30.22a83.16,83.16,0,0,0-.82,19l-11.58,3.43a17.73,17.73,0,1,0,10.13,34l11.27-3.33a83.51,83.51,0,0,0,36.39,35.43l-2.88,11.06a17.81,17.81,0,0,0,34.48,8.92l2.87-11c1,0,2.07.26,3.1.26a83.39,83.39,0,0,0,45.65-13.88l8.59,8.8a17.77,17.77,0,0,0,25.56-24.7l-9.14-9.37a83.41,83.41,0,0,0,12.08-31.05,119.08,119.08,0,0,1,3.87-15.53l9,4.22a17.74,17.74,0,1,0,15.15-32.09l-8.8-4.11c.67-1,1.2-2.08,1.9-3.05a119.89,119.89,0,0,1,7.87-9.41,121.73,121.73,0,0,1,11.65-11.4,119.49,119.49,0,0,1,9.94-7.82c1.12-.77,2.32-1.42,3.47-2.15l3.92,8.85a17.86,17.86,0,0,0,16.32,10.58A18.14,18.14,0,0,0,272.35,226.4ZM128,256a32,32,0,1,1,32-32A32,32,0,0,1,128,256Zm80-96a16,16,0,1,1,16-16A16,16,0,0,1,208,160Zm431.26,45.3a17.79,17.79,0,0,0-17.06-12.69,17.55,17.55,0,0,0-5.08.74l-11.27,3.33a83.61,83.61,0,0,0-36.39-35.43l2.88-11.06a17.81,17.81,0,0,0-34.48-8.91l-2.87,11c-1,0-2.07-.26-3.1-.26a83.32,83.32,0,0,0-45.65,13.89l-8.59-8.81a17.77,17.77,0,0,0-25.56,24.7l9.14,9.37a83.28,83.28,0,0,0-12.08,31.06,119.34,119.34,0,0,1-3.87,15.52l-9-4.22a17.74,17.74,0,1,0-15.15,32.09l8.8,4.11c-.67,1-1.2,2.08-1.89,3.05a117.71,117.71,0,0,1-7.94,9.47,119,119,0,0,1-11.57,11.33,121.59,121.59,0,0,1-10,7.83c-1.12.77-2.32,1.42-3.47,2.15l-3.92-8.85a17.86,17.86,0,0,0-16.32-10.58,18.14,18.14,0,0,0-7.18,1.5A17.71,17.71,0,0,0,358.54,309l4,9.08a118.71,118.71,0,0,1-12.36,3.08,83.34,83.34,0,0,0-33.77,13.9l-10-9a17.77,17.77,0,1,0-23.92,26.28l9.72,8.75a83.12,83.12,0,0,0-11.65,48.18l-11.86,3.51a17.73,17.73,0,1,0,10.16,34l11.34-3.36A84,84,0,0,0,326.61,479l-2.84,10.85a17.8,17.8,0,0,0,34.47,8.93L361.06,488a83.3,83.3,0,0,0,16.74-1.1c11.37-1.89,22.24-5.07,33.1-8.24l3.38,9.46a17.8,17.8,0,0,0,33.56-11.89l-3.49-9.79a287.66,287.66,0,0,0,43.94-23.58l6.32,8.43a17.88,17.88,0,0,0,24.93,3.6A17.67,17.67,0,0,0,523.16,430l-6.45-8.61a287.37,287.37,0,0,0,34.95-35.34l8.82,6.42a17.76,17.76,0,1,0,21-28.63l-8.88-6.46a287.17,287.17,0,0,0,23-43.92l10.48,3.59a17.73,17.73,0,1,0,11.59-33.52L607.33,280c2.79-10,5.79-19.84,7.52-30.21a83.27,83.27,0,0,0,.82-19.05l11.58-3.43A17.7,17.7,0,0,0,639.26,205.3ZM416,416a32,32,0,1,1,32-32A32,32,0,0,1,416,416Z"]
};
var faBacterium = {
  prefix: 'fas',
  iconName: 'bacterium',
  icon: [512, 512, [], "e05a", "M511,102.93A23.76,23.76,0,0,0,481.47,87l-15.12,4.48a111.85,111.85,0,0,0-48.5-47.42l3.79-14.47a23.74,23.74,0,0,0-46-11.91l-3.76,14.37a111.94,111.94,0,0,0-22.33,1.47,386.74,386.74,0,0,0-44.33,10.41l-4.3-12a23.74,23.74,0,0,0-44.75,15.85l4.3,12.05a383.4,383.4,0,0,0-58.69,31.83l-8-10.63a23.85,23.85,0,0,0-33.24-4.8,23.57,23.57,0,0,0-4.83,33.09l8,10.63a386.14,386.14,0,0,0-46.7,47.44l-11-8a23.68,23.68,0,1,0-28,38.17l11.09,8.06a383.45,383.45,0,0,0-30.92,58.75l-12.93-4.43a23.65,23.65,0,1,0-15.47,44.69l13,4.48a385.81,385.81,0,0,0-9.3,40.53A111.58,111.58,0,0,0,32.44,375L17,379.56a23.64,23.64,0,0,0,13.51,45.31l15-4.44a111.49,111.49,0,0,0,48.53,47.24l-3.85,14.75a23.66,23.66,0,0,0,17,28.83,24.7,24.7,0,0,0,6,.75,23.73,23.73,0,0,0,23-17.7L140,479.67c1.37.05,2.77.35,4.13.35A111.22,111.22,0,0,0,205,461.5l11.45,11.74a23.7,23.7,0,0,0,34.08-32.93l-12.19-12.5a111,111,0,0,0,16.11-41.4,158.69,158.69,0,0,1,5.16-20.71l12,5.64a23.66,23.66,0,1,0,20.19-42.79l-11.72-5.49c.89-1.32,1.59-2.77,2.52-4.06a157.86,157.86,0,0,1,10.46-12.49,159.5,159.5,0,0,1,15.59-15.28,162.18,162.18,0,0,1,13.23-10.4c1.5-1,3.1-1.89,4.63-2.87l5.23,11.8a23.74,23.74,0,0,0,43.48-19.08l-5.36-12.11a158.87,158.87,0,0,1,16.49-4.1,111,111,0,0,0,45-18.54l13.33,12a23.69,23.69,0,1,0,31.88-35l-12.94-11.67A110.83,110.83,0,0,0,479.21,137L495,132.32A23.61,23.61,0,0,0,511,102.93ZM160,368a48,48,0,1,1,48-48A48,48,0,0,1,160,368Zm80-136a24,24,0,1,1,24-24A24,24,0,0,1,240,232Z"]
};
var faBahai = {
  prefix: 'fas',
  iconName: 'bahai',
  icon: [512, 512, [], "f666", "M496.25 202.52l-110-15.44 41.82-104.34c6.67-16.64-11.6-32.18-26.59-22.63L307.44 120 273.35 12.82C270.64 4.27 263.32 0 256 0c-7.32 0-14.64 4.27-17.35 12.82l-34.09 107.19-94.04-59.89c-14.99-9.55-33.25 5.99-26.59 22.63l41.82 104.34-110 15.43c-17.54 2.46-21.68 26.27-6.03 34.67l98.16 52.66-74.48 83.54c-10.92 12.25-1.72 30.93 13.29 30.93 1.31 0 2.67-.14 4.07-.45l108.57-23.65-4.11 112.55c-.43 11.65 8.87 19.22 18.41 19.22 5.15 0 10.39-2.21 14.2-7.18l68.18-88.9 68.18 88.9c3.81 4.97 9.04 7.18 14.2 7.18 9.54 0 18.84-7.57 18.41-19.22l-4.11-112.55 108.57 23.65c17.36 3.76 29.21-17.2 17.35-30.49l-74.48-83.54 98.16-52.66c15.64-8.39 11.5-32.2-6.04-34.66zM338.51 311.68l-51.89-11.3 1.97 53.79L256 311.68l-32.59 42.49 1.96-53.79-51.89 11.3 35.6-39.93-46.92-25.17 52.57-7.38-19.99-49.87 44.95 28.62L256 166.72l16.29 51.23 44.95-28.62-19.99 49.87 52.57 7.38-46.92 25.17 35.61 39.93z"]
};
var faBalanceScale = {
  prefix: 'fas',
  iconName: 'balance-scale',
  icon: [640, 512, [], "f24e", "M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]
};
var faBalanceScaleLeft = {
  prefix: 'fas',
  iconName: 'balance-scale-left',
  icon: [640, 512, [], "f515", "M528 448H352V153.25c20.42-8.94 36.1-26.22 43.38-47.47l132-44.26c8.38-2.81 12.89-11.88 10.08-20.26l-10.17-30.34C524.48 2.54 515.41-1.97 507.03.84L389.11 40.37C375.3 16.36 349.69 0 320 0c-44.18 0-80 35.82-80 80 0 3.43.59 6.71 1.01 10.03l-128.39 43.05c-8.38 2.81-12.89 11.88-10.08 20.26l10.17 30.34c2.81 8.38 11.88 12.89 20.26 10.08l142.05-47.63c4.07 2.77 8.43 5.12 12.99 7.12V496c0 8.84 7.16 16 16 16h224c8.84 0 16-7.16 16-16v-32c-.01-8.84-7.17-16-16.01-16zm111.98-144c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 288l72-144 72 144H440zm-269.07-37.51c-17.65-35.29-68.19-35.36-85.87 0C-2.06 424.75.02 416.33.02 432H0c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02c0-16.18 1.34-8.73-85.05-181.51zM56 416l72-144 72 144H56z"]
};
var faBalanceScaleRight = {
  prefix: 'fas',
  iconName: 'balance-scale-right',
  icon: [640, 512, [], "f516", "M96 464v32c0 8.84 7.16 16 16 16h224c8.84 0 16-7.16 16-16V153.25c4.56-2 8.92-4.35 12.99-7.12l142.05 47.63c8.38 2.81 17.45-1.71 20.26-10.08l10.17-30.34c2.81-8.38-1.71-17.45-10.08-20.26l-128.4-43.05c.42-3.32 1.01-6.6 1.01-10.03 0-44.18-35.82-80-80-80-29.69 0-55.3 16.36-69.11 40.37L132.96.83c-8.38-2.81-17.45 1.71-20.26 10.08l-10.17 30.34c-2.81 8.38 1.71 17.45 10.08 20.26l132 44.26c7.28 21.25 22.96 38.54 43.38 47.47V448H112c-8.84 0-16 7.16-16 16zM0 304c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02c0-15.67 2.08-7.25-85.05-181.51-17.68-35.36-68.22-35.29-85.87 0C-1.32 295.27.02 287.82.02 304H0zm56-16l72-144 72 144H56zm328.02 144H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02c0-15.67 2.08-7.25-85.05-181.51-17.68-35.36-68.22-35.29-85.87 0-86.38 172.78-85.04 165.33-85.04 181.51zM440 416l72-144 72 144H440z"]
};
var faBan = {
  prefix: 'fas',
  iconName: 'ban',
  icon: [512, 512, [], "f05e", "M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z"]
};
var faBandAid = {
  prefix: 'fas',
  iconName: 'band-aid',
  icon: [640, 512, [], "f462", "M0 160v192c0 35.3 28.7 64 64 64h96V96H64c-35.3 0-64 28.7-64 64zm576-64h-96v320h96c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64zM192 416h256V96H192v320zm176-232c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm0 96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm-96-96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm0 96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24z"]
};
var faBarcode = {
  prefix: 'fas',
  iconName: 'barcode',
  icon: [512, 512, [], "f02a", "M0 448V64h18v384H0zm26.857-.273V64H36v383.727h-9.143zm27.143 0V64h8.857v383.727H54zm44.857 0V64h8.857v383.727h-8.857zm36 0V64h17.714v383.727h-17.714zm44.857 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm35.715 0V64h18v383.727h-18zm44.857 0V64h18v383.727h-18zm35.999 0V64h18.001v383.727h-18.001zm36.001 0V64h18.001v383.727h-18.001zm26.857 0V64h18v383.727h-18zm45.143 0V64h26.857v383.727h-26.857zm35.714 0V64h9.143v383.727H476zm18 .273V64h18v384h-18z"]
};
var faBars = {
  prefix: 'fas',
  iconName: 'bars',
  icon: [448, 512, [], "f0c9", "M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"]
};
var faBaseballBall = {
  prefix: 'fas',
  iconName: 'baseball-ball',
  icon: [496, 512, [], "f433", "M368.5 363.9l28.8-13.9c11.1 22.9 26 43.2 44.1 60.9 34-42.5 54.5-96.3 54.5-154.9 0-58.5-20.4-112.2-54.2-154.6-17.8 17.3-32.6 37.1-43.6 59.5l-28.7-14.1c12.8-26 30-49 50.8-69C375.6 34.7 315 8 248 8 181.1 8 120.5 34.6 75.9 77.7c20.7 19.9 37.9 42.9 50.7 68.8l-28.7 14.1c-11-22.3-25.7-42.1-43.5-59.4C20.4 143.7 0 197.4 0 256c0 58.6 20.4 112.3 54.4 154.7 18.2-17.7 33.2-38 44.3-61l28.8 13.9c-12.9 26.7-30.3 50.3-51.5 70.7 44.5 43.1 105.1 69.7 172 69.7 66.8 0 127.3-26.5 171.9-69.5-21.1-20.4-38.5-43.9-51.4-70.6zm-228.3-32l-30.5-9.8c14.9-46.4 12.7-93.8-.6-134l30.4-10c15 45.6 18 99.9.7 153.8zm216.3-153.4l30.4 10c-13.2 40.1-15.5 87.5-.6 134l-30.5 9.8c-17.3-54-14.3-108.3.7-153.8z"]
};
var faBasketballBall = {
  prefix: 'fas',
  iconName: 'basketball-ball',
  icon: [496, 512, [], "f434", "M212.3 10.3c-43.8 6.3-86.2 24.1-122.2 53.8l77.4 77.4c27.8-35.8 43.3-81.2 44.8-131.2zM248 222L405.9 64.1c-42.4-35-93.6-53.5-145.5-56.1-1.2 63.9-21.5 122.3-58.7 167.7L248 222zM56.1 98.1c-29.7 36-47.5 78.4-53.8 122.2 50-1.5 95.5-17 131.2-44.8L56.1 98.1zm272.2 204.2c45.3-37.1 103.7-57.4 167.7-58.7-2.6-51.9-21.1-103.1-56.1-145.5L282 256l46.3 46.3zM248 290L90.1 447.9c42.4 34.9 93.6 53.5 145.5 56.1 1.3-64 21.6-122.4 58.7-167.7L248 290zm191.9 123.9c29.7-36 47.5-78.4 53.8-122.2-50.1 1.6-95.5 17.1-131.2 44.8l77.4 77.4zM167.7 209.7C122.3 246.9 63.9 267.3 0 268.4c2.6 51.9 21.1 103.1 56.1 145.5L214 256l-46.3-46.3zm116 292c43.8-6.3 86.2-24.1 122.2-53.8l-77.4-77.4c-27.7 35.7-43.2 81.2-44.8 131.2z"]
};
var faBath = {
  prefix: 'fas',
  iconName: 'bath',
  icon: [512, 512, [], "f2cd", "M32,384a95.4,95.4,0,0,0,32,71.09V496a16,16,0,0,0,16,16h32a16,16,0,0,0,16-16V480H384v16a16,16,0,0,0,16,16h32a16,16,0,0,0,16-16V455.09A95.4,95.4,0,0,0,480,384V336H32ZM496,256H80V69.25a21.26,21.26,0,0,1,36.28-15l19.27,19.26c-13.13,29.88-7.61,59.11,8.62,79.73l-.17.17A16,16,0,0,0,144,176l11.31,11.31a16,16,0,0,0,22.63,0L283.31,81.94a16,16,0,0,0,0-22.63L272,48a16,16,0,0,0-22.62,0l-.17.17c-20.62-16.23-49.83-21.75-79.73-8.62L150.22,20.28A69.25,69.25,0,0,0,32,69.25V256H16A16,16,0,0,0,0,272v16a16,16,0,0,0,16,16H496a16,16,0,0,0,16-16V272A16,16,0,0,0,496,256Z"]
};
var faBatteryEmpty = {
  prefix: 'fas',
  iconName: 'battery-empty',
  icon: [640, 512, [], "f244", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48z"]
};
var faBatteryFull = {
  prefix: 'fas',
  iconName: 'battery-full',
  icon: [640, 512, [], "f240", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-48 96H96v128h416V192z"]
};
var faBatteryHalf = {
  prefix: 'fas',
  iconName: 'battery-half',
  icon: [640, 512, [], "f242", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-240 96H96v128h224V192z"]
};
var faBatteryQuarter = {
  prefix: 'fas',
  iconName: 'battery-quarter',
  icon: [640, 512, [], "f243", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-336 96H96v128h128V192z"]
};
var faBatteryThreeQuarters = {
  prefix: 'fas',
  iconName: 'battery-three-quarters',
  icon: [640, 512, [], "f241", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-144 96H96v128h320V192z"]
};
var faBed = {
  prefix: 'fas',
  iconName: 'bed',
  icon: [640, 512, [], "f236", "M176 256c44.11 0 80-35.89 80-80s-35.89-80-80-80-80 35.89-80 80 35.89 80 80 80zm352-128H304c-8.84 0-16 7.16-16 16v144H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v352c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h512v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V240c0-61.86-50.14-112-112-112z"]
};
var faBeer = {
  prefix: 'fas',
  iconName: 'beer',
  icon: [448, 512, [], "f0fc", "M368 96h-48V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56v400c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24v-42.11l80.606-35.977C429.396 365.063 448 336.388 448 304.86V176c0-44.112-35.888-80-80-80zm16 208.86a16.018 16.018 0 0 1-9.479 14.611L320 343.805V160h48c8.822 0 16 7.178 16 16v128.86zM208 384c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16zm-96 0c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16z"]
};
var faBell = {
  prefix: 'fas',
  iconName: 'bell',
  icon: [448, 512, [], "f0f3", "M224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64zm215.39-149.71c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71z"]
};
var faBellSlash = {
  prefix: 'fas',
  iconName: 'bell-slash',
  icon: [640, 512, [], "f1f6", "M633.82 458.1l-90.62-70.05c.19-1.38.8-2.66.8-4.06.05-7.55-2.61-15.27-8.61-21.71-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84c-40.33 8.38-74.66 31.07-97.59 62.57L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.35 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.42-6.97 4.17-17.02-2.81-22.45zM157.23 251.54c-8.61 67.96-36.41 93.33-52.62 110.75-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h241.92L157.23 251.54zM320 512c35.32 0 63.97-28.65 63.97-64H256.03c0 35.35 28.65 64 63.97 64z"]
};
var faBezierCurve = {
  prefix: 'fas',
  iconName: 'bezier-curve',
  icon: [640, 512, [], "f55b", "M368 32h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zM208 88h-84.75C113.75 64.56 90.84 48 64 48 28.66 48 0 76.65 0 112s28.66 64 64 64c26.84 0 49.75-16.56 59.25-40h79.73c-55.37 32.52-95.86 87.32-109.54 152h49.4c11.3-41.61 36.77-77.21 71.04-101.56-3.7-8.08-5.88-16.99-5.88-26.44V88zm-48 232H64c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zM576 48c-26.84 0-49.75 16.56-59.25 40H432v72c0 9.45-2.19 18.36-5.88 26.44 34.27 24.35 59.74 59.95 71.04 101.56h49.4c-13.68-64.68-54.17-119.48-109.54-152h79.73c9.5 23.44 32.41 40 59.25 40 35.34 0 64-28.65 64-64s-28.66-64-64-64zm0 272h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"]
};
var faBible = {
  prefix: 'fas',
  iconName: 'bible',
  icon: [448, 512, [], "f647", "M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM144 144c0-8.84 7.16-16 16-16h48V80c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v48h48c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16h-48v112c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16V192h-48c-8.84 0-16-7.16-16-16v-32zm236.8 304H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"]
};
var faBicycle = {
  prefix: 'fas',
  iconName: 'bicycle',
  icon: [640, 512, [], "f206", "M512.509 192.001c-16.373-.064-32.03 2.955-46.436 8.495l-77.68-125.153A24 24 0 0 0 368.001 64h-64c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h50.649l14.896 24H256.002v-16c0-8.837-7.163-16-16-16h-87.459c-13.441 0-24.777 10.999-24.536 24.437.232 13.044 10.876 23.563 23.995 23.563h48.726l-29.417 47.52c-13.433-4.83-27.904-7.483-42.992-7.52C58.094 191.83.412 249.012.002 319.236-.413 390.279 57.055 448 128.002 448c59.642 0 109.758-40.793 123.967-96h52.033a24 24 0 0 0 20.406-11.367L410.37 201.77l14.938 24.067c-25.455 23.448-41.385 57.081-41.307 94.437.145 68.833 57.899 127.051 126.729 127.719 70.606.685 128.181-55.803 129.255-125.996 1.086-70.941-56.526-129.72-127.476-129.996zM186.75 265.772c9.727 10.529 16.673 23.661 19.642 38.228h-43.306l23.664-38.228zM128.002 400c-44.112 0-80-35.888-80-80s35.888-80 80-80c5.869 0 11.586.653 17.099 1.859l-45.505 73.509C89.715 331.327 101.213 352 120.002 352h81.3c-12.37 28.225-40.562 48-73.3 48zm162.63-96h-35.624c-3.96-31.756-19.556-59.894-42.383-80.026L237.371 184h127.547l-74.286 120zm217.057 95.886c-41.036-2.165-74.049-35.692-75.627-76.755-.812-21.121 6.633-40.518 19.335-55.263l44.433 71.586c4.66 7.508 14.524 9.816 22.032 5.156l13.594-8.437c7.508-4.66 9.817-14.524 5.156-22.032l-44.468-71.643a79.901 79.901 0 0 1 19.858-2.497c44.112 0 80 35.888 80 80-.001 45.54-38.252 82.316-84.313 79.885z"]
};
var faBiking = {
  prefix: 'fas',
  iconName: 'biking',
  icon: [640, 512, [], "f84a", "M400 96a48 48 0 1 0-48-48 48 48 0 0 0 48 48zm-4 121a31.9 31.9 0 0 0 20 7h64a32 32 0 0 0 0-64h-52.78L356 103a31.94 31.94 0 0 0-40.81.68l-112 96a32 32 0 0 0 3.08 50.92L288 305.12V416a32 32 0 0 0 64 0V288a32 32 0 0 0-14.25-26.62l-41.36-27.57 58.25-49.92zm116 39a128 128 0 1 0 128 128 128 128 0 0 0-128-128zm0 192a64 64 0 1 1 64-64 64 64 0 0 1-64 64zM128 256a128 128 0 1 0 128 128 128 128 0 0 0-128-128zm0 192a64 64 0 1 1 64-64 64 64 0 0 1-64 64z"]
};
var faBinoculars = {
  prefix: 'fas',
  iconName: 'binoculars',
  icon: [512, 512, [], "f1e5", "M416 48c0-8.84-7.16-16-16-16h-64c-8.84 0-16 7.16-16 16v48h96V48zM63.91 159.99C61.4 253.84 3.46 274.22 0 404v44c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32V288h32V128H95.84c-17.63 0-31.45 14.37-31.93 31.99zm384.18 0c-.48-17.62-14.3-31.99-31.93-31.99H320v160h32v160c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-44c-3.46-129.78-61.4-150.16-63.91-244.01zM176 32h-64c-8.84 0-16 7.16-16 16v48h96V48c0-8.84-7.16-16-16-16zm48 256h64V128h-64v160z"]
};
var faBiohazard = {
  prefix: 'fas',
  iconName: 'biohazard',
  icon: [576, 512, [], "f780", "M287.9 112c18.6 0 36.2 3.8 52.8 9.6 13.3-10.3 23.6-24.3 29.5-40.7-25.2-10.9-53-17-82.2-17-29.1 0-56.9 6-82.1 16.9 5.9 16.4 16.2 30.4 29.5 40.7 16.5-5.7 34-9.5 52.5-9.5zM163.6 438.7c12-11.8 20.4-26.4 24.5-42.4-32.9-26.4-54.8-65.3-58.9-109.6-8.5-2.8-17.2-4.6-26.4-4.6-7.6 0-15.2 1-22.5 3.1 4.1 62.8 35.8 118 83.3 153.5zm224.2-42.6c4.1 16 12.5 30.7 24.5 42.5 47.4-35.5 79.1-90.7 83-153.5-7.2-2-14.7-3-22.2-3-9.2 0-18 1.9-26.6 4.7-4.1 44.2-26 82.9-58.7 109.3zm113.5-205c-17.6-10.4-36.3-16.6-55.3-19.9 6-17.7 10-36.4 10-56.2 0-41-14.5-80.8-41-112.2-2.5-3-6.6-3.7-10-1.8-3.3 1.9-4.8 6-3.6 9.7 4.5 13.8 6.6 26.3 6.6 38.5 0 67.8-53.8 122.9-120 122.9S168 117 168 49.2c0-12.1 2.2-24.7 6.6-38.5 1.2-3.7-.3-7.8-3.6-9.7-3.4-1.9-7.5-1.2-10 1.8C134.6 34.2 120 74 120 115c0 19.8 3.9 38.5 10 56.2-18.9 3.3-37.7 9.5-55.3 19.9-34.6 20.5-61 53.3-74.3 92.4-1.3 3.7.2 7.7 3.5 9.8 3.3 2 7.5 1.3 10-1.6 9.4-10.8 19-19.1 29.2-25.1 57.3-33.9 130.8-13.7 163.9 45 33.1 58.7 13.4 134-43.9 167.9-10.2 6.1-22 10.4-35.8 13.4-3.7.8-6.4 4.2-6.4 8.1.1 4 2.7 7.3 6.5 8 39.7 7.8 80.6.8 115.2-19.7 18-10.6 32.9-24.5 45.3-40.1 12.4 15.6 27.3 29.5 45.3 40.1 34.6 20.5 75.5 27.5 115.2 19.7 3.8-.7 6.4-4 6.5-8 0-3.9-2.6-7.3-6.4-8.1-13.9-2.9-25.6-7.3-35.8-13.4-57.3-33.9-77-109.2-43.9-167.9s106.6-78.9 163.9-45c10.2 6.1 19.8 14.3 29.2 25.1 2.5 2.9 6.7 3.6 10 1.6s4.8-6.1 3.5-9.8c-13.1-39.1-39.5-72-74.1-92.4zm-213.4 129c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"]
};
var faBirthdayCake = {
  prefix: 'fas',
  iconName: 'birthday-cake',
  icon: [448, 512, [], "f1fd", "M448 384c-28.02 0-31.26-32-74.5-32-43.43 0-46.825 32-74.75 32-27.695 0-31.454-32-74.75-32-42.842 0-47.218 32-74.5 32-28.148 0-31.202-32-74.75-32-43.547 0-46.653 32-74.75 32v-80c0-26.5 21.5-48 48-48h16V112h64v144h64V112h64v144h64V112h64v144h16c26.5 0 48 21.5 48 48v80zm0 128H0v-96c43.356 0 46.767-32 74.75-32 27.951 0 31.253 32 74.75 32 42.843 0 47.217-32 74.5-32 28.148 0 31.201 32 74.75 32 43.357 0 46.767-32 74.75-32 27.488 0 31.252 32 74.5 32v96zM96 96c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40z"]
};
var faBlender = {
  prefix: 'fas',
  iconName: 'blender',
  icon: [512, 512, [], "f517", "M416 384H160c-35.35 0-64 28.65-64 64v32c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-32c0-35.35-28.65-64-64-64zm-128 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm40-416h166.54L512 0H48C21.49 0 0 21.49 0 48v160c0 26.51 21.49 48 48 48h103.27l8.73 96h256l17.46-64H328c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h114.18l17.46-64H328c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h140.36l17.46-64H328c-4.42 0-8-3.58-8-8V72c0-4.42 3.58-8 8-8zM64 192V64h69.82l11.64 128H64z"]
};
var faBlenderPhone = {
  prefix: 'fas',
  iconName: 'blender-phone',
  icon: [576, 512, [], "f6b6", "M392 64h166.54L576 0H192v352h288l17.46-64H392c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h114.18l17.46-64H392c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h140.36l17.46-64H392c-4.42 0-8-3.58-8-8V72c0-4.42 3.58-8 8-8zM158.8 335.01l-25.78-63.26c-2.78-6.81-9.8-10.99-17.24-10.26l-45.03 4.42c-17.28-46.94-17.65-99.78 0-147.72l45.03 4.42c7.43.73 14.46-3.46 17.24-10.26l25.78-63.26c3.02-7.39.2-15.85-6.68-20.07l-39.28-24.1C98.51-3.87 80.09-.5 68.95 11.97c-92.57 103.6-92 259.55 2.1 362.49 9.87 10.8 29.12 12.48 41.65 4.8l39.41-24.18c6.89-4.22 9.7-12.67 6.69-20.07zM480 384H192c-35.35 0-64 28.65-64 64v32c0 17.67 14.33 32 32 32h352c17.67 0 32-14.33 32-32v-32c0-35.35-28.65-64-64-64zm-144 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
};
var faBlind = {
  prefix: 'fas',
  iconName: 'blind',
  icon: [384, 512, [], "f29d", "M380.15 510.837a8 8 0 0 1-10.989-2.687l-125.33-206.427a31.923 31.923 0 0 0 12.958-9.485l126.048 207.608a8 8 0 0 1-2.687 10.991zM142.803 314.338l-32.54 89.485 36.12 88.285c6.693 16.36 25.377 24.192 41.733 17.501 16.357-6.692 24.193-25.376 17.501-41.734l-62.814-153.537zM96 88c24.301 0 44-19.699 44-44S120.301 0 96 0 52 19.699 52 44s19.699 44 44 44zm154.837 169.128l-120-152c-4.733-5.995-11.75-9.108-18.837-9.112V96H80v.026c-7.146.003-14.217 3.161-18.944 9.24L0 183.766v95.694c0 13.455 11.011 24.791 24.464 24.536C37.505 303.748 48 293.1 48 280v-79.766l16-20.571v140.698L9.927 469.055c-6.04 16.609 2.528 34.969 19.138 41.009 16.602 6.039 34.968-2.524 41.009-19.138L136 309.638V202.441l-31.406-39.816a4 4 0 1 1 6.269-4.971l102.3 129.217c9.145 11.584 24.368 11.339 33.708 3.965 10.41-8.216 12.159-23.334 3.966-33.708z"]
};
var faBlog = {
  prefix: 'fas',
  iconName: 'blog',
  icon: [512, 512, [], "f781", "M172.2 226.8c-14.6-2.9-28.2 8.9-28.2 23.8V301c0 10.2 7.1 18.4 16.7 22 18.2 6.8 31.3 24.4 31.3 45 0 26.5-21.5 48-48 48s-48-21.5-48-48V120c0-13.3-10.7-24-24-24H24c-13.3 0-24 10.7-24 24v248c0 89.5 82.1 160.2 175 140.7 54.4-11.4 98.3-55.4 109.7-109.7 17.4-82.9-37-157.2-112.5-172.2zM209 0c-9.2-.5-17 6.8-17 16v31.6c0 8.5 6.6 15.5 15 15.9 129.4 7 233.4 112 240.9 241.5.5 8.4 7.5 15 15.9 15h32.1c9.2 0 16.5-7.8 16-17C503.4 139.8 372.2 8.6 209 0zm.3 96c-9.3-.7-17.3 6.7-17.3 16.1v32.1c0 8.4 6.5 15.3 14.8 15.9 76.8 6.3 138 68.2 144.9 145.2.8 8.3 7.6 14.7 15.9 14.7h32.2c9.3 0 16.8-8 16.1-17.3-8.4-110.1-96.5-198.2-206.6-206.7z"]
};
var faBold = {
  prefix: 'fas',
  iconName: 'bold',
  icon: [384, 512, [], "f032", "M333.49 238a122 122 0 0 0 27-65.21C367.87 96.49 308 32 233.42 32H34a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h31.87v288H34a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h209.32c70.8 0 134.14-51.75 141-122.4 4.74-48.45-16.39-92.06-50.83-119.6zM145.66 112h87.76a48 48 0 0 1 0 96h-87.76zm87.76 288h-87.76V288h87.76a56 56 0 0 1 0 112z"]
};
var faBolt = {
  prefix: 'fas',
  iconName: 'bolt',
  icon: [320, 512, [], "f0e7", "M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"]
};
var faBomb = {
  prefix: 'fas',
  iconName: 'bomb',
  icon: [512, 512, [], "f1e2", "M440.5 88.5l-52 52L415 167c9.4 9.4 9.4 24.6 0 33.9l-17.4 17.4c11.8 26.1 18.4 55.1 18.4 85.6 0 114.9-93.1 208-208 208S0 418.9 0 304 93.1 96 208 96c30.5 0 59.5 6.6 85.6 18.4L311 97c9.4-9.4 24.6-9.4 33.9 0l26.5 26.5 52-52 17.1 17zM500 60h-24c-6.6 0-12 5.4-12 12s5.4 12 12 12h24c6.6 0 12-5.4 12-12s-5.4-12-12-12zM440 0c-6.6 0-12 5.4-12 12v24c0 6.6 5.4 12 12 12s12-5.4 12-12V12c0-6.6-5.4-12-12-12zm33.9 55l17-17c4.7-4.7 4.7-12.3 0-17-4.7-4.7-12.3-4.7-17 0l-17 17c-4.7 4.7-4.7 12.3 0 17 4.8 4.7 12.4 4.7 17 0zm-67.8 0c4.7 4.7 12.3 4.7 17 0 4.7-4.7 4.7-12.3 0-17l-17-17c-4.7-4.7-12.3-4.7-17 0-4.7 4.7-4.7 12.3 0 17l17 17zm67.8 34c-4.7-4.7-12.3-4.7-17 0-4.7 4.7-4.7 12.3 0 17l17 17c4.7 4.7 12.3 4.7 17 0 4.7-4.7 4.7-12.3 0-17l-17-17zM112 272c0-35.3 28.7-64 64-64 8.8 0 16-7.2 16-16s-7.2-16-16-16c-52.9 0-96 43.1-96 96 0 8.8 7.2 16 16 16s16-7.2 16-16z"]
};
var faBone = {
  prefix: 'fas',
  iconName: 'bone',
  icon: [640, 512, [], "f5d7", "M598.88 244.56c25.2-12.6 41.12-38.36 41.12-66.53v-7.64C640 129.3 606.7 96 565.61 96c-32.02 0-60.44 20.49-70.57 50.86-7.68 23.03-11.6 45.14-38.11 45.14H183.06c-27.38 0-31.58-25.54-38.11-45.14C134.83 116.49 106.4 96 74.39 96 33.3 96 0 129.3 0 170.39v7.64c0 28.17 15.92 53.93 41.12 66.53 9.43 4.71 9.43 18.17 0 22.88C15.92 280.04 0 305.8 0 333.97v7.64C0 382.7 33.3 416 74.38 416c32.02 0 60.44-20.49 70.57-50.86 7.68-23.03 11.6-45.14 38.11-45.14h273.87c27.38 0 31.58 25.54 38.11 45.14C505.17 395.51 533.6 416 565.61 416c41.08 0 74.38-33.3 74.38-74.39v-7.64c0-28.18-15.92-53.93-41.12-66.53-9.42-4.71-9.42-18.17.01-22.88z"]
};
var faBong = {
  prefix: 'fas',
  iconName: 'bong',
  icon: [448, 512, [], "f55c", "M302.5 512c23.18 0 44.43-12.58 56-32.66C374.69 451.26 384 418.75 384 384c0-36.12-10.08-69.81-27.44-98.62L400 241.94l9.38 9.38c6.25 6.25 16.38 6.25 22.63 0l11.3-11.32c6.25-6.25 6.25-16.38 0-22.63l-52.69-52.69c-6.25-6.25-16.38-6.25-22.63 0l-11.31 11.31c-6.25 6.25-6.25 16.38 0 22.63l9.38 9.38-39.41 39.41c-11.56-11.37-24.53-21.33-38.65-29.51V63.74l15.97-.02c8.82-.01 15.97-7.16 15.98-15.98l.04-31.72C320 7.17 312.82-.01 303.97 0L80.03.26c-8.82.01-15.97 7.16-15.98 15.98l-.04 31.73c-.01 8.85 7.17 16.02 16.02 16.01L96 63.96v153.93C38.67 251.1 0 312.97 0 384c0 34.75 9.31 67.27 25.5 95.34C37.08 499.42 58.33 512 81.5 512h221zM120.06 259.43L144 245.56V63.91l96-.11v181.76l23.94 13.87c24.81 14.37 44.12 35.73 56.56 60.57h-257c12.45-24.84 31.75-46.2 56.56-60.57z"]
};
var faBook = {
  prefix: 'fas',
  iconName: 'book',
  icon: [448, 512, [], "f02d", "M448 360V24c0-13.3-10.7-24-24-24H96C43 0 0 43 0 96v320c0 53 43 96 96 96h328c13.3 0 24-10.7 24-24v-16c0-7.5-3.5-14.3-8.9-18.7-4.2-15.4-4.2-59.3 0-74.7 5.4-4.3 8.9-11.1 8.9-18.6zM128 134c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm0 64c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm253.4 250H96c-17.7 0-32-14.3-32-32 0-17.6 14.4-32 32-32h285.4c-1.9 17.1-1.9 46.9 0 64z"]
};
var faBookDead = {
  prefix: 'fas',
  iconName: 'book-dead',
  icon: [448, 512, [], "f6b7", "M272 136c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16zm176 222.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM240 56c44.2 0 80 28.7 80 64 0 20.9-12.7 39.2-32 50.9V184c0 8.8-7.2 16-16 16h-64c-8.8 0-16-7.2-16-16v-13.1c-19.3-11.7-32-30-32-50.9 0-35.3 35.8-64 80-64zM124.8 223.3l6.3-14.7c1.7-4.1 6.4-5.9 10.5-4.2l98.3 42.1 98.4-42.1c4.1-1.7 8.8.1 10.5 4.2l6.3 14.7c1.7 4.1-.1 8.8-4.2 10.5L280.6 264l70.3 30.1c4.1 1.7 5.9 6.4 4.2 10.5l-6.3 14.7c-1.7 4.1-6.4 5.9-10.5 4.2L240 281.4l-98.3 42.2c-4.1 1.7-8.8-.1-10.5-4.2l-6.3-14.7c-1.7-4.1.1-8.8 4.2-10.5l70.4-30.1-70.5-30.3c-4.1-1.7-5.9-6.4-4.2-10.5zm256 224.7H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8zM208 136c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16z"]
};
var faBookMedical = {
  prefix: 'fas',
  iconName: 'book-medical',
  icon: [448, 512, [], "f7e6", "M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16q0-9.6-9.6-19.2c-3.2-16-3.2-60.8 0-73.6q9.6-4.8 9.6-19.2zM144 168a8 8 0 0 1 8-8h56v-56a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v56h56a8 8 0 0 1 8 8v48a8 8 0 0 1-8 8h-56v56a8 8 0 0 1-8 8h-48a8 8 0 0 1-8-8v-56h-56a8 8 0 0 1-8-8zm236.8 280H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8z"]
};
var faBookOpen = {
  prefix: 'fas',
  iconName: 'book-open',
  icon: [576, 512, [], "f518", "M542.22 32.05c-54.8 3.11-163.72 14.43-230.96 55.59-4.64 2.84-7.27 7.89-7.27 13.17v363.87c0 11.55 12.63 18.85 23.28 13.49 69.18-34.82 169.23-44.32 218.7-46.92 16.89-.89 30.02-14.43 30.02-30.66V62.75c.01-17.71-15.35-31.74-33.77-30.7zM264.73 87.64C197.5 46.48 88.58 35.17 33.78 32.05 15.36 31.01 0 45.04 0 62.75V400.6c0 16.24 13.13 29.78 30.02 30.66 49.49 2.6 149.59 12.11 218.77 46.95 10.62 5.35 23.21-1.94 23.21-13.46V100.63c0-5.29-2.62-10.14-7.27-12.99z"]
};
var faBookReader = {
  prefix: 'fas',
  iconName: 'book-reader',
  icon: [512, 512, [], "f5da", "M352 96c0-53.02-42.98-96-96-96s-96 42.98-96 96 42.98 96 96 96 96-42.98 96-96zM233.59 241.1c-59.33-36.32-155.43-46.3-203.79-49.05C13.55 191.13 0 203.51 0 219.14v222.8c0 14.33 11.59 26.28 26.49 27.05 43.66 2.29 131.99 10.68 193.04 41.43 9.37 4.72 20.48-1.71 20.48-11.87V252.56c-.01-4.67-2.32-8.95-6.42-11.46zm248.61-49.05c-48.35 2.74-144.46 12.73-203.78 49.05-4.1 2.51-6.41 6.96-6.41 11.63v245.79c0 10.19 11.14 16.63 20.54 11.9 61.04-30.72 149.32-39.11 192.97-41.4 14.9-.78 26.49-12.73 26.49-27.06V219.14c-.01-15.63-13.56-28.01-29.81-27.09z"]
};
var faBookmark = {
  prefix: 'fas',
  iconName: 'bookmark',
  icon: [384, 512, [], "f02e", "M0 512V48C0 21.49 21.49 0 48 0h288c26.51 0 48 21.49 48 48v464L192 400 0 512z"]
};
var faBorderAll = {
  prefix: 'fas',
  iconName: 'border-all',
  icon: [448, 512, [], "f84c", "M416 32H32A32 32 0 0 0 0 64v384a32 32 0 0 0 32 32h384a32 32 0 0 0 32-32V64a32 32 0 0 0-32-32zm-32 64v128H256V96zm-192 0v128H64V96zM64 416V288h128v128zm192 0V288h128v128z"]
};
var faBorderNone = {
  prefix: 'fas',
  iconName: 'border-none',
  icon: [448, 512, [], "f850", "M240 224h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-288 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96 192h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-96h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-192h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM240 320h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-192h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-96 288h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96-384h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM48 224H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 192H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-96H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-192H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-96H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
};
var faBorderStyle = {
  prefix: 'fas',
  iconName: 'border-style',
  icon: [448, 512, [], "f853", "M240 416h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm192 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96-192h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 96h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 96h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-288h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-96H32A32 32 0 0 0 0 64v400a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V96h368a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
};
var faBowlingBall = {
  prefix: 'fas',
  iconName: 'bowling-ball',
  icon: [496, 512, [], "f436", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM120 192c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm64-96c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm48 144c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]
};
var faBox = {
  prefix: 'fas',
  iconName: 'box',
  icon: [512, 512, [], "f466", "M509.5 184.6L458.9 32.8C452.4 13.2 434.1 0 413.4 0H272v192h238.7c-.4-2.5-.4-5-1.2-7.4zM240 0H98.6c-20.7 0-39 13.2-45.5 32.8L2.5 184.6c-.8 2.4-.8 4.9-1.2 7.4H240V0zM0 224v240c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V224H0z"]
};
var faBoxOpen = {
  prefix: 'fas',
  iconName: 'box-open',
  icon: [640, 512, [], "f49e", "M425.7 256c-16.9 0-32.8-9-41.4-23.4L320 126l-64.2 106.6c-8.7 14.5-24.6 23.5-41.5 23.5-4.5 0-9-.6-13.3-1.9L64 215v178c0 14.7 10 27.5 24.2 31l216.2 54.1c10.2 2.5 20.9 2.5 31 0L551.8 424c14.2-3.6 24.2-16.4 24.2-31V215l-137 39.1c-4.3 1.3-8.8 1.9-13.3 1.9zm212.6-112.2L586.8 41c-3.1-6.2-9.8-9.8-16.7-8.9L320 64l91.7 152.1c3.8 6.3 11.4 9.3 18.5 7.3l197.9-56.5c9.9-2.9 14.7-13.9 10.2-23.1zM53.2 41L1.7 143.8c-4.6 9.2.3 20.2 10.1 23l197.9 56.5c7.1 2 14.7-1 18.5-7.3L320 64 69.8 32.1c-6.9-.8-13.5 2.7-16.6 8.9z"]
};
var faBoxTissue = {
  prefix: 'fas',
  iconName: 'box-tissue',
  icon: [512, 512, [], "e05b", "M383.88,287.82l64-192H338.47a70.2,70.2,0,0,1-66.59-48,70.21,70.21,0,0,0-66.6-48H63.88l64,288Zm-384,192a32,32,0,0,0,32,32h448a32,32,0,0,0,32-32v-64H-.12Zm480-256H438.94l-21.33,64h14.27a16,16,0,0,1,0,32h-352a16,16,0,1,1,0-32H95.09l-14.22-64h-49a32,32,0,0,0-32,32v128h512v-128A32,32,0,0,0,479.88,223.82Z"]
};
var faBoxes = {
  prefix: 'fas',
  iconName: 'boxes',
  icon: [576, 512, [], "f468", "M560 288h-80v96l-32-21.3-32 21.3v-96h-80c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16h224c8.8 0 16-7.2 16-16V304c0-8.8-7.2-16-16-16zm-384-64h224c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16h-80v96l-32-21.3L256 96V0h-80c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16zm64 64h-80v96l-32-21.3L96 384v-96H16c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16h224c8.8 0 16-7.2 16-16V304c0-8.8-7.2-16-16-16z"]
};
var faBraille = {
  prefix: 'fas',
  iconName: 'braille',
  icon: [640, 512, [], "f2a1", "M128 256c0 35.346-28.654 64-64 64S0 291.346 0 256s28.654-64 64-64 64 28.654 64 64zM64 384c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352C28.654 32 0 60.654 0 96s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm160 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm224 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm160 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-320c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32z"]
};
var faBrain = {
  prefix: 'fas',
  iconName: 'brain',
  icon: [576, 512, [], "f5dc", "M208 0c-29.9 0-54.7 20.5-61.8 48.2-.8 0-1.4-.2-2.2-.2-35.3 0-64 28.7-64 64 0 4.8.6 9.5 1.7 14C52.5 138 32 166.6 32 200c0 12.6 3.2 24.3 8.3 34.9C16.3 248.7 0 274.3 0 304c0 33.3 20.4 61.9 49.4 73.9-.9 4.6-1.4 9.3-1.4 14.1 0 39.8 32.2 72 72 72 4.1 0 8.1-.5 12-1.2 9.6 28.5 36.2 49.2 68 49.2 39.8 0 72-32.2 72-72V64c0-35.3-28.7-64-64-64zm368 304c0-29.7-16.3-55.3-40.3-69.1 5.2-10.6 8.3-22.3 8.3-34.9 0-33.4-20.5-62-49.7-74 1-4.5 1.7-9.2 1.7-14 0-35.3-28.7-64-64-64-.8 0-1.5.2-2.2.2C422.7 20.5 397.9 0 368 0c-35.3 0-64 28.6-64 64v376c0 39.8 32.2 72 72 72 31.8 0 58.4-20.7 68-49.2 3.9.7 7.9 1.2 12 1.2 39.8 0 72-32.2 72-72 0-4.8-.5-9.5-1.4-14.1 29-12 49.4-40.6 49.4-73.9z"]
};
var faBreadSlice = {
  prefix: 'fas',
  iconName: 'bread-slice',
  icon: [576, 512, [], "f7ec", "M288 0C108 0 0 93.4 0 169.14 0 199.44 24.24 224 64 224v256c0 17.67 16.12 32 36 32h376c19.88 0 36-14.33 36-32V224c39.76 0 64-24.56 64-54.86C576 93.4 468 0 288 0z"]
};
var faBriefcase = {
  prefix: 'fas',
  iconName: 'briefcase',
  icon: [512, 512, [], "f0b1", "M320 336c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h416c25.6 0 48-22.4 48-48V288H320v48zm144-208h-80V80c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h512v-80c0-25.6-22.4-48-48-48zm-144 0H192V96h128v32z"]
};
var faBriefcaseMedical = {
  prefix: 'fas',
  iconName: 'briefcase-medical',
  icon: [512, 512, [], "f469", "M464 128h-80V80c0-26.5-21.5-48-48-48H176c-26.5 0-48 21.5-48 48v48H48c-26.5 0-48 21.5-48 48v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V176c0-26.5-21.5-48-48-48zM192 96h128v32H192V96zm160 248c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48z"]
};
var faBroadcastTower = {
  prefix: 'fas',
  iconName: 'broadcast-tower',
  icon: [640, 512, [], "f519", "M150.94 192h33.73c11.01 0 18.61-10.83 14.86-21.18-4.93-13.58-7.55-27.98-7.55-42.82s2.62-29.24 7.55-42.82C203.29 74.83 195.68 64 184.67 64h-33.73c-7.01 0-13.46 4.49-15.41 11.23C130.64 92.21 128 109.88 128 128c0 18.12 2.64 35.79 7.54 52.76 1.94 6.74 8.39 11.24 15.4 11.24zM89.92 23.34C95.56 12.72 87.97 0 75.96 0H40.63c-6.27 0-12.14 3.59-14.74 9.31C9.4 45.54 0 85.65 0 128c0 24.75 3.12 68.33 26.69 118.86 2.62 5.63 8.42 9.14 14.61 9.14h34.84c12.02 0 19.61-12.74 13.95-23.37-49.78-93.32-16.71-178.15-.17-209.29zM614.06 9.29C611.46 3.58 605.6 0 599.33 0h-35.42c-11.98 0-19.66 12.66-14.02 23.25 18.27 34.29 48.42 119.42.28 209.23-5.72 10.68 1.8 23.52 13.91 23.52h35.23c6.27 0 12.13-3.58 14.73-9.29C630.57 210.48 640 170.36 640 128s-9.42-82.48-25.94-118.71zM489.06 64h-33.73c-11.01 0-18.61 10.83-14.86 21.18 4.93 13.58 7.55 27.98 7.55 42.82s-2.62 29.24-7.55 42.82c-3.76 10.35 3.85 21.18 14.86 21.18h33.73c7.02 0 13.46-4.49 15.41-11.24 4.9-16.97 7.53-34.64 7.53-52.76 0-18.12-2.64-35.79-7.54-52.76-1.94-6.75-8.39-11.24-15.4-11.24zm-116.3 100.12c7.05-10.29 11.2-22.71 11.2-36.12 0-35.35-28.63-64-63.96-64-35.32 0-63.96 28.65-63.96 64 0 13.41 4.15 25.83 11.2 36.12l-130.5 313.41c-3.4 8.15.46 17.52 8.61 20.92l29.51 12.31c8.15 3.4 17.52-.46 20.91-8.61L244.96 384h150.07l49.2 118.15c3.4 8.16 12.76 12.01 20.91 8.61l29.51-12.31c8.15-3.4 12-12.77 8.61-20.92l-130.5-313.41zM271.62 320L320 203.81 368.38 320h-96.76z"]
};
var faBroom = {
  prefix: 'fas',
  iconName: 'broom',
  icon: [640, 512, [], "f51a", "M256.47 216.77l86.73 109.18s-16.6 102.36-76.57 150.12C206.66 523.85 0 510.19 0 510.19s3.8-23.14 11-55.43l94.62-112.17c3.97-4.7-.87-11.62-6.65-9.5l-60.4 22.09c14.44-41.66 32.72-80.04 54.6-97.47 59.97-47.76 163.3-40.94 163.3-40.94zM636.53 31.03l-19.86-25c-5.49-6.9-15.52-8.05-22.41-2.56l-232.48 177.8-34.14-42.97c-5.09-6.41-15.14-5.21-18.59 2.21l-25.33 54.55 86.73 109.18 58.8-12.45c8-1.69 11.42-11.2 6.34-17.6l-34.09-42.92 232.48-177.8c6.89-5.48 8.04-15.53 2.55-22.44z"]
};
var faBrush = {
  prefix: 'fas',
  iconName: 'brush',
  icon: [384, 512, [], "f55d", "M352 0H32C14.33 0 0 14.33 0 32v224h384V32c0-17.67-14.33-32-32-32zM0 320c0 35.35 28.66 64 64 64h64v64c0 35.35 28.66 64 64 64s64-28.65 64-64v-64h64c35.34 0 64-28.65 64-64v-32H0v32zm192 104c13.25 0 24 10.74 24 24 0 13.25-10.75 24-24 24s-24-10.75-24-24c0-13.26 10.75-24 24-24z"]
};
var faBug = {
  prefix: 'fas',
  iconName: 'bug',
  icon: [512, 512, [], "f188", "M511.988 288.9c-.478 17.43-15.217 31.1-32.653 31.1H424v16c0 21.864-4.882 42.584-13.6 61.145l60.228 60.228c12.496 12.497 12.496 32.758 0 45.255-12.498 12.497-32.759 12.496-45.256 0l-54.736-54.736C345.886 467.965 314.351 480 280 480V236c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v244c-34.351 0-65.886-12.035-90.636-32.108l-54.736 54.736c-12.498 12.497-32.759 12.496-45.256 0-12.496-12.497-12.496-32.758 0-45.255l60.228-60.228C92.882 378.584 88 357.864 88 336v-16H32.666C15.23 320 .491 306.33.013 288.9-.484 270.816 14.028 256 32 256h56v-58.745l-46.628-46.628c-12.496-12.497-12.496-32.758 0-45.255 12.498-12.497 32.758-12.497 45.256 0L141.255 160h229.489l54.627-54.627c12.498-12.497 32.758-12.497 45.256 0 12.496 12.497 12.496 32.758 0 45.255L424 197.255V256h56c17.972 0 32.484 14.816 31.988 32.9zM257 0c-61.856 0-112 50.144-112 112h224C369 50.144 318.856 0 257 0z"]
};
var faBuilding = {
  prefix: 'fas',
  iconName: 'building',
  icon: [448, 512, [], "f1ad", "M436 480h-20V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v456H12c-6.627 0-12 5.373-12 12v20h448v-20c0-6.627-5.373-12-12-12zM128 76c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12V76zm0 96c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40zm52 148h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12zm76 160h-64v-84c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v84zm64-172c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40zm0-96c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40zm0-96c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12V76c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40z"]
};
var faBullhorn = {
  prefix: 'fas',
  iconName: 'bullhorn',
  icon: [576, 512, [], "f0a1", "M576 240c0-23.63-12.95-44.04-32-55.12V32.01C544 23.26 537.02 0 512 0c-7.12 0-14.19 2.38-19.98 7.02l-85.03 68.03C364.28 109.19 310.66 128 256 128H64c-35.35 0-64 28.65-64 64v96c0 35.35 28.65 64 64 64h33.7c-1.39 10.48-2.18 21.14-2.18 32 0 39.77 9.26 77.35 25.56 110.94 5.19 10.69 16.52 17.06 28.4 17.06h74.28c26.05 0 41.69-29.84 25.9-50.56-16.4-21.52-26.15-48.36-26.15-77.44 0-11.11 1.62-21.79 4.41-32H256c54.66 0 108.28 18.81 150.98 52.95l85.03 68.03a32.023 32.023 0 0 0 19.98 7.02c24.92 0 32-22.78 32-32V295.13C563.05 284.04 576 263.63 576 240zm-96 141.42l-33.05-26.44C392.95 311.78 325.12 288 256 288v-96c69.12 0 136.95-23.78 190.95-66.98L480 98.58v282.84z"]
};
var faBullseye = {
  prefix: 'fas',
  iconName: 'bullseye',
  icon: [496, 512, [], "f140", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 432c-101.69 0-184-82.29-184-184 0-101.69 82.29-184 184-184 101.69 0 184 82.29 184 184 0 101.69-82.29 184-184 184zm0-312c-70.69 0-128 57.31-128 128s57.31 128 128 128 128-57.31 128-128-57.31-128-128-128zm0 192c-35.29 0-64-28.71-64-64s28.71-64 64-64 64 28.71 64 64-28.71 64-64 64z"]
};
var faBurn = {
  prefix: 'fas',
  iconName: 'burn',
  icon: [384, 512, [], "f46a", "M192 0C79.7 101.3 0 220.9 0 300.5 0 425 79 512 192 512s192-87 192-211.5c0-79.9-80.2-199.6-192-300.5zm0 448c-56.5 0-96-39-96-94.8 0-13.5 4.6-61.5 96-161.2 91.4 99.7 96 147.7 96 161.2 0 55.8-39.5 94.8-96 94.8z"]
};
var faBus = {
  prefix: 'fas',
  iconName: 'bus',
  icon: [512, 512, [], "f207", "M488 128h-8V80c0-44.8-99.2-80-224-80S32 35.2 32 80v48h-8c-13.25 0-24 10.74-24 24v80c0 13.25 10.75 24 24 24h8v160c0 17.67 14.33 32 32 32v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h192v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h6.4c16 0 25.6-12.8 25.6-25.6V256h8c13.25 0 24-10.75 24-24v-80c0-13.26-10.75-24-24-24zM112 400c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm16-112c-17.67 0-32-14.33-32-32V128c0-17.67 14.33-32 32-32h256c17.67 0 32 14.33 32 32v128c0 17.67-14.33 32-32 32H128zm272 112c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
};
var faBusAlt = {
  prefix: 'fas',
  iconName: 'bus-alt',
  icon: [512, 512, [], "f55e", "M488 128h-8V80c0-44.8-99.2-80-224-80S32 35.2 32 80v48h-8c-13.25 0-24 10.74-24 24v80c0 13.25 10.75 24 24 24h8v160c0 17.67 14.33 32 32 32v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h192v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h6.4c16 0 25.6-12.8 25.6-25.6V256h8c13.25 0 24-10.75 24-24v-80c0-13.26-10.75-24-24-24zM160 72c0-4.42 3.58-8 8-8h176c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H168c-4.42 0-8-3.58-8-8V72zm-48 328c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm128-112H128c-17.67 0-32-14.33-32-32v-96c0-17.67 14.33-32 32-32h112v160zm32 0V128h112c17.67 0 32 14.33 32 32v96c0 17.67-14.33 32-32 32H272zm128 112c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
};
var faBusinessTime = {
  prefix: 'fas',
  iconName: 'business-time',
  icon: [640, 512, [], "f64a", "M496 224c-79.59 0-144 64.41-144 144s64.41 144 144 144 144-64.41 144-144-64.41-144-144-144zm64 150.29c0 5.34-4.37 9.71-9.71 9.71h-60.57c-5.34 0-9.71-4.37-9.71-9.71v-76.57c0-5.34 4.37-9.71 9.71-9.71h12.57c5.34 0 9.71 4.37 9.71 9.71V352h38.29c5.34 0 9.71 4.37 9.71 9.71v12.58zM496 192c5.4 0 10.72.33 16 .81V144c0-25.6-22.4-48-48-48h-80V48c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h395.12c28.6-20.09 63.35-32 100.88-32zM320 96H192V64h128v32zm6.82 224H208c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h291.43C327.1 423.96 320 396.82 320 368c0-16.66 2.48-32.72 6.82-48z"]
};
var faCalculator = {
  prefix: 'fas',
  iconName: 'calculator',
  icon: [448, 512, [], "f1ec", "M400 0H48C22.4 0 0 22.4 0 48v416c0 25.6 22.4 48 48 48h352c25.6 0 48-22.4 48-48V48c0-25.6-22.4-48-48-48zM128 435.2c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-128c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm128 128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm128 128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8V268.8c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v166.4zm0-256c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8V76.8C64 70.4 70.4 64 76.8 64h294.4c6.4 0 12.8 6.4 12.8 12.8v102.4z"]
};
var faCalendar = {
  prefix: 'fas',
  iconName: 'calendar',
  icon: [448, 512, [], "f133", "M12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm436-44v-36c0-26.5-21.5-48-48-48h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v36c0 6.6 5.4 12 12 12h424c6.6 0 12-5.4 12-12z"]
};
var faCalendarAlt = {
  prefix: 'fas',
  iconName: 'calendar-alt',
  icon: [448, 512, [], "f073", "M0 464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192H0v272zm320-196c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM192 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM64 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM400 64h-48V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H160V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48z"]
};
var faCalendarCheck = {
  prefix: 'fas',
  iconName: 'calendar-check',
  icon: [448, 512, [], "f274", "M436 160H12c-6.627 0-12-5.373-12-12v-36c0-26.51 21.49-48 48-48h48V12c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v52h128V12c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v52h48c26.51 0 48 21.49 48 48v36c0 6.627-5.373 12-12 12zM12 192h424c6.627 0 12 5.373 12 12v260c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V204c0-6.627 5.373-12 12-12zm333.296 95.947l-28.169-28.398c-4.667-4.705-12.265-4.736-16.97-.068L194.12 364.665l-45.98-46.352c-4.667-4.705-12.266-4.736-16.971-.068l-28.397 28.17c-4.705 4.667-4.736 12.265-.068 16.97l82.601 83.269c4.667 4.705 12.265 4.736 16.97.068l142.953-141.805c4.705-4.667 4.736-12.265.068-16.97z"]
};
var faCalendarDay = {
  prefix: 'fas',
  iconName: 'calendar-day',
  icon: [448, 512, [], "f783", "M0 464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192H0v272zm64-192c0-8.8 7.2-16 16-16h96c8.8 0 16 7.2 16 16v96c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16v-96zM400 64h-48V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H160V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48z"]
};
var faCalendarMinus = {
  prefix: 'fas',
  iconName: 'calendar-minus',
  icon: [448, 512, [], "f272", "M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm304 192c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12H132c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h184z"]
};
var faCalendarPlus = {
  prefix: 'fas',
  iconName: 'calendar-plus',
  icon: [448, 512, [], "f271", "M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm316 140c0-6.6-5.4-12-12-12h-60v-60c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v60h-60c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h60v60c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-60h60c6.6 0 12-5.4 12-12v-40z"]
};
var faCalendarTimes = {
  prefix: 'fas',
  iconName: 'calendar-times',
  icon: [448, 512, [], "f273", "M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm257.3 160l48.1-48.1c4.7-4.7 4.7-12.3 0-17l-28.3-28.3c-4.7-4.7-12.3-4.7-17 0L224 306.7l-48.1-48.1c-4.7-4.7-12.3-4.7-17 0l-28.3 28.3c-4.7 4.7-4.7 12.3 0 17l48.1 48.1-48.1 48.1c-4.7 4.7-4.7 12.3 0 17l28.3 28.3c4.7 4.7 12.3 4.7 17 0l48.1-48.1 48.1 48.1c4.7 4.7 12.3 4.7 17 0l28.3-28.3c4.7-4.7 4.7-12.3 0-17L269.3 352z"]
};
var faCalendarWeek = {
  prefix: 'fas',
  iconName: 'calendar-week',
  icon: [448, 512, [], "f784", "M0 464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192H0v272zm64-192c0-8.8 7.2-16 16-16h288c8.8 0 16 7.2 16 16v64c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16v-64zM400 64h-48V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H160V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48z"]
};
var faCamera = {
  prefix: 'fas',
  iconName: 'camera',
  icon: [512, 512, [], "f030", "M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z"]
};
var faCameraRetro = {
  prefix: 'fas',
  iconName: 'camera-retro',
  icon: [512, 512, [], "f083", "M48 32C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48H48zm0 32h106c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H38c-3.3 0-6-2.7-6-6V80c0-8.8 7.2-16 16-16zm426 96H38c-3.3 0-6-2.7-6-6v-36c0-3.3 2.7-6 6-6h138l30.2-45.3c1.1-1.7 3-2.7 5-2.7H464c8.8 0 16 7.2 16 16v74c0 3.3-2.7 6-6 6zM256 424c-66.2 0-120-53.8-120-120s53.8-120 120-120 120 53.8 120 120-53.8 120-120 120zm0-208c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm-48 104c-8.8 0-16-7.2-16-16 0-35.3 28.7-64 64-64 8.8 0 16 7.2 16 16s-7.2 16-16 16c-17.6 0-32 14.4-32 32 0 8.8-7.2 16-16 16z"]
};
var faCampground = {
  prefix: 'fas',
  iconName: 'campground',
  icon: [640, 512, [], "f6bb", "M624 448h-24.68L359.54 117.75l53.41-73.55c5.19-7.15 3.61-17.16-3.54-22.35l-25.9-18.79c-7.15-5.19-17.15-3.61-22.35 3.55L320 63.3 278.83 6.6c-5.19-7.15-15.2-8.74-22.35-3.55l-25.88 18.8c-7.15 5.19-8.74 15.2-3.54 22.35l53.41 73.55L40.68 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM320 288l116.36 160H203.64L320 288z"]
};
var faCandyCane = {
  prefix: 'fas',
  iconName: 'candy-cane',
  icon: [512, 512, [], "f786", "M497.5 92C469.6 33.1 411.8 0 352.4 0c-27.9 0-56.2 7.3-81.8 22.6L243.1 39c-15.2 9.1-20.1 28.7-11 43.9l32.8 54.9c6 10 16.6 15.6 27.5 15.6 5.6 0 11.2-1.5 16.4-4.5l27.5-16.4c5.1-3.1 10.8-4.5 16.4-4.5 10.9 0 21.5 5.6 27.5 15.6 9.1 15.1 4.1 34.8-11 43.9L15.6 397.6c-15.2 9.1-20.1 28.7-11 43.9l32.8 54.9c6 10 16.6 15.6 27.5 15.6 5.6 0 11.2-1.5 16.4-4.5L428.6 301c71.7-42.9 104.6-133.5 68.9-209zm-177.7 13l-2.5 1.5L296.8 45c9.7-4.7 19.8-8.1 30.3-10.2l20.6 61.8c-9.8.8-19.4 3.3-27.9 8.4zM145.9 431.8l-60.5-38.5 30.8-18.3 60.5 38.5-30.8 18.3zm107.5-63.9l-60.5-38.5 30.8-18.3 60.5 38.5-30.8 18.3zM364.3 302l-60.5-38.5 30.8-18.3 60.5 38.5-30.8 18.3zm20.4-197.3l46-46c8.4 6.5 16 14.1 22.6 22.6L407.6 127c-5.7-9.3-13.7-16.9-22.9-22.3zm82.1 107.8l-59.5-19.8c3.2-5.3 5.8-10.9 7.4-17.1 1.1-4.5 1.7-9.1 1.8-13.6l60.4 20.1c-2.1 10.4-5.5 20.6-10.1 30.4z"]
};
var faCannabis = {
  prefix: 'fas',
  iconName: 'cannabis',
  icon: [512, 512, [], "f55f", "M503.47 360.25c-1.56-.82-32.39-16.89-76.78-25.81 64.25-75.12 84.05-161.67 84.93-165.64 1.18-5.33-.44-10.9-4.3-14.77-3.03-3.04-7.12-4.7-11.32-4.7-1.14 0-2.29.12-3.44.38-3.88.85-86.54 19.59-160.58 79.76.01-1.46.01-2.93.01-4.4 0-118.79-59.98-213.72-62.53-217.7A15.973 15.973 0 0 0 256 0c-5.45 0-10.53 2.78-13.47 7.37-2.55 3.98-62.53 98.91-62.53 217.7 0 1.47.01 2.94.01 4.4-74.03-60.16-156.69-78.9-160.58-79.76-1.14-.25-2.29-.38-3.44-.38-4.2 0-8.29 1.66-11.32 4.7A15.986 15.986 0 0 0 .38 168.8c.88 3.97 20.68 90.52 84.93 165.64-44.39 8.92-75.21 24.99-76.78 25.81a16.003 16.003 0 0 0-.02 28.29c2.45 1.29 60.76 31.72 133.49 31.72 6.14 0 11.96-.1 17.5-.31-11.37 22.23-16.52 38.31-16.81 39.22-1.8 5.68-.29 11.89 3.91 16.11a16.019 16.019 0 0 0 16.1 3.99c1.83-.57 37.72-11.99 77.3-39.29V504c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8v-64.01c39.58 27.3 75.47 38.71 77.3 39.29a16.019 16.019 0 0 0 16.1-3.99c4.2-4.22 5.71-10.43 3.91-16.11-.29-.91-5.45-16.99-16.81-39.22 5.54.21 11.37.31 17.5.31 72.72 0 131.04-30.43 133.49-31.72 5.24-2.78 8.52-8.22 8.51-14.15-.01-5.94-3.29-11.39-8.53-14.15z"]
};
var faCapsules = {
  prefix: 'fas',
  iconName: 'capsules',
  icon: [576, 512, [], "f46b", "M555.3 300.1L424.2 112.8C401.9 81 366.4 64 330.4 64c-22.6 0-45.5 6.7-65.5 20.7-19.7 13.8-33.7 32.8-41.5 53.8C220.5 79.2 172 32 112 32 50.1 32 0 82.1 0 144v224c0 61.9 50.1 112 112 112s112-50.1 112-112V218.9c3.3 8.6 7.3 17.1 12.8 25L368 431.2c22.2 31.8 57.7 48.8 93.8 48.8 22.7 0 45.5-6.7 65.5-20.7 51.7-36.2 64.2-107.5 28-159.2zM160 256H64V144c0-26.5 21.5-48 48-48s48 21.5 48 48v112zm194.8 44.9l-65.6-93.7c-7.7-11-10.7-24.4-8.3-37.6 2.3-13.2 9.7-24.8 20.7-32.5 8.5-6 18.5-9.1 28.8-9.1 16.5 0 31.9 8 41.3 21.5l65.6 93.7-82.5 57.7z"]
};
var faCar = {
  prefix: 'fas',
  iconName: 'car',
  icon: [512, 512, [], "f1b9", "M499.99 176h-59.87l-16.64-41.6C406.38 91.63 365.57 64 319.5 64h-127c-46.06 0-86.88 27.63-103.99 70.4L71.87 176H12.01C4.2 176-1.53 183.34.37 190.91l6 24C7.7 220.25 12.5 224 18.01 224h20.07C24.65 235.73 16 252.78 16 272v48c0 16.12 6.16 30.67 16 41.93V416c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-54.07c9.84-11.25 16-25.8 16-41.93v-48c0-19.22-8.65-36.27-22.07-48H494c5.51 0 10.31-3.75 11.64-9.09l6-24c1.89-7.57-3.84-14.91-11.65-14.91zm-352.06-17.83c7.29-18.22 24.94-30.17 44.57-30.17h127c19.63 0 37.28 11.95 44.57 30.17L384 208H128l19.93-49.83zM96 319.8c-19.2 0-32-12.76-32-31.9S76.8 256 96 256s48 28.71 48 47.85-28.8 15.95-48 15.95zm320 0c-19.2 0-48 3.19-48-15.95S396.8 256 416 256s32 12.76 32 31.9-12.8 31.9-32 31.9z"]
};
var faCarAlt = {
  prefix: 'fas',
  iconName: 'car-alt',
  icon: [480, 512, [], "f5de", "M438.66 212.33l-11.24-28.1-19.93-49.83C390.38 91.63 349.57 64 303.5 64h-127c-46.06 0-86.88 27.63-103.99 70.4l-19.93 49.83-11.24 28.1C17.22 221.5 0 244.66 0 272v48c0 16.12 6.16 30.67 16 41.93V416c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-54.07c9.84-11.25 16-25.8 16-41.93v-48c0-27.34-17.22-50.5-41.34-59.67zm-306.73-54.16c7.29-18.22 24.94-30.17 44.57-30.17h127c19.63 0 37.28 11.95 44.57 30.17L368 208H112l19.93-49.83zM80 319.8c-19.2 0-32-12.76-32-31.9S60.8 256 80 256s48 28.71 48 47.85-28.8 15.95-48 15.95zm320 0c-19.2 0-48 3.19-48-15.95S380.8 256 400 256s32 12.76 32 31.9-12.8 31.9-32 31.9z"]
};
var faCarBattery = {
  prefix: 'fas',
  iconName: 'car-battery',
  icon: [512, 512, [], "f5df", "M480 128h-32V80c0-8.84-7.16-16-16-16h-96c-8.84 0-16 7.16-16 16v48H192V80c0-8.84-7.16-16-16-16H80c-8.84 0-16 7.16-16 16v48H32c-17.67 0-32 14.33-32 32v256c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32V160c0-17.67-14.33-32-32-32zM192 264c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16zm256 0c0 4.42-3.58 8-8 8h-40v40c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-40h-40c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h40v-40c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v40h40c4.42 0 8 3.58 8 8v16z"]
};
var faCarCrash = {
  prefix: 'fas',
  iconName: 'car-crash',
  icon: [640, 512, [], "f5e1", "M143.25 220.81l-12.42 46.37c-3.01 11.25-3.63 22.89-2.41 34.39l-35.2 28.98c-6.57 5.41-16.31-.43-14.62-8.77l15.44-76.68c1.06-5.26-2.66-10.28-8-10.79l-77.86-7.55c-8.47-.82-11.23-11.83-4.14-16.54l65.15-43.3c4.46-2.97 5.38-9.15 1.98-13.29L21.46 93.22c-5.41-6.57.43-16.3 8.78-14.62l76.68 15.44c5.26 1.06 10.28-2.66 10.8-8l7.55-77.86c.82-8.48 11.83-11.23 16.55-4.14l43.3 65.14c2.97 4.46 9.15 5.38 13.29 1.98l60.4-49.71c6.57-5.41 16.3.43 14.62 8.77L262.1 86.38c-2.71 3.05-5.43 6.09-7.91 9.4l-32.15 42.97-10.71 14.32c-32.73 8.76-59.18 34.53-68.08 67.74zm494.57 132.51l-12.42 46.36c-3.13 11.68-9.38 21.61-17.55 29.36a66.876 66.876 0 0 1-8.76 7l-13.99 52.23c-1.14 4.27-3.1 8.1-5.65 11.38-7.67 9.84-20.74 14.68-33.54 11.25L515 502.62c-17.07-4.57-27.2-22.12-22.63-39.19l8.28-30.91-247.28-66.26-8.28 30.91c-4.57 17.07-22.12 27.2-39.19 22.63l-30.91-8.28c-12.8-3.43-21.7-14.16-23.42-26.51-.57-4.12-.35-8.42.79-12.68l13.99-52.23a66.62 66.62 0 0 1-4.09-10.45c-3.2-10.79-3.65-22.52-.52-34.2l12.42-46.37c5.31-19.8 19.36-34.83 36.89-42.21a64.336 64.336 0 0 1 18.49-4.72l18.13-24.23 32.15-42.97c3.45-4.61 7.19-8.9 11.2-12.84 8-7.89 17.03-14.44 26.74-19.51 4.86-2.54 9.89-4.71 15.05-6.49 10.33-3.58 21.19-5.63 32.24-6.04 11.05-.41 22.31.82 33.43 3.8l122.68 32.87c11.12 2.98 21.48 7.54 30.85 13.43a111.11 111.11 0 0 1 34.69 34.5c8.82 13.88 14.64 29.84 16.68 46.99l6.36 53.29 3.59 30.05a64.49 64.49 0 0 1 22.74 29.93c4.39 11.88 5.29 25.19 1.75 38.39zM255.58 234.34c-18.55-4.97-34.21 4.04-39.17 22.53-4.96 18.49 4.11 34.12 22.65 39.09 18.55 4.97 45.54 15.51 50.49-2.98 4.96-18.49-15.43-53.67-33.97-58.64zm290.61 28.17l-6.36-53.29c-.58-4.87-1.89-9.53-3.82-13.86-5.8-12.99-17.2-23.01-31.42-26.82l-122.68-32.87a48.008 48.008 0 0 0-50.86 17.61l-32.15 42.97 172 46.08 75.29 20.18zm18.49 54.65c-18.55-4.97-53.8 15.31-58.75 33.79-4.95 18.49 23.69 22.86 42.24 27.83 18.55 4.97 34.21-4.04 39.17-22.53 4.95-18.48-4.11-34.12-22.66-39.09z"]
};
var faCarSide = {
  prefix: 'fas',
  iconName: 'car-side',
  icon: [640, 512, [], "f5e4", "M544 192h-16L419.22 56.02A64.025 64.025 0 0 0 369.24 32H155.33c-26.17 0-49.7 15.93-59.42 40.23L48 194.26C20.44 201.4 0 226.21 0 256v112c0 8.84 7.16 16 16 16h48c0 53.02 42.98 96 96 96s96-42.98 96-96h128c0 53.02 42.98 96 96 96s96-42.98 96-96h48c8.84 0 16-7.16 16-16v-80c0-53.02-42.98-96-96-96zM160 432c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48zm72-240H116.93l38.4-96H232v96zm48 0V96h89.24l76.8 96H280zm200 240c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48z"]
};
var faCaravan = {
  prefix: 'fas',
  iconName: 'caravan',
  icon: [640, 512, [], "f8ff", "M416,208a16,16,0,1,0,16,16A16,16,0,0,0,416,208ZM624,320H576V160A160,160,0,0,0,416,0H64A64,64,0,0,0,0,64V320a64,64,0,0,0,64,64H96a96,96,0,0,0,192,0H624a16,16,0,0,0,16-16V336A16,16,0,0,0,624,320ZM192,432a48,48,0,1,1,48-48A48.05,48.05,0,0,1,192,432Zm64-240a32,32,0,0,1-32,32H96a32,32,0,0,1-32-32V128A32,32,0,0,1,96,96H224a32,32,0,0,1,32,32ZM448,320H320V128a32,32,0,0,1,32-32h64a32,32,0,0,1,32,32Z"]
};
var faCaretDown = {
  prefix: 'fas',
  iconName: 'caret-down',
  icon: [320, 512, [], "f0d7", "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"]
};
var faCaretLeft = {
  prefix: 'fas',
  iconName: 'caret-left',
  icon: [192, 512, [], "f0d9", "M192 127.338v257.324c0 17.818-21.543 26.741-34.142 14.142L29.196 270.142c-7.81-7.81-7.81-20.474 0-28.284l128.662-128.662c12.599-12.6 34.142-3.676 34.142 14.142z"]
};
var faCaretRight = {
  prefix: 'fas',
  iconName: 'caret-right',
  icon: [192, 512, [], "f0da", "M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"]
};
var faCaretSquareDown = {
  prefix: 'fas',
  iconName: 'caret-square-down',
  icon: [448, 512, [], "f150", "M448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zM92.5 220.5l123 123c4.7 4.7 12.3 4.7 17 0l123-123c7.6-7.6 2.2-20.5-8.5-20.5H101c-10.7 0-16.1 12.9-8.5 20.5z"]
};
var faCaretSquareLeft = {
  prefix: 'fas',
  iconName: 'caret-square-left',
  icon: [448, 512, [], "f191", "M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zM259.515 124.485l-123.03 123.03c-4.686 4.686-4.686 12.284 0 16.971l123.029 123.029c7.56 7.56 20.485 2.206 20.485-8.485V132.971c.001-10.691-12.925-16.045-20.484-8.486z"]
};
var faCaretSquareRight = {
  prefix: 'fas',
  iconName: 'caret-square-right',
  icon: [448, 512, [], "f152", "M48 32h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48zm140.485 355.515l123.029-123.029c4.686-4.686 4.686-12.284 0-16.971l-123.029-123.03c-7.56-7.56-20.485-2.206-20.485 8.485v246.059c0 10.691 12.926 16.045 20.485 8.486z"]
};
var faCaretSquareUp = {
  prefix: 'fas',
  iconName: 'caret-square-up',
  icon: [448, 512, [], "f151", "M0 432V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48zm355.515-140.485l-123.03-123.03c-4.686-4.686-12.284-4.686-16.971 0L92.485 291.515c-7.56 7.56-2.206 20.485 8.485 20.485h246.059c10.691 0 16.045-12.926 8.486-20.485z"]
};
var faCaretUp = {
  prefix: 'fas',
  iconName: 'caret-up',
  icon: [320, 512, [], "f0d8", "M288.662 352H31.338c-17.818 0-26.741-21.543-14.142-34.142l128.662-128.662c7.81-7.81 20.474-7.81 28.284 0l128.662 128.662c12.6 12.599 3.676 34.142-14.142 34.142z"]
};
var faCarrot = {
  prefix: 'fas',
  iconName: 'carrot',
  icon: [512, 512, [], "f787", "M298.2 156.6c-52.7-25.7-114.5-10.5-150.2 32.8l55.2 55.2c6.3 6.3 6.3 16.4 0 22.6-3.1 3.1-7.2 4.7-11.3 4.7s-8.2-1.6-11.3-4.7L130.4 217 2.3 479.7c-2.9 6-3.1 13.3 0 19.7 5.4 11.1 18.9 15.7 30 10.3l133.6-65.2-49.2-49.2c-6.3-6.2-6.3-16.4 0-22.6 6.3-6.2 16.4-6.2 22.6 0l57 57 102-49.8c24-11.7 44.5-31.3 57.1-57.1 30.1-61.7 4.5-136.1-57.2-166.2zm92.1-34.9C409.8 81 399.7 32.9 360 0c-50.3 41.7-52.5 107.5-7.9 151.9l8 8c44.4 44.6 110.3 42.4 151.9-7.9-32.9-39.7-81-49.8-121.7-30.3z"]
};
var faCartArrowDown = {
  prefix: 'fas',
  iconName: 'cart-arrow-down',
  icon: [576, 512, [], "f218", "M504.717 320H211.572l6.545 32h268.418c15.401 0 26.816 14.301 23.403 29.319l-5.517 24.276C523.112 414.668 536 433.828 536 456c0 31.202-25.519 56.444-56.824 55.994-29.823-.429-54.35-24.631-55.155-54.447-.44-16.287 6.085-31.049 16.803-41.548H231.176C241.553 426.165 248 440.326 248 456c0 31.813-26.528 57.431-58.67 55.938-28.54-1.325-51.751-24.385-53.251-52.917-1.158-22.034 10.436-41.455 28.051-51.586L93.883 64H24C10.745 64 0 53.255 0 40V24C0 10.745 10.745 0 24 0h102.529c11.401 0 21.228 8.021 23.513 19.19L159.208 64H551.99c15.401 0 26.816 14.301 23.403 29.319l-47.273 208C525.637 312.246 515.923 320 504.717 320zM403.029 192H360v-60c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v60h-43.029c-10.691 0-16.045 12.926-8.485 20.485l67.029 67.029c4.686 4.686 12.284 4.686 16.971 0l67.029-67.029c7.559-7.559 2.205-20.485-8.486-20.485z"]
};
var faCartPlus = {
  prefix: 'fas',
  iconName: 'cart-plus',
  icon: [576, 512, [], "f217", "M504.717 320H211.572l6.545 32h268.418c15.401 0 26.816 14.301 23.403 29.319l-5.517 24.276C523.112 414.668 536 433.828 536 456c0 31.202-25.519 56.444-56.824 55.994-29.823-.429-54.35-24.631-55.155-54.447-.44-16.287 6.085-31.049 16.803-41.548H231.176C241.553 426.165 248 440.326 248 456c0 31.813-26.528 57.431-58.67 55.938-28.54-1.325-51.751-24.385-53.251-52.917-1.158-22.034 10.436-41.455 28.051-51.586L93.883 64H24C10.745 64 0 53.255 0 40V24C0 10.745 10.745 0 24 0h102.529c11.401 0 21.228 8.021 23.513 19.19L159.208 64H551.99c15.401 0 26.816 14.301 23.403 29.319l-47.273 208C525.637 312.246 515.923 320 504.717 320zM408 168h-48v-40c0-8.837-7.163-16-16-16h-16c-8.837 0-16 7.163-16 16v40h-48c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h48v40c0 8.837 7.163 16 16 16h16c8.837 0 16-7.163 16-16v-40h48c8.837 0 16-7.163 16-16v-16c0-8.837-7.163-16-16-16z"]
};
var faCashRegister = {
  prefix: 'fas',
  iconName: 'cash-register',
  icon: [512, 512, [], "f788", "M511.1 378.8l-26.7-160c-2.6-15.4-15.9-26.7-31.6-26.7H208v-64h96c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16H48c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16h96v64H59.1c-15.6 0-29 11.3-31.6 26.7L.8 378.7c-.6 3.5-.9 7-.9 10.5V480c0 17.7 14.3 32 32 32h448c17.7 0 32-14.3 32-32v-90.7c.1-3.5-.2-7-.8-10.5zM280 248c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16v-16zm-32 64h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16v-16c0-8.8 7.2-16 16-16zm-32-80c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16v-16c0-8.8 7.2-16 16-16h16zM80 80V48h192v32H80zm40 200h-16c-8.8 0-16-7.2-16-16v-16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16zm16 64v-16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16zm216 112c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h176c4.4 0 8 3.6 8 8v16zm24-112c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16v-16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16zm48-80c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16v-16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16z"]
};
var faCat = {
  prefix: 'fas',
  iconName: 'cat',
  icon: [512, 512, [], "f6be", "M290.59 192c-20.18 0-106.82 1.98-162.59 85.95V192c0-52.94-43.06-96-96-96-17.67 0-32 14.33-32 32s14.33 32 32 32c17.64 0 32 14.36 32 32v256c0 35.3 28.7 64 64 64h176c8.84 0 16-7.16 16-16v-16c0-17.67-14.33-32-32-32h-32l128-96v144c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V289.86c-10.29 2.67-20.89 4.54-32 4.54-61.81 0-113.52-44.05-125.41-102.4zM448 96h-64l-64-64v134.4c0 53.02 42.98 96 96 96s96-42.98 96-96V32l-64 64zm-72 80c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm80 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16z"]
};
var faCertificate = {
  prefix: 'fas',
  iconName: 'certificate',
  icon: [512, 512, [], "f0a3", "M458.622 255.92l45.985-45.005c13.708-12.977 7.316-36.039-10.664-40.339l-62.65-15.99 17.661-62.015c4.991-17.838-11.829-34.663-29.661-29.671l-61.994 17.667-15.984-62.671C337.085.197 313.765-6.276 300.99 7.228L256 53.57 211.011 7.229c-12.63-13.351-36.047-7.234-40.325 10.668l-15.984 62.671-61.995-17.667C74.87 57.907 58.056 74.738 63.046 92.572l17.661 62.015-62.65 15.99C.069 174.878-6.31 197.944 7.392 210.915l45.985 45.005-45.985 45.004c-13.708 12.977-7.316 36.039 10.664 40.339l62.65 15.99-17.661 62.015c-4.991 17.838 11.829 34.663 29.661 29.671l61.994-17.667 15.984 62.671c4.439 18.575 27.696 24.018 40.325 10.668L256 458.61l44.989 46.001c12.5 13.488 35.987 7.486 40.325-10.668l15.984-62.671 61.994 17.667c17.836 4.994 34.651-11.837 29.661-29.671l-17.661-62.015 62.65-15.99c17.987-4.302 24.366-27.367 10.664-40.339l-45.984-45.004z"]
};
var faChair = {
  prefix: 'fas',
  iconName: 'chair',
  icon: [448, 512, [], "f6c0", "M112 128c0-29.5 16.2-55 40-68.9V256h48V48h48v208h48V59.1c23.8 13.9 40 39.4 40 68.9v128h48V128C384 57.3 326.7 0 256 0h-64C121.3 0 64 57.3 64 128v128h48zm334.3 213.9l-10.7-32c-4.4-13.1-16.6-21.9-30.4-21.9H42.7c-13.8 0-26 8.8-30.4 21.9l-10.7 32C-5.2 362.6 10.2 384 32 384v112c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V384h256v112c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V384c21.8 0 37.2-21.4 30.3-42.1z"]
};
var faChalkboard = {
  prefix: 'fas',
  iconName: 'chalkboard',
  icon: [640, 512, [], "f51b", "M96 64h448v352h64V40c0-22.06-17.94-40-40-40H72C49.94 0 32 17.94 32 40v376h64V64zm528 384H480v-64H288v64H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]
};
var faChalkboardTeacher = {
  prefix: 'fas',
  iconName: 'chalkboard-teacher',
  icon: [640, 512, [], "f51c", "M208 352c-2.39 0-4.78.35-7.06 1.09C187.98 357.3 174.35 360 160 360c-14.35 0-27.98-2.7-40.95-6.91-2.28-.74-4.66-1.09-7.05-1.09C49.94 352-.33 402.48 0 464.62.14 490.88 21.73 512 48 512h224c26.27 0 47.86-21.12 48-47.38.33-62.14-49.94-112.62-112-112.62zm-48-32c53.02 0 96-42.98 96-96s-42.98-96-96-96-96 42.98-96 96 42.98 96 96 96zM592 0H208c-26.47 0-48 22.25-48 49.59V96c23.42 0 45.1 6.78 64 17.8V64h352v288h-64v-64H384v64h-76.24c19.1 16.69 33.12 38.73 39.69 64H592c26.47 0 48-22.25 48-49.59V49.59C640 22.25 618.47 0 592 0z"]
};
var faChargingStation = {
  prefix: 'fas',
  iconName: 'charging-station',
  icon: [576, 512, [], "f5e7", "M336 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h320c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm208-320V80c0-8.84-7.16-16-16-16s-16 7.16-16 16v48h-32V80c0-8.84-7.16-16-16-16s-16 7.16-16 16v48h-16c-8.84 0-16 7.16-16 16v32c0 35.76 23.62 65.69 56 75.93v118.49c0 13.95-9.5 26.92-23.26 29.19C431.22 402.5 416 388.99 416 372v-28c0-48.6-39.4-88-88-88h-8V64c0-35.35-28.65-64-64-64H96C60.65 0 32 28.65 32 64v352h288V304h8c22.09 0 40 17.91 40 40v24.61c0 39.67 28.92 75.16 68.41 79.01C481.71 452.05 520 416.41 520 372V251.93c32.38-10.24 56-40.17 56-75.93v-32c0-8.84-7.16-16-16-16h-16zm-283.91 47.76l-93.7 139c-2.2 3.33-6.21 5.24-10.39 5.24-7.67 0-13.47-6.28-11.67-12.92L167.35 224H108c-7.25 0-12.85-5.59-11.89-11.89l16-107C112.9 99.9 117.98 96 124 96h68c7.88 0 13.62 6.54 11.6 13.21L192 160h57.7c9.24 0 15.01 8.78 10.39 15.76z"]
};
var faChartArea = {
  prefix: 'fas',
  iconName: 'chart-area',
  icon: [512, 512, [], "f1fe", "M500 384c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v308h436zM372.7 159.5L288 216l-85.3-113.7c-5.1-6.8-15.5-6.3-19.9 1L96 248v104h384l-89.9-187.8c-3.2-6.5-11.4-8.7-17.4-4.7z"]
};
var faChartBar = {
  prefix: 'fas',
  iconName: 'chart-bar',
  icon: [512, 512, [], "f080", "M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]
};
var faChartLine = {
  prefix: 'fas',
  iconName: 'chart-line',
  icon: [512, 512, [], "f201", "M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z"]
};
var faChartPie = {
  prefix: 'fas',
  iconName: 'chart-pie',
  icon: [544, 512, [], "f200", "M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z"]
};
var faCheck = {
  prefix: 'fas',
  iconName: 'check',
  icon: [512, 512, [], "f00c", "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"]
};
var faCheckCircle = {
  prefix: 'fas',
  iconName: 'check-circle',
  icon: [512, 512, [], "f058", "M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"]
};
var faCheckDouble = {
  prefix: 'fas',
  iconName: 'check-double',
  icon: [512, 512, [], "f560", "M505 174.8l-39.6-39.6c-9.4-9.4-24.6-9.4-33.9 0L192 374.7 80.6 263.2c-9.4-9.4-24.6-9.4-33.9 0L7 302.9c-9.4 9.4-9.4 24.6 0 34L175 505c9.4 9.4 24.6 9.4 33.9 0l296-296.2c9.4-9.5 9.4-24.7.1-34zm-324.3 106c6.2 6.3 16.4 6.3 22.6 0l208-208.2c6.2-6.3 6.2-16.4 0-22.6L366.1 4.7c-6.2-6.3-16.4-6.3-22.6 0L192 156.2l-55.4-55.5c-6.2-6.3-16.4-6.3-22.6 0L68.7 146c-6.2 6.3-6.2 16.4 0 22.6l112 112.2z"]
};
var faCheckSquare = {
  prefix: 'fas',
  iconName: 'check-square',
  icon: [448, 512, [], "f14a", "M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zm-204.686-98.059l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.248-16.379-6.249-22.628 0L184 302.745l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.25 16.379 6.25 22.628.001z"]
};
var faCheese = {
  prefix: 'fas',
  iconName: 'cheese',
  icon: [512, 512, [], "f7ef", "M0 288v160a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V288zM299.83 32a32 32 0 0 0-21.13 7L0 256h512c0-119.89-94-217.8-212.17-224z"]
};
var faChess = {
  prefix: 'fas',
  iconName: 'chess',
  icon: [512, 512, [], "f439", "M74 208H64a16 16 0 0 0-16 16v16a16 16 0 0 0 16 16h15.94A535.78 535.78 0 0 1 64 384h128a535.78 535.78 0 0 1-15.94-128H192a16 16 0 0 0 16-16v-16a16 16 0 0 0-16-16h-10l33.89-90.38a16 16 0 0 0-15-21.62H144V64h24a8 8 0 0 0 8-8V40a8 8 0 0 0-8-8h-24V8a8 8 0 0 0-8-8h-16a8 8 0 0 0-8 8v24H88a8 8 0 0 0-8 8v16a8 8 0 0 0 8 8h24v32H55.09a16 16 0 0 0-15 21.62zm173.16 251.58L224 448v-16a16 16 0 0 0-16-16H48a16 16 0 0 0-16 16v16L8.85 459.58A16 16 0 0 0 0 473.89V496a16 16 0 0 0 16 16h224a16 16 0 0 0 16-16v-22.11a16 16 0 0 0-8.84-14.31zm92.77-157.78l-3.29 82.2h126.72l-3.29-82.21 24.6-20.79A32 32 0 0 0 496 256.54V198a6 6 0 0 0-6-6h-26.38a6 6 0 0 0-6 6v26h-24.71v-26a6 6 0 0 0-6-6H373.1a6 6 0 0 0-6 6v26h-24.71v-26a6 6 0 0 0-6-6H310a6 6 0 0 0-6 6v58.6a32 32 0 0 0 11.36 24.4zM384 304a16 16 0 0 1 32 0v32h-32zm119.16 155.58L480 448v-16a16 16 0 0 0-16-16H336a16 16 0 0 0-16 16v16l-23.15 11.58a16 16 0 0 0-8.85 14.31V496a16 16 0 0 0 16 16h192a16 16 0 0 0 16-16v-22.11a16 16 0 0 0-8.84-14.31z"]
};
var faChessBishop = {
  prefix: 'fas',
  iconName: 'chess-bishop',
  icon: [320, 512, [], "f43a", "M8 287.88c0 51.64 22.14 73.83 56 84.6V416h192v-43.52c33.86-10.77 56-33 56-84.6 0-30.61-10.73-67.1-26.69-102.56L185 285.65a8 8 0 0 1-11.31 0l-11.31-11.31a8 8 0 0 1 0-11.31L270.27 155.1c-20.8-37.91-46.47-72.1-70.87-92.59C213.4 59.09 224 47.05 224 32a32 32 0 0 0-32-32h-64a32 32 0 0 0-32 32c0 15 10.6 27.09 24.6 30.51C67.81 106.8 8 214.5 8 287.88zM304 448H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
};
var faChessBoard = {
  prefix: 'fas',
  iconName: 'chess-board',
  icon: [512, 512, [], "f43c", "M255.9.2h-64v64h64zM0 64.17v64h64v-64zM128 .2H64v64h64zm64 255.9v64h64v-64zM0 192.12v64h64v-64zM383.85.2h-64v64h64zm128 0h-64v64h64zM128 256.1H64v64h64zM511.8 448v-64h-64v64zm0-128v-64h-64v64zM383.85 512h64v-64h-64zm128-319.88v-64h-64v64zM128 512h64v-64h-64zM0 512h64v-64H0zm255.9 0h64v-64h-64zM0 320.07v64h64v-64zm319.88-191.92v-64h-64v64zm-64 128h64v-64h-64zm-64 128v64h64v-64zm128-64h64v-64h-64zm0-127.95h64v-64h-64zm0 191.93v64h64v-64zM64 384.05v64h64v-64zm128-255.9v-64h-64v64zm191.92 255.9h64v-64h-64zm-128-191.93v-64h-64v64zm128-127.95v64h64v-64zm-128 255.9v64h64v-64zm-64-127.95H128v64h64zm191.92 64h64v-64h-64zM128 128.15H64v64h64zm0 191.92v64h64v-64z"]
};
var faChessKing = {
  prefix: 'fas',
  iconName: 'chess-king',
  icon: [448, 512, [], "f43f", "M400 448H48a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h352a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm16-288H256v-48h40a8 8 0 0 0 8-8V56a8 8 0 0 0-8-8h-40V8a8 8 0 0 0-8-8h-48a8 8 0 0 0-8 8v40h-40a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8h40v48H32a32 32 0 0 0-30.52 41.54L74.56 416h298.88l73.08-214.46A32 32 0 0 0 416 160z"]
};
var faChessKnight = {
  prefix: 'fas',
  iconName: 'chess-knight',
  icon: [384, 512, [], "f441", "M19 272.47l40.63 18.06a32 32 0 0 0 24.88.47l12.78-5.12a32 32 0 0 0 18.76-20.5l9.22-30.65a24 24 0 0 1 12.55-15.65L159.94 208v50.33a48 48 0 0 1-26.53 42.94l-57.22 28.65A80 80 0 0 0 32 401.48V416h319.86V224c0-106-85.92-192-191.92-192H12A12 12 0 0 0 0 44a16.9 16.9 0 0 0 1.79 7.58L16 80l-9 9a24 24 0 0 0-7 17v137.21a32 32 0 0 0 19 29.26zM52 128a20 20 0 1 1-20 20 20 20 0 0 1 20-20zm316 320H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h352a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
};
var faChessPawn = {
  prefix: 'fas',
  iconName: 'chess-pawn',
  icon: [320, 512, [], "f443", "M105.1 224H80a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h16v5.49c0 44-4.14 86.6-24 122.51h176c-19.89-35.91-24-78.51-24-122.51V288h16a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-25.1c29.39-18.38 49.1-50.78 49.1-88a104 104 0 0 0-208 0c0 37.22 19.71 69.62 49.1 88zM304 448H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
};
var faChessQueen = {
  prefix: 'fas',
  iconName: 'chess-queen',
  icon: [512, 512, [], "f445", "M256 112a56 56 0 1 0-56-56 56 56 0 0 0 56 56zm176 336H80a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h352a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm72.87-263.84l-28.51-15.92c-7.44-5-16.91-2.46-22.29 4.68a47.59 47.59 0 0 1-47.23 18.23C383.7 186.86 368 164.93 368 141.4a13.4 13.4 0 0 0-13.4-13.4h-38.77c-6 0-11.61 4-12.86 9.91a48 48 0 0 1-93.94 0c-1.25-5.92-6.82-9.91-12.86-9.91H157.4a13.4 13.4 0 0 0-13.4 13.4c0 25.69-19 48.75-44.67 50.49a47.5 47.5 0 0 1-41.54-19.15c-5.28-7.09-14.73-9.45-22.09-4.54l-28.57 16a16 16 0 0 0-5.44 20.47L104.24 416h303.52l102.55-211.37a16 16 0 0 0-5.44-20.47z"]
};
var faChessRook = {
  prefix: 'fas',
  iconName: 'chess-rook',
  icon: [384, 512, [], "f447", "M368 32h-56a16 16 0 0 0-16 16v48h-48V48a16 16 0 0 0-16-16h-80a16 16 0 0 0-16 16v48H88.1V48a16 16 0 0 0-16-16H16A16 16 0 0 0 0 48v176l64 32c0 48.33-1.54 95-13.21 160h282.42C321.54 351 320 303.72 320 256l64-32V48a16 16 0 0 0-16-16zM224 320h-64v-64a32 32 0 0 1 64 0zm144 128H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h352a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
};
var faChevronCircleDown = {
  prefix: 'fas',
  iconName: 'chevron-circle-down',
  icon: [512, 512, [], "f13a", "M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM273 369.9l135.5-135.5c9.4-9.4 9.4-24.6 0-33.9l-17-17c-9.4-9.4-24.6-9.4-33.9 0L256 285.1 154.4 183.5c-9.4-9.4-24.6-9.4-33.9 0l-17 17c-9.4 9.4-9.4 24.6 0 33.9L239 369.9c9.4 9.4 24.6 9.4 34 0z"]
};
var faChevronCircleLeft = {
  prefix: 'fas',
  iconName: 'chevron-circle-left',
  icon: [512, 512, [], "f137", "M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zM142.1 273l135.5 135.5c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L226.9 256l101.6-101.6c9.4-9.4 9.4-24.6 0-33.9l-17-17c-9.4-9.4-24.6-9.4-33.9 0L142.1 239c-9.4 9.4-9.4 24.6 0 34z"]
};
var faChevronCircleRight = {
  prefix: 'fas',
  iconName: 'chevron-circle-right',
  icon: [512, 512, [], "f138", "M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm113.9 231L234.4 103.5c-9.4-9.4-24.6-9.4-33.9 0l-17 17c-9.4 9.4-9.4 24.6 0 33.9L285.1 256 183.5 357.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0L369.9 273c9.4-9.4 9.4-24.6 0-34z"]
};
var faChevronCircleUp = {
  prefix: 'fas',
  iconName: 'chevron-circle-up',
  icon: [512, 512, [], "f139", "M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm231-113.9L103.5 277.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0L256 226.9l101.6 101.6c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L273 142.1c-9.4-9.4-24.6-9.4-34 0z"]
};
var faChevronDown = {
  prefix: 'fas',
  iconName: 'chevron-down',
  icon: [448, 512, [], "f078", "M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"]
};
var faChevronLeft = {
  prefix: 'fas',
  iconName: 'chevron-left',
  icon: [320, 512, [], "f053", "M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"]
};
var faChevronRight = {
  prefix: 'fas',
  iconName: 'chevron-right',
  icon: [320, 512, [], "f054", "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"]
};
var faChevronUp = {
  prefix: 'fas',
  iconName: 'chevron-up',
  icon: [448, 512, [], "f077", "M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"]
};
var faChild = {
  prefix: 'fas',
  iconName: 'child',
  icon: [384, 512, [], "f1ae", "M120 72c0-39.765 32.235-72 72-72s72 32.235 72 72c0 39.764-32.235 72-72 72s-72-32.236-72-72zm254.627 1.373c-12.496-12.497-32.758-12.497-45.254 0L242.745 160H141.254L54.627 73.373c-12.496-12.497-32.758-12.497-45.254 0-12.497 12.497-12.497 32.758 0 45.255L104 213.254V480c0 17.673 14.327 32 32 32h16c17.673 0 32-14.327 32-32V368h16v112c0 17.673 14.327 32 32 32h16c17.673 0 32-14.327 32-32V213.254l94.627-94.627c12.497-12.497 12.497-32.757 0-45.254z"]
};
var faChurch = {
  prefix: 'fas',
  iconName: 'church',
  icon: [640, 512, [], "f51d", "M464.46 246.68L352 179.2V128h48c8.84 0 16-7.16 16-16V80c0-8.84-7.16-16-16-16h-48V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v48h-48c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h48v51.2l-112.46 67.48A31.997 31.997 0 0 0 160 274.12V512h96v-96c0-35.35 28.65-64 64-64s64 28.65 64 64v96h96V274.12c0-11.24-5.9-21.66-15.54-27.44zM0 395.96V496c0 8.84 7.16 16 16 16h112V320L19.39 366.54A32.024 32.024 0 0 0 0 395.96zm620.61-29.42L512 320v192h112c8.84 0 16-7.16 16-16V395.96c0-12.8-7.63-24.37-19.39-29.42z"]
};
var faCircle = {
  prefix: 'fas',
  iconName: 'circle',
  icon: [512, 512, [], "f111", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"]
};
var faCircleNotch = {
  prefix: 'fas',
  iconName: 'circle-notch',
  icon: [512, 512, [], "f1ce", "M288 39.056v16.659c0 10.804 7.281 20.159 17.686 23.066C383.204 100.434 440 171.518 440 256c0 101.689-82.295 184-184 184-101.689 0-184-82.295-184-184 0-84.47 56.786-155.564 134.312-177.219C216.719 75.874 224 66.517 224 55.712V39.064c0-15.709-14.834-27.153-30.046-23.234C86.603 43.482 7.394 141.206 8.003 257.332c.72 137.052 111.477 246.956 248.531 246.667C393.255 503.711 504 392.788 504 256c0-115.633-79.14-212.779-186.211-240.236C302.678 11.889 288 23.456 288 39.056z"]
};
var faCity = {
  prefix: 'fas',
  iconName: 'city',
  icon: [640, 512, [], "f64f", "M616 192H480V24c0-13.26-10.74-24-24-24H312c-13.26 0-24 10.74-24 24v72h-64V16c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v80h-64V16c0-8.84-7.16-16-16-16H80c-8.84 0-16 7.16-16 16v80H24c-13.26 0-24 10.74-24 24v360c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V216c0-13.26-10.75-24-24-24zM128 404c0 6.63-5.37 12-12 12H76c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12H76c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12H76c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm128 192c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm160 96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12V76c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm160 288c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40z"]
};
var faClinicMedical = {
  prefix: 'fas',
  iconName: 'clinic-medical',
  icon: [576, 512, [], "f7f2", "M288 115L69.47 307.71c-1.62 1.46-3.69 2.14-5.47 3.35V496a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V311.1c-1.7-1.16-3.72-1.82-5.26-3.2zm96 261a8 8 0 0 1-8 8h-56v56a8 8 0 0 1-8 8h-48a8 8 0 0 1-8-8v-56h-56a8 8 0 0 1-8-8v-48a8 8 0 0 1 8-8h56v-56a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v56h56a8 8 0 0 1 8 8zm186.69-139.72l-255.94-226a39.85 39.85 0 0 0-53.45 0l-256 226a16 16 0 0 0-1.21 22.6L25.5 282.7a16 16 0 0 0 22.6 1.21L277.42 81.63a16 16 0 0 1 21.17 0L527.91 283.9a16 16 0 0 0 22.6-1.21l21.4-23.82a16 16 0 0 0-1.22-22.59z"]
};
var faClipboard = {
  prefix: 'fas',
  iconName: 'clipboard',
  icon: [384, 512, [], "f328", "M384 112v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h80c0-35.29 28.71-64 64-64s64 28.71 64 64h80c26.51 0 48 21.49 48 48zM192 40c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24m96 114v-20a6 6 0 0 0-6-6H102a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h180a6 6 0 0 0 6-6z"]
};
var faClipboardCheck = {
  prefix: 'fas',
  iconName: 'clipboard-check',
  icon: [384, 512, [], "f46c", "M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 40c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm121.2 231.8l-143 141.8c-4.7 4.7-12.3 4.6-17-.1l-82.6-83.3c-4.7-4.7-4.6-12.3.1-17L99.1 285c4.7-4.7 12.3-4.6 17 .1l46 46.4 106-105.2c4.7-4.7 12.3-4.6 17 .1l28.2 28.4c4.7 4.8 4.6 12.3-.1 17z"]
};
var faClipboardList = {
  prefix: 'fas',
  iconName: 'clipboard-list',
  icon: [384, 512, [], "f46d", "M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM96 424c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm96-192c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm128 368c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16z"]
};
var faClock = {
  prefix: 'fas',
  iconName: 'clock',
  icon: [512, 512, [], "f017", "M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"]
};
var faClone = {
  prefix: 'fas',
  iconName: 'clone',
  icon: [512, 512, [], "f24d", "M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z"]
};
var faClosedCaptioning = {
  prefix: 'fas',
  iconName: 'closed-captioning',
  icon: [512, 512, [], "f20a", "M464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM218.1 287.7c2.8-2.5 7.1-2.1 9.2.9l19.5 27.7c1.7 2.4 1.5 5.6-.5 7.7-53.6 56.8-172.8 32.1-172.8-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7l-17.5 30.5c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2.1 48 51.1 70.5 92.3 32.6zm190.4 0c2.8-2.5 7.1-2.1 9.2.9l19.5 27.7c1.7 2.4 1.5 5.6-.5 7.7-53.5 56.9-172.7 32.1-172.7-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7L420 222.2c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2 0 48 51 70.5 92.2 32.6z"]
};
var faCloud = {
  prefix: 'fas',
  iconName: 'cloud',
  icon: [640, 512, [], "f0c2", "M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4z"]
};
var faCloudDownloadAlt = {
  prefix: 'fas',
  iconName: 'cloud-download-alt',
  icon: [640, 512, [], "f381", "M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zm-132.9 88.7L299.3 420.7c-6.2 6.2-16.4 6.2-22.6 0L171.3 315.3c-10.1-10.1-2.9-27.3 11.3-27.3H248V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v112h65.4c14.2 0 21.4 17.2 11.3 27.3z"]
};
var faCloudMeatball = {
  prefix: 'fas',
  iconName: 'cloud-meatball',
  icon: [512, 512, [], "f73b", "M48 352c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm416 0c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm-119 11.1c4.6-14.5 1.6-30.8-9.8-42.3-11.5-11.5-27.8-14.4-42.3-9.9-7-13.5-20.7-23-36.9-23s-29.9 9.5-36.9 23c-14.5-4.6-30.8-1.6-42.3 9.9-11.5 11.5-14.4 27.8-9.9 42.3-13.5 7-23 20.7-23 36.9s9.5 29.9 23 36.9c-4.6 14.5-1.6 30.8 9.9 42.3 8.2 8.2 18.9 12.3 29.7 12.3 4.3 0 8.5-1.1 12.6-2.5 7 13.5 20.7 23 36.9 23s29.9-9.5 36.9-23c4.1 1.3 8.3 2.5 12.6 2.5 10.8 0 21.5-4.1 29.7-12.3 11.5-11.5 14.4-27.8 9.8-42.3 13.5-7 23-20.7 23-36.9s-9.5-29.9-23-36.9zM512 224c0-53-43-96-96-96-.6 0-1.1.2-1.6.2 1.1-5.2 1.6-10.6 1.6-16.2 0-44.2-35.8-80-80-80-24.6 0-46.3 11.3-61 28.8C256.4 24.8 219.3 0 176 0 114.1 0 64 50.1 64 112c0 7.3.8 14.3 2.1 21.2C27.8 145.8 0 181.5 0 224c0 53 43 96 96 96h43.4c3.6-8 8.4-15.4 14.8-21.8 13.5-13.5 31.5-21.1 50.8-21.3 13.5-13.2 31.7-20.9 51-20.9s37.5 7.7 51 20.9c19.3.2 37.3 7.8 50.8 21.3 6.4 6.4 11.3 13.8 14.8 21.8H416c53 0 96-43 96-96z"]
};
var faCloudMoon = {
  prefix: 'fas',
  iconName: 'cloud-moon',
  icon: [576, 512, [], "f6c3", "M342.8 352.7c5.7-9.6 9.2-20.7 9.2-32.7 0-35.3-28.7-64-64-64-17.2 0-32.8 6.9-44.3 17.9-16.3-29.6-47.5-49.9-83.7-49.9-53 0-96 43-96 96 0 2 .5 3.8.6 5.7C27.1 338.8 0 374.1 0 416c0 53 43 96 96 96h240c44.2 0 80-35.8 80-80 0-41.9-32.3-75.8-73.2-79.3zm222.5-54.3c-93.1 17.7-178.5-53.7-178.5-147.7 0-54.2 29-104 76.1-130.8 7.3-4.1 5.4-15.1-2.8-16.7C448.4 1.1 436.7 0 425 0 319.1 0 233.1 85.9 233.1 192c0 8.5.7 16.8 1.8 25 5.9 4.3 11.6 8.9 16.7 14.2 11.4-4.7 23.7-7.2 36.4-7.2 52.9 0 96 43.1 96 96 0 3.6-.2 7.2-.6 10.7 23.6 10.8 42.4 29.5 53.5 52.6 54.4-3.4 103.7-29.3 137.1-70.4 5.3-6.5-.5-16.1-8.7-14.5z"]
};
var faCloudMoonRain = {
  prefix: 'fas',
  iconName: 'cloud-moon-rain',
  icon: [576, 512, [], "f73c", "M350.5 225.5c-6.9-37.2-39.3-65.5-78.5-65.5-12.3 0-23.9 3-34.3 8-17.4-24.1-45.6-40-77.7-40-53 0-96 43-96 96 0 .5.2 1.1.2 1.6C27.6 232.9 0 265.2 0 304c0 44.2 35.8 80 80 80h256c44.2 0 80-35.8 80-80 0-39.2-28.2-71.7-65.5-78.5zm217.4-1.7c-70.4 13.3-135-40.3-135-110.8 0-40.6 21.9-78 57.5-98.1 5.5-3.1 4.1-11.4-2.1-12.5C479.6.8 470.7 0 461.8 0c-77.9 0-141.1 61.2-144.4 137.9 26.7 11.9 48.2 33.8 58.9 61.7 37.1 14.3 64 47.4 70.2 86.8 5.1.5 10 1.5 15.2 1.5 44.7 0 85.6-20.2 112.6-53.3 4.2-4.8-.2-12-6.4-10.8zM364.5 418.1c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8zm-96 0c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8zm-96 0c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8zm-96 0c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8z"]
};
var faCloudRain = {
  prefix: 'fas',
  iconName: 'cloud-rain',
  icon: [512, 512, [], "f73d", "M416 128c-.6 0-1.1.2-1.6.2 1.1-5.2 1.6-10.6 1.6-16.2 0-44.2-35.8-80-80-80-24.6 0-46.3 11.3-61 28.8C256.4 24.8 219.3 0 176 0 114.1 0 64 50.1 64 112c0 7.3.8 14.3 2.1 21.2C27.8 145.8 0 181.5 0 224c0 53 43 96 96 96h320c53 0 96-43 96-96s-43-96-96-96zM88 374.2c-12.8 44.4-40 56.4-40 87.7 0 27.7 21.5 50.1 48 50.1s48-22.4 48-50.1c0-31.4-27.2-43.1-40-87.7-2.2-8.1-13.5-8.5-16 0zm160 0c-12.8 44.4-40 56.4-40 87.7 0 27.7 21.5 50.1 48 50.1s48-22.4 48-50.1c0-31.4-27.2-43.1-40-87.7-2.2-8.1-13.5-8.5-16 0zm160 0c-12.8 44.4-40 56.4-40 87.7 0 27.7 21.5 50.1 48 50.1s48-22.4 48-50.1c0-31.4-27.2-43.1-40-87.7-2.2-8.1-13.5-8.5-16 0z"]
};
var faCloudShowersHeavy = {
  prefix: 'fas',
  iconName: 'cloud-showers-heavy',
  icon: [512, 512, [], "f740", "M183.9 370.1c-7.6-4.4-17.4-1.8-21.8 6l-64 112c-4.4 7.7-1.7 17.5 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l64-112c4.4-7.6 1.7-17.4-6-21.8zm96 0c-7.6-4.4-17.4-1.8-21.8 6l-64 112c-4.4 7.7-1.7 17.5 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l64-112c4.4-7.6 1.7-17.4-6-21.8zm-192 0c-7.6-4.4-17.4-1.8-21.8 6l-64 112c-4.4 7.7-1.7 17.5 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l64-112c4.4-7.6 1.7-17.4-6-21.8zm384 0c-7.6-4.4-17.4-1.8-21.8 6l-64 112c-4.4 7.7-1.7 17.5 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l64-112c4.4-7.6 1.7-17.4-6-21.8zm-96 0c-7.6-4.4-17.4-1.8-21.8 6l-64 112c-4.4 7.7-1.7 17.5 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l64-112c4.4-7.6 1.7-17.4-6-21.8zM416 128c-.6 0-1.1.2-1.6.2 1.1-5.2 1.6-10.6 1.6-16.2 0-44.2-35.8-80-80-80-24.6 0-46.3 11.3-61 28.8C256.4 24.8 219.3 0 176 0 114.2 0 64 50.1 64 112c0 7.3.8 14.3 2.1 21.2C27.8 145.8 0 181.5 0 224c0 53 43 96 96 96h320c53 0 96-43 96-96s-43-96-96-96z"]
};
var faCloudSun = {
  prefix: 'fas',
  iconName: 'cloud-sun',
  icon: [640, 512, [], "f6c4", "M575.2 325.7c.2-1.9.8-3.7.8-5.6 0-35.3-28.7-64-64-64-12.6 0-24.2 3.8-34.1 10-17.6-38.8-56.5-66-101.9-66-61.8 0-112 50.1-112 112 0 3 .7 5.8.9 8.7-49.6 3.7-88.9 44.7-88.9 95.3 0 53 43 96 96 96h272c53 0 96-43 96-96 0-42.1-27.2-77.4-64.8-90.4zm-430.4-22.6c-43.7-43.7-43.7-114.7 0-158.3 43.7-43.7 114.7-43.7 158.4 0 9.7 9.7 16.9 20.9 22.3 32.7 9.8-3.7 20.1-6 30.7-7.5L386 81.1c4-11.9-7.3-23.1-19.2-19.2L279 91.2 237.5 8.4C232-2.8 216-2.8 210.4 8.4L169 91.2 81.1 61.9C69.3 58 58 69.3 61.9 81.1l29.3 87.8-82.8 41.5c-11.2 5.6-11.2 21.5 0 27.1l82.8 41.4-29.3 87.8c-4 11.9 7.3 23.1 19.2 19.2l76.1-25.3c6.1-12.4 14-23.7 23.6-33.5-13.1-5.4-25.4-13.4-36-24zm-4.8-79.2c0 40.8 29.3 74.8 67.9 82.3 8-4.7 16.3-8.8 25.2-11.7 5.4-44.3 31-82.5 67.4-105C287.3 160.4 258 140 224 140c-46.3 0-84 37.6-84 83.9z"]
};
var faCloudSunRain = {
  prefix: 'fas',
  iconName: 'cloud-sun-rain',
  icon: [576, 512, [], "f743", "M510.5 225.5c-6.9-37.2-39.3-65.5-78.5-65.5-12.3 0-23.9 3-34.3 8-17.4-24.1-45.6-40-77.7-40-53 0-96 43-96 96 0 .5.2 1.1.2 1.6C187.6 233 160 265.2 160 304c0 44.2 35.8 80 80 80h256c44.2 0 80-35.8 80-80 0-39.2-28.2-71.7-65.5-78.5zm-386.4 34.4c-37.4-37.4-37.4-98.3 0-135.8 34.6-34.6 89.1-36.8 126.7-7.4 20-12.9 43.6-20.7 69.2-20.7.7 0 1.3.2 2 .2l8.9-26.7c3.4-10.2-6.3-19.8-16.5-16.4l-75.3 25.1-35.5-71c-4.8-9.6-18.5-9.6-23.3 0l-35.5 71-75.3-25.1c-10.2-3.4-19.8 6.3-16.4 16.5l25.1 75.3-71 35.5c-9.6 4.8-9.6 18.5 0 23.3l71 35.5-25.1 75.3c-3.4 10.2 6.3 19.8 16.5 16.5l59.2-19.7c-.2-2.4-.7-4.7-.7-7.2 0-12.5 2.3-24.5 6.2-35.9-3.6-2.7-7.1-5.2-10.2-8.3zm69.8-58c4.3-24.5 15.8-46.4 31.9-64-9.8-6.2-21.4-9.9-33.8-9.9-35.3 0-64 28.7-64 64 0 18.7 8.2 35.4 21.1 47.1 11.3-15.9 26.6-28.9 44.8-37.2zm330.6 216.2c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8zm-96 0c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8zm-96 0c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8zm-96 0c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8z"]
};
var faCloudUploadAlt = {
  prefix: 'fas',
  iconName: 'cloud-upload-alt',
  icon: [640, 512, [], "f382", "M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zM393.4 288H328v112c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V288h-65.4c-14.3 0-21.4-17.2-11.3-27.3l105.4-105.4c6.2-6.2 16.4-6.2 22.6 0l105.4 105.4c10.1 10.1 2.9 27.3-11.3 27.3z"]
};
var faCocktail = {
  prefix: 'fas',
  iconName: 'cocktail',
  icon: [576, 512, [], "f561", "M296 464h-56V338.78l168.74-168.73c15.52-15.52 4.53-42.05-17.42-42.05H24.68c-21.95 0-32.94 26.53-17.42 42.05L176 338.78V464h-56c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h240c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40zM432 0c-62.61 0-115.35 40.2-135.18 96h52.54c16.65-28.55 47.27-48 82.64-48 52.93 0 96 43.06 96 96s-43.07 96-96 96c-14.04 0-27.29-3.2-39.32-8.64l-35.26 35.26C379.23 279.92 404.59 288 432 288c79.53 0 144-64.47 144-144S511.53 0 432 0z"]
};
var faCode = {
  prefix: 'fas',
  iconName: 'code',
  icon: [640, 512, [], "f121", "M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"]
};
var faCodeBranch = {
  prefix: 'fas',
  iconName: 'code-branch',
  icon: [384, 512, [], "f126", "M384 144c0-44.2-35.8-80-80-80s-80 35.8-80 80c0 36.4 24.3 67.1 57.5 76.8-.6 16.1-4.2 28.5-11 36.9-15.4 19.2-49.3 22.4-85.2 25.7-28.2 2.6-57.4 5.4-81.3 16.9v-144c32.5-10.2 56-40.5 56-76.3 0-44.2-35.8-80-80-80S0 35.8 0 80c0 35.8 23.5 66.1 56 76.3v199.3C23.5 365.9 0 396.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-34-21.2-63.1-51.2-74.6 3.1-5.2 7.8-9.8 14.9-13.4 16.2-8.2 40.4-10.4 66.1-12.8 42.2-3.9 90-8.4 118.2-43.4 14-17.4 21.1-39.8 21.6-67.9 31.6-10.8 54.4-40.7 54.4-75.9zM80 64c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm0 384c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm224-320c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16z"]
};
var faCoffee = {
  prefix: 'fas',
  iconName: 'coffee',
  icon: [640, 512, [], "f0f4", "M192 384h192c53 0 96-43 96-96h32c70.6 0 128-57.4 128-128S582.6 32 512 32H120c-13.3 0-24 10.7-24 24v232c0 53 43 96 96 96zM512 96c35.3 0 64 28.7 64 64s-28.7 64-64 64h-32V96h32zm47.7 384H48.3c-47.6 0-61-64-36-64h583.3c25 0 11.8 64-35.9 64z"]
};
var faCog = {
  prefix: 'fas',
  iconName: 'cog',
  icon: [512, 512, [], "f013", "M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]
};
var faCogs = {
  prefix: 'fas',
  iconName: 'cogs',
  icon: [640, 512, [], "f085", "M512.1 191l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0L552 6.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zm-10.5-58.8c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.7-82.4 14.3-52.8 52.8zM386.3 286.1l33.7 16.8c10.1 5.8 14.5 18.1 10.5 29.1-8.9 24.2-26.4 46.4-42.6 65.8-7.4 8.9-20.2 11.1-30.3 5.3l-29.1-16.8c-16 13.7-34.6 24.6-54.9 31.7v33.6c0 11.6-8.3 21.6-19.7 23.6-24.6 4.2-50.4 4.4-75.9 0-11.5-2-20-11.9-20-23.6V418c-20.3-7.2-38.9-18-54.9-31.7L74 403c-10 5.8-22.9 3.6-30.3-5.3-16.2-19.4-33.3-41.6-42.2-65.7-4-10.9.4-23.2 10.5-29.1l33.3-16.8c-3.9-20.9-3.9-42.4 0-63.4L12 205.8c-10.1-5.8-14.6-18.1-10.5-29 8.9-24.2 26-46.4 42.2-65.8 7.4-8.9 20.2-11.1 30.3-5.3l29.1 16.8c16-13.7 34.6-24.6 54.9-31.7V57.1c0-11.5 8.2-21.5 19.6-23.5 24.6-4.2 50.5-4.4 76-.1 11.5 2 20 11.9 20 23.6v33.6c20.3 7.2 38.9 18 54.9 31.7l29.1-16.8c10-5.8 22.9-3.6 30.3 5.3 16.2 19.4 33.2 41.6 42.1 65.8 4 10.9.1 23.2-10 29.1l-33.7 16.8c3.9 21 3.9 42.5 0 63.5zm-117.6 21.1c59.2-77-28.7-164.9-105.7-105.7-59.2 77 28.7 164.9 105.7 105.7zm243.4 182.7l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0l8.2-14.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zM501.6 431c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.6-82.4 14.3-52.8 52.8z"]
};
var faCoins = {
  prefix: 'fas',
  iconName: 'coins',
  icon: [512, 512, [], "f51e", "M0 405.3V448c0 35.3 86 64 192 64s192-28.7 192-64v-42.7C342.7 434.4 267.2 448 192 448S41.3 434.4 0 405.3zM320 128c106 0 192-28.7 192-64S426 0 320 0 128 28.7 128 64s86 64 192 64zM0 300.4V352c0 35.3 86 64 192 64s192-28.7 192-64v-51.6c-41.3 34-116.9 51.6-192 51.6S41.3 334.4 0 300.4zm416 11c57.3-11.1 96-31.7 96-55.4v-42.7c-23.2 16.4-57.3 27.6-96 34.5v63.6zM192 160C86 160 0 195.8 0 240s86 80 192 80 192-35.8 192-80-86-80-192-80zm219.3 56.3c60-10.8 100.7-32 100.7-56.3v-42.7c-35.5 25.1-96.5 38.6-160.7 41.8 29.5 14.3 51.2 33.5 60 57.2z"]
};
var faColumns = {
  prefix: 'fas',
  iconName: 'columns',
  icon: [512, 512, [], "f0db", "M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64V160h160v256zm224 0H288V160h160v256z"]
};
var faComment = {
  prefix: 'fas',
  iconName: 'comment',
  icon: [512, 512, [], "f075", "M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32z"]
};
var faCommentAlt = {
  prefix: 'fas',
  iconName: 'comment-alt',
  icon: [512, 512, [], "f27a", "M448 0H64C28.7 0 0 28.7 0 64v288c0 35.3 28.7 64 64 64h96v84c0 9.8 11.2 15.5 19.1 9.7L304 416h144c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64z"]
};
var faCommentDollar = {
  prefix: 'fas',
  iconName: 'comment-dollar',
  icon: [512, 512, [], "f651", "M256 32C114.62 32 0 125.12 0 240c0 49.56 21.41 95.01 57.02 130.74C44.46 421.05 2.7 465.97 2.2 466.5A7.995 7.995 0 0 0 8 480c66.26 0 115.99-31.75 140.6-51.38C181.29 440.93 217.59 448 256 448c141.38 0 256-93.12 256-208S397.38 32 256 32zm24 302.44V352c0 8.84-7.16 16-16 16h-16c-8.84 0-16-7.16-16-16v-17.73c-11.42-1.35-22.28-5.19-31.78-11.46-6.22-4.11-6.82-13.11-1.55-18.38l17.52-17.52c3.74-3.74 9.31-4.24 14.11-2.03 3.18 1.46 6.66 2.22 10.26 2.22h32.78c4.66 0 8.44-3.78 8.44-8.42 0-3.75-2.52-7.08-6.12-8.11l-50.07-14.3c-22.25-6.35-40.01-24.71-42.91-47.67-4.05-32.07 19.03-59.43 49.32-63.05V128c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v17.73c11.42 1.35 22.28 5.19 31.78 11.46 6.22 4.11 6.82 13.11 1.55 18.38l-17.52 17.52c-3.74 3.74-9.31 4.24-14.11 2.03a24.516 24.516 0 0 0-10.26-2.22h-32.78c-4.66 0-8.44 3.78-8.44 8.42 0 3.75 2.52 7.08 6.12 8.11l50.07 14.3c22.25 6.36 40.01 24.71 42.91 47.67 4.05 32.06-19.03 59.42-49.32 63.04z"]
};
var faCommentDots = {
  prefix: 'fas',
  iconName: 'comment-dots',
  icon: [512, 512, [], "f4ad", "M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32zM128 272c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]
};
var faCommentMedical = {
  prefix: 'fas',
  iconName: 'comment-medical',
  icon: [512, 512, [], "f7f5", "M256 32C114.62 32 0 125.12 0 240c0 49.56 21.41 95 57 130.74C44.46 421.05 2.7 466 2.2 466.5A8 8 0 0 0 8 480c66.26 0 116-31.75 140.6-51.38A304.66 304.66 0 0 0 256 448c141.39 0 256-93.12 256-208S397.39 32 256 32zm96 232a8 8 0 0 1-8 8h-56v56a8 8 0 0 1-8 8h-48a8 8 0 0 1-8-8v-56h-56a8 8 0 0 1-8-8v-48a8 8 0 0 1 8-8h56v-56a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v56h56a8 8 0 0 1 8 8z"]
};
var faCommentSlash = {
  prefix: 'fas',
  iconName: 'comment-slash',
  icon: [640, 512, [], "f4b3", "M64 240c0 49.6 21.4 95 57 130.7-12.6 50.3-54.3 95.2-54.8 95.8-2.2 2.3-2.8 5.7-1.5 8.7 1.3 2.9 4.1 4.8 7.3 4.8 66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 27.4 0 53.7-3.6 78.4-10L72.9 186.4c-5.6 17.1-8.9 35-8.9 53.6zm569.8 218.1l-114.4-88.4C554.6 334.1 576 289.2 576 240c0-114.9-114.6-208-256-208-65.1 0-124.2 20.1-169.4 52.7L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3z"]
};
var faComments = {
  prefix: 'fas',
  iconName: 'comments',
  icon: [576, 512, [], "f086", "M416 192c0-88.4-93.1-160-208-160S0 103.6 0 192c0 34.3 14.1 65.9 38 92-13.4 30.2-35.5 54.2-35.8 54.5-2.2 2.3-2.8 5.7-1.5 8.7S4.8 352 8 352c36.6 0 66.9-12.3 88.7-25 32.2 15.7 70.3 25 111.3 25 114.9 0 208-71.6 208-160zm122 220c23.9-26 38-57.7 38-92 0-66.9-53.5-124.2-129.3-148.1.9 6.6 1.3 13.3 1.3 20.1 0 105.9-107.7 192-240 192-10.8 0-21.3-.8-31.7-1.9C207.8 439.6 281.8 480 368 480c41 0 79.1-9.2 111.3-25 21.8 12.7 52.1 25 88.7 25 3.2 0 6.1-1.9 7.3-4.8 1.3-2.9.7-6.3-1.5-8.7-.3-.3-22.4-24.2-35.8-54.5z"]
};
var faCommentsDollar = {
  prefix: 'fas',
  iconName: 'comments-dollar',
  icon: [576, 512, [], "f653", "M416 192c0-88.37-93.12-160-208-160S0 103.63 0 192c0 34.27 14.13 65.95 37.97 91.98C24.61 314.22 2.52 338.16 2.2 338.5A7.995 7.995 0 0 0 8 352c36.58 0 66.93-12.25 88.73-24.98C128.93 342.76 167.02 352 208 352c114.88 0 208-71.63 208-160zm-224 96v-16.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V96c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.05 44.44-42.67 45.07V288c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm346.01 123.99C561.87 385.96 576 354.27 576 320c0-66.94-53.49-124.2-129.33-148.07.86 6.6 1.33 13.29 1.33 20.07 0 105.87-107.66 192-240 192-10.78 0-21.32-.77-31.73-1.88C207.8 439.63 281.77 480 368 480c40.98 0 79.07-9.24 111.27-24.98C501.07 467.75 531.42 480 568 480c3.2 0 6.09-1.91 7.34-4.84 1.27-2.94.66-6.34-1.55-8.67-.31-.33-22.42-24.24-35.78-54.5z"]
};
var faCompactDisc = {
  prefix: 'fas',
  iconName: 'compact-disc',
  icon: [496, 512, [], "f51f", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM88 256H56c0-105.9 86.1-192 192-192v32c-88.2 0-160 71.8-160 160zm160 96c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96zm0-128c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32z"]
};
var faCompass = {
  prefix: 'fas',
  iconName: 'compass',
  icon: [496, 512, [], "f14e", "M225.38 233.37c-12.5 12.5-12.5 32.76 0 45.25 12.49 12.5 32.76 12.5 45.25 0 12.5-12.5 12.5-32.76 0-45.25-12.5-12.49-32.76-12.49-45.25 0zM248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm126.14 148.05L308.17 300.4a31.938 31.938 0 0 1-15.77 15.77l-144.34 65.97c-16.65 7.61-33.81-9.55-26.2-26.2l65.98-144.35a31.938 31.938 0 0 1 15.77-15.77l144.34-65.97c16.65-7.6 33.8 9.55 26.19 26.2z"]
};
var faCompress = {
  prefix: 'fas',
  iconName: 'compress',
  icon: [448, 512, [], "f066", "M436 192H312c-13.3 0-24-10.7-24-24V44c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v84h84c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-276-24V44c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v84H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24zm0 300V344c0-13.3-10.7-24-24-24H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-84h84c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12H312c-13.3 0-24 10.7-24 24v124c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"]
};
var faCompressAlt = {
  prefix: 'fas',
  iconName: 'compress-alt',
  icon: [448, 512, [], "f422", "M4.686 427.314L104 328l-32.922-31.029C55.958 281.851 66.666 256 88.048 256h112C213.303 256 224 266.745 224 280v112c0 21.382-25.803 32.09-40.922 16.971L152 376l-99.314 99.314c-6.248 6.248-16.379 6.248-22.627 0L4.686 449.941c-6.248-6.248-6.248-16.379 0-22.627zM443.314 84.686L344 184l32.922 31.029c15.12 15.12 4.412 40.971-16.97 40.971h-112C234.697 256 224 245.255 224 232V120c0-21.382 25.803-32.09 40.922-16.971L296 136l99.314-99.314c6.248-6.248 16.379-6.248 22.627 0l25.373 25.373c6.248 6.248 6.248 16.379 0 22.627z"]
};
var faCompressArrowsAlt = {
  prefix: 'fas',
  iconName: 'compress-arrows-alt',
  icon: [512, 512, [], "f78c", "M200 288H88c-21.4 0-32.1 25.8-17 41l32.9 31-99.2 99.3c-6.2 6.2-6.2 16.4 0 22.6l25.4 25.4c6.2 6.2 16.4 6.2 22.6 0L152 408l31.1 33c15.1 15.1 40.9 4.4 40.9-17V312c0-13.3-10.7-24-24-24zm112-64h112c21.4 0 32.1-25.9 17-41l-33-31 99.3-99.3c6.2-6.2 6.2-16.4 0-22.6L481.9 4.7c-6.2-6.2-16.4-6.2-22.6 0L360 104l-31.1-33C313.8 55.9 288 66.6 288 88v112c0 13.3 10.7 24 24 24zm96 136l33-31.1c15.1-15.1 4.4-40.9-17-40.9H312c-13.3 0-24 10.7-24 24v112c0 21.4 25.9 32.1 41 17l31-32.9 99.3 99.3c6.2 6.2 16.4 6.2 22.6 0l25.4-25.4c6.2-6.2 6.2-16.4 0-22.6L408 360zM183 71.1L152 104 52.7 4.7c-6.2-6.2-16.4-6.2-22.6 0L4.7 30.1c-6.2 6.2-6.2 16.4 0 22.6L104 152l-33 31.1C55.9 198.2 66.6 224 88 224h112c13.3 0 24-10.7 24-24V88c0-21.3-25.9-32-41-16.9z"]
};
var faConciergeBell = {
  prefix: 'fas',
  iconName: 'concierge-bell',
  icon: [512, 512, [], "f562", "M288 130.54V112h16c8.84 0 16-7.16 16-16V80c0-8.84-7.16-16-16-16h-96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h16v18.54C115.49 146.11 32 239.18 32 352h448c0-112.82-83.49-205.89-192-221.46zM496 384H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]
};
var faCookie = {
  prefix: 'fas',
  iconName: 'cookie',
  icon: [512, 512, [], "f563", "M510.37 254.79l-12.08-76.26a132.493 132.493 0 0 0-37.16-72.95l-54.76-54.75c-19.73-19.72-45.18-32.7-72.71-37.05l-76.7-12.15c-27.51-4.36-55.69.11-80.52 12.76L107.32 49.6a132.25 132.25 0 0 0-57.79 57.8l-35.1 68.88a132.602 132.602 0 0 0-12.82 80.94l12.08 76.27a132.493 132.493 0 0 0 37.16 72.95l54.76 54.75a132.087 132.087 0 0 0 72.71 37.05l76.7 12.14c27.51 4.36 55.69-.11 80.52-12.75l69.12-35.21a132.302 132.302 0 0 0 57.79-57.8l35.1-68.87c12.71-24.96 17.2-53.3 12.82-80.96zM176 368c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm32-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm160 128c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
};
var faCookieBite = {
  prefix: 'fas',
  iconName: 'cookie-bite',
  icon: [512, 512, [], "f564", "M510.52 255.82c-69.97-.85-126.47-57.69-126.47-127.86-70.17 0-127-56.49-127.86-126.45-27.26-4.14-55.13.3-79.72 12.82l-69.13 35.22a132.221 132.221 0 0 0-57.79 57.81l-35.1 68.88a132.645 132.645 0 0 0-12.82 80.95l12.08 76.27a132.521 132.521 0 0 0 37.16 72.96l54.77 54.76a132.036 132.036 0 0 0 72.71 37.06l76.71 12.15c27.51 4.36 55.7-.11 80.53-12.76l69.13-35.21a132.273 132.273 0 0 0 57.79-57.81l35.1-68.88c12.56-24.64 17.01-52.58 12.91-79.91zM176 368c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm32-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm160 128c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
};
var faCopy = {
  prefix: 'fas',
  iconName: 'copy',
  icon: [448, 512, [], "f0c5", "M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"]
};
var faCopyright = {
  prefix: 'fas',
  iconName: 'copyright',
  icon: [512, 512, [], "f1f9", "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm117.134 346.753c-1.592 1.867-39.776 45.731-109.851 45.731-84.692 0-144.484-63.26-144.484-145.567 0-81.303 62.004-143.401 143.762-143.401 66.957 0 101.965 37.315 103.422 38.904a12 12 0 0 1 1.238 14.623l-22.38 34.655c-4.049 6.267-12.774 7.351-18.234 2.295-.233-.214-26.529-23.88-61.88-23.88-46.116 0-73.916 33.575-73.916 76.082 0 39.602 25.514 79.692 74.277 79.692 38.697 0 65.28-28.338 65.544-28.625 5.132-5.565 14.059-5.033 18.508 1.053l24.547 33.572a12.001 12.001 0 0 1-.553 14.866z"]
};
var faCouch = {
  prefix: 'fas',
  iconName: 'couch',
  icon: [640, 512, [], "f4b8", "M160 224v64h320v-64c0-35.3 28.7-64 64-64h32c0-53-43-96-96-96H160c-53 0-96 43-96 96h32c35.3 0 64 28.7 64 64zm416-32h-32c-17.7 0-32 14.3-32 32v96H128v-96c0-17.7-14.3-32-32-32H64c-35.3 0-64 28.7-64 64 0 23.6 13 44 32 55.1V432c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-16h384v16c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16V311.1c19-11.1 32-31.5 32-55.1 0-35.3-28.7-64-64-64z"]
};
var faCreditCard = {
  prefix: 'fas',
  iconName: 'credit-card',
  icon: [576, 512, [], "f09d", "M0 432c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V256H0v176zm192-68c0-6.6 5.4-12 12-12h136c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-40zm-128 0c0-6.6 5.4-12 12-12h72c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM576 80v48H0V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48z"]
};
var faCrop = {
  prefix: 'fas',
  iconName: 'crop',
  icon: [512, 512, [], "f125", "M488 352h-40V109.25l59.31-59.31c6.25-6.25 6.25-16.38 0-22.63L484.69 4.69c-6.25-6.25-16.38-6.25-22.63 0L402.75 64H192v96h114.75L160 306.75V24c0-13.26-10.75-24-24-24H88C74.75 0 64 10.74 64 24v40H24C10.75 64 0 74.74 0 88v48c0 13.25 10.75 24 24 24h40v264c0 13.25 10.75 24 24 24h232v-96H205.25L352 205.25V488c0 13.25 10.75 24 24 24h48c13.25 0 24-10.75 24-24v-40h40c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24z"]
};
var faCropAlt = {
  prefix: 'fas',
  iconName: 'crop-alt',
  icon: [512, 512, [], "f565", "M488 352h-40V96c0-17.67-14.33-32-32-32H192v96h160v328c0 13.25 10.75 24 24 24h48c13.25 0 24-10.75 24-24v-40h40c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24zM160 24c0-13.26-10.75-24-24-24H88C74.75 0 64 10.74 64 24v40H24C10.75 64 0 74.74 0 88v48c0 13.25 10.75 24 24 24h40v256c0 17.67 14.33 32 32 32h224v-96H160V24z"]
};
var faCross = {
  prefix: 'fas',
  iconName: 'cross',
  icon: [384, 512, [], "f654", "M352 128h-96V32c0-17.67-14.33-32-32-32h-64c-17.67 0-32 14.33-32 32v96H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h96v224c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V256h96c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z"]
};
var faCrosshairs = {
  prefix: 'fas',
  iconName: 'crosshairs',
  icon: [512, 512, [], "f05b", "M500 224h-30.364C455.724 130.325 381.675 56.276 288 42.364V12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v30.364C130.325 56.276 56.276 130.325 42.364 224H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h30.364C56.276 381.675 130.325 455.724 224 469.636V500c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-30.364C381.675 455.724 455.724 381.675 469.636 288H500c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zM288 404.634V364c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40.634C165.826 392.232 119.783 346.243 107.366 288H148c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40.634C119.768 165.826 165.757 119.783 224 107.366V148c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40.634C346.174 119.768 392.217 165.757 404.634 224H364c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40.634C392.232 346.174 346.243 392.217 288 404.634zM288 256c0 17.673-14.327 32-32 32s-32-14.327-32-32c0-17.673 14.327-32 32-32s32 14.327 32 32z"]
};
var faCrow = {
  prefix: 'fas',
  iconName: 'crow',
  icon: [640, 512, [], "f520", "M544 32h-16.36C513.04 12.68 490.09 0 464 0c-44.18 0-80 35.82-80 80v20.98L12.09 393.57A30.216 30.216 0 0 0 0 417.74c0 22.46 23.64 37.07 43.73 27.03L165.27 384h96.49l44.41 120.1c2.27 6.23 9.15 9.44 15.38 7.17l22.55-8.21c6.23-2.27 9.44-9.15 7.17-15.38L312.94 384H352c1.91 0 3.76-.23 5.66-.29l44.51 120.38c2.27 6.23 9.15 9.44 15.38 7.17l22.55-8.21c6.23-2.27 9.44-9.15 7.17-15.38l-41.24-111.53C485.74 352.8 544 279.26 544 192v-80l96-16c0-35.35-42.98-64-96-64zm-80 72c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"]
};
var faCrown = {
  prefix: 'fas',
  iconName: 'crown',
  icon: [640, 512, [], "f521", "M528 448H112c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h416c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm64-320c-26.5 0-48 21.5-48 48 0 7.1 1.6 13.7 4.4 19.8L476 239.2c-15.4 9.2-35.3 4-44.2-11.6L350.3 85C361 76.2 368 63 368 48c0-26.5-21.5-48-48-48s-48 21.5-48 48c0 15 7 28.2 17.7 37l-81.5 142.6c-8.9 15.6-28.9 20.8-44.2 11.6l-72.3-43.4c2.7-6 4.4-12.7 4.4-19.8 0-26.5-21.5-48-48-48S0 149.5 0 176s21.5 48 48 48c2.6 0 5.2-.4 7.7-.8L128 416h384l72.3-192.8c2.5.4 5.1.8 7.7.8 26.5 0 48-21.5 48-48s-21.5-48-48-48z"]
};
var faCrutch = {
  prefix: 'fas',
  iconName: 'crutch',
  icon: [512, 512, [], "f7f7", "M507.31 185.71l-181-181a16 16 0 0 0-22.62 0L281 27.31a16 16 0 0 0 0 22.63l181 181a16 16 0 0 0 22.63 0l22.62-22.63a16 16 0 0 0 .06-22.6zm-179.54 66.41l-67.89-67.89 55.1-55.1-45.25-45.25-109.67 109.67a96.08 96.08 0 0 0-25.67 46.29L106.65 360.1l-102 102a16 16 0 0 0 0 22.63l22.62 22.62a16 16 0 0 0 22.63 0l102-102 120.25-27.75a95.88 95.88 0 0 0 46.29-25.65l109.68-109.68L382.87 197zm-54.57 54.57a32 32 0 0 1-15.45 8.54l-79.3 18.32 18.3-79.3a32.22 32.22 0 0 1 8.56-15.45l9.31-9.31 67.89 67.89z"]
};
var faCube = {
  prefix: 'fas',
  iconName: 'cube',
  icon: [512, 512, [], "f1b2", "M239.1 6.3l-208 78c-18.7 7-31.1 25-31.1 45v225.1c0 18.2 10.3 34.8 26.5 42.9l208 104c13.5 6.8 29.4 6.8 42.9 0l208-104c16.3-8.1 26.5-24.8 26.5-42.9V129.3c0-20-12.4-37.9-31.1-44.9l-208-78C262 2.2 250 2.2 239.1 6.3zM256 68.4l192 72v1.1l-192 78-192-78v-1.1l192-72zm32 356V275.5l160-65v133.9l-160 80z"]
};
var faCubes = {
  prefix: 'fas',
  iconName: 'cubes',
  icon: [512, 512, [], "f1b3", "M488.6 250.2L392 214V105.5c0-15-9.3-28.4-23.4-33.7l-100-37.5c-8.1-3.1-17.1-3.1-25.3 0l-100 37.5c-14.1 5.3-23.4 18.7-23.4 33.7V214l-96.6 36.2C9.3 255.5 0 268.9 0 283.9V394c0 13.6 7.7 26.1 19.9 32.2l100 50c10.1 5.1 22.1 5.1 32.2 0l103.9-52 103.9 52c10.1 5.1 22.1 5.1 32.2 0l100-50c12.2-6.1 19.9-18.6 19.9-32.2V283.9c0-15-9.3-28.4-23.4-33.7zM358 214.8l-85 31.9v-68.2l85-37v73.3zM154 104.1l102-38.2 102 38.2v.6l-102 41.4-102-41.4v-.6zm84 291.1l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6zm240 112l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6z"]
};
var faCut = {
  prefix: 'fas',
  iconName: 'cut',
  icon: [448, 512, [], "f0c4", "M278.06 256L444.48 89.57c4.69-4.69 4.69-12.29 0-16.97-32.8-32.8-85.99-32.8-118.79 0L210.18 188.12l-24.86-24.86c4.31-10.92 6.68-22.81 6.68-35.26 0-53.02-42.98-96-96-96S0 74.98 0 128s42.98 96 96 96c4.54 0 8.99-.32 13.36-.93L142.29 256l-32.93 32.93c-4.37-.61-8.83-.93-13.36-.93-53.02 0-96 42.98-96 96s42.98 96 96 96 96-42.98 96-96c0-12.45-2.37-24.34-6.68-35.26l24.86-24.86L325.69 439.4c32.8 32.8 85.99 32.8 118.79 0 4.69-4.68 4.69-12.28 0-16.97L278.06 256zM96 160c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32zm0 256c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32z"]
};
var faDatabase = {
  prefix: 'fas',
  iconName: 'database',
  icon: [448, 512, [], "f1c0", "M448 73.143v45.714C448 159.143 347.667 192 224 192S0 159.143 0 118.857V73.143C0 32.857 100.333 0 224 0s224 32.857 224 73.143zM448 176v102.857C448 319.143 347.667 352 224 352S0 319.143 0 278.857V176c48.125 33.143 136.208 48.572 224 48.572S399.874 209.143 448 176zm0 160v102.857C448 479.143 347.667 512 224 512S0 479.143 0 438.857V336c48.125 33.143 136.208 48.572 224 48.572S399.874 369.143 448 336z"]
};
var faDeaf = {
  prefix: 'fas',
  iconName: 'deaf',
  icon: [512, 512, [], "f2a4", "M216 260c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-44.112 35.888-80 80-80s80 35.888 80 80c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-13.234-10.767-24-24-24s-24 10.766-24 24zm24-176c-97.047 0-176 78.953-176 176 0 15.464 12.536 28 28 28s28-12.536 28-28c0-66.168 53.832-120 120-120s120 53.832 120 120c0 75.164-71.009 70.311-71.997 143.622L288 404c0 28.673-23.327 52-52 52-15.464 0-28 12.536-28 28s12.536 28 28 28c59.475 0 107.876-48.328 108-107.774.595-34.428 72-48.24 72-144.226 0-97.047-78.953-176-176-176zm268.485-52.201L480.2 3.515c-4.687-4.686-12.284-4.686-16.971 0L376.2 90.544c-4.686 4.686-4.686 12.284 0 16.971l28.285 28.285c4.686 4.686 12.284 4.686 16.97 0l87.03-87.029c4.687-4.688 4.687-12.286 0-16.972zM168.97 314.745c-4.686-4.686-12.284-4.686-16.97 0L3.515 463.23c-4.686 4.686-4.686 12.284 0 16.971L31.8 508.485c4.687 4.686 12.284 4.686 16.971 0L197.256 360c4.686-4.686 4.686-12.284 0-16.971l-28.286-28.284z"]
};
var faDemocrat = {
  prefix: 'fas',
  iconName: 'democrat',
  icon: [640, 512, [], "f747", "M637.3 256.9l-19.6-29.4c-28.2-42.3-75.3-67.5-126.1-67.5H256l-81.2-81.2c20.1-20.1 22.6-51.1 7.5-73.9-3.4-5.2-10.8-5.9-15.2-1.5l-41.8 41.8L82.4 2.4c-3.6-3.6-9.6-3-12.4 1.2-12.3 18.6-10.3 44 6.1 60.4 3.3 3.3 7.3 5.3 11.3 7.5-2.2 1.7-4.7 3.1-6.4 5.4L6.4 176.2c-7.3 9.7-8.4 22.7-3 33.5l14.3 28.6c5.4 10.8 16.5 17.7 28.6 17.7h31c8.5 0 16.6-3.4 22.6-9.4L138 212l54 108h352v-77.8c16.2 12.2 18.3 17.6 40.1 50.3 4.9 7.4 14.8 9.3 22.2 4.4l26.6-17.7c7.3-5 9.3-14.9 4.4-22.3zm-341.1-13.6l-16.5 16.1 3.9 22.7c.7 4.1-3.6 7.2-7.2 5.3L256 276.7l-20.4 10.7c-3.6 1.9-7.9-1.2-7.2-5.3l3.9-22.7-16.5-16.1c-3-2.9-1.3-7.9 2.8-8.5l22.8-3.3 10.2-20.7c1.8-3.7 7.1-3.7 9 0l10.2 20.7 22.8 3.3c4 .6 5.6 5.6 2.6 8.5zm112 0l-16.5 16.1 3.9 22.7c.7 4.1-3.6 7.2-7.2 5.3L368 276.7l-20.4 10.7c-3.6 1.9-7.9-1.2-7.2-5.3l3.9-22.7-16.5-16.1c-3-2.9-1.3-7.9 2.8-8.5l22.8-3.3 10.2-20.7c1.8-3.7 7.1-3.7 9 0l10.2 20.7 22.8 3.3c4 .6 5.6 5.6 2.6 8.5zm112 0l-16.5 16.1 3.9 22.7c.7 4.1-3.6 7.2-7.2 5.3L480 276.7l-20.4 10.7c-3.6 1.9-7.9-1.2-7.2-5.3l3.9-22.7-16.5-16.1c-3-2.9-1.3-7.9 2.8-8.5l22.8-3.3 10.2-20.7c1.8-3.7 7.1-3.7 9 0l10.2 20.7 22.8 3.3c4 .6 5.6 5.6 2.6 8.5zM192 496c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-80h160v80c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16V352H192v144z"]
};
var faDesktop = {
  prefix: 'fas',
  iconName: 'desktop',
  icon: [576, 512, [], "f108", "M528 0H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h192l-16 48h-72c-13.3 0-24 10.7-24 24s10.7 24 24 24h272c13.3 0 24-10.7 24-24s-10.7-24-24-24h-72l-16-48h192c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-16 352H64V64h448v288z"]
};
var faDharmachakra = {
  prefix: 'fas',
  iconName: 'dharmachakra',
  icon: [512, 512, [], "f655", "M495 225.06l-17.22 1.08c-5.27-39.49-20.79-75.64-43.86-105.84l12.95-11.43c6.92-6.11 7.25-16.79.73-23.31L426.44 64.4c-6.53-6.53-17.21-6.19-23.31.73L391.7 78.07c-30.2-23.06-66.35-38.58-105.83-43.86L286.94 17c.58-9.21-6.74-17-15.97-17h-29.94c-9.23 0-16.54 7.79-15.97 17l1.08 17.22c-39.49 5.27-75.64 20.79-105.83 43.86l-11.43-12.95c-6.11-6.92-16.79-7.25-23.31-.73L64.4 85.56c-6.53 6.53-6.19 17.21.73 23.31l12.95 11.43c-23.06 30.2-38.58 66.35-43.86 105.84L17 225.06c-9.21-.58-17 6.74-17 15.97v29.94c0 9.23 7.79 16.54 17 15.97l17.22-1.08c5.27 39.49 20.79 75.64 43.86 105.83l-12.95 11.43c-6.92 6.11-7.25 16.79-.73 23.31l21.17 21.17c6.53 6.53 17.21 6.19 23.31-.73l11.43-12.95c30.2 23.06 66.35 38.58 105.84 43.86L225.06 495c-.58 9.21 6.74 17 15.97 17h29.94c9.23 0 16.54-7.79 15.97-17l-1.08-17.22c39.49-5.27 75.64-20.79 105.84-43.86l11.43 12.95c6.11 6.92 16.79 7.25 23.31.73l21.17-21.17c6.53-6.53 6.19-17.21-.73-23.31l-12.95-11.43c23.06-30.2 38.58-66.35 43.86-105.83l17.22 1.08c9.21.58 17-6.74 17-15.97v-29.94c-.01-9.23-7.8-16.54-17.01-15.97zM281.84 98.61c24.81 4.07 47.63 13.66 67.23 27.78l-42.62 48.29c-8.73-5.44-18.32-9.54-28.62-11.95l4.01-64.12zm-51.68 0l4.01 64.12c-10.29 2.41-19.89 6.52-28.62 11.95l-42.62-48.29c19.6-14.12 42.42-23.71 67.23-27.78zm-103.77 64.33l48.3 42.61c-5.44 8.73-9.54 18.33-11.96 28.62l-64.12-4.01c4.07-24.81 13.66-47.62 27.78-67.22zm-27.78 118.9l64.12-4.01c2.41 10.29 6.52 19.89 11.95 28.62l-48.29 42.62c-14.12-19.6-23.71-42.42-27.78-67.23zm131.55 131.55c-24.81-4.07-47.63-13.66-67.23-27.78l42.61-48.3c8.73 5.44 18.33 9.54 28.62 11.96l-4 64.12zM256 288c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm25.84 125.39l-4.01-64.12c10.29-2.41 19.89-6.52 28.62-11.96l42.61 48.3c-19.6 14.12-42.41 23.71-67.22 27.78zm103.77-64.33l-48.29-42.62c5.44-8.73 9.54-18.32 11.95-28.62l64.12 4.01c-4.07 24.82-13.66 47.64-27.78 67.23zm-36.34-114.89c-2.41-10.29-6.52-19.89-11.96-28.62l48.3-42.61c14.12 19.6 23.71 42.42 27.78 67.23l-64.12 4z"]
};
var faDiagnoses = {
  prefix: 'fas',
  iconName: 'diagnoses',
  icon: [640, 512, [], "f470", "M496 256c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16zm-176-80c48.5 0 88-39.5 88-88S368.5 0 320 0s-88 39.5-88 88 39.5 88 88 88zM59.8 364c10.2 15.3 29.3 17.8 42.9 9.8 16.2-9.6 56.2-31.7 105.3-48.6V416h224v-90.7c49.1 16.8 89.1 39 105.3 48.6 13.6 8 32.7 5.3 42.9-9.8l17.8-26.7c8.8-13.2 7.6-34.6-10-45.1-11.9-7.1-29.7-17-51.1-27.4-28.1 46.1-99.4 17.8-87.7-35.1C409.3 217.2 365.1 208 320 208c-57 0-112.9 14.5-160 32.2-.2 40.2-47.6 63.3-79.2 36-11.2 6-21.3 11.6-28.7 16-17.6 10.5-18.8 31.8-10 45.1L59.8 364zM368 344c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm-96-96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm-160 8c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16zm512 192H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"]
};
var faDice = {
  prefix: 'fas',
  iconName: 'dice',
  icon: [640, 512, [], "f522", "M592 192H473.26c12.69 29.59 7.12 65.2-17 89.32L320 417.58V464c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48V240c0-26.51-21.49-48-48-48zM480 376c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm-46.37-186.7L258.7 14.37c-19.16-19.16-50.23-19.16-69.39 0L14.37 189.3c-19.16 19.16-19.16 50.23 0 69.39L189.3 433.63c19.16 19.16 50.23 19.16 69.39 0L433.63 258.7c19.16-19.17 19.16-50.24 0-69.4zM96 248c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm128 128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm0-128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm0-128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm128 128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"]
};
var faDiceD20 = {
  prefix: 'fas',
  iconName: 'dice-d20',
  icon: [480, 512, [], "f6cf", "M106.75 215.06L1.2 370.95c-3.08 5 .1 11.5 5.93 12.14l208.26 22.07-108.64-190.1zM7.41 315.43L82.7 193.08 6.06 147.1c-2.67-1.6-6.06.32-6.06 3.43v162.81c0 4.03 5.29 5.53 7.41 2.09zM18.25 423.6l194.4 87.66c5.3 2.45 11.35-1.43 11.35-7.26v-65.67l-203.55-22.3c-4.45-.5-6.23 5.59-2.2 7.57zm81.22-257.78L179.4 22.88c4.34-7.06-3.59-15.25-10.78-11.14L17.81 110.35c-2.47 1.62-2.39 5.26.13 6.78l81.53 48.69zM240 176h109.21L253.63 7.62C250.5 2.54 245.25 0 240 0s-10.5 2.54-13.63 7.62L130.79 176H240zm233.94-28.9l-76.64 45.99 75.29 122.35c2.11 3.44 7.41 1.94 7.41-2.1V150.53c0-3.11-3.39-5.03-6.06-3.43zm-93.41 18.72l81.53-48.7c2.53-1.52 2.6-5.16.13-6.78l-150.81-98.6c-7.19-4.11-15.12 4.08-10.78 11.14l79.93 142.94zm79.02 250.21L256 438.32v65.67c0 5.84 6.05 9.71 11.35 7.26l194.4-87.66c4.03-1.97 2.25-8.06-2.2-7.56zm-86.3-200.97l-108.63 190.1 208.26-22.07c5.83-.65 9.01-7.14 5.93-12.14L373.25 215.06zM240 208H139.57L240 383.75 340.43 208H240z"]
};
var faDiceD6 = {
  prefix: 'fas',
  iconName: 'dice-d6',
  icon: [448, 512, [], "f6d1", "M422.19 109.95L256.21 9.07c-19.91-12.1-44.52-12.1-64.43 0L25.81 109.95c-5.32 3.23-5.29 11.27.06 14.46L224 242.55l198.14-118.14c5.35-3.19 5.38-11.22.05-14.46zm13.84 44.63L240 271.46v223.82c0 12.88 13.39 20.91 24.05 14.43l152.16-92.48c19.68-11.96 31.79-33.94 31.79-57.7v-197.7c0-6.41-6.64-10.43-11.97-7.25zM0 161.83v197.7c0 23.77 12.11 45.74 31.79 57.7l152.16 92.47c10.67 6.48 24.05-1.54 24.05-14.43V271.46L11.97 154.58C6.64 151.4 0 155.42 0 161.83z"]
};
var faDiceFive = {
  prefix: 'fas',
  iconName: 'dice-five',
  icon: [448, 512, [], "f523", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
};
var faDiceFour = {
  prefix: 'fas',
  iconName: 'dice-four',
  icon: [448, 512, [], "f524", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm192 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
};
var faDiceOne = {
  prefix: 'fas',
  iconName: 'dice-one',
  icon: [448, 512, [], "f525", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM224 288c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
};
var faDiceSix = {
  prefix: 'fas',
  iconName: 'dice-six',
  icon: [448, 512, [], "f526", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm192 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
};
var faDiceThree = {
  prefix: 'fas',
  iconName: 'dice-three',
  icon: [448, 512, [], "f527", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
};
var faDiceTwo = {
  prefix: 'fas',
  iconName: 'dice-two',
  icon: [448, 512, [], "f528", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm192 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
};
var faDigitalTachograph = {
  prefix: 'fas',
  iconName: 'digital-tachograph',
  icon: [640, 512, [], "f566", "M608 96H32c-17.67 0-32 14.33-32 32v256c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V128c0-17.67-14.33-32-32-32zM304 352c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-8c0-4.42 3.58-8 8-8h224c4.42 0 8 3.58 8 8v8zM72 288v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H80c-4.42 0-8-3.58-8-8zm64 0v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm64 0v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm64 0v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm40-64c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-48c0-8.84 7.16-16 16-16h208c8.84 0 16 7.16 16 16v48zm272 128c0 4.42-3.58 8-8 8H344c-4.42 0-8-3.58-8-8v-8c0-4.42 3.58-8 8-8h224c4.42 0 8 3.58 8 8v8z"]
};
var faDirections = {
  prefix: 'fas',
  iconName: 'directions',
  icon: [512, 512, [], "f5eb", "M502.61 233.32L278.68 9.39c-12.52-12.52-32.83-12.52-45.36 0L9.39 233.32c-12.52 12.53-12.52 32.83 0 45.36l223.93 223.93c12.52 12.53 32.83 12.53 45.36 0l223.93-223.93c12.52-12.53 12.52-32.83 0-45.36zm-100.98 12.56l-84.21 77.73c-5.12 4.73-13.43 1.1-13.43-5.88V264h-96v64c0 4.42-3.58 8-8 8h-32c-4.42 0-8-3.58-8-8v-80c0-17.67 14.33-32 32-32h112v-53.73c0-6.97 8.3-10.61 13.43-5.88l84.21 77.73c3.43 3.17 3.43 8.59 0 11.76z"]
};
var faDisease = {
  prefix: 'fas',
  iconName: 'disease',
  icon: [512, 512, [], "f7fa", "M472.29 195.9l-67.06-23c-19.28-6.6-33.54-20.92-38.14-38.31l-16-60.45c-11.58-43.77-76.57-57.13-110-22.62L195 99.24c-13.26 13.71-33.54 20.93-54.2 19.31l-71.9-5.62c-52-4.07-86.93 44.89-59 82.84l38.54 52.42c11.08 15.07 12.82 33.86 4.64 50.24l-28.43 57C4 396.67 47.46 440.29 98.11 429.23l70-15.28c20.11-4.39 41.45 0 57.07 11.73l54.32 40.83c39.32 29.56 101 7.57 104.45-37.22l4.7-61.86c1.35-17.8 12.8-33.87 30.63-43l62-31.74c44.84-22.96 39.55-80.17-8.99-96.79zM160 256a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm128 96a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm16-128a16 16 0 1 1 16-16 16 16 0 0 1-16 16z"]
};
var faDivide = {
  prefix: 'fas',
  iconName: 'divide',
  icon: [448, 512, [], "f529", "M224 352c-35.35 0-64 28.65-64 64s28.65 64 64 64 64-28.65 64-64-28.65-64-64-64zm0-192c35.35 0 64-28.65 64-64s-28.65-64-64-64-64 28.65-64 64 28.65 64 64 64zm192 48H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]
};
var faDizzy = {
  prefix: 'fas',
  iconName: 'dizzy',
  icon: [496, 512, [], "f567", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-96 206.6l-28.7 28.7c-14.8 14.8-37.8-7.5-22.6-22.6l28.7-28.7-28.7-28.7c-15-15 7.7-37.6 22.6-22.6l28.7 28.7 28.7-28.7c15-15 37.6 7.7 22.6 22.6L174.6 192l28.7 28.7c15.2 15.2-7.9 37.4-22.6 22.6L152 214.6zM248 416c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm147.3-195.3c15.2 15.2-7.9 37.4-22.6 22.6L344 214.6l-28.7 28.7c-14.8 14.8-37.8-7.5-22.6-22.6l28.7-28.7-28.7-28.7c-15-15 7.7-37.6 22.6-22.6l28.7 28.7 28.7-28.7c15-15 37.6 7.7 22.6 22.6L366.6 192l28.7 28.7z"]
};
var faDna = {
  prefix: 'fas',
  iconName: 'dna',
  icon: [448, 512, [], "f471", "M.1 494.1c-1.1 9.5 6.3 17.8 15.9 17.8l32.3.1c8.1 0 14.9-5.9 16-13.9.7-4.9 1.8-11.1 3.4-18.1H380c1.6 6.9 2.9 13.2 3.5 18.1 1.1 8 7.9 14 16 13.9l32.3-.1c9.6 0 17.1-8.3 15.9-17.8-4.6-37.9-25.6-129-118.9-207.7-17.6 12.4-37.1 24.2-58.5 35.4 6.2 4.6 11.4 9.4 17 14.2H159.7c21.3-18.1 47-35.6 78.7-51.4C410.5 199.1 442.1 65.8 447.9 17.9 449 8.4 441.6.1 432 .1L399.6 0c-8.1 0-14.9 5.9-16 13.9-.7 4.9-1.8 11.1-3.4 18.1H67.8c-1.6-7-2.7-13.1-3.4-18.1-1.1-8-7.9-14-16-13.9L16.1.1C6.5.1-1 8.4.1 17.9 5.3 60.8 31.4 171.8 160 256 31.5 340.2 5.3 451.2.1 494.1zM224 219.6c-25.1-13.7-46.4-28.4-64.3-43.6h128.5c-17.8 15.2-39.1 30-64.2 43.6zM355.1 96c-5.8 10.4-12.8 21.1-21 32H114c-8.3-10.9-15.3-21.6-21-32h262.1zM92.9 416c5.8-10.4 12.8-21.1 21-32h219.4c8.3 10.9 15.4 21.6 21.2 32H92.9z"]
};
var faDog = {
  prefix: 'fas',
  iconName: 'dog',
  icon: [576, 512, [], "f6d3", "M298.06,224,448,277.55V496a16,16,0,0,1-16,16H368a16,16,0,0,1-16-16V384H192V496a16,16,0,0,1-16,16H112a16,16,0,0,1-16-16V282.09C58.84,268.84,32,233.66,32,192a32,32,0,0,1,64,0,32.06,32.06,0,0,0,32,32ZM544,112v32a64,64,0,0,1-64,64H448v35.58L320,197.87V48c0-14.25,17.22-21.39,27.31-11.31L374.59,64h53.63c10.91,0,23.75,7.92,28.62,17.69L464,96h64A16,16,0,0,1,544,112Zm-112,0a16,16,0,1,0-16,16A16,16,0,0,0,432,112Z"]
};
var faDollarSign = {
  prefix: 'fas',
  iconName: 'dollar-sign',
  icon: [288, 512, [], "f155", "M209.2 233.4l-108-31.6C88.7 198.2 80 186.5 80 173.5c0-16.3 13.2-29.5 29.5-29.5h66.3c12.2 0 24.2 3.7 34.2 10.5 6.1 4.1 14.3 3.1 19.5-2l34.8-34c7.1-6.9 6.1-18.4-1.8-24.5C238 74.8 207.4 64.1 176 64V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48h-2.5C45.8 64-5.4 118.7.5 183.6c4.2 46.1 39.4 83.6 83.8 96.6l102.5 30c12.5 3.7 21.2 15.3 21.2 28.3 0 16.3-13.2 29.5-29.5 29.5h-66.3C100 368 88 364.3 78 357.5c-6.1-4.1-14.3-3.1-19.5 2l-34.8 34c-7.1 6.9-6.1 18.4 1.8 24.5 24.5 19.2 55.1 29.9 86.5 30v48c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-48.2c46.6-.9 90.3-28.6 105.7-72.7 21.5-61.6-14.6-124.8-72.5-141.7z"]
};
var faDolly = {
  prefix: 'fas',
  iconName: 'dolly',
  icon: [576, 512, [], "f472", "M294.2 277.7c18 5 34.7 13.4 49.5 24.7l161.5-53.8c8.4-2.8 12.9-11.9 10.1-20.2L454.9 47.2c-2.8-8.4-11.9-12.9-20.2-10.1l-61.1 20.4 33.1 99.4L346 177l-33.1-99.4-61.6 20.5c-8.4 2.8-12.9 11.9-10.1 20.2l53 159.4zm281 48.7L565 296c-2.8-8.4-11.9-12.9-20.2-10.1l-213.5 71.2c-17.2-22-43.6-36.4-73.5-37L158.4 21.9C154 8.8 141.8 0 128 0H16C7.2 0 0 7.2 0 16v32c0 8.8 7.2 16 16 16h88.9l92.2 276.7c-26.1 20.4-41.7 53.6-36 90.5 6.1 39.4 37.9 72.3 77.3 79.2 60.2 10.7 112.3-34.8 113.4-92.6l213.3-71.2c8.3-2.8 12.9-11.8 10.1-20.2zM256 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"]
};
var faDollyFlatbed = {
  prefix: 'fas',
  iconName: 'dolly-flatbed',
  icon: [640, 512, [], "f474", "M208 320h384c8.8 0 16-7.2 16-16V48c0-8.8-7.2-16-16-16H448v128l-48-32-48 32V32H208c-8.8 0-16 7.2-16 16v256c0 8.8 7.2 16 16 16zm416 64H128V16c0-8.8-7.2-16-16-16H16C7.2 0 0 7.2 0 16v32c0 8.8 7.2 16 16 16h48v368c0 8.8 7.2 16 16 16h82.9c-1.8 5-2.9 10.4-2.9 16 0 26.5 21.5 48 48 48s48-21.5 48-48c0-5.6-1.2-11-2.9-16H451c-1.8 5-2.9 10.4-2.9 16 0 26.5 21.5 48 48 48s48-21.5 48-48c0-5.6-1.2-11-2.9-16H624c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"]
};
var faDonate = {
  prefix: 'fas',
  iconName: 'donate',
  icon: [512, 512, [], "f4b9", "M256 416c114.9 0 208-93.1 208-208S370.9 0 256 0 48 93.1 48 208s93.1 208 208 208zM233.8 97.4V80.6c0-9.2 7.4-16.6 16.6-16.6h11.1c9.2 0 16.6 7.4 16.6 16.6v17c15.5.8 30.5 6.1 43 15.4 5.6 4.1 6.2 12.3 1.2 17.1L306 145.6c-3.8 3.7-9.5 3.8-14 1-5.4-3.4-11.4-5.1-17.8-5.1h-38.9c-9 0-16.3 8.2-16.3 18.3 0 8.2 5 15.5 12.1 17.6l62.3 18.7c25.7 7.7 43.7 32.4 43.7 60.1 0 34-26.4 61.5-59.1 62.4v16.8c0 9.2-7.4 16.6-16.6 16.6h-11.1c-9.2 0-16.6-7.4-16.6-16.6v-17c-15.5-.8-30.5-6.1-43-15.4-5.6-4.1-6.2-12.3-1.2-17.1l16.3-15.5c3.8-3.7 9.5-3.8 14-1 5.4 3.4 11.4 5.1 17.8 5.1h38.9c9 0 16.3-8.2 16.3-18.3 0-8.2-5-15.5-12.1-17.6l-62.3-18.7c-25.7-7.7-43.7-32.4-43.7-60.1.1-34 26.4-61.5 59.1-62.4zM480 352h-32.5c-19.6 26-44.6 47.7-73 64h63.8c5.3 0 9.6 3.6 9.6 8v16c0 4.4-4.3 8-9.6 8H73.6c-5.3 0-9.6-3.6-9.6-8v-16c0-4.4 4.3-8 9.6-8h63.8c-28.4-16.3-53.3-38-73-64H32c-17.7 0-32 14.3-32 32v96c0 17.7 14.3 32 32 32h448c17.7 0 32-14.3 32-32v-96c0-17.7-14.3-32-32-32z"]
};
var faDoorClosed = {
  prefix: 'fas',
  iconName: 'door-closed',
  icon: [640, 512, [], "f52a", "M624 448H512V50.8C512 22.78 490.47 0 464 0H175.99c-26.47 0-48 22.78-48 50.8V448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM415.99 288c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32c.01 17.67-14.32 32-32 32z"]
};
var faDoorOpen = {
  prefix: 'fas',
  iconName: 'door-open',
  icon: [640, 512, [], "f52b", "M624 448h-80V113.45C544 86.19 522.47 64 496 64H384v64h96v384h144c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM312.24 1.01l-192 49.74C105.99 54.44 96 67.7 96 82.92V448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h336V33.18c0-21.58-19.56-37.41-39.76-32.17zM264 288c-13.25 0-24-14.33-24-32s10.75-32 24-32 24 14.33 24 32-10.75 32-24 32z"]
};
var faDotCircle = {
  prefix: 'fas',
  iconName: 'dot-circle',
  icon: [512, 512, [], "f192", "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"]
};
var faDove = {
  prefix: 'fas',
  iconName: 'dove',
  icon: [512, 512, [], "f4ba", "M288 167.2v-28.1c-28.2-36.3-47.1-79.3-54.1-125.2-2.1-13.5-19-18.8-27.8-8.3-21.1 24.9-37.7 54.1-48.9 86.5 34.2 38.3 80 64.6 130.8 75.1zM400 64c-44.2 0-80 35.9-80 80.1v59.4C215.6 197.3 127 133 87 41.8c-5.5-12.5-23.2-13.2-29-.9C41.4 76 32 115.2 32 156.6c0 70.8 34.1 136.9 85.1 185.9 13.2 12.7 26.1 23.2 38.9 32.8l-143.9 36C1.4 414-3.4 426.4 2.6 435.7 20 462.6 63 508.2 155.8 512c8 .3 16-2.6 22.1-7.9l65.2-56.1H320c88.4 0 160-71.5 160-159.9V128l32-64H400zm0 96.1c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"]
};
var faDownload = {
  prefix: 'fas',
  iconName: 'download',
  icon: [512, 512, [], "f019", "M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"]
};
var faDraftingCompass = {
  prefix: 'fas',
  iconName: 'drafting-compass',
  icon: [512, 512, [], "f568", "M457.01 344.42c-25.05 20.33-52.63 37.18-82.54 49.05l54.38 94.19 53.95 23.04c9.81 4.19 20.89-2.21 22.17-12.8l7.02-58.25-54.98-95.23zm42.49-94.56c4.86-7.67 1.89-17.99-6.05-22.39l-28.07-15.57c-7.48-4.15-16.61-1.46-21.26 5.72C403.01 281.15 332.25 320 256 320c-23.93 0-47.23-4.25-69.41-11.53l67.36-116.68c.7.02 1.34.21 2.04.21s1.35-.19 2.04-.21l51.09 88.5c31.23-8.96 59.56-25.75 82.61-48.92l-51.79-89.71C347.39 128.03 352 112.63 352 96c0-53.02-42.98-96-96-96s-96 42.98-96 96c0 16.63 4.61 32.03 12.05 45.66l-68.3 118.31c-12.55-11.61-23.96-24.59-33.68-39-4.79-7.1-13.97-9.62-21.38-5.33l-27.75 16.07c-7.85 4.54-10.63 14.9-5.64 22.47 15.57 23.64 34.69 44.21 55.98 62.02L0 439.66l7.02 58.25c1.28 10.59 12.36 16.99 22.17 12.8l53.95-23.04 70.8-122.63C186.13 377.28 220.62 384 256 384c99.05 0 190.88-51.01 243.5-134.14zM256 64c17.67 0 32 14.33 32 32s-14.33 32-32 32-32-14.33-32-32 14.33-32 32-32z"]
};
var faDragon = {
  prefix: 'fas',
  iconName: 'dragon',
  icon: [640, 512, [], "f6d5", "M18.32 255.78L192 223.96l-91.28 68.69c-10.08 10.08-2.94 27.31 11.31 27.31h222.7c-9.44-26.4-14.73-54.47-14.73-83.38v-42.27l-119.73-87.6c-23.82-15.88-55.29-14.01-77.06 4.59L5.81 227.64c-12.38 10.33-3.45 30.42 12.51 28.14zm556.87 34.1l-100.66-50.31A47.992 47.992 0 0 1 448 196.65v-36.69h64l28.09 22.63c6 6 14.14 9.37 22.63 9.37h30.97a32 32 0 0 0 28.62-17.69l14.31-28.62a32.005 32.005 0 0 0-3.02-33.51l-74.53-99.38C553.02 4.7 543.54 0 533.47 0H296.02c-7.13 0-10.7 8.57-5.66 13.61L352 63.96 292.42 88.8c-5.9 2.95-5.9 11.36 0 14.31L352 127.96v108.62c0 72.08 36.03 139.39 96 179.38-195.59 6.81-344.56 41.01-434.1 60.91C5.78 478.67 0 485.88 0 494.2 0 504 7.95 512 17.76 512h499.08c63.29.01 119.61-47.56 122.99-110.76 2.52-47.28-22.73-90.4-64.64-111.36zM489.18 66.25l45.65 11.41c-2.75 10.91-12.47 18.89-24.13 18.26-12.96-.71-25.85-12.53-21.52-29.67z"]
};
var faDrawPolygon = {
  prefix: 'fas',
  iconName: 'draw-polygon',
  icon: [448, 512, [], "f5ee", "M384 352c-.35 0-.67.1-1.02.1l-39.2-65.32c5.07-9.17 8.22-19.56 8.22-30.78s-3.14-21.61-8.22-30.78l39.2-65.32c.35.01.67.1 1.02.1 35.35 0 64-28.65 64-64s-28.65-64-64-64c-23.63 0-44.04 12.95-55.12 32H119.12C108.04 44.95 87.63 32 64 32 28.65 32 0 60.65 0 96c0 23.63 12.95 44.04 32 55.12v209.75C12.95 371.96 0 392.37 0 416c0 35.35 28.65 64 64 64 23.63 0 44.04-12.95 55.12-32h209.75c11.09 19.05 31.49 32 55.12 32 35.35 0 64-28.65 64-64 .01-35.35-28.64-64-63.99-64zm-288 8.88V151.12A63.825 63.825 0 0 0 119.12 128h208.36l-38.46 64.1c-.35-.01-.67-.1-1.02-.1-35.35 0-64 28.65-64 64s28.65 64 64 64c.35 0 .67-.1 1.02-.1l38.46 64.1H119.12A63.748 63.748 0 0 0 96 360.88zM272 256c0-8.82 7.18-16 16-16s16 7.18 16 16-7.18 16-16 16-16-7.18-16-16zM400 96c0 8.82-7.18 16-16 16s-16-7.18-16-16 7.18-16 16-16 16 7.18 16 16zM64 80c8.82 0 16 7.18 16 16s-7.18 16-16 16-16-7.18-16-16 7.18-16 16-16zM48 416c0-8.82 7.18-16 16-16s16 7.18 16 16-7.18 16-16 16-16-7.18-16-16zm336 16c-8.82 0-16-7.18-16-16s7.18-16 16-16 16 7.18 16 16-7.18 16-16 16z"]
};
var faDrum = {
  prefix: 'fas',
  iconName: 'drum',
  icon: [512, 512, [], "f569", "M431.34 122.05l73.53-47.42a16 16 0 0 0 4.44-22.19l-8.87-13.31a16 16 0 0 0-22.19-4.44l-110.06 71C318.43 96.91 271.22 96 256 96 219.55 96 0 100.55 0 208.15v160.23c0 30.27 27.5 57.68 72 77.86v-101.9a24 24 0 1 1 48 0v118.93c33.05 9.11 71.07 15.06 112 16.73V376.39a24 24 0 1 1 48 0V480c40.93-1.67 78.95-7.62 112-16.73V344.34a24 24 0 1 1 48 0v101.9c44.5-20.18 72-47.59 72-77.86V208.15c0-43.32-35.76-69.76-80.66-86.1zM256 272.24c-114.88 0-208-28.69-208-64.09s93.12-64.08 208-64.08c17.15 0 33.73.71 49.68 1.91l-72.81 47a16 16 0 0 0-4.43 22.19l8.87 13.31a16 16 0 0 0 22.19 4.44l118.64-76.52C430.09 168 464 186.84 464 208.15c0 35.4-93.13 64.09-208 64.09z"]
};
var faDrumSteelpan = {
  prefix: 'fas',
  iconName: 'drum-steelpan',
  icon: [576, 512, [], "f56a", "M288 32C128.94 32 0 89.31 0 160v192c0 70.69 128.94 128 288 128s288-57.31 288-128V160c0-70.69-128.94-128-288-128zm-82.99 158.36c-4.45 16.61-14.54 30.57-28.31 40.48C100.23 217.46 48 190.78 48 160c0-30.16 50.11-56.39 124.04-70.03l25.6 44.34c9.86 17.09 12.48 36.99 7.37 56.05zM288 240c-21.08 0-41.41-1-60.89-2.7 8.06-26.13 32.15-45.3 60.89-45.3s52.83 19.17 60.89 45.3C329.41 239 309.08 240 288 240zm64-144c0 35.29-28.71 64-64 64s-64-28.71-64-64V82.96c20.4-1.88 41.8-2.96 64-2.96s43.6 1.08 64 2.96V96zm46.93 134.9c-13.81-9.91-23.94-23.9-28.4-40.54-5.11-19.06-2.49-38.96 7.38-56.04l25.65-44.42C477.72 103.5 528 129.79 528 160c0 30.83-52.4 57.54-129.07 70.9z"]
};
var faDrumstickBite = {
  prefix: 'fas',
  iconName: 'drumstick-bite',
  icon: [512, 512, [], "f6d7", "M462.8 49.57a169.44 169.44 0 0 0-239.5 0C187.82 85 160.13 128 160.13 192v85.83l-40.62 40.59c-9.7 9.69-24 11.07-36.78 6a60.33 60.33 0 0 0-65 98.72C33 438.39 54.24 442.7 73.85 438.21c-4.5 19.6-.18 40.83 15.1 56.1a60.35 60.35 0 0 0 98.8-65c-5.09-12.73-3.72-27 6-36.75L234.36 352h85.89a187.87 187.87 0 0 0 61.89-10c-39.64-43.89-39.83-110.23 1.05-151.07 34.38-34.36 86.76-39.46 128.74-16.8 1.3-44.96-14.81-90.28-49.13-124.56z"]
};
var faDumbbell = {
  prefix: 'fas',
  iconName: 'dumbbell',
  icon: [640, 512, [], "f44b", "M104 96H56c-13.3 0-24 10.7-24 24v104H8c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h24v104c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24zm528 128h-24V120c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h24c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM456 32h-48c-13.3 0-24 10.7-24 24v168H256V56c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v400c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h128v168c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24z"]
};
var faDumpster = {
  prefix: 'fas',
  iconName: 'dumpster',
  icon: [576, 512, [], "f793", "M560 160c10.4 0 18-9.8 15.5-19.9l-24-96C549.7 37 543.3 32 536 32h-98.9l25.6 128H560zM272 32H171.5l-25.6 128H272V32zm132.5 0H304v128h126.1L404.5 32zM16 160h97.3l25.6-128H40c-7.3 0-13.7 5-15.5 12.1l-24 96C-2 150.2 5.6 160 16 160zm544 64h-20l4-32H32l4 32H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h28l20 160v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h320v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16l20-160h28c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"]
};
var faDumpsterFire = {
  prefix: 'fas',
  iconName: 'dumpster-fire',
  icon: [640, 512, [], "f794", "M418.7 104.1l.2-.2-14.4-72H304v128h60.8c16.2-19.3 34.2-38.2 53.9-55.8zM272 32H171.5l-25.6 128H272V32zm189.3 72.1c18.2 16.3 35.5 33.7 51.1 51.5 5.7-5.6 11.4-11.1 17.3-16.3l21.3-19 21.3 19c1.1.9 2.1 2.1 3.1 3.1-.1-.8.2-1.5 0-2.3l-24-96C549.7 37 543.3 32 536 32h-98.9l12.3 61.5 11.9 10.6zM16 160h97.3l25.6-128H40c-7.3 0-13.7 5-15.5 12.1l-24 96C-2 150.2 5.6 160 16 160zm324.6 32H32l4 32H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h28l20 160v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h208.8c-30.2-33.7-48.8-77.9-48.8-126.4 0-35.9 19.9-82.9 52.6-129.6zm210.5-28.8c-14.9 13.3-28.3 27.2-40.2 41.2-19.5-25.8-43.6-52-71-76.4-70.2 62.7-120 144.3-120 193.6 0 87.5 71.6 158.4 160 158.4s160-70.9 160-158.4c.1-36.6-37-112.2-88.8-158.4zm-18.6 229.4c-14.7 10.7-32.9 17-52.5 17-49 0-88.9-33.5-88.9-88 0-27.1 16.5-51 49.4-91.9 4.7 5.6 67.1 88.1 67.1 88.1l39.8-47c2.8 4.8 5.4 9.5 7.7 14 18.6 36.7 10.8 83.6-22.6 107.8z"]
};
var faDungeon = {
  prefix: 'fas',
  iconName: 'dungeon',
  icon: [512, 512, [], "f6d9", "M128.73 195.32l-82.81-51.76c-8.04-5.02-18.99-2.17-22.93 6.45A254.19 254.19 0 0 0 .54 239.28C-.05 248.37 7.59 256 16.69 256h97.13c7.96 0 14.08-6.25 15.01-14.16 1.09-9.33 3.24-18.33 6.24-26.94 2.56-7.34.25-15.46-6.34-19.58zM319.03 8C298.86 2.82 277.77 0 256 0s-42.86 2.82-63.03 8c-9.17 2.35-13.91 12.6-10.39 21.39l37.47 104.03A16.003 16.003 0 0 0 235.1 144h41.8c6.75 0 12.77-4.23 15.05-10.58l37.47-104.03c3.52-8.79-1.22-19.03-10.39-21.39zM112 288H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm0 128H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm77.31-283.67l-36.32-90.8c-3.53-8.83-14.13-12.99-22.42-8.31a257.308 257.308 0 0 0-71.61 59.89c-6.06 7.32-3.85 18.48 4.22 23.52l82.93 51.83c6.51 4.07 14.66 2.62 20.11-2.79 5.18-5.15 10.79-9.85 16.79-14.05 6.28-4.41 9.15-12.17 6.3-19.29zM398.18 256h97.13c9.1 0 16.74-7.63 16.15-16.72a254.135 254.135 0 0 0-22.45-89.27c-3.94-8.62-14.89-11.47-22.93-6.45l-82.81 51.76c-6.59 4.12-8.9 12.24-6.34 19.58 3.01 8.61 5.15 17.62 6.24 26.94.93 7.91 7.05 14.16 15.01 14.16zm54.85-162.89a257.308 257.308 0 0 0-71.61-59.89c-8.28-4.68-18.88-.52-22.42 8.31l-36.32 90.8c-2.85 7.12.02 14.88 6.3 19.28 6 4.2 11.61 8.9 16.79 14.05 5.44 5.41 13.6 6.86 20.11 2.79l82.93-51.83c8.07-5.03 10.29-16.19 4.22-23.51zM496 288h-96c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm0 128h-96c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zM240 177.62V472c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8V177.62c-5.23-.89-10.52-1.62-16-1.62s-10.77.73-16 1.62zm-64 41.51V472c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8V189.36c-12.78 7.45-23.84 17.47-32 29.77zm128-29.77V472c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8V219.13c-8.16-12.3-19.22-22.32-32-29.77z"]
};
var faEdit = {
  prefix: 'fas',
  iconName: 'edit',
  icon: [576, 512, [], "f044", "M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z"]
};
var faEgg = {
  prefix: 'fas',
  iconName: 'egg',
  icon: [384, 512, [], "f7fb", "M192 0C86 0 0 214 0 320s86 192 192 192 192-86 192-192S298 0 192 0z"]
};
var faEject = {
  prefix: 'fas',
  iconName: 'eject',
  icon: [448, 512, [], "f052", "M448 384v64c0 17.673-14.327 32-32 32H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h384c17.673 0 32 14.327 32 32zM48.053 320h351.886c41.651 0 63.581-49.674 35.383-80.435L259.383 47.558c-19.014-20.743-51.751-20.744-70.767 0L12.67 239.565C-15.475 270.268 6.324 320 48.053 320z"]
};
var faEllipsisH = {
  prefix: 'fas',
  iconName: 'ellipsis-h',
  icon: [512, 512, [], "f141", "M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z"]
};
var faEllipsisV = {
  prefix: 'fas',
  iconName: 'ellipsis-v',
  icon: [192, 512, [], "f142", "M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"]
};
var faEnvelope = {
  prefix: 'fas',
  iconName: 'envelope',
  icon: [512, 512, [], "f0e0", "M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"]
};
var faEnvelopeOpen = {
  prefix: 'fas',
  iconName: 'envelope-open',
  icon: [512, 512, [], "f2b6", "M512 464c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V200.724a48 48 0 0 1 18.387-37.776c24.913-19.529 45.501-35.365 164.2-121.511C199.412 29.17 232.797-.347 256 .003c23.198-.354 56.596 29.172 73.413 41.433 118.687 86.137 139.303 101.995 164.2 121.512A48 48 0 0 1 512 200.724V464zm-65.666-196.605c-2.563-3.728-7.7-4.595-11.339-1.907-22.845 16.873-55.462 40.705-105.582 77.079-16.825 12.266-50.21 41.781-73.413 41.43-23.211.344-56.559-29.143-73.413-41.43-50.114-36.37-82.734-60.204-105.582-77.079-3.639-2.688-8.776-1.821-11.339 1.907l-9.072 13.196a7.998 7.998 0 0 0 1.839 10.967c22.887 16.899 55.454 40.69 105.303 76.868 20.274 14.781 56.524 47.813 92.264 47.573 35.724.242 71.961-32.771 92.263-47.573 49.85-36.179 82.418-59.97 105.303-76.868a7.998 7.998 0 0 0 1.839-10.967l-9.071-13.196z"]
};
var faEnvelopeOpenText = {
  prefix: 'fas',
  iconName: 'envelope-open-text',
  icon: [512, 512, [], "f658", "M176 216h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16H176c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16zm-16 80c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16H176c-8.84 0-16 7.16-16 16v16zm96 121.13c-16.42 0-32.84-5.06-46.86-15.19L0 250.86V464c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V250.86L302.86 401.94c-14.02 10.12-30.44 15.19-46.86 15.19zm237.61-254.18c-8.85-6.94-17.24-13.47-29.61-22.81V96c0-26.51-21.49-48-48-48h-77.55c-3.04-2.2-5.87-4.26-9.04-6.56C312.6 29.17 279.2-.35 256 0c-23.2-.35-56.59 29.17-73.41 41.44-3.17 2.3-6 4.36-9.04 6.56H96c-26.51 0-48 21.49-48 48v44.14c-12.37 9.33-20.76 15.87-29.61 22.81A47.995 47.995 0 0 0 0 200.72v10.65l96 69.35V96h320v184.72l96-69.35v-10.65c0-14.74-6.78-28.67-18.39-37.77z"]
};
var faEnvelopeSquare = {
  prefix: 'fas',
  iconName: 'envelope-square',
  icon: [448, 512, [], "f199", "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM178.117 262.104C87.429 196.287 88.353 196.121 64 177.167V152c0-13.255 10.745-24 24-24h272c13.255 0 24 10.745 24 24v25.167c-24.371 18.969-23.434 19.124-114.117 84.938-10.5 7.655-31.392 26.12-45.883 25.894-14.503.218-35.367-18.227-45.883-25.895zM384 217.775V360c0 13.255-10.745 24-24 24H88c-13.255 0-24-10.745-24-24V217.775c13.958 10.794 33.329 25.236 95.303 70.214 14.162 10.341 37.975 32.145 64.694 32.01 26.887.134 51.037-22.041 64.72-32.025 61.958-44.965 81.325-59.406 95.283-70.199z"]
};
var faEquals = {
  prefix: 'fas',
  iconName: 'equals',
  icon: [448, 512, [], "f52c", "M416 304H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32zm0-192H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]
};
var faEraser = {
  prefix: 'fas',
  iconName: 'eraser',
  icon: [512, 512, [], "f12d", "M497.941 273.941c18.745-18.745 18.745-49.137 0-67.882l-160-160c-18.745-18.745-49.136-18.746-67.883 0l-256 256c-18.745 18.745-18.745 49.137 0 67.882l96 96A48.004 48.004 0 0 0 144 480h356c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12H355.883l142.058-142.059zm-302.627-62.627l137.373 137.373L265.373 416H150.628l-80-80 124.686-124.686z"]
};
var faEthernet = {
  prefix: 'fas',
  iconName: 'ethernet',
  icon: [512, 512, [], "f796", "M496 192h-48v-48c0-8.8-7.2-16-16-16h-48V80c0-8.8-7.2-16-16-16H144c-8.8 0-16 7.2-16 16v48H80c-8.8 0-16 7.2-16 16v48H16c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16h80V320h32v128h64V320h32v128h64V320h32v128h64V320h32v128h80c8.8 0 16-7.2 16-16V208c0-8.8-7.2-16-16-16z"]
};
var faEuroSign = {
  prefix: 'fas',
  iconName: 'euro-sign',
  icon: [320, 512, [], "f153", "M310.706 413.765c-1.314-6.63-7.835-10.872-14.424-9.369-10.692 2.439-27.422 5.413-45.426 5.413-56.763 0-101.929-34.79-121.461-85.449h113.689a12 12 0 0 0 11.708-9.369l6.373-28.36c1.686-7.502-4.019-14.631-11.708-14.631H115.22c-1.21-14.328-1.414-28.287.137-42.245H261.95a12 12 0 0 0 11.723-9.434l6.512-29.755c1.638-7.484-4.061-14.566-11.723-14.566H130.184c20.633-44.991 62.69-75.03 117.619-75.03 14.486 0 28.564 2.25 37.851 4.145 6.216 1.268 12.347-2.498 14.002-8.623l11.991-44.368c1.822-6.741-2.465-13.616-9.326-14.917C290.217 34.912 270.71 32 249.635 32 152.451 32 74.03 92.252 45.075 176H12c-6.627 0-12 5.373-12 12v29.755c0 6.627 5.373 12 12 12h21.569c-1.009 13.607-1.181 29.287-.181 42.245H12c-6.627 0-12 5.373-12 12v28.36c0 6.627 5.373 12 12 12h30.114C67.139 414.692 145.264 480 249.635 480c26.301 0 48.562-4.544 61.101-7.788 6.167-1.595 10.027-7.708 8.788-13.957l-8.818-44.49z"]
};
var faExchangeAlt = {
  prefix: 'fas',
  iconName: 'exchange-alt',
  icon: [512, 512, [], "f362", "M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"]
};
var faExclamation = {
  prefix: 'fas',
  iconName: 'exclamation',
  icon: [192, 512, [], "f12a", "M176 432c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80zM25.26 25.199l13.6 272C39.499 309.972 50.041 320 62.83 320h66.34c12.789 0 23.331-10.028 23.97-22.801l13.6-272C167.425 11.49 156.496 0 142.77 0H49.23C35.504 0 24.575 11.49 25.26 25.199z"]
};
var faExclamationCircle = {
  prefix: 'fas',
  iconName: 'exclamation-circle',
  icon: [512, 512, [], "f06a", "M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"]
};
var faExclamationTriangle = {
  prefix: 'fas',
  iconName: 'exclamation-triangle',
  icon: [576, 512, [], "f071", "M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"]
};
var faExpand = {
  prefix: 'fas',
  iconName: 'expand',
  icon: [448, 512, [], "f065", "M0 180V56c0-13.3 10.7-24 24-24h124c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H64v84c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12zM288 44v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V56c0-13.3-10.7-24-24-24H300c-6.6 0-12 5.4-12 12zm148 276h-40c-6.6 0-12 5.4-12 12v84h-84c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24V332c0-6.6-5.4-12-12-12zM160 468v-40c0-6.6-5.4-12-12-12H64v-84c0-6.6-5.4-12-12-12H12c-6.6 0-12 5.4-12 12v124c0 13.3 10.7 24 24 24h124c6.6 0 12-5.4 12-12z"]
};
var faExpandAlt = {
  prefix: 'fas',
  iconName: 'expand-alt',
  icon: [448, 512, [], "f424", "M212.686 315.314L120 408l32.922 31.029c15.12 15.12 4.412 40.971-16.97 40.971h-112C10.697 480 0 469.255 0 456V344c0-21.382 25.803-32.09 40.922-16.971L72 360l92.686-92.686c6.248-6.248 16.379-6.248 22.627 0l25.373 25.373c6.249 6.248 6.249 16.378 0 22.627zm22.628-118.628L328 104l-32.922-31.029C279.958 57.851 290.666 32 312.048 32h112C437.303 32 448 42.745 448 56v112c0 21.382-25.803 32.09-40.922 16.971L376 152l-92.686 92.686c-6.248 6.248-16.379 6.248-22.627 0l-25.373-25.373c-6.249-6.248-6.249-16.378 0-22.627z"]
};
var faExpandArrowsAlt = {
  prefix: 'fas',
  iconName: 'expand-arrows-alt',
  icon: [448, 512, [], "f31e", "M448 344v112a23.94 23.94 0 0 1-24 24H312c-21.39 0-32.09-25.9-17-41l36.2-36.2L224 295.6 116.77 402.9 153 439c15.09 15.1 4.39 41-17 41H24a23.94 23.94 0 0 1-24-24V344c0-21.4 25.89-32.1 41-17l36.19 36.2L184.46 256 77.18 148.7 41 185c-15.1 15.1-41 4.4-41-17V56a23.94 23.94 0 0 1 24-24h112c21.39 0 32.09 25.9 17 41l-36.2 36.2L224 216.4l107.23-107.3L295 73c-15.09-15.1-4.39-41 17-41h112a23.94 23.94 0 0 1 24 24v112c0 21.4-25.89 32.1-41 17l-36.19-36.2L263.54 256l107.28 107.3L407 327.1c15.1-15.2 41-4.5 41 16.9z"]
};
var faExternalLinkAlt = {
  prefix: 'fas',
  iconName: 'external-link-alt',
  icon: [512, 512, [], "f35d", "M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z"]
};
var faExternalLinkSquareAlt = {
  prefix: 'fas',
  iconName: 'external-link-square-alt',
  icon: [448, 512, [], "f360", "M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zm-88 16H248.029c-21.313 0-32.08 25.861-16.971 40.971l31.984 31.987L67.515 364.485c-4.686 4.686-4.686 12.284 0 16.971l31.029 31.029c4.687 4.686 12.285 4.686 16.971 0l195.526-195.526 31.988 31.991C358.058 263.977 384 253.425 384 231.979V120c0-13.255-10.745-24-24-24z"]
};
var faEye = {
  prefix: 'fas',
  iconName: 'eye',
  icon: [576, 512, [], "f06e", "M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"]
};
var faEyeDropper = {
  prefix: 'fas',
  iconName: 'eye-dropper',
  icon: [512, 512, [], "f1fb", "M50.75 333.25c-12 12-18.75 28.28-18.75 45.26V424L0 480l32 32 56-32h45.49c16.97 0 33.25-6.74 45.25-18.74l126.64-126.62-128-128L50.75 333.25zM483.88 28.12c-37.47-37.5-98.28-37.5-135.75 0l-77.09 77.09-13.1-13.1c-9.44-9.44-24.65-9.31-33.94 0l-40.97 40.97c-9.37 9.37-9.37 24.57 0 33.94l161.94 161.94c9.44 9.44 24.65 9.31 33.94 0L419.88 288c9.37-9.37 9.37-24.57 0-33.94l-13.1-13.1 77.09-77.09c37.51-37.48 37.51-98.26.01-135.75z"]
};
var faEyeSlash = {
  prefix: 'fas',
  iconName: 'eye-slash',
  icon: [640, 512, [], "f070", "M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"]
};
var faFan = {
  prefix: 'fas',
  iconName: 'fan',
  icon: [512, 512, [], "f863", "M352.57 128c-28.09 0-54.09 4.52-77.06 12.86l12.41-123.11C289 7.31 279.81-1.18 269.33.13 189.63 10.13 128 77.64 128 159.43c0 28.09 4.52 54.09 12.86 77.06L17.75 224.08C7.31 223-1.18 232.19.13 242.67c10 79.7 77.51 141.33 159.3 141.33 28.09 0 54.09-4.52 77.06-12.86l-12.41 123.11c-1.05 10.43 8.11 18.93 18.59 17.62 79.7-10 141.33-77.51 141.33-159.3 0-28.09-4.52-54.09-12.86-77.06l123.11 12.41c10.44 1.05 18.93-8.11 17.62-18.59-10-79.7-77.51-141.33-159.3-141.33zM256 288a32 32 0 1 1 32-32 32 32 0 0 1-32 32z"]
};
var faFastBackward = {
  prefix: 'fas',
  iconName: 'fast-backward',
  icon: [512, 512, [], "f049", "M0 436V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v151.9L235.5 71.4C256.1 54.3 288 68.6 288 96v131.9L459.5 71.4C480.1 54.3 512 68.6 512 96v320c0 27.4-31.9 41.7-52.5 24.6L288 285.3V416c0 27.4-31.9 41.7-52.5 24.6L64 285.3V436c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12z"]
};
var faFastForward = {
  prefix: 'fas',
  iconName: 'fast-forward',
  icon: [512, 512, [], "f050", "M512 76v360c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V284.1L276.5 440.6c-20.6 17.2-52.5 2.8-52.5-24.6V284.1L52.5 440.6C31.9 457.8 0 443.4 0 416V96c0-27.4 31.9-41.7 52.5-24.6L224 226.8V96c0-27.4 31.9-41.7 52.5-24.6L448 226.8V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12z"]
};
var faFaucet = {
  prefix: 'fas',
  iconName: 'faucet',
  icon: [512, 512, [], "e005", "M352,256H313.39c-15.71-13.44-35.46-23.07-57.39-28V180.44l-32-3.38-32,3.38V228c-21.93,5-41.68,14.6-57.39,28H16A16,16,0,0,0,0,272v96a16,16,0,0,0,16,16h92.79C129.38,421.73,173,448,224,448s94.62-26.27,115.21-64H352a32,32,0,0,1,32,32,32,32,0,0,0,32,32h64a32,32,0,0,0,32-32A160,160,0,0,0,352,256ZM81.59,159.91l142.41-15,142.41,15c9.42,1,17.59-6.81,17.59-16.8V112.89c0-10-8.17-17.8-17.59-16.81L256,107.74V80a16,16,0,0,0-16-16H208a16,16,0,0,0-16,16v27.74L81.59,96.08C72.17,95.09,64,102.9,64,112.89v30.22C64,153.1,72.17,160.91,81.59,159.91Z"]
};
var faFax = {
  prefix: 'fas',
  iconName: 'fax',
  icon: [512, 512, [], "f1ac", "M480 160V77.25a32 32 0 0 0-9.38-22.63L425.37 9.37A32 32 0 0 0 402.75 0H160a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32h320a32 32 0 0 0 32-32V192a32 32 0 0 0-32-32zM288 432a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32a16 16 0 0 1 16 16zm0-128a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32a16 16 0 0 1 16 16zm128 128a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32a16 16 0 0 1 16 16zm0-128a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32a16 16 0 0 1 16 16zm0-112H192V64h160v48a16 16 0 0 0 16 16h48zM64 128H32a32 32 0 0 0-32 32v320a32 32 0 0 0 32 32h32a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32z"]
};
var faFeather = {
  prefix: 'fas',
  iconName: 'feather',
  icon: [512, 512, [], "f52d", "M467.14 44.84c-62.55-62.48-161.67-64.78-252.28 25.73-78.61 78.52-60.98 60.92-85.75 85.66-60.46 60.39-70.39 150.83-63.64 211.17l178.44-178.25c6.26-6.25 16.4-6.25 22.65 0s6.25 16.38 0 22.63L7.04 471.03c-9.38 9.37-9.38 24.57 0 33.94 9.38 9.37 24.6 9.37 33.98 0l66.1-66.03C159.42 454.65 279 457.11 353.95 384h-98.19l147.57-49.14c49.99-49.93 36.38-36.18 46.31-46.86h-97.78l131.54-43.8c45.44-74.46 34.31-148.84-16.26-199.36z"]
};
var faFeatherAlt = {
  prefix: 'fas',
  iconName: 'feather-alt',
  icon: [512, 512, [], "f56b", "M512 0C460.22 3.56 96.44 38.2 71.01 287.61c-3.09 26.66-4.84 53.44-5.99 80.24l178.87-178.69c6.25-6.25 16.4-6.25 22.65 0s6.25 16.38 0 22.63L7.04 471.03c-9.38 9.37-9.38 24.57 0 33.94 9.38 9.37 24.59 9.37 33.98 0l57.13-57.07c42.09-.14 84.15-2.53 125.96-7.36 53.48-5.44 97.02-26.47 132.58-56.54H255.74l146.79-48.88c11.25-14.89 21.37-30.71 30.45-47.12h-81.14l106.54-53.21C500.29 132.86 510.19 26.26 512 0z"]
};
var faFemale = {
  prefix: 'fas',
  iconName: 'female',
  icon: [256, 512, [], "f182", "M128 0c35.346 0 64 28.654 64 64s-28.654 64-64 64c-35.346 0-64-28.654-64-64S92.654 0 128 0m119.283 354.179l-48-192A24 24 0 0 0 176 144h-11.36c-22.711 10.443-49.59 10.894-73.28 0H80a24 24 0 0 0-23.283 18.179l-48 192C4.935 369.305 16.383 384 32 384h56v104c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V384h56c15.591 0 27.071-14.671 23.283-29.821z"]
};
var faFighterJet = {
  prefix: 'fas',
  iconName: 'fighter-jet',
  icon: [640, 512, [], "f0fb", "M544 224l-128-16-48-16h-24L227.158 44h39.509C278.333 44 288 41.375 288 38s-9.667-6-21.333-6H152v12h16v164h-48l-66.667-80H18.667L8 138.667V208h8v16h48v2.666l-64 8v42.667l64 8V288H16v16H8v69.333L18.667 384h34.667L120 304h48v164h-16v12h114.667c11.667 0 21.333-2.625 21.333-6s-9.667-6-21.333-6h-39.509L344 320h24l48-16 128-16c96-21.333 96-26.583 96-32 0-5.417 0-10.667-96-32z"]
};
var faFile = {
  prefix: 'fas',
  iconName: 'file',
  icon: [384, 512, [], "f15b", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"]
};
var faFileAlt = {
  prefix: 'fas',
  iconName: 'file-alt',
  icon: [384, 512, [], "f15c", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"]
};
var faFileArchive = {
  prefix: 'fas',
  iconName: 'file-archive',
  icon: [384, 512, [], "f1c6", "M377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zM128.4 336c-17.9 0-32.4 12.1-32.4 27 0 15 14.6 27 32.5 27s32.4-12.1 32.4-27-14.6-27-32.5-27zM224 136V0h-63.6v32h-32V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM95.9 32h32v32h-32zm32.3 384c-33.2 0-58-30.4-51.4-62.9L96.4 256v-32h32v-32h-32v-32h32v-32h-32V96h32V64h32v32h-32v32h32v32h-32v32h32v32h-32v32h22.1c5.7 0 10.7 4.1 11.8 9.7l17.3 87.7c6.4 32.4-18.4 62.6-51.4 62.6z"]
};
var faFileAudio = {
  prefix: 'fas',
  iconName: 'file-audio',
  icon: [384, 512, [], "f1c7", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm-64 268c0 10.7-12.9 16-20.5 8.5L104 376H76c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h28l35.5-36.5c7.6-7.6 20.5-2.2 20.5 8.5v136zm33.2-47.6c9.1-9.3 9.1-24.1 0-33.4-22.1-22.8 12.2-56.2 34.4-33.5 27.2 27.9 27.2 72.4 0 100.4-21.8 22.3-56.9-10.4-34.4-33.5zm86-117.1c54.4 55.9 54.4 144.8 0 200.8-21.8 22.4-57-10.3-34.4-33.5 36.2-37.2 36.3-96.5 0-133.8-22.1-22.8 12.3-56.3 34.4-33.5zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"]
};
var faFileCode = {
  prefix: 'fas',
  iconName: 'file-code',
  icon: [384, 512, [], "f1c9", "M384 121.941V128H256V0h6.059c6.365 0 12.47 2.529 16.971 7.029l97.941 97.941A24.005 24.005 0 0 1 384 121.941zM248 160c-13.2 0-24-10.8-24-24V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248zM123.206 400.505a5.4 5.4 0 0 1-7.633.246l-64.866-60.812a5.4 5.4 0 0 1 0-7.879l64.866-60.812a5.4 5.4 0 0 1 7.633.246l19.579 20.885a5.4 5.4 0 0 1-.372 7.747L101.65 336l40.763 35.874a5.4 5.4 0 0 1 .372 7.747l-19.579 20.884zm51.295 50.479l-27.453-7.97a5.402 5.402 0 0 1-3.681-6.692l61.44-211.626a5.402 5.402 0 0 1 6.692-3.681l27.452 7.97a5.4 5.4 0 0 1 3.68 6.692l-61.44 211.626a5.397 5.397 0 0 1-6.69 3.681zm160.792-111.045l-64.866 60.812a5.4 5.4 0 0 1-7.633-.246l-19.58-20.885a5.4 5.4 0 0 1 .372-7.747L284.35 336l-40.763-35.874a5.4 5.4 0 0 1-.372-7.747l19.58-20.885a5.4 5.4 0 0 1 7.633-.246l64.866 60.812a5.4 5.4 0 0 1-.001 7.879z"]
};
var faFileContract = {
  prefix: 'fas',
  iconName: 'file-contract',
  icon: [384, 512, [], "f56c", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 64c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm192.81 248H304c8.84 0 16 7.16 16 16s-7.16 16-16 16h-47.19c-16.45 0-31.27-9.14-38.64-23.86-2.95-5.92-8.09-6.52-10.17-6.52s-7.22.59-10.02 6.19l-7.67 15.34a15.986 15.986 0 0 1-14.31 8.84c-.38 0-.75-.02-1.14-.05-6.45-.45-12-4.75-14.03-10.89L144 354.59l-10.61 31.88c-5.89 17.66-22.38 29.53-41 29.53H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h12.39c4.83 0 9.11-3.08 10.64-7.66l18.19-54.64c3.3-9.81 12.44-16.41 22.78-16.41s19.48 6.59 22.77 16.41l13.88 41.64c19.77-16.19 54.05-9.7 66 14.16 2.02 4.06 5.96 6.5 10.16 6.5zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"]
};
var faFileCsv = {
  prefix: 'fas',
  iconName: 'file-csv',
  icon: [384, 512, [], "f6dd", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm-96 144c0 4.42-3.58 8-8 8h-8c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h8c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-8c-26.51 0-48-21.49-48-48v-32c0-26.51 21.49-48 48-48h8c4.42 0 8 3.58 8 8v16zm44.27 104H160c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h12.27c5.95 0 10.41-3.5 10.41-6.62 0-1.3-.75-2.66-2.12-3.84l-21.89-18.77c-8.47-7.22-13.33-17.48-13.33-28.14 0-21.3 19.02-38.62 42.41-38.62H200c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-12.27c-5.95 0-10.41 3.5-10.41 6.62 0 1.3.75 2.66 2.12 3.84l21.89 18.77c8.47 7.22 13.33 17.48 13.33 28.14.01 21.29-19 38.62-42.39 38.62zM256 264v20.8c0 20.27 5.7 40.17 16 56.88 10.3-16.7 16-36.61 16-56.88V264c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v20.8c0 35.48-12.88 68.89-36.28 94.09-3.02 3.25-7.27 5.11-11.72 5.11s-8.7-1.86-11.72-5.11c-23.4-25.2-36.28-58.61-36.28-94.09V264c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8zm121-159L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"]
};
var faFileDownload = {
  prefix: 'fas',
  iconName: 'file-download',
  icon: [384, 512, [], "f56d", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm76.45 211.36l-96.42 95.7c-6.65 6.61-17.39 6.61-24.04 0l-96.42-95.7C73.42 337.29 80.54 320 94.82 320H160v-80c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v80h65.18c14.28 0 21.4 17.29 11.27 27.36zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"]
};
var faFileExcel = {
  prefix: 'fas',
  iconName: 'file-excel',
  icon: [384, 512, [], "f1c3", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm60.1 106.5L224 336l60.1 93.5c5.1 8-.6 18.5-10.1 18.5h-34.9c-4.4 0-8.5-2.4-10.6-6.3C208.9 405.5 192 373 192 373c-6.4 14.8-10 20-36.6 68.8-2.1 3.9-6.1 6.3-10.5 6.3H110c-9.5 0-15.2-10.5-10.1-18.5l60.3-93.5-60.3-93.5c-5.2-8 .6-18.5 10.1-18.5h34.8c4.4 0 8.5 2.4 10.6 6.3 26.1 48.8 20 33.6 36.6 68.5 0 0 6.1-11.7 36.6-68.5 2.1-3.9 6.2-6.3 10.6-6.3H274c9.5-.1 15.2 10.4 10.1 18.4zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"]
};
var faFileExport = {
  prefix: 'fas',
  iconName: 'file-export',
  icon: [576, 512, [], "f56e", "M384 121.9c0-6.3-2.5-12.4-7-16.9L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128zM571 308l-95.7-96.4c-10.1-10.1-27.4-3-27.4 11.3V288h-64v64h64v65.2c0 14.3 17.3 21.4 27.4 11.3L571 332c6.6-6.6 6.6-17.4 0-24zm-379 28v-32c0-8.8 7.2-16 16-16h176V160H248c-13.2 0-24-10.8-24-24V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V352H208c-8.8 0-16-7.2-16-16z"]
};
var faFileImage = {
  prefix: 'fas',
  iconName: 'file-image',
  icon: [384, 512, [], "f1c5", "M384 121.941V128H256V0h6.059a24 24 0 0 1 16.97 7.029l97.941 97.941a24.002 24.002 0 0 1 7.03 16.971zM248 160c-13.2 0-24-10.8-24-24V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248zm-135.455 16c26.51 0 48 21.49 48 48s-21.49 48-48 48-48-21.49-48-48 21.491-48 48-48zm208 240h-256l.485-48.485L104.545 328c4.686-4.686 11.799-4.201 16.485.485L160.545 368 264.06 264.485c4.686-4.686 12.284-4.686 16.971 0L320.545 304v112z"]
};
var faFileImport = {
  prefix: 'fas',
  iconName: 'file-import',
  icon: [512, 512, [], "f56f", "M16 288c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h112v-64zm489-183L407.1 7c-4.5-4.5-10.6-7-17-7H384v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H152c-13.3 0-24 10.7-24 24v264h128v-65.2c0-14.3 17.3-21.4 27.4-11.3L379 308c6.6 6.7 6.6 17.4 0 24l-95.7 96.4c-10.1 10.1-27.4 3-27.4-11.3V352H128v136c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H376c-13.2 0-24-10.8-24-24z"]
};
var faFileInvoice = {
  prefix: 'fas',
  iconName: 'file-invoice',
  icon: [384, 512, [], "f570", "M288 256H96v64h192v-64zm89-151L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 64c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm256 304c0 4.42-3.58 8-8 8h-80c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16zm0-200v96c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-96c0-8.84 7.16-16 16-16h224c8.84 0 16 7.16 16 16z"]
};
var faFileInvoiceDollar = {
  prefix: 'fas',
  iconName: 'file-invoice-dollar',
  icon: [384, 512, [], "f571", "M377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 80v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8zm144 263.88V440c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-24.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V232c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v24.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.05 44.44-42.67 45.07z"]
};
var faFileMedical = {
  prefix: 'fas',
  iconName: 'file-medical',
  icon: [384, 512, [], "f477", "M377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 160v48c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8z"]
};
var faFileMedicalAlt = {
  prefix: 'fas',
  iconName: 'file-medical-alt',
  icon: [448, 512, [], "f478", "M288 136V0H88C74.7 0 64 10.7 64 24v232H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h140.9c3 0 5.8 1.7 7.2 4.4l19.9 39.8 56.8-113.7c2.9-5.9 11.4-5.9 14.3 0l34.7 69.5H352c8.8 0 16 7.2 16 16s-7.2 16-16 16h-89.9L240 275.8l-56.8 113.7c-2.9 5.9-11.4 5.9-14.3 0L134.1 320H64v168c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H312c-13.2 0-24-10.8-24-24zm153-31L343.1 7c-4.5-4.5-10.6-7-17-7H320v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"]
};
var faFilePdf = {
  prefix: 'fas',
  iconName: 'file-pdf',
  icon: [384, 512, [], "f1c1", "M181.9 256.1c-5-16-4.9-46.9-2-46.9 8.4 0 7.6 36.9 2 46.9zm-1.7 47.2c-7.7 20.2-17.3 43.3-28.4 62.7 18.3-7 39-17.2 62.9-21.9-12.7-9.6-24.9-23.4-34.5-40.8zM86.1 428.1c0 .8 13.2-5.4 34.9-40.2-6.7 6.3-29.1 24.5-34.9 40.2zM248 160h136v328c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V24C0 10.7 10.7 0 24 0h200v136c0 13.2 10.8 24 24 24zm-8 171.8c-20-12.2-33.3-29-42.7-53.8 4.5-18.5 11.6-46.6 6.2-64.2-4.7-29.4-42.4-26.5-47.8-6.8-5 18.3-.4 44.1 8.1 77-11.6 27.6-28.7 64.6-40.8 85.8-.1 0-.1.1-.2.1-27.1 13.9-73.6 44.5-54.5 68 5.6 6.9 16 10 21.5 10 17.9 0 35.7-18 61.1-61.8 25.8-8.5 54.1-19.1 79-23.2 21.7 11.8 47.1 19.5 64 19.5 29.2 0 31.2-32 19.7-43.4-13.9-13.6-54.3-9.7-73.6-7.2zM377 105L279 7c-4.5-4.5-10.6-7-17-7h-6v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-74.1 255.3c4.1-2.7-2.5-11.9-42.8-9 37.1 15.8 42.8 9 42.8 9z"]
};
var faFilePowerpoint = {
  prefix: 'fas',
  iconName: 'file-powerpoint',
  icon: [384, 512, [], "f1c4", "M193.7 271.2c8.8 0 15.5 2.7 20.3 8.1 9.6 10.9 9.8 32.7-.2 44.1-4.9 5.6-11.9 8.5-21.1 8.5h-26.9v-60.7h27.9zM377 105L279 7c-4.5-4.5-10.6-7-17-7h-6v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm53 165.2c0 90.3-88.8 77.6-111.1 77.6V436c0 6.6-5.4 12-12 12h-30.8c-6.6 0-12-5.4-12-12V236.2c0-6.6 5.4-12 12-12h81c44.5 0 72.9 32.8 72.9 77z"]
};
var faFilePrescription = {
  prefix: 'fas',
  iconName: 'file-prescription',
  icon: [384, 512, [], "f572", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm68.53 179.48l11.31 11.31c6.25 6.25 6.25 16.38 0 22.63l-29.9 29.9L304 409.38c6.25 6.25 6.25 16.38 0 22.63l-11.31 11.31c-6.25 6.25-16.38 6.25-22.63 0L240 413.25l-30.06 30.06c-6.25 6.25-16.38 6.25-22.63 0L176 432c-6.25-6.25-6.25-16.38 0-22.63l30.06-30.06L146.74 320H128v48c0 8.84-7.16 16-16 16H96c-8.84 0-16-7.16-16-16V208c0-8.84 7.16-16 16-16h80c35.35 0 64 28.65 64 64 0 24.22-13.62 45.05-33.46 55.92L240 345.38l29.9-29.9c6.25-6.25 16.38-6.25 22.63 0zM176 272h-48v-32h48c8.82 0 16 7.18 16 16s-7.18 16-16 16zm208-150.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"]
};
var faFileSignature = {
  prefix: 'fas',
  iconName: 'file-signature',
  icon: [576, 512, [], "f573", "M218.17 424.14c-2.95-5.92-8.09-6.52-10.17-6.52s-7.22.59-10.02 6.19l-7.67 15.34c-6.37 12.78-25.03 11.37-29.48-2.09L144 386.59l-10.61 31.88c-5.89 17.66-22.38 29.53-41 29.53H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h12.39c4.83 0 9.11-3.08 10.64-7.66l18.19-54.64c3.3-9.81 12.44-16.41 22.78-16.41s19.48 6.59 22.77 16.41l13.88 41.64c19.75-16.19 54.06-9.7 66 14.16 1.89 3.78 5.49 5.95 9.36 6.26v-82.12l128-127.09V160H248c-13.2 0-24-10.8-24-24V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24v-40l-128-.11c-16.12-.31-30.58-9.28-37.83-23.75zM384 121.9c0-6.3-2.5-12.4-7-16.9L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1zm-96 225.06V416h68.99l161.68-162.78-67.88-67.88L288 346.96zm280.54-179.63l-31.87-31.87c-9.94-9.94-26.07-9.94-36.01 0l-27.25 27.25 67.88 67.88 27.25-27.25c9.95-9.94 9.95-26.07 0-36.01z"]
};
var faFileUpload = {
  prefix: 'fas',
  iconName: 'file-upload',
  icon: [384, 512, [], "f574", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm65.18 216.01H224v80c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-80H94.82c-14.28 0-21.41-17.29-11.27-27.36l96.42-95.7c6.65-6.61 17.39-6.61 24.04 0l96.42 95.7c10.15 10.07 3.03 27.36-11.25 27.36zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"]
};
var faFileVideo = {
  prefix: 'fas',
  iconName: 'file-video',
  icon: [384, 512, [], "f1c8", "M384 121.941V128H256V0h6.059c6.365 0 12.47 2.529 16.971 7.029l97.941 97.941A24.005 24.005 0 0 1 384 121.941zM224 136V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248c-13.2 0-24-10.8-24-24zm96 144.016v111.963c0 21.445-25.943 31.998-40.971 16.971L224 353.941V392c0 13.255-10.745 24-24 24H88c-13.255 0-24-10.745-24-24V280c0-13.255 10.745-24 24-24h112c13.255 0 24 10.745 24 24v38.059l55.029-55.013c15.011-15.01 40.971-4.491 40.971 16.97z"]
};
var faFileWord = {
  prefix: 'fas',
  iconName: 'file-word',
  icon: [384, 512, [], "f1c2", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm57.1 120H305c7.7 0 13.4 7.1 11.7 14.7l-38 168c-1.2 5.5-6.1 9.3-11.7 9.3h-38c-5.5 0-10.3-3.8-11.6-9.1-25.8-103.5-20.8-81.2-25.6-110.5h-.5c-1.1 14.3-2.4 17.4-25.6 110.5-1.3 5.3-6.1 9.1-11.6 9.1H117c-5.6 0-10.5-3.9-11.7-9.4l-37.8-168c-1.7-7.5 4-14.6 11.7-14.6h24.5c5.7 0 10.7 4 11.8 9.7 15.6 78 20.1 109.5 21 122.2 1.6-10.2 7.3-32.7 29.4-122.7 1.3-5.4 6.1-9.1 11.7-9.1h29.1c5.6 0 10.4 3.8 11.7 9.2 24 100.4 28.8 124 29.6 129.4-.2-11.2-2.6-17.8 21.6-129.2 1-5.6 5.9-9.5 11.5-9.5zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"]
};
var faFill = {
  prefix: 'fas',
  iconName: 'fill',
  icon: [512, 512, [], "f575", "M502.63 217.06L294.94 9.37C288.69 3.12 280.5 0 272.31 0s-16.38 3.12-22.62 9.37l-81.58 81.58L81.93 4.77c-6.24-6.25-16.38-6.25-22.62 0L36.69 27.38c-6.24 6.25-6.24 16.38 0 22.63l86.19 86.18-94.76 94.76c-37.49 37.49-37.49 98.26 0 135.75l117.19 117.19c18.75 18.74 43.31 28.12 67.87 28.12 24.57 0 49.13-9.37 67.88-28.12l221.57-221.57c12.49-12.5 12.49-32.76 0-45.26zm-116.22 70.97H65.93c1.36-3.84 3.57-7.98 7.43-11.83l13.15-13.15 81.61-81.61 58.61 58.6c12.49 12.49 32.75 12.49 45.24 0 12.49-12.49 12.49-32.75 0-45.24l-58.61-58.6 58.95-58.95 162.45 162.44-48.35 48.34z"]
};
var faFillDrip = {
  prefix: 'fas',
  iconName: 'fill-drip',
  icon: [576, 512, [], "f576", "M512 320s-64 92.65-64 128c0 35.35 28.66 64 64 64s64-28.65 64-64-64-128-64-128zm-9.37-102.94L294.94 9.37C288.69 3.12 280.5 0 272.31 0s-16.38 3.12-22.62 9.37l-81.58 81.58L81.93 4.76c-6.25-6.25-16.38-6.25-22.62 0L36.69 27.38c-6.24 6.25-6.24 16.38 0 22.62l86.19 86.18-94.76 94.76c-37.49 37.48-37.49 98.26 0 135.75l117.19 117.19c18.74 18.74 43.31 28.12 67.87 28.12 24.57 0 49.13-9.37 67.87-28.12l221.57-221.57c12.5-12.5 12.5-32.75.01-45.25zm-116.22 70.97H65.93c1.36-3.84 3.57-7.98 7.43-11.83l13.15-13.15 81.61-81.61 58.6 58.6c12.49 12.49 32.75 12.49 45.24 0s12.49-32.75 0-45.24l-58.6-58.6 58.95-58.95 162.44 162.44-48.34 48.34z"]
};
var faFilm = {
  prefix: 'fas',
  iconName: 'film',
  icon: [512, 512, [], "f008", "M488 64h-8v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V64H96v20c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12V64h-8C10.7 64 0 74.7 0 88v336c0 13.3 10.7 24 24 24h8v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h320v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h8c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24zM96 372c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm272 208c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm0-168c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm112 152c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z"]
};
var faFilter = {
  prefix: 'fas',
  iconName: 'filter',
  icon: [512, 512, [], "f0b0", "M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z"]
};
var faFingerprint = {
  prefix: 'fas',
  iconName: 'fingerprint',
  icon: [512, 512, [], "f577", "M256.12 245.96c-13.25 0-24 10.74-24 24 1.14 72.25-8.14 141.9-27.7 211.55-2.73 9.72 2.15 30.49 23.12 30.49 10.48 0 20.11-6.92 23.09-17.52 13.53-47.91 31.04-125.41 29.48-224.52.01-13.25-10.73-24-23.99-24zm-.86-81.73C194 164.16 151.25 211.3 152.1 265.32c.75 47.94-3.75 95.91-13.37 142.55-2.69 12.98 5.67 25.69 18.64 28.36 13.05 2.67 25.67-5.66 28.36-18.64 10.34-50.09 15.17-101.58 14.37-153.02-.41-25.95 19.92-52.49 54.45-52.34 31.31.47 57.15 25.34 57.62 55.47.77 48.05-2.81 96.33-10.61 143.55-2.17 13.06 6.69 25.42 19.76 27.58 19.97 3.33 26.81-15.1 27.58-19.77 8.28-50.03 12.06-101.21 11.27-152.11-.88-55.8-47.94-101.88-104.91-102.72zm-110.69-19.78c-10.3-8.34-25.37-6.8-33.76 3.48-25.62 31.5-39.39 71.28-38.75 112 .59 37.58-2.47 75.27-9.11 112.05-2.34 13.05 6.31 25.53 19.36 27.89 20.11 3.5 27.07-14.81 27.89-19.36 7.19-39.84 10.5-80.66 9.86-121.33-.47-29.88 9.2-57.88 28-80.97 8.35-10.28 6.79-25.39-3.49-33.76zm109.47-62.33c-15.41-.41-30.87 1.44-45.78 4.97-12.89 3.06-20.87 15.98-17.83 28.89 3.06 12.89 16 20.83 28.89 17.83 11.05-2.61 22.47-3.77 34-3.69 75.43 1.13 137.73 61.5 138.88 134.58.59 37.88-1.28 76.11-5.58 113.63-1.5 13.17 7.95 25.08 21.11 26.58 16.72 1.95 25.51-11.88 26.58-21.11a929.06 929.06 0 0 0 5.89-119.85c-1.56-98.75-85.07-180.33-186.16-181.83zm252.07 121.45c-2.86-12.92-15.51-21.2-28.61-18.27-12.94 2.86-21.12 15.66-18.26 28.61 4.71 21.41 4.91 37.41 4.7 61.6-.11 13.27 10.55 24.09 23.8 24.2h.2c13.17 0 23.89-10.61 24-23.8.18-22.18.4-44.11-5.83-72.34zm-40.12-90.72C417.29 43.46 337.6 1.29 252.81.02 183.02-.82 118.47 24.91 70.46 72.94 24.09 119.37-.9 181.04.14 246.65l-.12 21.47c-.39 13.25 10.03 24.31 23.28 24.69.23.02.48.02.72.02 12.92 0 23.59-10.3 23.97-23.3l.16-23.64c-.83-52.5 19.16-101.86 56.28-139 38.76-38.8 91.34-59.67 147.68-58.86 69.45 1.03 134.73 35.56 174.62 92.39 7.61 10.86 22.56 13.45 33.42 5.86 10.84-7.62 13.46-22.59 5.84-33.43z"]
};
var faFire = {
  prefix: 'fas',
  iconName: 'fire',
  icon: [384, 512, [], "f06d", "M216 23.86c0-23.8-30.65-32.77-44.15-13.04C48 191.85 224 200 224 288c0 35.63-29.11 64.46-64.85 63.99-35.17-.45-63.15-29.77-63.15-64.94v-85.51c0-21.7-26.47-32.23-41.43-16.5C27.8 213.16 0 261.33 0 320c0 105.87 86.13 192 192 192s192-86.13 192-192c0-170.29-168-193-168-296.14z"]
};
var faFireAlt = {
  prefix: 'fas',
  iconName: 'fire-alt',
  icon: [448, 512, [], "f7e4", "M323.56 51.2c-20.8 19.3-39.58 39.59-56.22 59.97C240.08 73.62 206.28 35.53 168 0 69.74 91.17 0 209.96 0 281.6 0 408.85 100.29 512 224 512s224-103.15 224-230.4c0-53.27-51.98-163.14-124.44-230.4zm-19.47 340.65C282.43 407.01 255.72 416 226.86 416 154.71 416 96 368.26 96 290.75c0-38.61 24.31-72.63 72.79-130.75 6.93 7.98 98.83 125.34 98.83 125.34l58.63-66.88c4.14 6.85 7.91 13.55 11.27 19.97 27.35 52.19 15.81 118.97-33.43 153.42z"]
};
var faFireExtinguisher = {
  prefix: 'fas',
  iconName: 'fire-extinguisher',
  icon: [448, 512, [], "f134", "M434.027 26.329l-168 28C254.693 56.218 256 67.8 256 72h-58.332C208.353 36.108 181.446 0 144 0c-39.435 0-66.368 39.676-52.228 76.203-52.039 13.051-75.381 54.213-90.049 90.884-4.923 12.307 1.063 26.274 13.37 31.197 12.317 4.926 26.279-1.075 31.196-13.37C75.058 112.99 106.964 120 168 120v27.076c-41.543 10.862-72 49.235-72 94.129V488c0 13.255 10.745 24 24 24h144c13.255 0 24-10.745 24-24V240c0-44.731-30.596-82.312-72-92.97V120h40c0 2.974-1.703 15.716 10.027 17.671l168 28C441.342 166.89 448 161.25 448 153.834V38.166c0-7.416-6.658-13.056-13.973-11.837zM144 72c-8.822 0-16-7.178-16-16s7.178-16 16-16 16 7.178 16 16-7.178 16-16 16z"]
};
var faFirstAid = {
  prefix: 'fas',
  iconName: 'first-aid',
  icon: [576, 512, [], "f479", "M0 80v352c0 26.5 21.5 48 48 48h48V32H48C21.5 32 0 53.5 0 80zm128 400h320V32H128v448zm64-248c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48zM528 32h-48v448h48c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"]
};
var faFish = {
  prefix: 'fas',
  iconName: 'fish',
  icon: [576, 512, [], "f578", "M327.1 96c-89.97 0-168.54 54.77-212.27 101.63L27.5 131.58c-12.13-9.18-30.24.6-27.14 14.66L24.54 256 .35 365.77c-3.1 14.06 15.01 23.83 27.14 14.66l87.33-66.05C158.55 361.23 237.13 416 327.1 416 464.56 416 576 288 576 256S464.56 96 327.1 96zm87.43 184c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24 13.26 0 24 10.74 24 24 0 13.25-10.75 24-24 24z"]
};
var faFistRaised = {
  prefix: 'fas',
  iconName: 'fist-raised',
  icon: [384, 512, [], "f6de", "M255.98 160V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v146.93c5.02-1.78 10.34-2.93 15.97-2.93h48.03zm128 95.99c-.01-35.34-28.66-63.99-63.99-63.99H207.85c-8.78 0-15.9 7.07-15.9 15.85v.56c0 26.27 21.3 47.59 47.57 47.59h35.26c9.68 0 13.2 3.58 13.2 8v16.2c0 4.29-3.59 7.78-7.88 8-44.52 2.28-64.16 24.71-96.05 72.55l-6.31 9.47a7.994 7.994 0 0 1-11.09 2.22l-13.31-8.88a7.994 7.994 0 0 1-2.22-11.09l6.31-9.47c15.73-23.6 30.2-43.26 47.31-58.08-17.27-5.51-31.4-18.12-38.87-34.45-6.59 3.41-13.96 5.52-21.87 5.52h-32c-12.34 0-23.49-4.81-32-12.48C71.48 251.19 60.33 256 48 256H16c-5.64 0-10.97-1.15-16-2.95v77.93c0 33.95 13.48 66.5 37.49 90.51L63.99 448v64h255.98v-63.96l35.91-35.92A96.035 96.035 0 0 0 384 344.21l-.02-88.22zm-32.01-90.09V48c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v112h32c11.28 0 21.94 2.31 32 5.9zM16 224h32c8.84 0 16-7.16 16-16V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v128c0 8.84 7.16 16 16 16zm95.99 0h32c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v160c0 8.84 7.16 16 16 16z"]
};
var faFlag = {
  prefix: 'fas',
  iconName: 'flag',
  icon: [512, 512, [], "f024", "M349.565 98.783C295.978 98.783 251.721 64 184.348 64c-24.955 0-47.309 4.384-68.045 12.013a55.947 55.947 0 0 0 3.586-23.562C118.117 24.015 94.806 1.206 66.338.048 34.345-1.254 8 24.296 8 56c0 19.026 9.497 35.825 24 45.945V488c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-94.4c28.311-12.064 63.582-22.122 114.435-22.122 53.588 0 97.844 34.783 165.217 34.783 48.169 0 86.667-16.294 122.505-40.858C506.84 359.452 512 349.571 512 339.045v-243.1c0-23.393-24.269-38.87-45.485-29.016-34.338 15.948-76.454 31.854-116.95 31.854z"]
};
var faFlagCheckered = {
  prefix: 'fas',
  iconName: 'flag-checkered',
  icon: [512, 512, [], "f11e", "M243.2 189.9V258c26.1 5.9 49.3 15.6 73.6 22.3v-68.2c-26-5.8-49.4-15.5-73.6-22.2zm223.3-123c-34.3 15.9-76.5 31.9-117 31.9C296 98.8 251.7 64 184.3 64c-25 0-47.3 4.4-68 12 2.8-7.3 4.1-15.2 3.6-23.6C118.1 24 94.8 1.2 66.3 0 34.3-1.3 8 24.3 8 56c0 19 9.5 35.8 24 45.9V488c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24v-94.4c28.3-12.1 63.6-22.1 114.4-22.1 53.6 0 97.8 34.8 165.2 34.8 48.2 0 86.7-16.3 122.5-40.9 8.7-6 13.8-15.8 13.8-26.4V95.9c.1-23.3-24.2-38.8-45.4-29zM169.6 325.5c-25.8 2.7-50 8.2-73.6 16.6v-70.5c26.2-9.3 47.5-15 73.6-17.4zM464 191c-23.6 9.8-46.3 19.5-73.6 23.9V286c24.8-3.4 51.4-11.8 73.6-26v70.5c-25.1 16.1-48.5 24.7-73.6 27.1V286c-27 3.7-47.9 1.5-73.6-5.6v67.4c-23.9-7.4-47.3-16.7-73.6-21.3V258c-19.7-4.4-40.8-6.8-73.6-3.8v-70c-22.4 3.1-44.6 10.2-73.6 20.9v-70.5c33.2-12.2 50.1-19.8 73.6-22v71.6c27-3.7 48.4-1.3 73.6 5.7v-67.4c23.7 7.4 47.2 16.7 73.6 21.3v68.4c23.7 5.3 47.6 6.9 73.6 2.7V143c27-4.8 52.3-13.6 73.6-22.5z"]
};
var faFlagUsa = {
  prefix: 'fas',
  iconName: 'flag-usa',
  icon: [512, 512, [], "f74d", "M32 0C14.3 0 0 14.3 0 32v464c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V32C64 14.3 49.7 0 32 0zm267.9 303.6c-57.2-15.1-111.7-28.8-203.9 11.1V384c185.7-92.2 221.7 53.3 397.5-23.1 11.4-5 18.5-16.5 18.5-28.8v-36c-43.6 17.3-80.2 24.1-112.1 24.1-37.4-.1-68.9-8.4-100-16.6zm0-96c-57.2-15.1-111.7-28.8-203.9 11.1v61.5c94.8-37.6 154.6-22.7 212.1-7.6 57.2 15.1 111.7 28.8 203.9-11.1V200c-43.6 17.3-80.2 24.1-112.1 24.1-37.4 0-68.9-8.3-100-16.5zm9.5-125.9c51.8 15.6 97.4 29 202.6-20.1V30.8c0-25.1-26.8-38.1-49.4-26.6C291.3 91.5 305.4-62.2 96 32.4v151.9c94.8-37.5 154.6-22.7 212.1-7.6 57.2 15 111.7 28.7 203.9-11.1V96.7c-53.6 23.5-93.3 31.4-126.1 31.4s-59-7.8-85.7-15.9c-4-1.2-8.1-2.4-12.1-3.5V75.5c7.2 2 14.3 4.1 21.3 6.2zM160 128.1c-8.8 0-16-7.1-16-16 0-8.8 7.2-16 16-16s16 7.1 16 16-7.2 16-16 16zm0-55.8c-8.8 0-16-7.1-16-16 0-8.8 7.2-16 16-16s16 7.1 16 16c0 8.8-7.2 16-16 16zm64 47.9c-8.8 0-16-7.1-16-16 0-8.8 7.2-16 16-16s16 7.1 16 16c0 8.8-7.2 16-16 16zm0-55.9c-8.8 0-16-7.1-16-16 0-8.8 7.2-16 16-16s16 7.1 16 16c0 8.8-7.2 16-16 16z"]
};
var faFlask = {
  prefix: 'fas',
  iconName: 'flask',
  icon: [448, 512, [], "f0c3", "M437.2 403.5L320 215V64h8c13.3 0 24-10.7 24-24V24c0-13.3-10.7-24-24-24H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h8v151L10.8 403.5C-18.5 450.6 15.3 512 70.9 512h306.2c55.7 0 89.4-61.5 60.1-108.5zM137.9 320l48.2-77.6c3.7-5.2 5.8-11.6 5.8-18.4V64h64v160c0 6.9 2.2 13.2 5.8 18.4l48.2 77.6h-172z"]
};
var faFlushed = {
  prefix: 'fas',
  iconName: 'flushed',
  icon: [496, 512, [], "f579", "M344 200c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm-192 0c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zM248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM80 224c0-39.8 32.2-72 72-72s72 32.2 72 72-32.2 72-72 72-72-32.2-72-72zm232 176H184c-21.2 0-21.2-32 0-32h128c21.2 0 21.2 32 0 32zm32-104c-39.8 0-72-32.2-72-72s32.2-72 72-72 72 32.2 72 72-32.2 72-72 72z"]
};
var faFolder = {
  prefix: 'fas',
  iconName: 'folder',
  icon: [512, 512, [], "f07b", "M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z"]
};
var faFolderMinus = {
  prefix: 'fas',
  iconName: 'folder-minus',
  icon: [512, 512, [], "f65d", "M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48zm-96 168c0 8.84-7.16 16-16 16H160c-8.84 0-16-7.16-16-16v-16c0-8.84 7.16-16 16-16h192c8.84 0 16 7.16 16 16v16z"]
};
var faFolderOpen = {
  prefix: 'fas',
  iconName: 'folder-open',
  icon: [576, 512, [], "f07c", "M572.694 292.093L500.27 416.248A63.997 63.997 0 0 1 444.989 448H45.025c-18.523 0-30.064-20.093-20.731-36.093l72.424-124.155A64 64 0 0 1 152 256h399.964c18.523 0 30.064 20.093 20.73 36.093zM152 224h328v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49 64 0 85.49 0 112v278.046l69.077-118.418C86.214 242.25 117.989 224 152 224z"]
};
var faFolderPlus = {
  prefix: 'fas',
  iconName: 'folder-plus',
  icon: [512, 512, [], "f65e", "M464,128H272L208,64H48A48,48,0,0,0,0,112V400a48,48,0,0,0,48,48H464a48,48,0,0,0,48-48V176A48,48,0,0,0,464,128ZM359.5,296a16,16,0,0,1-16,16h-64v64a16,16,0,0,1-16,16h-16a16,16,0,0,1-16-16V312h-64a16,16,0,0,1-16-16V280a16,16,0,0,1,16-16h64V200a16,16,0,0,1,16-16h16a16,16,0,0,1,16,16v64h64a16,16,0,0,1,16,16Z"]
};
var faFont = {
  prefix: 'fas',
  iconName: 'font',
  icon: [448, 512, [], "f031", "M432 416h-23.41L277.88 53.69A32 32 0 0 0 247.58 32h-47.16a32 32 0 0 0-30.3 21.69L39.41 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-19.58l23.3-64h152.56l23.3 64H304a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM176.85 272L224 142.51 271.15 272z"]
};
var faFontAwesomeLogoFull = {
  prefix: 'fas',
  iconName: 'font-awesome-logo-full',
  icon: [3992, 512, ["Font Awesome"], "f4e6", "M454.6 0H57.4C25.9 0 0 25.9 0 57.4v397.3C0 486.1 25.9 512 57.4 512h397.3c31.4 0 57.4-25.9 57.4-57.4V57.4C512 25.9 486.1 0 454.6 0zm-58.9 324.9c0 4.8-4.1 6.9-8.9 8.9-19.2 8.1-39.7 15.7-61.5 15.7-40.5 0-68.7-44.8-163.2 2.5v51.8c0 30.3-45.7 30.2-45.7 0v-250c-9-7-15-17.9-15-30.3 0-21 17.1-38.2 38.2-38.2 21 0 38.2 17.1 38.2 38.2 0 12.2-5.8 23.2-14.9 30.2v21c37.1-12 65.5-34.4 146.1-3.4 26.6 11.4 68.7-15.7 76.5-15.7 5.5 0 10.3 4.1 10.3 8.9v160.4zm432.9-174.2h-137v70.1H825c39.8 0 40.4 62.2 0 62.2H691.6v105.6c0 45.5-70.7 46.4-70.7 0V128.3c0-22 18-39.8 39.8-39.8h167.8c39.6 0 40.5 62.2.1 62.2zm191.1 23.4c-169.3 0-169.1 252.4 0 252.4 169.9 0 169.9-252.4 0-252.4zm0 196.1c-81.6 0-82.1-139.8 0-139.8 82.5 0 82.4 139.8 0 139.8zm372.4 53.4c-17.5 0-31.4-13.9-31.4-31.4v-117c0-62.4-72.6-52.5-99.1-16.4v133.4c0 41.5-63.3 41.8-63.3 0V208c0-40 63.1-41.6 63.1 0v3.4c43.3-51.6 162.4-60.4 162.4 39.3v141.5c.3 30.4-31.5 31.4-31.7 31.4zm179.7 2.9c-44.3 0-68.3-22.9-68.3-65.8V235.2H1488c-35.6 0-36.7-55.3 0-55.3h15.5v-37.3c0-41.3 63.8-42.1 63.8 0v37.5h24.9c35.4 0 35.7 55.3 0 55.3h-24.9v108.5c0 29.6 26.1 26.3 27.4 26.3 31.4 0 52.6 56.3-22.9 56.3zM1992 123c-19.5-50.2-95.5-50-114.5 0-107.3 275.7-99.5 252.7-99.5 262.8 0 42.8 58.3 51.2 72.1 14.4l13.5-35.9H2006l13 35.9c14.2 37.7 72.1 27.2 72.1-14.4 0-10.1 5.3 6.8-99.1-262.8zm-108.9 179.1l51.7-142.9 51.8 142.9h-103.5zm591.3-85.6l-53.7 176.3c-12.4 41.2-72 41-84 0l-42.3-135.9-42.3 135.9c-12.4 40.9-72 41.2-84.5 0l-54.2-176.3c-12.5-39.4 49.8-56.1 60.2-16.9L2213 342l45.3-139.5c10.9-32.7 59.6-34.7 71.2 0l45.3 139.5 39.3-142.4c10.3-38.3 72.6-23.8 60.3 16.9zm275.4 75.1c0-42.4-33.9-117.5-119.5-117.5-73.2 0-124.4 56.3-124.4 126 0 77.2 55.3 126.4 128.5 126.4 31.7 0 93-11.5 93-39.8 0-18.3-21.1-31.5-39.3-22.4-49.4 26.2-109 8.4-115.9-43.8h148.3c16.3 0 29.3-13.4 29.3-28.9zM2571 277.7c9.5-73.4 113.9-68.6 118.6 0H2571zm316.7 148.8c-31.4 0-81.6-10.5-96.6-31.9-12.4-17 2.5-39.8 21.8-39.8 16.3 0 36.8 22.9 77.7 22.9 27.4 0 40.4-11 40.4-25.8 0-39.8-142.9-7.4-142.9-102 0-40.4 35.3-75.7 98.6-75.7 31.4 0 74.1 9.9 87.6 29.4 10.8 14.8-1.4 36.2-20.9 36.2-15.1 0-26.7-17.3-66.2-17.3-22.9 0-37.8 10.5-37.8 23.8 0 35.9 142.4 6 142.4 103.1-.1 43.7-37.4 77.1-104.1 77.1zm266.8-252.4c-169.3 0-169.1 252.4 0 252.4 170.1 0 169.6-252.4 0-252.4zm0 196.1c-81.8 0-82-139.8 0-139.8 82.5 0 82.4 139.8 0 139.8zm476.9 22V268.7c0-53.8-61.4-45.8-85.7-10.5v134c0 41.3-63.8 42.1-63.8 0V268.7c0-52.1-59.5-47.4-85.7-10.1v133.6c0 41.5-63.3 41.8-63.3 0V208c0-40 63.1-41.6 63.1 0v3.4c9.9-14.4 41.8-37.3 78.6-37.3 35.3 0 57.7 16.4 66.7 43.8 13.9-21.8 45.8-43.8 82.6-43.8 44.3 0 70.7 23.4 70.7 72.7v145.3c.5 17.3-13.5 31.4-31.9 31.4 3.5.1-31.3 1.1-31.3-31.3zM3992 291.6c0-42.4-32.4-117.5-117.9-117.5-73.2 0-127.5 56.3-127.5 126 0 77.2 58.3 126.4 131.6 126.4 31.7 0 91.5-11.5 91.5-39.8 0-18.3-21.1-31.5-39.3-22.4-49.4 26.2-110.5 8.4-117.5-43.8h149.8c16.3 0 29.1-13.4 29.3-28.9zm-180.5-13.9c9.7-74.4 115.9-68.3 120.1 0h-120.1z"]
};
var faFootballBall = {
  prefix: 'fas',
  iconName: 'football-ball',
  icon: [496, 512, [], "f44e", "M481.5 60.3c-4.8-18.2-19.1-32.5-37.3-37.4C420.3 16.5 383 8.9 339.4 8L496 164.8c-.8-43.5-8.2-80.6-14.5-104.5zm-467 391.4c4.8 18.2 19.1 32.5 37.3 37.4 23.9 6.4 61.2 14 104.8 14.9L0 347.2c.8 43.5 8.2 80.6 14.5 104.5zM4.2 283.4L220.4 500c132.5-19.4 248.8-118.7 271.5-271.4L275.6 12C143.1 31.4 26.8 130.7 4.2 283.4zm317.3-123.6c3.1-3.1 8.2-3.1 11.3 0l11.3 11.3c3.1 3.1 3.1 8.2 0 11.3l-28.3 28.3 28.3 28.3c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-28.3-28.3-22.6 22.7 28.3 28.3c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0L248 278.6l-22.6 22.6 28.3 28.3c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-28.3-28.3-28.3 28.3c-3.1 3.1-8.2 3.1-11.3 0l-11.3-11.3c-3.1-3.1-3.1-8.2 0-11.3l28.3-28.3-28.3-28.2c-3.1-3.1-3.1-8.2 0-11.3l11.3-11.3c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3 22.6-22.6-28.3-28.3c-3.1-3.1-3.1-8.2 0-11.3l11.3-11.3c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3 22.6-22.6-28.3-28.3c-3.1-3.1-3.1-8.2 0-11.3l11.3-11.3c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3 28.3-28.5z"]
};
var faForward = {
  prefix: 'fas',
  iconName: 'forward',
  icon: [512, 512, [], "f04e", "M500.5 231.4l-192-160C287.9 54.3 256 68.6 256 96v320c0 27.4 31.9 41.8 52.5 24.6l192-160c15.3-12.8 15.3-36.4 0-49.2zm-256 0l-192-160C31.9 54.3 0 68.6 0 96v320c0 27.4 31.9 41.8 52.5 24.6l192-160c15.3-12.8 15.3-36.4 0-49.2z"]
};
var faFrog = {
  prefix: 'fas',
  iconName: 'frog',
  icon: [576, 512, [], "f52e", "M446.53 97.43C439.67 60.23 407.19 32 368 32c-39.23 0-71.72 28.29-78.54 65.54C126.75 112.96-.5 250.12 0 416.98.11 451.9 29.08 480 64 480h304c8.84 0 16-7.16 16-16 0-17.67-14.33-32-32-32h-79.49l35.8-48.33c24.14-36.23 10.35-88.28-33.71-106.6-23.89-9.93-51.55-4.65-72.24 10.88l-32.76 24.59c-7.06 5.31-17.09 3.91-22.41-3.19-5.3-7.08-3.88-17.11 3.19-22.41l34.78-26.09c36.84-27.66 88.28-27.62 125.13 0 10.87 8.15 45.87 39.06 40.8 93.21L469.62 480H560c8.84 0 16-7.16 16-16 0-17.67-14.33-32-32-32h-53.63l-98.52-104.68 154.44-86.65A58.16 58.16 0 0 0 576 189.94c0-21.4-11.72-40.95-30.48-51.23-40.56-22.22-98.99-41.28-98.99-41.28zM368 136c-13.26 0-24-10.75-24-24 0-13.26 10.74-24 24-24 13.25 0 24 10.74 24 24 0 13.25-10.75 24-24 24z"]
};
var faFrown = {
  prefix: 'fas',
  iconName: 'frown',
  icon: [496, 512, [], "f119", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm170.2 218.2C315.8 367.4 282.9 352 248 352s-67.8 15.4-90.2 42.2c-13.5 16.3-38.1-4.2-24.6-20.5C161.7 339.6 203.6 320 248 320s86.3 19.6 114.7 53.8c13.6 16.2-11 36.7-24.5 20.4z"]
};
var faFrownOpen = {
  prefix: 'fas',
  iconName: 'frown-open',
  icon: [496, 512, [], "f57a", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM136 208c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm187.3 183.3c-31.2-9.6-59.4-15.3-75.3-15.3s-44.1 5.7-75.3 15.3c-11.5 3.5-22.5-6.3-20.5-18.1 7-40 60.1-61.2 95.8-61.2s88.8 21.3 95.8 61.2c2 11.9-9.1 21.6-20.5 18.1zM328 240c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]
};
var faFunnelDollar = {
  prefix: 'fas',
  iconName: 'funnel-dollar',
  icon: [640, 512, [], "f662", "M433.46 165.94l101.2-111.87C554.61 34.12 540.48 0 512.26 0H31.74C3.52 0-10.61 34.12 9.34 54.07L192 256v155.92c0 12.59 5.93 24.44 16 32l79.99 60c20.86 15.64 48.47 6.97 59.22-13.57C310.8 455.38 288 406.35 288 352c0-89.79 62.05-165.17 145.46-186.06zM480 192c-88.37 0-160 71.63-160 160s71.63 160 160 160 160-71.63 160-160-71.63-160-160-160zm16 239.88V448c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-16.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V256c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.04 44.44-42.67 45.07z"]
};
var faFutbol = {
  prefix: 'fas',
  iconName: 'futbol',
  icon: [512, 512, [], "f1e3", "M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zm-48 0l-.003-.282-26.064 22.741-62.679-58.5 16.454-84.355 34.303 3.072c-24.889-34.216-60.004-60.089-100.709-73.141l13.651 31.939L256 139l-74.953-41.525 13.651-31.939c-40.631 13.028-75.78 38.87-100.709 73.141l34.565-3.073 16.192 84.355-62.678 58.5-26.064-22.741-.003.282c0 43.015 13.497 83.952 38.472 117.991l7.704-33.897 85.138 10.447 36.301 77.826-29.902 17.786c40.202 13.122 84.29 13.148 124.572 0l-29.902-17.786 36.301-77.826 85.138-10.447 7.704 33.897C442.503 339.952 456 299.015 456 256zm-248.102 69.571l-29.894-91.312L256 177.732l77.996 56.527-29.622 91.312h-96.476z"]
};
var faGamepad = {
  prefix: 'fas',
  iconName: 'gamepad',
  icon: [640, 512, [], "f11b", "M480.07 96H160a160 160 0 1 0 114.24 272h91.52A160 160 0 1 0 480.07 96zM248 268a12 12 0 0 1-12 12h-52v52a12 12 0 0 1-12 12h-24a12 12 0 0 1-12-12v-52H84a12 12 0 0 1-12-12v-24a12 12 0 0 1 12-12h52v-52a12 12 0 0 1 12-12h24a12 12 0 0 1 12 12v52h52a12 12 0 0 1 12 12zm216 76a40 40 0 1 1 40-40 40 40 0 0 1-40 40zm64-96a40 40 0 1 1 40-40 40 40 0 0 1-40 40z"]
};
var faGasPump = {
  prefix: 'fas',
  iconName: 'gas-pump',
  icon: [512, 512, [], "f52f", "M336 448H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h320c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm157.2-340.7l-81-81c-6.2-6.2-16.4-6.2-22.6 0l-11.3 11.3c-6.2 6.2-6.2 16.4 0 22.6L416 97.9V160c0 28.1 20.9 51.3 48 55.2V376c0 13.2-10.8 24-24 24s-24-10.8-24-24v-32c0-48.6-39.4-88-88-88h-8V64c0-35.3-28.7-64-64-64H96C60.7 0 32 28.7 32 64v352h288V304h8c22.1 0 40 17.9 40 40v27.8c0 37.7 27 72 64.5 75.9 43 4.3 79.5-29.5 79.5-71.7V152.6c0-17-6.8-33.3-18.8-45.3zM256 192H96V64h160v128z"]
};
var faGavel = {
  prefix: 'fas',
  iconName: 'gavel',
  icon: [512, 512, [], "f0e3", "M504.971 199.362l-22.627-22.627c-9.373-9.373-24.569-9.373-33.941 0l-5.657 5.657L329.608 69.255l5.657-5.657c9.373-9.373 9.373-24.569 0-33.941L312.638 7.029c-9.373-9.373-24.569-9.373-33.941 0L154.246 131.48c-9.373 9.373-9.373 24.569 0 33.941l22.627 22.627c9.373 9.373 24.569 9.373 33.941 0l5.657-5.657 39.598 39.598-81.04 81.04-5.657-5.657c-12.497-12.497-32.758-12.497-45.255 0L9.373 412.118c-12.497 12.497-12.497 32.758 0 45.255l45.255 45.255c12.497 12.497 32.758 12.497 45.255 0l114.745-114.745c12.497-12.497 12.497-32.758 0-45.255l-5.657-5.657 81.04-81.04 39.598 39.598-5.657 5.657c-9.373 9.373-9.373 24.569 0 33.941l22.627 22.627c9.373 9.373 24.569 9.373 33.941 0l124.451-124.451c9.372-9.372 9.372-24.568 0-33.941z"]
};
var faGem = {
  prefix: 'fas',
  iconName: 'gem',
  icon: [576, 512, [], "f3a5", "M485.5 0L576 160H474.9L405.7 0h79.8zm-128 0l69.2 160H149.3L218.5 0h139zm-267 0h79.8l-69.2 160H0L90.5 0zM0 192h100.7l123 251.7c1.5 3.1-2.7 5.9-5 3.3L0 192zm148.2 0h279.6l-137 318.2c-1 2.4-4.5 2.4-5.5 0L148.2 192zm204.1 251.7l123-251.7H576L357.3 446.9c-2.3 2.7-6.5-.1-5-3.2z"]
};
var faGenderless = {
  prefix: 'fas',
  iconName: 'genderless',
  icon: [288, 512, [], "f22d", "M144 176c44.1 0 80 35.9 80 80s-35.9 80-80 80-80-35.9-80-80 35.9-80 80-80m0-64C64.5 112 0 176.5 0 256s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144z"]
};
var faGhost = {
  prefix: 'fas',
  iconName: 'ghost',
  icon: [384, 512, [], "f6e2", "M186.1.09C81.01 3.24 0 94.92 0 200.05v263.92c0 14.26 17.23 21.39 27.31 11.31l24.92-18.53c6.66-4.95 16-3.99 21.51 2.21l42.95 48.35c6.25 6.25 16.38 6.25 22.63 0l40.72-45.85c6.37-7.17 17.56-7.17 23.92 0l40.72 45.85c6.25 6.25 16.38 6.25 22.63 0l42.95-48.35c5.51-6.2 14.85-7.17 21.51-2.21l24.92 18.53c10.08 10.08 27.31 2.94 27.31-11.31V192C384 84 294.83-3.17 186.1.09zM128 224c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm128 0c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
};
var faGift = {
  prefix: 'fas',
  iconName: 'gift',
  icon: [512, 512, [], "f06b", "M32 448c0 17.7 14.3 32 32 32h160V320H32v128zm256 32h160c17.7 0 32-14.3 32-32V320H288v160zm192-320h-42.1c6.2-12.1 10.1-25.5 10.1-40 0-48.5-39.5-88-88-88-41.6 0-68.5 21.3-103 68.3-34.5-47-61.4-68.3-103-68.3-48.5 0-88 39.5-88 88 0 14.5 3.8 27.9 10.1 40H32c-17.7 0-32 14.3-32 32v80c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-80c0-17.7-14.3-32-32-32zm-326.1 0c-22.1 0-40-17.9-40-40s17.9-40 40-40c19.9 0 34.6 3.3 86.1 80h-86.1zm206.1 0h-86.1c51.4-76.5 65.7-80 86.1-80 22.1 0 40 17.9 40 40s-17.9 40-40 40z"]
};
var faGifts = {
  prefix: 'fas',
  iconName: 'gifts',
  icon: [640, 512, [], "f79c", "M240.6 194.1c1.9-30.8 17.3-61.2 44-79.8C279.4 103.5 268.7 96 256 96h-29.4l30.7-22c7.2-5.1 8.9-15.1 3.7-22.3l-9.3-13c-5.1-7.2-15.1-8.9-22.3-3.7l-32 22.9 11.5-30.6c3.1-8.3-1.1-17.5-9.4-20.6l-15-5.6c-8.3-3.1-17.5 1.1-20.6 9.4l-19.9 53-19.9-53.1C121 2.1 111.8-2.1 103.5 1l-15 5.6C80.2 9.7 76 19 79.2 27.2l11.5 30.6L58.6 35c-7.2-5.1-17.2-3.5-22.3 3.7l-9.3 13c-5.1 7.2-3.5 17.2 3.7 22.3l30.7 22H32c-17.7 0-32 14.3-32 32v352c0 17.7 14.3 32 32 32h168.9c-5.5-9.5-8.9-20.3-8.9-32V256c0-29.9 20.8-55 48.6-61.9zM224 480c0 17.7 14.3 32 32 32h160V384H224v96zm224 32h160c17.7 0 32-14.3 32-32v-96H448v128zm160-288h-20.4c2.6-7.6 4.4-15.5 4.4-23.8 0-35.5-27-72.2-72.1-72.2-48.1 0-75.9 47.7-87.9 75.3-12.1-27.6-39.9-75.3-87.9-75.3-45.1 0-72.1 36.7-72.1 72.2 0 8.3 1.7 16.2 4.4 23.8H256c-17.7 0-32 14.3-32 32v96h192V224h15.3l.7-.2.7.2H448v128h192v-96c0-17.7-14.3-32-32-32zm-272 0c-2.7-1.4-5.1-3-7.2-4.8-7.3-6.4-8.8-13.8-8.8-19 0-9.7 6.4-24.2 24.1-24.2 18.7 0 35.6 27.4 44.5 48H336zm199.2-4.8c-2.1 1.8-4.5 3.4-7.2 4.8h-52.6c8.8-20.3 25.8-48 44.5-48 17.7 0 24.1 14.5 24.1 24.2 0 5.2-1.5 12.6-8.8 19z"]
};
var faGlassCheers = {
  prefix: 'fas',
  iconName: 'glass-cheers',
  icon: [640, 512, [], "f79f", "M639.4 433.6c-8.4-20.4-31.8-30.1-52.2-21.6l-22.1 9.2-38.7-101.9c47.9-35 64.8-100.3 34.5-152.8L474.3 16c-8-13.9-25.1-19.7-40-13.6L320 49.8 205.7 2.4c-14.9-6.2-32-.3-40 13.6L79.1 166.5C48.9 219 65.7 284.3 113.6 319.2L74.9 421.1l-22.1-9.2c-20.4-8.5-43.7 1.2-52.2 21.6-1.7 4.1.2 8.8 4.3 10.5l162.3 67.4c4.1 1.7 8.7-.2 10.4-4.3 8.4-20.4-1.2-43.8-21.6-52.3l-22.1-9.2L173.3 342c4.4.5 8.8 1.3 13.1 1.3 51.7 0 99.4-33.1 113.4-85.3l20.2-75.4 20.2 75.4c14 52.2 61.7 85.3 113.4 85.3 4.3 0 8.7-.8 13.1-1.3L506 445.6l-22.1 9.2c-20.4 8.5-30.1 31.9-21.6 52.3 1.7 4.1 6.4 6 10.4 4.3L635.1 444c4-1.7 6-6.3 4.3-10.4zM275.9 162.1l-112.1-46.5 36.5-63.4 94.5 39.2-18.9 70.7zm88.2 0l-18.9-70.7 94.5-39.2 36.5 63.4-112.1 46.5z"]
};
var faGlassMartini = {
  prefix: 'fas',
  iconName: 'glass-martini',
  icon: [512, 512, [], "f000", "M502.05 57.6C523.3 36.34 508.25 0 478.2 0H33.8C3.75 0-11.3 36.34 9.95 57.6L224 271.64V464h-56c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h240c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40h-56V271.64L502.05 57.6z"]
};
var faGlassMartiniAlt = {
  prefix: 'fas',
  iconName: 'glass-martini-alt',
  icon: [512, 512, [], "f57b", "M502.05 57.6C523.3 36.34 508.25 0 478.2 0H33.8C3.75 0-11.3 36.34 9.95 57.6L224 271.64V464h-56c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h240c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40h-56V271.64L502.05 57.6zM443.77 48l-48 48H116.24l-48-48h375.53z"]
};
var faGlassWhiskey = {
  prefix: 'fas',
  iconName: 'glass-whiskey',
  icon: [512, 512, [], "f7a0", "M480 32H32C12.5 32-2.4 49.2.3 68.5l56 356.5c4.5 31.5 31.5 54.9 63.4 54.9h273c31.8 0 58.9-23.4 63.4-54.9l55.6-356.5C514.4 49.2 499.5 32 480 32zm-37.4 64l-30 192h-313L69.4 96h373.2z"]
};
var faGlasses = {
  prefix: 'fas',
  iconName: 'glasses',
  icon: [576, 512, [], "f530", "M574.1 280.37L528.75 98.66c-5.91-23.7-21.59-44.05-43-55.81-21.44-11.73-46.97-14.11-70.19-6.33l-15.25 5.08c-8.39 2.79-12.92 11.86-10.12 20.24l5.06 15.18c2.79 8.38 11.85 12.91 20.23 10.12l13.18-4.39c10.87-3.62 23-3.57 33.16 1.73 10.29 5.37 17.57 14.56 20.37 25.82l38.46 153.82c-22.19-6.81-49.79-12.46-81.2-12.46-34.77 0-73.98 7.02-114.85 26.74h-73.18c-40.87-19.74-80.08-26.75-114.86-26.75-31.42 0-59.02 5.65-81.21 12.46l38.46-153.83c2.79-11.25 10.09-20.45 20.38-25.81 10.16-5.3 22.28-5.35 33.15-1.73l13.17 4.39c8.38 2.79 17.44-1.74 20.23-10.12l5.06-15.18c2.8-8.38-1.73-17.45-10.12-20.24l-15.25-5.08c-23.22-7.78-48.75-5.41-70.19 6.33-21.41 11.77-37.09 32.11-43 55.8L1.9 280.37A64.218 64.218 0 0 0 0 295.86v70.25C0 429.01 51.58 480 115.2 480h37.12c60.28 0 110.37-45.94 114.88-105.37l2.93-38.63h35.75l2.93 38.63C313.31 434.06 363.4 480 423.68 480h37.12c63.62 0 115.2-50.99 115.2-113.88v-70.25c0-5.23-.64-10.43-1.9-15.5zm-370.72 89.42c-1.97 25.91-24.4 46.21-51.06 46.21H115.2C86.97 416 64 393.62 64 366.11v-37.54c18.12-6.49 43.42-12.92 72.58-12.92 23.86 0 47.26 4.33 69.93 12.92l-3.13 41.22zM512 366.12c0 27.51-22.97 49.88-51.2 49.88h-37.12c-26.67 0-49.1-20.3-51.06-46.21l-3.13-41.22c22.67-8.59 46.08-12.92 69.95-12.92 29.12 0 54.43 6.44 72.55 12.93v37.54z"]
};
var faGlobe = {
  prefix: 'fas',
  iconName: 'globe',
  icon: [496, 512, [], "f0ac", "M336.5 160C322 70.7 287.8 8 248 8s-74 62.7-88.5 152h177zM152 256c0 22.2 1.2 43.5 3.3 64h185.3c2.1-20.5 3.3-41.8 3.3-64s-1.2-43.5-3.3-64H155.3c-2.1 20.5-3.3 41.8-3.3 64zm324.7-96c-28.6-67.9-86.5-120.4-158-141.6 24.4 33.8 41.2 84.7 50 141.6h108zM177.2 18.4C105.8 39.6 47.8 92.1 19.3 160h108c8.7-56.9 25.5-107.8 49.9-141.6zM487.4 192H372.7c2.1 21 3.3 42.5 3.3 64s-1.2 43-3.3 64h114.6c5.5-20.5 8.6-41.8 8.6-64s-3.1-43.5-8.5-64zM120 256c0-21.5 1.2-43 3.3-64H8.6C3.2 212.5 0 233.8 0 256s3.2 43.5 8.6 64h114.6c-2-21-3.2-42.5-3.2-64zm39.5 96c14.5 89.3 48.7 152 88.5 152s74-62.7 88.5-152h-177zm159.3 141.6c71.4-21.2 129.4-73.7 158-141.6h-108c-8.8 56.9-25.6 107.8-50 141.6zM19.3 352c28.6 67.9 86.5 120.4 158 141.6-24.4-33.8-41.2-84.7-50-141.6h-108z"]
};
var faGlobeAfrica = {
  prefix: 'fas',
  iconName: 'globe-africa',
  icon: [496, 512, [], "f57c", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm160 215.5v6.93c0 5.87-3.32 11.24-8.57 13.86l-15.39 7.7a15.485 15.485 0 0 1-15.53-.97l-18.21-12.14a15.52 15.52 0 0 0-13.5-1.81l-2.65.88c-9.7 3.23-13.66 14.79-7.99 23.3l13.24 19.86c2.87 4.31 7.71 6.9 12.89 6.9h8.21c8.56 0 15.5 6.94 15.5 15.5v11.34c0 3.35-1.09 6.62-3.1 9.3l-18.74 24.98c-1.42 1.9-2.39 4.1-2.83 6.43l-4.3 22.83c-.62 3.29-2.29 6.29-4.76 8.56a159.608 159.608 0 0 0-25 29.16l-13.03 19.55a27.756 27.756 0 0 1-23.09 12.36c-10.51 0-20.12-5.94-24.82-15.34a78.902 78.902 0 0 1-8.33-35.29V367.5c0-8.56-6.94-15.5-15.5-15.5h-25.88c-14.49 0-28.38-5.76-38.63-16a54.659 54.659 0 0 1-16-38.63v-14.06c0-17.19 8.1-33.38 21.85-43.7l27.58-20.69a54.663 54.663 0 0 1 32.78-10.93h.89c8.48 0 16.85 1.97 24.43 5.77l14.72 7.36c3.68 1.84 7.93 2.14 11.83.84l47.31-15.77c6.33-2.11 10.6-8.03 10.6-14.7 0-8.56-6.94-15.5-15.5-15.5h-10.09c-4.11 0-8.05-1.63-10.96-4.54l-6.92-6.92a15.493 15.493 0 0 0-10.96-4.54H199.5c-8.56 0-15.5-6.94-15.5-15.5v-4.4c0-7.11 4.84-13.31 11.74-15.04l14.45-3.61c3.74-.94 7-3.23 9.14-6.44l8.08-12.11c2.87-4.31 7.71-6.9 12.89-6.9h24.21c8.56 0 15.5-6.94 15.5-15.5v-21.7C359.23 71.63 422.86 131.02 441.93 208H423.5c-8.56 0-15.5 6.94-15.5 15.5z"]
};
var faGlobeAmericas = {
  prefix: 'fas',
  iconName: 'globe-americas',
  icon: [496, 512, [], "f57d", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm82.29 357.6c-3.9 3.88-7.99 7.95-11.31 11.28-2.99 3-5.1 6.7-6.17 10.71-1.51 5.66-2.73 11.38-4.77 16.87l-17.39 46.85c-13.76 3-28 4.69-42.65 4.69v-27.38c1.69-12.62-7.64-36.26-22.63-51.25-6-6-9.37-14.14-9.37-22.63v-32.01c0-11.64-6.27-22.34-16.46-27.97-14.37-7.95-34.81-19.06-48.81-26.11-11.48-5.78-22.1-13.14-31.65-21.75l-.8-.72a114.792 114.792 0 0 1-18.06-20.74c-9.38-13.77-24.66-36.42-34.59-51.14 20.47-45.5 57.36-82.04 103.2-101.89l24.01 12.01C203.48 89.74 216 82.01 216 70.11v-11.3c7.99-1.29 16.12-2.11 24.39-2.42l28.3 28.3c6.25 6.25 6.25 16.38 0 22.63L264 112l-10.34 10.34c-3.12 3.12-3.12 8.19 0 11.31l4.69 4.69c3.12 3.12 3.12 8.19 0 11.31l-8 8a8.008 8.008 0 0 1-5.66 2.34h-8.99c-2.08 0-4.08.81-5.58 2.27l-9.92 9.65a8.008 8.008 0 0 0-1.58 9.31l15.59 31.19c2.66 5.32-1.21 11.58-7.15 11.58h-5.64c-1.93 0-3.79-.7-5.24-1.96l-9.28-8.06a16.017 16.017 0 0 0-15.55-3.1l-31.17 10.39a11.95 11.95 0 0 0-8.17 11.34c0 4.53 2.56 8.66 6.61 10.69l11.08 5.54c9.41 4.71 19.79 7.16 30.31 7.16s22.59 27.29 32 32h66.75c8.49 0 16.62 3.37 22.63 9.37l13.69 13.69a30.503 30.503 0 0 1 8.93 21.57 46.536 46.536 0 0 1-13.72 32.98zM417 274.25c-5.79-1.45-10.84-5-14.15-9.97l-17.98-26.97a23.97 23.97 0 0 1 0-26.62l19.59-29.38c2.32-3.47 5.5-6.29 9.24-8.15l12.98-6.49C440.2 193.59 448 223.87 448 256c0 8.67-.74 17.16-1.82 25.54L417 274.25z"]
};
var faGlobeAsia = {
  prefix: 'fas',
  iconName: 'globe-asia',
  icon: [496, 512, [], "f57e", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm-11.34 240.23c-2.89 4.82-8.1 7.77-13.72 7.77h-.31c-4.24 0-8.31 1.69-11.31 4.69l-5.66 5.66c-3.12 3.12-3.12 8.19 0 11.31l5.66 5.66c3 3 4.69 7.07 4.69 11.31V304c0 8.84-7.16 16-16 16h-6.11c-6.06 0-11.6-3.42-14.31-8.85l-22.62-45.23c-2.44-4.88-8.95-5.94-12.81-2.08l-19.47 19.46c-3 3-7.07 4.69-11.31 4.69H50.81C49.12 277.55 48 266.92 48 256c0-110.28 89.72-200 200-200 21.51 0 42.2 3.51 61.63 9.82l-50.16 38.53c-5.11 3.41-4.63 11.06.86 13.81l10.83 5.41c5.42 2.71 8.84 8.25 8.84 14.31V216c0 4.42-3.58 8-8 8h-3.06c-3.03 0-5.8-1.71-7.15-4.42-1.56-3.12-5.96-3.29-7.76-.3l-17.37 28.95zM408 358.43c0 4.24-1.69 8.31-4.69 11.31l-9.57 9.57c-3 3-7.07 4.69-11.31 4.69h-15.16c-4.24 0-8.31-1.69-11.31-4.69l-13.01-13.01a26.767 26.767 0 0 0-25.42-7.04l-21.27 5.32c-1.27.32-2.57.48-3.88.48h-10.34c-4.24 0-8.31-1.69-11.31-4.69l-11.91-11.91a8.008 8.008 0 0 1-2.34-5.66v-10.2c0-3.27 1.99-6.21 5.03-7.43l39.34-15.74c1.98-.79 3.86-1.82 5.59-3.05l23.71-16.89a7.978 7.978 0 0 1 4.64-1.48h12.09c3.23 0 6.15 1.94 7.39 4.93l5.35 12.85a4 4 0 0 0 3.69 2.46h3.8c1.78 0 3.35-1.18 3.84-2.88l4.2-14.47c.5-1.71 2.06-2.88 3.84-2.88h6.06c2.21 0 4 1.79 4 4v12.93c0 2.12.84 4.16 2.34 5.66l11.91 11.91c3 3 4.69 7.07 4.69 11.31v24.6z"]
};
var faGlobeEurope = {
  prefix: 'fas',
  iconName: 'globe-europe',
  icon: [496, 512, [], "f7a2", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm200 248c0 22.5-3.9 44.2-10.8 64.4h-20.3c-4.3 0-8.4-1.7-11.4-4.8l-32-32.6c-4.5-4.6-4.5-12.1.1-16.7l12.5-12.5v-8.7c0-3-1.2-5.9-3.3-8l-9.4-9.4c-2.1-2.1-5-3.3-8-3.3h-16c-6.2 0-11.3-5.1-11.3-11.3 0-3 1.2-5.9 3.3-8l9.4-9.4c2.1-2.1 5-3.3 8-3.3h32c6.2 0 11.3-5.1 11.3-11.3v-9.4c0-6.2-5.1-11.3-11.3-11.3h-36.7c-8.8 0-16 7.2-16 16v4.5c0 6.9-4.4 13-10.9 15.2l-31.6 10.5c-3.3 1.1-5.5 4.1-5.5 7.6v2.2c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8s-3.6-8-8-8H247c-3 0-5.8 1.7-7.2 4.4l-9.4 18.7c-2.7 5.4-8.2 8.8-14.3 8.8H194c-8.8 0-16-7.2-16-16V199c0-4.2 1.7-8.3 4.7-11.3l20.1-20.1c4.6-4.6 7.2-10.9 7.2-17.5 0-3.4 2.2-6.5 5.5-7.6l40-13.3c1.7-.6 3.2-1.5 4.4-2.7l26.8-26.8c2.1-2.1 3.3-5 3.3-8 0-6.2-5.1-11.3-11.3-11.3H258l-16 16v8c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8v-20c0-2.5 1.2-4.9 3.2-6.4l28.9-21.7c1.9-.1 3.8-.3 5.7-.3C358.3 56 448 145.7 448 256zM130.1 149.1c0-3 1.2-5.9 3.3-8l25.4-25.4c2.1-2.1 5-3.3 8-3.3 6.2 0 11.3 5.1 11.3 11.3v16c0 3-1.2 5.9-3.3 8l-9.4 9.4c-2.1 2.1-5 3.3-8 3.3h-16c-6.2 0-11.3-5.1-11.3-11.3zm128 306.4v-7.1c0-8.8-7.2-16-16-16h-20.2c-10.8 0-26.7-5.3-35.4-11.8l-22.2-16.7c-11.5-8.6-18.2-22.1-18.2-36.4v-23.9c0-16 8.4-30.8 22.1-39l42.9-25.7c7.1-4.2 15.2-6.5 23.4-6.5h31.2c10.9 0 21.4 3.9 29.6 10.9l43.2 37.1h18.3c8.5 0 16.6 3.4 22.6 9.4l17.3 17.3c3.4 3.4 8.1 5.3 12.9 5.3H423c-32.4 58.9-93.8 99.5-164.9 103.1z"]
};
var faGolfBall = {
  prefix: 'fas',
  iconName: 'golf-ball',
  icon: [416, 512, [], "f450", "M96 416h224c0 17.7-14.3 32-32 32h-16c-17.7 0-32 14.3-32 32v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-20c0-17.7-14.3-32-32-32h-16c-17.7 0-32-14.3-32-32zm320-208c0 74.2-39 139.2-97.5 176h-221C39 347.2 0 282.2 0 208 0 93.1 93.1 0 208 0s208 93.1 208 208zm-180.1 43.9c18.3 0 33.1-14.8 33.1-33.1 0-14.4-9.3-26.3-22.1-30.9 9.6 26.8-15.6 51.3-41.9 41.9 4.6 12.8 16.5 22.1 30.9 22.1zm49.1 46.9c0-14.4-9.3-26.3-22.1-30.9 9.6 26.8-15.6 51.3-41.9 41.9 4.6 12.8 16.5 22.1 30.9 22.1 18.3 0 33.1-14.9 33.1-33.1zm64-64c0-14.4-9.3-26.3-22.1-30.9 9.6 26.8-15.6 51.3-41.9 41.9 4.6 12.8 16.5 22.1 30.9 22.1 18.3 0 33.1-14.9 33.1-33.1z"]
};
var faGopuram = {
  prefix: 'fas',
  iconName: 'gopuram',
  icon: [512, 512, [], "f664", "M496 352h-16V240c0-8.8-7.2-16-16-16h-16v-80c0-8.8-7.2-16-16-16h-16V16c0-8.8-7.2-16-16-16s-16 7.2-16 16v16h-64V16c0-8.8-7.2-16-16-16s-16 7.2-16 16v16h-64V16c0-8.8-7.2-16-16-16s-16 7.2-16 16v16h-64V16c0-8.8-7.2-16-16-16S96 7.2 96 16v112H80c-8.8 0-16 7.2-16 16v80H48c-8.8 0-16 7.2-16 16v112H16c-8.8 0-16 7.2-16 16v128c0 8.8 7.2 16 16 16h80V352h32V224h32v-96h32v96h-32v128h-32v160h80v-80c0-8.8 7.2-16 16-16h64c8.8 0 16 7.2 16 16v80h80V352h-32V224h-32v-96h32v96h32v128h32v160h80c8.8 0 16-7.2 16-16V368c0-8.8-7.2-16-16-16zM232 176c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v48h-48zm56 176h-64v-64c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16z"]
};
var faGraduationCap = {
  prefix: 'fas',
  iconName: 'graduation-cap',
  icon: [640, 512, [], "f19d", "M622.34 153.2L343.4 67.5c-15.2-4.67-31.6-4.67-46.79 0L17.66 153.2c-23.54 7.23-23.54 38.36 0 45.59l48.63 14.94c-10.67 13.19-17.23 29.28-17.88 46.9C38.78 266.15 32 276.11 32 288c0 10.78 5.68 19.85 13.86 25.65L20.33 428.53C18.11 438.52 25.71 448 35.94 448h56.11c10.24 0 17.84-9.48 15.62-19.47L82.14 313.65C90.32 307.85 96 298.78 96 288c0-11.57-6.47-21.25-15.66-26.87.76-15.02 8.44-28.3 20.69-36.72L296.6 284.5c9.06 2.78 26.44 6.25 46.79 0l278.95-85.7c23.55-7.24 23.55-38.36 0-45.6zM352.79 315.09c-28.53 8.76-52.84 3.92-65.59 0l-145.02-44.55L128 384c0 35.35 85.96 64 192 64s192-28.65 192-64l-14.18-113.47-145.03 44.56z"]
};
var faGreaterThan = {
  prefix: 'fas',
  iconName: 'greater-than',
  icon: [384, 512, [], "f531", "M365.52 209.85L59.22 67.01c-16.06-7.49-35.15-.54-42.64 15.52L3.01 111.61c-7.49 16.06-.54 35.15 15.52 42.64L236.96 256.1 18.49 357.99C2.47 365.46-4.46 384.5 3.01 400.52l13.52 29C24 445.54 43.04 452.47 59.06 445l306.47-142.91a32.003 32.003 0 0 0 18.48-29v-34.23c-.01-12.45-7.21-23.76-18.49-29.01z"]
};
var faGreaterThanEqual = {
  prefix: 'fas',
  iconName: 'greater-than-equal',
  icon: [448, 512, [], "f532", "M55.22 107.69l175.56 68.09-175.44 68.05c-18.39 6.03-27.88 24.39-21.2 41l12.09 30.08c6.68 16.61 26.99 25.19 45.38 19.15L393.02 214.2c13.77-4.52 22.98-16.61 22.98-30.17v-15.96c0-13.56-9.21-25.65-22.98-30.17L91.3 17.92c-18.29-6-38.51 2.53-45.15 19.06L34.12 66.9c-6.64 16.53 2.81 34.79 21.1 40.79zM424 400H24c-13.25 0-24 10.74-24 24v48c0 13.25 10.75 24 24 24h400c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24z"]
};
var faGrimace = {
  prefix: 'fas',
  iconName: 'grimace',
  icon: [496, 512, [], "f57f", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM144 400h-8c-17.7 0-32-14.3-32-32v-8h40v40zm0-56h-40v-8c0-17.7 14.3-32 32-32h8v40zm-8-136c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm72 192h-48v-40h48v40zm0-56h-48v-40h48v40zm64 56h-48v-40h48v40zm0-56h-48v-40h48v40zm64 56h-48v-40h48v40zm0-56h-48v-40h48v40zm-8-104c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm64 128c0 17.7-14.3 32-32 32h-8v-40h40v8zm0-24h-40v-40h8c17.7 0 32 14.3 32 32v8z"]
};
var faGrin = {
  prefix: 'fas',
  iconName: 'grin',
  icon: [496, 512, [], "f580", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm80 256c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.3-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"]
};
var faGrinAlt = {
  prefix: 'fas',
  iconName: 'grin-alt',
  icon: [496, 512, [], "f581", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm63.7 128.7c7.6-11.4 24.7-11.7 32.7 0 12.4 18.4 15.1 36.9 15.7 55.3-.5 18.4-3.3 36.9-15.7 55.3-7.6 11.4-24.7 11.7-32.7 0-12.4-18.4-15.1-36.9-15.7-55.3.5-18.4 3.3-36.9 15.7-55.3zm-160 0c7.6-11.4 24.7-11.7 32.7 0 12.4 18.4 15.1 36.9 15.7 55.3-.5 18.4-3.3 36.9-15.7 55.3-7.6 11.4-24.7 11.7-32.7 0-12.4-18.4-15.1-36.9-15.7-55.3.5-18.4 3.3-36.9 15.7-55.3zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"]
};
var faGrinBeam = {
  prefix: 'fas',
  iconName: 'grin-beam',
  icon: [496, 512, [], "f582", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 144c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.3-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm-160 0c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm80 280c-60.6 0-134.5-38.3-143.8-93.3-2-11.9 9.4-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"]
};
var faGrinBeamSweat = {
  prefix: 'fas',
  iconName: 'grin-beam-sweat',
  icon: [504, 512, [], "f583", "M456 128c26.5 0 48-21 48-47 0-20-28.5-60.4-41.6-77.8-3.2-4.3-9.6-4.3-12.8 0C436.5 20.6 408 61 408 81c0 26 21.5 47 48 47zm0 32c-44.1 0-80-35.4-80-79 0-4.4.3-14.2 8.1-32.2C345 23.1 298.3 8 248 8 111 8 0 119 0 256s111 248 248 248 248-111 248-248c0-35.1-7.4-68.4-20.5-98.6-6.3 1.5-12.7 2.6-19.5 2.6zm-128-8c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm-160 0c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm80 280c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.2 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"]
};
var faGrinHearts = {
  prefix: 'fas',
  iconName: 'grin-hearts',
  icon: [496, 512, [], "f584", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM90.4 183.6c6.7-17.6 26.7-26.7 44.9-21.9l7.1 1.9 2-7.1c5-18.1 22.8-30.9 41.5-27.9 21.4 3.4 34.4 24.2 28.8 44.5L195.3 243c-1.2 4.5-5.9 7.2-10.5 6l-70.2-18.2c-20.4-5.4-31.9-27-24.2-47.2zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.2-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.6 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3zm133.4-201.3l-70.2 18.2c-4.5 1.2-9.2-1.5-10.5-6L281.3 173c-5.6-20.3 7.4-41.1 28.8-44.5 18.6-3 36.4 9.8 41.5 27.9l2 7.1 7.1-1.9c18.2-4.7 38.2 4.3 44.9 21.9 7.7 20.3-3.8 41.9-24.2 47.2z"]
};
var faGrinSquint = {
  prefix: 'fas',
  iconName: 'grin-squint',
  icon: [496, 512, [], "f585", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm33.8 189.7l80-48c11.6-6.9 24 7.7 15.4 18L343.6 208l33.6 40.3c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.7-4.7-7.7-15.9 0-20.6zm-163-30c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.8 4.7 7.8 15.9 0 20.6l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.9 9.4-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.2 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"]
};
var faGrinSquintTears = {
  prefix: 'fas',
  iconName: 'grin-squint-tears',
  icon: [512, 512, [], "f586", "M409.6 111.9c22.6-3.2 73.5-12 88.3-26.8 19.2-19.2 18.9-50.6-.7-70.2S446-5 426.9 14.2c-14.8 14.8-23.5 65.7-26.8 88.3-.8 5.5 3.9 10.2 9.5 9.4zM102.4 400.1c-22.6 3.2-73.5 12-88.3 26.8-19.1 19.1-18.8 50.6.8 70.2s51 19.9 70.2.7c14.8-14.8 23.5-65.7 26.8-88.3.8-5.5-3.9-10.2-9.5-9.4zm311.7-256.5c-33 3.9-48.6-25.1-45.7-45.7 3.4-24 7.4-42.1 11.5-56.5C285.1-13.4 161.8-.5 80.6 80.6-.5 161.7-13.4 285 41.4 379.9c14.4-4.1 32.4-8 56.5-11.5 33.2-3.9 48.6 25.2 45.7 45.7-3.4 24-7.4 42.1-11.5 56.5 94.8 54.8 218.1 41.9 299.3-39.2s94-204.4 39.2-299.3c-14.4 4.1-32.5 8-56.5 11.5zM255.7 106c3.3-13.2 22.4-11.5 23.6 1.8l4.8 52.3 52.3 4.8c13.4 1.2 14.9 20.3 1.8 23.6l-90.5 22.6c-8.9 2.2-16.7-5.9-14.5-14.5l22.5-90.6zm-90.9 230.3L160 284l-52.3-4.8c-13.4-1.2-14.9-20.3-1.8-23.6l90.5-22.6c8.8-2.2 16.7 5.8 14.5 14.5L188.3 338c-3.1 13.2-22.2 11.7-23.5-1.7zm215.7 44.2c-29.3 29.3-75.7 50.4-116.7 50.4-18.9 0-36.6-4.5-51-14.7-9.8-6.9-8.7-21.8 2-27.2 28.3-14.6 63.9-42.4 97.8-76.3s61.7-69.6 76.3-97.8c5.4-10.5 20.2-11.9 27.3-2 32.3 45.3 7.1 124.7-35.7 167.6z"]
};
var faGrinStars = {
  prefix: 'fas',
  iconName: 'grin-stars',
  icon: [496, 512, [], "f587", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM94.6 168.9l34.9-5 15.5-31.6c2.9-5.8 11-5.8 13.9 0l15.5 31.6 34.9 5c6.2 1 8.9 8.6 4.3 13.2l-25.4 24.6 6 34.9c1 6.2-5.3 11-11 7.9L152 233.3l-31.3 16.3c-5.7 3.1-12-1.7-11-7.9l6-34.9-25.4-24.6c-4.6-4.7-1.9-12.3 4.3-13.3zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3zm157.7-249.9l-25.4 24.6 6 34.9c1 6.2-5.3 11-11 7.9L344 233.3l-31.3 16.3c-5.7 3.1-12-1.7-11-7.9l6-34.9-25.4-24.6c-4.5-4.6-1.9-12.2 4.3-13.2l34.9-5 15.5-31.6c2.9-5.8 11-5.8 13.9 0l15.5 31.6 34.9 5c6.3.9 9 8.5 4.4 13.1z"]
};
var faGrinTears = {
  prefix: 'fas',
  iconName: 'grin-tears',
  icon: [640, 512, [], "f588", "M102.4 256.1c-22.6 3.2-73.5 12-88.3 26.8-19.1 19.1-18.8 50.6.8 70.2s51 19.9 70.2.7c14.8-14.8 23.5-65.7 26.8-88.3.8-5.5-3.9-10.2-9.5-9.4zm523.4 26.8c-14.8-14.8-65.7-23.5-88.3-26.8-5.5-.8-10.3 3.9-9.5 9.5 3.2 22.6 12 73.5 26.8 88.3 19.2 19.2 50.6 18.9 70.2-.7s20-51.2.8-70.3zm-129.4-12.8c-3.8-26.6 19.1-49.5 45.7-45.7 8.9 1.3 16.8 2.7 24.3 4.1C552.7 104.5 447.7 8 320 8S87.3 104.5 73.6 228.5c7.5-1.4 15.4-2.8 24.3-4.1 33.2-3.9 48.6 25.3 45.7 45.7-11.8 82.3-29.9 100.4-35.8 106.4-.9.9-2 1.6-3 2.5 42.7 74.6 123 125 215.2 125s172.5-50.4 215.2-125.1c-1-.9-2.1-1.5-3-2.5-5.9-5.9-24-24-35.8-106.3zM400 152c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm-160 0c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm80 280c-60.6 0-134.5-38.3-143.8-93.3-2-11.7 9.2-21.6 20.7-17.9C227.1 330.5 272 336 320 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"]
};
var faGrinTongue = {
  prefix: 'fas',
  iconName: 'grin-tongue',
  icon: [496, 512, [], "f589", "M248 8C111 8 0 119 0 256c0 106.3 67 196.7 161 232-5.6-12.2-9-25.7-9-40v-45.5c-24.7-16.2-43.5-38.1-47.8-63.8-2-11.8 9.3-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.6 22.6 6.1 20.7 17.9-4.3 25.7-23.1 47.6-47.8 63.8V448c0 14.3-3.4 27.8-9 40 94-35.3 161-125.7 161-232C496 119 385 8 248 8zm-80 232c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm160 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm-34.9 134.6c-14.4-6.5-31.1 2.2-34.6 17.6l-1.8 7.8c-2.1 9.2-15.2 9.2-17.3 0l-1.8-7.8c-3.5-15.4-20.2-24.1-34.6-17.6-.9.4.3-.2-18.9 9.4v63c0 35.2 28 64.5 63.1 64.9 35.7.5 64.9-28.4 64.9-64v-64c-19.5-9.6-18.2-8.9-19-9.3z"]
};
var faGrinTongueSquint = {
  prefix: 'fas',
  iconName: 'grin-tongue-squint',
  icon: [496, 512, [], "f58a", "M293.1 374.6c-14.4-6.5-31.1 2.2-34.6 17.6l-1.8 7.8c-2.1 9.2-15.2 9.2-17.3 0l-1.8-7.8c-3.5-15.4-20.2-24.1-34.6-17.6-.9.4.3-.2-18.9 9.4v63c0 35.2 28 64.5 63.1 64.9 35.7.5 64.9-28.4 64.9-64v-64c-19.5-9.6-18.2-8.9-19-9.3zM248 8C111 8 0 119 0 256c0 106.3 67 196.7 161 232-5.6-12.2-9-25.7-9-40v-45.5c-24.7-16.2-43.5-38.1-47.8-63.8-2-11.8 9.2-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-4.3 25.7-23.1 47.6-47.8 63.8V448c0 14.3-3.4 27.8-9 40 94-35.3 161-125.7 161-232C496 119 385 8 248 8zm-33.8 210.3l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.7 4.7 7.7 15.9 0 20.6zm163 30c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.8-4.7-7.8-15.9 0-20.6l80-48c11.7-6.9 23.9 7.7 15.4 18L343.6 208l33.6 40.3z"]
};
var faGrinTongueWink = {
  prefix: 'fas',
  iconName: 'grin-tongue-wink',
  icon: [496, 512, [], "f58b", "M344 184c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zM248 8C111 8 0 119 0 256c0 106.3 67 196.7 161 232-5.6-12.2-9-25.7-9-40v-45.5c-24.7-16.2-43.5-38.1-47.8-63.8-2-11.8 9.3-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.1 20.7 17.9-4.3 25.7-23.1 47.6-47.8 63.8V448c0 14.3-3.4 27.8-9 40 94-35.3 161-125.7 161-232C496 119 385 8 248 8zm-56 225l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L112 233c-8.5 7.4-21.6.3-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S208 197 212 222.2c1.6 11.1-11.6 18.2-20 10.8zm152 39c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm-50.9 102.6c-14.4-6.5-31.1 2.2-34.6 17.6l-1.8 7.8c-2.1 9.2-15.2 9.2-17.3 0l-1.8-7.8c-3.5-15.4-20.2-24.1-34.6-17.6-.9.4.3-.2-18.9 9.4v63c0 35.2 28 64.5 63.1 64.9 35.7.5 64.9-28.4 64.9-64v-64c-19.5-9.6-18.2-8.9-19-9.3z"]
};
var faGrinWink = {
  prefix: 'fas',
  iconName: 'grin-wink',
  icon: [496, 512, [], "f58c", "M0 256c0 137 111 248 248 248s248-111 248-248S385 8 248 8 0 119 0 256zm200-48c0 17.7-14.3 32-32 32s-32-14.3-32-32 14.3-32 32-32 32 14.3 32 32zm168 25l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L288 233c-8.3 7.4-21.6.4-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S384 197 388 222.2c1.6 11-11.5 18.2-20 10.8zm-243.1 87.8C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.3-3.7 22.6 6 20.7 17.9-9.2 55-83.2 93.3-143.8 93.3s-134.5-38.3-143.8-93.3c-2-11.9 9.3-21.6 20.7-17.9z"]
};
var faGripHorizontal = {
  prefix: 'fas',
  iconName: 'grip-horizontal',
  icon: [448, 512, [], "f58d", "M96 288H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zM96 96H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z"]
};
var faGripLines = {
  prefix: 'fas',
  iconName: 'grip-lines',
  icon: [512, 512, [], "f7a4", "M496 288H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-128H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"]
};
var faGripLinesVertical = {
  prefix: 'fas',
  iconName: 'grip-lines-vertical',
  icon: [256, 512, [], "f7a5", "M96 496V16c0-8.8-7.2-16-16-16H48c-8.8 0-16 7.2-16 16v480c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16zm128 0V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v480c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16z"]
};
var faGripVertical = {
  prefix: 'fas',
  iconName: 'grip-vertical',
  icon: [320, 512, [], "f58e", "M96 32H32C14.33 32 0 46.33 0 64v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zM288 32h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z"]
};
var faGuitar = {
  prefix: 'fas',
  iconName: 'guitar',
  icon: [512, 512, [], "f7a6", "M502.63 39L473 9.37a32 32 0 0 0-45.26 0L381.46 55.7a35.14 35.14 0 0 0-8.53 13.79L360.77 106l-76.26 76.26c-12.16-8.76-25.5-15.74-40.1-19.14-33.45-7.78-67-.88-89.88 22a82.45 82.45 0 0 0-20.24 33.47c-6 18.56-23.21 32.69-42.15 34.46-23.7 2.27-45.73 11.45-62.61 28.44C-16.11 327-7.9 409 47.58 464.45S185 528 230.56 482.52c17-16.88 26.16-38.9 28.45-62.71 1.76-18.85 15.89-36.13 34.43-42.14a82.6 82.6 0 0 0 33.48-20.25c22.87-22.88 29.74-56.36 22-89.75-3.39-14.64-10.37-28-19.16-40.2L406 151.23l36.48-12.16a35.14 35.14 0 0 0 13.79-8.53l46.33-46.32a32 32 0 0 0 .03-45.22zM208 352a48 48 0 1 1 48-48 48 48 0 0 1-48 48z"]
};
var faHSquare = {
  prefix: 'fas',
  iconName: 'h-square',
  icon: [448, 512, [], "f0fd", "M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zm-112 48h-32c-8.837 0-16 7.163-16 16v80H160v-80c0-8.837-7.163-16-16-16h-32c-8.837 0-16 7.163-16 16v224c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16v-80h128v80c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16V144c0-8.837-7.163-16-16-16z"]
};
var faHamburger = {
  prefix: 'fas',
  iconName: 'hamburger',
  icon: [512, 512, [], "f805", "M464 256H48a48 48 0 0 0 0 96h416a48 48 0 0 0 0-96zm16 128H32a16 16 0 0 0-16 16v16a64 64 0 0 0 64 64h352a64 64 0 0 0 64-64v-16a16 16 0 0 0-16-16zM58.64 224h394.72c34.57 0 54.62-43.9 34.82-75.88C448 83.2 359.55 32.1 256 32c-103.54.1-192 51.2-232.18 116.11C4 180.09 24.07 224 58.64 224zM384 112a16 16 0 1 1-16 16 16 16 0 0 1 16-16zM256 80a16 16 0 1 1-16 16 16 16 0 0 1 16-16zm-128 32a16 16 0 1 1-16 16 16 16 0 0 1 16-16z"]
};
var faHammer = {
  prefix: 'fas',
  iconName: 'hammer',
  icon: [576, 512, [], "f6e3", "M571.31 193.94l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0l-11.31 11.31-28.9-28.9c5.63-21.31.36-44.9-16.35-61.61l-45.25-45.25c-62.48-62.48-163.79-62.48-226.28 0l90.51 45.25v18.75c0 16.97 6.74 33.25 18.75 45.25l49.14 49.14c16.71 16.71 40.3 21.98 61.61 16.35l28.9 28.9-11.31 11.31c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l90.51-90.51c6.23-6.24 6.23-16.37-.02-22.62zm-286.72-15.2c-3.7-3.7-6.84-7.79-9.85-11.95L19.64 404.96c-25.57 23.88-26.26 64.19-1.53 88.93s65.05 24.05 88.93-1.53l238.13-255.07c-3.96-2.91-7.9-5.87-11.44-9.41l-49.14-49.14z"]
};
var faHamsa = {
  prefix: 'fas',
  iconName: 'hamsa',
  icon: [512, 512, [], "f665", "M509.34 307.25C504.28 295.56 492.75 288 480 288h-64V80c0-22-18-40-40-40s-40 18-40 40v134c0 5.52-4.48 10-10 10h-20c-5.52 0-10-4.48-10-10V40c0-22-18-40-40-40s-40 18-40 40v174c0 5.52-4.48 10-10 10h-20c-5.52 0-10-4.48-10-10V80c0-22-18-40-40-40S96 58 96 80v208H32c-12.75 0-24.28 7.56-29.34 19.25a31.966 31.966 0 0 0 5.94 34.58l102.69 110.03C146.97 490.08 199.69 512 256 512s109.03-21.92 144.72-60.14L503.4 341.83a31.966 31.966 0 0 0 5.94-34.58zM256 416c-53.02 0-96-64-96-64s42.98-64 96-64 96 64 96 64-42.98 64-96 64zm0-96c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"]
};
var faHandHolding = {
  prefix: 'fas',
  iconName: 'hand-holding',
  icon: [576, 512, [], "f4bd", "M565.3 328.1c-11.8-10.7-30.2-10-42.6 0L430.3 402c-11.3 9.1-25.4 14-40 14H272c-8.8 0-16-7.2-16-16s7.2-16 16-16h78.3c15.9 0 30.7-10.9 33.3-26.6 3.3-20-12.1-37.4-31.6-37.4H192c-27 0-53.1 9.3-74.1 26.3L71.4 384H16c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16h356.8c14.5 0 28.6-4.9 40-14L564 377c15.2-12.1 16.4-35.3 1.3-48.9z"]
};
var faHandHoldingHeart = {
  prefix: 'fas',
  iconName: 'hand-holding-heart',
  icon: [576, 512, [], "f4be", "M275.3 250.5c7 7.4 18.4 7.4 25.5 0l108.9-114.2c31.6-33.2 29.8-88.2-5.6-118.8-30.8-26.7-76.7-21.9-104.9 7.7L288 36.9l-11.1-11.6C248.7-4.4 202.8-9.2 172 17.5c-35.3 30.6-37.2 85.6-5.6 118.8l108.9 114.2zm290 77.6c-11.8-10.7-30.2-10-42.6 0L430.3 402c-11.3 9.1-25.4 14-40 14H272c-8.8 0-16-7.2-16-16s7.2-16 16-16h78.3c15.9 0 30.7-10.9 33.3-26.6 3.3-20-12.1-37.4-31.6-37.4H192c-27 0-53.1 9.3-74.1 26.3L71.4 384H16c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16h356.8c14.5 0 28.6-4.9 40-14L564 377c15.2-12.1 16.4-35.3 1.3-48.9z"]
};
var faHandHoldingMedical = {
  prefix: 'fas',
  iconName: 'hand-holding-medical',
  icon: [576, 512, [], "e05c", "M159.88,175.82h64v64a16,16,0,0,0,16,16h64a16,16,0,0,0,16-16v-64h64a16,16,0,0,0,16-16v-64a16,16,0,0,0-16-16h-64v-64a16,16,0,0,0-16-16h-64a16,16,0,0,0-16,16v64h-64a16,16,0,0,0-16,16v64A16,16,0,0,0,159.88,175.82ZM568.07,336.13a39.91,39.91,0,0,0-55.93-8.47L392.47,415.84H271.86a16,16,0,0,1,0-32H350.1c16,0,30.75-10.87,33.37-26.61a32.06,32.06,0,0,0-31.62-37.38h-160a117.7,117.7,0,0,0-74.12,26.25l-46.5,37.74H15.87a16.11,16.11,0,0,0-16,16v96a16.11,16.11,0,0,0,16,16h347a104.8,104.8,0,0,0,61.7-20.27L559.6,392A40,40,0,0,0,568.07,336.13Z"]
};
var faHandHoldingUsd = {
  prefix: 'fas',
  iconName: 'hand-holding-usd',
  icon: [576, 512, [], "f4c0", "M271.06,144.3l54.27,14.3a8.59,8.59,0,0,1,6.63,8.1c0,4.6-4.09,8.4-9.12,8.4h-35.6a30,30,0,0,1-11.19-2.2c-5.24-2.2-11.28-1.7-15.3,2l-19,17.5a11.68,11.68,0,0,0-2.25,2.66,11.42,11.42,0,0,0,3.88,15.74,83.77,83.77,0,0,0,34.51,11.5V240c0,8.8,7.83,16,17.37,16h17.37c9.55,0,17.38-7.2,17.38-16V222.4c32.93-3.6,57.84-31,53.5-63-3.15-23-22.46-41.3-46.56-47.7L282.68,97.4a8.59,8.59,0,0,1-6.63-8.1c0-4.6,4.09-8.4,9.12-8.4h35.6A30,30,0,0,1,332,83.1c5.23,2.2,11.28,1.7,15.3-2l19-17.5A11.31,11.31,0,0,0,368.47,61a11.43,11.43,0,0,0-3.84-15.78,83.82,83.82,0,0,0-34.52-11.5V16c0-8.8-7.82-16-17.37-16H295.37C285.82,0,278,7.2,278,16V33.6c-32.89,3.6-57.85,31-53.51,63C227.63,119.6,247,137.9,271.06,144.3ZM565.27,328.1c-11.8-10.7-30.2-10-42.6,0L430.27,402a63.64,63.64,0,0,1-40,14H272a16,16,0,0,1,0-32h78.29c15.9,0,30.71-10.9,33.25-26.6a31.2,31.2,0,0,0,.46-5.46A32,32,0,0,0,352,320H192a117.66,117.66,0,0,0-74.1,26.29L71.4,384H16A16,16,0,0,0,0,400v96a16,16,0,0,0,16,16H372.77a64,64,0,0,0,40-14L564,377a32,32,0,0,0,1.28-48.9Z"]
};
var faHandHoldingWater = {
  prefix: 'fas',
  iconName: 'hand-holding-water',
  icon: [576, 512, [], "f4c1", "M288 256c53 0 96-42.1 96-94 0-40-57.1-120.7-83.2-155.6-6.4-8.5-19.2-8.5-25.6 0C249.1 41.3 192 122 192 162c0 51.9 43 94 96 94zm277.3 72.1c-11.8-10.7-30.2-10-42.6 0L430.3 402c-11.3 9.1-25.4 14-40 14H272c-8.8 0-16-7.2-16-16s7.2-16 16-16h78.3c15.9 0 30.7-10.9 33.3-26.6 3.3-20-12.1-37.4-31.6-37.4H192c-27 0-53.1 9.3-74.1 26.3L71.4 384H16c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16h356.8c14.5 0 28.6-4.9 40-14L564 377c15.2-12.1 16.4-35.3 1.3-48.9z"]
};
var faHandLizard = {
  prefix: 'fas',
  iconName: 'hand-lizard',
  icon: [576, 512, [], "f258", "M384 480h192V363.778a95.998 95.998 0 0 0-14.833-51.263L398.127 54.368A48 48 0 0 0 357.544 32H24C10.745 32 0 42.745 0 56v16c0 30.928 25.072 56 56 56h229.981c12.844 0 21.556 13.067 16.615 24.923l-21.41 51.385A32 32 0 0 1 251.648 224H128c-35.346 0-64 28.654-64 64v8c0 13.255 10.745 24 24 24h147.406a47.995 47.995 0 0 1 25.692 7.455l111.748 70.811A24.001 24.001 0 0 1 384 418.539V480z"]
};
var faHandMiddleFinger = {
  prefix: 'fas',
  iconName: 'hand-middle-finger',
  icon: [512, 512, [], "f806", "M479.93 317.12a37.33 37.33 0 0 0-28.28-36.19L416 272v-49.59c0-11.44-9.69-21.29-23.15-23.54l-38.4-6.4C336.63 189.5 320 200.86 320 216v32a8 8 0 0 1-16 0V50c0-26.28-20.25-49.2-46.52-50A48 48 0 0 0 208 48v200a8 8 0 0 1-16 0v-32c0-15.15-16.63-26.51-34.45-23.54l-30.68 5.12c-18 3-30.87 16.12-30.87 31.38V376a8 8 0 0 1-16 0v-76l-27.36 15A37.34 37.34 0 0 0 32 348.4v73.47a37.31 37.31 0 0 0 10.93 26.39l30.93 30.93A112 112 0 0 0 153.05 512h215A112 112 0 0 0 480 400z"]
};
var faHandPaper = {
  prefix: 'fas',
  iconName: 'hand-paper',
  icon: [448, 512, [], "f256", "M408.781 128.007C386.356 127.578 368 146.36 368 168.79V256h-8V79.79c0-22.43-18.356-41.212-40.781-40.783C297.488 39.423 280 57.169 280 79v177h-8V40.79C272 18.36 253.644-.422 231.219.007 209.488.423 192 18.169 192 40v216h-8V80.79c0-22.43-18.356-41.212-40.781-40.783C121.488 40.423 104 58.169 104 80v235.992l-31.648-43.519c-12.993-17.866-38.009-21.817-55.877-8.823-17.865 12.994-21.815 38.01-8.822 55.877l125.601 172.705A48 48 0 0 0 172.073 512h197.59c22.274 0 41.622-15.324 46.724-37.006l26.508-112.66a192.011 192.011 0 0 0 5.104-43.975V168c.001-21.831-17.487-39.577-39.218-39.993z"]
};
var faHandPeace = {
  prefix: 'fas',
  iconName: 'hand-peace',
  icon: [448, 512, [], "f25b", "M408 216c-22.092 0-40 17.909-40 40h-8v-32c0-22.091-17.908-40-40-40s-40 17.909-40 40v32h-8V48c0-26.51-21.49-48-48-48s-48 21.49-48 48v208h-13.572L92.688 78.449C82.994 53.774 55.134 41.63 30.461 51.324 5.787 61.017-6.356 88.877 3.337 113.551l74.765 190.342-31.09 24.872c-15.381 12.306-19.515 33.978-9.741 51.081l64 112A39.998 39.998 0 0 0 136 512h240c18.562 0 34.686-12.77 38.937-30.838l32-136A39.97 39.97 0 0 0 448 336v-80c0-22.091-17.908-40-40-40z"]
};
var faHandPointDown = {
  prefix: 'fas',
  iconName: 'hand-point-down',
  icon: [384, 512, [], "f0a7", "M91.826 467.2V317.966c-8.248 5.841-16.558 10.57-24.918 14.153C35.098 345.752-.014 322.222 0 288c.008-18.616 10.897-32.203 29.092-40 28.286-12.122 64.329-78.648 77.323-107.534 7.956-17.857 25.479-28.453 43.845-28.464l.001-.002h171.526c11.812 0 21.897 8.596 23.703 20.269 7.25 46.837 38.483 61.76 38.315 123.731-.007 2.724.195 13.254.195 16 0 50.654-22.122 81.574-71.263 72.6-9.297 18.597-39.486 30.738-62.315 16.45-21.177 24.645-53.896 22.639-70.944 6.299V467.2c0 24.15-20.201 44.8-43.826 44.8-23.283 0-43.826-21.35-43.826-44.8zM112 72V24c0-13.255 10.745-24 24-24h192c13.255 0 24 10.745 24 24v48c0 13.255-10.745 24-24 24H136c-13.255 0-24-10.745-24-24zm212-24c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z"]
};
var faHandPointLeft = {
  prefix: 'fas',
  iconName: 'hand-point-left',
  icon: [512, 512, [], "f0a5", "M44.8 155.826h149.234c-5.841-8.248-10.57-16.558-14.153-24.918C166.248 99.098 189.778 63.986 224 64c18.616.008 32.203 10.897 40 29.092 12.122 28.286 78.648 64.329 107.534 77.323 17.857 7.956 28.453 25.479 28.464 43.845l.002.001v171.526c0 11.812-8.596 21.897-20.269 23.703-46.837 7.25-61.76 38.483-123.731 38.315-2.724-.007-13.254.195-16 .195-50.654 0-81.574-22.122-72.6-71.263-18.597-9.297-30.738-39.486-16.45-62.315-24.645-21.177-22.639-53.896-6.299-70.944H44.8c-24.15 0-44.8-20.201-44.8-43.826 0-23.283 21.35-43.826 44.8-43.826zM440 176h48c13.255 0 24 10.745 24 24v192c0 13.255-10.745 24-24 24h-48c-13.255 0-24-10.745-24-24V200c0-13.255 10.745-24 24-24zm24 212c11.046 0 20-8.954 20-20s-8.954-20-20-20-20 8.954-20 20 8.954 20 20 20z"]
};
var faHandPointRight = {
  prefix: 'fas',
  iconName: 'hand-point-right',
  icon: [512, 512, [], "f0a4", "M512 199.652c0 23.625-20.65 43.826-44.8 43.826h-99.851c16.34 17.048 18.346 49.766-6.299 70.944 14.288 22.829 2.147 53.017-16.45 62.315C353.574 425.878 322.654 448 272 448c-2.746 0-13.276-.203-16-.195-61.971.168-76.894-31.065-123.731-38.315C120.596 407.683 112 397.599 112 385.786V214.261l.002-.001c.011-18.366 10.607-35.889 28.464-43.845 28.886-12.994 95.413-49.038 107.534-77.323 7.797-18.194 21.384-29.084 40-29.092 34.222-.014 57.752 35.098 44.119 66.908-3.583 8.359-8.312 16.67-14.153 24.918H467.2c23.45 0 44.8 20.543 44.8 43.826zM96 200v192c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V200c0-13.255 10.745-24 24-24h48c13.255 0 24 10.745 24 24zM68 368c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z"]
};
var faHandPointUp = {
  prefix: 'fas',
  iconName: 'hand-point-up',
  icon: [384, 512, [], "f0a6", "M135.652 0c23.625 0 43.826 20.65 43.826 44.8v99.851c17.048-16.34 49.766-18.346 70.944 6.299 22.829-14.288 53.017-2.147 62.315 16.45C361.878 158.426 384 189.346 384 240c0 2.746-.203 13.276-.195 16 .168 61.971-31.065 76.894-38.315 123.731C343.683 391.404 333.599 400 321.786 400H150.261l-.001-.002c-18.366-.011-35.889-10.607-43.845-28.464C93.421 342.648 57.377 276.122 29.092 264 10.897 256.203.008 242.616 0 224c-.014-34.222 35.098-57.752 66.908-44.119 8.359 3.583 16.67 8.312 24.918 14.153V44.8c0-23.45 20.543-44.8 43.826-44.8zM136 416h192c13.255 0 24 10.745 24 24v48c0 13.255-10.745 24-24 24H136c-13.255 0-24-10.745-24-24v-48c0-13.255 10.745-24 24-24zm168 28c-11.046 0-20 8.954-20 20s8.954 20 20 20 20-8.954 20-20-8.954-20-20-20z"]
};
var faHandPointer = {
  prefix: 'fas',
  iconName: 'hand-pointer',
  icon: [448, 512, [], "f25a", "M448 240v96c0 3.084-.356 6.159-1.063 9.162l-32 136C410.686 499.23 394.562 512 376 512H168a40.004 40.004 0 0 1-32.35-16.473l-127.997-176c-12.993-17.866-9.043-42.883 8.822-55.876 17.867-12.994 42.884-9.043 55.877 8.823L104 315.992V40c0-22.091 17.908-40 40-40s40 17.909 40 40v200h8v-40c0-22.091 17.908-40 40-40s40 17.909 40 40v40h8v-24c0-22.091 17.908-40 40-40s40 17.909 40 40v24h8c0-22.091 17.908-40 40-40s40 17.909 40 40zm-256 80h-8v96h8v-96zm88 0h-8v96h8v-96zm88 0h-8v96h8v-96z"]
};
var faHandRock = {
  prefix: 'fas',
  iconName: 'hand-rock',
  icon: [512, 512, [], "f255", "M464.8 80c-26.9-.4-48.8 21.2-48.8 48h-8V96.8c0-26.3-20.9-48.3-47.2-48.8-26.9-.4-48.8 21.2-48.8 48v32h-8V80.8c0-26.3-20.9-48.3-47.2-48.8-26.9-.4-48.8 21.2-48.8 48v48h-8V96.8c0-26.3-20.9-48.3-47.2-48.8-26.9-.4-48.8 21.2-48.8 48v136l-8-7.1v-48.1c0-26.3-20.9-48.3-47.2-48.8C21.9 127.6 0 149.2 0 176v66.4c0 27.4 11.7 53.5 32.2 71.8l111.7 99.3c10.2 9.1 16.1 22.2 16.1 35.9v6.7c0 13.3 10.7 24 24 24h240c13.3 0 24-10.7 24-24v-2.9c0-12.8 2.6-25.5 7.5-37.3l49-116.3c5-11.8 7.5-24.5 7.5-37.3V128.8c0-26.3-20.9-48.4-47.2-48.8z"]
};
var faHandScissors = {
  prefix: 'fas',
  iconName: 'hand-scissors',
  icon: [512, 512, [], "f257", "M216 440c0-22.092 17.909-40 40-40v-8h-32c-22.091 0-40-17.908-40-40s17.909-40 40-40h32v-8H48c-26.51 0-48-21.49-48-48s21.49-48 48-48h208v-13.572l-177.551-69.74c-24.674-9.694-36.818-37.555-27.125-62.228 9.693-24.674 37.554-36.817 62.228-27.124l190.342 74.765 24.872-31.09c12.306-15.381 33.978-19.515 51.081-9.741l112 64A40.002 40.002 0 0 1 512 168v240c0 18.562-12.77 34.686-30.838 38.937l-136 32A39.982 39.982 0 0 1 336 480h-80c-22.091 0-40-17.908-40-40z"]
};
var faHandSparkles = {
  prefix: 'fas',
  iconName: 'hand-sparkles',
  icon: [640, 512, [], "e05d", "M106.66,170.64l.09,0,49.55-20.65a7.32,7.32,0,0,0,3.68-6h0a7.29,7.29,0,0,0-3.68-6l-49.57-20.67-.07,0L86,67.68a6.66,6.66,0,0,0-11.92,0l-20.7,49.63-.05,0L3.7,138A7.29,7.29,0,0,0,0,144H0a7.32,7.32,0,0,0,3.68,6L53.27,170.6l.07,0L74,220.26a6.65,6.65,0,0,0,11.92,0l20.69-49.62ZM471.38,467.41l-1-.42-1-.5a38.67,38.67,0,0,1,0-69.14l1-.49,1-.43,37.49-15.63,15.63-37.48.41-1,.47-.95c3.85-7.74,10.58-13.63,18.35-17.34,0-1.33.25-2.69.27-4V144a32,32,0,0,0-64,0v72a8,8,0,0,1-8,8H456a8,8,0,0,1-8-8V64a32,32,0,0,0-64,0V216a8,8,0,0,1-8,8H360a8,8,0,0,1-8-8V32a32,32,0,0,0-64,0V216a8,8,0,0,1-8,8H264a8,8,0,0,1-8-8V64a32,32,0,0,0-64,0v241l-23.59-32.49a40,40,0,0,0-64.71,47.09L229.3,492.21A48.07,48.07,0,0,0,268.09,512H465.7c19.24,0,35.65-11.73,43.24-28.79l-.07-.17ZM349.79,339.52,320,351.93l-12.42,29.78a4,4,0,0,1-7.15,0L288,351.93l-29.79-12.41a4,4,0,0,1,0-7.16L288,319.94l12.42-29.78a4,4,0,0,1,7.15,0L320,319.94l29.79,12.42a4,4,0,0,1,0,7.16ZM640,431.91a7.28,7.28,0,0,0-3.68-6l-49.57-20.67-.07,0L566,355.63a6.66,6.66,0,0,0-11.92,0l-20.7,49.63-.05,0L483.7,426a7.28,7.28,0,0,0-3.68,6h0a7.29,7.29,0,0,0,3.68,5.95l49.57,20.67.07,0L554,508.21a6.65,6.65,0,0,0,11.92,0l20.69-49.62h0l.09,0,49.55-20.66a7.29,7.29,0,0,0,3.68-5.95h0Z"]
};
var faHandSpock = {
  prefix: 'fas',
  iconName: 'hand-spock',
  icon: [512, 512, [], "f259", "M510.9005,145.27027,442.604,432.09391A103.99507,103.99507,0,0,1,341.43745,512H214.074a135.96968,135.96968,0,0,1-93.18489-36.95291L12.59072,373.12723a39.992,39.992,0,0,1,54.8122-58.24988l60.59342,57.02528v0a283.24849,283.24849,0,0,0-11.6703-80.46734L73.63726,147.36011a40.00575,40.00575,0,1,1,76.71833-22.7187l37.15458,125.39477a8.33113,8.33113,0,0,0,16.05656-4.4414L153.26183,49.95406A39.99638,39.99638,0,1,1,230.73015,30.0166l56.09491,218.15825a10.42047,10.42047,0,0,0,20.30018-.501L344.80766,63.96966a40.052,40.052,0,0,1,51.30245-30.0893c19.86073,6.2998,30.86262,27.67378,26.67564,48.08487l-33.83869,164.966a7.55172,7.55172,0,0,0,14.74406,3.2666l29.3973-123.45874a39.99414,39.99414,0,1,1,77.81208,18.53121Z"]
};
var faHands = {
  prefix: 'fas',
  iconName: 'hands',
  icon: [640, 512, [], "f4c2", "M204.8 230.4c-10.6-14.1-30.7-17-44.8-6.4-14.1 10.6-17 30.7-6.4 44.8l38.1 50.8c4.8 6.4 4.1 15.3-1.5 20.9l-12.8 12.8c-6.7 6.7-17.6 6.2-23.6-1.1L64 244.4V96c0-17.7-14.3-32-32-32S0 78.3 0 96v218.4c0 10.9 3.7 21.5 10.5 30l104.1 134.3c5 6.5 8.4 13.9 10.4 21.7 1.8 6.9 8.1 11.6 15.3 11.6H272c8.8 0 16-7.2 16-16V384c0-27.7-9-54.6-25.6-76.8l-57.6-76.8zM608 64c-17.7 0-32 14.3-32 32v148.4l-89.8 107.8c-6 7.2-17 7.7-23.6 1.1l-12.8-12.8c-5.6-5.6-6.3-14.5-1.5-20.9l38.1-50.8c10.6-14.1 7.7-34.2-6.4-44.8-14.1-10.6-34.2-7.7-44.8 6.4l-57.6 76.8C361 329.4 352 356.3 352 384v112c0 8.8 7.2 16 16 16h131.7c7.1 0 13.5-4.7 15.3-11.6 2-7.8 5.4-15.2 10.4-21.7l104.1-134.3c6.8-8.5 10.5-19.1 10.5-30V96c0-17.7-14.3-32-32-32z"]
};
var faHandsHelping = {
  prefix: 'fas',
  iconName: 'hands-helping',
  icon: [640, 512, [], "f4c4", "M488 192H336v56c0 39.7-32.3 72-72 72s-72-32.3-72-72V126.4l-64.9 39C107.8 176.9 96 197.8 96 220.2v47.3l-80 46.2C.7 322.5-4.6 342.1 4.3 357.4l80 138.6c8.8 15.3 28.4 20.5 43.7 11.7L231.4 448H368c35.3 0 64-28.7 64-64h16c17.7 0 32-14.3 32-32v-64h8c13.3 0 24-10.7 24-24v-48c0-13.3-10.7-24-24-24zm147.7-37.4L555.7 16C546.9.7 527.3-4.5 512 4.3L408.6 64H306.4c-12 0-23.7 3.4-33.9 9.7L239 94.6c-9.4 5.8-15 16.1-15 27.1V248c0 22.1 17.9 40 40 40s40-17.9 40-40v-88h184c30.9 0 56 25.1 56 56v28.5l80-46.2c15.3-8.9 20.5-28.4 11.7-43.7z"]
};
var faHandsWash = {
  prefix: 'fas',
  iconName: 'hands-wash',
  icon: [576, 512, [], "e05e", "M496,224a48,48,0,1,0-48-48A48,48,0,0,0,496,224ZM311.47,178.45A56.77,56.77,0,0,1,328,176a56,56,0,0,1,19,3.49l15.35-48.61A24,24,0,0,0,342,99.74c-11.53-1.35-22.21,6.44-25.71,17.51l-20.9,66.17ZM93.65,386.33c.8-.19,1.54-.54,2.35-.71V359.93a156,156,0,0,1,107.06-148l73.7-22.76L310.92,81.05a24,24,0,0,0-20.33-31.11c-11.53-1.34-22.22,6.45-25.72,17.52L231.42,173.88a8,8,0,0,1-15.26-4.83L259.53,31.26A24,24,0,0,0,239.2.15C227.67-1.19,217,6.6,213.49,17.66L165.56,169.37a8,8,0,1,1-15.26-4.82l38.56-122a24,24,0,0,0-20.33-31.11C157,10,146.32,17.83,142.82,28.9l-60,189.85L80.76,168.7A24,24,0,0,0,56.9,144.55c-13.23-.05-24.72,10.54-24.9,23.86V281.14A123.69,123.69,0,0,0,93.65,386.33ZM519.1,336H360a8,8,0,0,1,0-16H488a24,24,0,0,0,23.54-28.76C509.35,279.84,498.71,272,487.1,272H288l47.09-17.06a24,24,0,0,0-14.18-45.88L213.19,242.31A123.88,123.88,0,0,0,128,360v25.65a79.78,79.78,0,0,1,58,108.63A118.9,118.9,0,0,0,248,512H456a24,24,0,0,0,23.54-28.76C477.35,471.84,466.71,464,455.1,464H360a8,8,0,0,1,0-16H488a24,24,0,0,0,23.54-28.76C509.35,407.84,498.71,400,487.1,400H360a8,8,0,0,1,0-16H520a24,24,0,0,0,23.54-28.76C541.35,343.84,530.71,336,519.1,336ZM416,64a32,32,0,1,0-32-32A32,32,0,0,0,416,64ZM112,416a48,48,0,1,0,48,48A48,48,0,0,0,112,416Z"]
};
var faHandshake = {
  prefix: 'fas',
  iconName: 'handshake',
  icon: [640, 512, [], "f2b5", "M434.7 64h-85.9c-8 0-15.7 3-21.6 8.4l-98.3 90c-.1.1-.2.3-.3.4-16.6 15.6-16.3 40.5-2.1 56 12.7 13.9 39.4 17.6 56.1 2.7.1-.1.3-.1.4-.2l79.9-73.2c6.5-5.9 16.7-5.5 22.6 1 6 6.5 5.5 16.6-1 22.6l-26.1 23.9L504 313.8c2.9 2.4 5.5 5 7.9 7.7V128l-54.6-54.6c-5.9-6-14.1-9.4-22.6-9.4zM544 128.2v223.9c0 17.7 14.3 32 32 32h64V128.2h-96zm48 223.9c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zM0 384h64c17.7 0 32-14.3 32-32V128.2H0V384zm48-63.9c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16c0-8.9 7.2-16 16-16zm435.9 18.6L334.6 217.5l-30 27.5c-29.7 27.1-75.2 24.5-101.7-4.4-26.9-29.4-24.8-74.9 4.4-101.7L289.1 64h-83.8c-8.5 0-16.6 3.4-22.6 9.4L128 128v223.9h18.3l90.5 81.9c27.4 22.3 67.7 18.1 90-9.3l.2-.2 17.9 15.5c15.9 13 39.4 10.5 52.3-5.4l31.4-38.6 5.4 4.4c13.7 11.1 33.9 9.1 45-4.7l9.5-11.7c11.2-13.8 9.1-33.9-4.6-45.1z"]
};
var faHandshakeAltSlash = {
  prefix: 'fas',
  iconName: 'handshake-alt-slash',
  icon: [640, 512, [], "e05f", "M358.59,195.6,504.2,313.8a63.4,63.4,0,0,1,22.21,37.91H624a16.05,16.05,0,0,0,16-16V143.91A16,16,0,0,0,624,128H512L457.41,73.41A32,32,0,0,0,434.8,64H348.91a32,32,0,0,0-21.61,8.41l-88.12,80.68-25.69-19.85L289.09,64H205.3a32,32,0,0,0-22.6,9.41l-20.34,20.3L45.47,3.38A16,16,0,0,0,23,6.19L3.38,31.46A16,16,0,0,0,6.19,53.91L594.54,508.63A16,16,0,0,0,617,505.82l19.64-25.27a16,16,0,0,0-2.81-22.45L303.4,202.72l32.69-29.92,27-24.7a16,16,0,0,1,21.61,23.61ZM16,128A16.05,16.05,0,0,0,0,144V335.91a16,16,0,0,0,16,16H146.3l90.5,81.89a64,64,0,0,0,90-9.3l.2-.2,17.91,15.5a37.16,37.16,0,0,0,52.29-5.39l8.8-10.82L23.56,128Z"]
};
var faHandshakeSlash = {
  prefix: 'fas',
  iconName: 'handshake-slash',
  icon: [640, 512, [], "e060", "M0,128.21V384H64a32,32,0,0,0,32-32V184L23.83,128.21ZM48,320.1a16,16,0,1,1-16,16A16,16,0,0,1,48,320.1Zm80,31.81h18.3l90.5,81.89a64,64,0,0,0,90-9.3l.2-.2,17.91,15.5a37.16,37.16,0,0,0,52.29-5.39l8.8-10.82L128,208.72Zm416-223.7V352.1a32,32,0,0,0,32,32h64V128.21ZM592,352.1a16,16,0,1,1,16-16A16,16,0,0,1,592,352.1ZM303.33,202.67l59.58-54.57a16,16,0,0,1,21.59,23.61L358.41,195.6,504,313.8a73.08,73.08,0,0,1,7.91,7.7V128L457.3,73.41A31.76,31.76,0,0,0,434.7,64H348.8a31.93,31.93,0,0,0-21.6,8.41l-88.07,80.64-25.64-19.81L289.09,64H205.3a32,32,0,0,0-22.6,9.41L162.36,93.72,45.47,3.38A16,16,0,0,0,23,6.19L3.38,31.46A16,16,0,0,0,6.19,53.91L594.53,508.63A16,16,0,0,0,617,505.82l19.65-25.27a16,16,0,0,0-2.82-22.45Z"]
};
var faHanukiah = {
  prefix: 'fas',
  iconName: 'hanukiah',
  icon: [640, 512, [], "f6e6", "M232 160c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm-64 0c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm224 0c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm64 0c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm88 8c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v120h32V168zm-440-8c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm520 0h-32c-8.84 0-16 7.16-16 16v112c0 17.67-14.33 32-32 32H352V128c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v192H96c-17.67 0-32-14.33-32-32V176c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v112c0 53.02 42.98 96 96 96h192v64H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16H352v-64h192c53.02 0 96-42.98 96-96V176c0-8.84-7.16-16-16-16zm-16-32c13.25 0 24-11.94 24-26.67S608 48 608 48s-24 38.61-24 53.33S594.75 128 608 128zm-576 0c13.25 0 24-11.94 24-26.67S32 48 32 48 8 86.61 8 101.33 18.75 128 32 128zm288-48c13.25 0 24-11.94 24-26.67S320 0 320 0s-24 38.61-24 53.33S306.75 80 320 80zm-208 48c13.25 0 24-11.94 24-26.67S112 48 112 48s-24 38.61-24 53.33S98.75 128 112 128zm64 0c13.25 0 24-11.94 24-26.67S176 48 176 48s-24 38.61-24 53.33S162.75 128 176 128zm64 0c13.25 0 24-11.94 24-26.67S240 48 240 48s-24 38.61-24 53.33S226.75 128 240 128zm160 0c13.25 0 24-11.94 24-26.67S400 48 400 48s-24 38.61-24 53.33S386.75 128 400 128zm64 0c13.25 0 24-11.94 24-26.67S464 48 464 48s-24 38.61-24 53.33S450.75 128 464 128zm64 0c13.25 0 24-11.94 24-26.67S528 48 528 48s-24 38.61-24 53.33S514.75 128 528 128z"]
};
var faHardHat = {
  prefix: 'fas',
  iconName: 'hard-hat',
  icon: [512, 512, [], "f807", "M480 288c0-80.25-49.28-148.92-119.19-177.62L320 192V80a16 16 0 0 0-16-16h-96a16 16 0 0 0-16 16v112l-40.81-81.62C81.28 139.08 32 207.75 32 288v64h448zm16 96H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h480a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
};
var faHashtag = {
  prefix: 'fas',
  iconName: 'hashtag',
  icon: [448, 512, [], "f292", "M440.667 182.109l7.143-40c1.313-7.355-4.342-14.109-11.813-14.109h-74.81l14.623-81.891C377.123 38.754 371.468 32 363.997 32h-40.632a12 12 0 0 0-11.813 9.891L296.175 128H197.54l14.623-81.891C213.477 38.754 207.822 32 200.35 32h-40.632a12 12 0 0 0-11.813 9.891L132.528 128H53.432a12 12 0 0 0-11.813 9.891l-7.143 40C33.163 185.246 38.818 192 46.289 192h74.81L98.242 320H19.146a12 12 0 0 0-11.813 9.891l-7.143 40C-1.123 377.246 4.532 384 12.003 384h74.81L72.19 465.891C70.877 473.246 76.532 480 84.003 480h40.632a12 12 0 0 0 11.813-9.891L151.826 384h98.634l-14.623 81.891C234.523 473.246 240.178 480 247.65 480h40.632a12 12 0 0 0 11.813-9.891L315.472 384h79.096a12 12 0 0 0 11.813-9.891l7.143-40c1.313-7.355-4.342-14.109-11.813-14.109h-74.81l22.857-128h79.096a12 12 0 0 0 11.813-9.891zM261.889 320h-98.634l22.857-128h98.634l-22.857 128z"]
};
var faHatCowboy = {
  prefix: 'fas',
  iconName: 'hat-cowboy',
  icon: [640, 512, [], "f8c0", "M490 296.9C480.51 239.51 450.51 64 392.3 64c-14 0-26.49 5.93-37 14a58.21 58.21 0 0 1-70.58 0c-10.51-8-23-14-37-14-58.2 0-88.2 175.47-97.71 232.88C188.81 309.47 243.73 320 320 320s131.23-10.51 170-23.1zm142.9-37.18a16 16 0 0 0-19.75 1.5c-1 .9-101.27 90.78-293.16 90.78-190.82 0-292.22-89.94-293.24-90.84A16 16 0 0 0 1 278.53C1.73 280.55 78.32 480 320 480s318.27-199.45 319-201.47a16 16 0 0 0-6.09-18.81z"]
};
var faHatCowboySide = {
  prefix: 'fas',
  iconName: 'hat-cowboy-side',
  icon: [640, 512, [], "f8c1", "M260.8 291.06c-28.63-22.94-62-35.06-96.4-35.06C87 256 21.47 318.72 1.43 412.06c-3.55 16.6-.43 33.83 8.57 47.3C18.75 472.47 31.83 480 45.88 480H592c-103.21 0-155-37.07-233.19-104.46zm234.65-18.29L468.4 116.2A64 64 0 0 0 392 64.41L200.85 105a64 64 0 0 0-50.35 55.79L143.61 226c6.9-.83 13.7-2 20.79-2 41.79 0 82 14.55 117.29 42.82l98 84.48C450.76 412.54 494.9 448 592 448a48 48 0 0 0 48-48c0-25.39-29.6-119.33-144.55-127.23z"]
};
var faHatWizard = {
  prefix: 'fas',
  iconName: 'hat-wizard',
  icon: [512, 512, [], "f6e8", "M496 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-304-64l-64-32 64-32 32-64 32 64 64 32-64 32-16 32h208l-86.41-201.63a63.955 63.955 0 0 1-1.89-45.45L416 0 228.42 107.19a127.989 127.989 0 0 0-53.46 59.15L64 416h144l-16-32zm64-224l16-32 16 32 32 16-32 16-16 32-16-32-32-16 32-16z"]
};
var faHdd = {
  prefix: 'fas',
  iconName: 'hdd',
  icon: [576, 512, [], "f0a0", "M576 304v96c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48v-96c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48zm-48-80a79.557 79.557 0 0 1 30.777 6.165L462.25 85.374A48.003 48.003 0 0 0 422.311 64H153.689a48 48 0 0 0-39.938 21.374L17.223 230.165A79.557 79.557 0 0 1 48 224h480zm-48 96c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm-96 0c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32z"]
};
var faHeadSideCough = {
  prefix: 'fas',
  iconName: 'head-side-cough',
  icon: [640, 512, [], "e061", "M616,304a24,24,0,1,0-24-24A24,24,0,0,0,616,304ZM552,416a24,24,0,1,0,24,24A24,24,0,0,0,552,416Zm-64-56a24,24,0,1,0,24,24A24,24,0,0,0,488,360ZM616,464a24,24,0,1,0,24,24A24,24,0,0,0,616,464Zm0-104a24,24,0,1,0,24,24A24,24,0,0,0,616,360Zm-64-40a24,24,0,1,0,24,24A24,24,0,0,0,552,320Zm-74.78-45c-21-47.12-48.5-151.75-73.12-186.75A208.13,208.13,0,0,0,234.1,0H192C86,0,0,86,0,192c0,56.75,24.75,107.62,64,142.88V512H288V480h64a64,64,0,0,0,64-64H320a32,32,0,0,1,0-64h96V320h32A32,32,0,0,0,477.22,275ZM288,224a32,32,0,1,1,32-32A32.07,32.07,0,0,1,288,224Z"]
};
var faHeadSideCoughSlash = {
  prefix: 'fas',
  iconName: 'head-side-cough-slash',
  icon: [640, 512, [], "e062", "M454.11,319.21c19.56-3.81,31.62-25,23.11-44.21-21-47.12-48.5-151.75-73.12-186.75A208.13,208.13,0,0,0,234.1,0H192A190.64,190.64,0,0,0,84.18,33.3L45.46,3.38A16,16,0,0,0,23,6.19L3.37,31.46A16,16,0,0,0,6.18,53.91L594.53,508.63A16,16,0,0,0,617,505.82l19.64-25.27a16,16,0,0,0-2.81-22.45ZM313.39,210.45,263.61,172c5.88-7.14,14.43-12,24.36-12a32.06,32.06,0,0,1,32,32C320,199,317.24,205.17,313.39,210.45ZM616,304a24,24,0,1,0-24-24A24,24,0,0,0,616,304Zm-64,64a24,24,0,1,0-24-24A24,24,0,0,0,552,368ZM288,384a32,32,0,0,1,32-32h19.54L20.73,105.59A190.86,190.86,0,0,0,0,192c0,56.75,24.75,107.62,64,142.88V512H288V480h64a64,64,0,0,0,64-64H320A32,32,0,0,1,288,384Zm328-24a24,24,0,1,0,24,24A24,24,0,0,0,616,360Z"]
};
var faHeadSideMask = {
  prefix: 'fas',
  iconName: 'head-side-mask',
  icon: [512, 512, [], "e063", "M.15,184.42C-2.17,244.21,23,298.06,64,334.88V512H224V316.51L3.67,156.25A182.28,182.28,0,0,0,.15,184.42ZM509.22,275c-21-47.12-48.5-151.75-73.12-186.75A208.11,208.11,0,0,0,266.11,0H200C117,0,42.48,50.57,13.25,123.65L239.21,288H511.76A31.35,31.35,0,0,0,509.22,275ZM320,224a32,32,0,1,1,32-32A32.07,32.07,0,0,1,320,224Zm16,144H496l16-48H256V512H401.88a64,64,0,0,0,60.71-43.76L464,464H336a16,16,0,0,1,0-32H474.67l10.67-32H336a16,16,0,0,1,0-32Z"]
};
var faHeadSideVirus = {
  prefix: 'fas',
  iconName: 'head-side-virus',
  icon: [512, 512, [], "e064", "M272,240a16,16,0,1,0,16,16A16,16,0,0,0,272,240Zm-64-64a16,16,0,1,0,16,16A16,16,0,0,0,208,176Zm301.2,99c-20.93-47.12-48.43-151.73-73.07-186.75A207.9,207.9,0,0,0,266.09,0H192C86,0,0,86,0,192A191.23,191.23,0,0,0,64,334.81V512H320V448h64a64,64,0,0,0,64-64V320H480A32,32,0,0,0,509.2,275ZM368,240H355.88c-28.51,0-42.79,34.47-22.63,54.63l8.58,8.57a16,16,0,1,1-22.63,22.63l-8.57-8.58C290.47,297.09,256,311.37,256,339.88V352a16,16,0,0,1-32,0V339.88c0-28.51-34.47-42.79-54.63-22.63l-8.57,8.58a16,16,0,0,1-22.63-22.63l8.58-8.57c20.16-20.16,5.88-54.63-22.63-54.63H112a16,16,0,0,1,0-32h12.12c28.51,0,42.79-34.47,22.63-54.63l-8.58-8.57a16,16,0,0,1,22.63-22.63l8.57,8.58c20.16,20.16,54.63,5.88,54.63-22.63V96a16,16,0,0,1,32,0v12.12c0,28.51,34.47,42.79,54.63,22.63l8.57-8.58a16,16,0,0,1,22.63,22.63l-8.58,8.57C313.09,173.53,327.37,208,355.88,208H368a16,16,0,0,1,0,32Z"]
};
var faHeading = {
  prefix: 'fas',
  iconName: 'heading',
  icon: [512, 512, [], "f1dc", "M448 96v320h32a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H320a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32V288H160v128h32a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32V96H32a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h160a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16h-32v128h192V96h-32a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h160a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16z"]
};
var faHeadphones = {
  prefix: 'fas',
  iconName: 'headphones',
  icon: [512, 512, [], "f025", "M256 32C114.52 32 0 146.496 0 288v48a32 32 0 0 0 17.689 28.622l14.383 7.191C34.083 431.903 83.421 480 144 480h24c13.255 0 24-10.745 24-24V280c0-13.255-10.745-24-24-24h-24c-31.342 0-59.671 12.879-80 33.627V288c0-105.869 86.131-192 192-192s192 86.131 192 192v1.627C427.671 268.879 399.342 256 368 256h-24c-13.255 0-24 10.745-24 24v176c0 13.255 10.745 24 24 24h24c60.579 0 109.917-48.098 111.928-108.187l14.382-7.191A32 32 0 0 0 512 336v-48c0-141.479-114.496-256-256-256z"]
};
var faHeadphonesAlt = {
  prefix: 'fas',
  iconName: 'headphones-alt',
  icon: [512, 512, [], "f58f", "M160 288h-16c-35.35 0-64 28.7-64 64.12v63.76c0 35.41 28.65 64.12 64 64.12h16c17.67 0 32-14.36 32-32.06V320.06c0-17.71-14.33-32.06-32-32.06zm208 0h-16c-17.67 0-32 14.35-32 32.06v127.88c0 17.7 14.33 32.06 32 32.06h16c35.35 0 64-28.71 64-64.12v-63.76c0-35.41-28.65-64.12-64-64.12zM256 32C112.91 32 4.57 151.13 0 288v112c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16V288c0-114.67 93.33-207.8 208-207.82 114.67.02 208 93.15 208 207.82v112c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16V288C507.43 151.13 399.09 32 256 32z"]
};
var faHeadset = {
  prefix: 'fas',
  iconName: 'headset',
  icon: [512, 512, [], "f590", "M192 208c0-17.67-14.33-32-32-32h-16c-35.35 0-64 28.65-64 64v48c0 35.35 28.65 64 64 64h16c17.67 0 32-14.33 32-32V208zm176 144c35.35 0 64-28.65 64-64v-48c0-35.35-28.65-64-64-64h-16c-17.67 0-32 14.33-32 32v112c0 17.67 14.33 32 32 32h16zM256 0C113.18 0 4.58 118.83 0 256v16c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-16c0-114.69 93.31-208 208-208s208 93.31 208 208h-.12c.08 2.43.12 165.72.12 165.72 0 23.35-18.93 42.28-42.28 42.28H320c0-26.51-21.49-48-48-48h-32c-26.51 0-48 21.49-48 48s21.49 48 48 48h181.72c49.86 0 90.28-40.42 90.28-90.28V256C507.42 118.83 398.82 0 256 0z"]
};
var faHeart = {
  prefix: 'fas',
  iconName: 'heart',
  icon: [512, 512, [], "f004", "M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"]
};
var faHeartBroken = {
  prefix: 'fas',
  iconName: 'heart-broken',
  icon: [512, 512, [], "f7a9", "M473.7 73.8l-2.4-2.5c-46-47-118-51.7-169.6-14.8L336 159.9l-96 64 48 128-144-144 96-64-28.6-86.5C159.7 19.6 87 24 40.7 71.4l-2.4 2.4C-10.4 123.6-12.5 202.9 31 256l212.1 218.6c7.1 7.3 18.6 7.3 25.7 0L481 255.9c43.5-53 41.4-132.3-7.3-182.1z"]
};
var faHeartbeat = {
  prefix: 'fas',
  iconName: 'heartbeat',
  icon: [512, 512, [], "f21e", "M320.2 243.8l-49.7 99.4c-6 12.1-23.4 11.7-28.9-.6l-56.9-126.3-30 71.7H60.6l182.5 186.5c7.1 7.3 18.6 7.3 25.7 0L451.4 288H342.3l-22.1-44.2zM473.7 73.9l-2.4-2.5c-51.5-52.6-135.8-52.6-187.4 0L256 100l-27.9-28.5c-51.5-52.7-135.9-52.7-187.4 0l-2.4 2.4C-10.4 123.7-12.5 203 31 256h102.4l35.9-86.2c5.4-12.9 23.6-13.2 29.4-.4l58.2 129.3 49-97.9c5.9-11.8 22.7-11.8 28.6 0l27.6 55.2H481c43.5-53 41.4-132.3-7.3-182.1z"]
};
var faHelicopter = {
  prefix: 'fas',
  iconName: 'helicopter',
  icon: [640, 512, [], "f533", "M304 384h272c17.67 0 32-14.33 32-32 0-123.71-100.29-224-224-224V64h176c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16H144c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h176v64H112L68.8 70.4C65.78 66.37 61.03 64 56 64H16.01C5.6 64-2.04 73.78.49 83.88L32 192l160 64 86.4 115.2A31.992 31.992 0 0 0 304 384zm112-188.49C478.55 208.3 528.03 257.44 540.79 320H416V195.51zm219.37 263.3l-22.15-22.2c-6.25-6.26-16.24-6.1-22.64.01-7.09 6.77-13.84 11.25-24.64 11.25H240c-8.84 0-16 7.18-16 16.03v32.06c0 8.85 7.16 16.03 16 16.03h325.94c14.88 0 35.3-.47 68.45-29.52 7.02-6.14 7.57-17.05.98-23.66z"]
};
var faHighlighter = {
  prefix: 'fas',
  iconName: 'highlighter',
  icon: [544, 512, [], "f591", "M0 479.98L99.92 512l35.45-35.45-67.04-67.04L0 479.98zm124.61-240.01a36.592 36.592 0 0 0-10.79 38.1l13.05 42.83-50.93 50.94 96.23 96.23 50.86-50.86 42.74 13.08c13.73 4.2 28.65-.01 38.15-10.78l35.55-41.64-173.34-173.34-41.52 35.44zm403.31-160.7l-63.2-63.2c-20.49-20.49-53.38-21.52-75.12-2.35L190.55 183.68l169.77 169.78L530.27 154.4c19.18-21.74 18.15-54.63-2.35-75.13z"]
};
var faHiking = {
  prefix: 'fas',
  iconName: 'hiking',
  icon: [384, 512, [], "f6ec", "M80.95 472.23c-4.28 17.16 6.14 34.53 23.28 38.81 2.61.66 5.22.95 7.8.95 14.33 0 27.37-9.7 31.02-24.23l25.24-100.97-52.78-52.78-34.56 138.22zm14.89-196.12L137 117c2.19-8.42-3.14-16.95-11.92-19.06-43.88-10.52-88.35 15.07-99.32 57.17L.49 253.24c-2.19 8.42 3.14 16.95 11.92 19.06l63.56 15.25c8.79 2.1 17.68-3.02 19.87-11.44zM368 160h-16c-8.84 0-16 7.16-16 16v16h-34.75l-46.78-46.78C243.38 134.11 228.61 128 212.91 128c-27.02 0-50.47 18.3-57.03 44.52l-26.92 107.72a32.012 32.012 0 0 0 8.42 30.39L224 397.25V480c0 17.67 14.33 32 32 32s32-14.33 32-32v-82.75c0-17.09-6.66-33.16-18.75-45.25l-46.82-46.82c.15-.5.49-.89.62-1.41l19.89-79.57 22.43 22.43c6 6 14.14 9.38 22.62 9.38h48v240c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16V176c.01-8.84-7.15-16-15.99-16zM240 96c26.51 0 48-21.49 48-48S266.51 0 240 0s-48 21.49-48 48 21.49 48 48 48z"]
};
var faHippo = {
  prefix: 'fas',
  iconName: 'hippo',
  icon: [640, 512, [], "f6ed", "M581.12 96.2c-27.67-.15-52.5 17.58-76.6 26.62C489.98 88.27 455.83 64 416 64c-11.28 0-21.95 2.3-32 5.88V56c0-13.26-10.75-24-24-24h-16c-13.25 0-24 10.74-24 24v48.98C286.01 79.58 241.24 64 192 64 85.96 64 0 135.64 0 224v240c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16v-70.79C128.35 407.57 166.72 416 208 416s79.65-8.43 112-22.79V464c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V288h128v32c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-32c17.67 0 32-14.33 32-32v-92.02c0-34.09-24.79-67.59-58.88-67.78zM448 176c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16z"]
};
var faHistory = {
  prefix: 'fas',
  iconName: 'history',
  icon: [512, 512, [], "f1da", "M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"]
};
var faHockeyPuck = {
  prefix: 'fas',
  iconName: 'hockey-puck',
  icon: [512, 512, [], "f453", "M0 160c0-53 114.6-96 256-96s256 43 256 96-114.6 96-256 96S0 213 0 160zm0 82.2V352c0 53 114.6 96 256 96s256-43 256-96V242.2c-113.4 82.3-398.5 82.4-512 0z"]
};
var faHollyBerry = {
  prefix: 'fas',
  iconName: 'holly-berry',
  icon: [448, 512, [], "f7aa", "M144 192c26.5 0 48-21.5 48-48s-21.5-48-48-48-48 21.5-48 48 21.5 48 48 48zm112-48c0 26.5 21.5 48 48 48s48-21.5 48-48-21.5-48-48-48-48 21.5-48 48zm-32-48c26.5 0 48-21.5 48-48S250.5 0 224 0s-48 21.5-48 48 21.5 48 48 48zm-16.2 139.1c.1-12.4-13.1-20.1-23.8-13.7-34.3 20.3-71.4 32.7-108.7 36.2-9.7.9-15.6 11.3-11.6 20.2 6.2 13.9 11.1 28.6 14.7 43.8 3.6 15.2-5.3 30.6-20.2 35.1-14.9 4.5-30.1 7.6-45.3 9.1-9.7 1-15.7 11.3-11.7 20.2 15 32.8 22.9 69.5 23 107.7.1 14.4 15.2 23.1 27.6 16 33.2-19 68.9-30.5 104.8-33.9 9.7-.9 15.6-11.3 11.6-20.2-6.2-13.9-11.1-28.6-14.7-43.8-3.6-15.2 5.3-30.6 20.2-35.1 14.9-4.5 30.1-7.6 45.3-9.1 9.7-1 15.7-11.3 11.7-20.2-15.5-34.2-23.3-72.5-22.9-112.3zM435 365.6c-15.2-1.6-30.3-4.7-45.3-9.1-14.9-4.5-23.8-19.9-20.2-35.1 3.6-15.2 8.5-29.8 14.7-43.8 4-8.9-1.9-19.3-11.6-20.2-37.3-3.5-74.4-15.9-108.7-36.2-10.7-6.3-23.9 1.4-23.8 13.7 0 1.6-.2 3.2-.2 4.9.2 33.3 7 65.7 19.9 94 5.7 12.4 5.2 26.6-.6 38.9 4.9 1.2 9.9 2.2 14.8 3.7 14.9 4.5 23.8 19.9 20.2 35.1-3.6 15.2-8.5 29.8-14.7 43.8-4 8.9 1.9 19.3 11.6 20.2 35.9 3.4 71.6 14.9 104.8 33.9 12.5 7.1 27.6-1.6 27.6-16 .2-38.2 8-75 23-107.7 4.3-8.7-1.8-19.1-11.5-20.1z"]
};
var faHome = {
  prefix: 'fas',
  iconName: 'home',
  icon: [576, 512, [], "f015", "M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"]
};
var faHorse = {
  prefix: 'fas',
  iconName: 'horse',
  icon: [576, 512, [], "f6f0", "M575.92 76.6c-.01-8.13-3.02-15.87-8.58-21.8-3.78-4.03-8.58-9.12-13.69-14.5 11.06-6.84 19.5-17.49 22.18-30.66C576.85 4.68 572.96 0 567.9 0H447.92c-70.69 0-128 57.31-128 128H160c-28.84 0-54.4 12.98-72 33.11V160c-48.53 0-88 39.47-88 88v56c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-56c0-13.22 6.87-24.39 16.78-31.68-.21 2.58-.78 5.05-.78 7.68 0 27.64 11.84 52.36 30.54 69.88l-25.72 68.6a63.945 63.945 0 0 0-2.16 37.99l24.85 99.41A15.982 15.982 0 0 0 107.02 512h65.96c10.41 0 18.05-9.78 15.52-19.88l-26.31-105.26 23.84-63.59L320 345.6V496c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V318.22c19.74-20.19 32-47.75 32-78.22 0-.22-.07-.42-.08-.64V136.89l16 7.11 18.9 37.7c7.45 14.87 25.05 21.55 40.49 15.37l32.55-13.02a31.997 31.997 0 0 0 20.12-29.74l-.06-77.71zm-64 19.4c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16z"]
};
var faHorseHead = {
  prefix: 'fas',
  iconName: 'horse-head',
  icon: [512, 512, [], "f7ab", "M509.8 332.5l-69.9-164.3c-14.9-41.2-50.4-71-93-79.2 18-10.6 46.3-35.9 34.2-82.3-1.3-5-7.1-7.9-12-6.1L166.9 76.3C35.9 123.4 0 238.9 0 398.8V480c0 17.7 14.3 32 32 32h236.2c23.8 0 39.3-25 28.6-46.3L256 384v-.7c-45.6-3.5-84.6-30.7-104.3-69.6-1.6-3.1-.9-6.9 1.6-9.3l12.1-12.1c3.9-3.9 10.6-2.7 12.9 2.4 14.8 33.7 48.2 57.4 87.4 57.4 17.2 0 33-5.1 46.8-13.2l46 63.9c6 8.4 15.7 13.3 26 13.3h50.3c8.5 0 16.6-3.4 22.6-9.4l45.3-39.8c8.9-9.1 11.7-22.6 7.1-34.4zM328 224c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24z"]
};
var faHospital = {
  prefix: 'fas',
  iconName: 'hospital',
  icon: [448, 512, [], "f0f8", "M448 492v20H0v-20c0-6.627 5.373-12 12-12h20V120c0-13.255 10.745-24 24-24h88V24c0-13.255 10.745-24 24-24h112c13.255 0 24 10.745 24 24v72h88c13.255 0 24 10.745 24 24v360h20c6.627 0 12 5.373 12 12zM308 192h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zm-168 64h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12zm104 128h-40c-6.627 0-12 5.373-12 12v84h64v-84c0-6.627-5.373-12-12-12zm64-96h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zm-116 12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40zM182 96h26v26a6 6 0 0 0 6 6h20a6 6 0 0 0 6-6V96h26a6 6 0 0 0 6-6V70a6 6 0 0 0-6-6h-26V38a6 6 0 0 0-6-6h-20a6 6 0 0 0-6 6v26h-26a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6z"]
};
var faHospitalAlt = {
  prefix: 'fas',
  iconName: 'hospital-alt',
  icon: [576, 512, [], "f47d", "M544 96H416V32c0-17.7-14.3-32-32-32H192c-17.7 0-32 14.3-32 32v64H32c-17.7 0-32 14.3-32 32v368c0 8.8 7.2 16 16 16h544c8.8 0 16-7.2 16-16V128c0-17.7-14.3-32-32-32zM160 436c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm160 128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm16-170c0 3.3-2.7 6-6 6h-26v26c0 3.3-2.7 6-6 6h-20c-3.3 0-6-2.7-6-6v-26h-26c-3.3 0-6-2.7-6-6v-20c0-3.3 2.7-6 6-6h26V86c0-3.3 2.7-6 6-6h20c3.3 0 6 2.7 6 6v26h26c3.3 0 6 2.7 6 6v20zm144 298c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z"]
};
var faHospitalSymbol = {
  prefix: 'fas',
  iconName: 'hospital-symbol',
  icon: [512, 512, [], "f47e", "M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm112 376c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-88h-96v88c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V136c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v88h96v-88c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v240z"]
};
var faHospitalUser = {
  prefix: 'fas',
  iconName: 'hospital-user',
  icon: [640, 512, [], "f80d", "M480 320a96 96 0 1 0-96-96 96 96 0 0 0 96 96zm48 32a22.88 22.88 0 0 0-7.06 1.09 124.76 124.76 0 0 1-81.89 0A22.82 22.82 0 0 0 432 352a112 112 0 0 0-112 112.62c.14 26.26 21.73 47.38 48 47.38h224c26.27 0 47.86-21.12 48-47.38A112 112 0 0 0 528 352zm-198.09 10.45A145.19 145.19 0 0 1 352 344.62V128a32 32 0 0 0-32-32h-32V32a32 32 0 0 0-32-32H96a32 32 0 0 0-32 32v64H32a32 32 0 0 0-32 32v368a16 16 0 0 0 16 16h288.31A78.62 78.62 0 0 1 288 464.79a143.06 143.06 0 0 1 41.91-102.34zM144 404a12 12 0 0 1-12 12H92a12 12 0 0 1-12-12v-40a12 12 0 0 1 12-12h40a12 12 0 0 1 12 12zm0-128a12 12 0 0 1-12 12H92a12 12 0 0 1-12-12v-40a12 12 0 0 1 12-12h40a12 12 0 0 1 12 12zm48-122a6 6 0 0 1-6 6h-20a6 6 0 0 1-6-6v-26h-26a6 6 0 0 1-6-6v-20a6 6 0 0 1 6-6h26V70a6 6 0 0 1 6-6h20a6 6 0 0 1 6 6v26h26a6 6 0 0 1 6 6v20a6 6 0 0 1-6 6h-26zm80 250a12 12 0 0 1-12 12h-40a12 12 0 0 1-12-12v-40a12 12 0 0 1 12-12h40a12 12 0 0 1 12 12zm0-128a12 12 0 0 1-12 12h-40a12 12 0 0 1-12-12v-40a12 12 0 0 1 12-12h40a12 12 0 0 1 12 12z"]
};
var faHotTub = {
  prefix: 'fas',
  iconName: 'hot-tub',
  icon: [512, 512, [], "f593", "M414.21 177.65c1.02 8.21 7.75 14.35 15.75 14.35h16.12c9.51 0 17.08-8.57 16-18.35-4.34-39.11-22.4-74.53-50.13-97.16-17.37-14.17-28.82-36.75-31.98-62.15C378.96 6.14 372.22 0 364.23 0h-16.12c-9.51 0-17.09 8.57-16 18.35 4.34 39.11 22.4 74.53 50.13 97.16 17.36 14.17 28.82 36.75 31.97 62.14zm-108 0c1.02 8.21 7.75 14.35 15.75 14.35h16.12c9.51 0 17.08-8.57 16-18.35-4.34-39.11-22.4-74.53-50.13-97.16-17.37-14.17-28.82-36.75-31.98-62.15C270.96 6.14 264.22 0 256.23 0h-16.12c-9.51 0-17.09 8.57-16 18.35 4.34 39.11 22.4 74.53 50.13 97.16 17.36 14.17 28.82 36.75 31.97 62.14zM480 256H256l-110.93-83.2a63.99 63.99 0 0 0-38.4-12.8H64c-35.35 0-64 28.65-64 64v224c0 35.35 28.65 64 64 64h384c35.35 0 64-28.65 64-64V288c0-17.67-14.33-32-32-32zM128 440c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zm96 0c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zm96 0c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zm96 0c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zM64 128c35.35 0 64-28.65 64-64S99.35 0 64 0 0 28.65 0 64s28.65 64 64 64z"]
};
var faHotdog = {
  prefix: 'fas',
  iconName: 'hotdog',
  icon: [512, 512, [], "f80f", "M488.56 23.44a80 80 0 0 0-113.12 0l-352 352a80 80 0 1 0 113.12 113.12l352-352a80 80 0 0 0 0-113.12zm-49.93 95.19c-19.6 19.59-37.52 22.67-51.93 25.14C373.76 146 364.4 147.6 352 160s-14 21.76-16.23 34.71c-2.48 14.4-5.55 32.33-25.15 51.92s-37.52 22.67-51.92 25.15C245.75 274 236.4 275.6 224 288s-14 21.75-16.23 34.7c-2.47 14.4-5.54 32.33-25.14 51.92s-37.53 22.68-51.93 25.15C117.76 402 108.4 403.6 96 416a16 16 0 0 1-22.63-22.63c19.6-19.59 37.52-22.67 51.92-25.14 13-2.22 22.3-3.82 34.71-16.23s14-21.75 16.22-34.7c2.48-14.4 5.55-32.33 25.15-51.92s37.52-22.67 51.92-25.14c13-2.22 22.3-3.83 34.7-16.23s14-21.76 16.24-34.71c2.47-14.4 5.54-32.33 25.14-51.92s37.52-22.68 51.92-25.15C394.24 110 403.59 108.41 416 96a16 16 0 0 1 22.63 22.63zM31.44 322.18L322.18 31.44l-11.54-11.55c-25-25-63.85-26.66-86.79-3.72L16.17 223.85c-22.94 22.94-21.27 61.79 3.72 86.78zm449.12-132.36L189.82 480.56l11.54 11.55c25 25 63.85 26.66 86.79 3.72l207.68-207.68c22.94-22.94 21.27-61.79-3.72-86.79z"]
};
var faHotel = {
  prefix: 'fas',
  iconName: 'hotel',
  icon: [576, 512, [], "f594", "M560 64c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16H16C7.16 0 0 7.16 0 16v32c0 8.84 7.16 16 16 16h15.98v384H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h240v-80c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v80h240c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16h-16V64h16zm-304 44.8c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4zm0 96c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4zm-128-96c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4zM179.2 256h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8zM192 384c0-53.02 42.98-96 96-96s96 42.98 96 96H192zm256-140.8c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-96c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4z"]
};
var faHourglass = {
  prefix: 'fas',
  iconName: 'hourglass',
  icon: [384, 512, [], "f254", "M360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64z"]
};
var faHourglassEnd = {
  prefix: 'fas',
  iconName: 'hourglass-end',
  icon: [384, 512, [], "f253", "M360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64zM192 208c-57.787 0-104-66.518-104-144h208c0 77.945-46.51 144-104 144z"]
};
var faHourglassHalf = {
  prefix: 'fas',
  iconName: 'hourglass-half',
  icon: [384, 512, [], "f252", "M360 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24zm-75.078 384H99.08c17.059-46.797 52.096-80 92.92-80 40.821 0 75.862 33.196 92.922 80zm.019-256H99.078C91.988 108.548 88 86.748 88 64h208c0 22.805-3.987 44.587-11.059 64z"]
};
var faHourglassStart = {
  prefix: 'fas',
  iconName: 'hourglass-start',
  icon: [384, 512, [], "f251", "M360 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24zm-64 448H88c0-77.458 46.204-144 104-144 57.786 0 104 66.517 104 144z"]
};
var faHouseDamage = {
  prefix: 'fas',
  iconName: 'house-damage',
  icon: [576, 512, [], "f6f1", "M288 114.96L69.47 307.71c-1.62 1.46-3.69 2.14-5.47 3.35V496c0 8.84 7.16 16 16 16h149.23L192 439.19l104.11-64-60.16-119.22L384 392.75l-104.11 64L319.81 512H496c8.84 0 16-7.16 16-16V311.1c-1.7-1.16-3.72-1.82-5.26-3.2L288 114.96zm282.69 121.32L512 184.45V48c0-8.84-7.16-16-16-16h-64c-8.84 0-16 7.16-16 16v51.69L314.75 10.31C307.12 3.45 297.56.01 288 0s-19.1 3.41-26.7 10.27L5.31 236.28c-6.57 5.91-7.12 16.02-1.21 22.6l21.4 23.82c5.9 6.57 16.02 7.12 22.6 1.21L277.42 81.63c6.05-5.33 15.12-5.33 21.17 0L527.91 283.9c6.57 5.9 16.69 5.36 22.6-1.21l21.4-23.82c5.9-6.57 5.36-16.69-1.22-22.59z"]
};
var faHouseUser = {
  prefix: 'fas',
  iconName: 'house-user',
  icon: [576, 512, [], "e065", "M570.69,236.27,512,184.44V48a16,16,0,0,0-16-16H432a16,16,0,0,0-16,16V99.67L314.78,10.3C308.5,4.61,296.53,0,288,0s-20.46,4.61-26.74,10.3l-256,226A18.27,18.27,0,0,0,0,248.2a18.64,18.64,0,0,0,4.09,10.71L25.5,282.7a21.14,21.14,0,0,0,12,5.3,21.67,21.67,0,0,0,10.69-4.11l15.9-14V480a32,32,0,0,0,32,32H480a32,32,0,0,0,32-32V269.88l15.91,14A21.94,21.94,0,0,0,538.63,288a20.89,20.89,0,0,0,11.87-5.31l21.41-23.81A21.64,21.64,0,0,0,576,248.19,21,21,0,0,0,570.69,236.27ZM288,176a64,64,0,1,1-64,64A64,64,0,0,1,288,176ZM400,448H176a16,16,0,0,1-16-16,96,96,0,0,1,96-96h64a96,96,0,0,1,96,96A16,16,0,0,1,400,448Z"]
};
var faHryvnia = {
  prefix: 'fas',
  iconName: 'hryvnia',
  icon: [384, 512, [], "f6f2", "M368 240c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16h-41.86c13.41-28.63 13.74-63.33-4.13-94.05C303.34 49.84 267.1 32 229.96 32h-78.82c-24.32 0-47.86 8.53-66.54 24.09L72.83 65.9c-10.18 8.49-11.56 23.62-3.07 33.8l20.49 24.59c8.49 10.19 23.62 11.56 33.81 3.07l11.73-9.78c4.32-3.6 9.77-5.57 15.39-5.57h83.62c11.69 0 21.2 9.52 21.2 21.2 0 5.91-2.48 11.58-6.81 15.58L219.7 176H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h134.37l-34.67 32H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h41.86c-13.41 28.63-13.74 63.33 4.13 94.05C80.66 462.15 116.9 480 154.04 480h78.82c24.32 0 47.86-8.53 66.54-24.09l11.77-9.81c10.18-8.49 11.56-23.62 3.07-33.8l-20.49-24.59c-8.49-10.19-23.62-11.56-33.81-3.07l-11.75 9.8a23.992 23.992 0 0 1-15.36 5.56H149.2c-11.69 0-21.2-9.52-21.2-21.2 0-5.91 2.48-11.58 6.81-15.58L164.3 336H368c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16H233.63l34.67-32H368z"]
};
var faICursor = {
  prefix: 'fas',
  iconName: 'i-cursor',
  icon: [256, 512, [], "f246", "M256 52.048V12.065C256 5.496 250.726.148 244.158.066 211.621-.344 166.469.011 128 37.959 90.266.736 46.979-.114 11.913.114 5.318.157 0 5.519 0 12.114v39.645c0 6.687 5.458 12.078 12.145 11.998C38.111 63.447 96 67.243 96 112.182V224H60c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h36v112c0 44.932-56.075 48.031-83.95 47.959C5.404 447.942 0 453.306 0 459.952v39.983c0 6.569 5.274 11.917 11.842 11.999 32.537.409 77.689.054 116.158-37.894 37.734 37.223 81.021 38.073 116.087 37.845 6.595-.043 11.913-5.405 11.913-12V460.24c0-6.687-5.458-12.078-12.145-11.998C217.889 448.553 160 444.939 160 400V288h36c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-36V112.182c0-44.932 56.075-48.213 83.95-48.142 6.646.018 12.05-5.346 12.05-11.992z"]
};
var faIceCream = {
  prefix: 'fas',
  iconName: 'ice-cream',
  icon: [448, 512, [], "f810", "M368 160h-.94a144 144 0 1 0-286.12 0H80a48 48 0 0 0 0 96h288a48 48 0 0 0 0-96zM195.38 493.69a31.52 31.52 0 0 0 57.24 0L352 288H96z"]
};
var faIcicles = {
  prefix: 'fas',
  iconName: 'icicles',
  icon: [512, 512, [], "f7ad", "M511.4 37.9C515.1 18.2 500 0 480 0H32C10.6 0-4.8 20.7 1.4 41.2l87.1 273.4c2.5 7.2 12.7 7.2 15.1 0L140 190.5l44.2 187.3c1.9 8.3 13.7 8.3 15.6 0l46.5-196.9 34.1 133.4c2.3 7.6 13 7.6 15.3 0l45.8-172.5 66.7 363.8c1.7 8.6 14 8.6 15.7 0l87.5-467.7z"]
};
var faIcons = {
  prefix: 'fas',
  iconName: 'icons',
  icon: [512, 512, [], "f86d", "M116.65 219.35a15.68 15.68 0 0 0 22.65 0l96.75-99.83c28.15-29 26.5-77.1-4.91-103.88C203.75-7.7 163-3.5 137.86 22.44L128 32.58l-9.85-10.14C93.05-3.5 52.25-7.7 24.86 15.64c-31.41 26.78-33 74.85-5 103.88zm143.92 100.49h-48l-7.08-14.24a27.39 27.39 0 0 0-25.66-17.78h-71.71a27.39 27.39 0 0 0-25.66 17.78l-7 14.24h-48A27.45 27.45 0 0 0 0 347.3v137.25A27.44 27.44 0 0 0 27.43 512h233.14A27.45 27.45 0 0 0 288 484.55V347.3a27.45 27.45 0 0 0-27.43-27.46zM144 468a52 52 0 1 1 52-52 52 52 0 0 1-52 52zm355.4-115.9h-60.58l22.36-50.75c2.1-6.65-3.93-13.21-12.18-13.21h-75.59c-6.3 0-11.66 3.9-12.5 9.1l-16.8 106.93c-1 6.3 4.88 11.89 12.5 11.89h62.31l-24.2 83c-1.89 6.65 4.2 12.9 12.23 12.9a13.26 13.26 0 0 0 10.92-5.25l92.4-138.91c4.88-6.91-1.16-15.7-10.87-15.7zM478.08.33L329.51 23.17C314.87 25.42 304 38.92 304 54.83V161.6a83.25 83.25 0 0 0-16-1.7c-35.35 0-64 21.48-64 48s28.65 48 64 48c35.2 0 63.73-21.32 64-47.66V99.66l112-17.22v47.18a83.25 83.25 0 0 0-16-1.7c-35.35 0-64 21.48-64 48s28.65 48 64 48c35.2 0 63.73-21.32 64-47.66V32c0-19.48-16-34.42-33.92-31.67z"]
};
var faIdBadge = {
  prefix: 'fas',
  iconName: 'id-badge',
  icon: [384, 512, [], "f2c1", "M336 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM144 32h96c8.8 0 16 7.2 16 16s-7.2 16-16 16h-96c-8.8 0-16-7.2-16-16s7.2-16 16-16zm48 128c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H102.4C90 416 80 407.4 80 396.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"]
};
var faIdCard = {
  prefix: 'fas',
  iconName: 'id-card',
  icon: [576, 512, [], "f2c2", "M528 32H48C21.5 32 0 53.5 0 80v16h576V80c0-26.5-21.5-48-48-48zM0 432c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V128H0v304zm352-232c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zm0 64c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zm0 64c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zM176 192c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zM67.1 396.2C75.5 370.5 99.6 352 128 352h8.2c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h8.2c28.4 0 52.5 18.5 60.9 44.2 3.2 9.9-5.2 19.8-15.6 19.8H82.7c-10.4 0-18.8-10-15.6-19.8z"]
};
var faIdCardAlt = {
  prefix: 'fas',
  iconName: 'id-card-alt',
  icon: [576, 512, [], "f47f", "M528 64H384v96H192V64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM288 224c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm93.3 224H194.7c-10.4 0-18.8-10-15.6-19.8 8.3-25.6 32.4-44.2 60.9-44.2h8.2c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h8.2c28.4 0 52.5 18.5 60.9 44.2 3.2 9.8-5.2 19.8-15.6 19.8zM352 32c0-17.7-14.3-32-32-32h-64c-17.7 0-32 14.3-32 32v96h128V32z"]
};
var faIgloo = {
  prefix: 'fas',
  iconName: 'igloo',
  icon: [576, 512, [], "f7ae", "M320 33.9c-10.5-1.2-21.2-1.9-32-1.9-99.8 0-187.8 50.8-239.4 128H320V33.9zM96 192H30.3C11.1 230.6 0 274 0 320h96V192zM352 39.4V160h175.4C487.2 99.9 424.8 55.9 352 39.4zM480 320h96c0-46-11.1-89.4-30.3-128H480v128zm-64 64v96h128c17.7 0 32-14.3 32-32v-96H411.5c2.6 10.3 4.5 20.9 4.5 32zm32-192H128v128h49.8c22.2-38.1 63-64 110.2-64s88 25.9 110.2 64H448V192zM0 448c0 17.7 14.3 32 32 32h128v-96c0-11.1 1.9-21.7 4.5-32H0v96zm288-160c-53 0-96 43-96 96v96h192v-96c0-53-43-96-96-96z"]
};
var faImage = {
  prefix: 'fas',
  iconName: 'image',
  icon: [512, 512, [], "f03e", "M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"]
};
var faImages = {
  prefix: 'fas',
  iconName: 'images',
  icon: [576, 512, [], "f302", "M480 416v16c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V176c0-26.51 21.49-48 48-48h16v208c0 44.112 35.888 80 80 80h336zm96-80V80c0-26.51-21.49-48-48-48H144c-26.51 0-48 21.49-48 48v256c0 26.51 21.49 48 48 48h384c26.51 0 48-21.49 48-48zM256 128c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-96 144l55.515-55.515c4.686-4.686 12.284-4.686 16.971 0L272 256l135.515-135.515c4.686-4.686 12.284-4.686 16.971 0L512 208v112H160v-48z"]
};
var faInbox = {
  prefix: 'fas',
  iconName: 'inbox',
  icon: [576, 512, [], "f01c", "M567.938 243.908L462.25 85.374A48.003 48.003 0 0 0 422.311 64H153.689a48 48 0 0 0-39.938 21.374L8.062 243.908A47.994 47.994 0 0 0 0 270.533V400c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V270.533a47.994 47.994 0 0 0-8.062-26.625zM162.252 128h251.497l85.333 128H376l-32 64H232l-32-64H76.918l85.334-128z"]
};
var faIndent = {
  prefix: 'fas',
  iconName: 'indent',
  icon: [448, 512, [], "f03c", "M27.31 363.3l96-96a16 16 0 0 0 0-22.62l-96-96C17.27 138.66 0 145.78 0 160v192c0 14.31 17.33 21.3 27.31 11.3zM432 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm3.17-128H204.83A12.82 12.82 0 0 0 192 300.83v38.34A12.82 12.82 0 0 0 204.83 352h230.34A12.82 12.82 0 0 0 448 339.17v-38.34A12.82 12.82 0 0 0 435.17 288zm0-128H204.83A12.82 12.82 0 0 0 192 172.83v38.34A12.82 12.82 0 0 0 204.83 224h230.34A12.82 12.82 0 0 0 448 211.17v-38.34A12.82 12.82 0 0 0 435.17 160zM432 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
};
var faIndustry = {
  prefix: 'fas',
  iconName: 'industry',
  icon: [512, 512, [], "f275", "M475.115 163.781L336 252.309v-68.28c0-18.916-20.931-30.399-36.885-20.248L160 252.309V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56v400c0 13.255 10.745 24 24 24h464c13.255 0 24-10.745 24-24V184.029c0-18.917-20.931-30.399-36.885-20.248z"]
};
var faInfinity = {
  prefix: 'fas',
  iconName: 'infinity',
  icon: [640, 512, [], "f534", "M471.1 96C405 96 353.3 137.3 320 174.6 286.7 137.3 235 96 168.9 96 75.8 96 0 167.8 0 256s75.8 160 168.9 160c66.1 0 117.8-41.3 151.1-78.6 33.3 37.3 85 78.6 151.1 78.6 93.1 0 168.9-71.8 168.9-160S564.2 96 471.1 96zM168.9 320c-40.2 0-72.9-28.7-72.9-64s32.7-64 72.9-64c38.2 0 73.4 36.1 94 64-20.4 27.6-55.9 64-94 64zm302.2 0c-38.2 0-73.4-36.1-94-64 20.4-27.6 55.9-64 94-64 40.2 0 72.9 28.7 72.9 64s-32.7 64-72.9 64z"]
};
var faInfo = {
  prefix: 'fas',
  iconName: 'info',
  icon: [192, 512, [], "f129", "M20 424.229h20V279.771H20c-11.046 0-20-8.954-20-20V212c0-11.046 8.954-20 20-20h112c11.046 0 20 8.954 20 20v212.229h20c11.046 0 20 8.954 20 20V492c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20v-47.771c0-11.046 8.954-20 20-20zM96 0C56.235 0 24 32.235 24 72s32.235 72 72 72 72-32.235 72-72S135.764 0 96 0z"]
};
var faInfoCircle = {
  prefix: 'fas',
  iconName: 'info-circle',
  icon: [512, 512, [], "f05a", "M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"]
};
var faItalic = {
  prefix: 'fas',
  iconName: 'italic',
  icon: [320, 512, [], "f033", "M320 48v32a16 16 0 0 1-16 16h-62.76l-80 320H208a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H16a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h62.76l80-320H112a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h192a16 16 0 0 1 16 16z"]
};
var faJedi = {
  prefix: 'fas',
  iconName: 'jedi',
  icon: [576, 512, [], "f669", "M535.95308,352c-42.64069,94.17188-137.64086,160-247.9848,160q-6.39844,0-12.84377-.29688C171.15558,506.9375,81.26481,442.23438,40.01474,352H79.93668L21.3272,293.40625a264.82522,264.82522,0,0,1-5.10938-39.42187,273.6653,273.6653,0,0,1,.5-29.98438H63.93665L22.546,182.625A269.79782,269.79782,0,0,1,130.51489,20.54688a16.06393,16.06393,0,0,1,9.28127-3,16.36332,16.36332,0,0,1,13.5,7.25,16.02739,16.02739,0,0,1,1.625,15.09374,138.387,138.387,0,0,0-9.84376,51.26563c0,45.10937,21.04691,86.57813,57.71884,113.73437a16.29989,16.29989,0,0,1,1.20313,25.39063c-26.54692,23.98437-41.17194,56.5-41.17194,91.57813,0,60.03124,42.95319,110.28124,99.89079,121.92187l2.5-65.26563L238.062,397a8.33911,8.33911,0,0,1-10-.75,8.025,8.025,0,0,1-1.39063-9.9375l20.125-33.76562-42.06257-8.73438a7.9898,7.9898,0,0,1,0-15.65625l42.06257-8.71875-20.10941-33.73438a7.99122,7.99122,0,0,1,11.35939-10.71874L268.437,295.64062,279.95265,7.67188a7.97138,7.97138,0,0,1,8-7.67188h.04687a8.02064,8.02064,0,0,1,7.95314,7.70312L307.48394,295.625l30.39068-20.67188a8.08327,8.08327,0,0,1,10,.8125,7.99866,7.99866,0,0,1,1.39062,9.90626L329.12461,319.4375l42.07819,8.73438a7.99373,7.99373,0,0,1,0,15.65624l-42.07819,8.71876,20.1094,33.73437a7.97791,7.97791,0,0,1-1.32812,9.92187A8.25739,8.25739,0,0,1,337.87462,397L310.7027,378.53125l2.5,65.34375c48.48446-9.40625,87.57828-48.15625,97.31267-96.5A123.52652,123.52652,0,0,0,371.9528,230.29688a16.30634,16.30634,0,0,1,1.20313-25.42188c36.65631-27.17188,57.6876-68.60938,57.6876-113.73438a138.01689,138.01689,0,0,0-9.85939-51.3125,15.98132,15.98132,0,0,1,1.60937-15.09374,16.36914,16.36914,0,0,1,13.5-7.23438,16.02453,16.02453,0,0,1,9.25,2.98438A271.26947,271.26947,0,0,1,553.25,182.76562L511.99992,224h46.9532C559.3125,229.76562,560,235.45312,560,241.26562a270.092,270.092,0,0,1-5.125,51.85938L495.98427,352Z"]
};
var faJoint = {
  prefix: 'fas',
  iconName: 'joint',
  icon: [640, 512, [], "f595", "M444.34 181.1c22.38 15.68 35.66 41.16 35.66 68.59V280c0 4.42 3.58 8 8 8h48c4.42 0 8-3.58 8-8v-30.31c0-43.24-21.01-83.41-56.34-108.06C463.85 125.02 448 99.34 448 70.31V8c0-4.42-3.58-8-8-8h-48c-4.42 0-8 3.58-8 8v66.4c0 43.69 24.56 81.63 60.34 106.7zM194.97 358.98C126.03 370.07 59.69 394.69 0 432c83.65 52.28 180.3 80 278.94 80h88.57L254.79 380.49c-14.74-17.2-37.45-25.11-59.82-21.51zM553.28 87.09c-5.67-3.8-9.28-9.96-9.28-16.78V8c0-4.42-3.58-8-8-8h-48c-4.42 0-8 3.58-8 8v62.31c0 22.02 10.17 43.41 28.64 55.39C550.79 153.04 576 199.54 576 249.69V280c0 4.42 3.58 8 8 8h48c4.42 0 8-3.58 8-8v-30.31c0-65.44-32.41-126.19-86.72-162.6zM360.89 352.05c-34.4.06-86.81.15-88.21.17l117.8 137.43A63.987 63.987 0 0 0 439.07 512h88.45L409.57 374.4a63.955 63.955 0 0 0-48.68-22.35zM616 352H432l117.99 137.65A63.987 63.987 0 0 0 598.58 512H616c13.25 0 24-10.75 24-24V376c0-13.26-10.75-24-24-24z"]
};
var faJournalWhills = {
  prefix: 'fas',
  iconName: 'journal-whills',
  icon: [448, 512, [], "f66a", "M438.40625,377.59375c-3.20313,12.8125-3.20313,57.60937,0,73.60937Q447.9922,460.78907,448,470.40625v16c0,16-12.79688,25.59375-25.59375,25.59375H96c-54.40625,0-96-41.59375-96-96V96C0,41.59375,41.59375,0,96,0H422.40625C438.40625,0,448,9.59375,448,25.59375v332.8125Q448,372.79688,438.40625,377.59375ZM380.79688,384H96c-16,0-32,12.79688-32,32s12.79688,32,32,32H380.79688ZM128.01562,176.01562c0,.51563.14063.98438.14063,1.5l37.10937,32.46876A7.99954,7.99954,0,0,1,160,224h-.01562a9.17678,9.17678,0,0,1-5.25-1.98438L131.14062,201.375C142.6875,250.95312,186.90625,288,240,288s97.3125-37.04688,108.875-86.625l-23.59375,20.64062a8.02516,8.02516,0,0,1-5.26563,1.96876H320a9.14641,9.14641,0,0,1-6.01562-2.71876A9.26508,9.26508,0,0,1,312,216a9.097,9.097,0,0,1,2.73438-6.01562l37.10937-32.46876c.01563-.53124.15625-1,.15625-1.51562,0-11.04688-2.09375-21.51562-5.06251-31.59375l-21.26562,21.25a8.00467,8.00467,0,0,1-11.32812-11.3125l26.42187-26.40625a111.81517,111.81517,0,0,0-46.35937-49.26562,63.02336,63.02336,0,0,1-14.0625,82.64062A55.83846,55.83846,0,0,1,251.625,254.73438l-1.42188-34.28126,12.67188,8.625a3.967,3.967,0,0,0,2.25.6875,3.98059,3.98059,0,0,0,3.43749-6.03124l-8.53124-14.3125,17.90625-3.71876a4.00647,4.00647,0,0,0,0-7.84374l-17.90625-3.71876,8.53124-14.3125a3.98059,3.98059,0,0,0-3.43749-6.03124,4.726,4.726,0,0,0-2.25.67187L248.6875,184.125,244,71.82812a4.00386,4.00386,0,0,0-8,0l-4.625,110.8125-12-8.15624a4.003,4.003,0,0,0-5.68751,5.35937l8.53126,14.3125L204.3125,197.875a3.99686,3.99686,0,0,0,0,7.82812l17.90625,3.73438-8.53126,14.29688a4.72469,4.72469,0,0,0-.56249,2.04687,4.59547,4.59547,0,0,0,1.25,2.90625,4.01059,4.01059,0,0,0,2.75,1.09375,4.09016,4.09016,0,0,0,2.25-.6875l10.35937-7.04687L228.375,254.76562a55.86414,55.86414,0,0,1-28.71875-93.45312,63.01119,63.01119,0,0,1-14.04688-82.65625,111.93158,111.93158,0,0,0-46.375,49.26563l26.42187,26.42187a7.99917,7.99917,0,0,1-11.3125,11.3125l-21.26563-21.26563C130.09375,154.48438,128,164.95312,128.01562,176.01562Z"]
};
var faKaaba = {
  prefix: 'fas',
  iconName: 'kaaba',
  icon: [576, 512, [], "f66b", "M554.12 83.51L318.36 4.93a95.962 95.962 0 0 0-60.71 0L21.88 83.51A32.006 32.006 0 0 0 0 113.87v49.01l265.02-79.51c15.03-4.5 30.92-4.5 45.98 0l265 79.51v-49.01c0-13.77-8.81-26-21.88-30.36zm-279.9 30.52L0 196.3v228.38c0 15 10.42 27.98 25.06 31.24l242.12 53.8a95.937 95.937 0 0 0 41.65 0l242.12-53.8c14.64-3.25 25.06-16.24 25.06-31.24V196.29l-274.2-82.26c-9.04-2.72-18.59-2.72-27.59 0zM128 230.11c0 3.61-2.41 6.77-5.89 7.72l-80 21.82C37.02 261.03 32 257.2 32 251.93v-16.58c0-3.61 2.41-6.77 5.89-7.72l80-21.82c5.09-1.39 10.11 2.44 10.11 7.72v16.58zm144-39.28c0 3.61-2.41 6.77-5.89 7.72l-96 26.18c-5.09 1.39-10.11-2.44-10.11-7.72v-16.58c0-3.61 2.41-6.77 5.89-7.72l96-26.18c5.09-1.39 10.11 2.44 10.11 7.72v16.58zm176 22.7c0-5.28 5.02-9.11 10.11-7.72l80 21.82c3.48.95 5.89 4.11 5.89 7.72v16.58c0 5.28-5.02 9.11-10.11 7.72l-80-21.82a7.997 7.997 0 0 1-5.89-7.72v-16.58zm-144-39.27c0-5.28 5.02-9.11 10.11-7.72l96 26.18c3.48.95 5.89 4.11 5.89 7.72v16.58c0 5.28-5.02 9.11-10.11 7.72l-96-26.18a7.997 7.997 0 0 1-5.89-7.72v-16.58z"]
};
var faKey = {
  prefix: 'fas',
  iconName: 'key',
  icon: [512, 512, [], "f084", "M512 176.001C512 273.203 433.202 352 336 352c-11.22 0-22.19-1.062-32.827-3.069l-24.012 27.014A23.999 23.999 0 0 1 261.223 384H224v40c0 13.255-10.745 24-24 24h-40v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-78.059c0-6.365 2.529-12.47 7.029-16.971l161.802-161.802C163.108 213.814 160 195.271 160 176 160 78.798 238.797.001 335.999 0 433.488-.001 512 78.511 512 176.001zM336 128c0 26.51 21.49 48 48 48s48-21.49 48-48-21.49-48-48-48-48 21.49-48 48z"]
};
var faKeyboard = {
  prefix: 'fas',
  iconName: 'keyboard',
  icon: [576, 512, [], "f11c", "M528 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM128 180v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm288 0v-40c0-6.627-5.373-12-12-12H172c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h232c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12z"]
};
var faKhanda = {
  prefix: 'fas',
  iconName: 'khanda',
  icon: [512, 512, [], "f66d", "M415.81 66c-6.37-3.5-14.37-2.33-19.36 3.02a15.974 15.974 0 0 0-1.91 19.52c16.49 26.16 25.2 56.39 25.2 87.41-.19 53.25-26.77 102.69-71.27 132.41l-76.63 53.35v-20.1l44.05-36.09c3.92-4.2 5-10.09 2.81-15.28L310.85 273c33.84-19.26 56.94-55.25 56.94-96.99 0-40.79-22.02-76.13-54.59-95.71l5.22-11.44c2.34-5.53.93-11.83-3.57-16.04L255.86 0l-58.99 52.81c-4.5 4.21-5.9 10.51-3.57 16.04l5.22 11.44c-32.57 19.58-54.59 54.93-54.59 95.72 0 41.75 23.09 77.73 56.94 96.99l-7.85 17.24c-2.19 5.18-1.1 11.07 2.81 15.28l44.05 36.09v19.9l-76.59-53.33C119.02 278.62 92.44 229.19 92.26 176c0-31.08 8.71-61.31 25.2-87.47 3.87-6.16 2.4-13.77-2.59-19.08-5-5.34-13.68-6.2-20.02-2.7C16.32 109.6-22.3 205.3 13.36 295.99c7.07 17.99 17.89 34.38 30.46 49.06l55.97 65.36c4.87 5.69 13.04 7.24 19.65 3.72l79.35-42.23L228 392.23l-47.08 32.78c-1.67-.37-3.23-1.01-5.01-1.01-13.25 0-23.99 10.74-23.99 24 0 13.25 10.74 24 23.99 24 12.1 0 21.69-9.11 23.33-20.76l40.63-28.28v29.95c-9.39 5.57-15.99 15.38-15.99 27.1 0 17.67 14.32 32 31.98 32s31.98-14.33 31.98-32c0-11.71-6.61-21.52-15.99-27.1v-30.15l40.91 28.48C314.41 462.89 324 472 336.09 472c13.25 0 23.99-10.75 23.99-24 0-13.26-10.74-24-23.99-24-1.78 0-3.34.64-5.01 1.01L284 392.23l29.21-20.34 79.35 42.23c6.61 3.52 14.78 1.97 19.65-3.71l52.51-61.31c18.87-22.02 34-47.5 41.25-75.59 21.62-83.66-16.45-167.27-90.16-207.51zm-95.99 110c0 22.3-11.49 41.92-28.83 53.38l-5.65-12.41c-8.75-24.52-8.75-51.04 0-75.56l7.83-17.18c16.07 11.65 26.65 30.45 26.65 51.77zm-127.93 0c0-21.32 10.58-40.12 26.66-51.76l7.83 17.18c8.75 24.52 8.75 51.03 0 75.56l-5.65 12.41c-17.34-11.46-28.84-31.09-28.84-53.39z"]
};
var faKiss = {
  prefix: 'fas',
  iconName: 'kiss',
  icon: [496, 512, [], "f596", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-80 232c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm136 156c0 19.2-28.7 41.5-71.5 44-8.5.8-12.1-11.8-3.6-15.4l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-6-2.5-6.1-12.2 0-14.8l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-8.6-3.6-4.8-16.5 3.6-15.4 42.8 2.5 71.5 24.8 71.5 44 0 13-13.4 27.3-35.2 36C290.6 368.7 304 383 304 396zm24-156c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]
};
var faKissBeam = {
  prefix: 'fas',
  iconName: 'kiss-beam',
  icon: [496, 512, [], "f597", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-39 219.9l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.5 8.5-10.9 12-15.1 4.5zM304 396c0 19.2-28.7 41.5-71.5 44-8.5.8-12.1-11.8-3.6-15.4l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-6-2.5-6.1-12.2 0-14.8l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-8.6-3.6-4.8-16.5 3.6-15.4 42.8 2.5 71.5 24.8 71.5 44 0 13-13.4 27.3-35.2 36C290.6 368.7 304 383 304 396zm65-168.1l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.3-15.6 4-14.9-4.5 3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.5 8.5-10.9 12-15.1 4.5z"]
};
var faKissWinkHeart = {
  prefix: 'fas',
  iconName: 'kiss-wink-heart',
  icon: [504, 512, [], "f598", "M501.1 402.5c-8-20.8-31.5-31.5-53.1-25.9l-8.4 2.2-2.3-8.4c-5.9-21.4-27-36.5-49-33-25.2 4-40.6 28.6-34 52.6l22.9 82.6c1.5 5.3 7 8.5 12.4 7.1l83-21.5c24.1-6.3 37.7-31.8 28.5-55.7zm-177.6-4c-5.6-20.3-2.3-42 9-59.7 29.7-46.3 98.7-45.5 127.8 4.3 6.4.1 12.6 1.4 18.6 2.9 10.9-27.9 17.1-58.2 17.1-90C496 119 385 8 248 8S0 119 0 256s111 248 248 248c35.4 0 68.9-7.5 99.4-20.9-.3-.7-23.9-84.6-23.9-84.6zM168 240c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm120 156c0 19.2-28.7 41.5-71.5 44-8.5.8-12.1-11.8-3.6-15.4l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-6-2.5-5.7-12.3 0-14.8l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-8.8-3.7-4.6-16.6 3.6-15.4 42.8 2.5 71.5 24.8 71.5 44 0 13-13.4 27.3-35.2 36C274.6 368.7 288 383 288 396zm16-179c-8.3 7.4-21.6.4-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S400 181 404 206.2c1.7 11.1-11.3 18.3-19.8 10.8l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L304 217z"]
};
var faKiwiBird = {
  prefix: 'fas',
  iconName: 'kiwi-bird',
  icon: [576, 512, [], "f535", "M575.81 217.98C572.64 157.41 518.28 112 457.63 112h-9.37c-52.82 0-104.25-16.25-147.74-46.24-41.99-28.96-96.04-41.62-153.21-28.7C129.3 41.12-.08 78.24 0 224c.04 70.95 38.68 132.8 95.99 166.01V464c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-54.26c15.36 3.96 31.4 6.26 48 6.26 5.44 0 10.68-.73 16-1.18V464c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-59.43c14.24-5.06 27.88-11.39 40.34-19.51C342.07 355.25 393.86 336 448.46 336c25.48 0 16.01-.31 23.05-.78l74.41 136.44c2.86 5.23 8.3 8.34 14.05 8.34 1.31 0 2.64-.16 3.95-.5 7.09-1.8 12.05-8.19 12.05-15.5 0 0 .14-240.24-.16-246.02zM463.97 248c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm80 153.25l-39.86-73.08c15.12-5.83 28.73-14.6 39.86-25.98v99.06z"]
};
var faLandmark = {
  prefix: 'fas',
  iconName: 'landmark',
  icon: [512, 512, [], "f66f", "M501.62 92.11L267.24 2.04a31.958 31.958 0 0 0-22.47 0L10.38 92.11A16.001 16.001 0 0 0 0 107.09V144c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-36.91c0-6.67-4.14-12.64-10.38-14.98zM64 192v160H48c-8.84 0-16 7.16-16 16v48h448v-48c0-8.84-7.16-16-16-16h-16V192h-64v160h-96V192h-64v160h-96V192H64zm432 256H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]
};
var faLanguage = {
  prefix: 'fas',
  iconName: 'language',
  icon: [640, 512, [], "f1ab", "M152.1 236.2c-3.5-12.1-7.8-33.2-7.8-33.2h-.5s-4.3 21.1-7.8 33.2l-11.1 37.5H163zM616 96H336v320h280c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24zm-24 120c0 6.6-5.4 12-12 12h-11.4c-6.9 23.6-21.7 47.4-42.7 69.9 8.4 6.4 17.1 12.5 26.1 18 5.5 3.4 7.3 10.5 4.1 16.2l-7.9 13.9c-3.4 5.9-10.9 7.8-16.7 4.3-12.6-7.8-24.5-16.1-35.4-24.9-10.9 8.7-22.7 17.1-35.4 24.9-5.8 3.5-13.3 1.6-16.7-4.3l-7.9-13.9c-3.2-5.6-1.4-12.8 4.2-16.2 9.3-5.7 18-11.7 26.1-18-7.9-8.4-14.9-17-21-25.7-4-5.7-2.2-13.6 3.7-17.1l6.5-3.9 7.3-4.3c5.4-3.2 12.4-1.7 16 3.4 5 7 10.8 14 17.4 20.9 13.5-14.2 23.8-28.9 30-43.2H412c-6.6 0-12-5.4-12-12v-16c0-6.6 5.4-12 12-12h64v-16c0-6.6 5.4-12 12-12h16c6.6 0 12 5.4 12 12v16h64c6.6 0 12 5.4 12 12zM0 120v272c0 13.3 10.7 24 24 24h280V96H24c-13.3 0-24 10.7-24 24zm58.9 216.1L116.4 167c1.7-4.9 6.2-8.1 11.4-8.1h32.5c5.1 0 9.7 3.3 11.4 8.1l57.5 169.1c2.6 7.8-3.1 15.9-11.4 15.9h-22.9a12 12 0 0 1-11.5-8.6l-9.4-31.9h-60.2l-9.1 31.8c-1.5 5.1-6.2 8.7-11.5 8.7H70.3c-8.2 0-14-8.1-11.4-15.9z"]
};
var faLaptop = {
  prefix: 'fas',
  iconName: 'laptop',
  icon: [640, 512, [], "f109", "M624 416H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33.02-17.47-32.77-32H16c-8.8 0-16 7.2-16 16v16c0 35.2 28.8 64 64 64h512c35.2 0 64-28.8 64-64v-16c0-8.8-7.2-16-16-16zM576 48c0-26.4-21.6-48-48-48H112C85.6 0 64 21.6 64 48v336h512V48zm-64 272H128V64h384v256z"]
};
var faLaptopCode = {
  prefix: 'fas',
  iconName: 'laptop-code',
  icon: [640, 512, [], "f5fc", "M255.03 261.65c6.25 6.25 16.38 6.25 22.63 0l11.31-11.31c6.25-6.25 6.25-16.38 0-22.63L253.25 192l35.71-35.72c6.25-6.25 6.25-16.38 0-22.63l-11.31-11.31c-6.25-6.25-16.38-6.25-22.63 0l-58.34 58.34c-6.25 6.25-6.25 16.38 0 22.63l58.35 58.34zm96.01-11.3l11.31 11.31c6.25 6.25 16.38 6.25 22.63 0l58.34-58.34c6.25-6.25 6.25-16.38 0-22.63l-58.34-58.34c-6.25-6.25-16.38-6.25-22.63 0l-11.31 11.31c-6.25 6.25-6.25 16.38 0 22.63L386.75 192l-35.71 35.72c-6.25 6.25-6.25 16.38 0 22.63zM624 416H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33.02-17.47-32.77-32H16c-8.8 0-16 7.2-16 16v16c0 35.2 28.8 64 64 64h512c35.2 0 64-28.8 64-64v-16c0-8.8-7.2-16-16-16zM576 48c0-26.4-21.6-48-48-48H112C85.6 0 64 21.6 64 48v336h512V48zm-64 272H128V64h384v256z"]
};
var faLaptopHouse = {
  prefix: 'fas',
  iconName: 'laptop-house',
  icon: [640, 512, [], "e066", "M272,288H208a16,16,0,0,1-16-16V208a16,16,0,0,1,16-16h64a16,16,0,0,1,16,16v37.12C299.11,232.24,315,224,332.8,224H469.74l6.65-7.53A16.51,16.51,0,0,0,480,207a16.31,16.31,0,0,0-4.75-10.61L416,144V48a16,16,0,0,0-16-16H368a16,16,0,0,0-16,16V87.3L263.5,8.92C258,4,247.45,0,240.05,0s-17.93,4-23.47,8.92L4.78,196.42A16.15,16.15,0,0,0,0,207a16.4,16.4,0,0,0,3.55,9.39L22.34,237.7A16.22,16.22,0,0,0,33,242.48,16.51,16.51,0,0,0,42.34,239L64,219.88V384a32,32,0,0,0,32,32H272ZM629.33,448H592V288c0-17.67-12.89-32-28.8-32H332.8c-15.91,0-28.8,14.33-28.8,32V448H266.67A10.67,10.67,0,0,0,256,458.67v10.66A42.82,42.82,0,0,0,298.6,512H597.4A42.82,42.82,0,0,0,640,469.33V458.67A10.67,10.67,0,0,0,629.33,448ZM544,448H352V304H544Z"]
};
var faLaptopMedical = {
  prefix: 'fas',
  iconName: 'laptop-medical',
  icon: [640, 512, [], "f812", "M232 224h56v56a8 8 0 0 0 8 8h48a8 8 0 0 0 8-8v-56h56a8 8 0 0 0 8-8v-48a8 8 0 0 0-8-8h-56v-56a8 8 0 0 0-8-8h-48a8 8 0 0 0-8 8v56h-56a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8zM576 48a48.14 48.14 0 0 0-48-48H112a48.14 48.14 0 0 0-48 48v336h512zm-64 272H128V64h384zm112 96H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33-17.47-32.77-32H16a16 16 0 0 0-16 16v16a64.19 64.19 0 0 0 64 64h512a64.19 64.19 0 0 0 64-64v-16a16 16 0 0 0-16-16z"]
};
var faLaugh = {
  prefix: 'fas',
  iconName: 'laugh',
  icon: [496, 512, [], "f599", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 152c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm88 272h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18-8.9 71-69.5 126-142.9 126z"]
};
var faLaughBeam = {
  prefix: 'fas',
  iconName: 'laugh-beam',
  icon: [496, 512, [], "f59a", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm24 199.4c3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.8 4.1-15.1-4.5zm-160 0c3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.3 7.4-15.8 4-15.1-4.5zM398.9 306C390 377 329.4 432 256 432h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18z"]
};
var faLaughSquint = {
  prefix: 'fas',
  iconName: 'laugh-squint',
  icon: [496, 512, [], "f59b", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm33.8 161.7l80-48c11.6-6.9 24 7.7 15.4 18L343.6 180l33.6 40.3c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.7-4.7-7.7-15.9 0-20.6zm-163-30c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.8 4.7 7.8 15.9 0 20.6l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3zM398.9 306C390 377 329.4 432 256 432h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18z"]
};
var faLaughWink = {
  prefix: 'fas',
  iconName: 'laugh-wink',
  icon: [496, 512, [], "f59c", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm20.1 198.1c4-25.2 34.2-42.1 59.9-42.1s55.9 16.9 59.9 42.1c1.7 11.1-11.4 18.3-19.8 10.8l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L288 217c-8.4 7.4-21.6.3-19.9-10.9zM168 160c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm230.9 146C390 377 329.4 432 256 432h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18z"]
};
var faLayerGroup = {
  prefix: 'fas',
  iconName: 'layer-group',
  icon: [512, 512, [], "f5fd", "M12.41 148.02l232.94 105.67c6.8 3.09 14.49 3.09 21.29 0l232.94-105.67c16.55-7.51 16.55-32.52 0-40.03L266.65 2.31a25.607 25.607 0 0 0-21.29 0L12.41 107.98c-16.55 7.51-16.55 32.53 0 40.04zm487.18 88.28l-58.09-26.33-161.64 73.27c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.51 209.97l-58.1 26.33c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 276.3c16.55-7.5 16.55-32.5 0-40zm0 127.8l-57.87-26.23-161.86 73.37c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.29 337.87 12.41 364.1c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 404.1c16.55-7.5 16.55-32.5 0-40z"]
};
var faLeaf = {
  prefix: 'fas',
  iconName: 'leaf',
  icon: [576, 512, [], "f06c", "M546.2 9.7c-5.6-12.5-21.6-13-28.3-1.2C486.9 62.4 431.4 96 368 96h-80C182 96 96 182 96 288c0 7 .8 13.7 1.5 20.5C161.3 262.8 253.4 224 384 224c8.8 0 16 7.2 16 16s-7.2 16-16 16C132.6 256 26 410.1 2.4 468c-6.6 16.3 1.2 34.9 17.5 41.6 16.4 6.8 35-1.1 41.8-17.3 1.5-3.6 20.9-47.9 71.9-90.6 32.4 43.9 94 85.8 174.9 77.2C465.5 467.5 576 326.7 576 154.3c0-50.2-10.8-102.2-29.8-144.6z"]
};
var faLemon = {
  prefix: 'fas',
  iconName: 'lemon',
  icon: [512, 512, [], "f094", "M489.038 22.963C465.944-.13 434.648-5.93 413.947 6.129c-58.906 34.312-181.25-53.077-321.073 86.746S40.441 355.041 6.129 413.945c-12.059 20.702-6.26 51.999 16.833 75.093 23.095 23.095 54.392 28.891 75.095 16.832 58.901-34.31 181.246 53.079 321.068-86.743S471.56 156.96 505.871 98.056c12.059-20.702 6.261-51.999-16.833-75.093zM243.881 95.522c-58.189 14.547-133.808 90.155-148.358 148.358-1.817 7.27-8.342 12.124-15.511 12.124-1.284 0-2.59-.156-3.893-.481-8.572-2.144-13.784-10.83-11.642-19.403C81.901 166.427 166.316 81.93 236.119 64.478c8.575-2.143 17.261 3.069 19.403 11.642s-3.069 17.259-11.641 19.402z"]
};
var faLessThan = {
  prefix: 'fas',
  iconName: 'less-than',
  icon: [384, 512, [], "f536", "M365.46 357.74L147.04 255.89l218.47-101.88c16.02-7.47 22.95-26.51 15.48-42.53l-13.52-29C360 66.46 340.96 59.53 324.94 67L18.48 209.91a32.014 32.014 0 0 0-18.48 29v34.24c0 12.44 7.21 23.75 18.48 29l306.31 142.83c16.06 7.49 35.15.54 42.64-15.52l13.56-29.08c7.49-16.06.54-35.15-15.53-42.64z"]
};
var faLessThanEqual = {
  prefix: 'fas',
  iconName: 'less-than-equal',
  icon: [448, 512, [], "f537", "M54.98 214.2l301.41 119.87c18.39 6.03 38.71-2.54 45.38-19.15l12.09-30.08c6.68-16.61-2.82-34.97-21.21-41l-175.44-68.05 175.56-68.09c18.29-6 27.74-24.27 21.1-40.79l-12.03-29.92c-6.64-16.53-26.86-25.06-45.15-19.06L54.98 137.89C41.21 142.41 32 154.5 32 168.07v15.96c0 13.56 9.21 25.65 22.98 30.17zM424 400H24c-13.25 0-24 10.74-24 24v48c0 13.25 10.75 24 24 24h400c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24z"]
};
var faLevelDownAlt = {
  prefix: 'fas',
  iconName: 'level-down-alt',
  icon: [320, 512, [], "f3be", "M313.553 392.331L209.587 504.334c-9.485 10.214-25.676 10.229-35.174 0L70.438 392.331C56.232 377.031 67.062 352 88.025 352H152V80H68.024a11.996 11.996 0 0 1-8.485-3.515l-56-56C-4.021 12.926 1.333 0 12.024 0H208c13.255 0 24 10.745 24 24v328h63.966c20.878 0 31.851 24.969 17.587 40.331z"]
};
var faLevelUpAlt = {
  prefix: 'fas',
  iconName: 'level-up-alt',
  icon: [320, 512, [], "f3bf", "M313.553 119.669L209.587 7.666c-9.485-10.214-25.676-10.229-35.174 0L70.438 119.669C56.232 134.969 67.062 160 88.025 160H152v272H68.024a11.996 11.996 0 0 0-8.485 3.515l-56 56C-4.021 499.074 1.333 512 12.024 512H208c13.255 0 24-10.745 24-24V160h63.966c20.878 0 31.851-24.969 17.587-40.331z"]
};
var faLifeRing = {
  prefix: 'fas',
  iconName: 'life-ring',
  icon: [512, 512, [], "f1cd", "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm173.696 119.559l-63.399 63.399c-10.987-18.559-26.67-34.252-45.255-45.255l63.399-63.399a218.396 218.396 0 0 1 45.255 45.255zM256 352c-53.019 0-96-42.981-96-96s42.981-96 96-96 96 42.981 96 96-42.981 96-96 96zM127.559 82.304l63.399 63.399c-18.559 10.987-34.252 26.67-45.255 45.255l-63.399-63.399a218.372 218.372 0 0 1 45.255-45.255zM82.304 384.441l63.399-63.399c10.987 18.559 26.67 34.252 45.255 45.255l-63.399 63.399a218.396 218.396 0 0 1-45.255-45.255zm302.137 45.255l-63.399-63.399c18.559-10.987 34.252-26.67 45.255-45.255l63.399 63.399a218.403 218.403 0 0 1-45.255 45.255z"]
};
var faLightbulb = {
  prefix: 'fas',
  iconName: 'lightbulb',
  icon: [352, 512, [], "f0eb", "M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"]
};
var faLink = {
  prefix: 'fas',
  iconName: 'link',
  icon: [512, 512, [], "f0c1", "M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"]
};
var faLiraSign = {
  prefix: 'fas',
  iconName: 'lira-sign',
  icon: [384, 512, [], "f195", "M371.994 256h-48.019C317.64 256 312 260.912 312 267.246 312 368 230.179 416 144 416V256.781l134.603-29.912A12 12 0 0 0 288 215.155v-40.976c0-7.677-7.109-13.38-14.603-11.714L144 191.219V160.78l134.603-29.912A12 12 0 0 0 288 119.154V78.179c0-7.677-7.109-13.38-14.603-11.714L144 95.219V44c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v68.997L9.397 125.131A12 12 0 0 0 0 136.845v40.976c0 7.677 7.109 13.38 14.603 11.714L64 178.558v30.439L9.397 221.131A12 12 0 0 0 0 232.845v40.976c0 7.677 7.109 13.38 14.603 11.714L64 274.558V468c0 6.627 5.373 12 12 12h79.583c134.091 0 223.255-77.834 228.408-211.592.261-6.782-5.211-12.408-11.997-12.408z"]
};
var faList = {
  prefix: 'fas',
  iconName: 'list',
  icon: [512, 512, [], "f03a", "M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
};
var faListAlt = {
  prefix: 'fas',
  iconName: 'list-alt',
  icon: [512, 512, [], "f022", "M464 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zM128 120c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm288-136v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12z"]
};
var faListOl = {
  prefix: 'fas',
  iconName: 'list-ol',
  icon: [512, 512, [], "f0cb", "M61.77 401l17.5-20.15a19.92 19.92 0 0 0 5.07-14.19v-3.31C84.34 356 80.5 352 73 352H16a8 8 0 0 0-8 8v16a8 8 0 0 0 8 8h22.83a157.41 157.41 0 0 0-11 12.31l-5.61 7c-4 5.07-5.25 10.13-2.8 14.88l1.05 1.93c3 5.76 6.29 7.88 12.25 7.88h4.73c10.33 0 15.94 2.44 15.94 9.09 0 4.72-4.2 8.22-14.36 8.22a41.54 41.54 0 0 1-15.47-3.12c-6.49-3.88-11.74-3.5-15.6 3.12l-5.59 9.31c-3.72 6.13-3.19 11.72 2.63 15.94 7.71 4.69 20.38 9.44 37 9.44 34.16 0 48.5-22.75 48.5-44.12-.03-14.38-9.12-29.76-28.73-34.88zM496 224H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM16 160h64a8 8 0 0 0 8-8v-16a8 8 0 0 0-8-8H64V40a8 8 0 0 0-8-8H32a8 8 0 0 0-7.14 4.42l-8 16A8 8 0 0 0 24 64h8v64H16a8 8 0 0 0-8 8v16a8 8 0 0 0 8 8zm-3.91 160H80a8 8 0 0 0 8-8v-16a8 8 0 0 0-8-8H41.32c3.29-10.29 48.34-18.68 48.34-56.44 0-29.06-25-39.56-44.47-39.56-21.36 0-33.8 10-40.46 18.75-4.37 5.59-3 10.84 2.8 15.37l8.58 6.88c5.61 4.56 11 2.47 16.12-2.44a13.44 13.44 0 0 1 9.46-3.84c3.33 0 9.28 1.56 9.28 8.75C51 248.19 0 257.31 0 304.59v4C0 316 5.08 320 12.09 320z"]
};
var faListUl = {
  prefix: 'fas',
  iconName: 'list-ul',
  icon: [512, 512, [], "f0ca", "M48 48a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm0 160a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm0 160a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm448 16H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
};
var faLocationArrow = {
  prefix: 'fas',
  iconName: 'location-arrow',
  icon: [512, 512, [], "f124", "M444.52 3.52L28.74 195.42c-47.97 22.39-31.98 92.75 19.19 92.75h175.91v175.91c0 51.17 70.36 67.17 92.75 19.19l191.9-415.78c15.99-38.39-25.59-79.97-63.97-63.97z"]
};
var faLock = {
  prefix: 'fas',
  iconName: 'lock',
  icon: [448, 512, [], "f023", "M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"]
};
var faLockOpen = {
  prefix: 'fas',
  iconName: 'lock-open',
  icon: [576, 512, [], "f3c1", "M423.5 0C339.5.3 272 69.5 272 153.5V224H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48h-48v-71.1c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v80c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-80C576 68 507.5-.3 423.5 0z"]
};
var faLongArrowAltDown = {
  prefix: 'fas',
  iconName: 'long-arrow-alt-down',
  icon: [256, 512, [], "f309", "M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z"]
};
var faLongArrowAltLeft = {
  prefix: 'fas',
  iconName: 'long-arrow-alt-left',
  icon: [448, 512, [], "f30a", "M134.059 296H436c6.627 0 12-5.373 12-12v-56c0-6.627-5.373-12-12-12H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.569 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296z"]
};
var faLongArrowAltRight = {
  prefix: 'fas',
  iconName: 'long-arrow-alt-right',
  icon: [448, 512, [], "f30b", "M313.941 216H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h301.941v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.569 0-33.941l-86.059-86.059c-15.119-15.119-40.971-4.411-40.971 16.971V216z"]
};
var faLongArrowAltUp = {
  prefix: 'fas',
  iconName: 'long-arrow-alt-up',
  icon: [256, 512, [], "f30c", "M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z"]
};
var faLowVision = {
  prefix: 'fas',
  iconName: 'low-vision',
  icon: [576, 512, [], "f2a8", "M569.344 231.631C512.96 135.949 407.81 72 288 72c-28.468 0-56.102 3.619-82.451 10.409L152.778 10.24c-7.601-10.858-22.564-13.5-33.423-5.9l-13.114 9.178c-10.86 7.601-13.502 22.566-5.9 33.426l43.131 58.395C89.449 131.73 40.228 174.683 6.682 231.581c-.01.017-.023.033-.034.05-8.765 14.875-8.964 33.528 0 48.739 38.5 65.332 99.742 115.862 172.859 141.349L55.316 244.302A272.194 272.194 0 0 1 83.61 208.39l119.4 170.58h.01l40.63 58.04a330.055 330.055 0 0 0 78.94 1.17l-189.98-271.4a277.628 277.628 0 0 1 38.777-21.563l251.836 356.544c7.601 10.858 22.564 13.499 33.423 5.9l13.114-9.178c10.86-7.601 13.502-22.567 5.9-33.426l-43.12-58.377-.007-.009c57.161-27.978 104.835-72.04 136.81-126.301a47.938 47.938 0 0 0 .001-48.739zM390.026 345.94l-19.066-27.23c24.682-32.567 27.711-76.353 8.8-111.68v.03c0 23.65-19.17 42.82-42.82 42.82-23.828 0-42.82-19.349-42.82-42.82 0-23.65 19.17-42.82 42.82-42.82h.03c-24.75-13.249-53.522-15.643-79.51-7.68l-19.068-27.237C253.758 123.306 270.488 120 288 120c75.162 0 136 60.826 136 136 0 34.504-12.833 65.975-33.974 89.94z"]
};
var faLuggageCart = {
  prefix: 'fas',
  iconName: 'luggage-cart',
  icon: [640, 512, [], "f59d", "M224 320h32V96h-32c-17.67 0-32 14.33-32 32v160c0 17.67 14.33 32 32 32zm352-32V128c0-17.67-14.33-32-32-32h-32v224h32c17.67 0 32-14.33 32-32zm48 96H128V16c0-8.84-7.16-16-16-16H16C7.16 0 0 7.16 0 16v32c0 8.84 7.16 16 16 16h48v368c0 8.84 7.16 16 16 16h82.94c-1.79 5.03-2.94 10.36-2.94 16 0 26.51 21.49 48 48 48s48-21.49 48-48c0-5.64-1.15-10.97-2.94-16h197.88c-1.79 5.03-2.94 10.36-2.94 16 0 26.51 21.49 48 48 48s48-21.49 48-48c0-5.64-1.15-10.97-2.94-16H624c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM480 96V48c0-26.51-21.49-48-48-48h-96c-26.51 0-48 21.49-48 48v272h192V96zm-48 0h-96V48h96v48z"]
};
var faLungs = {
  prefix: 'fas',
  iconName: 'lungs',
  icon: [640, 512, [], "f604", "M636.11 390.15C614.44 308.85 580.07 231 534.1 159.13 511.98 124.56 498.03 96 454.05 96 415.36 96 384 125.42 384 161.71v60.11l-32.88-21.92a15.996 15.996 0 0 1-7.12-13.31V16c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v170.59c0 5.35-2.67 10.34-7.12 13.31L256 221.82v-60.11C256 125.42 224.64 96 185.95 96c-43.98 0-57.93 28.56-80.05 63.13C59.93 231 25.56 308.85 3.89 390.15 1.3 399.84 0 409.79 0 419.78c0 61.23 62.48 105.44 125.24 88.62l59.5-15.95c42.18-11.3 71.26-47.47 71.26-88.62v-87.49l-85.84 57.23a7.992 7.992 0 0 1-11.09-2.22l-8.88-13.31a7.992 7.992 0 0 1 2.22-11.09L320 235.23l167.59 111.72a7.994 7.994 0 0 1 2.22 11.09l-8.88 13.31a7.994 7.994 0 0 1-11.09 2.22L384 316.34v87.49c0 41.15 29.08 77.31 71.26 88.62l59.5 15.95C577.52 525.22 640 481.01 640 419.78c0-9.99-1.3-19.94-3.89-29.63z"]
};
var faLungsVirus = {
  prefix: 'fas',
  iconName: 'lungs-virus',
  icon: [640, 512, [], "e067", "M344,150.68V16A16,16,0,0,0,328,0H312a16,16,0,0,0-16,16V150.68a46.45,46.45,0,0,1,48,0ZM195.54,444.46a48.06,48.06,0,0,1,0-67.88l8.58-8.58H192a48,48,0,0,1,0-96h12.12l-8.58-8.57a48,48,0,0,1,60.46-74V161.75C256,125.38,224.62,96,186,96c-44,0-58,28.5-80.12,63.13a819.52,819.52,0,0,0-102,231A113.16,113.16,0,0,0,0,419.75C0,481,62.5,525.26,125.25,508.38l59.5-15.87a98.51,98.51,0,0,0,52.5-34.75,46.49,46.49,0,0,1-41.71-13.3Zm226.29-22.63a16,16,0,0,0,0-22.62l-8.58-8.58C393.09,370.47,407.37,336,435.88,336H448a16,16,0,0,0,0-32H435.88c-28.51,0-42.79-34.47-22.63-54.62l8.58-8.58a16,16,0,0,0-22.63-22.63l-8.57,8.58C370.47,246.91,336,232.63,336,204.12V192a16,16,0,0,0-32,0v12.12c0,28.51-34.47,42.79-54.63,22.63l-8.57-8.58a16,16,0,0,0-22.63,22.63l8.58,8.58c20.16,20.15,5.88,54.62-22.63,54.62H192a16,16,0,0,0,0,32h12.12c28.51,0,42.79,34.47,22.63,54.63l-8.58,8.58a16,16,0,1,0,22.63,22.62l8.57-8.57C269.53,393.1,304,407.38,304,435.88V448a16,16,0,0,0,32,0V435.88c0-28.5,34.47-42.78,54.63-22.62l8.57,8.57a16,16,0,0,0,22.63,0ZM288,304a16,16,0,1,1,16-16A16,16,0,0,1,288,304Zm64,64a16,16,0,1,1,16-16A16,16,0,0,1,352,368Zm284.12,22.13a819.52,819.52,0,0,0-102-231C512,124.5,498,96,454,96c-38.62,0-70,29.38-70,65.75v27.72a48,48,0,0,1,60.46,74L435.88,272H448a48,48,0,0,1,0,96H435.88l8.58,8.58a47.7,47.7,0,0,1-41.71,81.18,98.51,98.51,0,0,0,52.5,34.75l59.5,15.87C577.5,525.26,640,481,640,419.75A113.16,113.16,0,0,0,636.12,390.13Z"]
};
var faMagic = {
  prefix: 'fas',
  iconName: 'magic',
  icon: [512, 512, [], "f0d0", "M224 96l16-32 32-16-32-16-16-32-16 32-32 16 32 16 16 32zM80 160l26.66-53.33L160 80l-53.34-26.67L80 0 53.34 53.33 0 80l53.34 26.67L80 160zm352 128l-26.66 53.33L352 368l53.34 26.67L432 448l26.66-53.33L512 368l-53.34-26.67L432 288zm70.62-193.77L417.77 9.38C411.53 3.12 403.34 0 395.15 0c-8.19 0-16.38 3.12-22.63 9.38L9.38 372.52c-12.5 12.5-12.5 32.76 0 45.25l84.85 84.85c6.25 6.25 14.44 9.37 22.62 9.37 8.19 0 16.38-3.12 22.63-9.37l363.14-363.15c12.5-12.48 12.5-32.75 0-45.24zM359.45 203.46l-50.91-50.91 86.6-86.6 50.91 50.91-86.6 86.6z"]
};
var faMagnet = {
  prefix: 'fas',
  iconName: 'magnet',
  icon: [512, 512, [], "f076", "M164.07 148.1H12a12 12 0 0 1-12-12v-80a36 36 0 0 1 36-36h104a36 36 0 0 1 36 36v80a11.89 11.89 0 0 1-11.93 12zm347.93-12V56a36 36 0 0 0-36-36H372a36 36 0 0 0-36 36v80a12 12 0 0 0 12 12h152a11.89 11.89 0 0 0 12-11.9zm-164 44a12 12 0 0 0-12 12v52c0 128.1-160 127.9-160 0v-52a12 12 0 0 0-12-12H12.1a12 12 0 0 0-12 12.1c.1 21.4.6 40.3 0 53.3 0 150.6 136.17 246.6 256.75 246.6s255-96 255-246.7c-.6-12.8-.2-33 0-53.2a12 12 0 0 0-12-12.1z"]
};
var faMailBulk = {
  prefix: 'fas',
  iconName: 'mail-bulk',
  icon: [576, 512, [], "f674", "M160 448c-25.6 0-51.2-22.4-64-32-64-44.8-83.2-60.8-96-70.4V480c0 17.67 14.33 32 32 32h256c17.67 0 32-14.33 32-32V345.6c-12.8 9.6-32 25.6-96 70.4-12.8 9.6-38.4 32-64 32zm128-192H32c-17.67 0-32 14.33-32 32v16c25.6 19.2 22.4 19.2 115.2 86.4 9.6 6.4 28.8 25.6 44.8 25.6s35.2-19.2 44.8-22.4c92.8-67.2 89.6-67.2 115.2-86.4V288c0-17.67-14.33-32-32-32zm256-96H224c-17.67 0-32 14.33-32 32v32h96c33.21 0 60.59 25.42 63.71 57.82l.29-.22V416h192c17.67 0 32-14.33 32-32V192c0-17.67-14.33-32-32-32zm-32 128h-64v-64h64v64zm-352-96c0-35.29 28.71-64 64-64h224V32c0-17.67-14.33-32-32-32H96C78.33 0 64 14.33 64 32v192h96v-32z"]
};
var faMale = {
  prefix: 'fas',
  iconName: 'male',
  icon: [192, 512, [], "f183", "M96 0c35.346 0 64 28.654 64 64s-28.654 64-64 64-64-28.654-64-64S60.654 0 96 0m48 144h-11.36c-22.711 10.443-49.59 10.894-73.28 0H48c-26.51 0-48 21.49-48 48v136c0 13.255 10.745 24 24 24h16v136c0 13.255 10.745 24 24 24h64c13.255 0 24-10.745 24-24V352h16c13.255 0 24-10.745 24-24V192c0-26.51-21.49-48-48-48z"]
};
var faMap = {
  prefix: 'fas',
  iconName: 'map',
  icon: [576, 512, [], "f279", "M0 117.66v346.32c0 11.32 11.43 19.06 21.94 14.86L160 416V32L20.12 87.95A32.006 32.006 0 0 0 0 117.66zM192 416l192 64V96L192 32v384zM554.06 33.16L416 96v384l139.88-55.95A31.996 31.996 0 0 0 576 394.34V48.02c0-11.32-11.43-19.06-21.94-14.86z"]
};
var faMapMarked = {
  prefix: 'fas',
  iconName: 'map-marked',
  icon: [576, 512, [], "f59f", "M288 0c-69.59 0-126 56.41-126 126 0 56.26 82.35 158.8 113.9 196.02 6.39 7.54 17.82 7.54 24.2 0C331.65 284.8 414 182.26 414 126 414 56.41 357.59 0 288 0zM20.12 215.95A32.006 32.006 0 0 0 0 245.66v250.32c0 11.32 11.43 19.06 21.94 14.86L160 448V214.92c-8.84-15.98-16.07-31.54-21.25-46.42L20.12 215.95zM288 359.67c-14.07 0-27.38-6.18-36.51-16.96-19.66-23.2-40.57-49.62-59.49-76.72v182l192 64V266c-18.92 27.09-39.82 53.52-59.49 76.72-9.13 10.77-22.44 16.95-36.51 16.95zm266.06-198.51L416 224v288l139.88-55.95A31.996 31.996 0 0 0 576 426.34V176.02c0-11.32-11.43-19.06-21.94-14.86z"]
};
var faMapMarkedAlt = {
  prefix: 'fas',
  iconName: 'map-marked-alt',
  icon: [576, 512, [], "f5a0", "M288 0c-69.59 0-126 56.41-126 126 0 56.26 82.35 158.8 113.9 196.02 6.39 7.54 17.82 7.54 24.2 0C331.65 284.8 414 182.26 414 126 414 56.41 357.59 0 288 0zm0 168c-23.2 0-42-18.8-42-42s18.8-42 42-42 42 18.8 42 42-18.8 42-42 42zM20.12 215.95A32.006 32.006 0 0 0 0 245.66v250.32c0 11.32 11.43 19.06 21.94 14.86L160 448V214.92c-8.84-15.98-16.07-31.54-21.25-46.42L20.12 215.95zM288 359.67c-14.07 0-27.38-6.18-36.51-16.96-19.66-23.2-40.57-49.62-59.49-76.72v182l192 64V266c-18.92 27.09-39.82 53.52-59.49 76.72-9.13 10.77-22.44 16.95-36.51 16.95zm266.06-198.51L416 224v288l139.88-55.95A31.996 31.996 0 0 0 576 426.34V176.02c0-11.32-11.43-19.06-21.94-14.86z"]
};
var faMapMarker = {
  prefix: 'fas',
  iconName: 'map-marker',
  icon: [384, 512, [], "f041", "M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0z"]
};
var faMapMarkerAlt = {
  prefix: 'fas',
  iconName: 'map-marker-alt',
  icon: [384, 512, [], "f3c5", "M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"]
};
var faMapPin = {
  prefix: 'fas',
  iconName: 'map-pin',
  icon: [288, 512, [], "f276", "M112 316.94v156.69l22.02 33.02c4.75 7.12 15.22 7.12 19.97 0L176 473.63V316.94c-10.39 1.92-21.06 3.06-32 3.06s-21.61-1.14-32-3.06zM144 0C64.47 0 0 64.47 0 144s64.47 144 144 144 144-64.47 144-144S223.53 0 144 0zm0 76c-37.5 0-68 30.5-68 68 0 6.62-5.38 12-12 12s-12-5.38-12-12c0-50.73 41.28-92 92-92 6.62 0 12 5.38 12 12s-5.38 12-12 12z"]
};
var faMapSigns = {
  prefix: 'fas',
  iconName: 'map-signs',
  icon: [512, 512, [], "f277", "M507.31 84.69L464 41.37c-6-6-14.14-9.37-22.63-9.37H288V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v16H56c-13.25 0-24 10.75-24 24v80c0 13.25 10.75 24 24 24h385.37c8.49 0 16.62-3.37 22.63-9.37l43.31-43.31c6.25-6.26 6.25-16.38 0-22.63zM224 496c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h-64v112zm232-272H288v-32h-64v32H70.63c-8.49 0-16.62 3.37-22.63 9.37L4.69 276.69c-6.25 6.25-6.25 16.38 0 22.63L48 342.63c6 6 14.14 9.37 22.63 9.37H456c13.25 0 24-10.75 24-24v-80c0-13.25-10.75-24-24-24z"]
};
var faMarker = {
  prefix: 'fas',
  iconName: 'marker',
  icon: [512, 512, [], "f5a1", "M93.95 290.03A327.038 327.038 0 0 0 .17 485.11l-.03.23c-1.7 15.28 11.21 28.2 26.49 26.51a327.02 327.02 0 0 0 195.34-93.8l75.4-75.4-128.02-128.02-75.4 75.4zM485.49 26.51c-35.35-35.35-92.67-35.35-128.02 0l-21.76 21.76-36.56-36.55c-15.62-15.62-40.95-15.62-56.56 0L138.47 115.84c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0l87.15-87.15 19.59 19.59L191.98 192 320 320.02l165.49-165.49c35.35-35.35 35.35-92.66 0-128.02z"]
};
var faMars = {
  prefix: 'fas',
  iconName: 'mars',
  icon: [384, 512, [], "f222", "M372 64h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7c-22.2-14-48.5-22.1-76.7-22.1C64.5 160 0 224.5 0 304s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V76c0-6.6-5.4-12-12-12zM144 384c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]
};
var faMarsDouble = {
  prefix: 'fas',
  iconName: 'mars-double',
  icon: [512, 512, [], "f227", "M340 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7C198.5 72.1 172.2 64 144 64 64.5 64 0 128.5 0 208s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.5 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12V12c0-6.6-5.4-12-12-12zM144 288c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80zm356-128.1h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7c-18.2-11.4-39-18.9-61.5-21.3-2.1 21.8-8.2 43.3-18.4 63.3 1.1 0 2.2-.1 3.2-.1 44.1 0 80 35.9 80 80s-35.9 80-80 80-80-35.9-80-80c0-1.1 0-2.2.1-3.2-20 10.2-41.5 16.4-63.3 18.4C168.4 455.6 229.6 512 304 512c79.5 0 144-64.5 144-144 0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.4 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12v-79c0-6.7-5.4-12.1-12-12.1z"]
};
var faMarsStroke = {
  prefix: 'fas',
  iconName: 'mars-stroke',
  icon: [384, 512, [], "f229", "M372 64h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-17.5 17.5-14.1-14.1c-4.7-4.7-12.3-4.7-17 0L224.5 133c-4.7 4.7-4.7 12.3 0 17l14.1 14.1-18 18c-22.2-14-48.5-22.1-76.7-22.1C64.5 160 0 224.5 0 304s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l18-18 14.1 14.1c4.7 4.7 12.3 4.7 17 0l28.3-28.3c4.7-4.7 4.7-12.3 0-17L329.2 164l17.5-17.5 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V76c-.1-6.6-5.5-12-12.1-12zM144 384c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]
};
var faMarsStrokeH = {
  prefix: 'fas',
  iconName: 'mars-stroke-h',
  icon: [480, 512, [], "f22b", "M476.2 247.5l-55.9-55.9c-7.6-7.6-20.5-2.2-20.5 8.5V224H376v-20c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v20h-27.6c-5.8-25.6-18.7-49.9-38.6-69.8C189.6 98 98.4 98 42.2 154.2c-56.2 56.2-56.2 147.4 0 203.6 56.2 56.2 147.4 56.2 203.6 0 19.9-19.9 32.8-44.2 38.6-69.8H312v20c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-20h23.9v23.9c0 10.7 12.9 16 20.5 8.5l55.9-55.9c4.6-4.7 4.6-12.3-.1-17zm-275.6 65.1c-31.2 31.2-81.9 31.2-113.1 0-31.2-31.2-31.2-81.9 0-113.1 31.2-31.2 81.9-31.2 113.1 0 31.2 31.1 31.2 81.9 0 113.1z"]
};
var faMarsStrokeV = {
  prefix: 'fas',
  iconName: 'mars-stroke-v',
  icon: [288, 512, [], "f22a", "M245.8 234.2c-19.9-19.9-44.2-32.8-69.8-38.6v-25.4h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V81.4h23.9c10.7 0 16-12.9 8.5-20.5L152.5 5.1c-4.7-4.7-12.3-4.7-17 0L79.6 61c-7.6 7.6-2.2 20.5 8.5 20.5H112v24.7H92c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h20v25.4c-25.6 5.8-49.9 18.7-69.8 38.6-56.2 56.2-56.2 147.4 0 203.6 56.2 56.2 147.4 56.2 203.6 0 56.3-56.2 56.3-147.4 0-203.6zm-45.2 158.4c-31.2 31.2-81.9 31.2-113.1 0-31.2-31.2-31.2-81.9 0-113.1 31.2-31.2 81.9-31.2 113.1 0 31.2 31.1 31.2 81.9 0 113.1z"]
};
var faMask = {
  prefix: 'fas',
  iconName: 'mask',
  icon: [640, 512, [], "f6fa", "M320.67 64c-442.6 0-357.57 384-158.46 384 39.9 0 77.47-20.69 101.42-55.86l25.73-37.79c15.66-22.99 46.97-22.99 62.63 0l25.73 37.79C401.66 427.31 439.23 448 479.13 448c189.86 0 290.63-384-158.46-384zM184 308.36c-41.06 0-67.76-25.66-80.08-41.05-5.23-6.53-5.23-16.09 0-22.63 12.32-15.4 39.01-41.05 80.08-41.05s67.76 25.66 80.08 41.05c5.23 6.53 5.23 16.09 0 22.63-12.32 15.4-39.02 41.05-80.08 41.05zm272 0c-41.06 0-67.76-25.66-80.08-41.05-5.23-6.53-5.23-16.09 0-22.63 12.32-15.4 39.01-41.05 80.08-41.05s67.76 25.66 80.08 41.05c5.23 6.53 5.23 16.09 0 22.63-12.32 15.4-39.02 41.05-80.08 41.05z"]
};
var faMedal = {
  prefix: 'fas',
  iconName: 'medal',
  icon: [512, 512, [], "f5a2", "M223.75 130.75L154.62 15.54A31.997 31.997 0 0 0 127.18 0H16.03C3.08 0-4.5 14.57 2.92 25.18l111.27 158.96c29.72-27.77 67.52-46.83 109.56-53.39zM495.97 0H384.82c-11.24 0-21.66 5.9-27.44 15.54l-69.13 115.21c42.04 6.56 79.84 25.62 109.56 53.38L509.08 25.18C516.5 14.57 508.92 0 495.97 0zM256 160c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm92.52 157.26l-37.93 36.96 8.97 52.22c1.6 9.36-8.26 16.51-16.65 12.09L256 393.88l-46.9 24.65c-8.4 4.45-18.25-2.74-16.65-12.09l8.97-52.22-37.93-36.96c-6.82-6.64-3.05-18.23 6.35-19.59l52.43-7.64 23.43-47.52c2.11-4.28 6.19-6.39 10.28-6.39 4.11 0 8.22 2.14 10.33 6.39l23.43 47.52 52.43 7.64c9.4 1.36 13.17 12.95 6.35 19.59z"]
};
var faMedkit = {
  prefix: 'fas',
  iconName: 'medkit',
  icon: [512, 512, [], "f0fa", "M96 480h320V128h-32V80c0-26.51-21.49-48-48-48H176c-26.51 0-48 21.49-48 48v48H96v352zm96-384h128v32H192V96zm320 80v256c0 26.51-21.49 48-48 48h-16V128h16c26.51 0 48 21.49 48 48zM64 480H48c-26.51 0-48-21.49-48-48V176c0-26.51 21.49-48 48-48h16v352zm288-208v32c0 8.837-7.163 16-16 16h-48v48c0 8.837-7.163 16-16 16h-32c-8.837 0-16-7.163-16-16v-48h-48c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h48v-48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v48h48c8.837 0 16 7.163 16 16z"]
};
var faMeh = {
  prefix: 'fas',
  iconName: 'meh',
  icon: [496, 512, [], "f11a", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm176 192H152c-21.2 0-21.2-32 0-32h192c21.2 0 21.2 32 0 32zm-16-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]
};
var faMehBlank = {
  prefix: 'fas',
  iconName: 'meh-blank',
  icon: [496, 512, [], "f5a4", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-80 232c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm160 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]
};
var faMehRollingEyes = {
  prefix: 'fas',
  iconName: 'meh-rolling-eyes',
  icon: [496, 512, [], "f5a5", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM88 224c0-24.3 13.7-45.2 33.6-56-.7 2.6-1.6 5.2-1.6 8 0 17.7 14.3 32 32 32s32-14.3 32-32c0-2.8-.9-5.4-1.6-8 19.9 10.8 33.6 31.7 33.6 56 0 35.3-28.7 64-64 64s-64-28.7-64-64zm224 176H184c-21.2 0-21.2-32 0-32h128c21.2 0 21.2 32 0 32zm32-112c-35.3 0-64-28.7-64-64 0-24.3 13.7-45.2 33.6-56-.7 2.6-1.6 5.2-1.6 8 0 17.7 14.3 32 32 32s32-14.3 32-32c0-2.8-.9-5.4-1.6-8 19.9 10.8 33.6 31.7 33.6 56 0 35.3-28.7 64-64 64z"]
};
var faMemory = {
  prefix: 'fas',
  iconName: 'memory',
  icon: [640, 512, [], "f538", "M640 130.94V96c0-17.67-14.33-32-32-32H32C14.33 64 0 78.33 0 96v34.94c18.6 6.61 32 24.19 32 45.06s-13.4 38.45-32 45.06V320h640v-98.94c-18.6-6.61-32-24.19-32-45.06s13.4-38.45 32-45.06zM224 256h-64V128h64v128zm128 0h-64V128h64v128zm128 0h-64V128h64v128zM0 448h64v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h128v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h128v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h128v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h64v-96H0v96z"]
};
var faMenorah = {
  prefix: 'fas',
  iconName: 'menorah',
  icon: [640, 512, [], "f676", "M144 128h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm96 0h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm192 0h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm96 0h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm80-32c17.67 0 32-14.33 32-32S608 0 608 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S512 0 512 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S416 0 416 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S320 0 320 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S224 0 224 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S128 0 128 0 96 46.33 96 64s14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S32 0 32 0 0 46.33 0 64s14.33 32 32 32zm544 192c0 17.67-14.33 32-32 32H352V144c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v176H96c-17.67 0-32-14.33-32-32V144c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v144c0 53.02 42.98 96 96 96h192v64H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16H352v-64h192c53.02 0 96-42.98 96-96V144c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v144z"]
};
var faMercury = {
  prefix: 'fas',
  iconName: 'mercury',
  icon: [288, 512, [], "f223", "M288 208c0-44.2-19.9-83.7-51.2-110.1 2.5-1.8 4.9-3.8 7.2-5.8 24.7-21.2 39.8-48.8 43.2-78.8.9-7.1-4.7-13.3-11.9-13.3h-40.5C229 0 224.1 4.1 223 9.8c-2.4 12.5-9.6 24.3-20.7 33.8C187 56.8 166.3 64 144 64s-43-7.2-58.4-20.4C74.5 34.1 67.4 22.3 64.9 9.8 63.8 4.1 58.9 0 53.2 0H12.7C5.5 0-.1 6.2.8 13.3 4.2 43.4 19.2 71 44 92.2c2.3 2 4.7 3.9 7.2 5.8C19.9 124.3 0 163.8 0 208c0 68.5 47.9 125.9 112 140.4V400H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80z"]
};
var faMeteor = {
  prefix: 'fas',
  iconName: 'meteor',
  icon: [512, 512, [], "f753", "M511.328,20.8027c-11.60759,38.70264-34.30724,111.70173-61.30311,187.70077,6.99893,2.09372,13.4042,4,18.60653,5.59368a16.06158,16.06158,0,0,1,9.49854,22.906c-22.106,42.29635-82.69047,152.795-142.47819,214.40356-.99984,1.09373-1.99969,2.5-2.99954,3.49995A194.83046,194.83046,0,1,1,57.085,179.41009c.99985-1,2.40588-2,3.49947-3,61.59994-59.90549,171.97367-120.40473,214.37343-142.4982a16.058,16.058,0,0,1,22.90274,9.49988c1.59351,5.09368,3.49947,11.5936,5.5929,18.59351C379.34818,35.00565,452.43074,12.30281,491.12794.70921A16.18325,16.18325,0,0,1,511.328,20.8027ZM319.951,320.00207A127.98041,127.98041,0,1,0,191.97061,448.00046,127.97573,127.97573,0,0,0,319.951,320.00207Zm-127.98041-31.9996a31.9951,31.9951,0,1,1-31.9951-31.9996A31.959,31.959,0,0,1,191.97061,288.00247Zm31.9951,79.999a15.99755,15.99755,0,1,1-15.99755-15.9998A16.04975,16.04975,0,0,1,223.96571,368.00147Z"]
};
var faMicrochip = {
  prefix: 'fas',
  iconName: 'microchip',
  icon: [512, 512, [], "f2db", "M416 48v416c0 26.51-21.49 48-48 48H144c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h224c26.51 0 48 21.49 48 48zm96 58v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42V88h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zM30 376h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6z"]
};
var faMicrophone = {
  prefix: 'fas',
  iconName: 'microphone',
  icon: [352, 512, [], "f130", "M176 352c53.02 0 96-42.98 96-96V96c0-53.02-42.98-96-96-96S80 42.98 80 96v160c0 53.02 42.98 96 96 96zm160-160h-16c-8.84 0-16 7.16-16 16v48c0 74.8-64.49 134.82-140.79 127.38C96.71 376.89 48 317.11 48 250.3V208c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v40.16c0 89.64 63.97 169.55 152 181.69V464H96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16h-56v-33.77C285.71 418.47 352 344.9 352 256v-48c0-8.84-7.16-16-16-16z"]
};
var faMicrophoneAlt = {
  prefix: 'fas',
  iconName: 'microphone-alt',
  icon: [352, 512, [], "f3c9", "M336 192h-16c-8.84 0-16 7.16-16 16v48c0 74.8-64.49 134.82-140.79 127.38C96.71 376.89 48 317.11 48 250.3V208c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v40.16c0 89.64 63.97 169.55 152 181.69V464H96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16h-56v-33.77C285.71 418.47 352 344.9 352 256v-48c0-8.84-7.16-16-16-16zM176 352c53.02 0 96-42.98 96-96h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H272v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H272v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H272c0-53.02-42.98-96-96-96S80 42.98 80 96v160c0 53.02 42.98 96 96 96z"]
};
var faMicrophoneAltSlash = {
  prefix: 'fas',
  iconName: 'microphone-alt-slash',
  icon: [640, 512, [], "f539", "M633.82 458.1L476.26 336.33C488.74 312.21 496 284.98 496 256v-48c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v48c0 17.92-3.96 34.8-10.72 50.2l-26.55-20.52c3.1-9.4 5.28-19.22 5.28-29.67h-43.67l-41.4-32H416v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H416v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H416c0-53.02-42.98-96-96-96s-96 42.98-96 96v45.36L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.36 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.41-6.97 4.16-17.02-2.82-22.45zM400 464h-56v-33.78c11.71-1.62 23.1-4.28 33.96-8.08l-50.4-38.96c-6.71.4-13.41.87-20.35.2-55.85-5.45-98.74-48.63-111.18-101.85L144 241.31v6.85c0 89.64 63.97 169.55 152 181.69V464h-56c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16z"]
};
var faMicrophoneSlash = {
  prefix: 'fas',
  iconName: 'microphone-slash',
  icon: [640, 512, [], "f131", "M633.82 458.1l-157.8-121.96C488.61 312.13 496 285.01 496 256v-48c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v48c0 17.92-3.96 34.8-10.72 50.2l-26.55-20.52c3.1-9.4 5.28-19.22 5.28-29.67V96c0-53.02-42.98-96-96-96s-96 42.98-96 96v45.36L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.36 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.41-6.97 4.16-17.02-2.82-22.45zM400 464h-56v-33.77c11.66-1.6 22.85-4.54 33.67-8.31l-50.11-38.73c-6.71.4-13.41.87-20.35.2-55.85-5.45-98.74-48.63-111.18-101.85L144 241.31v6.85c0 89.64 63.97 169.55 152 181.69V464h-56c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16z"]
};
var faMicroscope = {
  prefix: 'fas',
  iconName: 'microscope',
  icon: [512, 512, [], "f610", "M160 320h12v16c0 8.84 7.16 16 16 16h40c8.84 0 16-7.16 16-16v-16h12c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32V16c0-8.84-7.16-16-16-16h-64c-8.84 0-16 7.16-16 16v16c-17.67 0-32 14.33-32 32v224c0 17.67 14.33 32 32 32zm304 128h-1.29C493.24 413.99 512 369.2 512 320c0-105.88-86.12-192-192-192v64c70.58 0 128 57.42 128 128s-57.42 128-128 128H48c-26.51 0-48 21.49-48 48 0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16 0-26.51-21.49-48-48-48zm-360-32h208c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8H104c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8z"]
};
var faMinus = {
  prefix: 'fas',
  iconName: 'minus',
  icon: [448, 512, [], "f068", "M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]
};
var faMinusCircle = {
  prefix: 'fas',
  iconName: 'minus-circle',
  icon: [512, 512, [], "f056", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zM124 296c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h264c6.6 0 12 5.4 12 12v56c0 6.6-5.4 12-12 12H124z"]
};
var faMinusSquare = {
  prefix: 'fas',
  iconName: 'minus-square',
  icon: [448, 512, [], "f146", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM92 296c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h264c6.6 0 12 5.4 12 12v56c0 6.6-5.4 12-12 12H92z"]
};
var faMitten = {
  prefix: 'fas',
  iconName: 'mitten',
  icon: [448, 512, [], "f7b5", "M368 416H48c-8.8 0-16 7.2-16 16v64c0 8.8 7.2 16 16 16h320c8.8 0 16-7.2 16-16v-64c0-8.8-7.2-16-16-16zm57-209.1c-27.2-22.6-67.5-19-90.1 8.2l-20.9 25-29.6-128.4c-18-77.5-95.4-125.9-172.8-108C34.2 21.6-14.2 98.9 3.7 176.4L51.6 384h309l72.5-87c22.7-27.2 19-67.5-8.1-90.1z"]
};
var faMobile = {
  prefix: 'fas',
  iconName: 'mobile',
  icon: [320, 512, [], "f10b", "M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]
};
var faMobileAlt = {
  prefix: 'fas',
  iconName: 'mobile-alt',
  icon: [320, 512, [], "f3cd", "M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm112-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v312z"]
};
var faMoneyBill = {
  prefix: 'fas',
  iconName: 'money-bill',
  icon: [640, 512, [], "f0d6", "M608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 176c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 48h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"]
};
var faMoneyBillAlt = {
  prefix: 'fas',
  iconName: 'money-bill-alt',
  icon: [640, 512, [], "f3d1", "M352 288h-16v-88c0-4.42-3.58-8-8-8h-13.58c-4.74 0-9.37 1.4-13.31 4.03l-15.33 10.22a7.994 7.994 0 0 0-2.22 11.09l8.88 13.31a7.994 7.994 0 0 0 11.09 2.22l.47-.31V288h-16c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h64c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zM608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 192c-53.02 0-96-50.15-96-112 0-61.86 42.98-112 96-112s96 50.14 96 112c0 61.87-43 112-96 112zm272 32h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"]
};
var faMoneyBillWave = {
  prefix: 'fas',
  iconName: 'money-bill-wave',
  icon: [640, 512, [], "f53a", "M621.16 54.46C582.37 38.19 543.55 32 504.75 32c-123.17-.01-246.33 62.34-369.5 62.34-30.89 0-61.76-3.92-92.65-13.72-3.47-1.1-6.95-1.62-10.35-1.62C15.04 79 0 92.32 0 110.81v317.26c0 12.63 7.23 24.6 18.84 29.46C57.63 473.81 96.45 480 135.25 480c123.17 0 246.34-62.35 369.51-62.35 30.89 0 61.76 3.92 92.65 13.72 3.47 1.1 6.95 1.62 10.35 1.62 17.21 0 32.25-13.32 32.25-31.81V83.93c-.01-12.64-7.24-24.6-18.85-29.47zM48 132.22c20.12 5.04 41.12 7.57 62.72 8.93C104.84 170.54 79 192.69 48 192.69v-60.47zm0 285v-47.78c34.37 0 62.18 27.27 63.71 61.4-22.53-1.81-43.59-6.31-63.71-13.62zM320 352c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 27.78c-17.52-4.39-35.71-6.85-54.32-8.44 5.87-26.08 27.5-45.88 54.32-49.28v57.72zm0-236.11c-30.89-3.91-54.86-29.7-55.81-61.55 19.54 2.17 38.09 6.23 55.81 12.66v48.89z"]
};
var faMoneyBillWaveAlt = {
  prefix: 'fas',
  iconName: 'money-bill-wave-alt',
  icon: [640, 512, [], "f53b", "M621.16 54.46C582.37 38.19 543.55 32 504.75 32c-123.17-.01-246.33 62.34-369.5 62.34-30.89 0-61.76-3.92-92.65-13.72-3.47-1.1-6.95-1.62-10.35-1.62C15.04 79 0 92.32 0 110.81v317.26c0 12.63 7.23 24.6 18.84 29.46C57.63 473.81 96.45 480 135.25 480c123.17 0 246.34-62.35 369.51-62.35 30.89 0 61.76 3.92 92.65 13.72 3.47 1.1 6.95 1.62 10.35 1.62 17.21 0 32.25-13.32 32.25-31.81V83.93c-.01-12.64-7.24-24.6-18.85-29.47zM320 352c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96z"]
};
var faMoneyCheck = {
  prefix: 'fas',
  iconName: 'money-check',
  icon: [640, 512, [], "f53c", "M0 448c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V128H0v320zm448-208c0-8.84 7.16-16 16-16h96c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-32zm0 120c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H456c-4.42 0-8-3.58-8-8v-16zM64 264c0-4.42 3.58-8 8-8h304c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm0 96c0-4.42 3.58-8 8-8h176c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zM624 32H16C7.16 32 0 39.16 0 48v48h640V48c0-8.84-7.16-16-16-16z"]
};
var faMoneyCheckAlt = {
  prefix: 'fas',
  iconName: 'money-check-alt',
  icon: [640, 512, [], "f53d", "M608 32H32C14.33 32 0 46.33 0 64v384c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zM176 327.88V344c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-16.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V152c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.05 44.44-42.67 45.07zM416 312c0 4.42-3.58 8-8 8H296c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16zm160 0c0 4.42-3.58 8-8 8h-80c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16zm0-96c0 4.42-3.58 8-8 8H296c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h272c4.42 0 8 3.58 8 8v16z"]
};
var faMonument = {
  prefix: 'fas',
  iconName: 'monument',
  icon: [384, 512, [], "f5a6", "M368 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h352c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-78.86-347.26a31.97 31.97 0 0 0-9.21-19.44L203.31 4.69c-6.25-6.25-16.38-6.25-22.63 0l-76.6 76.61a31.97 31.97 0 0 0-9.21 19.44L64 416h256l-30.86-315.26zM240 307.2c0 6.4-6.4 12.8-12.8 12.8h-70.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h70.4c6.4 0 12.8 6.4 12.8 12.8v38.4z"]
};
var faMoon = {
  prefix: 'fas',
  iconName: 'moon',
  icon: [512, 512, [], "f186", "M283.211 512c78.962 0 151.079-35.925 198.857-94.792 7.068-8.708-.639-21.43-11.562-19.35-124.203 23.654-238.262-71.576-238.262-196.954 0-72.222 38.662-138.635 101.498-174.394 9.686-5.512 7.25-20.197-3.756-22.23A258.156 258.156 0 0 0 283.211 0c-141.309 0-256 114.511-256 256 0 141.309 114.511 256 256 256z"]
};
var faMortarPestle = {
  prefix: 'fas',
  iconName: 'mortar-pestle',
  icon: [512, 512, [], "f5a7", "M501.54 60.91c17.22-17.22 12.51-46.25-9.27-57.14a35.696 35.696 0 0 0-37.37 3.37L251.09 160h151.37l99.08-99.09zM496 192H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16c0 80.98 50.2 150.11 121.13 178.32-12.76 16.87-21.72 36.8-24.95 58.69-1.46 9.92 6.04 18.98 16.07 18.98h223.5c10.03 0 17.53-9.06 16.07-18.98-3.22-21.89-12.18-41.82-24.95-58.69C429.8 406.11 480 336.98 480 256h16c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]
};
var faMosque = {
  prefix: 'fas',
  iconName: 'mosque',
  icon: [640, 512, [], "f678", "M0 480c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V160H0v320zm579.16-192c17.86-17.39 28.84-37.34 28.84-58.91 0-52.86-41.79-93.79-87.92-122.9-41.94-26.47-80.63-57.77-111.96-96.22L400 0l-8.12 9.97c-31.33 38.45-70.01 69.76-111.96 96.22C233.79 135.3 192 176.23 192 229.09c0 21.57 10.98 41.52 28.84 58.91h358.32zM608 320H192c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h32v-64c0-17.67 14.33-32 32-32s32 14.33 32 32v64h64v-72c0-48 48-72 48-72s48 24 48 72v72h64v-64c0-17.67 14.33-32 32-32s32 14.33 32 32v64h32c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM64 0S0 32 0 96v32h128V96c0-64-64-96-64-96z"]
};
var faMotorcycle = {
  prefix: 'fas',
  iconName: 'motorcycle',
  icon: [640, 512, [], "f21c", "M512.9 192c-14.9-.1-29.1 2.3-42.4 6.9L437.6 144H520c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24h-45.3c-6.8 0-13.3 2.9-17.8 7.9l-37.5 41.7-22.8-38C392.2 68.4 384.4 64 376 64h-80c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h66.4l19.2 32H227.9c-17.7-23.1-44.9-40-99.9-40H72.5C59 104 47.7 115 48 128.5c.2 13 10.9 23.5 24 23.5h56c24.5 0 38.7 10.9 47.8 24.8l-11.3 20.5c-13-3.9-26.9-5.7-41.3-5.2C55.9 194.5 1.6 249.6 0 317c-1.6 72.1 56.3 131 128 131 59.6 0 109.7-40.8 124-96h84.2c13.7 0 24.6-11.4 24-25.1-2.1-47.1 17.5-93.7 56.2-125l12.5 20.8c-27.6 23.7-45.1 58.9-44.8 98.2.5 69.6 57.2 126.5 126.8 127.1 71.6.7 129.8-57.5 129.2-129.1-.7-69.6-57.6-126.4-127.2-126.9zM128 400c-44.1 0-80-35.9-80-80s35.9-80 80-80c4.2 0 8.4.3 12.5 1L99 316.4c-8.8 16 2.8 35.6 21 35.6h81.3c-12.4 28.2-40.6 48-73.3 48zm463.9-75.6c-2.2 40.6-35 73.4-75.5 75.5-46.1 2.5-84.4-34.3-84.4-79.9 0-21.4 8.4-40.8 22.1-55.1l49.4 82.4c4.5 7.6 14.4 10 22 5.5l13.7-8.2c7.6-4.5 10-14.4 5.5-22l-48.6-80.9c5.2-1.1 10.5-1.6 15.9-1.6 45.6-.1 82.3 38.2 79.9 84.3z"]
};
var faMountain = {
  prefix: 'fas',
  iconName: 'mountain',
  icon: [640, 512, [], "f6fc", "M634.92 462.7l-288-448C341.03 5.54 330.89 0 320 0s-21.03 5.54-26.92 14.7l-288 448a32.001 32.001 0 0 0-1.17 32.64A32.004 32.004 0 0 0 32 512h576c11.71 0 22.48-6.39 28.09-16.67a31.983 31.983 0 0 0-1.17-32.63zM320 91.18L405.39 224H320l-64 64-38.06-38.06L320 91.18z"]
};
var faMouse = {
  prefix: 'fas',
  iconName: 'mouse',
  icon: [384, 512, [], "f8cc", "M0 352a160 160 0 0 0 160 160h64a160 160 0 0 0 160-160V224H0zM176 0h-16A160 160 0 0 0 0 160v32h176zm48 0h-16v192h176v-32A160 160 0 0 0 224 0z"]
};
var faMousePointer = {
  prefix: 'fas',
  iconName: 'mouse-pointer',
  icon: [320, 512, [], "f245", "M302.189 329.126H196.105l55.831 135.993c3.889 9.428-.555 19.999-9.444 23.999l-49.165 21.427c-9.165 4-19.443-.571-23.332-9.714l-53.053-129.136-86.664 89.138C18.729 472.71 0 463.554 0 447.977V18.299C0 1.899 19.921-6.096 30.277 5.443l284.412 292.542c11.472 11.179 3.007 31.141-12.5 31.141z"]
};
var faMugHot = {
  prefix: 'fas',
  iconName: 'mug-hot',
  icon: [512, 512, [], "f7b6", "M127.1 146.5c1.3 7.7 8 13.5 16 13.5h16.5c9.8 0 17.6-8.5 16.3-18-3.8-28.2-16.4-54.2-36.6-74.7-14.4-14.7-23.6-33.3-26.4-53.5C111.8 5.9 105 0 96.8 0H80.4C70.6 0 63 8.5 64.1 18c3.9 31.9 18 61.3 40.6 84.4 12 12.2 19.7 27.5 22.4 44.1zm112 0c1.3 7.7 8 13.5 16 13.5h16.5c9.8 0 17.6-8.5 16.3-18-3.8-28.2-16.4-54.2-36.6-74.7-14.4-14.7-23.6-33.3-26.4-53.5C223.8 5.9 217 0 208.8 0h-16.4c-9.8 0-17.5 8.5-16.3 18 3.9 31.9 18 61.3 40.6 84.4 12 12.2 19.7 27.5 22.4 44.1zM400 192H32c-17.7 0-32 14.3-32 32v192c0 53 43 96 96 96h192c53 0 96-43 96-96h16c61.8 0 112-50.2 112-112s-50.2-112-112-112zm0 160h-16v-96h16c26.5 0 48 21.5 48 48s-21.5 48-48 48z"]
};
var faMusic = {
  prefix: 'fas',
  iconName: 'music',
  icon: [512, 512, [], "f001", "M470.38 1.51L150.41 96A32 32 0 0 0 128 126.51v261.41A139 139 0 0 0 96 384c-53 0-96 28.66-96 64s43 64 96 64 96-28.66 96-64V214.32l256-75v184.61a138.4 138.4 0 0 0-32-3.93c-53 0-96 28.66-96 64s43 64 96 64 96-28.65 96-64V32a32 32 0 0 0-41.62-30.49z"]
};
var faNetworkWired = {
  prefix: 'fas',
  iconName: 'network-wired',
  icon: [640, 512, [], "f6ff", "M640 264v-16c0-8.84-7.16-16-16-16H344v-40h72c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H224c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h72v40H16c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h104v40H64c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h304v40h-56c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h104c8.84 0 16-7.16 16-16zM256 128V64h128v64H256zm-64 320H96v-64h96v64zm352 0h-96v-64h96v64z"]
};
var faNeuter = {
  prefix: 'fas',
  iconName: 'neuter',
  icon: [288, 512, [], "f22c", "M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V468c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V316.4c64.1-14.5 112-71.9 112-140.4zm-144 80c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]
};
var faNewspaper = {
  prefix: 'fas',
  iconName: 'newspaper',
  icon: [576, 512, [], "f1ea", "M552 64H88c-13.255 0-24 10.745-24 24v8H24c-13.255 0-24 10.745-24 24v272c0 30.928 25.072 56 56 56h472c26.51 0 48-21.49 48-48V88c0-13.255-10.745-24-24-24zM56 400a8 8 0 0 1-8-8V144h16v248a8 8 0 0 1-8 8zm236-16H140c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm208 0H348c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm-208-96H140c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm208 0H348c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm0-96H140c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12z"]
};
var faNotEqual = {
  prefix: 'fas',
  iconName: 'not-equal',
  icon: [448, 512, [], "f53e", "M416 208c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32h-23.88l51.87-66.81c5.37-7.02 4.04-17.06-2.97-22.43L415.61 3.3c-7.02-5.38-17.06-4.04-22.44 2.97L311.09 112H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h204.56l-74.53 96H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h55.49l-51.87 66.81c-5.37 7.01-4.04 17.05 2.97 22.43L64 508.7c7.02 5.38 17.06 4.04 22.43-2.97L168.52 400H416c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32H243.05l74.53-96H416z"]
};
var faNotesMedical = {
  prefix: 'fas',
  iconName: 'notes-medical',
  icon: [384, 512, [], "f481", "M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 40c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm96 304c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48zm0-192c0 4.4-3.6 8-8 8H104c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h176c4.4 0 8 3.6 8 8v16z"]
};
var faObjectGroup = {
  prefix: 'fas',
  iconName: 'object-group',
  icon: [512, 512, [], "f247", "M480 128V96h20c6.627 0 12-5.373 12-12V44c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v20H64V44c0-6.627-5.373-12-12-12H12C5.373 32 0 37.373 0 44v40c0 6.627 5.373 12 12 12h20v320H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-20h384v20c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-20V128zM96 276V140c0-6.627 5.373-12 12-12h168c6.627 0 12 5.373 12 12v136c0 6.627-5.373 12-12 12H108c-6.627 0-12-5.373-12-12zm320 96c0 6.627-5.373 12-12 12H236c-6.627 0-12-5.373-12-12v-52h72c13.255 0 24-10.745 24-24v-72h84c6.627 0 12 5.373 12 12v136z"]
};
var faObjectUngroup = {
  prefix: 'fas',
  iconName: 'object-ungroup',
  icon: [576, 512, [], "f248", "M64 320v26a6 6 0 0 1-6 6H6a6 6 0 0 1-6-6v-52a6 6 0 0 1 6-6h26V96H6a6 6 0 0 1-6-6V38a6 6 0 0 1 6-6h52a6 6 0 0 1 6 6v26h288V38a6 6 0 0 1 6-6h52a6 6 0 0 1 6 6v52a6 6 0 0 1-6 6h-26v192h26a6 6 0 0 1 6 6v52a6 6 0 0 1-6 6h-52a6 6 0 0 1-6-6v-26H64zm480-64v-32h26a6 6 0 0 0 6-6v-52a6 6 0 0 0-6-6h-52a6 6 0 0 0-6 6v26H408v72h8c13.255 0 24 10.745 24 24v64c0 13.255-10.745 24-24 24h-64c-13.255 0-24-10.745-24-24v-8H192v72h-26a6 6 0 0 0-6 6v52a6 6 0 0 0 6 6h52a6 6 0 0 0 6-6v-26h288v26a6 6 0 0 0 6 6h52a6 6 0 0 0 6-6v-52a6 6 0 0 0-6-6h-26V256z"]
};
var faOilCan = {
  prefix: 'fas',
  iconName: 'oil-can',
  icon: [640, 512, [], "f613", "M629.8 160.31L416 224l-50.49-25.24a64.07 64.07 0 0 0-28.62-6.76H280v-48h56c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16H176c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h56v48h-56L37.72 166.86a31.9 31.9 0 0 0-5.79-.53C14.67 166.33 0 180.36 0 198.34v94.95c0 15.46 11.06 28.72 26.28 31.48L96 337.46V384c0 17.67 14.33 32 32 32h274.63c8.55 0 16.75-3.42 22.76-9.51l212.26-214.75c1.5-1.5 2.34-3.54 2.34-5.66V168c.01-5.31-5.08-9.15-10.19-7.69zM96 288.67l-48-8.73v-62.43l48 8.73v62.43zm453.33 84.66c0 23.56 19.1 42.67 42.67 42.67s42.67-19.1 42.67-42.67S592 288 592 288s-42.67 61.77-42.67 85.33z"]
};
var faOm = {
  prefix: 'fas',
  iconName: 'om',
  icon: [512, 512, [], "f679", "M360.6 60.94a10.43 10.43 0 0 0 14.76 0l21.57-21.56a10.43 10.43 0 0 0 0-14.76L375.35 3.06c-4.08-4.07-10.68-4.07-14.76 0l-21.57 21.56a10.43 10.43 0 0 0 0 14.76l21.58 21.56zM412.11 192c-26.69 0-51.77 10.39-70.64 29.25l-24.25 24.25c-6.78 6.77-15.78 10.5-25.38 10.5H245c10.54-22.1 14.17-48.11 7.73-75.23-10.1-42.55-46.36-76.11-89.52-83.19-36.15-5.93-70.9 5.04-96.01 28.78-7.36 6.96-6.97 18.85 1.12 24.93l26.15 19.63c5.72 4.3 13.66 4.32 19.2-.21 8.45-6.9 19.02-10.71 30.27-10.71 26.47 0 48.01 21.53 48.01 48s-21.54 48-48.01 48h-31.9c-11.96 0-19.74 12.58-14.39 23.28l16.09 32.17c2.53 5.06 7.6 8.1 13.17 8.55h33.03c35.3 0 64.01 28.7 64.01 64s-28.71 64-64.01 64c-96.02 0-122.35-54.02-145.15-92.03-4.53-7.55-14.77-3.58-14.79 5.22C-.09 416 41.13 512 159.94 512c70.59 0 128.02-57.42 128.02-128 0-23.42-6.78-45.1-17.81-64h21.69c26.69 0 51.77-10.39 70.64-29.25l24.25-24.25c6.78-6.77 15.78-10.5 25.38-10.5 19.78 0 35.88 16.09 35.88 35.88V392c0 13.23-18.77 24-32.01 24-39.4 0-66.67-24.24-81.82-42.89-4.77-5.87-14.2-2.54-14.2 5.02V416s0 64 96.02 64c48.54 0 96.02-39.47 96.02-88V291.88c0-55.08-44.8-99.88-99.89-99.88zm42.18-124.73c-85.55 65.12-169.05 2.75-172.58.05-6.02-4.62-14.44-4.38-20.14.55-5.74 4.92-7.27 13.17-3.66 19.8 1.61 2.95 40.37 72.34 118.8 72.34 79.92 0 98.78-31.36 101.75-37.66 1.02-2.12 1.53-4.47 1.53-6.83V80c0-13.22-15.14-20.69-25.7-12.73z"]
};
var faOtter = {
  prefix: 'fas',
  iconName: 'otter',
  icon: [640, 512, [], "f700", "M608 32h-32l-13.25-13.25A63.97 63.97 0 0 0 517.49 0H497c-11.14 0-22.08 2.91-31.75 8.43L312 96h-56C149.96 96 64 181.96 64 288v1.61c0 32.75-16 62.14-39.56 84.89-18.19 17.58-28.1 43.68-23.19 71.8 6.76 38.8 42.9 65.7 82.28 65.7H192c17.67 0 32-14.33 32-32s-14.33-32-32-32H80c-8.83 0-16-7.17-16-16s7.17-16 16-16h224c8.84 0 16-7.16 16-16v-16c0-17.67-14.33-32-32-32h-64l149.49-80.5L448 416h80c8.84 0 16-7.16 16-16v-16c0-17.67-14.33-32-32-32h-28.22l-55.11-110.21L521.14 192H544c53.02 0 96-42.98 96-96V64c0-17.67-14.33-32-32-32zm-96 16c8.84 0 16 7.16 16 16s-7.16 16-16 16-16-7.16-16-16 7.16-16 16-16zm32 96h-34.96L407.2 198.84l-13.77-27.55L512 112h77.05c-6.62 18.58-24.22 32-45.05 32z"]
};
var faOutdent = {
  prefix: 'fas',
  iconName: 'outdent',
  icon: [448, 512, [], "f03b", "M100.69 363.29c10 10 27.31 2.93 27.31-11.31V160c0-14.32-17.33-21.31-27.31-11.31l-96 96a16 16 0 0 0 0 22.62zM432 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm3.17-128H204.83A12.82 12.82 0 0 0 192 300.83v38.34A12.82 12.82 0 0 0 204.83 352h230.34A12.82 12.82 0 0 0 448 339.17v-38.34A12.82 12.82 0 0 0 435.17 288zm0-128H204.83A12.82 12.82 0 0 0 192 172.83v38.34A12.82 12.82 0 0 0 204.83 224h230.34A12.82 12.82 0 0 0 448 211.17v-38.34A12.82 12.82 0 0 0 435.17 160zM432 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
};
var faPager = {
  prefix: 'fas',
  iconName: 'pager',
  icon: [512, 512, [], "f815", "M448 64H64a64 64 0 0 0-64 64v256a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V128a64 64 0 0 0-64-64zM160 368H80a16 16 0 0 1-16-16v-16a16 16 0 0 1 16-16h80zm128-16a16 16 0 0 1-16 16h-80v-48h80a16 16 0 0 1 16 16zm160-128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32v-64a32 32 0 0 1 32-32h320a32 32 0 0 1 32 32z"]
};
var faPaintBrush = {
  prefix: 'fas',
  iconName: 'paint-brush',
  icon: [512, 512, [], "f1fc", "M167.02 309.34c-40.12 2.58-76.53 17.86-97.19 72.3-2.35 6.21-8 9.98-14.59 9.98-11.11 0-45.46-27.67-55.25-34.35C0 439.62 37.93 512 128 512c75.86 0 128-43.77 128-120.19 0-3.11-.65-6.08-.97-9.13l-88.01-73.34zM457.89 0c-15.16 0-29.37 6.71-40.21 16.45C213.27 199.05 192 203.34 192 257.09c0 13.7 3.25 26.76 8.73 38.7l63.82 53.18c7.21 1.8 14.64 3.03 22.39 3.03 62.11 0 98.11-45.47 211.16-256.46 7.38-14.35 13.9-29.85 13.9-45.99C512 20.64 486 0 457.89 0z"]
};
var faPaintRoller = {
  prefix: 'fas',
  iconName: 'paint-roller',
  icon: [512, 512, [], "f5aa", "M416 128V32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v96c0 17.67 14.33 32 32 32h352c17.67 0 32-14.33 32-32zm32-64v128c0 17.67-14.33 32-32 32H256c-35.35 0-64 28.65-64 64v32c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32v-32h160c53.02 0 96-42.98 96-96v-64c0-35.35-28.65-64-64-64z"]
};
var faPalette = {
  prefix: 'fas',
  iconName: 'palette',
  icon: [512, 512, [], "f53f", "M204.3 5C104.9 24.4 24.8 104.3 5.2 203.4c-37 187 131.7 326.4 258.8 306.7 41.2-6.4 61.4-54.6 42.5-91.7-23.1-45.4 9.9-98.4 60.9-98.4h79.7c35.8 0 64.8-29.6 64.9-65.3C511.5 97.1 368.1-26.9 204.3 5zM96 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm32-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128-64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]
};
var faPallet = {
  prefix: 'fas',
  iconName: 'pallet',
  icon: [640, 512, [], "f482", "M144 256h352c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16H384v128l-64-32-64 32V0H144c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16zm480 128c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h48v64H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16h-48v-64h48zm-336 64H128v-64h160v64zm224 0H352v-64h160v64z"]
};
var faPaperPlane = {
  prefix: 'fas',
  iconName: 'paper-plane',
  icon: [512, 512, [], "f1d8", "M476 3.2L12.5 270.6c-18.1 10.4-15.8 35.6 2.2 43.2L121 358.4l287.3-253.2c5.5-4.9 13.3 2.6 8.6 8.3L176 407v80.5c0 23.6 28.5 32.9 42.5 15.8L282 426l124.6 52.2c14.2 6 30.4-2.9 33-18.2l72-432C515 7.8 493.3-6.8 476 3.2z"]
};
var faPaperclip = {
  prefix: 'fas',
  iconName: 'paperclip',
  icon: [448, 512, [], "f0c6", "M43.246 466.142c-58.43-60.289-57.341-157.511 1.386-217.581L254.392 34c44.316-45.332 116.351-45.336 160.671 0 43.89 44.894 43.943 117.329 0 162.276L232.214 383.128c-29.855 30.537-78.633 30.111-107.982-.998-28.275-29.97-27.368-77.473 1.452-106.953l143.743-146.835c6.182-6.314 16.312-6.422 22.626-.241l22.861 22.379c6.315 6.182 6.422 16.312.241 22.626L171.427 319.927c-4.932 5.045-5.236 13.428-.648 18.292 4.372 4.634 11.245 4.711 15.688.165l182.849-186.851c19.613-20.062 19.613-52.725-.011-72.798-19.189-19.627-49.957-19.637-69.154 0L90.39 293.295c-34.763 35.56-35.299 93.12-1.191 128.313 34.01 35.093 88.985 35.137 123.058.286l172.06-175.999c6.177-6.319 16.307-6.433 22.626-.256l22.877 22.364c6.319 6.177 6.434 16.307.256 22.626l-172.06 175.998c-59.576 60.938-155.943 60.216-214.77-.485z"]
};
var faParachuteBox = {
  prefix: 'fas',
  iconName: 'parachute-box',
  icon: [512, 512, [], "f4cd", "M511.9 175c-9.1-75.6-78.4-132.4-158.3-158.7C390 55.7 416 116.9 416 192h28.1L327.5 321.5c-2.5-.6-4.8-1.5-7.5-1.5h-48V192h112C384 76.8 315.1 0 256 0S128 76.8 128 192h112v128h-48c-2.7 0-5 .9-7.5 1.5L67.9 192H96c0-75.1 26-136.3 62.4-175.7C78.5 42.7 9.2 99.5.1 175c-1.1 9.1 6.8 17 16 17h8.7l136.7 151.9c-.7 2.6-1.6 5.2-1.6 8.1v128c0 17.7 14.3 32 32 32h128c17.7 0 32-14.3 32-32V352c0-2.9-.9-5.4-1.6-8.1L487.1 192h8.7c9.3 0 17.2-7.8 16.1-17z"]
};
var faParagraph = {
  prefix: 'fas',
  iconName: 'paragraph',
  icon: [448, 512, [], "f1dd", "M448 48v32a16 16 0 0 1-16 16h-48v368a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16V96h-32v368a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16V352h-32a160 160 0 0 1 0-320h240a16 16 0 0 1 16 16z"]
};
var faParking = {
  prefix: 'fas',
  iconName: 'parking',
  icon: [448, 512, [], "f540", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM240 320h-48v48c0 8.8-7.2 16-16 16h-32c-8.8 0-16-7.2-16-16V144c0-8.8 7.2-16 16-16h96c52.9 0 96 43.1 96 96s-43.1 96-96 96zm0-128h-48v64h48c17.6 0 32-14.4 32-32s-14.4-32-32-32z"]
};
var faPassport = {
  prefix: 'fas',
  iconName: 'passport',
  icon: [448, 512, [], "f5ab", "M129.62 176h39.09c1.49-27.03 6.54-51.35 14.21-70.41-27.71 13.24-48.02 39.19-53.3 70.41zm0 32c5.29 31.22 25.59 57.17 53.3 70.41-7.68-19.06-12.72-43.38-14.21-70.41h-39.09zM224 286.69c7.69-7.45 20.77-34.42 23.43-78.69h-46.87c2.67 44.26 15.75 71.24 23.44 78.69zM200.57 176h46.87c-2.66-44.26-15.74-71.24-23.43-78.69-7.7 7.45-20.78 34.43-23.44 78.69zm64.51 102.41c27.71-13.24 48.02-39.19 53.3-70.41h-39.09c-1.49 27.03-6.53 51.35-14.21 70.41zM416 0H64C28.65 0 0 28.65 0 64v384c0 35.35 28.65 64 64 64h352c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32zm-80 416H112c-8.8 0-16-7.2-16-16s7.2-16 16-16h224c8.8 0 16 7.2 16 16s-7.2 16-16 16zm-112-96c-70.69 0-128-57.31-128-128S153.31 64 224 64s128 57.31 128 128-57.31 128-128 128zm41.08-214.41c7.68 19.06 12.72 43.38 14.21 70.41h39.09c-5.28-31.22-25.59-57.17-53.3-70.41z"]
};
var faPastafarianism = {
  prefix: 'fas',
  iconName: 'pastafarianism',
  icon: [640, 512, [], "f67b", "M624.54 347.67c-32.7-12.52-57.36 4.25-75.37 16.45-17.06 11.53-23.25 14.42-31.41 11.36-8.12-3.09-10.83-9.38-15.89-29.38-3.33-13.15-7.44-29.32-17.95-42.65 2.24-2.91 4.43-5.79 6.38-8.57C500.47 304.45 513.71 312 532 312c33.95 0 50.87-25.78 62.06-42.83 10.59-16.14 15-21.17 21.94-21.17 13.25 0 24-10.75 24-24s-10.75-24-24-24c-33.95 0-50.87 25.78-62.06 42.83-10.6 16.14-15 21.17-21.94 21.17-17.31 0-37.48-61.43-97.26-101.91l17.25-34.5C485.43 125.5 512 97.98 512 64c0-35.35-28.65-64-64-64s-64 28.65-64 64c0 13.02 3.94 25.1 10.62 35.21l-18.15 36.3c-16.98-4.6-35.6-7.51-56.46-7.51s-39.49 2.91-56.46 7.51l-18.15-36.3C252.06 89.1 256 77.02 256 64c0-35.35-28.65-64-64-64s-64 28.65-64 64c0 33.98 26.56 61.5 60.02 63.6l17.25 34.5C145.68 202.44 125.15 264 108 264c-6.94 0-11.34-5.03-21.94-21.17C74.88 225.78 57.96 200 24 200c-13.25 0-24 10.75-24 24s10.75 24 24 24c6.94 0 11.34 5.03 21.94 21.17C57.13 286.22 74.05 312 108 312c18.29 0 31.53-7.55 41.7-17.11 1.95 2.79 4.14 5.66 6.38 8.57-10.51 13.33-14.62 29.5-17.95 42.65-5.06 20-7.77 26.28-15.89 29.38-8.11 3.06-14.33.17-31.41-11.36-18.03-12.2-42.72-28.92-75.37-16.45-12.39 4.72-18.59 18.58-13.87 30.97 4.72 12.41 18.61 18.61 30.97 13.88 8.16-3.09 14.34-.19 31.39 11.36 13.55 9.16 30.83 20.86 52.42 20.84 7.17 0 14.83-1.28 22.97-4.39 32.66-12.44 39.98-41.33 45.33-62.44 2.21-8.72 3.99-14.49 5.95-18.87 16.62 13.61 36.95 25.88 61.64 34.17-9.96 37-32.18 90.8-60.26 90.8-13.25 0-24 10.75-24 24s10.75 24 24 24c66.74 0 97.05-88.63 107.42-129.14 6.69.6 13.42 1.14 20.58 1.14s13.89-.54 20.58-1.14C350.95 423.37 381.26 512 448 512c13.25 0 24-10.75 24-24s-10.75-24-24-24c-27.94 0-50.21-53.81-60.22-90.81 24.69-8.29 45-20.56 61.62-34.16 1.96 4.38 3.74 10.15 5.95 18.87 5.34 21.11 12.67 50 45.33 62.44 8.14 3.11 15.8 4.39 22.97 4.39 21.59 0 38.87-11.69 52.42-20.84 17.05-11.55 23.28-14.45 31.39-11.36 12.39 4.75 26.27-1.47 30.97-13.88 4.71-12.4-1.49-26.26-13.89-30.98zM448 48c8.82 0 16 7.18 16 16s-7.18 16-16 16-16-7.18-16-16 7.18-16 16-16zm-256 0c8.82 0 16 7.18 16 16s-7.18 16-16 16-16-7.18-16-16 7.18-16 16-16z"]
};
var faPaste = {
  prefix: 'fas',
  iconName: 'paste',
  icon: [448, 512, [], "f0ea", "M128 184c0-30.879 25.122-56 56-56h136V56c0-13.255-10.745-24-24-24h-80.61C204.306 12.89 183.637 0 160 0s-44.306 12.89-55.39 32H24C10.745 32 0 42.745 0 56v336c0 13.255 10.745 24 24 24h104V184zm32-144c13.255 0 24 10.745 24 24s-10.745 24-24 24-24-10.745-24-24 10.745-24 24-24zm184 248h104v200c0 13.255-10.745 24-24 24H184c-13.255 0-24-10.745-24-24V184c0-13.255 10.745-24 24-24h136v104c0 13.2 10.8 24 24 24zm104-38.059V256h-96v-96h6.059a24 24 0 0 1 16.97 7.029l65.941 65.941a24.002 24.002 0 0 1 7.03 16.971z"]
};
var faPause = {
  prefix: 'fas',
  iconName: 'pause',
  icon: [448, 512, [], "f04c", "M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"]
};
var faPauseCircle = {
  prefix: 'fas',
  iconName: 'pause-circle',
  icon: [512, 512, [], "f28b", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm-16 328c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v160zm112 0c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v160z"]
};
var faPaw = {
  prefix: 'fas',
  iconName: 'paw',
  icon: [512, 512, [], "f1b0", "M256 224c-79.41 0-192 122.76-192 200.25 0 34.9 26.81 55.75 71.74 55.75 48.84 0 81.09-25.08 120.26-25.08 39.51 0 71.85 25.08 120.26 25.08 44.93 0 71.74-20.85 71.74-55.75C448 346.76 335.41 224 256 224zm-147.28-12.61c-10.4-34.65-42.44-57.09-71.56-50.13-29.12 6.96-44.29 40.69-33.89 75.34 10.4 34.65 42.44 57.09 71.56 50.13 29.12-6.96 44.29-40.69 33.89-75.34zm84.72-20.78c30.94-8.14 46.42-49.94 34.58-93.36s-46.52-72.01-77.46-63.87-46.42 49.94-34.58 93.36c11.84 43.42 46.53 72.02 77.46 63.87zm281.39-29.34c-29.12-6.96-61.15 15.48-71.56 50.13-10.4 34.65 4.77 68.38 33.89 75.34 29.12 6.96 61.15-15.48 71.56-50.13 10.4-34.65-4.77-68.38-33.89-75.34zm-156.27 29.34c30.94 8.14 65.62-20.45 77.46-63.87 11.84-43.42-3.64-85.21-34.58-93.36s-65.62 20.45-77.46 63.87c-11.84 43.42 3.64 85.22 34.58 93.36z"]
};
var faPeace = {
  prefix: 'fas',
  iconName: 'peace',
  icon: [496, 512, [], "f67c", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm184 248c0 31.93-8.2 61.97-22.57 88.17L280 240.63V74.97c86.23 15.21 152 90.5 152 181.03zM216 437.03c-33.86-5.97-64.49-21.2-89.29-43.02L216 322.57v114.46zm64-114.46L369.29 394c-24.8 21.82-55.43 37.05-89.29 43.02V322.57zm-64-247.6v165.66L86.57 344.17C72.2 317.97 64 287.93 64 256c0-90.53 65.77-165.82 152-181.03z"]
};
var faPen = {
  prefix: 'fas',
  iconName: 'pen',
  icon: [512, 512, [], "f304", "M290.74 93.24l128.02 128.02-277.99 277.99-114.14 12.6C11.35 513.54-1.56 500.62.14 485.34l12.7-114.22 277.9-277.88zm207.2-19.06l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.76 18.75-49.16 0-67.91z"]
};
var faPenAlt = {
  prefix: 'fas',
  iconName: 'pen-alt',
  icon: [512, 512, [], "f305", "M497.94 74.17l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.75 18.75-49.15 0-67.91zm-246.8-20.53c-15.62-15.62-40.94-15.62-56.56 0L75.8 172.43c-6.25 6.25-6.25 16.38 0 22.62l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l101.82-101.82 22.63 22.62L93.95 290.03A327.038 327.038 0 0 0 .17 485.11l-.03.23c-1.7 15.28 11.21 28.2 26.49 26.51a327.02 327.02 0 0 0 195.34-93.8l196.79-196.79-82.77-82.77-84.85-84.85z"]
};
var faPenFancy = {
  prefix: 'fas',
  iconName: 'pen-fancy',
  icon: [512, 512, [], "f5ac", "M79.18 282.94a32.005 32.005 0 0 0-20.24 20.24L0 480l4.69 4.69 92.89-92.89c-.66-2.56-1.57-5.03-1.57-7.8 0-17.67 14.33-32 32-32s32 14.33 32 32-14.33 32-32 32c-2.77 0-5.24-.91-7.8-1.57l-92.89 92.89L32 512l176.82-58.94a31.983 31.983 0 0 0 20.24-20.24l33.07-84.07-98.88-98.88-84.07 33.07zM369.25 28.32L186.14 227.81l97.85 97.85 199.49-183.11C568.4 67.48 443.73-55.94 369.25 28.32z"]
};
var faPenNib = {
  prefix: 'fas',
  iconName: 'pen-nib',
  icon: [512, 512, [], "f5ad", "M136.6 138.79a64.003 64.003 0 0 0-43.31 41.35L0 460l14.69 14.69L164.8 324.58c-2.99-6.26-4.8-13.18-4.8-20.58 0-26.51 21.49-48 48-48s48 21.49 48 48-21.49 48-48 48c-7.4 0-14.32-1.81-20.58-4.8L37.31 497.31 52 512l279.86-93.29a64.003 64.003 0 0 0 41.35-43.31L416 224 288 96l-151.4 42.79zm361.34-64.62l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.75 18.75-49.15 0-67.91z"]
};
var faPenSquare = {
  prefix: 'fas',
  iconName: 'pen-square',
  icon: [448, 512, [], "f14b", "M400 480H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zM238.1 177.9L102.4 313.6l-6.3 57.1c-.8 7.6 5.6 14.1 13.3 13.3l57.1-6.3L302.2 242c2.3-2.3 2.3-6.1 0-8.5L246.7 178c-2.5-2.4-6.3-2.4-8.6-.1zM345 165.1L314.9 135c-9.4-9.4-24.6-9.4-33.9 0l-23.1 23.1c-2.3 2.3-2.3 6.1 0 8.5l55.5 55.5c2.3 2.3 6.1 2.3 8.5 0L345 199c9.3-9.3 9.3-24.5 0-33.9z"]
};
var faPencilAlt = {
  prefix: 'fas',
  iconName: 'pencil-alt',
  icon: [512, 512, [], "f303", "M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z"]
};
var faPencilRuler = {
  prefix: 'fas',
  iconName: 'pencil-ruler',
  icon: [512, 512, [], "f5ae", "M109.46 244.04l134.58-134.56-44.12-44.12-61.68 61.68a7.919 7.919 0 0 1-11.21 0l-11.21-11.21c-3.1-3.1-3.1-8.12 0-11.21l61.68-61.68-33.64-33.65C131.47-3.1 111.39-3.1 99 9.29L9.29 99c-12.38 12.39-12.39 32.47 0 44.86l100.17 100.18zm388.47-116.8c18.76-18.76 18.75-49.17 0-67.93l-45.25-45.25c-18.76-18.76-49.18-18.76-67.95 0l-46.02 46.01 113.2 113.2 46.02-46.03zM316.08 82.71l-297 296.96L.32 487.11c-2.53 14.49 10.09 27.11 24.59 24.56l107.45-18.84L429.28 195.9 316.08 82.71zm186.63 285.43l-33.64-33.64-61.68 61.68c-3.1 3.1-8.12 3.1-11.21 0l-11.21-11.21c-3.09-3.1-3.09-8.12 0-11.21l61.68-61.68-44.14-44.14L267.93 402.5l100.21 100.2c12.39 12.39 32.47 12.39 44.86 0l89.71-89.7c12.39-12.39 12.39-32.47 0-44.86z"]
};
var faPeopleArrows = {
  prefix: 'fas',
  iconName: 'people-arrows',
  icon: [576, 512, [], "e068", "M96,128A64,64,0,1,0,32,64,64,64,0,0,0,96,128Zm0,176.08a44.11,44.11,0,0,1,13.64-32L181.77,204c1.65-1.55,3.77-2.31,5.61-3.57A63.91,63.91,0,0,0,128,160H64A64,64,0,0,0,0,224v96a32,32,0,0,0,32,32V480a32,32,0,0,0,32,32h64a32,32,0,0,0,32-32V383.61l-50.36-47.53A44.08,44.08,0,0,1,96,304.08ZM480,128a64,64,0,1,0-64-64A64,64,0,0,0,480,128Zm32,32H448a63.91,63.91,0,0,0-59.38,40.42c1.84,1.27,4,2,5.62,3.59l72.12,68.06a44.37,44.37,0,0,1,0,64L416,383.62V480a32,32,0,0,0,32,32h64a32,32,0,0,0,32-32V352a32,32,0,0,0,32-32V224A64,64,0,0,0,512,160ZM444.4,295.34l-72.12-68.06A12,12,0,0,0,352,236v36H224V236a12,12,0,0,0-20.28-8.73L131.6,295.34a12.4,12.4,0,0,0,0,17.47l72.12,68.07A12,12,0,0,0,224,372.14V336H352v36.14a12,12,0,0,0,20.28,8.74l72.12-68.07A12.4,12.4,0,0,0,444.4,295.34Z"]
};
var faPeopleCarry = {
  prefix: 'fas',
  iconName: 'people-carry',
  icon: [640, 512, [], "f4ce", "M128 96c26.5 0 48-21.5 48-48S154.5 0 128 0 80 21.5 80 48s21.5 48 48 48zm384 0c26.5 0 48-21.5 48-48S538.5 0 512 0s-48 21.5-48 48 21.5 48 48 48zm125.7 372.1l-44-110-41.1 46.4-2 18.2 27.7 69.2c5 12.5 17 20.1 29.7 20.1 4 0 8-.7 11.9-2.3 16.4-6.6 24.4-25.2 17.8-41.6zm-34.2-209.8L585 178.1c-4.6-20-18.6-36.8-37.5-44.9-18.5-8-39-6.7-56.1 3.3-22.7 13.4-39.7 34.5-48.1 59.4L432 229.8 416 240v-96c0-8.8-7.2-16-16-16H240c-8.8 0-16 7.2-16 16v96l-16.1-10.2-11.3-33.9c-8.3-25-25.4-46-48.1-59.4-17.2-10-37.6-11.3-56.1-3.3-18.9 8.1-32.9 24.9-37.5 44.9l-18.4 80.2c-4.6 20 .7 41.2 14.4 56.7l67.2 75.9 10.1 92.6C130 499.8 143.8 512 160 512c1.2 0 2.3-.1 3.5-.2 17.6-1.9 30.2-17.7 28.3-35.3l-10.1-92.8c-1.5-13-6.9-25.1-15.6-35l-43.3-49 17.6-70.3 6.8 20.4c4.1 12.5 11.9 23.4 24.5 32.6l51.1 32.5c4.6 2.9 12.1 4.6 17.2 5h160c5.1-.4 12.6-2.1 17.2-5l51.1-32.5c12.6-9.2 20.4-20 24.5-32.6l6.8-20.4 17.6 70.3-43.3 49c-8.7 9.9-14.1 22-15.6 35l-10.1 92.8c-1.9 17.6 10.8 33.4 28.3 35.3 1.2.1 2.3.2 3.5.2 16.1 0 30-12.1 31.8-28.5l10.1-92.6 67.2-75.9c13.6-15.5 19-36.7 14.4-56.7zM46.3 358.1l-44 110c-6.6 16.4 1.4 35 17.8 41.6 16.8 6.6 35.1-1.7 41.6-17.8l27.7-69.2-2-18.2-41.1-46.4z"]
};
var faPepperHot = {
  prefix: 'fas',
  iconName: 'pepper-hot',
  icon: [512, 512, [], "f816", "M330.67 263.12V173.4l-52.75-24.22C219.44 218.76 197.58 400 56 400a56 56 0 0 0 0 112c212.64 0 370.65-122.87 419.18-210.34l-37.05-38.54zm131.09-128.37C493.92 74.91 477.18 26.48 458.62 3a8 8 0 0 0-11.93-.59l-22.9 23a8.06 8.06 0 0 0-.89 10.23c6.86 10.36 17.05 35.1-1.4 72.32A142.85 142.85 0 0 0 364.34 96c-28 0-54 8.54-76.34 22.59l74.67 34.29v78.24h89.09L506.44 288c3.26-12.62 5.56-25.63 5.56-39.31a154 154 0 0 0-50.24-113.94z"]
};
var faPercent = {
  prefix: 'fas',
  iconName: 'percent',
  icon: [448, 512, [], "f295", "M112 224c61.9 0 112-50.1 112-112S173.9 0 112 0 0 50.1 0 112s50.1 112 112 112zm0-160c26.5 0 48 21.5 48 48s-21.5 48-48 48-48-21.5-48-48 21.5-48 48-48zm224 224c-61.9 0-112 50.1-112 112s50.1 112 112 112 112-50.1 112-112-50.1-112-112-112zm0 160c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zM392.3.2l31.6-.1c19.4-.1 30.9 21.8 19.7 37.8L77.4 501.6a23.95 23.95 0 0 1-19.6 10.2l-33.4.1c-19.5 0-30.9-21.9-19.7-37.8l368-463.7C377.2 4 384.5.2 392.3.2z"]
};
var faPercentage = {
  prefix: 'fas',
  iconName: 'percentage',
  icon: [384, 512, [], "f541", "M109.25 173.25c24.99-24.99 24.99-65.52 0-90.51-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 25 25 65.52 25 90.51 0zm256 165.49c-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 24.99 24.99 65.52 24.99 90.51 0 25-24.99 25-65.51 0-90.51zm-1.94-231.43l-22.62-22.62c-12.5-12.5-32.76-12.5-45.25 0L20.69 359.44c-12.5 12.5-12.5 32.76 0 45.25l22.62 22.62c12.5 12.5 32.76 12.5 45.25 0l274.75-274.75c12.5-12.49 12.5-32.75 0-45.25z"]
};
var faPersonBooth = {
  prefix: 'fas',
  iconName: 'person-booth',
  icon: [576, 512, [], "f756", "M192 496c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320h-64v176zm32-272h-50.9l-45.2-45.3C115.8 166.6 99.7 160 82.7 160H64c-17.1 0-33.2 6.7-45.3 18.8C6.7 190.9 0 207 0 224.1L.2 320 0 480c0 17.7 14.3 32 31.9 32 17.6 0 32-14.3 32-32l.1-100.7c.9.5 1.6 1.3 2.5 1.7l29.1 43v56c0 17.7 14.3 32 32 32s32-14.3 32-32v-56.5c0-9.9-2.3-19.8-6.7-28.6l-41.2-61.3V253l20.9 20.9c9.1 9.1 21.1 14.1 33.9 14.1H224c17.7 0 32-14.3 32-32s-14.3-32-32-32zM64 128c26.5 0 48-21.5 48-48S90.5 32 64 32 16 53.5 16 80s21.5 48 48 48zm224-96l31.5 223.1-30.9 154.6c-4.3 21.6 13 38.3 31.4 38.3 15.2 0 28-9.1 32.3-30.4.9 16.9 14.6 30.4 31.7 30.4 17.7 0 32-14.3 32-32 0 17.7 14.3 32 32 32s32-14.3 32-32V0H288v32zm-96 0v160h64V0h-32c-17.7 0-32 14.3-32 32zM544 0h-32v496c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V32c0-17.7-14.3-32-32-32z"]
};
var faPhone = {
  prefix: 'fas',
  iconName: 'phone',
  icon: [512, 512, [], "f095", "M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"]
};
var faPhoneAlt = {
  prefix: 'fas',
  iconName: 'phone-alt',
  icon: [512, 512, [], "f879", "M497.39 361.8l-112-48a24 24 0 0 0-28 6.9l-49.6 60.6A370.66 370.66 0 0 1 130.6 204.11l60.6-49.6a23.94 23.94 0 0 0 6.9-28l-48-112A24.16 24.16 0 0 0 122.6.61l-104 24A24 24 0 0 0 0 48c0 256.5 207.9 464 464 464a24 24 0 0 0 23.4-18.6l24-104a24.29 24.29 0 0 0-14.01-27.6z"]
};
var faPhoneSlash = {
  prefix: 'fas',
  iconName: 'phone-slash',
  icon: [640, 512, [], "f3dd", "M268.2 381.4l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48c-10.7 4.6-16.5 16.1-13.9 27.5l24 104c2.5 10.8 12.1 18.6 23.4 18.6 100.7 0 193.7-32.4 269.7-86.9l-80-61.8c-10.9 6.5-22.1 12.7-33.6 18.1zm365.6 76.7L475.1 335.5C537.9 256.4 576 156.9 576 48c0-11.2-7.7-20.9-18.6-23.4l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-12.2 26.1-27.9 50.3-46 72.8L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3z"]
};
var faPhoneSquare = {
  prefix: 'fas',
  iconName: 'phone-square',
  icon: [448, 512, [], "f098", "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM94 416c-7.033 0-13.057-4.873-14.616-11.627l-14.998-65a15 15 0 0 1 8.707-17.16l69.998-29.999a15 15 0 0 1 17.518 4.289l30.997 37.885c48.944-22.963 88.297-62.858 110.781-110.78l-37.886-30.997a15.001 15.001 0 0 1-4.289-17.518l30-69.998a15 15 0 0 1 17.16-8.707l65 14.998A14.997 14.997 0 0 1 384 126c0 160.292-129.945 290-290 290z"]
};
var faPhoneSquareAlt = {
  prefix: 'fas',
  iconName: 'phone-square-alt',
  icon: [448, 512, [], "f87b", "M400 32H48A48 48 0 0 0 0 80v352a48 48 0 0 0 48 48h352a48 48 0 0 0 48-48V80a48 48 0 0 0-48-48zm-16.39 307.37l-15 65A15 15 0 0 1 354 416C194 416 64 286.29 64 126a15.7 15.7 0 0 1 11.63-14.61l65-15A18.23 18.23 0 0 1 144 96a16.27 16.27 0 0 1 13.79 9.09l30 70A17.9 17.9 0 0 1 189 181a17 17 0 0 1-5.5 11.61l-37.89 31a231.91 231.91 0 0 0 110.78 110.78l31-37.89A17 17 0 0 1 299 291a17.85 17.85 0 0 1 5.91 1.21l70 30A16.25 16.25 0 0 1 384 336a17.41 17.41 0 0 1-.39 3.37z"]
};
var faPhoneVolume = {
  prefix: 'fas',
  iconName: 'phone-volume',
  icon: [384, 512, [], "f2a0", "M97.333 506.966c-129.874-129.874-129.681-340.252 0-469.933 5.698-5.698 14.527-6.632 21.263-2.422l64.817 40.513a17.187 17.187 0 0 1 6.849 20.958l-32.408 81.021a17.188 17.188 0 0 1-17.669 10.719l-55.81-5.58c-21.051 58.261-20.612 122.471 0 179.515l55.811-5.581a17.188 17.188 0 0 1 17.669 10.719l32.408 81.022a17.188 17.188 0 0 1-6.849 20.958l-64.817 40.513a17.19 17.19 0 0 1-21.264-2.422zM247.126 95.473c11.832 20.047 11.832 45.008 0 65.055-3.95 6.693-13.108 7.959-18.718 2.581l-5.975-5.726c-3.911-3.748-4.793-9.622-2.261-14.41a32.063 32.063 0 0 0 0-29.945c-2.533-4.788-1.65-10.662 2.261-14.41l5.975-5.726c5.61-5.378 14.768-4.112 18.718 2.581zm91.787-91.187c60.14 71.604 60.092 175.882 0 247.428-4.474 5.327-12.53 5.746-17.552.933l-5.798-5.557c-4.56-4.371-4.977-11.529-.93-16.379 49.687-59.538 49.646-145.933 0-205.422-4.047-4.85-3.631-12.008.93-16.379l5.798-5.557c5.022-4.813 13.078-4.394 17.552.933zm-45.972 44.941c36.05 46.322 36.108 111.149 0 157.546-4.39 5.641-12.697 6.251-17.856 1.304l-5.818-5.579c-4.4-4.219-4.998-11.095-1.285-15.931 26.536-34.564 26.534-82.572 0-117.134-3.713-4.836-3.115-11.711 1.285-15.931l5.818-5.579c5.159-4.947 13.466-4.337 17.856 1.304z"]
};
var faPhotoVideo = {
  prefix: 'fas',
  iconName: 'photo-video',
  icon: [640, 512, [], "f87c", "M608 0H160a32 32 0 0 0-32 32v96h160V64h192v320h128a32 32 0 0 0 32-32V32a32 32 0 0 0-32-32zM232 103a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9V73a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm352 208a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9v-30a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm0-104a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9v-30a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm0-104a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9V73a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm-168 57H32a32 32 0 0 0-32 32v288a32 32 0 0 0 32 32h384a32 32 0 0 0 32-32V192a32 32 0 0 0-32-32zM96 224a32 32 0 1 1-32 32 32 32 0 0 1 32-32zm288 224H64v-32l64-64 32 32 128-128 96 96z"]
};
var faPiggyBank = {
  prefix: 'fas',
  iconName: 'piggy-bank',
  icon: [576, 512, [], "f4d3", "M560 224h-29.5c-8.8-20-21.6-37.7-37.4-52.5L512 96h-32c-29.4 0-55.4 13.5-73 34.3-7.6-1.1-15.1-2.3-23-2.3H256c-77.4 0-141.9 55-156.8 128H56c-14.8 0-26.5-13.5-23.5-28.8C34.7 215.8 45.4 208 57 208h1c3.3 0 6-2.7 6-6v-20c0-3.3-2.7-6-6-6-28.5 0-53.9 20.4-57.5 48.6C-3.9 258.8 22.7 288 56 288h40c0 52.2 25.4 98.1 64 127.3V496c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-48h128v48c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-80.7c11.8-8.9 22.3-19.4 31.3-31.3H560c8.8 0 16-7.2 16-16V240c0-8.8-7.2-16-16-16zm-128 64c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zM256 96h128c5.4 0 10.7.4 15.9.8 0-.3.1-.5.1-.8 0-53-43-96-96-96s-96 43-96 96c0 2.1.5 4.1.6 6.2 15.2-3.9 31-6.2 47.4-6.2z"]
};
var faPills = {
  prefix: 'fas',
  iconName: 'pills',
  icon: [576, 512, [], "f484", "M112 32C50.1 32 0 82.1 0 144v224c0 61.9 50.1 112 112 112s112-50.1 112-112V144c0-61.9-50.1-112-112-112zm48 224H64V144c0-26.5 21.5-48 48-48s48 21.5 48 48v112zm139.7-29.7c-3.5-3.5-9.4-3.1-12.3.8-45.3 62.5-40.4 150.1 15.9 206.4 56.3 56.3 143.9 61.2 206.4 15.9 4-2.9 4.3-8.8.8-12.3L299.7 226.3zm229.8-19c-56.3-56.3-143.9-61.2-206.4-15.9-4 2.9-4.3 8.8-.8 12.3l210.8 210.8c3.5 3.5 9.4 3.1 12.3-.8 45.3-62.6 40.5-150.1-15.9-206.4z"]
};
var faPizzaSlice = {
  prefix: 'fas',
  iconName: 'pizza-slice',
  icon: [512, 512, [], "f818", "M158.87.15c-16.16-1.52-31.2 8.42-35.33 24.12l-14.81 56.27c187.62 5.49 314.54 130.61 322.48 317l56.94-15.78c15.72-4.36 25.49-19.68 23.62-35.9C490.89 165.08 340.78 17.32 158.87.15zm-58.47 112L.55 491.64a16.21 16.21 0 0 0 20 19.75l379-105.1c-4.27-174.89-123.08-292.14-299.15-294.1zM128 416a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm48-152a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm104 104a32 32 0 1 1 32-32 32 32 0 0 1-32 32z"]
};
var faPlaceOfWorship = {
  prefix: 'fas',
  iconName: 'place-of-worship',
  icon: [640, 512, [], "f67f", "M620.61 366.55L512 320v192h112c8.84 0 16-7.16 16-16V395.96a32 32 0 0 0-19.39-29.41zM0 395.96V496c0 8.84 7.16 16 16 16h112V320L19.39 366.55A32 32 0 0 0 0 395.96zm464.46-149.28L416 217.6V102.63c0-8.49-3.37-16.62-9.38-22.63L331.31 4.69c-6.25-6.25-16.38-6.25-22.62 0L233.38 80c-6 6-9.38 14.14-9.38 22.63V217.6l-48.46 29.08A31.997 31.997 0 0 0 160 274.12V512h96v-96c0-35.35 28.66-64 64-64s64 28.65 64 64v96h96V274.12c0-11.24-5.9-21.66-15.54-27.44z"]
};
var faPlane = {
  prefix: 'fas',
  iconName: 'plane',
  icon: [576, 512, [], "f072", "M480 192H365.71L260.61 8.06A16.014 16.014 0 0 0 246.71 0h-65.5c-10.63 0-18.3 10.17-15.38 20.39L214.86 192H112l-43.2-57.6c-3.02-4.03-7.77-6.4-12.8-6.4H16.01C5.6 128-2.04 137.78.49 147.88L32 256 .49 364.12C-2.04 374.22 5.6 384 16.01 384H56c5.04 0 9.78-2.37 12.8-6.4L112 320h102.86l-49.03 171.6c-2.92 10.22 4.75 20.4 15.38 20.4h65.5c5.74 0 11.04-3.08 13.89-8.06L365.71 320H480c35.35 0 96-28.65 96-64s-60.65-64-96-64z"]
};
var faPlaneArrival = {
  prefix: 'fas',
  iconName: 'plane-arrival',
  icon: [640, 512, [], "f5af", "M624 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM44.81 205.66l88.74 80a62.607 62.607 0 0 0 25.47 13.93l287.6 78.35c26.48 7.21 54.56 8.72 81 1.36 29.67-8.27 43.44-21.21 47.25-35.71 3.83-14.5-1.73-32.71-23.37-54.96-19.28-19.82-44.35-32.79-70.83-40l-97.51-26.56L282.8 30.22c-1.51-5.81-5.95-10.35-11.66-11.91L206.05.58c-10.56-2.88-20.9 5.32-20.71 16.44l47.92 164.21-102.2-27.84-27.59-67.88c-1.93-4.89-6.01-8.57-11.02-9.93L52.72 64.75c-10.34-2.82-20.53 5-20.72 15.88l.23 101.78c.19 8.91 6.03 17.34 12.58 23.25z"]
};
var faPlaneDeparture = {
  prefix: 'fas',
  iconName: 'plane-departure',
  icon: [640, 512, [], "f5b0", "M624 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM80.55 341.27c6.28 6.84 15.1 10.72 24.33 10.71l130.54-.18a65.62 65.62 0 0 0 29.64-7.12l290.96-147.65c26.74-13.57 50.71-32.94 67.02-58.31 18.31-28.48 20.3-49.09 13.07-63.65-7.21-14.57-24.74-25.27-58.25-27.45-29.85-1.94-59.54 5.92-86.28 19.48l-98.51 49.99-218.7-82.06a17.799 17.799 0 0 0-18-1.11L90.62 67.29c-10.67 5.41-13.25 19.65-5.17 28.53l156.22 98.1-103.21 52.38-72.35-36.47a17.804 17.804 0 0 0-16.07.02L9.91 230.22c-10.44 5.3-13.19 19.12-5.57 28.08l76.21 82.97z"]
};
var faPlaneSlash = {
  prefix: 'fas',
  iconName: 'plane-slash',
  icon: [640, 512, [], "e069", "M32.48,147.88,64,256,32.48,364.13A16,16,0,0,0,48,384H88a16,16,0,0,0,12.8-6.41L144,320H246.85l-49,171.59A16,16,0,0,0,213.2,512h65.5a16,16,0,0,0,13.89-8.06l66.6-116.54L34.35,136.34A15.47,15.47,0,0,0,32.48,147.88ZM633.82,458.09,455.14,320H512c35.34,0,96-28.66,96-64s-60.66-64-96-64H397.7L292.61,8.06C290.06,3.61,283.84,0,278.71,0H213.2a16,16,0,0,0-15.38,20.39l36.94,129.29L45.46,3.38A16,16,0,0,0,23,6.19L3.37,31.45A16,16,0,0,0,6.18,53.91L594.54,508.63A16,16,0,0,0,617,505.81l19.64-25.26A16,16,0,0,0,633.82,458.09Z"]
};
var faPlay = {
  prefix: 'fas',
  iconName: 'play',
  icon: [448, 512, [], "f04b", "M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"]
};
var faPlayCircle = {
  prefix: 'fas',
  iconName: 'play-circle',
  icon: [512, 512, [], "f144", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm115.7 272l-176 101c-15.8 8.8-35.7-2.5-35.7-21V152c0-18.4 19.8-29.8 35.7-21l176 107c16.4 9.2 16.4 32.9 0 42z"]
};
var faPlug = {
  prefix: 'fas',
  iconName: 'plug',
  icon: [384, 512, [], "f1e6", "M320,32a32,32,0,0,0-64,0v96h64Zm48,128H16A16,16,0,0,0,0,176v32a16,16,0,0,0,16,16H32v32A160.07,160.07,0,0,0,160,412.8V512h64V412.8A160.07,160.07,0,0,0,352,256V224h16a16,16,0,0,0,16-16V176A16,16,0,0,0,368,160ZM128,32a32,32,0,0,0-64,0v96h64Z"]
};
var faPlus = {
  prefix: 'fas',
  iconName: 'plus',
  icon: [448, 512, [], "f067", "M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]
};
var faPlusCircle = {
  prefix: 'fas',
  iconName: 'plus-circle',
  icon: [512, 512, [], "f055", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"]
};
var faPlusSquare = {
  prefix: 'fas',
  iconName: 'plus-square',
  icon: [448, 512, [], "f0fe", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-32 252c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92H92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"]
};
var faPodcast = {
  prefix: 'fas',
  iconName: 'podcast',
  icon: [448, 512, [], "f2ce", "M267.429 488.563C262.286 507.573 242.858 512 224 512c-18.857 0-38.286-4.427-43.428-23.437C172.927 460.134 160 388.898 160 355.75c0-35.156 31.142-43.75 64-43.75s64 8.594 64 43.75c0 32.949-12.871 104.179-20.571 132.813zM156.867 288.554c-18.693-18.308-29.958-44.173-28.784-72.599 2.054-49.724 42.395-89.956 92.124-91.881C274.862 121.958 320 165.807 320 220c0 26.827-11.064 51.116-28.866 68.552-2.675 2.62-2.401 6.986.628 9.187 9.312 6.765 16.46 15.343 21.234 25.363 1.741 3.654 6.497 4.66 9.449 1.891 28.826-27.043 46.553-65.783 45.511-108.565-1.855-76.206-63.595-138.208-139.793-140.369C146.869 73.753 80 139.215 80 220c0 41.361 17.532 78.7 45.55 104.989 2.953 2.771 7.711 1.77 9.453-1.887 4.774-10.021 11.923-18.598 21.235-25.363 3.029-2.2 3.304-6.566.629-9.185zM224 0C100.204 0 0 100.185 0 224c0 89.992 52.602 165.647 125.739 201.408 4.333 2.118 9.267-1.544 8.535-6.31-2.382-15.512-4.342-30.946-5.406-44.339-.146-1.836-1.149-3.486-2.678-4.512-47.4-31.806-78.564-86.016-78.187-147.347.592-96.237 79.29-174.648 175.529-174.899C320.793 47.747 400 126.797 400 224c0 61.932-32.158 116.49-80.65 147.867-.999 14.037-3.069 30.588-5.624 47.23-.732 4.767 4.203 8.429 8.535 6.31C395.227 389.727 448 314.187 448 224 448 100.205 347.815 0 224 0zm0 160c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64z"]
};
var faPoll = {
  prefix: 'fas',
  iconName: 'poll',
  icon: [448, 512, [], "f681", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM160 368c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16V240c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v128zm96 0c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16V144c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v224zm96 0c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-64c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v64z"]
};
var faPollH = {
  prefix: 'fas',
  iconName: 'poll-h',
  icon: [448, 512, [], "f682", "M448 432V80c0-26.5-21.5-48-48-48H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48zM112 192c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h128c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16H112zm0 96c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h224c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16H112zm0 96c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16h-64z"]
};
var faPoo = {
  prefix: 'fas',
  iconName: 'poo',
  icon: [512, 512, [], "f2fe", "M451.4 369.1C468.7 356 480 335.4 480 312c0-39.8-32.2-72-72-72h-14.1c13.4-11.7 22.1-28.8 22.1-48 0-35.3-28.7-64-64-64h-5.9c3.6-10.1 5.9-20.7 5.9-32 0-53-43-96-96-96-5.2 0-10.2.7-15.1 1.5C250.3 14.6 256 30.6 256 48c0 44.2-35.8 80-80 80h-16c-35.3 0-64 28.7-64 64 0 19.2 8.7 36.3 22.1 48H104c-39.8 0-72 32.2-72 72 0 23.4 11.3 44 28.6 57.1C26.3 374.6 0 404.1 0 440c0 39.8 32.2 72 72 72h368c39.8 0 72-32.2 72-72 0-35.9-26.3-65.4-60.6-70.9zM192 256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm159.5 139C341 422.9 293 448 256 448s-85-25.1-95.5-53c-2-5.3 2-11 7.8-11h175.4c5.8 0 9.8 5.7 7.8 11zM320 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]
};
var faPooStorm = {
  prefix: 'fas',
  iconName: 'poo-storm',
  icon: [448, 512, [], "f75a", "M308 336h-57.7l17.3-64.9c2-7.6-3.7-15.1-11.6-15.1h-68c-6 0-11.1 4.5-11.9 10.4l-16 120c-1 7.2 4.6 13.6 11.9 13.6h59.3l-23 97.2c-1.8 7.6 4 14.8 11.7 14.8 4.2 0 8.2-2.2 10.4-6l88-152c4.6-8-1.2-18-10.4-18zm66.4-111.3c5.9-9.6 9.6-20.6 9.6-32.7 0-35.3-28.7-64-64-64h-5.9c3.6-10.1 5.9-20.7 5.9-32 0-53-43-96-96-96-5.2 0-10.2.7-15.1 1.5C218.3 14.6 224 30.6 224 48c0 44.2-35.8 80-80 80h-16c-35.3 0-64 28.7-64 64 0 12.1 3.7 23.1 9.6 32.7C32.6 228 0 262.2 0 304c0 44 36 80 80 80h48.3c.1-.6 0-1.2 0-1.8l16-120c3-21.8 21.7-38.2 43.7-38.2h68c13.8 0 26.5 6.3 34.9 17.2s11.2 24.8 7.6 38.1l-6.6 24.7h16c15.7 0 30.3 8.4 38.1 22 7.8 13.6 7.8 30.5 0 44l-8.1 14h30c44 0 80-36 80-80 .1-41.8-32.5-76-73.5-79.3z"]
};
var faPoop = {
  prefix: 'fas',
  iconName: 'poop',
  icon: [512, 512, [], "f619", "M451.36 369.14C468.66 355.99 480 335.41 480 312c0-39.77-32.24-72-72-72h-14.07c13.42-11.73 22.07-28.78 22.07-48 0-35.35-28.65-64-64-64h-5.88c3.57-10.05 5.88-20.72 5.88-32 0-53.02-42.98-96-96-96-5.17 0-10.15.74-15.11 1.52C250.31 14.64 256 30.62 256 48c0 44.18-35.82 80-80 80h-16c-35.35 0-64 28.65-64 64 0 19.22 8.65 36.27 22.07 48H104c-39.76 0-72 32.23-72 72 0 23.41 11.34 43.99 28.64 57.14C26.31 374.62 0 404.12 0 440c0 39.76 32.24 72 72 72h368c39.76 0 72-32.24 72-72 0-35.88-26.31-65.38-60.64-70.86z"]
};
var faPortrait = {
  prefix: 'fas',
  iconName: 'portrait',
  icon: [384, 512, [], "f3e0", "M336 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM192 128c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H102.4C90 384 80 375.4 80 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"]
};
var faPoundSign = {
  prefix: 'fas',
  iconName: 'pound-sign',
  icon: [320, 512, [], "f154", "M308 352h-45.495c-6.627 0-12 5.373-12 12v50.848H128V288h84c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-84v-63.556c0-32.266 24.562-57.086 61.792-57.086 23.658 0 45.878 11.505 57.652 18.849 5.151 3.213 11.888 2.051 15.688-2.685l28.493-35.513c4.233-5.276 3.279-13.005-2.119-17.081C273.124 54.56 236.576 32 187.931 32 106.026 32 48 84.742 48 157.961V224H20c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h28v128H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h296c6.627 0 12-5.373 12-12V364c0-6.627-5.373-12-12-12z"]
};
var faPowerOff = {
  prefix: 'fas',
  iconName: 'power-off',
  icon: [512, 512, [], "f011", "M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z"]
};
var faPray = {
  prefix: 'fas',
  iconName: 'pray',
  icon: [384, 512, [], "f683", "M256 128c35.35 0 64-28.65 64-64S291.35 0 256 0s-64 28.65-64 64 28.65 64 64 64zm-30.63 169.75c14.06 16.72 39 19.09 55.97 5.22l88-72.02c17.09-13.98 19.59-39.19 5.62-56.28-13.97-17.11-39.19-19.59-56.31-5.62l-57.44 47-38.91-46.31c-15.44-18.39-39.22-27.92-64-25.33-24.19 2.48-45.25 16.27-56.37 36.92l-49.37 92.03c-23.4 43.64-8.69 96.37 34.19 123.75L131.56 432H40c-22.09 0-40 17.91-40 40s17.91 40 40 40h208c34.08 0 53.77-42.79 28.28-68.28L166.42 333.86l34.8-64.87 24.15 28.76z"]
};
var faPrayingHands = {
  prefix: 'fas',
  iconName: 'praying-hands',
  icon: [640, 512, [], "f684", "M272 191.91c-17.6 0-32 14.4-32 32v80c0 8.84-7.16 16-16 16s-16-7.16-16-16v-76.55c0-17.39 4.72-34.47 13.69-49.39l77.75-129.59c9.09-15.16 4.19-34.81-10.97-43.91-14.45-8.67-32.72-4.3-42.3 9.21-.2.23-.62.21-.79.48l-117.26 175.9C117.56 205.9 112 224.31 112 243.29v80.23l-90.12 30.04A31.974 31.974 0 0 0 0 383.91v96c0 10.82 8.52 32 32 32 2.69 0 5.41-.34 8.06-1.03l179.19-46.62C269.16 449.99 304 403.8 304 351.91v-128c0-17.6-14.4-32-32-32zm346.12 161.73L528 323.6v-80.23c0-18.98-5.56-37.39-16.12-53.23L394.62 14.25c-.18-.27-.59-.24-.79-.48-9.58-13.51-27.85-17.88-42.3-9.21-15.16 9.09-20.06 28.75-10.97 43.91l77.75 129.59c8.97 14.92 13.69 32 13.69 49.39V304c0 8.84-7.16 16-16 16s-16-7.16-16-16v-80c0-17.6-14.4-32-32-32s-32 14.4-32 32v128c0 51.89 34.84 98.08 84.75 112.34l179.19 46.62c2.66.69 5.38 1.03 8.06 1.03 23.48 0 32-21.18 32-32v-96c0-13.77-8.81-25.99-21.88-30.35z"]
};
var faPrescription = {
  prefix: 'fas',
  iconName: 'prescription',
  icon: [384, 512, [], "f5b1", "M301.26 352l78.06-78.06c6.25-6.25 6.25-16.38 0-22.63l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0L256 306.74l-83.96-83.96C219.31 216.8 256 176.89 256 128c0-53.02-42.98-96-96-96H16C7.16 32 0 39.16 0 48v256c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-80h18.75l128 128-78.06 78.06c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0L256 397.25l78.06 78.06c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.25-6.25 6.25-16.38 0-22.63L301.26 352zM64 96h96c17.64 0 32 14.36 32 32s-14.36 32-32 32H64V96z"]
};
var faPrescriptionBottle = {
  prefix: 'fas',
  iconName: 'prescription-bottle',
  icon: [384, 512, [], "f485", "M32 192h120c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H32v64h120c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H32v64h120c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H32v64c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32V128H32v64zM360 0H24C10.8 0 0 10.8 0 24v48c0 13.2 10.8 24 24 24h336c13.2 0 24-10.8 24-24V24c0-13.2-10.8-24-24-24z"]
};
var faPrescriptionBottleAlt = {
  prefix: 'fas',
  iconName: 'prescription-bottle-alt',
  icon: [384, 512, [], "f486", "M360 0H24C10.8 0 0 10.8 0 24v48c0 13.2 10.8 24 24 24h336c13.2 0 24-10.8 24-24V24c0-13.2-10.8-24-24-24zM32 480c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32V128H32v352zm64-184c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48z"]
};
var faPrint = {
  prefix: 'fas',
  iconName: 'print',
  icon: [512, 512, [], "f02f", "M448 192V77.25c0-8.49-3.37-16.62-9.37-22.63L393.37 9.37c-6-6-14.14-9.37-22.63-9.37H96C78.33 0 64 14.33 64 32v160c-35.35 0-64 28.65-64 64v112c0 8.84 7.16 16 16 16h48v96c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-96h48c8.84 0 16-7.16 16-16V256c0-35.35-28.65-64-64-64zm-64 256H128v-96h256v96zm0-224H128V64h192v48c0 8.84 7.16 16 16 16h48v96zm48 72c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"]
};
var faProcedures = {
  prefix: 'fas',
  iconName: 'procedures',
  icon: [640, 512, [], "f487", "M528 224H272c-8.8 0-16 7.2-16 16v144H64V144c0-8.8-7.2-16-16-16H16c-8.8 0-16 7.2-16 16v352c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-48h512v48c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V336c0-61.9-50.1-112-112-112zM136 96h126.1l27.6 55.2c5.9 11.8 22.7 11.8 28.6 0L368 51.8 390.1 96H512c8.8 0 16-7.2 16-16s-7.2-16-16-16H409.9L382.3 8.8C376.4-3 359.6-3 353.7 8.8L304 108.2l-19.9-39.8c-1.4-2.7-4.1-4.4-7.2-4.4H136c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm24 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64z"]
};
var faProjectDiagram = {
  prefix: 'fas',
  iconName: 'project-diagram',
  icon: [640, 512, [], "f542", "M384 320H256c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM192 32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v128c0 17.67 14.33 32 32 32h95.72l73.16 128.04C211.98 300.98 232.4 288 256 288h.28L192 175.51V128h224V64H192V32zM608 0H480c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32z"]
};
var faPumpMedical = {
  prefix: 'fas',
  iconName: 'pump-medical',
  icon: [384, 512, [], "e06a", "M235.51,159.82H84.24A64,64,0,0,0,20.51,218L.14,442a64,64,0,0,0,63.74,69.8h192A64,64,0,0,0,319.61,442L299.24,218A64,64,0,0,0,235.51,159.82Zm4.37,173.33a13.35,13.35,0,0,1-13.34,13.34h-40v40a13.33,13.33,0,0,1-13.33,13.33H146.54a13.33,13.33,0,0,1-13.33-13.33v-40h-40a13.34,13.34,0,0,1-13.33-13.34V306.49a13.33,13.33,0,0,1,13.33-13.34h40v-40a13.33,13.33,0,0,1,13.33-13.33h26.67a13.33,13.33,0,0,1,13.33,13.33v40h40a13.34,13.34,0,0,1,13.34,13.34ZM379.19,93.88,335.87,50.56a64,64,0,0,0-45.24-18.74H223.88a32,32,0,0,0-32-32h-64a32,32,0,0,0-32,32v96h128v-32h66.75l43.31,43.31a16,16,0,0,0,22.63,0l22.62-22.62A16,16,0,0,0,379.19,93.88Z"]
};
var faPumpSoap = {
  prefix: 'fas',
  iconName: 'pump-soap',
  icon: [384, 512, [], "e06b", "M235.63,160H84.37a64,64,0,0,0-63.74,58.21L.27,442.21A64,64,0,0,0,64,512H256a64,64,0,0,0,63.74-69.79l-20.36-224A64,64,0,0,0,235.63,160ZM160,416c-33.12,0-60-26.33-60-58.75,0-25,35.7-75.47,52-97.27A10,10,0,0,1,168,260c16.33,21.8,52,72.27,52,97.27C220,389.67,193.12,416,160,416ZM379.31,94.06,336,50.74A64,64,0,0,0,290.75,32H224A32,32,0,0,0,192,0H128A32,32,0,0,0,96,32v96H224V96h66.75l43.31,43.31a16,16,0,0,0,22.63,0l22.62-22.62A16,16,0,0,0,379.31,94.06Z"]
};
var faPuzzlePiece = {
  prefix: 'fas',
  iconName: 'puzzle-piece',
  icon: [576, 512, [], "f12e", "M519.442 288.651c-41.519 0-59.5 31.593-82.058 31.593C377.409 320.244 432 144 432 144s-196.288 80-196.288-3.297c0-35.827 36.288-46.25 36.288-85.985C272 19.216 243.885 0 210.539 0c-34.654 0-66.366 18.891-66.366 56.346 0 41.364 31.711 59.277 31.711 81.75C175.885 207.719 0 166.758 0 166.758v333.237s178.635 41.047 178.635-28.662c0-22.473-40-40.107-40-81.471 0-37.456 29.25-56.346 63.577-56.346 33.673 0 61.788 19.216 61.788 54.717 0 39.735-36.288 50.158-36.288 85.985 0 60.803 129.675 25.73 181.23 25.73 0 0-34.725-120.101 25.827-120.101 35.962 0 46.423 36.152 86.308 36.152C556.712 416 576 387.99 576 354.443c0-34.199-18.962-65.792-56.558-65.792z"]
};
var faQrcode = {
  prefix: 'fas',
  iconName: 'qrcode',
  icon: [448, 512, [], "f029", "M0 224h192V32H0v192zM64 96h64v64H64V96zm192-64v192h192V32H256zm128 128h-64V96h64v64zM0 480h192V288H0v192zm64-128h64v64H64v-64zm352-64h32v128h-96v-32h-32v96h-64V288h96v32h64v-32zm0 160h32v32h-32v-32zm-64 0h32v32h-32v-32z"]
};
var faQuestion = {
  prefix: 'fas',
  iconName: 'question',
  icon: [384, 512, [], "f128", "M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"]
};
var faQuestionCircle = {
  prefix: 'fas',
  iconName: 'question-circle',
  icon: [512, 512, [], "f059", "M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z"]
};
var faQuidditch = {
  prefix: 'fas',
  iconName: 'quidditch',
  icon: [640, 512, [], "f458", "M256.5 216.8L343.2 326s-16.6 102.4-76.6 150.1C206.7 523.8 0 510.2 0 510.2s3.8-23.1 11-55.4l94.6-112.2c4-4.7-.9-11.6-6.6-9.5l-60.4 22.1c14.4-41.7 32.7-80 54.6-97.5 59.9-47.8 163.3-40.9 163.3-40.9zm238 135c-44 0-79.8 35.8-79.8 79.9 0 44.1 35.7 79.9 79.8 79.9 44.1 0 79.8-35.8 79.8-79.9 0-44.2-35.8-79.9-79.8-79.9zM636.5 31L616.7 6c-5.5-6.9-15.5-8-22.4-2.6L361.8 181.3l-34.1-43c-5.1-6.4-15.1-5.2-18.6 2.2l-25.3 54.6 86.7 109.2 58.8-12.4c8-1.7 11.4-11.2 6.3-17.6l-34.1-42.9L634 53.5c6.9-5.5 8-15.6 2.5-22.5z"]
};
var faQuoteLeft = {
  prefix: 'fas',
  iconName: 'quote-left',
  icon: [512, 512, [], "f10d", "M464 256h-80v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8c-88.4 0-160 71.6-160 160v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zm-288 0H96v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8C71.6 32 0 103.6 0 192v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z"]
};
var faQuoteRight = {
  prefix: 'fas',
  iconName: 'quote-right',
  icon: [512, 512, [], "f10e", "M464 32H336c-26.5 0-48 21.5-48 48v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48zm-288 0H48C21.5 32 0 53.5 0 80v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48z"]
};
var faQuran = {
  prefix: 'fas',
  iconName: 'quran',
  icon: [448, 512, [], "f687", "M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM301.08 145.82c.6-1.21 1.76-1.82 2.92-1.82s2.32.61 2.92 1.82l11.18 22.65 25 3.63c2.67.39 3.74 3.67 1.81 5.56l-18.09 17.63 4.27 24.89c.36 2.11-1.31 3.82-3.21 3.82-.5 0-1.02-.12-1.52-.38L304 211.87l-22.36 11.75c-.5.26-1.02.38-1.52.38-1.9 0-3.57-1.71-3.21-3.82l4.27-24.89-18.09-17.63c-1.94-1.89-.87-5.17 1.81-5.56l24.99-3.63 11.19-22.65zm-57.89-69.01c13.67 0 27.26 2.49 40.38 7.41a6.775 6.775 0 1 1-2.38 13.12c-.67 0-3.09-.21-4.13-.21-52.31 0-94.86 42.55-94.86 94.86 0 52.3 42.55 94.86 94.86 94.86 1.03 0 3.48-.21 4.13-.21 3.93 0 6.8 3.14 6.8 6.78 0 2.98-1.94 5.51-4.62 6.42-13.07 4.87-26.59 7.34-40.19 7.34C179.67 307.19 128 255.51 128 192c0-63.52 51.67-115.19 115.19-115.19zM380.8 448H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"]
};
var faRadiation = {
  prefix: 'fas',
  iconName: 'radiation',
  icon: [496, 512, [], "f7b9", "M328.2 255.8h151.6c9.1 0 16.8-7.7 16.2-16.8-5.1-75.8-44.4-142.2-102.5-184.2-7.4-5.3-17.9-2.9-22.7 4.8L290.4 188c22.6 14.3 37.8 39.2 37.8 67.8zm-37.8 67.7c-12.3 7.7-26.8 12.4-42.4 12.4-15.6 0-30-4.7-42.4-12.4L125.2 452c-4.8 7.7-2.4 18.1 5.6 22.4C165.7 493.2 205.6 504 248 504s82.3-10.8 117.2-29.6c8-4.3 10.4-14.8 5.6-22.4l-80.4-128.5zM248 303.8c26.5 0 48-21.5 48-48s-21.5-48-48-48-48 21.5-48 48 21.5 48 48 48zm-231.8-48h151.6c0-28.6 15.2-53.5 37.8-67.7L125.2 59.7c-4.8-7.7-15.3-10.2-22.7-4.8C44.4 96.9 5.1 163.3 0 239.1c-.6 9 7.1 16.7 16.2 16.7z"]
};
var faRadiationAlt = {
  prefix: 'fas',
  iconName: 'radiation-alt',
  icon: [496, 512, [], "f7ba", "M312 256h79.1c9.2 0 16.9-7.7 16-16.8-4.6-43.6-27-81.8-59.5-107.8-7.6-6.1-18.8-4.5-24 3.8L281.9 202c18 11.2 30.1 31.2 30.1 54zm-97.8 54.1L172.4 377c-4.9 7.8-2.4 18.4 5.8 22.5 21.1 10.4 44.7 16.5 69.8 16.5s48.7-6.1 69.9-16.5c8.2-4.1 10.6-14.7 5.8-22.5l-41.8-66.9c-9.8 6.2-21.4 9.9-33.8 9.9s-24.1-3.7-33.9-9.9zM104.9 256H184c0-22.8 12.1-42.8 30.2-54.1l-41.7-66.8c-5.2-8.3-16.4-9.9-24-3.8-32.6 26-54.9 64.2-59.5 107.8-1.1 9.2 6.7 16.9 15.9 16.9zM248 504c137 0 248-111 248-248S385 8 248 8 0 119 0 256s111 248 248 248zm0-432c101.5 0 184 82.5 184 184s-82.5 184-184 184S64 357.5 64 256 146.5 72 248 72zm0 216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32z"]
};
var faRainbow = {
  prefix: 'fas',
  iconName: 'rainbow',
  icon: [576, 512, [], "f75b", "M268.3 32.7C115.4 42.9 0 176.9 0 330.2V464c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320C64 186.8 180.9 80.3 317.5 97.9 430.4 112.4 512 214 512 327.8V464c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320c0-165.3-140-298.6-307.7-287.3zm-5.6 96.9C166 142 96 229.1 96 326.7V464c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320c0-74.8 64.5-134.8 140.8-127.4 66.5 6.5 115.2 66.2 115.2 133.1V464c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320c0-114.2-100.2-205.4-217.3-190.4zm6.2 96.3c-45.6 8.9-76.9 51.5-76.9 97.9V464c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320c0-17.6 14.3-32 32-32s32 14.4 32 32v144c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320c0-59.2-53.8-106-115.1-94.1z"]
};
var faRandom = {
  prefix: 'fas',
  iconName: 'random',
  icon: [512, 512, [], "f074", "M504.971 359.029c9.373 9.373 9.373 24.569 0 33.941l-80 79.984c-15.01 15.01-40.971 4.49-40.971-16.971V416h-58.785a12.004 12.004 0 0 1-8.773-3.812l-70.556-75.596 53.333-57.143L352 336h32v-39.981c0-21.438 25.943-31.998 40.971-16.971l80 79.981zM12 176h84l52.781 56.551 53.333-57.143-70.556-75.596A11.999 11.999 0 0 0 122.785 96H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12zm372 0v39.984c0 21.46 25.961 31.98 40.971 16.971l80-79.984c9.373-9.373 9.373-24.569 0-33.941l-80-79.981C409.943 24.021 384 34.582 384 56.019V96h-58.785a12.004 12.004 0 0 0-8.773 3.812L96 336H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h110.785c3.326 0 6.503-1.381 8.773-3.812L352 176h32z"]
};
var faReceipt = {
  prefix: 'fas',
  iconName: 'receipt',
  icon: [384, 512, [], "f543", "M358.4 3.2L320 48 265.6 3.2a15.9 15.9 0 0 0-19.2 0L192 48 137.6 3.2a15.9 15.9 0 0 0-19.2 0L64 48 25.6 3.2C15-4.7 0 2.8 0 16v480c0 13.2 15 20.7 25.6 12.8L64 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L192 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L320 464l38.4 44.8c10.5 7.9 25.6.4 25.6-12.8V16c0-13.2-15-20.7-25.6-12.8zM320 360c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16z"]
};
var faRecordVinyl = {
  prefix: 'fas',
  iconName: 'record-vinyl',
  icon: [512, 512, [], "f8d9", "M256 152a104 104 0 1 0 104 104 104 104 0 0 0-104-104zm0 128a24 24 0 1 1 24-24 24 24 0 0 1-24 24zm0-272C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 376a128 128 0 1 1 128-128 128 128 0 0 1-128 128z"]
};
var faRecycle = {
  prefix: 'fas',
  iconName: 'recycle',
  icon: [512, 512, [], "f1b8", "M184.561 261.903c3.232 13.997-12.123 24.635-24.068 17.168l-40.736-25.455-50.867 81.402C55.606 356.273 70.96 384 96.012 384H148c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12H96.115c-75.334 0-121.302-83.048-81.408-146.88l50.822-81.388-40.725-25.448c-12.081-7.547-8.966-25.961 4.879-29.158l110.237-25.45c8.611-1.988 17.201 3.381 19.189 11.99l25.452 110.237zm98.561-182.915l41.289 66.076-40.74 25.457c-12.051 7.528-9 25.953 4.879 29.158l110.237 25.45c8.672 1.999 17.215-3.438 19.189-11.99l25.45-110.237c3.197-13.844-11.99-24.719-24.068-17.168l-40.687 25.424-41.263-66.082c-37.521-60.033-125.209-60.171-162.816 0l-17.963 28.766c-3.51 5.62-1.8 13.021 3.82 16.533l33.919 21.195c5.62 3.512 13.024 1.803 16.536-3.817l17.961-28.743c12.712-20.341 41.973-19.676 54.257-.022zM497.288 301.12l-27.515-44.065c-3.511-5.623-10.916-7.334-16.538-3.821l-33.861 21.159c-5.62 3.512-7.33 10.915-3.818 16.536l27.564 44.112c13.257 21.211-2.057 48.96-27.136 48.96H320V336.02c0-14.213-17.242-21.383-27.313-11.313l-80 79.981c-6.249 6.248-6.249 16.379 0 22.627l80 79.989C302.689 517.308 320 510.3 320 495.989V448h95.88c75.274 0 121.335-82.997 81.408-146.88z"]
};
var faRedo = {
  prefix: 'fas',
  iconName: 'redo',
  icon: [512, 512, [], "f01e", "M500.33 0h-47.41a12 12 0 0 0-12 12.57l4 82.76A247.42 247.42 0 0 0 256 8C119.34 8 7.9 119.53 8 256.19 8.1 393.07 119.1 504 256 504a247.1 247.1 0 0 0 166.18-63.91 12 12 0 0 0 .48-17.43l-34-34a12 12 0 0 0-16.38-.55A176 176 0 1 1 402.1 157.8l-101.53-4.87a12 12 0 0 0-12.57 12v47.41a12 12 0 0 0 12 12h200.33a12 12 0 0 0 12-12V12a12 12 0 0 0-12-12z"]
};
var faRedoAlt = {
  prefix: 'fas',
  iconName: 'redo-alt',
  icon: [512, 512, [], "f2f9", "M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"]
};
var faRegistered = {
  prefix: 'fas',
  iconName: 'registered',
  icon: [512, 512, [], "f25d", "M285.363 207.475c0 18.6-9.831 28.431-28.431 28.431h-29.876v-56.14h23.378c28.668 0 34.929 8.773 34.929 27.709zM504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM363.411 360.414c-46.729-84.825-43.299-78.636-44.702-80.98 23.432-15.172 37.945-42.979 37.945-74.486 0-54.244-31.5-89.252-105.498-89.252h-70.667c-13.255 0-24 10.745-24 24V372c0 13.255 10.745 24 24 24h22.567c13.255 0 24-10.745 24-24v-71.663h25.556l44.129 82.937a24.001 24.001 0 0 0 21.188 12.727h24.464c18.261-.001 29.829-19.591 21.018-35.587z"]
};
var faRemoveFormat = {
  prefix: 'fas',
  iconName: 'remove-format',
  icon: [640, 512, [], "f87d", "M336 416h-11.17l9.26-27.77L267 336.4 240.49 416H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm297.82 42.1L377 259.59 426.17 112H544v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16H176a16 16 0 0 0-16 16v43.9L45.46 3.38A16 16 0 0 0 23 6.19L3.37 31.46a16 16 0 0 0 2.81 22.45l588.36 454.72a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zM309.91 207.76L224 141.36V112h117.83z"]
};
var faReply = {
  prefix: 'fas',
  iconName: 'reply',
  icon: [512, 512, [], "f3e5", "M8.309 189.836L184.313 37.851C199.719 24.546 224 35.347 224 56.015v80.053c160.629 1.839 288 34.032 288 186.258 0 61.441-39.581 122.309-83.333 154.132-13.653 9.931-33.111-2.533-28.077-18.631 45.344-145.012-21.507-183.51-176.59-185.742V360c0 20.7-24.3 31.453-39.687 18.164l-176.004-152c-11.071-9.562-11.086-26.753 0-36.328z"]
};
var faReplyAll = {
  prefix: 'fas',
  iconName: 'reply-all',
  icon: [576, 512, [], "f122", "M136.309 189.836L312.313 37.851C327.72 24.546 352 35.348 352 56.015v82.763c129.182 10.231 224 52.212 224 183.548 0 61.441-39.582 122.309-83.333 154.132-13.653 9.931-33.111-2.533-28.077-18.631 38.512-123.162-3.922-169.482-112.59-182.015v84.175c0 20.701-24.3 31.453-39.687 18.164L136.309 226.164c-11.071-9.561-11.086-26.753 0-36.328zm-128 36.328L184.313 378.15C199.7 391.439 224 380.687 224 359.986v-15.818l-108.606-93.785A55.96 55.96 0 0 1 96 207.998a55.953 55.953 0 0 1 19.393-42.38L224 71.832V56.015c0-20.667-24.28-31.469-39.687-18.164L8.309 189.836c-11.086 9.575-11.071 26.767 0 36.328z"]
};
var faRepublican = {
  prefix: 'fas',
  iconName: 'republican',
  icon: [640, 512, [], "f75e", "M544 192c0-88.4-71.6-160-160-160H160C71.6 32 0 103.6 0 192v64h544v-64zm-367.7-21.6l-19.8 19.3 4.7 27.3c.8 4.9-4.3 8.6-8.7 6.3L128 210.4l-24.5 12.9c-4.3 2.3-9.5-1.4-8.7-6.3l4.7-27.3-19.8-19.3c-3.6-3.5-1.6-9.5 3.3-10.2l27.4-4 12.2-24.8c2.2-4.5 8.6-4.4 10.7 0l12.2 24.8 27.4 4c5 .7 6.9 6.7 3.4 10.2zm144 0l-19.8 19.3 4.7 27.3c.8 4.9-4.3 8.6-8.7 6.3L272 210.4l-24.5 12.9c-4.3 2.3-9.5-1.4-8.7-6.3l4.7-27.3-19.8-19.3c-3.6-3.5-1.6-9.5 3.3-10.2l27.4-4 12.2-24.8c2.2-4.5 8.6-4.4 10.7 0l12.2 24.8 27.4 4c5 .7 6.9 6.7 3.4 10.2zm144 0l-19.8 19.3 4.7 27.3c.8 4.9-4.3 8.6-8.7 6.3L416 210.4l-24.5 12.9c-4.3 2.3-9.5-1.4-8.7-6.3l4.7-27.3-19.8-19.3c-3.6-3.5-1.6-9.5 3.3-10.2l27.4-4 12.2-24.8c2.2-4.5 8.6-4.4 10.7 0l12.2 24.8 27.4 4c5 .7 6.9 6.7 3.4 10.2zM624 320h-32c-8.8 0-16 7.2-16 16v64c0 8.8-7.2 16-16 16s-16-7.2-16-16V288H0v176c0 8.8 7.2 16 16 16h96c8.8 0 16-7.2 16-16v-80h192v80c0 8.8 7.2 16 16 16h96c8.8 0 16-7.2 16-16V352h32v43.3c0 41.8 30 80.1 71.6 84.3 47.8 4.9 88.4-32.7 88.4-79.6v-64c0-8.8-7.2-16-16-16z"]
};
var faRestroom = {
  prefix: 'fas',
  iconName: 'restroom',
  icon: [640, 512, [], "f7bd", "M128 128c35.3 0 64-28.7 64-64S163.3 0 128 0 64 28.7 64 64s28.7 64 64 64zm384 0c35.3 0 64-28.7 64-64S547.3 0 512 0s-64 28.7-64 64 28.7 64 64 64zm127.3 226.5l-45.6-185.8c-3.3-13.5-15.5-23-29.8-24.2-15 9.7-32.8 15.5-52 15.5-19.2 0-37-5.8-52-15.5-14.3 1.2-26.5 10.7-29.8 24.2l-45.6 185.8C381 369.6 393 384 409.2 384H464v104c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V384h54.8c16.2 0 28.2-14.4 24.5-29.5zM336 0h-32c-8.8 0-16 7.2-16 16v480c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16zM180.1 144.4c-15 9.8-32.9 15.6-52.1 15.6-19.2 0-37.1-5.8-52.1-15.6C51.3 146.5 32 166.9 32 192v136c0 13.3 10.7 24 24 24h8v136c0 13.3 10.7 24 24 24h80c13.3 0 24-10.7 24-24V352h8c13.3 0 24-10.7 24-24V192c0-25.1-19.3-45.5-43.9-47.6z"]
};
var faRetweet = {
  prefix: 'fas',
  iconName: 'retweet',
  icon: [640, 512, [], "f079", "M629.657 343.598L528.971 444.284c-9.373 9.372-24.568 9.372-33.941 0L394.343 343.598c-9.373-9.373-9.373-24.569 0-33.941l10.823-10.823c9.562-9.562 25.133-9.34 34.419.492L480 342.118V160H292.451a24.005 24.005 0 0 1-16.971-7.029l-16-16C244.361 121.851 255.069 96 276.451 96H520c13.255 0 24 10.745 24 24v222.118l40.416-42.792c9.285-9.831 24.856-10.054 34.419-.492l10.823 10.823c9.372 9.372 9.372 24.569-.001 33.941zm-265.138 15.431A23.999 23.999 0 0 0 347.548 352H160V169.881l40.416 42.792c9.286 9.831 24.856 10.054 34.419.491l10.822-10.822c9.373-9.373 9.373-24.569 0-33.941L144.971 67.716c-9.373-9.373-24.569-9.373-33.941 0L10.343 168.402c-9.373 9.373-9.373 24.569 0 33.941l10.822 10.822c9.562 9.562 25.133 9.34 34.419-.491L96 169.881V392c0 13.255 10.745 24 24 24h243.549c21.382 0 32.09-25.851 16.971-40.971l-16.001-16z"]
};
var faRibbon = {
  prefix: 'fas',
  iconName: 'ribbon',
  icon: [448, 512, [], "f4d6", "M6.1 444.3c-9.6 10.8-7.5 27.6 4.5 35.7l68.8 27.9c9.9 6.7 23.3 5 31.3-3.8l91.8-101.9-79.2-87.9-117.2 130zm435.8 0s-292-324.6-295.4-330.1c15.4-8.4 40.2-17.9 77.5-17.9s62.1 9.5 77.5 17.9c-3.3 5.6-56 64.6-56 64.6l79.1 87.7 34.2-38c28.7-31.9 33.3-78.6 11.4-115.5l-43.7-73.5c-4.3-7.2-9.9-13.3-16.8-18-40.7-27.6-127.4-29.7-171.4 0-6.9 4.7-12.5 10.8-16.8 18l-43.6 73.2c-1.5 2.5-37.1 62.2 11.5 116L337.5 504c8 8.9 21.4 10.5 31.3 3.8l68.8-27.9c11.9-8 14-24.8 4.3-35.6z"]
};
var faRing = {
  prefix: 'fas',
  iconName: 'ring',
  icon: [512, 512, [], "f70b", "M256 64C110.06 64 0 125.91 0 208v98.13C0 384.48 114.62 448 256 448s256-63.52 256-141.87V208c0-82.09-110.06-144-256-144zm0 64c106.04 0 192 35.82 192 80 0 9.26-3.97 18.12-10.91 26.39C392.15 208.21 328.23 192 256 192s-136.15 16.21-181.09 42.39C67.97 226.12 64 217.26 64 208c0-44.18 85.96-80 192-80zM120.43 264.64C155.04 249.93 201.64 240 256 240s100.96 9.93 135.57 24.64C356.84 279.07 308.93 288 256 288s-100.84-8.93-135.57-23.36z"]
};
var faRoad = {
  prefix: 'fas',
  iconName: 'road',
  icon: [576, 512, [], "f018", "M573.19 402.67l-139.79-320C428.43 71.29 417.6 64 405.68 64h-97.59l2.45 23.16c.5 4.72-3.21 8.84-7.96 8.84h-29.16c-4.75 0-8.46-4.12-7.96-8.84L267.91 64h-97.59c-11.93 0-22.76 7.29-27.73 18.67L2.8 402.67C-6.45 423.86 8.31 448 30.54 448h196.84l10.31-97.68c.86-8.14 7.72-14.32 15.91-14.32h68.8c8.19 0 15.05 6.18 15.91 14.32L348.62 448h196.84c22.23 0 36.99-24.14 27.73-45.33zM260.4 135.16a8 8 0 0 1 7.96-7.16h39.29c4.09 0 7.53 3.09 7.96 7.16l4.6 43.58c.75 7.09-4.81 13.26-11.93 13.26h-40.54c-7.13 0-12.68-6.17-11.93-13.26l4.59-43.58zM315.64 304h-55.29c-9.5 0-16.91-8.23-15.91-17.68l5.07-48c.86-8.14 7.72-14.32 15.91-14.32h45.15c8.19 0 15.05 6.18 15.91 14.32l5.07 48c1 9.45-6.41 17.68-15.91 17.68z"]
};
var faRobot = {
  prefix: 'fas',
  iconName: 'robot',
  icon: [640, 512, [], "f544", "M32,224H64V416H32A31.96166,31.96166,0,0,1,0,384V256A31.96166,31.96166,0,0,1,32,224Zm512-48V448a64.06328,64.06328,0,0,1-64,64H160a64.06328,64.06328,0,0,1-64-64V176a79.974,79.974,0,0,1,80-80H288V32a32,32,0,0,1,64,0V96H464A79.974,79.974,0,0,1,544,176ZM264,256a40,40,0,1,0-40,40A39.997,39.997,0,0,0,264,256Zm-8,128H192v32h64Zm96,0H288v32h64ZM456,256a40,40,0,1,0-40,40A39.997,39.997,0,0,0,456,256Zm-8,128H384v32h64ZM640,256V384a31.96166,31.96166,0,0,1-32,32H576V224h32A31.96166,31.96166,0,0,1,640,256Z"]
};
var faRocket = {
  prefix: 'fas',
  iconName: 'rocket',
  icon: [512, 512, [], "f135", "M505.12019,19.09375c-1.18945-5.53125-6.65819-11-12.207-12.1875C460.716,0,435.507,0,410.40747,0,307.17523,0,245.26909,55.20312,199.05238,128H94.83772c-16.34763.01562-35.55658,11.875-42.88664,26.48438L2.51562,253.29688A28.4,28.4,0,0,0,0,264a24.00867,24.00867,0,0,0,24.00582,24H127.81618l-22.47457,22.46875c-11.36521,11.36133-12.99607,32.25781,0,45.25L156.24582,406.625c11.15623,11.1875,32.15619,13.15625,45.27726,0l22.47457-22.46875V488a24.00867,24.00867,0,0,0,24.00581,24,28.55934,28.55934,0,0,0,10.707-2.51562l98.72834-49.39063c14.62888-7.29687,26.50776-26.5,26.50776-42.85937V312.79688c72.59753-46.3125,128.03493-108.40626,128.03493-211.09376C512.07526,76.5,512.07526,51.29688,505.12019,19.09375ZM384.04033,168A40,40,0,1,1,424.05,128,40.02322,40.02322,0,0,1,384.04033,168Z"]
};
var faRoute = {
  prefix: 'fas',
  iconName: 'route',
  icon: [512, 512, [], "f4d7", "M416 320h-96c-17.6 0-32-14.4-32-32s14.4-32 32-32h96s96-107 96-160-43-96-96-96-96 43-96 96c0 25.5 22.2 63.4 45.3 96H320c-52.9 0-96 43.1-96 96s43.1 96 96 96h96c17.6 0 32 14.4 32 32s-14.4 32-32 32H185.5c-16 24.8-33.8 47.7-47.3 64H416c52.9 0 96-43.1 96-96s-43.1-96-96-96zm0-256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM96 256c-53 0-96 43-96 96s96 160 96 160 96-107 96-160-43-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]
};
var faRss = {
  prefix: 'fas',
  iconName: 'rss',
  icon: [448, 512, [], "f09e", "M128.081 415.959c0 35.369-28.672 64.041-64.041 64.041S0 451.328 0 415.959s28.672-64.041 64.041-64.041 64.04 28.673 64.04 64.041zm175.66 47.25c-8.354-154.6-132.185-278.587-286.95-286.95C7.656 175.765 0 183.105 0 192.253v48.069c0 8.415 6.49 15.472 14.887 16.018 111.832 7.284 201.473 96.702 208.772 208.772.547 8.397 7.604 14.887 16.018 14.887h48.069c9.149.001 16.489-7.655 15.995-16.79zm144.249.288C439.596 229.677 251.465 40.445 16.503 32.01 7.473 31.686 0 38.981 0 48.016v48.068c0 8.625 6.835 15.645 15.453 15.999 191.179 7.839 344.627 161.316 352.465 352.465.353 8.618 7.373 15.453 15.999 15.453h48.068c9.034-.001 16.329-7.474 16.005-16.504z"]
};
var faRssSquare = {
  prefix: 'fas',
  iconName: 'rss-square',
  icon: [448, 512, [], "f143", "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM112 416c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm157.533 0h-34.335c-6.011 0-11.051-4.636-11.442-10.634-5.214-80.05-69.243-143.92-149.123-149.123-5.997-.39-10.633-5.431-10.633-11.441v-34.335c0-6.535 5.468-11.777 11.994-11.425 110.546 5.974 198.997 94.536 204.964 204.964.352 6.526-4.89 11.994-11.425 11.994zm103.027 0h-34.334c-6.161 0-11.175-4.882-11.427-11.038-5.598-136.535-115.204-246.161-251.76-251.76C68.882 152.949 64 147.935 64 141.774V107.44c0-6.454 5.338-11.664 11.787-11.432 167.83 6.025 302.21 141.191 308.205 308.205.232 6.449-4.978 11.787-11.432 11.787z"]
};
var faRubleSign = {
  prefix: 'fas',
  iconName: 'ruble-sign',
  icon: [384, 512, [], "f158", "M239.36 320C324.48 320 384 260.542 384 175.071S324.48 32 239.36 32H76c-6.627 0-12 5.373-12 12v206.632H12c-6.627 0-12 5.373-12 12V308c0 6.627 5.373 12 12 12h52v32H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h52v52c0 6.627 5.373 12 12 12h58.56c6.627 0 12-5.373 12-12v-52H308c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12H146.56v-32h92.8zm-92.8-219.252h78.72c46.72 0 74.88 29.11 74.88 74.323 0 45.832-28.16 75.561-76.16 75.561h-77.44V100.748z"]
};
var faRuler = {
  prefix: 'fas',
  iconName: 'ruler',
  icon: [640, 512, [], "f545", "M635.7 167.2L556.1 31.7c-8.8-15-28.3-20.1-43.5-11.5l-69 39.1L503.3 161c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L416 75l-55.2 31.3 27.9 47.4c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L333.2 122 278 153.3 337.8 255c2.2 3.7.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9l-59.7-101.7-55.2 31.3 27.9 47.4c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9l-27.9-47.5-55.2 31.3 59.7 101.7c2.2 3.7.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L84.9 262.9l-69 39.1C.7 310.7-4.6 329.8 4.2 344.8l79.6 135.6c8.8 15 28.3 20.1 43.5 11.5L624.1 210c15.2-8.6 20.4-27.8 11.6-42.8z"]
};
var faRulerCombined = {
  prefix: 'fas',
  iconName: 'ruler-combined',
  icon: [512, 512, [], "f546", "M160 288h-56c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h56v-64h-56c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h56V96h-56c-4.42 0-8-3.58-8-8V72c0-4.42 3.58-8 8-8h56V32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v448c0 2.77.91 5.24 1.57 7.8L160 329.38V288zm320 64h-32v56c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-56h-64v56c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-56h-64v56c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-56h-41.37L24.2 510.43c2.56.66 5.04 1.57 7.8 1.57h448c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"]
};
var faRulerHorizontal = {
  prefix: 'fas',
  iconName: 'ruler-horizontal',
  icon: [576, 512, [], "f547", "M544 128h-48v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8H88c-4.42 0-8-3.58-8-8v-88H32c-17.67 0-32 14.33-32 32v192c0 17.67 14.33 32 32 32h512c17.67 0 32-14.33 32-32V160c0-17.67-14.33-32-32-32z"]
};
var faRulerVertical = {
  prefix: 'fas',
  iconName: 'ruler-vertical',
  icon: [256, 512, [], "f548", "M168 416c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88v-64h-88c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88v-64h-88c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88v-64h-88c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88V32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v448c0 17.67 14.33 32 32 32h192c17.67 0 32-14.33 32-32v-64h-88z"]
};
var faRunning = {
  prefix: 'fas',
  iconName: 'running',
  icon: [416, 512, [], "f70c", "M272 96c26.51 0 48-21.49 48-48S298.51 0 272 0s-48 21.49-48 48 21.49 48 48 48zM113.69 317.47l-14.8 34.52H32c-17.67 0-32 14.33-32 32s14.33 32 32 32h77.45c19.25 0 36.58-11.44 44.11-29.09l8.79-20.52-10.67-6.3c-17.32-10.23-30.06-25.37-37.99-42.61zM384 223.99h-44.03l-26.06-53.25c-12.5-25.55-35.45-44.23-61.78-50.94l-71.08-21.14c-28.3-6.8-57.77-.55-80.84 17.14l-39.67 30.41c-14.03 10.75-16.69 30.83-5.92 44.86s30.84 16.66 44.86 5.92l39.69-30.41c7.67-5.89 17.44-8 25.27-6.14l14.7 4.37-37.46 87.39c-12.62 29.48-1.31 64.01 26.3 80.31l84.98 50.17-27.47 87.73c-5.28 16.86 4.11 34.81 20.97 40.09 3.19 1 6.41 1.48 9.58 1.48 13.61 0 26.23-8.77 30.52-22.45l31.64-101.06c5.91-20.77-2.89-43.08-21.64-54.39l-61.24-36.14 31.31-78.28 20.27 41.43c8 16.34 24.92 26.89 43.11 26.89H384c17.67 0 32-14.33 32-32s-14.33-31.99-32-31.99z"]
};
var faRupeeSign = {
  prefix: 'fas',
  iconName: 'rupee-sign',
  icon: [320, 512, [], "f156", "M308 96c6.627 0 12-5.373 12-12V44c0-6.627-5.373-12-12-12H12C5.373 32 0 37.373 0 44v44.748c0 6.627 5.373 12 12 12h85.28c27.308 0 48.261 9.958 60.97 27.252H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h158.757c-6.217 36.086-32.961 58.632-74.757 58.632H12c-6.627 0-12 5.373-12 12v53.012c0 3.349 1.4 6.546 3.861 8.818l165.052 152.356a12.001 12.001 0 0 0 8.139 3.182h82.562c10.924 0 16.166-13.408 8.139-20.818L116.871 319.906c76.499-2.34 131.144-53.395 138.318-127.906H308c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-58.69c-3.486-11.541-8.28-22.246-14.252-32H308z"]
};
var faSadCry = {
  prefix: 'fas',
  iconName: 'sad-cry',
  icon: [496, 512, [], "f5b3", "M248 8C111 8 0 119 0 256c0 90.1 48.2 168.7 120 212.1V288c0-8.8 7.2-16 16-16s16 7.2 16 16v196.7c29.5 12.4 62 19.3 96 19.3s66.5-6.9 96-19.3V288c0-8.8 7.2-16 16-16s16 7.2 16 16v180.1C447.8 424.7 496 346 496 256 496 119 385 8 248 8zm-65.5 216.5c-14.8-13.2-46.2-13.2-61 0L112 233c-3.8 3.3-9.3 4-13.7 1.6-4.4-2.4-6.9-7.4-6.1-12.4 4-25.2 34.2-42.1 59.9-42.1S208 197 212 222.2c.8 5-1.7 10-6.1 12.4-5.8 3.1-11.2.7-13.7-1.6l-9.7-8.5zM248 416c-26.5 0-48-28.7-48-64s21.5-64 48-64 48 28.7 48 64-21.5 64-48 64zm149.8-181.5c-5.8 3.1-11.2.7-13.7-1.6l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L304 233c-3.8 3.3-9.3 4-13.7 1.6-4.4-2.4-6.9-7.4-6.1-12.4 4-25.2 34.2-42.1 59.9-42.1S400 197 404 222.2c.6 4.9-1.8 9.9-6.2 12.3z"]
};
var faSadTear = {
  prefix: 'fas',
  iconName: 'sad-tear',
  icon: [496, 512, [], "f5b4", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM152 416c-26.5 0-48-21-48-47 0-20 28.5-60.4 41.6-77.8 3.2-4.3 9.6-4.3 12.8 0C171.5 308.6 200 349 200 369c0 26-21.5 47-48 47zm16-176c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm170.2 154.2C315.8 367.4 282.9 352 248 352c-21.2 0-21.2-32 0-32 44.4 0 86.3 19.6 114.7 53.8 13.8 16.4-11.2 36.5-24.5 20.4z"]
};
var faSatellite = {
  prefix: 'fas',
  iconName: 'satellite',
  icon: [512, 512, [], "f7bf", "M502.60969,310.04206l-96.70393,96.71625a31.88151,31.88151,0,0,1-45.00765,0L280.572,326.34115l-9.89231,9.90759a190.56343,190.56343,0,0,1-5.40716,168.52287c-4.50077,8.50115-16.39342,9.59505-23.20707,2.79725L134.54715,400.05428l-17.7999,17.79929c.70324,2.60972,1.60965,5.00067,1.60965,7.79793a32.00544,32.00544,0,1,1-32.00544-32.00434c2.79735,0,5.18838.90637,7.7982,1.60959l17.7999-17.79929L4.43129,269.94287c-6.798-6.81342-5.70409-18.6119,2.79735-23.20627a190.58161,190.58161,0,0,1,168.52864-5.407l9.79854-9.79821-80.31053-80.41716a32.002,32.002,0,0,1,0-45.09987L201.96474,9.29814A31.62639,31.62639,0,0,1,224.46868,0a31.99951,31.99951,0,0,1,22.59759,9.29814l80.32615,80.30777,47.805-47.89713a33.6075,33.6075,0,0,1,47.50808,0l47.50807,47.50645a33.63308,33.63308,0,0,1,0,47.50644l-47.805,47.89713L502.71908,265.036A31.78938,31.78938,0,0,1,502.60969,310.04206ZM219.56159,197.433l73.82505-73.82252-68.918-68.9-73.80942,73.80689Zm237.74352,90.106-68.90233-68.9156-73.825,73.82252,68.918,68.9Z"]
};
var faSatelliteDish = {
  prefix: 'fas',
  iconName: 'satellite-dish',
  icon: [512, 512, [], "f7c0", "M305.44954,462.59c7.39157,7.29792,6.18829,20.09661-3.00038,25.00356-77.713,41.80281-176.72559,29.9105-242.34331-35.7082C-5.49624,386.28227-17.404,287.362,24.41381,209.554c4.89125-9.095,17.68975-10.29834,25.00318-3.00043L166.22872,323.36708l27.39411-27.39452c-.68759-2.60974-1.594-5.00071-1.594-7.81361a32.00407,32.00407,0,1,1,32.00407,32.00455c-2.79723,0-5.20378-.89075-7.79786-1.594l-27.40974,27.41015ZM511.9758,303.06732a16.10336,16.10336,0,0,1-16.002,17.00242H463.86031a15.96956,15.96956,0,0,1-15.89265-15.00213C440.46671,175.5492,336.45348,70.53427,207.03078,63.53328a15.84486,15.84486,0,0,1-15.00191-15.90852V16.02652A16.09389,16.09389,0,0,1,209.031.02425C372.25491,8.61922,503.47472,139.841,511.9758,303.06732Zm-96.01221-.29692a16.21093,16.21093,0,0,1-16.11142,17.29934H367.645a16.06862,16.06862,0,0,1-15.89265-14.70522c-6.90712-77.01094-68.118-138.91037-144.92467-145.22376a15.94,15.94,0,0,1-14.79876-15.89289V112.13393a16.134,16.134,0,0,1,17.29908-16.096C319.45132,104.5391,407.55627,192.64538,415.96359,302.7704Z"]
};
var faSave = {
  prefix: 'fas',
  iconName: 'save',
  icon: [448, 512, [], "f0c7", "M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"]
};
var faSchool = {
  prefix: 'fas',
  iconName: 'school',
  icon: [640, 512, [], "f549", "M0 224v272c0 8.84 7.16 16 16 16h80V192H32c-17.67 0-32 14.33-32 32zm360-48h-24v-40c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v64c0 4.42 3.58 8 8 8h48c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zm137.75-63.96l-160-106.67a32.02 32.02 0 0 0-35.5 0l-160 106.67A32.002 32.002 0 0 0 128 138.66V512h128V368c0-8.84 7.16-16 16-16h96c8.84 0 16 7.16 16 16v144h128V138.67c0-10.7-5.35-20.7-14.25-26.63zM320 256c-44.18 0-80-35.82-80-80s35.82-80 80-80 80 35.82 80 80-35.82 80-80 80zm288-64h-64v320h80c8.84 0 16-7.16 16-16V224c0-17.67-14.33-32-32-32z"]
};
var faScrewdriver = {
  prefix: 'fas',
  iconName: 'screwdriver',
  icon: [512, 512, [], "f54a", "M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z"]
};
var faScroll = {
  prefix: 'fas',
  iconName: 'scroll',
  icon: [640, 512, [], "f70e", "M48 0C21.53 0 0 21.53 0 48v64c0 8.84 7.16 16 16 16h80V48C96 21.53 74.47 0 48 0zm208 412.57V352h288V96c0-52.94-43.06-96-96-96H111.59C121.74 13.41 128 29.92 128 48v368c0 38.87 34.65 69.65 74.75 63.12C234.22 474 256 444.46 256 412.57zM288 384v32c0 52.93-43.06 96-96 96h336c61.86 0 112-50.14 112-112 0-8.84-7.16-16-16-16H288z"]
};
var faSdCard = {
  prefix: 'fas',
  iconName: 'sd-card',
  icon: [384, 512, [], "f7c2", "M320 0H128L0 128v320c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64zM160 160h-48V64h48v96zm80 0h-48V64h48v96zm80 0h-48V64h48v96z"]
};
var faSearch = {
  prefix: 'fas',
  iconName: 'search',
  icon: [512, 512, [], "f002", "M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"]
};
var faSearchDollar = {
  prefix: 'fas',
  iconName: 'search-dollar',
  icon: [512, 512, [], "f688", "M505.04 442.66l-99.71-99.69c-4.5-4.5-10.6-7-17-7h-16.3c27.6-35.3 44-79.69 44-127.99C416.03 93.09 322.92 0 208.02 0S0 93.09 0 207.98s93.11 207.98 208.02 207.98c48.3 0 92.71-16.4 128.01-44v16.3c0 6.4 2.5 12.5 7 17l99.71 99.69c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.59.1-33.99zm-297.02-90.7c-79.54 0-144-64.34-144-143.98 0-79.53 64.35-143.98 144-143.98 79.54 0 144 64.34 144 143.98 0 79.53-64.35 143.98-144 143.98zm27.11-152.54l-45.01-13.5c-5.16-1.55-8.77-6.78-8.77-12.73 0-7.27 5.3-13.19 11.8-13.19h28.11c4.56 0 8.96 1.29 12.82 3.72 3.24 2.03 7.36 1.91 10.13-.73l11.75-11.21c3.53-3.37 3.33-9.21-.57-12.14-9.1-6.83-20.08-10.77-31.37-11.35V112c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v16.12c-23.63.63-42.68 20.55-42.68 45.07 0 19.97 12.99 37.81 31.58 43.39l45.01 13.5c5.16 1.55 8.77 6.78 8.77 12.73 0 7.27-5.3 13.19-11.8 13.19h-28.1c-4.56 0-8.96-1.29-12.82-3.72-3.24-2.03-7.36-1.91-10.13.73l-11.75 11.21c-3.53 3.37-3.33 9.21.57 12.14 9.1 6.83 20.08 10.77 31.37 11.35V304c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8v-16.12c23.63-.63 42.68-20.54 42.68-45.07 0-19.97-12.99-37.81-31.59-43.39z"]
};
var faSearchLocation = {
  prefix: 'fas',
  iconName: 'search-location',
  icon: [512, 512, [], "f689", "M505.04 442.66l-99.71-99.69c-4.5-4.5-10.6-7-17-7h-16.3c27.6-35.3 44-79.69 44-127.99C416.03 93.09 322.92 0 208.02 0S0 93.09 0 207.98s93.11 207.98 208.02 207.98c48.3 0 92.71-16.4 128.01-44v16.3c0 6.4 2.5 12.5 7 17l99.71 99.69c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.59.1-33.99zm-297.02-90.7c-79.54 0-144-64.34-144-143.98 0-79.53 64.35-143.98 144-143.98 79.54 0 144 64.34 144 143.98 0 79.53-64.35 143.98-144 143.98zm.02-239.96c-40.78 0-73.84 33.05-73.84 73.83 0 32.96 48.26 93.05 66.75 114.86a9.24 9.24 0 0 0 14.18 0c18.49-21.81 66.75-81.89 66.75-114.86 0-40.78-33.06-73.83-73.84-73.83zm0 96c-13.26 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"]
};
var faSearchMinus = {
  prefix: 'fas',
  iconName: 'search-minus',
  icon: [512, 512, [], "f010", "M304 192v32c0 6.6-5.4 12-12 12H124c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"]
};
var faSearchPlus = {
  prefix: 'fas',
  iconName: 'search-plus',
  icon: [512, 512, [], "f00e", "M304 192v32c0 6.6-5.4 12-12 12h-56v56c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-56h-56c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h56v-56c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v56h56c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"]
};
var faSeedling = {
  prefix: 'fas',
  iconName: 'seedling',
  icon: [512, 512, [], "f4d8", "M64 96H0c0 123.7 100.3 224 224 224v144c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320C288 196.3 187.7 96 64 96zm384-64c-84.2 0-157.4 46.5-195.7 115.2 27.7 30.2 48.2 66.9 59 107.6C424 243.1 512 147.9 512 32h-64z"]
};
var faServer = {
  prefix: 'fas',
  iconName: 'server',
  icon: [512, 512, [], "f233", "M480 160H32c-17.673 0-32-14.327-32-32V64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24z"]
};
var faShapes = {
  prefix: 'fas',
  iconName: 'shapes',
  icon: [512, 512, [], "f61f", "M128,256A128,128,0,1,0,256,384,128,128,0,0,0,128,256Zm379-54.86L400.07,18.29a37.26,37.26,0,0,0-64.14,0L229,201.14C214.76,225.52,232.58,256,261.09,256H474.91C503.42,256,521.24,225.52,507,201.14ZM480,288H320a32,32,0,0,0-32,32V480a32,32,0,0,0,32,32H480a32,32,0,0,0,32-32V320A32,32,0,0,0,480,288Z"]
};
var faShare = {
  prefix: 'fas',
  iconName: 'share',
  icon: [512, 512, [], "f064", "M503.691 189.836L327.687 37.851C312.281 24.546 288 35.347 288 56.015v80.053C127.371 137.907 0 170.1 0 322.326c0 61.441 39.581 122.309 83.333 154.132 13.653 9.931 33.111-2.533 28.077-18.631C66.066 312.814 132.917 274.316 288 272.085V360c0 20.7 24.3 31.453 39.687 18.164l176.004-152c11.071-9.562 11.086-26.753 0-36.328z"]
};
var faShareAlt = {
  prefix: 'fas',
  iconName: 'share-alt',
  icon: [448, 512, [], "f1e0", "M352 320c-22.608 0-43.387 7.819-59.79 20.895l-102.486-64.054a96.551 96.551 0 0 0 0-41.683l102.486-64.054C308.613 184.181 329.392 192 352 192c53.019 0 96-42.981 96-96S405.019 0 352 0s-96 42.981-96 96c0 7.158.79 14.13 2.276 20.841L155.79 180.895C139.387 167.819 118.608 160 96 160c-53.019 0-96 42.981-96 96s42.981 96 96 96c22.608 0 43.387-7.819 59.79-20.895l102.486 64.054A96.301 96.301 0 0 0 256 416c0 53.019 42.981 96 96 96s96-42.981 96-96-42.981-96-96-96z"]
};
var faShareAltSquare = {
  prefix: 'fas',
  iconName: 'share-alt-square',
  icon: [448, 512, [], "f1e1", "M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zM304 296c-14.562 0-27.823 5.561-37.783 14.671l-67.958-40.775a56.339 56.339 0 0 0 0-27.793l67.958-40.775C276.177 210.439 289.438 216 304 216c30.928 0 56-25.072 56-56s-25.072-56-56-56-56 25.072-56 56c0 4.797.605 9.453 1.74 13.897l-67.958 40.775C171.823 205.561 158.562 200 144 200c-30.928 0-56 25.072-56 56s25.072 56 56 56c14.562 0 27.823-5.561 37.783-14.671l67.958 40.775a56.088 56.088 0 0 0-1.74 13.897c0 30.928 25.072 56 56 56s56-25.072 56-56C360 321.072 334.928 296 304 296z"]
};
var faShareSquare = {
  prefix: 'fas',
  iconName: 'share-square',
  icon: [576, 512, [], "f14d", "M568.482 177.448L424.479 313.433C409.3 327.768 384 317.14 384 295.985v-71.963c-144.575.97-205.566 35.113-164.775 171.353 4.483 14.973-12.846 26.567-25.006 17.33C155.252 383.105 120 326.488 120 269.339c0-143.937 117.599-172.5 264-173.312V24.012c0-21.174 25.317-31.768 40.479-17.448l144.003 135.988c10.02 9.463 10.028 25.425 0 34.896zM384 379.128V448H64V128h50.916a11.99 11.99 0 0 0 8.648-3.693c14.953-15.568 32.237-27.89 51.014-37.676C185.708 80.83 181.584 64 169.033 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48v-88.806c0-8.288-8.197-14.066-16.011-11.302a71.83 71.83 0 0 1-34.189 3.377c-7.27-1.046-13.8 4.514-13.8 11.859z"]
};
var faShekelSign = {
  prefix: 'fas',
  iconName: 'shekel-sign',
  icon: [448, 512, [], "f20b", "M248 168v168c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V168c0-75.11-60.89-136-136-136H24C10.75 32 0 42.74 0 56v408c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V112h112c30.93 0 56 25.07 56 56zM432 32h-48c-8.84 0-16 7.16-16 16v296c0 30.93-25.07 56-56 56H200V176c0-8.84-7.16-16-16-16h-48c-8.84 0-16 7.16-16 16v280c0 13.25 10.75 24 24 24h168c75.11 0 136-60.89 136-136V48c0-8.84-7.16-16-16-16z"]
};
var faShieldAlt = {
  prefix: 'fas',
  iconName: 'shield-alt',
  icon: [512, 512, [], "f3ed", "M466.5 83.7l-192-80a48.15 48.15 0 0 0-36.9 0l-192 80C27.7 91.1 16 108.6 16 128c0 198.5 114.5 335.7 221.5 380.3 11.8 4.9 25.1 4.9 36.9 0C360.1 472.6 496 349.3 496 128c0-19.4-11.7-36.9-29.5-44.3zM256.1 446.3l-.1-381 175.9 73.3c-3.3 151.4-82.1 261.1-175.8 307.7z"]
};
var faShieldVirus = {
  prefix: 'fas',
  iconName: 'shield-virus',
  icon: [512, 512, [], "e06c", "M224,192a16,16,0,1,0,16,16A16,16,0,0,0,224,192ZM466.5,83.68l-192-80A57.4,57.4,0,0,0,256.05,0a57.4,57.4,0,0,0-18.46,3.67l-192,80A47.93,47.93,0,0,0,16,128C16,326.5,130.5,463.72,237.5,508.32a48.09,48.09,0,0,0,36.91,0C360.09,472.61,496,349.3,496,128A48,48,0,0,0,466.5,83.68ZM384,256H371.88c-28.51,0-42.79,34.47-22.63,54.63l8.58,8.57a16,16,0,1,1-22.63,22.63l-8.57-8.58C306.47,313.09,272,327.37,272,355.88V368a16,16,0,0,1-32,0V355.88c0-28.51-34.47-42.79-54.63-22.63l-8.57,8.58a16,16,0,0,1-22.63-22.63l8.58-8.57c20.16-20.16,5.88-54.63-22.63-54.63H128a16,16,0,0,1,0-32h12.12c28.51,0,42.79-34.47,22.63-54.63l-8.58-8.57a16,16,0,0,1,22.63-22.63l8.57,8.58c20.16,20.16,54.63,5.88,54.63-22.63V112a16,16,0,0,1,32,0v12.12c0,28.51,34.47,42.79,54.63,22.63l8.57-8.58a16,16,0,0,1,22.63,22.63l-8.58,8.57C329.09,189.53,343.37,224,371.88,224H384a16,16,0,0,1,0,32Zm-96,0a16,16,0,1,0,16,16A16,16,0,0,0,288,256Z"]
};
var faShip = {
  prefix: 'fas',
  iconName: 'ship',
  icon: [640, 512, [], "f21a", "M496.616 372.639l70.012-70.012c16.899-16.9 9.942-45.771-12.836-53.092L512 236.102V96c0-17.673-14.327-32-32-32h-64V24c0-13.255-10.745-24-24-24H248c-13.255 0-24 10.745-24 24v40h-64c-17.673 0-32 14.327-32 32v140.102l-41.792 13.433c-22.753 7.313-29.754 36.173-12.836 53.092l70.012 70.012C125.828 416.287 85.587 448 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24 61.023 0 107.499-20.61 143.258-59.396C181.677 487.432 216.021 512 256 512h128c39.979 0 74.323-24.568 88.742-59.396C508.495 491.384 554.968 512 616 512c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24-60.817 0-101.542-31.001-119.384-75.361zM192 128h256v87.531l-118.208-37.995a31.995 31.995 0 0 0-19.584 0L192 215.531V128z"]
};
var faShippingFast = {
  prefix: 'fas',
  iconName: 'shipping-fast',
  icon: [640, 512, [], "f48b", "M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H112C85.5 0 64 21.5 64 48v48H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h272c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H40c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h208c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h208c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H64v128c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm320 0c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"]
};
var faShoePrints = {
  prefix: 'fas',
  iconName: 'shoe-prints',
  icon: [640, 512, [], "f54b", "M192 160h32V32h-32c-35.35 0-64 28.65-64 64s28.65 64 64 64zM0 416c0 35.35 28.65 64 64 64h32V352H64c-35.35 0-64 28.65-64 64zm337.46-128c-34.91 0-76.16 13.12-104.73 32-24.79 16.38-44.52 32-104.73 32v128l57.53 15.97c26.21 7.28 53.01 13.12 80.31 15.05 32.69 2.31 65.6.67 97.58-6.2C472.9 481.3 512 429.22 512 384c0-64-84.18-96-174.54-96zM491.42 7.19C459.44.32 426.53-1.33 393.84.99c-27.3 1.93-54.1 7.77-80.31 15.04L256 32v128c60.2 0 79.94 15.62 104.73 32 28.57 18.88 69.82 32 104.73 32C555.82 224 640 192 640 128c0-45.22-39.1-97.3-148.58-120.81z"]
};
var faShoppingBag = {
  prefix: 'fas',
  iconName: 'shopping-bag',
  icon: [448, 512, [], "f290", "M352 160v-32C352 57.42 294.579 0 224 0 153.42 0 96 57.42 96 128v32H0v272c0 44.183 35.817 80 80 80h288c44.183 0 80-35.817 80-80V160h-96zm-192-32c0-35.29 28.71-64 64-64s64 28.71 64 64v32H160v-32zm160 120c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zm-192 0c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24z"]
};
var faShoppingBasket = {
  prefix: 'fas',
  iconName: 'shopping-basket',
  icon: [576, 512, [], "f291", "M576 216v16c0 13.255-10.745 24-24 24h-8l-26.113 182.788C514.509 462.435 494.257 480 470.37 480H105.63c-23.887 0-44.139-17.565-47.518-41.212L32 256h-8c-13.255 0-24-10.745-24-24v-16c0-13.255 10.745-24 24-24h67.341l106.78-146.821c10.395-14.292 30.407-17.453 44.701-7.058 14.293 10.395 17.453 30.408 7.058 44.701L170.477 192h235.046L326.12 82.821c-10.395-14.292-7.234-34.306 7.059-44.701 14.291-10.395 34.306-7.235 44.701 7.058L484.659 192H552c13.255 0 24 10.745 24 24zM312 392V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24zm112 0V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24zm-224 0V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24z"]
};
var faShoppingCart = {
  prefix: 'fas',
  iconName: 'shopping-cart',
  icon: [576, 512, [], "f07a", "M528.12 301.319l47.273-208C578.806 78.301 567.391 64 551.99 64H159.208l-9.166-44.81C147.758 8.021 137.93 0 126.529 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24h69.883l70.248 343.435C147.325 417.1 136 435.222 136 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-15.674-6.447-29.835-16.824-40h209.647C430.447 426.165 424 440.326 424 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-22.172-12.888-41.332-31.579-50.405l5.517-24.276c3.413-15.018-8.002-29.319-23.403-29.319H218.117l-6.545-32h293.145c11.206 0 20.92-7.754 23.403-18.681z"]
};
var faShower = {
  prefix: 'fas',
  iconName: 'shower',
  icon: [512, 512, [], "f2cc", "M304,320a16,16,0,1,0,16,16A16,16,0,0,0,304,320Zm32-96a16,16,0,1,0,16,16A16,16,0,0,0,336,224Zm32,64a16,16,0,1,0-16-16A16,16,0,0,0,368,288Zm-32,32a16,16,0,1,0-16-16A16,16,0,0,0,336,320Zm-32-64a16,16,0,1,0,16,16A16,16,0,0,0,304,256Zm128-32a16,16,0,1,0-16-16A16,16,0,0,0,432,224Zm-48,16a16,16,0,1,0,16-16A16,16,0,0,0,384,240Zm-16-48a16,16,0,1,0,16,16A16,16,0,0,0,368,192Zm96,32a16,16,0,1,0,16,16A16,16,0,0,0,464,224Zm32-32a16,16,0,1,0,16,16A16,16,0,0,0,496,192Zm-64,64a16,16,0,1,0,16,16A16,16,0,0,0,432,256Zm-32,32a16,16,0,1,0,16,16A16,16,0,0,0,400,288Zm-64,64a16,16,0,1,0,16,16A16,16,0,0,0,336,352Zm-32,32a16,16,0,1,0,16,16A16,16,0,0,0,304,384Zm64-64a16,16,0,1,0,16,16A16,16,0,0,0,368,320Zm21.65-218.35-11.3-11.31a16,16,0,0,0-22.63,0L350.05,96A111.19,111.19,0,0,0,272,64c-19.24,0-37.08,5.3-52.9,13.85l-10-10A121.72,121.72,0,0,0,123.44,32C55.49,31.5,0,92.91,0,160.85V464a16,16,0,0,0,16,16H48a16,16,0,0,0,16-16V158.4c0-30.15,21-58.2,51-61.93a58.38,58.38,0,0,1,48.93,16.67l10,10C165.3,138.92,160,156.76,160,176a111.23,111.23,0,0,0,32,78.05l-5.66,5.67a16,16,0,0,0,0,22.62l11.3,11.31a16,16,0,0,0,22.63,0L389.65,124.28A16,16,0,0,0,389.65,101.65Z"]
};
var faShuttleVan = {
  prefix: 'fas',
  iconName: 'shuttle-van',
  icon: [640, 512, [], "f5b6", "M628.88 210.65L494.39 49.27A48.01 48.01 0 0 0 457.52 32H32C14.33 32 0 46.33 0 64v288c0 17.67 14.33 32 32 32h32c0 53.02 42.98 96 96 96s96-42.98 96-96h128c0 53.02 42.98 96 96 96s96-42.98 96-96h32c17.67 0 32-14.33 32-32V241.38c0-11.23-3.94-22.1-11.12-30.73zM64 192V96h96v96H64zm96 240c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm160-240h-96V96h96v96zm160 240c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm-96-240V96h66.02l80 96H384z"]
};
var faSign = {
  prefix: 'fas',
  iconName: 'sign',
  icon: [512, 512, [], "f4d9", "M496 64H128V16c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16v48H16C7.2 64 0 71.2 0 80v32c0 8.8 7.2 16 16 16h48v368c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V128h368c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16zM160 384h320V160H160v224z"]
};
var faSignInAlt = {
  prefix: 'fas',
  iconName: 'sign-in-alt',
  icon: [512, 512, [], "f2f6", "M416 448h-84c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h84c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32h-84c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h84c53 0 96 43 96 96v192c0 53-43 96-96 96zm-47-201L201 79c-15-15-41-4.5-41 17v96H24c-13.3 0-24 10.7-24 24v96c0 13.3 10.7 24 24 24h136v96c0 21.5 26 32 41 17l168-168c9.3-9.4 9.3-24.6 0-34z"]
};
var faSignLanguage = {
  prefix: 'fas',
  iconName: 'sign-language',
  icon: [448, 512, [], "f2a7", "M91.434 483.987c-.307-16.018 13.109-29.129 29.13-29.129h62.293v-5.714H56.993c-16.021 0-29.437-13.111-29.13-29.129C28.16 404.491 40.835 392 56.428 392h126.429v-5.714H29.136c-16.021 0-29.437-13.111-29.13-29.129.297-15.522 12.973-28.013 28.566-28.013h154.286v-5.714H57.707c-16.021 0-29.437-13.111-29.13-29.129.297-15.522 12.973-28.013 28.566-28.013h168.566l-31.085-22.606c-12.762-9.281-15.583-27.149-6.302-39.912 9.281-12.761 27.15-15.582 39.912-6.302l123.361 89.715a34.287 34.287 0 0 1 14.12 27.728v141.136c0 15.91-10.946 29.73-26.433 33.374l-80.471 18.934a137.16 137.16 0 0 1-31.411 3.646H120c-15.593-.001-28.269-12.492-28.566-28.014zm73.249-225.701h36.423l-11.187-8.136c-18.579-13.511-20.313-40.887-3.17-56.536l-13.004-16.7c-9.843-12.641-28.43-15.171-40.88-5.088-12.065 9.771-14.133 27.447-4.553 39.75l36.371 46.71zm283.298-2.103l-5.003-152.452c-.518-15.771-13.722-28.136-29.493-27.619-15.773.518-28.137 13.722-27.619 29.493l1.262 38.415L283.565 11.019c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l76.889 98.745-4.509 3.511-94.79-121.734c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l94.443 121.288-4.509 3.511-77.675-99.754c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l52.053 66.849c12.497-8.257 29.055-8.285 41.69.904l123.36 89.714c10.904 7.93 17.415 20.715 17.415 34.198v16.999l61.064-47.549a34.285 34.285 0 0 0 13.202-28.177z"]
};
var faSignOutAlt = {
  prefix: 'fas',
  iconName: 'sign-out-alt',
  icon: [512, 512, [], "f2f5", "M497 273L329 441c-15 15-41 4.5-41-17v-96H152c-13.3 0-24-10.7-24-24v-96c0-13.3 10.7-24 24-24h136V88c0-21.4 25.9-32 41-17l168 168c9.3 9.4 9.3 24.6 0 34zM192 436v-40c0-6.6-5.4-12-12-12H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h84c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12H96c-53 0-96 43-96 96v192c0 53 43 96 96 96h84c6.6 0 12-5.4 12-12z"]
};
var faSignal = {
  prefix: 'fas',
  iconName: 'signal',
  icon: [640, 512, [], "f012", "M216 288h-48c-8.84 0-16 7.16-16 16v192c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V304c0-8.84-7.16-16-16-16zM88 384H40c-8.84 0-16 7.16-16 16v96c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16v-96c0-8.84-7.16-16-16-16zm256-192h-48c-8.84 0-16 7.16-16 16v288c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V208c0-8.84-7.16-16-16-16zm128-96h-48c-8.84 0-16 7.16-16 16v384c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V112c0-8.84-7.16-16-16-16zM600 0h-48c-8.84 0-16 7.16-16 16v480c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16z"]
};
var faSignature = {
  prefix: 'fas',
  iconName: 'signature',
  icon: [640, 512, [], "f5b7", "M623.2 192c-51.8 3.5-125.7 54.7-163.1 71.5-29.1 13.1-54.2 24.4-76.1 24.4-22.6 0-26-16.2-21.3-51.9 1.1-8 11.7-79.2-42.7-76.1-25.1 1.5-64.3 24.8-169.5 126L192 182.2c30.4-75.9-53.2-151.5-129.7-102.8L7.4 116.3C0 121-2.2 130.9 2.5 138.4l17.2 27c4.7 7.5 14.6 9.7 22.1 4.9l58-38.9c18.4-11.7 40.7 7.2 32.7 27.1L34.3 404.1C27.5 421 37 448 64 448c8.3 0 16.5-3.2 22.6-9.4 42.2-42.2 154.7-150.7 211.2-195.8-2.2 28.5-2.1 58.9 20.6 83.8 15.3 16.8 37.3 25.3 65.5 25.3 35.6 0 68-14.6 102.3-30 33-14.8 99-62.6 138.4-65.8 8.5-.7 15.2-7.3 15.2-15.8v-32.1c.2-9.1-7.5-16.8-16.6-16.2z"]
};
var faSimCard = {
  prefix: 'fas',
  iconName: 'sim-card',
  icon: [384, 512, [], "f7c4", "M0 64v384c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V128L256 0H64C28.7 0 0 28.7 0 64zm224 192h-64v-64h64v64zm96 0h-64v-64h32c17.7 0 32 14.3 32 32v32zm-64 128h64v32c0 17.7-14.3 32-32 32h-32v-64zm-96 0h64v64h-64v-64zm-96 0h64v64H96c-17.7 0-32-14.3-32-32v-32zm0-96h256v64H64v-64zm0-64c0-17.7 14.3-32 32-32h32v64H64v-32z"]
};
var faSink = {
  prefix: 'fas',
  iconName: 'sink',
  icon: [512, 512, [], "e06d", "M32,416a96,96,0,0,0,96,96H384a96,96,0,0,0,96-96V384H32ZM496,288H400V256h64a16,16,0,0,0,16-16V224a16,16,0,0,0-16-16H384a32,32,0,0,0-32,32v48H288V96a32,32,0,0,1,64,0v16a16,16,0,0,0,16,16h32a16,16,0,0,0,16-16V96A96.16,96.16,0,0,0,300.87,1.86C255.29,10.71,224,53.36,224,99.79V288H160V240a32,32,0,0,0-32-32H48a16,16,0,0,0-16,16v16a16,16,0,0,0,16,16h64v32H16A16,16,0,0,0,0,304v32a16,16,0,0,0,16,16H496a16,16,0,0,0,16-16V304A16,16,0,0,0,496,288Z"]
};
var faSitemap = {
  prefix: 'fas',
  iconName: 'sitemap',
  icon: [640, 512, [], "f0e8", "M128 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zm-24-80h192v48h48v-48h192v48h48v-57.59c0-21.17-17.23-38.41-38.41-38.41H344v-64h40c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H256c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h40v64H94.41C73.23 224 56 241.23 56 262.41V320h48v-48zm264 80h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zm240 0h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"]
};
var faSkating = {
  prefix: 'fas',
  iconName: 'skating',
  icon: [448, 512, [], "f7c5", "M400 0c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm0 448c-8.8 0-16 7.2-16 16s-7.2 16-16 16h-96c-8.8 0-16 7.2-16 16s7.2 16 16 16h96c26.5 0 48-21.5 48-48 0-8.8-7.2-16-16-16zm-282.2 8.6c-6.2 6.2-16.4 6.3-22.6 0l-67.9-67.9c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6l67.9 67.9c9.4 9.4 21.7 14 34 14s24.6-4.7 33.9-14c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.3-22.7 0zm56.1-179.8l-93.7 93.7c-12.5 12.5-12.5 32.8 0 45.2 6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4l91.9-91.9-30.2-30.2c-5-5-9.4-10.7-13.2-16.8zM128 160h105.5l-20.1 17.2c-13.5 11.5-21.6 28.4-22.3 46.1-.7 17.8 6.1 35.2 18.7 47.7l78.2 78.2V432c0 17.7 14.3 32 32 32s32-14.3 32-32v-89.4c0-12.6-5.1-25-14.1-33.9l-61-61c.5-.4 1.2-.6 1.7-1.1l82.3-82.3c11.5-11.5 14.9-28.6 8.7-43.6-6.2-15-20.7-24.7-37-24.7H128c-17.7 0-32 14.3-32 32s14.3 32 32 32z"]
};
var faSkiing = {
  prefix: 'fas',
  iconName: 'skiing',
  icon: [512, 512, [], "f7c9", "M432 96c26.5 0 48-21.5 48-48S458.5 0 432 0s-48 21.5-48 48 21.5 48 48 48zm73 356.1c-9.4-9.4-24.6-9.4-33.9 0-12.1 12.1-30.5 15.4-45.1 8.7l-135.8-70.2 49.2-73.8c12.7-19 10.2-44.5-6-60.6L293 215.7l-107-53.1c-2.9 19.9 3.4 40 17.7 54.4l75.1 75.2-45.9 68.8L35 258.7c-11.7-6-26.2-1.5-32.3 10.3-6.1 11.8-1.5 26.3 10.3 32.3l391.9 202.5c11.9 5.5 24.5 8.1 37.1 8.1 23.2 0 46-9 63-26 9.3-9.3 9.3-24.5 0-33.8zM120 91.6l-11.5 22.5c14.4 7.3 31.2 4.9 42.8-4.8l47.2 23.4c-.1.1-.1.2-.2.3l114.5 56.8 32.4-13 6.4 19.1c4 12.1 12.6 22 24 27.7l58.1 29c15.9 7.9 35 1.5 42.9-14.3 7.9-15.8 1.5-35-14.3-42.9l-52.1-26.1-17.1-51.2c-8.1-24.2-40.9-56.6-84.5-39.2l-81.2 32.5-62.5-31c.3-14.5-7.2-28.6-20.9-35.6l-11.1 21.7h-.2l-34.4-7c-1.8-.4-3.7.2-5 1.7-1.9 2.2-1.7 5.5.5 7.4l26.2 23z"]
};
var faSkiingNordic = {
  prefix: 'fas',
  iconName: 'skiing-nordic',
  icon: [576, 512, [], "f7ca", "M336 96c26.5 0 48-21.5 48-48S362.5 0 336 0s-48 21.5-48 48 21.5 48 48 48zm216 320c-13.2 0-24 10.7-24 24 0 13.2-10.8 24-24 24h-69.5L460 285.6c11.7-4.7 20.1-16.2 20.1-29.6 0-17.7-14.3-32-32-32h-44L378 170.8c-12.5-25.5-35.5-44.2-61.8-50.9L245 98.7c-28.3-6.8-57.8-.5-80.8 17.1l-39.7 30.4c-14 10.7-16.7 30.8-5.9 44.9.7.9 1.7 1.3 2.4 2.1L66.9 464H24c-13.2 0-24 10.7-24 24s10.8 24 24 24h480c39.7 0 72-32.3 72-72 0-13.2-10.8-24-24-24zm-260.5 48h-96.9l43.1-91-22-13c-12.1-7.2-21.9-16.9-29.5-27.8L123.7 464H99.5l52.3-261.4c4.1-1 8.1-2.9 11.7-5.6l39.7-30.4c7.7-5.9 17.4-8 25.3-6.1l14.7 4.4-37.5 87.4c-12.6 29.5-1.3 64 26.3 80.3l85 50.2-25.5 81.2zm110.6 0h-43.6l23.6-75.5c5.9-20.8-2.9-43.1-21.6-54.4L299.3 298l31.3-78.3 20.3 41.4c8 16.3 24.9 26.9 43.1 26.9h33.3l-25.2 176z"]
};
var faSkull = {
  prefix: 'fas',
  iconName: 'skull',
  icon: [512, 512, [], "f54c", "M256 0C114.6 0 0 100.3 0 224c0 70.1 36.9 132.6 94.5 173.7 9.6 6.9 15.2 18.1 13.5 29.9l-9.4 66.2c-1.4 9.6 6 18.2 15.7 18.2H192v-56c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v56h64v-56c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v56h77.7c9.7 0 17.1-8.6 15.7-18.2l-9.4-66.2c-1.7-11.7 3.8-23 13.5-29.9C475.1 356.6 512 294.1 512 224 512 100.3 397.4 0 256 0zm-96 320c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm192 0c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64z"]
};
var faSkullCrossbones = {
  prefix: 'fas',
  iconName: 'skull-crossbones',
  icon: [448, 512, [], "f714", "M439.15 453.06L297.17 384l141.99-69.06c7.9-3.95 11.11-13.56 7.15-21.46L432 264.85c-3.95-7.9-13.56-11.11-21.47-7.16L224 348.41 37.47 257.69c-7.9-3.95-17.51-.75-21.47 7.16L1.69 293.48c-3.95 7.9-.75 17.51 7.15 21.46L150.83 384 8.85 453.06c-7.9 3.95-11.11 13.56-7.15 21.47l14.31 28.63c3.95 7.9 13.56 11.11 21.47 7.15L224 419.59l186.53 90.72c7.9 3.95 17.51.75 21.47-7.15l14.31-28.63c3.95-7.91.74-17.52-7.16-21.47zM150 237.28l-5.48 25.87c-2.67 12.62 5.42 24.85 16.45 24.85h126.08c11.03 0 19.12-12.23 16.45-24.85l-5.5-25.87c41.78-22.41 70-62.75 70-109.28C368 57.31 303.53 0 224 0S80 57.31 80 128c0 46.53 28.22 86.87 70 109.28zM280 112c17.65 0 32 14.35 32 32s-14.35 32-32 32-32-14.35-32-32 14.35-32 32-32zm-112 0c17.65 0 32 14.35 32 32s-14.35 32-32 32-32-14.35-32-32 14.35-32 32-32z"]
};
var faSlash = {
  prefix: 'fas',
  iconName: 'slash',
  icon: [640, 512, [], "f715", "M594.53 508.63L6.18 53.9c-6.97-5.42-8.23-15.47-2.81-22.45L23.01 6.18C28.43-.8 38.49-2.06 45.47 3.37L633.82 458.1c6.97 5.42 8.23 15.47 2.81 22.45l-19.64 25.27c-5.42 6.98-15.48 8.23-22.46 2.81z"]
};
var faSleigh = {
  prefix: 'fas',
  iconName: 'sleigh',
  icon: [640, 512, [], "f7cc", "M612.7 350.7l-9.3-7.4c-6.9-5.5-17-4.4-22.5 2.5l-10 12.5c-5.5 6.9-4.4 17 2.5 22.5l9.3 7.4c5.9 4.7 9.2 11.7 9.2 19.2 0 13.6-11 24.6-24.6 24.6H48c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h516c39 0 73.7-29.3 75.9-68.3 1.4-23.8-8.7-46.3-27.2-61zM32 224c0 59.6 40.9 109.2 96 123.5V400h64v-48h192v48h64v-48c53 0 96-43 96-96v-96c17.7 0 32-14.3 32-32s-14.3-32-32-32h-96v64c0 35.3-28.7 64-64 64h-20.7c-65.8 0-125.9-37.2-155.3-96-29.4-58.8-89.6-96-155.3-96H32C14.3 32 0 46.3 0 64s14.3 32 32 32v128z"]
};
var faSlidersH = {
  prefix: 'fas',
  iconName: 'sliders-h',
  icon: [512, 512, [], "f1de", "M496 384H160v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h80v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h336c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160h-80v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h336v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h80c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160H288V48c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16C7.2 64 0 71.2 0 80v32c0 8.8 7.2 16 16 16h208v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h208c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16z"]
};
var faSmile = {
  prefix: 'fas',
  iconName: 'smile',
  icon: [496, 512, [], "f118", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm194.8 170.2C334.3 380.4 292.5 400 248 400s-86.3-19.6-114.8-53.8c-13.6-16.3 11-36.7 24.6-20.5 22.4 26.9 55.2 42.2 90.2 42.2s67.8-15.4 90.2-42.2c13.4-16.2 38.1 4.2 24.6 20.5z"]
};
var faSmileBeam = {
  prefix: 'fas',
  iconName: 'smile-beam',
  icon: [496, 512, [], "f5b8", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM112 223.4c3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.3 7.4-15.8 4-15.1-4.5zm250.8 122.8C334.3 380.4 292.5 400 248 400s-86.3-19.6-114.8-53.8c-13.5-16.3 11-36.7 24.6-20.5 22.4 26.9 55.2 42.2 90.2 42.2s67.8-15.4 90.2-42.2c13.6-16.2 38.1 4.3 24.6 20.5zm6.2-118.3l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.3-15.6 4-14.9-4.5 3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.6 8.6-11 11.9-15.1 4.5z"]
};
var faSmileWink = {
  prefix: 'fas',
  iconName: 'smile-wink',
  icon: [496, 512, [], "f4da", "M0 256c0 137 111 248 248 248s248-111 248-248S385 8 248 8 0 119 0 256zm200-48c0 17.7-14.3 32-32 32s-32-14.3-32-32 14.3-32 32-32 32 14.3 32 32zm158.5 16.5c-14.8-13.2-46.2-13.2-61 0L288 233c-8.3 7.4-21.6.4-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S384 197 388 222.2c1.7 11.1-11.4 18.3-19.8 10.8l-9.7-8.5zM157.8 325.8C180.2 352.7 213 368 248 368s67.8-15.4 90.2-42.2c13.6-16.2 38.1 4.2 24.6 20.5C334.3 380.4 292.5 400 248 400s-86.3-19.6-114.8-53.8c-13.5-16.3 11.2-36.7 24.6-20.4z"]
};
var faSmog = {
  prefix: 'fas',
  iconName: 'smog',
  icon: [640, 512, [], "f75f", "M624 368H80c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h544c8.8 0 16-7.2 16-16v-16c0-8.8-7.2-16-16-16zm-480 96H16c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-16c0-8.8-7.2-16-16-16zm416 0H224c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h336c8.8 0 16-7.2 16-16v-16c0-8.8-7.2-16-16-16zM144 288h156.1c22.5 19.7 51.6 32 83.9 32s61.3-12.3 83.9-32H528c61.9 0 112-50.1 112-112S589.9 64 528 64c-18 0-34.7 4.6-49.7 12.1C454 31 406.8 0 352 0c-41 0-77.8 17.3-104 44.8C221.8 17.3 185 0 144 0 64.5 0 0 64.5 0 144s64.5 144 144 144z"]
};
var faSmoking = {
  prefix: 'fas',
  iconName: 'smoking',
  icon: [640, 512, [], "f48d", "M632 352h-48c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zM553.3 87.1c-5.7-3.8-9.3-10-9.3-16.8V8c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v62.3c0 22 10.2 43.4 28.6 55.4 42.2 27.3 67.4 73.8 67.4 124V280c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-30.3c0-65.5-32.4-126.2-86.7-162.6zM432 352H48c-26.5 0-48 21.5-48 48v64c0 26.5 21.5 48 48 48h384c8.8 0 16-7.2 16-16V368c0-8.8-7.2-16-16-16zm-32 112H224v-64h176v64zm87.7-322.4C463.8 125 448 99.3 448 70.3V8c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v66.4c0 43.7 24.6 81.6 60.3 106.7 22.4 15.7 35.7 41.2 35.7 68.6V280c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-30.3c0-43.3-21-83.4-56.3-108.1zM536 352h-48c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"]
};
var faSmokingBan = {
  prefix: 'fas',
  iconName: 'smoking-ban',
  icon: [512, 512, [], "f54d", "M96 304c0 8.8 7.2 16 16 16h117.5l-96-96H112c-8.8 0-16 7.2-16 16v64zM256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm0 448c-105.9 0-192-86.1-192-192 0-41.4 13.3-79.7 35.7-111.1l267.4 267.4C335.7 434.7 297.4 448 256 448zm45.2-192H384v32h-50.8l-32-32zm111.1 111.1L365.2 320H400c8.8 0 16-7.2 16-16v-64c0-8.8-7.2-16-16-16H269.2L144.9 99.7C176.3 77.3 214.6 64 256 64c105.9 0 192 86.1 192 192 0 41.4-13.3 79.7-35.7 111.1zM320.6 128c-15.6 0-28.6-11.2-31.4-25.9-.7-3.6-4-6.1-7.7-6.1h-16.2c-5 0-8.7 4.5-8 9.4 4.6 30.9 31.2 54.6 63.3 54.6 15.6 0 28.6 11.2 31.4 25.9.7 3.6 4 6.1 7.7 6.1h16.2c5 0 8.7-4.5 8-9.4-4.6-30.9-31.2-54.6-63.3-54.6z"]
};
var faSms = {
  prefix: 'fas',
  iconName: 'sms',
  icon: [512, 512, [], "f7cd", "M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7 1.3 3 4.1 4.8 7.3 4.8 66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32zM128.2 304H116c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h12.3c6 0 10.4-3.5 10.4-6.6 0-1.3-.8-2.7-2.1-3.8l-21.9-18.8c-8.5-7.2-13.3-17.5-13.3-28.1 0-21.3 19-38.6 42.4-38.6H156c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8h-12.3c-6 0-10.4 3.5-10.4 6.6 0 1.3.8 2.7 2.1 3.8l21.9 18.8c8.5 7.2 13.3 17.5 13.3 28.1.1 21.3-19 38.6-42.4 38.6zm191.8-8c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8v-68.2l-24.8 55.8c-2.9 5.9-11.4 5.9-14.3 0L224 227.8V296c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V192c0-8.8 7.2-16 16-16h16c6.1 0 11.6 3.4 14.3 8.8l17.7 35.4 17.7-35.4c2.7-5.4 8.3-8.8 14.3-8.8h16c8.8 0 16 7.2 16 16v104zm48.3 8H356c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h12.3c6 0 10.4-3.5 10.4-6.6 0-1.3-.8-2.7-2.1-3.8l-21.9-18.8c-8.5-7.2-13.3-17.5-13.3-28.1 0-21.3 19-38.6 42.4-38.6H396c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8h-12.3c-6 0-10.4 3.5-10.4 6.6 0 1.3.8 2.7 2.1 3.8l21.9 18.8c8.5 7.2 13.3 17.5 13.3 28.1.1 21.3-18.9 38.6-42.3 38.6z"]
};
var faSnowboarding = {
  prefix: 'fas',
  iconName: 'snowboarding',
  icon: [512, 512, [], "f7ce", "M432 96c26.5 0 48-21.5 48-48S458.5 0 432 0s-48 21.5-48 48 21.5 48 48 48zm28.8 153.6c5.8 4.3 12.5 6.4 19.2 6.4 9.7 0 19.3-4.4 25.6-12.8 10.6-14.1 7.8-34.2-6.4-44.8l-111.4-83.5c-13.8-10.3-29.1-18.4-45.4-23.8l-63.7-21.2-26.1-52.1C244.7 2 225.5-4.4 209.7 3.5c-15.8 7.9-22.2 27.1-14.3 42.9l29.1 58.1c5.7 11.4 15.6 19.9 27.7 24l16.4 5.5-41.2 20.6c-21.8 10.9-35.4 32.8-35.4 57.2v53.1l-74.1 24.7c-16.8 5.6-25.8 23.7-20.2 40.5 1.7 5.2 4.9 9.4 8.7 12.9l-38.7-14.1c-9.7-3.5-17.4-10.6-21.8-20-5.6-12-19.9-17.2-31.9-11.6s-17.2 19.9-11.6 31.9c9.8 21 27.1 36.9 48.9 44.8l364.8 132.7c9.7 3.5 19.7 5.3 29.7 5.3 12.5 0 24.9-2.7 36.5-8.2 12-5.6 17.2-19.9 11.6-31.9S474 454.7 462 460.3c-9.3 4.4-19.8 4.8-29.5 1.3l-90.8-33.1c8.7-4.1 15.6-11.8 17.8-21.9l21.9-102c3.9-18.2-3.2-37.2-18.1-48.4l-52-39 66-30.5 83.5 62.9zm-144.4 51.7l-19.7 92c-1.5 7.1-.1 13.9 2.8 20l-169.4-61.6c2.7-.2 5.4-.4 8-1.3l85-28.4c19.6-6.5 32.8-24.8 32.8-45.5V256l60.5 45.3z"]
};
var faSnowflake = {
  prefix: 'fas',
  iconName: 'snowflake',
  icon: [448, 512, [], "f2dc", "M440.3 345.2l-33.8-19.5 26-7c8.2-2.2 13.1-10.7 10.9-18.9l-4-14.9c-2.2-8.2-10.7-13.1-18.9-10.9l-70.8 19-63.9-37 63.8-36.9 70.8 19c8.2 2.2 16.7-2.7 18.9-10.9l4-14.9c2.2-8.2-2.7-16.7-10.9-18.9l-26-7 33.8-19.5c7.4-4.3 9.9-13.7 5.7-21.1L430.4 119c-4.3-7.4-13.7-9.9-21.1-5.7l-33.8 19.5 7-26c2.2-8.2-2.7-16.7-10.9-18.9l-14.9-4c-8.2-2.2-16.7 2.7-18.9 10.9l-19 70.8-62.8 36.2v-77.5l53.7-53.7c6.2-6.2 6.2-16.4 0-22.6l-11.3-11.3c-6.2-6.2-16.4-6.2-22.6 0L256 56.4V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v40.4l-19.7-19.7c-6.2-6.2-16.4-6.2-22.6 0L138.3 48c-6.3 6.2-6.3 16.4 0 22.6l53.7 53.7v77.5l-62.8-36.2-19-70.8c-2.2-8.2-10.7-13.1-18.9-10.9l-14.9 4c-8.2 2.2-13.1 10.7-10.9 18.9l7 26-33.8-19.5c-7.4-4.3-16.8-1.7-21.1 5.7L2.1 145.7c-4.3 7.4-1.7 16.8 5.7 21.1l33.8 19.5-26 7c-8.3 2.2-13.2 10.7-11 19l4 14.9c2.2 8.2 10.7 13.1 18.9 10.9l70.8-19 63.8 36.9-63.8 36.9-70.8-19c-8.2-2.2-16.7 2.7-18.9 10.9l-4 14.9c-2.2 8.2 2.7 16.7 10.9 18.9l26 7-33.8 19.6c-7.4 4.3-9.9 13.7-5.7 21.1l15.5 26.8c4.3 7.4 13.7 9.9 21.1 5.7l33.8-19.5-7 26c-2.2 8.2 2.7 16.7 10.9 18.9l14.9 4c8.2 2.2 16.7-2.7 18.9-10.9l19-70.8 62.8-36.2v77.5l-53.7 53.7c-6.3 6.2-6.3 16.4 0 22.6l11.3 11.3c6.2 6.2 16.4 6.2 22.6 0l19.7-19.7V496c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-40.4l19.7 19.7c6.2 6.2 16.4 6.2 22.6 0l11.3-11.3c6.2-6.2 6.2-16.4 0-22.6L256 387.7v-77.5l62.8 36.2 19 70.8c2.2 8.2 10.7 13.1 18.9 10.9l14.9-4c8.2-2.2 13.1-10.7 10.9-18.9l-7-26 33.8 19.5c7.4 4.3 16.8 1.7 21.1-5.7l15.5-26.8c4.3-7.3 1.8-16.8-5.6-21z"]
};
var faSnowman = {
  prefix: 'fas',
  iconName: 'snowman',
  icon: [512, 512, [], "f7d0", "M510.9 152.3l-5.9-14.5c-3.3-8-12.6-11.9-20.8-8.7L456 140.6v-29c0-8.6-7.2-15.6-16-15.6h-16c-8.8 0-16 7-16 15.6v46.9c0 .5.3 1 .3 1.5l-56.4 23c-5.9-10-13.3-18.9-22-26.6 13.6-16.6 22-37.4 22-60.5 0-53-43-96-96-96s-96 43-96 96c0 23.1 8.5 43.9 22 60.5-8.7 7.7-16 16.6-22 26.6l-56.4-23c.1-.5.3-1 .3-1.5v-46.9C104 103 96.8 96 88 96H72c-8.8 0-16 7-16 15.6v29l-28.1-11.5c-8.2-3.2-17.5.7-20.8 8.7l-5.9 14.5c-3.3 8 .7 17.1 8.9 20.3l135.2 55.2c-.4 4-1.2 8-1.2 12.2 0 10.1 1.7 19.6 4.2 28.9C120.9 296.4 104 334.2 104 376c0 54 28.4 100.9 70.8 127.8 9.3 5.9 20.3 8.2 31.3 8.2h99.2c13.3 0 26.3-4.1 37.2-11.7 46.5-32.3 74.4-89.4 62.9-152.6-5.5-30.2-20.5-57.6-41.6-79 2.5-9.2 4.2-18.7 4.2-28.7 0-4.2-.8-8.1-1.2-12.2L502 172.6c8.1-3.1 12.1-12.2 8.9-20.3zM224 96c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm32 272c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-64c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-64c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-88s-16-23.2-16-32 7.2-16 16-16 16 7.2 16 16-16 32-16 32zm32-56c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"]
};
var faSnowplow = {
  prefix: 'fas',
  iconName: 'snowplow',
  icon: [640, 512, [], "f7d2", "M120 376c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm80 0c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm80 0c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm80 0c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm238.6 49.4c-14.5-14.5-22.6-34.1-22.6-54.6V269.2c0-20.5 8.1-40.1 22.6-54.6l36.7-36.7c6.2-6.2 6.2-16.4 0-22.6l-22.6-22.6c-6.2-6.2-16.4-6.2-22.6 0l-36.7 36.7c-26.5 26.5-41.4 62.4-41.4 99.9V288h-64v-50.9c0-8.7-1.8-17.2-5.2-25.2L364.5 29.1C356.9 11.4 339.6 0 320.3 0H176c-26.5 0-48 21.5-48 48v112h-16c-26.5 0-48 21.5-48 48v91.2C26.3 317.2 0 355.4 0 400c0 61.9 50.1 112 112 112h256c61.9 0 112-50.1 112-112 0-17.3-4.2-33.4-11.2-48H512v18.7c0 37.5 14.9 73.4 41.4 99.9l36.7 36.7c6.2 6.2 16.4 6.2 22.6 0l22.6-22.6c6.2-6.2 6.2-16.4 0-22.6l-36.7-36.7zM192 64h117.8l68.6 160H256l-64-64V64zm176 384H112c-26.5 0-48-21.5-48-48s21.5-48 48-48h256c26.5 0 48 21.5 48 48s-21.5 48-48 48z"]
};
var faSoap = {
  prefix: 'fas',
  iconName: 'soap',
  icon: [512, 512, [], "e06e", "M416,192a95.42,95.42,0,0,1-30.94,70.21A95.8,95.8,0,0,1,352,448H160a96,96,0,0,1,0-192h88.91A95.3,95.3,0,0,1,224,192H96A96,96,0,0,0,0,288V416a96,96,0,0,0,96,96H416a96,96,0,0,0,96-96V288A96,96,0,0,0,416,192Zm-96,64a64,64,0,1,0-64-64A64,64,0,0,0,320,256ZM208,96a48,48,0,1,0-48-48A48,48,0,0,0,208,96ZM384,64a32,32,0,1,0-32-32A32,32,0,0,0,384,64ZM160,288a64,64,0,0,0,0,128H352a64,64,0,0,0,0-128Z"]
};
var faSocks = {
  prefix: 'fas',
  iconName: 'socks',
  icon: [512, 512, [], "f696", "M214.66 311.01L288 256V96H128v176l-86.65 64.61c-39.4 29.56-53.86 84.42-29.21 127.06C30.39 495.25 63.27 512 96.08 512c20.03 0 40.25-6.25 57.52-19.2l21.86-16.39c-29.85-55.38-13.54-125.84 39.2-165.4zM288 32c0-11.05 3.07-21.3 8.02-30.38C293.4.92 290.85 0 288 0H160c-17.67 0-32 14.33-32 32v32h160V32zM480 0H352c-17.67 0-32 14.33-32 32v32h192V32c0-17.67-14.33-32-32-32zM320 272l-86.13 64.61c-39.4 29.56-53.86 84.42-29.21 127.06 18.25 31.58 50.61 48.33 83.42 48.33 20.03 0 40.25-6.25 57.52-19.2l115.2-86.4A127.997 127.997 0 0 0 512 304V96H320v176z"]
};
var faSolarPanel = {
  prefix: 'fas',
  iconName: 'solar-panel',
  icon: [640, 512, [], "f5ba", "M431.98 448.01l-47.97.05V416h-128v32.21l-47.98.05c-8.82.01-15.97 7.16-15.98 15.99l-.05 31.73c-.01 8.85 7.17 16.03 16.02 16.02l223.96-.26c8.82-.01 15.97-7.16 15.98-15.98l.04-31.73c.01-8.85-7.17-16.03-16.02-16.02zM585.2 26.74C582.58 11.31 568.99 0 553.06 0H86.93C71 0 57.41 11.31 54.79 26.74-3.32 369.16.04 348.08.03 352c-.03 17.32 14.29 32 32.6 32h574.74c18.23 0 32.51-14.56 32.59-31.79.02-4.08 3.35 16.95-54.76-325.47zM259.83 64h120.33l9.77 96H250.06l9.77-96zm-75.17 256H71.09L90.1 208h105.97l-11.41 112zm16.29-160H98.24l16.29-96h96.19l-9.77 96zm32.82 160l11.4-112h149.65l11.4 112H233.77zm195.5-256h96.19l16.29 96H439.04l-9.77-96zm26.06 256l-11.4-112H549.9l19.01 112H455.33z"]
};
var faSort = {
  prefix: 'fas',
  iconName: 'sort',
  icon: [320, 512, [], "f0dc", "M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"]
};
var faSortAlphaDown = {
  prefix: 'fas',
  iconName: 'sort-alpha-down',
  icon: [448, 512, [], "f15d", "M176 352h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.36 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352zm240-64H288a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h56l-61.26 70.45A32 32 0 0 0 272 446.37V464a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-56l61.26-70.45A32 32 0 0 0 432 321.63V304a16 16 0 0 0-16-16zm31.06-85.38l-59.27-160A16 16 0 0 0 372.72 32h-41.44a16 16 0 0 0-15.07 10.62l-59.27 160A16 16 0 0 0 272 224h24.83a16 16 0 0 0 15.23-11.08l4.42-12.92h71l4.41 12.92A16 16 0 0 0 407.16 224H432a16 16 0 0 0 15.06-21.38zM335.61 144L352 96l16.39 48z"]
};
var faSortAlphaDownAlt = {
  prefix: 'fas',
  iconName: 'sort-alpha-down-alt',
  icon: [448, 512, [], "f881", "M176 352h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.36 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352zm112-128h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-56l61.26-70.45A32 32 0 0 0 432 65.63V48a16 16 0 0 0-16-16H288a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h56l-61.26 70.45A32 32 0 0 0 272 190.37V208a16 16 0 0 0 16 16zm159.06 234.62l-59.27-160A16 16 0 0 0 372.72 288h-41.44a16 16 0 0 0-15.07 10.62l-59.27 160A16 16 0 0 0 272 480h24.83a16 16 0 0 0 15.23-11.08l4.42-12.92h71l4.41 12.92A16 16 0 0 0 407.16 480H432a16 16 0 0 0 15.06-21.38zM335.61 400L352 352l16.39 48z"]
};
var faSortAlphaUp = {
  prefix: 'fas',
  iconName: 'sort-alpha-up',
  icon: [448, 512, [], "f15e", "M16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.38-17.24 11.31-27.31l-80-96a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.78 160 16 160zm400 128H288a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h56l-61.26 70.45A32 32 0 0 0 272 446.37V464a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-56l61.26-70.45A32 32 0 0 0 432 321.63V304a16 16 0 0 0-16-16zm31.06-85.38l-59.27-160A16 16 0 0 0 372.72 32h-41.44a16 16 0 0 0-15.07 10.62l-59.27 160A16 16 0 0 0 272 224h24.83a16 16 0 0 0 15.23-11.08l4.42-12.92h71l4.41 12.92A16 16 0 0 0 407.16 224H432a16 16 0 0 0 15.06-21.38zM335.61 144L352 96l16.39 48z"]
};
var faSortAlphaUpAlt = {
  prefix: 'fas',
  iconName: 'sort-alpha-up-alt',
  icon: [448, 512, [], "f882", "M16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.38-17.24 11.31-27.31l-80-96a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.78 160 16 160zm272 64h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-56l61.26-70.45A32 32 0 0 0 432 65.63V48a16 16 0 0 0-16-16H288a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h56l-61.26 70.45A32 32 0 0 0 272 190.37V208a16 16 0 0 0 16 16zm159.06 234.62l-59.27-160A16 16 0 0 0 372.72 288h-41.44a16 16 0 0 0-15.07 10.62l-59.27 160A16 16 0 0 0 272 480h24.83a16 16 0 0 0 15.23-11.08l4.42-12.92h71l4.41 12.92A16 16 0 0 0 407.16 480H432a16 16 0 0 0 15.06-21.38zM335.61 400L352 352l16.39 48z"]
};
var faSortAmountDown = {
  prefix: 'fas',
  iconName: 'sort-amount-down',
  icon: [512, 512, [], "f160", "M304 416h-64a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-128-64h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.37 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352zm256-192H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h192a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-64 128H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM496 32H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h256a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
};
var faSortAmountDownAlt = {
  prefix: 'fas',
  iconName: 'sort-amount-down-alt',
  icon: [512, 512, [], "f884", "M240 96h64a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16h-64a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm0 128h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm256 192H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h256a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-256-64h192a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm-64 0h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.37 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352z"]
};
var faSortAmountUp = {
  prefix: 'fas',
  iconName: 'sort-amount-up',
  icon: [512, 512, [], "f161", "M304 416h-64a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.38-17.24 11.31-27.31l-80-96a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.77 160 16 160zm416 0H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h192a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-64 128H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM496 32H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h256a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
};
var faSortAmountUpAlt = {
  prefix: 'fas',
  iconName: 'sort-amount-up-alt',
  icon: [512, 512, [], "f885", "M240 96h64a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16h-64a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm0 128h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm256 192H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h256a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-256-64h192a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zM16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.39-17.24 11.31-27.31l-80-96a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.78 160 16 160z"]
};
var faSortDown = {
  prefix: 'fas',
  iconName: 'sort-down',
  icon: [320, 512, [], "f0dd", "M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z"]
};
var faSortNumericDown = {
  prefix: 'fas',
  iconName: 'sort-numeric-down',
  icon: [448, 512, [], "f162", "M304 96h16v64h-16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h96a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-16V48a16 16 0 0 0-16-16h-48a16 16 0 0 0-14.29 8.83l-16 32A16 16 0 0 0 304 96zm26.15 162.91a79 79 0 0 0-55 54.17c-14.25 51.05 21.21 97.77 68.85 102.53a84.07 84.07 0 0 1-20.85 12.91c-7.57 3.4-10.8 12.47-8.18 20.34l9.9 20c2.87 8.63 12.53 13.49 20.9 9.91 58-24.76 86.25-61.61 86.25-132V336c-.02-51.21-48.4-91.34-101.85-77.09zM352 356a20 20 0 1 1 20-20 20 20 0 0 1-20 20zm-176-4h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.36 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352z"]
};
var faSortNumericDownAlt = {
  prefix: 'fas',
  iconName: 'sort-numeric-down-alt',
  icon: [448, 512, [], "f886", "M176 352h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.36 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352zm224 64h-16V304a16 16 0 0 0-16-16h-48a16 16 0 0 0-14.29 8.83l-16 32A16 16 0 0 0 304 352h16v64h-16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h96a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM330.17 34.91a79 79 0 0 0-55 54.17c-14.27 51.05 21.19 97.77 68.83 102.53a84.07 84.07 0 0 1-20.85 12.91c-7.57 3.4-10.8 12.47-8.18 20.34l9.9 20c2.87 8.63 12.53 13.49 20.9 9.91 58-24.77 86.25-61.61 86.25-132V112c-.02-51.21-48.4-91.34-101.85-77.09zM352 132a20 20 0 1 1 20-20 20 20 0 0 1-20 20z"]
};
var faSortNumericUp = {
  prefix: 'fas',
  iconName: 'sort-numeric-up',
  icon: [448, 512, [], "f163", "M330.17 258.91a79 79 0 0 0-55 54.17c-14.27 51.05 21.19 97.77 68.83 102.53a84.07 84.07 0 0 1-20.85 12.91c-7.57 3.4-10.8 12.47-8.18 20.34l9.9 20c2.87 8.63 12.53 13.49 20.9 9.91 58-24.76 86.25-61.61 86.25-132V336c-.02-51.21-48.4-91.34-101.85-77.09zM352 356a20 20 0 1 1 20-20 20 20 0 0 1-20 20zM304 96h16v64h-16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h96a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-16V48a16 16 0 0 0-16-16h-48a16 16 0 0 0-14.29 8.83l-16 32A16 16 0 0 0 304 96zM107.31 36.69a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.78 160 16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.38-17.24 11.31-27.31z"]
};
var faSortNumericUpAlt = {
  prefix: 'fas',
  iconName: 'sort-numeric-up-alt',
  icon: [448, 512, [], "f887", "M107.31 36.69a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.78 160 16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.38-17.24 11.31-27.31zM400 416h-16V304a16 16 0 0 0-16-16h-48a16 16 0 0 0-14.29 8.83l-16 32A16 16 0 0 0 304 352h16v64h-16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h96a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM330.17 34.91a79 79 0 0 0-55 54.17c-14.27 51.05 21.19 97.77 68.83 102.53a84.07 84.07 0 0 1-20.85 12.91c-7.57 3.4-10.8 12.47-8.18 20.34l9.9 20c2.87 8.63 12.53 13.49 20.9 9.91 58-24.77 86.25-61.61 86.25-132V112c-.02-51.21-48.4-91.34-101.85-77.09zM352 132a20 20 0 1 1 20-20 20 20 0 0 1-20 20z"]
};
var faSortUp = {
  prefix: 'fas',
  iconName: 'sort-up',
  icon: [320, 512, [], "f0de", "M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z"]
};
var faSpa = {
  prefix: 'fas',
  iconName: 'spa',
  icon: [576, 512, [], "f5bb", "M568.25 192c-29.04.13-135.01 6.16-213.84 83-33.12 29.63-53.36 63.3-66.41 94.86-13.05-31.56-33.29-65.23-66.41-94.86-78.83-76.84-184.8-82.87-213.84-83-4.41-.02-7.79 3.4-7.75 7.82.23 27.92 7.14 126.14 88.77 199.3C172.79 480.94 256 480 288 480s115.19.95 199.23-80.88c81.64-73.17 88.54-171.38 88.77-199.3.04-4.42-3.34-7.84-7.75-7.82zM287.98 302.6c12.82-18.85 27.6-35.78 44.09-50.52 19.09-18.61 39.58-33.3 60.26-45.18-16.44-70.5-51.72-133.05-96.73-172.22-4.11-3.58-11.02-3.58-15.14 0-44.99 39.14-80.27 101.63-96.74 172.07 20.37 11.7 40.5 26.14 59.22 44.39a282.768 282.768 0 0 1 45.04 51.46z"]
};
var faSpaceShuttle = {
  prefix: 'fas',
  iconName: 'space-shuttle',
  icon: [640, 512, [], "f197", "M592.604 208.244C559.735 192.836 515.777 184 472 184H186.327c-4.952-6.555-10.585-11.978-16.72-16H376C229.157 137.747 219.403 32 96.003 32H96v128H80V32c-26.51 0-48 28.654-48 64v64c-23.197 0-32 10.032-32 24v40c0 13.983 8.819 24 32 24v16c-23.197 0-32 10.032-32 24v40c0 13.983 8.819 24 32 24v64c0 35.346 21.49 64 48 64V352h16v128h.003c123.4 0 133.154-105.747 279.997-136H169.606c6.135-4.022 11.768-9.445 16.72-16H472c43.777 0 87.735-8.836 120.604-24.244C622.282 289.845 640 271.992 640 256s-17.718-33.845-47.396-47.756zM488 296a8 8 0 0 1-8-8v-64a8 8 0 0 1 8-8c31.909 0 31.942 80 0 80z"]
};
var faSpellCheck = {
  prefix: 'fas',
  iconName: 'spell-check',
  icon: [576, 512, [], "f891", "M272 256h91.36c43.2 0 82-32.2 84.51-75.34a79.82 79.82 0 0 0-25.26-63.07 79.81 79.81 0 0 0 9.06-44.91C427.9 30.57 389.3 0 347 0h-75a16 16 0 0 0-16 16v224a16 16 0 0 0 16 16zm40-200h40a24 24 0 0 1 0 48h-40zm0 96h56a24 24 0 0 1 0 48h-56zM155.12 22.25A32 32 0 0 0 124.64 0H99.36a32 32 0 0 0-30.48 22.25L.59 235.73A16 16 0 0 0 16 256h24.93a16 16 0 0 0 15.42-11.73L68.29 208h87.42l11.94 36.27A16 16 0 0 0 183.07 256H208a16 16 0 0 0 15.42-20.27zM89.37 144L112 75.3l22.63 68.7zm482 132.48l-45.21-45.3a15.88 15.88 0 0 0-22.59 0l-151.5 151.5-55.41-55.5a15.88 15.88 0 0 0-22.59 0l-45.3 45.3a16 16 0 0 0 0 22.59l112 112.21a15.89 15.89 0 0 0 22.6 0l208-208.21a16 16 0 0 0-.02-22.59z"]
};
var faSpider = {
  prefix: 'fas',
  iconName: 'spider',
  icon: [576, 512, [], "f717", "M151.17 167.35L177.1 176h4.67l5.22-26.12c.72-3.58 1.8-7.58 3.21-11.79l-20.29-40.58 23.8-71.39c2.79-8.38-1.73-17.44-10.12-20.24L168.42.82c-8.38-2.8-17.45 1.73-20.24 10.12l-25.89 77.68a32.04 32.04 0 0 0 1.73 24.43l27.15 54.3zm422.14 182.03l-52.75-79.12a32.002 32.002 0 0 0-26.62-14.25H416l68.99-24.36a32.03 32.03 0 0 0 16.51-12.61l53.6-80.41c4.9-7.35 2.91-17.29-4.44-22.19l-13.31-8.88c-7.35-4.9-17.29-2.91-22.19 4.44l-50.56 75.83L404.1 208H368l-10.37-51.85C355.44 145.18 340.26 96 288 96c-52.26 0-67.44 49.18-69.63 60.15L208 208h-36.1l-60.49-20.17L60.84 112c-4.9-7.35-14.83-9.34-22.19-4.44l-13.31 8.88c-7.35 4.9-9.34 14.83-4.44 22.19l53.6 80.41a32.03 32.03 0 0 0 16.51 12.61L160 256H82.06a32.02 32.02 0 0 0-26.63 14.25L2.69 349.38c-4.9 7.35-2.92 17.29 4.44 22.19l13.31 8.88c7.35 4.9 17.29 2.91 22.19-4.44l48-72h47.06l-60.83 97.33A31.988 31.988 0 0 0 72 418.3V496c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-73.11l74.08-118.53c-1.01 14.05-2.08 28.11-2.08 42.21C192 399.64 232.76 448 288 448s96-48.36 96-101.43c0-14.1-1.08-28.16-2.08-42.21L456 422.89V496c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-77.71c0-6-1.69-11.88-4.86-16.96L438.31 304h47.06l48 72c4.9 7.35 14.84 9.34 22.19 4.44l13.31-8.88c7.36-4.9 9.34-14.83 4.44-22.18zM406.09 97.51l-20.29 40.58c1.41 4.21 2.49 8.21 3.21 11.79l5.22 26.12h4.67l25.93-8.65 27.15-54.3a31.995 31.995 0 0 0 1.73-24.43l-25.89-77.68C425.03 2.56 415.96-1.98 407.58.82l-15.17 5.06c-8.38 2.8-12.91 11.86-10.12 20.24l23.8 71.39z"]
};
var faSpinner = {
  prefix: 'fas',
  iconName: 'spinner',
  icon: [512, 512, [], "f110", "M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z"]
};
var faSplotch = {
  prefix: 'fas',
  iconName: 'splotch',
  icon: [512, 512, [], "f5bc", "M472.29 195.89l-67.06-22.95c-19.28-6.6-33.54-20.92-38.14-38.3L351.1 74.19c-11.58-43.77-76.57-57.13-109.98-22.62l-46.14 47.67c-13.26 13.71-33.54 20.93-54.2 19.31l-71.88-5.62c-52.05-4.07-86.93 44.88-59.03 82.83l38.54 52.42c11.08 15.07 12.82 33.86 4.64 50.24L24.62 355.4c-20.59 41.25 22.84 84.87 73.49 73.81l69.96-15.28c20.11-4.39 41.45 0 57.07 11.73l54.32 40.83c39.32 29.56 101.04 7.57 104.45-37.22l4.7-61.86c1.35-17.79 12.8-33.86 30.63-42.99l62-31.74c44.88-22.96 39.59-80.17-8.95-96.79z"]
};
var faSprayCan = {
  prefix: 'fas',
  iconName: 'spray-can',
  icon: [512, 512, [], "f5bd", "M224 32c0-17.67-14.33-32-32-32h-64c-17.67 0-32 14.33-32 32v96h128V32zm256 96c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm-256 32H96c-53.02 0-96 42.98-96 96v224c0 17.67 14.33 32 32 32h256c17.67 0 32-14.33 32-32V256c0-53.02-42.98-96-96-96zm-64 256c-44.18 0-80-35.82-80-80s35.82-80 80-80 80 35.82 80 80-35.82 80-80 80zM480 96c17.67 0 32-14.33 32-32s-14.33-32-32-32-32 14.33-32 32 14.33 32 32 32zm-96 32c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm-96-96c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm96 0c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm96 192c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"]
};
var faSquare = {
  prefix: 'fas',
  iconName: 'square',
  icon: [448, 512, [], "f0c8", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"]
};
var faSquareFull = {
  prefix: 'fas',
  iconName: 'square-full',
  icon: [512, 512, [], "f45c", "M512 512H0V0h512v512z"]
};
var faSquareRootAlt = {
  prefix: 'fas',
  iconName: 'square-root-alt',
  icon: [576, 512, [], "f698", "M571.31 251.31l-22.62-22.62c-6.25-6.25-16.38-6.25-22.63 0L480 274.75l-46.06-46.06c-6.25-6.25-16.38-6.25-22.63 0l-22.62 22.62c-6.25 6.25-6.25 16.38 0 22.63L434.75 320l-46.06 46.06c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L480 365.25l46.06 46.06c6.25 6.25 16.38 6.25 22.63 0l22.62-22.62c6.25-6.25 6.25-16.38 0-22.63L525.25 320l46.06-46.06c6.25-6.25 6.25-16.38 0-22.63zM552 0H307.65c-14.54 0-27.26 9.8-30.95 23.87l-84.79 322.8-58.41-106.1A32.008 32.008 0 0 0 105.47 224H24c-13.25 0-24 10.74-24 24v48c0 13.25 10.75 24 24 24h43.62l88.88 163.73C168.99 503.5 186.3 512 204.94 512c17.27 0 44.44-9 54.28-41.48L357.03 96H552c13.25 0 24-10.75 24-24V24c0-13.26-10.75-24-24-24z"]
};
var faStamp = {
  prefix: 'fas',
  iconName: 'stamp',
  icon: [512, 512, [], "f5bf", "M32 512h448v-64H32v64zm384-256h-66.56c-16.26 0-29.44-13.18-29.44-29.44v-9.46c0-27.37 8.88-53.41 21.46-77.72 9.11-17.61 12.9-38.39 9.05-60.42-6.77-38.78-38.47-70.7-77.26-77.45C212.62-9.04 160 37.33 160 96c0 14.16 3.12 27.54 8.69 39.58C182.02 164.43 192 194.7 192 226.49v.07c0 16.26-13.18 29.44-29.44 29.44H96c-53.02 0-96 42.98-96 96v32c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-32c0-53.02-42.98-96-96-96z"]
};
var faStar = {
  prefix: 'fas',
  iconName: 'star',
  icon: [576, 512, [], "f005", "M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"]
};
var faStarAndCrescent = {
  prefix: 'fas',
  iconName: 'star-and-crescent',
  icon: [512, 512, [], "f699", "M340.47 466.36c-1.45 0-6.89.46-9.18.46-116.25 0-210.82-94.57-210.82-210.82S215.04 45.18 331.29 45.18c2.32 0 7.7.46 9.18.46 7.13 0 13.33-5.03 14.75-12.07 1.46-7.25-2.55-14.49-9.47-17.09C316.58 5.54 286.39 0 256 0 114.84 0 0 114.84 0 256s114.84 256 256 256c30.23 0 60.28-5.49 89.32-16.32 5.96-2.02 10.28-7.64 10.28-14.26 0-8.09-6.39-15.06-15.13-15.06zm162.99-252.5l-76.38-11.1-34.16-69.21c-1.83-3.7-5.38-5.55-8.93-5.55s-7.1 1.85-8.93 5.55l-34.16 69.21-76.38 11.1c-8.17 1.18-11.43 11.22-5.52 16.99l55.27 53.87-13.05 76.07c-1.11 6.44 4.01 11.66 9.81 11.66 1.53 0 3.11-.36 4.64-1.17L384 335.37l68.31 35.91c1.53.8 3.11 1.17 4.64 1.17 5.8 0 10.92-5.23 9.81-11.66l-13.05-76.07 55.27-53.87c5.91-5.77 2.65-15.81-5.52-16.99z"]
};
var faStarHalf = {
  prefix: 'fas',
  iconName: 'star-half',
  icon: [576, 512, [], "f089", "M288 0c-11.4 0-22.8 5.9-28.7 17.8L194 150.2 47.9 171.4c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.1 23 46 46.4 33.7L288 439.6V0z"]
};
var faStarHalfAlt = {
  prefix: 'fas',
  iconName: 'star-half-alt',
  icon: [536, 512, [], "f5c0", "M508.55 171.51L362.18 150.2 296.77 17.81C290.89 5.98 279.42 0 267.95 0c-11.4 0-22.79 5.9-28.69 17.81l-65.43 132.38-146.38 21.29c-26.25 3.8-36.77 36.09-17.74 54.59l105.89 103-25.06 145.48C86.98 495.33 103.57 512 122.15 512c4.93 0 10-1.17 14.87-3.75l130.95-68.68 130.94 68.7c4.86 2.55 9.92 3.71 14.83 3.71 18.6 0 35.22-16.61 31.66-37.4l-25.03-145.49 105.91-102.98c19.04-18.5 8.52-50.8-17.73-54.6zm-121.74 123.2l-18.12 17.62 4.28 24.88 19.52 113.45-102.13-53.59-22.38-11.74.03-317.19 51.03 103.29 11.18 22.63 25.01 3.64 114.23 16.63-82.65 80.38z"]
};
var faStarOfDavid = {
  prefix: 'fas',
  iconName: 'star-of-david',
  icon: [464, 512, [], "f69a", "M405.68 256l53.21-89.39C473.3 142.4 455.48 112 426.88 112H319.96l-55.95-93.98C256.86 6.01 244.43 0 232 0s-24.86 6.01-32.01 18.02L144.04 112H37.11c-28.6 0-46.42 30.4-32.01 54.61L58.32 256 5.1 345.39C-9.31 369.6 8.51 400 37.11 400h106.93l55.95 93.98C207.14 505.99 219.57 512 232 512s24.86-6.01 32.01-18.02L319.96 400h106.93c28.6 0 46.42-30.4 32.01-54.61L405.68 256zm-12.78-88l-19.8 33.26L353.3 168h39.6zm-52.39 88l-52.39 88H175.88l-52.39-88 52.38-88h112.25l52.39 88zM232 73.72L254.79 112h-45.57L232 73.72zM71.1 168h39.6l-19.8 33.26L71.1 168zm0 176l19.8-33.26L110.7 344H71.1zM232 438.28L209.21 400h45.57L232 438.28zM353.29 344l19.8-33.26L392.9 344h-39.61z"]
};
var faStarOfLife = {
  prefix: 'fas',
  iconName: 'star-of-life',
  icon: [480, 512, [], "f621", "M471.99 334.43L336.06 256l135.93-78.43c7.66-4.42 10.28-14.2 5.86-21.86l-32.02-55.43c-4.42-7.65-14.21-10.28-21.87-5.86l-135.93 78.43V16c0-8.84-7.17-16-16.01-16h-64.04c-8.84 0-16.01 7.16-16.01 16v156.86L56.04 94.43c-7.66-4.42-17.45-1.79-21.87 5.86L2.15 155.71c-4.42 7.65-1.8 17.44 5.86 21.86L143.94 256 8.01 334.43c-7.66 4.42-10.28 14.21-5.86 21.86l32.02 55.43c4.42 7.65 14.21 10.27 21.87 5.86l135.93-78.43V496c0 8.84 7.17 16 16.01 16h64.04c8.84 0 16.01-7.16 16.01-16V339.14l135.93 78.43c7.66 4.42 17.45 1.8 21.87-5.86l32.02-55.43c4.42-7.65 1.8-17.43-5.86-21.85z"]
};
var faStepBackward = {
  prefix: 'fas',
  iconName: 'step-backward',
  icon: [448, 512, [], "f048", "M64 468V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12v176.4l195.5-181C352.1 22.3 384 36.6 384 64v384c0 27.4-31.9 41.7-52.5 24.6L136 292.7V468c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12z"]
};
var faStepForward = {
  prefix: 'fas',
  iconName: 'step-forward',
  icon: [448, 512, [], "f051", "M384 44v424c0 6.6-5.4 12-12 12h-48c-6.6 0-12-5.4-12-12V291.6l-195.5 181C95.9 489.7 64 475.4 64 448V64c0-27.4 31.9-41.7 52.5-24.6L312 219.3V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12z"]
};
var faStethoscope = {
  prefix: 'fas',
  iconName: 'stethoscope',
  icon: [512, 512, [], "f0f1", "M447.1 112c-34.2.5-62.3 28.4-63 62.6-.5 24.3 12.5 45.6 32 56.8V344c0 57.3-50.2 104-112 104-60 0-109.2-44.1-111.9-99.2C265 333.8 320 269.2 320 192V36.6c0-11.4-8.1-21.3-19.3-23.5L237.8.5c-13-2.6-25.6 5.8-28.2 18.8L206.4 35c-2.6 13 5.8 25.6 18.8 28.2l30.7 6.1v121.4c0 52.9-42.2 96.7-95.1 97.2-53.4.5-96.9-42.7-96.9-96V69.4l30.7-6.1c13-2.6 21.4-15.2 18.8-28.2l-3.1-15.7C107.7 6.4 95.1-2 82.1.6L19.3 13C8.1 15.3 0 25.1 0 36.6V192c0 77.3 55.1 142 128.1 156.8C130.7 439.2 208.6 512 304 512c97 0 176-75.4 176-168V231.4c19.1-11.1 32-31.7 32-55.4 0-35.7-29.2-64.5-64.9-64zm.9 80c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"]
};
var faStickyNote = {
  prefix: 'fas',
  iconName: 'sticky-note',
  icon: [448, 512, [], "f249", "M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"]
};
var faStop = {
  prefix: 'fas',
  iconName: 'stop',
  icon: [448, 512, [], "f04d", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"]
};
var faStopCircle = {
  prefix: 'fas',
  iconName: 'stop-circle',
  icon: [512, 512, [], "f28d", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm96 328c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h160c8.8 0 16 7.2 16 16v160z"]
};
var faStopwatch = {
  prefix: 'fas',
  iconName: 'stopwatch',
  icon: [448, 512, [], "f2f2", "M432 304c0 114.9-93.1 208-208 208S16 418.9 16 304c0-104 76.3-190.2 176-205.5V64h-28c-6.6 0-12-5.4-12-12V12c0-6.6 5.4-12 12-12h120c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-28v34.5c37.5 5.8 71.7 21.6 99.7 44.6l27.5-27.5c4.7-4.7 12.3-4.7 17 0l28.3 28.3c4.7 4.7 4.7 12.3 0 17l-29.4 29.4-.6.6C419.7 223.3 432 262.2 432 304zm-176 36V188.5c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12V340c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"]
};
var faStopwatch20 = {
  prefix: 'fas',
  iconName: 'stopwatch-20',
  icon: [448, 512, [], "e06f", "M398.5,190.91l.59-.61,26.59-26.58a16,16,0,0,0,0-22.63L403,118.41a16,16,0,0,0-22.63,0l-24.68,24.68A206.68,206.68,0,0,0,256,98.5V64h32a16,16,0,0,0,16-16V16A16,16,0,0,0,288,0H160a16.05,16.05,0,0,0-16,16V48a16.05,16.05,0,0,0,16,16h32V98.5A207.92,207.92,0,0,0,16.09,297.57C12.64,411.5,106.76,510.22,220.72,512,337.13,513.77,432,420,432,304A206,206,0,0,0,398.5,190.91ZM204.37,377.55a8.2,8.2,0,0,1,8.32,8.07v22.31a8.2,8.2,0,0,1-8.32,8.07H121.52a16.46,16.46,0,0,1-16.61-17.62c2.78-35.22,14.67-57.41,38.45-91.37,20.42-29.19,27.1-37.32,27.1-62.34,0-16.92-1.79-24.27-12.21-24.27-9.39,0-12.69,7.4-12.69,22.68v5.23a8.2,8.2,0,0,1-8.33,8.07h-24.9a8.2,8.2,0,0,1-8.33-8.07v-4.07c0-27.3,8.48-60.24,56.43-60.24,43,0,55.57,25.85,55.57,61,0,35.58-12.44,51.21-34.35,81.31-11.56,15-24.61,35.57-26.41,51.2ZM344,352.32c0,35.16-12.3,63.68-57.23,63.68C243.19,416,232,386.48,232,352.55V247.22c0-40.73,19.58-63.22,56.2-63.22C325,184,344,206.64,344,245.3ZM287.87,221.73c-9.41,0-13.23,7.5-13.23,20V357.68c0,13.11,3.59,20.59,13.23,20.59s13-8,13-21.27V241.06C300.89,229.79,297.88,221.73,287.87,221.73Z"]
};
var faStore = {
  prefix: 'fas',
  iconName: 'store',
  icon: [616, 512, [], "f54e", "M602 118.6L537.1 15C531.3 5.7 521 0 510 0H106C95 0 84.7 5.7 78.9 15L14 118.6c-33.5 53.5-3.8 127.9 58.8 136.4 4.5.6 9.1.9 13.7.9 29.6 0 55.8-13 73.8-33.1 18 20.1 44.3 33.1 73.8 33.1 29.6 0 55.8-13 73.8-33.1 18 20.1 44.3 33.1 73.8 33.1 29.6 0 55.8-13 73.8-33.1 18.1 20.1 44.3 33.1 73.8 33.1 4.7 0 9.2-.3 13.7-.9 62.8-8.4 92.6-82.8 59-136.4zM529.5 288c-10 0-19.9-1.5-29.5-3.8V384H116v-99.8c-9.6 2.2-19.5 3.8-29.5 3.8-6 0-12.1-.4-18-1.2-5.6-.8-11.1-2.1-16.4-3.6V480c0 17.7 14.3 32 32 32h448c17.7 0 32-14.3 32-32V283.2c-5.4 1.6-10.8 2.9-16.4 3.6-6.1.8-12.1 1.2-18.2 1.2z"]
};
var faStoreAlt = {
  prefix: 'fas',
  iconName: 'store-alt',
  icon: [640, 512, [], "f54f", "M320 384H128V224H64v256c0 17.7 14.3 32 32 32h256c17.7 0 32-14.3 32-32V224h-64v160zm314.6-241.8l-85.3-128c-6-8.9-16-14.2-26.7-14.2H117.4c-10.7 0-20.7 5.3-26.6 14.2l-85.3 128c-14.2 21.3 1 49.8 26.6 49.8H608c25.5 0 40.7-28.5 26.6-49.8zM512 496c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V224h-64v272z"]
};
var faStoreAltSlash = {
  prefix: 'fas',
  iconName: 'store-alt-slash',
  icon: [640, 512, [], "e070", "M17.89,123.62,5.51,142.2c-14.2,21.3,1,49.8,26.59,49.8h74.26ZM576,413.42V224H512V364L384,265V224H330.92l-41.4-32H608c25.5,0,40.7-28.5,26.59-49.8l-85.29-128A32.18,32.18,0,0,0,522.6,0H117.42A31.87,31.87,0,0,0,90.81,14.2l-10.66,16L45.46,3.38A16,16,0,0,0,23,6.19L3.37,31.46A16,16,0,0,0,6.18,53.91L594.53,508.63A16,16,0,0,0,617,505.81l19.64-25.26a16,16,0,0,0-2.81-22.45ZM320,384H128V224H64V480a32,32,0,0,0,32,32H352a32,32,0,0,0,32-32V406.59l-64-49.47Z"]
};
var faStoreSlash = {
  prefix: 'fas',
  iconName: 'store-slash',
  icon: [640, 512, [], "e071", "M121.51,384V284.2a119.43,119.43,0,0,1-28,3.8,123.46,123.46,0,0,1-17.1-1.2,114.88,114.88,0,0,1-15.58-3.6V480c0,17.7,13.59,32,30.4,32H505.75L348.42,384Zm-28-128.09c25.1,0,47.29-10.72,64-27.24L24,120.05c-30.52,53.39-2.45,126.53,56.49,135A95.68,95.68,0,0,0,93.48,255.91ZM602.13,458.09,547.2,413.41V283.2a93.5,93.5,0,0,1-15.57,3.6,127.31,127.31,0,0,1-17.29,1.2,114.89,114.89,0,0,1-28-3.8v79.68L348.52,251.77a88.06,88.06,0,0,0,25.41,4.14c28.11,0,53-13,70.11-33.11,17.19,20.11,42.08,33.11,70.11,33.11a94.31,94.31,0,0,0,13-.91c59.66-8.41,88-82.8,56.06-136.4L521.55,15A30.1,30.1,0,0,0,495.81,0H112A30.11,30.11,0,0,0,86.27,15L76.88,30.78,43.19,3.38A14.68,14.68,0,0,0,21.86,6.19L3.2,31.45A16.58,16.58,0,0,0,5.87,53.91L564.81,508.63a14.69,14.69,0,0,0,21.33-2.82l18.66-25.26A16.58,16.58,0,0,0,602.13,458.09Z"]
};
var faStream = {
  prefix: 'fas',
  iconName: 'stream',
  icon: [512, 512, [], "f550", "M16 128h416c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H16C7.16 32 0 39.16 0 48v64c0 8.84 7.16 16 16 16zm480 80H80c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm-64 176H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16z"]
};
var faStreetView = {
  prefix: 'fas',
  iconName: 'street-view',
  icon: [512, 512, [], "f21d", "M367.9 329.76c-4.62 5.3-9.78 10.1-15.9 13.65v22.94c66.52 9.34 112 28.05 112 49.65 0 30.93-93.12 56-208 56S48 446.93 48 416c0-21.6 45.48-40.3 112-49.65v-22.94c-6.12-3.55-11.28-8.35-15.9-13.65C58.87 345.34 0 378.05 0 416c0 53.02 114.62 96 256 96s256-42.98 256-96c0-37.95-58.87-70.66-144.1-86.24zM256 128c35.35 0 64-28.65 64-64S291.35 0 256 0s-64 28.65-64 64 28.65 64 64 64zm-64 192v96c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-96c17.67 0 32-14.33 32-32v-96c0-26.51-21.49-48-48-48h-11.8c-11.07 5.03-23.26 8-36.2 8s-25.13-2.97-36.2-8H208c-26.51 0-48 21.49-48 48v96c0 17.67 14.33 32 32 32z"]
};
var faStrikethrough = {
  prefix: 'fas',
  iconName: 'strikethrough',
  icon: [512, 512, [], "f0cc", "M496 224H293.9l-87.17-26.83A43.55 43.55 0 0 1 219.55 112h66.79A49.89 49.89 0 0 1 331 139.58a16 16 0 0 0 21.46 7.15l42.94-21.47a16 16 0 0 0 7.16-21.46l-.53-1A128 128 0 0 0 287.51 32h-68a123.68 123.68 0 0 0-123 135.64c2 20.89 10.1 39.83 21.78 56.36H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h480a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-180.24 96A43 43 0 0 1 336 356.45 43.59 43.59 0 0 1 292.45 400h-66.79A49.89 49.89 0 0 1 181 372.42a16 16 0 0 0-21.46-7.15l-42.94 21.47a16 16 0 0 0-7.16 21.46l.53 1A128 128 0 0 0 224.49 480h68a123.68 123.68 0 0 0 123-135.64 114.25 114.25 0 0 0-5.34-24.36z"]
};
var faStroopwafel = {
  prefix: 'fas',
  iconName: 'stroopwafel',
  icon: [512, 512, [], "f551", "M188.12 210.74L142.86 256l45.25 45.25L233.37 256l-45.25-45.26zm113.13-22.62L256 142.86l-45.25 45.25L256 233.37l45.25-45.25zm-90.5 135.76L256 369.14l45.26-45.26L256 278.63l-45.25 45.25zM256 0C114.62 0 0 114.62 0 256s114.62 256 256 256 256-114.62 256-256S397.38 0 256 0zm186.68 295.6l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-28.29-28.29-45.25 45.25 33.94 33.94 16.97-16.97c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-16.97 16.97 16.97 16.97c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-16.97-16.97-16.97 16.97c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l16.97-16.97-33.94-33.94-45.26 45.26 28.29 28.29c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0L256 414.39l-28.29 28.29c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l28.29-28.29-45.25-45.26-33.94 33.94 16.97 16.97c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-16.97-16.97-16.97 16.97c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l16.97-16.97-16.97-16.97c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l16.97 16.97 33.94-33.94-45.25-45.25-28.29 28.29c-3.12 3.12-8.19 3.12-11.31 0L69.32 295.6c-3.12-3.12-3.12-8.19 0-11.31L97.61 256l-28.29-28.29c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l28.29 28.29 45.25-45.26-33.94-33.94-16.97 16.97c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l16.97-16.97-16.97-16.97c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l16.97 16.97 16.97-16.97c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-16.97 16.97 33.94 33.94 45.26-45.25-28.29-28.29c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0L256 97.61l28.29-28.29c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-28.29 28.29 45.26 45.25 33.94-33.94-16.97-16.97c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l16.97 16.97 16.97-16.97c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-16.97 16.97 16.97 16.97c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-16.97-16.97-33.94 33.94 45.25 45.26 28.29-28.29c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31L414.39 256l28.29 28.28a8.015 8.015 0 0 1 0 11.32zM278.63 256l45.26 45.25L369.14 256l-45.25-45.26L278.63 256z"]
};
var faSubscript = {
  prefix: 'fas',
  iconName: 'subscript',
  icon: [512, 512, [], "f12c", "M496 448h-16V304a16 16 0 0 0-16-16h-48a16 16 0 0 0-14.29 8.83l-16 32A16 16 0 0 0 400 352h16v96h-16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h96a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM336 64h-67a16 16 0 0 0-13.14 6.87l-79.9 115-79.9-115A16 16 0 0 0 83 64H16A16 16 0 0 0 0 80v48a16 16 0 0 0 16 16h33.48l77.81 112-77.81 112H16a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h67a16 16 0 0 0 13.14-6.87l79.9-115 79.9 115A16 16 0 0 0 269 448h67a16 16 0 0 0 16-16v-48a16 16 0 0 0-16-16h-33.48l-77.81-112 77.81-112H336a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16z"]
};
var faSubway = {
  prefix: 'fas',
  iconName: 'subway',
  icon: [448, 512, [], "f239", "M448 96v256c0 51.815-61.624 96-130.022 96l62.98 49.721C386.905 502.417 383.562 512 376 512H72c-7.578 0-10.892-9.594-4.957-14.279L130.022 448C61.82 448 0 403.954 0 352V96C0 42.981 64 0 128 0h192c65 0 128 42.981 128 96zM200 232V120c0-13.255-10.745-24-24-24H72c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h104c13.255 0 24-10.745 24-24zm200 0V120c0-13.255-10.745-24-24-24H272c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h104c13.255 0 24-10.745 24-24zm-48 56c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm-256 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"]
};
var faSuitcase = {
  prefix: 'fas',
  iconName: 'suitcase',
  icon: [512, 512, [], "f0f2", "M128 480h256V80c0-26.5-21.5-48-48-48H176c-26.5 0-48 21.5-48 48v400zm64-384h128v32H192V96zm320 80v256c0 26.5-21.5 48-48 48h-48V128h48c26.5 0 48 21.5 48 48zM96 480H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h48v352z"]
};
var faSuitcaseRolling = {
  prefix: 'fas',
  iconName: 'suitcase-rolling',
  icon: [384, 512, [], "f5c1", "M336 160H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h16v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16h128v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16h16c26.51 0 48-21.49 48-48V208c0-26.51-21.49-48-48-48zm-16 216c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h240c4.42 0 8 3.58 8 8v16zm0-96c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h240c4.42 0 8 3.58 8 8v16zM144 48h96v80h48V48c0-26.51-21.49-48-48-48h-96c-26.51 0-48 21.49-48 48v80h48V48z"]
};
var faSun = {
  prefix: 'fas',
  iconName: 'sun',
  icon: [512, 512, [], "f185", "M256 160c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm246.4 80.5l-94.7-47.3 33.5-100.4c4.5-13.6-8.4-26.5-21.9-21.9l-100.4 33.5-47.4-94.8c-6.4-12.8-24.6-12.8-31 0l-47.3 94.7L92.7 70.8c-13.6-4.5-26.5 8.4-21.9 21.9l33.5 100.4-94.7 47.4c-12.8 6.4-12.8 24.6 0 31l94.7 47.3-33.5 100.5c-4.5 13.6 8.4 26.5 21.9 21.9l100.4-33.5 47.3 94.7c6.4 12.8 24.6 12.8 31 0l47.3-94.7 100.4 33.5c13.6 4.5 26.5-8.4 21.9-21.9l-33.5-100.4 94.7-47.3c13-6.5 13-24.7.2-31.1zm-155.9 106c-49.9 49.9-131.1 49.9-181 0-49.9-49.9-49.9-131.1 0-181 49.9-49.9 131.1-49.9 181 0 49.9 49.9 49.9 131.1 0 181z"]
};
var faSuperscript = {
  prefix: 'fas',
  iconName: 'superscript',
  icon: [512, 512, [], "f12b", "M496 160h-16V16a16 16 0 0 0-16-16h-48a16 16 0 0 0-14.29 8.83l-16 32A16 16 0 0 0 400 64h16v96h-16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h96a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM336 64h-67a16 16 0 0 0-13.14 6.87l-79.9 115-79.9-115A16 16 0 0 0 83 64H16A16 16 0 0 0 0 80v48a16 16 0 0 0 16 16h33.48l77.81 112-77.81 112H16a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h67a16 16 0 0 0 13.14-6.87l79.9-115 79.9 115A16 16 0 0 0 269 448h67a16 16 0 0 0 16-16v-48a16 16 0 0 0-16-16h-33.48l-77.81-112 77.81-112H336a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16z"]
};
var faSurprise = {
  prefix: 'fas',
  iconName: 'surprise',
  icon: [496, 512, [], "f5c2", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM136 208c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm112 208c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm80-176c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]
};
var faSwatchbook = {
  prefix: 'fas',
  iconName: 'swatchbook',
  icon: [512, 512, [], "f5c3", "M434.66,167.71h0L344.5,77.36a31.83,31.83,0,0,0-45-.07h0l-.07.07L224,152.88V424L434.66,212.9A32,32,0,0,0,434.66,167.71ZM480,320H373.09L186.68,506.51c-2.06,2.07-4.5,3.58-6.68,5.49H480a32,32,0,0,0,32-32V352A32,32,0,0,0,480,320ZM192,32A32,32,0,0,0,160,0H32A32,32,0,0,0,0,32V416a96,96,0,0,0,192,0ZM96,440a24,24,0,1,1,24-24A24,24,0,0,1,96,440Zm32-184H64V192h64Zm0-128H64V64h64Z"]
};
var faSwimmer = {
  prefix: 'fas',
  iconName: 'swimmer',
  icon: [640, 512, [], "f5c4", "M189.61 310.58c3.54 3.26 15.27 9.42 34.39 9.42s30.86-6.16 34.39-9.42c16.02-14.77 34.5-22.58 53.46-22.58h16.3c18.96 0 37.45 7.81 53.46 22.58 3.54 3.26 15.27 9.42 34.39 9.42s30.86-6.16 34.39-9.42c14.86-13.71 31.88-21.12 49.39-22.16l-112.84-80.6 18-12.86c3.64-2.58 8.28-3.52 12.62-2.61l100.35 21.53c25.91 5.53 51.44-10.97 57-36.88 5.55-25.92-10.95-51.44-36.88-57L437.68 98.47c-30.73-6.58-63.02.12-88.56 18.38l-80.02 57.17c-10.38 7.39-19.36 16.44-26.72 26.94L173.75 299c5.47 3.23 10.82 6.93 15.86 11.58zM624 352h-16c-26.04 0-45.8-8.42-56.09-17.9-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C461.8 343.58 442.04 352 416 352s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C269.8 343.58 250.04 352 224 352s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C77.8 343.58 58.04 352 32 352H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16c38.62 0 72.72-12.19 96-31.84 23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84h16c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-512-96c44.18 0 80-35.82 80-80s-35.82-80-80-80-80 35.82-80 80 35.82 80 80 80z"]
};
var faSwimmingPool = {
  prefix: 'fas',
  iconName: 'swimming-pool',
  icon: [640, 512, [], "f5c5", "M624 416h-16c-26.04 0-45.8-8.42-56.09-17.9-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C461.8 407.58 442.04 416 416 416s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C269.8 407.58 250.04 416 224 416s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C77.8 407.58 58.04 416 32 416H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16c38.62 0 72.72-12.19 96-31.84 23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84h16c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-400-32v-96h192v96c19.12 0 30.86-6.16 34.39-9.42 9.17-8.46 19.2-14.34 29.61-18.07V128c0-17.64 14.36-32 32-32s32 14.36 32 32v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16c0-52.94-43.06-96-96-96s-96 43.06-96 96v96H224v-96c0-17.64 14.36-32 32-32s32 14.36 32 32v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16c0-52.94-43.06-96-96-96s-96 43.06-96 96v228.5c10.41 3.73 20.44 9.62 29.61 18.07 3.53 3.27 15.27 9.43 34.39 9.43z"]
};
var faSynagogue = {
  prefix: 'fas',
  iconName: 'synagogue',
  icon: [640, 512, [], "f69b", "M70 196.51L6.67 268.29A26.643 26.643 0 0 0 0 285.93V512h128V239.58l-38-43.07c-5.31-6.01-14.69-6.01-20 0zm563.33 71.78L570 196.51c-5.31-6.02-14.69-6.02-20 0l-38 43.07V512h128V285.93c0-6.5-2.37-12.77-6.67-17.64zM339.99 7.01c-11.69-9.35-28.29-9.35-39.98 0l-128 102.4A32.005 32.005 0 0 0 160 134.4V512h96v-92.57c0-31.88 21.78-61.43 53.25-66.55C349.34 346.35 384 377.13 384 416v96h96V134.4c0-9.72-4.42-18.92-12.01-24.99l-128-102.4zm52.07 215.55c1.98 3.15-.29 7.24-4 7.24h-38.94L324 269.79c-1.85 2.95-6.15 2.95-8 0l-25.12-39.98h-38.94c-3.72 0-5.98-4.09-4-7.24l19.2-30.56-19.2-30.56c-1.98-3.15.29-7.24 4-7.24h38.94l25.12-40c1.85-2.95 6.15-2.95 8 0l25.12 39.98h38.95c3.71 0 5.98 4.09 4 7.24L372.87 192l19.19 30.56z"]
};
var faSync = {
  prefix: 'fas',
  iconName: 'sync',
  icon: [512, 512, [], "f021", "M440.65 12.57l4 82.77A247.16 247.16 0 0 0 255.83 8C134.73 8 33.91 94.92 12.29 209.82A12 12 0 0 0 24.09 224h49.05a12 12 0 0 0 11.67-9.26 175.91 175.91 0 0 1 317-56.94l-101.46-4.86a12 12 0 0 0-12.57 12v47.41a12 12 0 0 0 12 12H500a12 12 0 0 0 12-12V12a12 12 0 0 0-12-12h-47.37a12 12 0 0 0-11.98 12.57zM255.83 432a175.61 175.61 0 0 1-146-77.8l101.8 4.87a12 12 0 0 0 12.57-12v-47.4a12 12 0 0 0-12-12H12a12 12 0 0 0-12 12V500a12 12 0 0 0 12 12h47.35a12 12 0 0 0 12-12.6l-4.15-82.57A247.17 247.17 0 0 0 255.83 504c121.11 0 221.93-86.92 243.55-201.82a12 12 0 0 0-11.8-14.18h-49.05a12 12 0 0 0-11.67 9.26A175.86 175.86 0 0 1 255.83 432z"]
};
var faSyncAlt = {
  prefix: 'fas',
  iconName: 'sync-alt',
  icon: [512, 512, [], "f2f1", "M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z"]
};
var faSyringe = {
  prefix: 'fas',
  iconName: 'syringe',
  icon: [512, 512, [], "f48e", "M201.5 174.8l55.7 55.8c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-55.7-55.8-45.3 45.3 55.8 55.8c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0L111 265.2l-26.4 26.4c-17.3 17.3-25.6 41.1-23 65.4l7.1 63.6L2.3 487c-3.1 3.1-3.1 8.2 0 11.3l11.3 11.3c3.1 3.1 8.2 3.1 11.3 0l66.3-66.3 63.6 7.1c23.9 2.6 47.9-5.4 65.4-23l181.9-181.9-135.7-135.7-64.9 65zm308.2-93.3L430.5 2.3c-3.1-3.1-8.2-3.1-11.3 0l-11.3 11.3c-3.1 3.1-3.1 8.2 0 11.3l28.3 28.3-45.3 45.3-56.6-56.6-17-17c-3.1-3.1-8.2-3.1-11.3 0l-33.9 33.9c-3.1 3.1-3.1 8.2 0 11.3l17 17L424.8 223l17 17c3.1 3.1 8.2 3.1 11.3 0l33.9-34c3.1-3.1 3.1-8.2 0-11.3l-73.5-73.5 45.3-45.3 28.3 28.3c3.1 3.1 8.2 3.1 11.3 0l11.3-11.3c3.1-3.2 3.1-8.2 0-11.4z"]
};
var faTable = {
  prefix: 'fas',
  iconName: 'table',
  icon: [512, 512, [], "f0ce", "M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64v-96h160v96zm0-160H64v-96h160v96zm224 160H288v-96h160v96zm0-160H288v-96h160v96z"]
};
var faTableTennis = {
  prefix: 'fas',
  iconName: 'table-tennis',
  icon: [512, 512, [], "f45d", "M496.2 296.5C527.7 218.7 512 126.2 449 63.1 365.1-21 229-21 145.1 63.1l-56 56.1 211.5 211.5c46.1-62.1 131.5-77.4 195.6-34.2zm-217.9 79.7L57.9 155.9c-27.3 45.3-21.7 105 17.3 144.1l34.5 34.6L6.7 424c-8.6 7.5-9.1 20.7-1 28.8l53.4 53.5c8 8.1 21.2 7.6 28.7-1L177.1 402l35.7 35.7c19.7 19.7 44.6 30.5 70.3 33.3-7.1-17-11-35.6-11-55.1-.1-13.8 2.5-27 6.2-39.7zM416 320c-53 0-96 43-96 96s43 96 96 96 96-43 96-96-43-96-96-96z"]
};
var faTablet = {
  prefix: 'fas',
  iconName: 'tablet',
  icon: [448, 512, [], "f10a", "M400 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM224 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]
};
var faTabletAlt = {
  prefix: 'fas',
  iconName: 'tablet-alt',
  icon: [448, 512, [], "f3fa", "M400 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM224 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm176-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h328c6.6 0 12 5.4 12 12v312z"]
};
var faTablets = {
  prefix: 'fas',
  iconName: 'tablets',
  icon: [640, 512, [], "f490", "M160 192C78.9 192 12.5 250.5.1 326.7c-.8 4.8 3.3 9.3 8.3 9.3h303.3c5 0 9.1-4.5 8.3-9.3C307.5 250.5 241.1 192 160 192zm151.6 176H8.4c-5 0-9.1 4.5-8.3 9.3C12.5 453.5 78.9 512 160 512s147.5-58.5 159.9-134.7c.8-4.8-3.3-9.3-8.3-9.3zM593.4 46.6c-56.5-56.5-144.2-61.4-206.9-16-4 2.9-4.3 8.9-.8 12.3L597 254.3c3.5 3.5 9.5 3.2 12.3-.8 45.5-62.7 40.6-150.4-15.9-206.9zM363 65.7c-3.5-3.5-9.5-3.2-12.3.8-45.4 62.7-40.5 150.4 15.9 206.9 56.5 56.5 144.2 61.4 206.9 15.9 4-2.9 4.3-8.9.8-12.3L363 65.7z"]
};
var faTachometerAlt = {
  prefix: 'fas',
  iconName: 'tachometer-alt',
  icon: [576, 512, [], "f3fd", "M288 32C128.94 32 0 160.94 0 320c0 52.8 14.25 102.26 39.06 144.8 5.61 9.62 16.3 15.2 27.44 15.2h443c11.14 0 21.83-5.58 27.44-15.2C561.75 422.26 576 372.8 576 320c0-159.06-128.94-288-288-288zm0 64c14.71 0 26.58 10.13 30.32 23.65-1.11 2.26-2.64 4.23-3.45 6.67l-9.22 27.67c-5.13 3.49-10.97 6.01-17.64 6.01-17.67 0-32-14.33-32-32S270.33 96 288 96zM96 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm48-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm246.77-72.41l-61.33 184C343.13 347.33 352 364.54 352 384c0 11.72-3.38 22.55-8.88 32H232.88c-5.5-9.45-8.88-20.28-8.88-32 0-33.94 26.5-61.43 59.9-63.59l61.34-184.01c4.17-12.56 17.73-19.45 30.36-15.17 12.57 4.19 19.35 17.79 15.17 30.36zm14.66 57.2l15.52-46.55c3.47-1.29 7.13-2.23 11.05-2.23 17.67 0 32 14.33 32 32s-14.33 32-32 32c-11.38-.01-20.89-6.28-26.57-15.22zM480 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
};
var faTag = {
  prefix: 'fas',
  iconName: 'tag',
  icon: [512, 512, [], "f02b", "M0 252.118V48C0 21.49 21.49 0 48 0h204.118a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882L293.823 497.941c-18.745 18.745-49.137 18.745-67.882 0L14.059 286.059A48 48 0 0 1 0 252.118zM112 64c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"]
};
var faTags = {
  prefix: 'fas',
  iconName: 'tags',
  icon: [640, 512, [], "f02c", "M497.941 225.941L286.059 14.059A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v204.118a48 48 0 0 0 14.059 33.941l211.882 211.882c18.744 18.745 49.136 18.746 67.882 0l204.118-204.118c18.745-18.745 18.745-49.137 0-67.882zM112 160c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm513.941 133.823L421.823 497.941c-18.745 18.745-49.137 18.745-67.882 0l-.36-.36L527.64 323.522c16.999-16.999 26.36-39.6 26.36-63.64s-9.362-46.641-26.36-63.64L331.397 0h48.721a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882z"]
};
var faTape = {
  prefix: 'fas',
  iconName: 'tape',
  icon: [640, 512, [], "f4db", "M224 192c-35.3 0-64 28.7-64 64s28.7 64 64 64 64-28.7 64-64-28.7-64-64-64zm400 224H380.6c41.5-40.7 67.4-97.3 67.4-160 0-123.7-100.3-224-224-224S0 132.3 0 256s100.3 224 224 224h400c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400-64c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z"]
};
var faTasks = {
  prefix: 'fas',
  iconName: 'tasks',
  icon: [512, 512, [], "f0ae", "M139.61 35.5a12 12 0 0 0-17 0L58.93 98.81l-22.7-22.12a12 12 0 0 0-17 0L3.53 92.41a12 12 0 0 0 0 17l47.59 47.4a12.78 12.78 0 0 0 17.61 0l15.59-15.62L156.52 69a12.09 12.09 0 0 0 .09-17zm0 159.19a12 12 0 0 0-17 0l-63.68 63.72-22.7-22.1a12 12 0 0 0-17 0L3.53 252a12 12 0 0 0 0 17L51 316.5a12.77 12.77 0 0 0 17.6 0l15.7-15.69 72.2-72.22a12 12 0 0 0 .09-16.9zM64 368c-26.49 0-48.59 21.5-48.59 48S37.53 464 64 464a48 48 0 0 0 0-96zm432 16H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
};
var faTaxi = {
  prefix: 'fas',
  iconName: 'taxi',
  icon: [512, 512, [], "f1ba", "M462 241.64l-22-84.84c-9.6-35.2-41.6-60.8-76.8-60.8H352V64c0-17.67-14.33-32-32-32H192c-17.67 0-32 14.33-32 32v32h-11.2c-35.2 0-67.2 25.6-76.8 60.8l-22 84.84C21.41 248.04 0 273.47 0 304v48c0 23.63 12.95 44.04 32 55.12V448c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-40.88c19.05-11.09 32-31.5 32-55.12v-48c0-30.53-21.41-55.96-50-62.36zM96 352c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm20.55-112l17.2-66.36c2.23-8.16 9.59-13.64 15.06-13.64h214.4c5.47 0 12.83 5.48 14.85 12.86L395.45 240h-278.9zM416 352c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
};
var faTeeth = {
  prefix: 'fas',
  iconName: 'teeth',
  icon: [640, 512, [], "f62e", "M544 0H96C42.98 0 0 42.98 0 96v320c0 53.02 42.98 96 96 96h448c53.02 0 96-42.98 96-96V96c0-53.02-42.98-96-96-96zM160 368c0 26.51-21.49 48-48 48s-48-21.49-48-48v-64c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v64zm0-128c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-64c0-26.51 21.49-48 48-48s48 21.49 48 48v64zm144 120c0 30.93-25.07 56-56 56s-56-25.07-56-56v-56c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v56zm0-120c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-88c0-30.93 25.07-56 56-56s56 25.07 56 56v88zm144 120c0 30.93-25.07 56-56 56s-56-25.07-56-56v-56c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v56zm0-120c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-88c0-30.93 25.07-56 56-56s56 25.07 56 56v88zm128 128c0 26.51-21.49 48-48 48s-48-21.49-48-48v-64c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v64zm0-128c0 8.84-7.16 16-16 16h-64c-8.84 0-16-7.16-16-16v-64c0-26.51 21.49-48 48-48s48 21.49 48 48v64z"]
};
var faTeethOpen = {
  prefix: 'fas',
  iconName: 'teeth-open',
  icon: [640, 512, [], "f62f", "M544 0H96C42.98 0 0 42.98 0 96v64c0 35.35 28.66 64 64 64h512c35.34 0 64-28.65 64-64V96c0-53.02-42.98-96-96-96zM160 176c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-32c0-26.51 21.49-48 48-48s48 21.49 48 48v32zm144 0c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-56c0-30.93 25.07-56 56-56s56 25.07 56 56v56zm144 0c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-56c0-30.93 25.07-56 56-56s56 25.07 56 56v56zm128 0c0 8.84-7.16 16-16 16h-64c-8.84 0-16-7.16-16-16v-32c0-26.51 21.49-48 48-48s48 21.49 48 48v32zm0 144H64c-35.34 0-64 28.65-64 64v32c0 53.02 42.98 96 96 96h448c53.02 0 96-42.98 96-96v-32c0-35.35-28.66-64-64-64zm-416 80c0 26.51-21.49 48-48 48s-48-21.49-48-48v-32c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v32zm144-8c0 30.93-25.07 56-56 56s-56-25.07-56-56v-24c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v24zm144 0c0 30.93-25.07 56-56 56s-56-25.07-56-56v-24c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v24zm128 8c0 26.51-21.49 48-48 48s-48-21.49-48-48v-32c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v32z"]
};
var faTemperatureHigh = {
  prefix: 'fas',
  iconName: 'temperature-high',
  icon: [512, 512, [], "f769", "M416 0c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm-160-16C256 50.1 205.9 0 144 0S32 50.1 32 112v166.5C12.3 303.2 0 334 0 368c0 79.5 64.5 144 144 144s144-64.5 144-144c0-34-12.3-64.9-32-89.5V112zM144 448c-44.1 0-80-35.9-80-80 0-25.5 12.2-48.9 32-63.8V112c0-26.5 21.5-48 48-48s48 21.5 48 48v192.2c19.8 14.8 32 38.3 32 63.8 0 44.1-35.9 80-80 80zm16-125.1V112c0-8.8-7.2-16-16-16s-16 7.2-16 16v210.9c-18.6 6.6-32 24.2-32 45.1 0 26.5 21.5 48 48 48s48-21.5 48-48c0-20.9-13.4-38.5-32-45.1z"]
};
var faTemperatureLow = {
  prefix: 'fas',
  iconName: 'temperature-low',
  icon: [512, 512, [], "f76b", "M416 0c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm-160-16C256 50.1 205.9 0 144 0S32 50.1 32 112v166.5C12.3 303.2 0 334 0 368c0 79.5 64.5 144 144 144s144-64.5 144-144c0-34-12.3-64.9-32-89.5V112zM144 448c-44.1 0-80-35.9-80-80 0-25.5 12.2-48.9 32-63.8V112c0-26.5 21.5-48 48-48s48 21.5 48 48v192.2c19.8 14.8 32 38.3 32 63.8 0 44.1-35.9 80-80 80zm16-125.1V304c0-8.8-7.2-16-16-16s-16 7.2-16 16v18.9c-18.6 6.6-32 24.2-32 45.1 0 26.5 21.5 48 48 48s48-21.5 48-48c0-20.9-13.4-38.5-32-45.1z"]
};
var faTenge = {
  prefix: 'fas',
  iconName: 'tenge',
  icon: [384, 512, [], "f7d7", "M372 160H12c-6.6 0-12 5.4-12 12v56c0 6.6 5.4 12 12 12h140v228c0 6.6 5.4 12 12 12h56c6.6 0 12-5.4 12-12V240h140c6.6 0 12-5.4 12-12v-56c0-6.6-5.4-12-12-12zm0-128H12C5.4 32 0 37.4 0 44v56c0 6.6 5.4 12 12 12h360c6.6 0 12-5.4 12-12V44c0-6.6-5.4-12-12-12z"]
};
var faTerminal = {
  prefix: 'fas',
  iconName: 'terminal',
  icon: [640, 512, [], "f120", "M257.981 272.971L63.638 467.314c-9.373 9.373-24.569 9.373-33.941 0L7.029 444.647c-9.357-9.357-9.375-24.522-.04-33.901L161.011 256 6.99 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L257.981 239.03c9.373 9.372 9.373 24.568 0 33.941zM640 456v-32c0-13.255-10.745-24-24-24H312c-13.255 0-24 10.745-24 24v32c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24z"]
};
var faTextHeight = {
  prefix: 'fas',
  iconName: 'text-height',
  icon: [576, 512, [], "f034", "M304 32H16A16 16 0 0 0 0 48v96a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32h56v304H80a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-40V112h56v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zm256 336h-48V144h48c14.31 0 21.33-17.31 11.31-27.31l-80-80a16 16 0 0 0-22.62 0l-80 80C379.36 126 384.36 144 400 144h48v224h-48c-14.31 0-21.32 17.31-11.31 27.31l80 80a16 16 0 0 0 22.62 0l80-80C580.64 386 575.64 368 560 368z"]
};
var faTextWidth = {
  prefix: 'fas',
  iconName: 'text-width',
  icon: [448, 512, [], "f035", "M432 32H16A16 16 0 0 0 0 48v80a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-16h120v112h-24a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-24V112h120v16a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zm-68.69 260.69C354 283.36 336 288.36 336 304v48H112v-48c0-14.31-17.31-21.32-27.31-11.31l-80 80a16 16 0 0 0 0 22.62l80 80C94 484.64 112 479.64 112 464v-48h224v48c0 14.31 17.31 21.33 27.31 11.31l80-80a16 16 0 0 0 0-22.62z"]
};
var faTh = {
  prefix: 'fas',
  iconName: 'th',
  icon: [512, 512, [], "f00a", "M149.333 56v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zm181.334 240v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm32-240v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24zm-32 80V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm-205.334 56H24c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm386.667-56H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm0 160H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zM181.333 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24z"]
};
var faThLarge = {
  prefix: 'fas',
  iconName: 'th-large',
  icon: [512, 512, [], "f009", "M296 32h192c13.255 0 24 10.745 24 24v160c0 13.255-10.745 24-24 24H296c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24zm-80 0H24C10.745 32 0 42.745 0 56v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24zM0 296v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm296 184h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H296c-13.255 0-24 10.745-24 24v160c0 13.255 10.745 24 24 24z"]
};
var faThList = {
  prefix: 'fas',
  iconName: 'th-list',
  icon: [512, 512, [], "f00b", "M149.333 216v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-80c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zM125.333 32H24C10.745 32 0 42.745 0 56v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24zm80 448H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm-24-424v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24zm24 264H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24z"]
};
var faTheaterMasks = {
  prefix: 'fas',
  iconName: 'theater-masks',
  icon: [640, 512, [], "f630", "M206.86 245.15c-35.88 10.45-59.95 41.2-57.53 74.1 11.4-12.72 28.81-23.7 49.9-30.92l7.63-43.18zM95.81 295L64.08 115.49c-.29-1.62.28-2.62.24-2.65 57.76-32.06 123.12-49.01 189.01-49.01 1.61 0 3.23.17 4.85.19 13.95-13.47 31.73-22.83 51.59-26 18.89-3.02 38.05-4.55 57.18-5.32-9.99-13.95-24.48-24.23-41.77-27C301.27 1.89 277.24 0 253.32 0 176.66 0 101.02 19.42 33.2 57.06 9.03 70.48-3.92 98.48 1.05 126.58l31.73 179.51c14.23 80.52 136.33 142.08 204.45 142.08 3.59 0 6.75-.46 10.01-.8-13.52-17.08-28.94-40.48-39.5-67.58-47.61-12.98-106.06-51.62-111.93-84.79zm97.55-137.46c-.73-4.12-2.23-7.87-4.07-11.4-8.25 8.91-20.67 15.75-35.32 18.32-14.65 2.58-28.67.4-39.48-5.17-.52 3.94-.64 7.98.09 12.1 3.84 21.7 24.58 36.19 46.34 32.37 21.75-3.82 36.28-24.52 32.44-46.22zM606.8 120.9c-88.98-49.38-191.43-67.41-291.98-51.35-27.31 4.36-49.08 26.26-54.04 54.36l-31.73 179.51c-15.39 87.05 95.28 196.27 158.31 207.35 63.03 11.09 204.47-53.79 219.86-140.84l31.73-179.51c4.97-28.11-7.98-56.11-32.15-69.52zm-273.24 96.8c3.84-21.7 24.58-36.19 46.34-32.36 21.76 3.83 36.28 24.52 32.45 46.22-.73 4.12-2.23 7.87-4.07 11.4-8.25-8.91-20.67-15.75-35.32-18.32-14.65-2.58-28.67-.4-39.48 5.17-.53-3.95-.65-7.99.08-12.11zm70.47 198.76c-55.68-9.79-93.52-59.27-89.04-112.9 20.6 25.54 56.21 46.17 99.49 53.78 43.28 7.61 83.82.37 111.93-16.6-14.18 51.94-66.71 85.51-122.38 75.72zm130.3-151.34c-8.25-8.91-20.68-15.75-35.33-18.32-14.65-2.58-28.67-.4-39.48 5.17-.52-3.94-.64-7.98.09-12.1 3.84-21.7 24.58-36.19 46.34-32.37 21.75 3.83 36.28 24.52 32.45 46.22-.73 4.13-2.23 7.88-4.07 11.4z"]
};
var faThermometer = {
  prefix: 'fas',
  iconName: 'thermometer',
  icon: [512, 512, [], "f491", "M476.8 20.4c-37.5-30.7-95.5-26.3-131.9 10.2l-45.7 46 50.5 50.5c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-50.4-50.5-45.1 45.4 50.3 50.4c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0L209 167.4l-45.1 45.4L214 263c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-50.1-50.2L96 281.1V382L7 471c-9.4 9.4-9.4 24.6 0 33.9 9.4 9.4 24.6 9.4 33.9 0l89-89h99.9L484 162.6c34.9-34.9 42.2-101.5-7.2-142.2z"]
};
var faThermometerEmpty = {
  prefix: 'fas',
  iconName: 'thermometer-empty',
  icon: [256, 512, [], "f2cb", "M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-35.346 28.654-64 64-64s64 28.654 64 64zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"]
};
var faThermometerFull = {
  prefix: 'fas',
  iconName: 'thermometer-full',
  icon: [256, 512, [], "f2c7", "M224 96c0-53.019-42.981-96-96-96S32 42.981 32 96v203.347C12.225 321.756.166 351.136.002 383.333c-.359 70.303 56.787 128.176 127.089 128.664.299.002.61.003.909.003 70.698 0 128-57.304 128-128 0-32.459-12.088-62.09-32-84.653V96zm-96 368l-.576-.002c-43.86-.304-79.647-36.544-79.423-80.42.173-33.98 19.266-51.652 31.999-66.08V96c0-26.467 21.533-48 48-48s48 21.533 48 48v221.498c12.63 14.312 32 32.164 32 66.502 0 44.112-35.888 80-80 80zm64-80c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V96c0-17.673 14.327-32 32-32s32 14.327 32 32v232.583c19.124 11.068 32 31.732 32 55.417z"]
};
var faThermometerHalf = {
  prefix: 'fas',
  iconName: 'thermometer-half',
  icon: [256, 512, [], "f2c9", "M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V224c0-17.673 14.327-32 32-32s32 14.327 32 32v104.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"]
};
var faThermometerQuarter = {
  prefix: 'fas',
  iconName: 'thermometer-quarter',
  icon: [256, 512, [], "f2ca", "M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V288c0-17.673 14.327-32 32-32s32 14.327 32 32v40.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"]
};
var faThermometerThreeQuarters = {
  prefix: 'fas',
  iconName: 'thermometer-three-quarters',
  icon: [256, 512, [], "f2c8", "M192 384c0 35.346-28.654 64-64 64-35.346 0-64-28.654-64-64 0-23.685 12.876-44.349 32-55.417V160c0-17.673 14.327-32 32-32s32 14.327 32 32v168.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"]
};
var faThumbsDown = {
  prefix: 'fas',
  iconName: 'thumbs-down',
  icon: [512, 512, [], "f165", "M0 56v240c0 13.255 10.745 24 24 24h80c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56zm40 200c0-13.255 10.745-24 24-24s24 10.745 24 24-10.745 24-24 24-24-10.745-24-24zm272 256c-20.183 0-29.485-39.293-33.931-57.795-5.206-21.666-10.589-44.07-25.393-58.902-32.469-32.524-49.503-73.967-89.117-113.111a11.98 11.98 0 0 1-3.558-8.521V59.901c0-6.541 5.243-11.878 11.783-11.998 15.831-.29 36.694-9.079 52.651-16.178C256.189 17.598 295.709.017 343.995 0h2.844c42.777 0 93.363.413 113.774 29.737 8.392 12.057 10.446 27.034 6.148 44.632 16.312 17.053 25.063 48.863 16.382 74.757 17.544 23.432 19.143 56.132 9.308 79.469l.11.11c11.893 11.949 19.523 31.259 19.439 49.197-.156 30.352-26.157 58.098-59.553 58.098H350.723C358.03 364.34 384 388.132 384 430.548 384 504 336 512 312 512z"]
};
var faThumbsUp = {
  prefix: 'fas',
  iconName: 'thumbs-up',
  icon: [512, 512, [], "f164", "M104 224H24c-13.255 0-24 10.745-24 24v240c0 13.255 10.745 24 24 24h80c13.255 0 24-10.745 24-24V248c0-13.255-10.745-24-24-24zM64 472c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zM384 81.452c0 42.416-25.97 66.208-33.277 94.548h101.723c33.397 0 59.397 27.746 59.553 58.098.084 17.938-7.546 37.249-19.439 49.197l-.11.11c9.836 23.337 8.237 56.037-9.308 79.469 8.681 25.895-.069 57.704-16.382 74.757 4.298 17.598 2.244 32.575-6.148 44.632C440.202 511.587 389.616 512 346.839 512l-2.845-.001c-48.287-.017-87.806-17.598-119.56-31.725-15.957-7.099-36.821-15.887-52.651-16.178-6.54-.12-11.783-5.457-11.783-11.998v-213.77c0-3.2 1.282-6.271 3.558-8.521 39.614-39.144 56.648-80.587 89.117-113.111 14.804-14.832 20.188-37.236 25.393-58.902C282.515 39.293 291.817 0 312 0c24 0 72 8 72 81.452z"]
};
var faThumbtack = {
  prefix: 'fas',
  iconName: 'thumbtack',
  icon: [384, 512, [], "f08d", "M298.028 214.267L285.793 96H328c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v48c0 13.255 10.745 24 24 24h42.207L85.972 214.267C37.465 236.82 0 277.261 0 328c0 13.255 10.745 24 24 24h136v104.007c0 1.242.289 2.467.845 3.578l24 48c2.941 5.882 11.364 5.893 14.311 0l24-48a8.008 8.008 0 0 0 .845-3.578V352h136c13.255 0 24-10.745 24-24-.001-51.183-37.983-91.42-85.973-113.733z"]
};
var faTicketAlt = {
  prefix: 'fas',
  iconName: 'ticket-alt',
  icon: [576, 512, [], "f3ff", "M128 160h320v192H128V160zm400 96c0 26.51 21.49 48 48 48v96c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48v-96c26.51 0 48-21.49 48-48s-21.49-48-48-48v-96c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v96c-26.51 0-48 21.49-48 48zm-48-104c0-13.255-10.745-24-24-24H120c-13.255 0-24 10.745-24 24v208c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V152z"]
};
var faTimes = {
  prefix: 'fas',
  iconName: 'times',
  icon: [352, 512, [], "f00d", "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"]
};
var faTimesCircle = {
  prefix: 'fas',
  iconName: 'times-circle',
  icon: [512, 512, [], "f057", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"]
};
var faTint = {
  prefix: 'fas',
  iconName: 'tint',
  icon: [352, 512, [], "f043", "M205.22 22.09c-7.94-28.78-49.44-30.12-58.44 0C100.01 179.85 0 222.72 0 333.91 0 432.35 78.72 512 176 512s176-79.65 176-178.09c0-111.75-99.79-153.34-146.78-311.82zM176 448c-61.75 0-112-50.25-112-112 0-8.84 7.16-16 16-16s16 7.16 16 16c0 44.11 35.89 80 80 80 8.84 0 16 7.16 16 16s-7.16 16-16 16z"]
};
var faTintSlash = {
  prefix: 'fas',
  iconName: 'tint-slash',
  icon: [640, 512, [], "f5c7", "M633.82 458.1L494.97 350.78c.52-5.57 1.03-11.16 1.03-16.87 0-111.76-99.79-153.34-146.78-311.82-7.94-28.78-49.44-30.12-58.44 0-15.52 52.34-36.87 91.96-58.49 125.68L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.36 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.41-6.97 4.16-17.02-2.82-22.45zM144 333.91C144 432.35 222.72 512 320 512c44.71 0 85.37-16.96 116.4-44.7L162.72 255.78c-11.41 23.5-18.72 48.35-18.72 78.13z"]
};
var faTired = {
  prefix: 'fas',
  iconName: 'tired',
  icon: [496, 512, [], "f5c8", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm33.8 189.7l80-48c11.6-6.9 24 7.7 15.4 18L343.6 208l33.6 40.3c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.7-4.7-7.7-15.9 0-20.6zm-163-30c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.8 4.7 7.8 15.9 0 20.6l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3zM248 288c51.9 0 115.3 43.8 123.2 106.7 1.7 13.6-8 24.6-17.7 20.4-25.9-11.1-64.4-17.4-105.5-17.4s-79.6 6.3-105.5 17.4c-9.8 4.2-19.4-7-17.7-20.4C132.7 331.8 196.1 288 248 288z"]
};
var faToggleOff = {
  prefix: 'fas',
  iconName: 'toggle-off',
  icon: [576, 512, [], "f204", "M384 64H192C85.961 64 0 149.961 0 256s85.961 192 192 192h192c106.039 0 192-85.961 192-192S490.039 64 384 64zM64 256c0-70.741 57.249-128 128-128 70.741 0 128 57.249 128 128 0 70.741-57.249 128-128 128-70.741 0-128-57.249-128-128zm320 128h-48.905c65.217-72.858 65.236-183.12 0-256H384c70.741 0 128 57.249 128 128 0 70.74-57.249 128-128 128z"]
};
var faToggleOn = {
  prefix: 'fas',
  iconName: 'toggle-on',
  icon: [576, 512, [], "f205", "M384 64H192C86 64 0 150 0 256s86 192 192 192h192c106 0 192-86 192-192S490 64 384 64zm0 320c-70.8 0-128-57.3-128-128 0-70.8 57.3-128 128-128 70.8 0 128 57.3 128 128 0 70.8-57.3 128-128 128z"]
};
var faToilet = {
  prefix: 'fas',
  iconName: 'toilet',
  icon: [384, 512, [], "f7d8", "M368 48c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16H16C7.2 0 0 7.2 0 16v16c0 8.8 7.2 16 16 16h16v156.7C11.8 214.8 0 226.9 0 240c0 67.2 34.6 126.2 86.8 160.5l-21.4 70.2C59.1 491.2 74.5 512 96 512h192c21.5 0 36.9-20.8 30.6-41.3l-21.4-70.2C349.4 366.2 384 307.2 384 240c0-13.1-11.8-25.2-32-35.3V48h16zM80 72c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H88c-4.4 0-8-3.6-8-8V72zm112 200c-77.1 0-139.6-14.3-139.6-32s62.5-32 139.6-32 139.6 14.3 139.6 32-62.5 32-139.6 32z"]
};
var faToiletPaper = {
  prefix: 'fas',
  iconName: 'toilet-paper',
  icon: [576, 512, [], "f71e", "M128 0C74.98 0 32 85.96 32 192v172.07c0 41.12-9.8 62.77-31.17 126.87C-2.62 501.3 5.09 512 16.01 512h280.92c13.77 0 26-8.81 30.36-21.88 12.83-38.48 24.71-72.4 24.71-126.05V192c0-83.6 23.67-153.52 60.44-192H128zM96 224c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm64 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm64 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm64 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zM480 0c-53.02 0-96 85.96-96 192s42.98 192 96 192 96-85.96 96-192S533.02 0 480 0zm0 256c-17.67 0-32-28.65-32-64s14.33-64 32-64 32 28.65 32 64-14.33 64-32 64z"]
};
var faToiletPaperSlash = {
  prefix: 'fas',
  iconName: 'toilet-paper-slash',
  icon: [640, 512, [], "e072", "M64,192V364.13c0,41.12-9.75,62.75-31.12,126.87A16,16,0,0,0,48,512H328.86a31.87,31.87,0,0,0,30.38-21.87c9.31-27.83,18-53.35,22.18-85.55l-316-244.25C64.53,170.66,64,181.19,64,192ZM633.82,458.09l-102-78.81C575.28,360.91,608,284.32,608,192,608,86,565,0,512,0s-96,86-96,192c0,42,7,80.4,18.43,112L384,265V192c0-83.62,23.63-153.5,60.5-192H160c-23.33,0-44.63,16.83-61.26,44.53L45.46,3.38A16,16,0,0,0,23,6.19L3.37,31.45A16,16,0,0,0,6.18,53.91L594.54,508.63A16,16,0,0,0,617,505.81l19.64-25.26A16,16,0,0,0,633.82,458.09ZM512,256c-17.63,0-32-28.62-32-64s14.37-64,32-64,32,28.63,32,64S529.62,256,512,256Z"]
};
var faToolbox = {
  prefix: 'fas',
  iconName: 'toolbox',
  icon: [512, 512, [], "f552", "M502.63 214.63l-45.25-45.25c-6-6-14.14-9.37-22.63-9.37H384V80c0-26.51-21.49-48-48-48H176c-26.51 0-48 21.49-48 48v80H77.25c-8.49 0-16.62 3.37-22.63 9.37L9.37 214.63c-6 6-9.37 14.14-9.37 22.63V320h128v-16c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v16h128v-16c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v16h128v-82.75c0-8.48-3.37-16.62-9.37-22.62zM320 160H192V96h128v64zm64 208c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-16H192v16c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-16H0v96c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-96H384v16z"]
};
var faTools = {
  prefix: 'fas',
  iconName: 'tools',
  icon: [512, 512, [], "f7d9", "M501.1 395.7L384 278.6c-23.1-23.1-57.6-27.6-85.4-13.9L192 158.1V96L64 0 0 64l96 128h62.1l106.6 106.6c-13.6 27.8-9.2 62.3 13.9 85.4l117.1 117.1c14.6 14.6 38.2 14.6 52.7 0l52.7-52.7c14.5-14.6 14.5-38.2 0-52.7zM331.7 225c28.3 0 54.9 11 74.9 31l19.4 19.4c15.8-6.9 30.8-16.5 43.8-29.5 37.1-37.1 49.7-89.3 37.9-136.7-2.2-9-13.5-12.1-20.1-5.5l-74.4 74.4-67.9-11.3L334 98.9l74.4-74.4c6.6-6.6 3.4-17.9-5.7-20.2-47.4-11.7-99.6.9-136.6 37.9-28.5 28.5-41.9 66.1-41.2 103.6l82.1 82.1c8.1-1.9 16.5-2.9 24.7-2.9zm-103.9 82l-56.7-56.7L18.7 402.8c-25 25-25 65.5 0 90.5s65.5 25 90.5 0l123.6-123.6c-7.6-19.9-9.9-41.6-5-62.7zM64 472c-13.2 0-24-10.8-24-24 0-13.3 10.7-24 24-24s24 10.7 24 24c0 13.2-10.7 24-24 24z"]
};
var faTooth = {
  prefix: 'fas',
  iconName: 'tooth',
  icon: [448, 512, [], "f5c9", "M443.98 96.25c-11.01-45.22-47.11-82.06-92.01-93.72-32.19-8.36-63 5.1-89.14 24.33-3.25 2.39-6.96 3.73-10.5 5.48l28.32 18.21c7.42 4.77 9.58 14.67 4.8 22.11-4.46 6.95-14.27 9.86-22.11 4.8L162.83 12.84c-20.7-10.85-43.38-16.4-66.81-10.31-44.9 11.67-81 48.5-92.01 93.72-10.13 41.62-.42 80.81 21.5 110.43 23.36 31.57 32.68 68.66 36.29 107.35 4.4 47.16 10.33 94.16 20.94 140.32l7.8 33.95c3.19 13.87 15.49 23.7 29.67 23.7 13.97 0 26.15-9.55 29.54-23.16l34.47-138.42c4.56-18.32 20.96-31.16 39.76-31.16s35.2 12.85 39.76 31.16l34.47 138.42c3.39 13.61 15.57 23.16 29.54 23.16 14.18 0 26.48-9.83 29.67-23.7l7.8-33.95c10.61-46.15 16.53-93.16 20.94-140.32 3.61-38.7 12.93-75.78 36.29-107.35 21.95-29.61 31.66-68.8 21.53-110.43z"]
};
var faTorah = {
  prefix: 'fas',
  iconName: 'torah',
  icon: [640, 512, [], "f6a0", "M320.05 366.48l17.72-29.64h-35.46zm99.21-166H382.4l18.46 30.82zM48 0C21.49 0 0 14.33 0 32v448c0 17.67 21.49 32 48 32s48-14.33 48-32V32C96 14.33 74.51 0 48 0zm172.74 311.5h36.85l-18.46-30.82zm161.71 0h36.86l-18.45-30.8zM128 464h384V48H128zm66.77-278.13a21.22 21.22 0 0 1 18.48-10.71h59.45l29.13-48.71a21.13 21.13 0 0 1 18.22-10.37A20.76 20.76 0 0 1 338 126.29l29.25 48.86h59.52a21.12 21.12 0 0 1 18.1 32L415.63 256 445 305a20.69 20.69 0 0 1 .24 21.12 21.25 21.25 0 0 1-18.48 10.72h-59.47l-29.13 48.7a21.13 21.13 0 0 1-18.16 10.4 20.79 20.79 0 0 1-18-10.22l-29.25-48.88h-59.5a21.11 21.11 0 0 1-18.1-32L224.36 256 195 207a20.7 20.7 0 0 1-.23-21.13zM592 0c-26.51 0-48 14.33-48 32v448c0 17.67 21.49 32 48 32s48-14.33 48-32V32c0-17.67-21.49-32-48-32zM320 145.53l-17.78 29.62h35.46zm-62.45 55h-36.81l18.44 30.8zm29.58 111h65.79L386.09 256l-33.23-55.52h-65.79L253.9 256z"]
};
var faToriiGate = {
  prefix: 'fas',
  iconName: 'torii-gate',
  icon: [512, 512, [], "f6a1", "M376.45 32h-240.9A303.17 303.17 0 0 1 0 0v96c0 17.67 14.33 32 32 32h32v64H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h48v240c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V256h256v240c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V256h48c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16h-48v-64h32c17.67 0 32-14.33 32-32V0a303.17 303.17 0 0 1-135.55 32zM128 128h96v64h-96v-64zm256 64h-96v-64h96v64z"]
};
var faTractor = {
  prefix: 'fas',
  iconName: 'tractor',
  icon: [640, 512, [], "f722", "M528 336c-48.6 0-88 39.4-88 88s39.4 88 88 88 88-39.4 88-88-39.4-88-88-88zm0 112c-13.23 0-24-10.77-24-24s10.77-24 24-24 24 10.77 24 24-10.77 24-24 24zm80-288h-64v-40.2c0-14.12 4.7-27.76 13.15-38.84 4.42-5.8 3.55-14.06-1.32-19.49L534.2 37.3c-6.66-7.45-18.32-6.92-24.7.78C490.58 60.9 480 89.81 480 119.8V160H377.67L321.58 29.14A47.914 47.914 0 0 0 277.45 0H144c-26.47 0-48 21.53-48 48v146.52c-8.63-6.73-20.96-6.46-28.89 1.47L36 227.1c-8.59 8.59-8.59 22.52 0 31.11l5.06 5.06c-4.99 9.26-8.96 18.82-11.91 28.72H22c-12.15 0-22 9.85-22 22v44c0 12.15 9.85 22 22 22h7.14c2.96 9.91 6.92 19.46 11.91 28.73l-5.06 5.06c-8.59 8.59-8.59 22.52 0 31.11L67.1 476c8.59 8.59 22.52 8.59 31.11 0l5.06-5.06c9.26 4.99 18.82 8.96 28.72 11.91V490c0 12.15 9.85 22 22 22h44c12.15 0 22-9.85 22-22v-7.14c9.9-2.95 19.46-6.92 28.72-11.91l5.06 5.06c8.59 8.59 22.52 8.59 31.11 0l31.11-31.11c8.59-8.59 8.59-22.52 0-31.11l-5.06-5.06c4.99-9.26 8.96-18.82 11.91-28.72H330c12.15 0 22-9.85 22-22v-6h80.54c21.91-28.99 56.32-48 95.46-48 18.64 0 36.07 4.61 51.8 12.2l50.82-50.82c6-6 9.37-14.14 9.37-22.63V192c.01-17.67-14.32-32-31.99-32zM176 416c-44.18 0-80-35.82-80-80s35.82-80 80-80 80 35.82 80 80-35.82 80-80 80zm22-256h-38V64h106.89l41.15 96H198z"]
};
var faTrademark = {
  prefix: 'fas',
  iconName: 'trademark',
  icon: [640, 512, [], "f25c", "M260.6 96H12c-6.6 0-12 5.4-12 12v43.1c0 6.6 5.4 12 12 12h85.1V404c0 6.6 5.4 12 12 12h54.3c6.6 0 12-5.4 12-12V163.1h85.1c6.6 0 12-5.4 12-12V108c.1-6.6-5.3-12-11.9-12zM640 403l-24-296c-.5-6.2-5.7-11-12-11h-65.4c-5.1 0-9.7 3.3-11.3 8.1l-43.8 127.1c-7.2 20.6-16.1 52.8-16.1 52.8h-.9s-8.9-32.2-16.1-52.8l-43.8-127.1c-1.7-4.8-6.2-8.1-11.3-8.1h-65.4c-6.2 0-11.4 4.8-12 11l-24.4 296c-.6 7 4.9 13 12 13H360c6.3 0 11.5-4.9 12-11.2l9.1-132.9c1.8-24.2 0-53.7 0-53.7h.9s10.7 33.6 17.9 53.7l30.7 84.7c1.7 4.7 6.2 7.9 11.3 7.9h50.3c5.1 0 9.6-3.2 11.3-7.9l30.7-84.7c7.2-20.1 17.9-53.7 17.9-53.7h.9s-1.8 29.5 0 53.7l9.1 132.9c.4 6.3 5.7 11.2 12 11.2H628c7 0 12.5-6 12-13z"]
};
var faTrafficLight = {
  prefix: 'fas',
  iconName: 'traffic-light',
  icon: [384, 512, [], "f637", "M384 192h-64v-37.88c37.2-13.22 64-48.38 64-90.12h-64V32c0-17.67-14.33-32-32-32H96C78.33 0 64 14.33 64 32v32H0c0 41.74 26.8 76.9 64 90.12V192H0c0 41.74 26.8 76.9 64 90.12V320H0c0 42.84 28.25 78.69 66.99 91.05C79.42 468.72 130.6 512 192 512s112.58-43.28 125.01-100.95C355.75 398.69 384 362.84 384 320h-64v-37.88c37.2-13.22 64-48.38 64-90.12zM192 416c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm0-128c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm0-128c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48z"]
};
var faTrailer = {
  prefix: 'fas',
  iconName: 'trailer',
  icon: [640, 512, [], "e041", "M624,320H544V80a16,16,0,0,0-16-16H16A16,16,0,0,0,0,80V368a16,16,0,0,0,16,16H65.61c7.83-54.21,54-96,110.39-96s102.56,41.79,110.39,96H624a16,16,0,0,0,16-16V336A16,16,0,0,0,624,320ZM96,243.68a176.29,176.29,0,0,0-32,20.71V136a8,8,0,0,1,8-8H88a8,8,0,0,1,8,8Zm96-18.54c-5.31-.49-10.57-1.14-16-1.14s-10.69.65-16,1.14V136a8,8,0,0,1,8-8h16a8,8,0,0,1,8,8Zm96,39.25a176.29,176.29,0,0,0-32-20.71V136a8,8,0,0,1,8-8h16a8,8,0,0,1,8,8ZM384,320H352V136a8,8,0,0,1,8-8h16a8,8,0,0,1,8,8Zm96,0H448V136a8,8,0,0,1,8-8h16a8,8,0,0,1,8,8Zm-304,0a80,80,0,1,0,80,80A80,80,0,0,0,176,320Zm0,112a32,32,0,1,1,32-32A32,32,0,0,1,176,432Z"]
};
var faTrain = {
  prefix: 'fas',
  iconName: 'train',
  icon: [448, 512, [], "f238", "M448 96v256c0 51.815-61.624 96-130.022 96l62.98 49.721C386.905 502.417 383.562 512 376 512H72c-7.578 0-10.892-9.594-4.957-14.279L130.022 448C61.82 448 0 403.954 0 352V96C0 42.981 64 0 128 0h192c65 0 128 42.981 128 96zm-48 136V120c0-13.255-10.745-24-24-24H72c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24zm-176 64c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56z"]
};
var faTram = {
  prefix: 'fas',
  iconName: 'tram',
  icon: [512, 512, [], "f7da", "M288 64c17.7 0 32-14.3 32-32S305.7 0 288 0s-32 14.3-32 32 14.3 32 32 32zm223.5-12.1c-2.3-8.6-11-13.6-19.6-11.3l-480 128c-8.5 2.3-13.6 11-11.3 19.6C2.5 195.3 8.9 200 16 200c1.4 0 2.8-.2 4.1-.5L240 140.8V224H64c-17.7 0-32 14.3-32 32v224c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32H272v-91.7l228.1-60.8c8.6-2.3 13.6-11.1 11.4-19.6zM176 384H80v-96h96v96zm160-96h96v96h-96v-96zm-32 0v96h-96v-96h96zM192 96c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32z"]
};
var faTransgender = {
  prefix: 'fas',
  iconName: 'transgender',
  icon: [384, 512, [], "f224", "M372 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7C198.5 104.1 172.2 96 144 96 64.5 96 0 160.5 0 240c0 68.5 47.9 125.9 112 140.4V408H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v28c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-28h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-27.6c64.1-14.6 112-71.9 112-140.4 0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V12c0-6.6-5.4-12-12-12zM144 320c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]
};
var faTransgenderAlt = {
  prefix: 'fas',
  iconName: 'transgender-alt',
  icon: [480, 512, [], "f225", "M468 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7C294.5 104.1 268.2 96 240 96c-28.2 0-54.5 8.1-76.7 22.1l-16.5-16.5 19.8-19.8c4.7-4.7 4.7-12.3 0-17l-28.3-28.3c-4.7-4.7-12.3-4.7-17 0l-19.8 19.8-19-19 16.9-16.9C107.1 12.9 101.7 0 91 0H12C5.4 0 0 5.4 0 12v79c0 10.7 12.9 16 20.5 8.5l16.9-16.9 19 19-19.8 19.8c-4.7 4.7-4.7 12.3 0 17l28.3 28.3c4.7 4.7 12.3 4.7 17 0l19.8-19.8 16.5 16.5C104.1 185.5 96 211.8 96 240c0 68.5 47.9 125.9 112 140.4V408h-36c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v28c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-28h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-27.6c64.1-14.6 112-71.9 112-140.4 0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V12c0-6.6-5.4-12-12-12zM240 320c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]
};
var faTrash = {
  prefix: 'fas',
  iconName: 'trash',
  icon: [448, 512, [], "f1f8", "M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"]
};
var faTrashAlt = {
  prefix: 'fas',
  iconName: 'trash-alt',
  icon: [448, 512, [], "f2ed", "M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
};
var faTrashRestore = {
  prefix: 'fas',
  iconName: 'trash-restore',
  icon: [448, 512, [], "f829", "M53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32zm70.11-175.8l89.38-94.26a15.41 15.41 0 0 1 22.62 0l89.38 94.26c10.08 10.62 2.94 28.8-11.32 28.8H256v112a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16V320h-57.37c-14.26 0-21.4-18.18-11.32-28.8zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
};
var faTrashRestoreAlt = {
  prefix: 'fas',
  iconName: 'trash-restore-alt',
  icon: [448, 512, [], "f82a", "M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm91.31-172.8l89.38-94.26a15.41 15.41 0 0 1 22.62 0l89.38 94.26c10.08 10.62 2.94 28.8-11.32 28.8H256v112a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16V320h-57.37c-14.26 0-21.4-18.18-11.32-28.8zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
};
var faTree = {
  prefix: 'fas',
  iconName: 'tree',
  icon: [384, 512, [], "f1bb", "M378.31 378.49L298.42 288h30.63c9.01 0 16.98-5 20.78-13.06 3.8-8.04 2.55-17.26-3.28-24.05L268.42 160h28.89c9.1 0 17.3-5.35 20.86-13.61 3.52-8.13 1.86-17.59-4.24-24.08L203.66 4.83c-6.03-6.45-17.28-6.45-23.32 0L70.06 122.31c-6.1 6.49-7.75 15.95-4.24 24.08C69.38 154.65 77.59 160 86.69 160h28.89l-78.14 90.91c-5.81 6.78-7.06 15.99-3.27 24.04C37.97 283 45.93 288 54.95 288h30.63L5.69 378.49c-6 6.79-7.36 16.09-3.56 24.26 3.75 8.05 12 13.25 21.01 13.25H160v24.45l-30.29 48.4c-5.32 10.64 2.42 23.16 14.31 23.16h95.96c11.89 0 19.63-12.52 14.31-23.16L224 440.45V416h136.86c9.01 0 17.26-5.2 21.01-13.25 3.8-8.17 2.44-17.47-3.56-24.26z"]
};
var faTrophy = {
  prefix: 'fas',
  iconName: 'trophy',
  icon: [576, 512, [], "f091", "M552 64H448V24c0-13.3-10.7-24-24-24H152c-13.3 0-24 10.7-24 24v40H24C10.7 64 0 74.7 0 88v56c0 35.7 22.5 72.4 61.9 100.7 31.5 22.7 69.8 37.1 110 41.7C203.3 338.5 240 360 240 360v72h-48c-35.3 0-64 20.7-64 56v12c0 6.6 5.4 12 12 12h296c6.6 0 12-5.4 12-12v-12c0-35.3-28.7-56-64-56h-48v-72s36.7-21.5 68.1-73.6c40.3-4.6 78.6-19 110-41.7 39.3-28.3 61.9-65 61.9-100.7V88c0-13.3-10.7-24-24-24zM99.3 192.8C74.9 175.2 64 155.6 64 144v-16h64.2c1 32.6 5.8 61.2 12.8 86.2-15.1-5.2-29.2-12.4-41.7-21.4zM512 144c0 16.1-17.7 36.1-35.3 48.8-12.5 9-26.7 16.2-41.8 21.4 7-25 11.8-53.6 12.8-86.2H512v16z"]
};
var faTruck = {
  prefix: 'fas',
  iconName: 'truck',
  icon: [640, 512, [], "f0d1", "M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm320 0c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"]
};
var faTruckLoading = {
  prefix: 'fas',
  iconName: 'truck-loading',
  icon: [640, 512, [], "f4de", "M50.2 375.6c2.3 8.5 11.1 13.6 19.6 11.3l216.4-58c8.5-2.3 13.6-11.1 11.3-19.6l-49.7-185.5c-2.3-8.5-11.1-13.6-19.6-11.3L151 133.3l24.8 92.7-61.8 16.5-24.8-92.7-77.3 20.7C3.4 172.8-1.7 181.6.6 190.1l49.6 185.5zM384 0c-17.7 0-32 14.3-32 32v323.6L5.9 450c-4.3 1.2-6.8 5.6-5.6 9.8l12.6 46.3c1.2 4.3 5.6 6.8 9.8 5.6l393.7-107.4C418.8 464.1 467.6 512 528 512c61.9 0 112-50.1 112-112V0H384zm144 448c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"]
};
var faTruckMonster = {
  prefix: 'fas',
  iconName: 'truck-monster',
  icon: [640, 512, [], "f63b", "M624 224h-16v-64c0-17.67-14.33-32-32-32h-73.6L419.22 24.02A64.025 64.025 0 0 0 369.24 0H256c-17.67 0-32 14.33-32 32v96H48c-8.84 0-16 7.16-16 16v80H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16.72c29.21-38.65 75.1-64 127.28-64s98.07 25.35 127.28 64h65.45c29.21-38.65 75.1-64 127.28-64s98.07 25.35 127.28 64H624c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-336-96V64h81.24l51.2 64H288zm304 224h-5.2c-2.2-7.33-5.07-14.28-8.65-20.89l3.67-3.67c6.25-6.25 6.25-16.38 0-22.63l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0l-3.67 3.67A110.85 110.85 0 0 0 512 277.2V272c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v5.2c-7.33 2.2-14.28 5.07-20.89 8.65l-3.67-3.67c-6.25-6.25-16.38-6.25-22.63 0l-22.63 22.63c-6.25 6.25-6.25 16.38 0 22.63l3.67 3.67A110.85 110.85 0 0 0 373.2 352H368c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h5.2c2.2 7.33 5.07 14.28 8.65 20.89l-3.67 3.67c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l3.67-3.67c6.61 3.57 13.57 6.45 20.9 8.65v5.2c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-5.2c7.33-2.2 14.28-5.07 20.9-8.65l3.67 3.67c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.25-6.25 6.25-16.38 0-22.63l-3.67-3.67a110.85 110.85 0 0 0 8.65-20.89h5.2c8.84 0 16-7.16 16-16v-32c-.02-8.84-7.18-16-16.02-16zm-112 80c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm-208-80h-5.2c-2.2-7.33-5.07-14.28-8.65-20.89l3.67-3.67c6.25-6.25 6.25-16.38 0-22.63l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0l-3.67 3.67A110.85 110.85 0 0 0 192 277.2V272c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v5.2c-7.33 2.2-14.28 5.07-20.89 8.65l-3.67-3.67c-6.25-6.25-16.38-6.25-22.63 0L58.18 304.8c-6.25 6.25-6.25 16.38 0 22.63l3.67 3.67a110.85 110.85 0 0 0-8.65 20.89H48c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h5.2c2.2 7.33 5.07 14.28 8.65 20.89l-3.67 3.67c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l3.67-3.67c6.61 3.57 13.57 6.45 20.9 8.65v5.2c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-5.2c7.33-2.2 14.28-5.07 20.9-8.65l3.67 3.67c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.25-6.25 6.25-16.38 0-22.63l-3.67-3.67a110.85 110.85 0 0 0 8.65-20.89h5.2c8.84 0 16-7.16 16-16v-32C288 359.16 280.84 352 272 352zm-112 80c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48z"]
};
var faTruckMoving = {
  prefix: 'fas',
  iconName: 'truck-moving',
  icon: [640, 512, [], "f4df", "M621.3 237.3l-58.5-58.5c-12-12-28.3-18.7-45.3-18.7H480V64c0-17.7-14.3-32-32-32H32C14.3 32 0 46.3 0 64v336c0 44.2 35.8 80 80 80 26.3 0 49.4-12.9 64-32.4 14.6 19.6 37.7 32.4 64 32.4 44.2 0 80-35.8 80-80 0-5.5-.6-10.8-1.6-16h163.2c-1.1 5.2-1.6 10.5-1.6 16 0 44.2 35.8 80 80 80s80-35.8 80-80c0-5.5-.6-10.8-1.6-16H624c8.8 0 16-7.2 16-16v-85.5c0-17-6.7-33.2-18.7-45.2zM80 432c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32zm128 0c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32zm272-224h37.5c4.3 0 8.3 1.7 11.3 4.7l43.3 43.3H480v-48zm48 224c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32z"]
};
var faTruckPickup = {
  prefix: 'fas',
  iconName: 'truck-pickup',
  icon: [640, 512, [], "f63c", "M624 288h-16v-64c0-17.67-14.33-32-32-32h-48L419.22 56.02A64.025 64.025 0 0 0 369.24 32H256c-17.67 0-32 14.33-32 32v128H64c-17.67 0-32 14.33-32 32v64H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h49.61c-.76 5.27-1.61 10.52-1.61 16 0 61.86 50.14 112 112 112s112-50.14 112-112c0-5.48-.85-10.73-1.61-16h67.23c-.76 5.27-1.61 10.52-1.61 16 0 61.86 50.14 112 112 112s112-50.14 112-112c0-5.48-.85-10.73-1.61-16H624c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM288 96h81.24l76.8 96H288V96zM176 416c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48zm288 0c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48z"]
};
var faTshirt = {
  prefix: 'fas',
  iconName: 'tshirt',
  icon: [640, 512, [], "f553", "M631.2 96.5L436.5 0C416.4 27.8 371.9 47.2 320 47.2S223.6 27.8 203.5 0L8.8 96.5c-7.9 4-11.1 13.6-7.2 21.5l57.2 114.5c4 7.9 13.6 11.1 21.5 7.2l56.6-27.7c10.6-5.2 23 2.5 23 14.4V480c0 17.7 14.3 32 32 32h256c17.7 0 32-14.3 32-32V226.3c0-11.8 12.4-19.6 23-14.4l56.6 27.7c7.9 4 17.5.8 21.5-7.2L638.3 118c4-7.9.8-17.6-7.1-21.5z"]
};
var faTty = {
  prefix: 'fas',
  iconName: 'tty',
  icon: [512, 512, [], "f1e4", "M5.37 103.822c138.532-138.532 362.936-138.326 501.262 0 6.078 6.078 7.074 15.496 2.583 22.681l-43.214 69.138a18.332 18.332 0 0 1-22.356 7.305l-86.422-34.569a18.335 18.335 0 0 1-11.434-18.846L351.741 90c-62.145-22.454-130.636-21.986-191.483 0l5.953 59.532a18.331 18.331 0 0 1-11.434 18.846l-86.423 34.568a18.334 18.334 0 0 1-22.356-7.305L2.787 126.502a18.333 18.333 0 0 1 2.583-22.68zM96 308v-40c0-6.627-5.373-12-12-12H44c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12H92c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zM96 500v-40c0-6.627-5.373-12-12-12H44c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm288 0v-40c0-6.627-5.373-12-12-12H140c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h232c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12z"]
};
var faTv = {
  prefix: 'fas',
  iconName: 'tv',
  icon: [640, 512, [], "f26c", "M592 0H48A48 48 0 0 0 0 48v320a48 48 0 0 0 48 48h240v32H112a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H352v-32h240a48 48 0 0 0 48-48V48a48 48 0 0 0-48-48zm-16 352H64V64h512z"]
};
var faUmbrella = {
  prefix: 'fas',
  iconName: 'umbrella',
  icon: [576, 512, [], "f0e9", "M575.7 280.8C547.1 144.5 437.3 62.6 320 49.9V32c0-17.7-14.3-32-32-32s-32 14.3-32 32v17.9C138.3 62.6 29.5 144.5.3 280.8c-2.2 10.1 8.5 21.3 18.7 11.4 52-55 107.7-52.4 158.6 37 5.3 9.5 14.9 8.6 19.7 0 20.2-35.4 44.9-73.2 90.7-73.2 58.5 0 88.2 68.8 90.7 73.2 4.8 8.6 14.4 9.5 19.7 0 51-89.5 107.1-91.4 158.6-37 10.3 10 20.9-1.3 18.7-11.4zM256 301.7V432c0 8.8-7.2 16-16 16-7.8 0-13.2-5.3-15.1-10.7-5.9-16.7-24.1-25.4-40.8-19.5-16.7 5.9-25.4 24.2-19.5 40.8 11.2 31.9 41.6 53.3 75.4 53.3 44.1 0 80-35.9 80-80V301.6c-9.1-7.9-19.8-13.6-32-13.6-12.3.1-22.4 4.8-32 13.7z"]
};
var faUmbrellaBeach = {
  prefix: 'fas',
  iconName: 'umbrella-beach',
  icon: [640, 512, [], "f5ca", "M115.38 136.9l102.11 37.18c35.19-81.54 86.21-144.29 139-173.7-95.88-4.89-188.78 36.96-248.53 111.8-6.69 8.4-2.66 21.05 7.42 24.72zm132.25 48.16l238.48 86.83c35.76-121.38 18.7-231.66-42.63-253.98-7.4-2.7-15.13-4-23.09-4-58.02.01-128.27 69.17-172.76 171.15zM521.48 60.5c6.22 16.3 10.83 34.6 13.2 55.19 5.74 49.89-1.42 108.23-18.95 166.98l102.62 37.36c10.09 3.67 21.31-3.43 21.57-14.17 2.32-95.69-41.91-187.44-118.44-245.36zM560 447.98H321.06L386 269.5l-60.14-21.9-72.9 200.37H16c-8.84 0-16 7.16-16 16.01v32.01C0 504.83 7.16 512 16 512h544c8.84 0 16-7.17 16-16.01v-32.01c0-8.84-7.16-16-16-16z"]
};
var faUnderline = {
  prefix: 'fas',
  iconName: 'underline',
  icon: [448, 512, [], "f0cd", "M32 64h32v160c0 88.22 71.78 160 160 160s160-71.78 160-160V64h32a16 16 0 0 0 16-16V16a16 16 0 0 0-16-16H272a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32v160a80 80 0 0 1-160 0V64h32a16 16 0 0 0 16-16V16a16 16 0 0 0-16-16H32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm400 384H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
};
var faUndo = {
  prefix: 'fas',
  iconName: 'undo',
  icon: [512, 512, [], "f0e2", "M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"]
};
var faUndoAlt = {
  prefix: 'fas',
  iconName: 'undo-alt',
  icon: [512, 512, [], "f2ea", "M255.545 8c-66.269.119-126.438 26.233-170.86 68.685L48.971 40.971C33.851 25.851 8 36.559 8 57.941V192c0 13.255 10.745 24 24 24h134.059c21.382 0 32.09-25.851 16.971-40.971l-41.75-41.75c30.864-28.899 70.801-44.907 113.23-45.273 92.398-.798 170.283 73.977 169.484 169.442C423.236 348.009 349.816 424 256 424c-41.127 0-79.997-14.678-110.63-41.556-4.743-4.161-11.906-3.908-16.368.553L89.34 422.659c-4.872 4.872-4.631 12.815.482 17.433C133.798 479.813 192.074 504 256 504c136.966 0 247.999-111.033 248-247.998C504.001 119.193 392.354 7.755 255.545 8z"]
};
var faUniversalAccess = {
  prefix: 'fas',
  iconName: 'universal-access',
  icon: [512, 512, [], "f29a", "M256 48c114.953 0 208 93.029 208 208 0 114.953-93.029 208-208 208-114.953 0-208-93.029-208-208 0-114.953 93.029-208 208-208m0-40C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 56C149.961 64 64 149.961 64 256s85.961 192 192 192 192-85.961 192-192S362.039 64 256 64zm0 44c19.882 0 36 16.118 36 36s-16.118 36-36 36-36-16.118-36-36 16.118-36 36-36zm117.741 98.023c-28.712 6.779-55.511 12.748-82.14 15.807.851 101.023 12.306 123.052 25.037 155.621 3.617 9.26-.957 19.698-10.217 23.315-9.261 3.617-19.699-.957-23.316-10.217-8.705-22.308-17.086-40.636-22.261-78.549h-9.686c-5.167 37.851-13.534 56.208-22.262 78.549-3.615 9.255-14.05 13.836-23.315 10.217-9.26-3.617-13.834-14.056-10.217-23.315 12.713-32.541 24.185-54.541 25.037-155.621-26.629-3.058-53.428-9.027-82.141-15.807-8.6-2.031-13.926-10.648-11.895-19.249s10.647-13.926 19.249-11.895c96.686 22.829 124.283 22.783 220.775 0 8.599-2.03 17.218 3.294 19.249 11.895 2.029 8.601-3.297 17.219-11.897 19.249z"]
};
var faUniversity = {
  prefix: 'fas',
  iconName: 'university',
  icon: [512, 512, [], "f19c", "M496 128v16a8 8 0 0 1-8 8h-24v12c0 6.627-5.373 12-12 12H60c-6.627 0-12-5.373-12-12v-12H24a8 8 0 0 1-8-8v-16a8 8 0 0 1 4.941-7.392l232-88a7.996 7.996 0 0 1 6.118 0l232 88A8 8 0 0 1 496 128zm-24 304H40c-13.255 0-24 10.745-24 24v16a8 8 0 0 0 8 8h464a8 8 0 0 0 8-8v-16c0-13.255-10.745-24-24-24zM96 192v192H60c-6.627 0-12 5.373-12 12v20h416v-20c0-6.627-5.373-12-12-12h-36V192h-64v192h-64V192h-64v192h-64V192H96z"]
};
var faUnlink = {
  prefix: 'fas',
  iconName: 'unlink',
  icon: [512, 512, [], "f127", "M304.083 405.907c4.686 4.686 4.686 12.284 0 16.971l-44.674 44.674c-59.263 59.262-155.693 59.266-214.961 0-59.264-59.265-59.264-155.696 0-214.96l44.675-44.675c4.686-4.686 12.284-4.686 16.971 0l39.598 39.598c4.686 4.686 4.686 12.284 0 16.971l-44.675 44.674c-28.072 28.073-28.072 73.75 0 101.823 28.072 28.072 73.75 28.073 101.824 0l44.674-44.674c4.686-4.686 12.284-4.686 16.971 0l39.597 39.598zm-56.568-260.216c4.686 4.686 12.284 4.686 16.971 0l44.674-44.674c28.072-28.075 73.75-28.073 101.824 0 28.072 28.073 28.072 73.75 0 101.823l-44.675 44.674c-4.686 4.686-4.686 12.284 0 16.971l39.598 39.598c4.686 4.686 12.284 4.686 16.971 0l44.675-44.675c59.265-59.265 59.265-155.695 0-214.96-59.266-59.264-155.695-59.264-214.961 0l-44.674 44.674c-4.686 4.686-4.686 12.284 0 16.971l39.597 39.598zm234.828 359.28l22.627-22.627c9.373-9.373 9.373-24.569 0-33.941L63.598 7.029c-9.373-9.373-24.569-9.373-33.941 0L7.029 29.657c-9.373 9.373-9.373 24.569 0 33.941l441.373 441.373c9.373 9.372 24.569 9.372 33.941 0z"]
};
var faUnlock = {
  prefix: 'fas',
  iconName: 'unlock',
  icon: [448, 512, [], "f09c", "M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z"]
};
var faUnlockAlt = {
  prefix: 'fas',
  iconName: 'unlock-alt',
  icon: [448, 512, [], "f13e", "M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zM264 408c0 22.1-17.9 40-40 40s-40-17.9-40-40v-48c0-22.1 17.9-40 40-40s40 17.9 40 40v48z"]
};
var faUpload = {
  prefix: 'fas',
  iconName: 'upload',
  icon: [512, 512, [], "f093", "M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"]
};
var faUser = {
  prefix: 'fas',
  iconName: 'user',
  icon: [448, 512, [], "f007", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"]
};
var faUserAlt = {
  prefix: 'fas',
  iconName: 'user-alt',
  icon: [512, 512, [], "f406", "M256 288c79.5 0 144-64.5 144-144S335.5 0 256 0 112 64.5 112 144s64.5 144 144 144zm128 32h-55.1c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16H128C57.3 320 0 377.3 0 448v16c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48v-16c0-70.7-57.3-128-128-128z"]
};
var faUserAltSlash = {
  prefix: 'fas',
  iconName: 'user-alt-slash',
  icon: [640, 512, [], "f4fa", "M633.8 458.1L389.6 269.3C433.8 244.7 464 198.1 464 144 464 64.5 399.5 0 320 0c-67.1 0-123 46.1-139 108.2L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3zM198.4 320C124.2 320 64 380.2 64 454.4v9.6c0 26.5 21.5 48 48 48h382.2L245.8 320h-47.4z"]
};
var faUserAstronaut = {
  prefix: 'fas',
  iconName: 'user-astronaut',
  icon: [448, 512, [], "f4fb", "M64 224h13.5c24.7 56.5 80.9 96 146.5 96s121.8-39.5 146.5-96H384c8.8 0 16-7.2 16-16v-96c0-8.8-7.2-16-16-16h-13.5C345.8 39.5 289.6 0 224 0S102.2 39.5 77.5 96H64c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16zm40-88c0-22.1 21.5-40 48-40h144c26.5 0 48 17.9 48 40v24c0 53-43 96-96 96h-48c-53 0-96-43-96-96v-24zm72 72l12-36 36-12-36-12-12-36-12 36-36 12 36 12 12 36zm151.6 113.4C297.7 340.7 262.2 352 224 352s-73.7-11.3-103.6-30.6C52.9 328.5 0 385 0 454.4v9.6c0 26.5 21.5 48 48 48h80v-64c0-17.7 14.3-32 32-32h128c17.7 0 32 14.3 32 32v64h80c26.5 0 48-21.5 48-48v-9.6c0-69.4-52.9-125.9-120.4-133zM272 448c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zm-96 0c-8.8 0-16 7.2-16 16v48h32v-48c0-8.8-7.2-16-16-16z"]
};
var faUserCheck = {
  prefix: 'fas',
  iconName: 'user-check',
  icon: [640, 512, [], "f4fc", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4zm323-128.4l-27.8-28.1c-4.6-4.7-12.1-4.7-16.8-.1l-104.8 104-45.5-45.8c-4.6-4.7-12.1-4.7-16.8-.1l-28.1 27.9c-4.7 4.6-4.7 12.1-.1 16.8l81.7 82.3c4.6 4.7 12.1 4.7 16.8.1l141.3-140.2c4.6-4.7 4.7-12.2.1-16.8z"]
};
var faUserCircle = {
  prefix: 'fas',
  iconName: 'user-circle',
  icon: [496, 512, [], "f2bd", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 96c48.6 0 88 39.4 88 88s-39.4 88-88 88-88-39.4-88-88 39.4-88 88-88zm0 344c-58.7 0-111.3-26.6-146.5-68.2 18.8-35.4 55.6-59.8 98.5-59.8 2.4 0 4.8.4 7.1 1.1 13 4.2 26.6 6.9 40.9 6.9 14.3 0 28-2.7 40.9-6.9 2.3-.7 4.7-1.1 7.1-1.1 42.9 0 79.7 24.4 98.5 59.8C359.3 421.4 306.7 448 248 448z"]
};
var faUserClock = {
  prefix: 'fas',
  iconName: 'user-clock',
  icon: [640, 512, [], "f4fd", "M496 224c-79.6 0-144 64.4-144 144s64.4 144 144 144 144-64.4 144-144-64.4-144-144-144zm64 150.3c0 5.3-4.4 9.7-9.7 9.7h-60.6c-5.3 0-9.7-4.4-9.7-9.7v-76.6c0-5.3 4.4-9.7 9.7-9.7h12.6c5.3 0 9.7 4.4 9.7 9.7V352h38.3c5.3 0 9.7 4.4 9.7 9.7v12.6zM320 368c0-27.8 6.7-54.1 18.2-77.5-8-1.5-16.2-2.5-24.6-2.5h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h347.1c-45.3-31.9-75.1-84.5-75.1-144zm-96-112c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128z"]
};
var faUserCog = {
  prefix: 'fas',
  iconName: 'user-cog',
  icon: [640, 512, [], "f4fe", "M610.5 373.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 400.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm201.2 226.5c-2.3-1.2-4.6-2.6-6.8-3.9l-7.9 4.6c-6 3.4-12.8 5.3-19.6 5.3-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-5.5-17.7 1.9-36.4 17.9-45.7l7.9-4.6c-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-16-9.2-23.4-28-17.9-45.7.9-2.9 2.2-5.8 3.2-8.7-3.8-.3-7.5-1.2-11.4-1.2h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c10.1 0 19.5-3.2 27.2-8.5-1.2-3.8-2-7.7-2-11.8v-9.2z"]
};
var faUserEdit = {
  prefix: 'fas',
  iconName: 'user-edit',
  icon: [640, 512, [], "f4ff", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h274.9c-2.4-6.8-3.4-14-2.6-21.3l6.8-60.9 1.2-11.1 7.9-7.9 77.3-77.3c-24.5-27.7-60-45.5-99.9-45.5zm45.3 145.3l-6.8 61c-1.1 10.2 7.5 18.8 17.6 17.6l60.9-6.8 137.9-137.9-71.7-71.7-137.9 137.8zM633 268.9L595.1 231c-9.3-9.3-24.5-9.3-33.8 0l-37.8 37.8-4.1 4.1 71.8 71.7 41.8-41.8c9.3-9.4 9.3-24.5 0-33.9z"]
};
var faUserFriends = {
  prefix: 'fas',
  iconName: 'user-friends',
  icon: [640, 512, [], "f500", "M192 256c61.9 0 112-50.1 112-112S253.9 32 192 32 80 82.1 80 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C51.6 288 0 339.6 0 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zM480 256c53 0 96-43 96-96s-43-96-96-96-96 43-96 96 43 96 96 96zm48 32h-3.8c-13.9 4.8-28.6 8-44.2 8s-30.3-3.2-44.2-8H432c-20.4 0-39.2 5.9-55.7 15.4 24.4 26.3 39.7 61.2 39.7 99.8v38.4c0 2.2-.5 4.3-.6 6.4H592c26.5 0 48-21.5 48-48 0-61.9-50.1-112-112-112z"]
};
var faUserGraduate = {
  prefix: 'fas',
  iconName: 'user-graduate',
  icon: [448, 512, [], "f501", "M319.4 320.6L224 416l-95.4-95.4C57.1 323.7 0 382.2 0 454.4v9.6c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-9.6c0-72.2-57.1-130.7-128.6-133.8zM13.6 79.8l6.4 1.5v58.4c-7 4.2-12 11.5-12 20.3 0 8.4 4.6 15.4 11.1 19.7L3.5 242c-1.7 6.9 2.1 14 7.6 14h41.8c5.5 0 9.3-7.1 7.6-14l-15.6-62.3C51.4 175.4 56 168.4 56 160c0-8.8-5-16.1-12-20.3V87.1l66 15.9c-8.6 17.2-14 36.4-14 57 0 70.7 57.3 128 128 128s128-57.3 128-128c0-20.6-5.3-39.8-14-57l96.3-23.2c18.2-4.4 18.2-27.1 0-31.5l-190.4-46c-13-3.1-26.7-3.1-39.7 0L13.6 48.2c-18.1 4.4-18.1 27.2 0 31.6z"]
};
var faUserInjured = {
  prefix: 'fas',
  iconName: 'user-injured',
  icon: [448, 512, [], "f728", "M277.37 11.98C261.08 4.47 243.11 0 224 0c-53.69 0-99.5 33.13-118.51 80h81.19l90.69-68.02zM342.51 80c-7.9-19.47-20.67-36.2-36.49-49.52L239.99 80h102.52zM224 256c70.69 0 128-57.31 128-128 0-5.48-.95-10.7-1.61-16H97.61c-.67 5.3-1.61 10.52-1.61 16 0 70.69 57.31 128 128 128zM80 299.7V512h128.26l-98.45-221.52A132.835 132.835 0 0 0 80 299.7zM0 464c0 26.51 21.49 48 48 48V320.24C18.88 344.89 0 381.26 0 422.4V464zm256-48h-55.38l42.67 96H256c26.47 0 48-21.53 48-48s-21.53-48-48-48zm57.6-128h-16.71c-22.24 10.18-46.88 16-72.89 16s-50.65-5.82-72.89-16h-7.37l42.67 96H256c44.11 0 80 35.89 80 80 0 18.08-6.26 34.59-16.41 48H400c26.51 0 48-21.49 48-48v-41.6c0-74.23-60.17-134.4-134.4-134.4z"]
};
var faUserLock = {
  prefix: 'fas',
  iconName: 'user-lock',
  icon: [640, 512, [], "f502", "M224 256A128 128 0 1 0 96 128a128 128 0 0 0 128 128zm96 64a63.08 63.08 0 0 1 8.1-30.5c-4.8-.5-9.5-1.5-14.5-1.5h-16.7a174.08 174.08 0 0 1-145.8 0h-16.7A134.43 134.43 0 0 0 0 422.4V464a48 48 0 0 0 48 48h280.9a63.54 63.54 0 0 1-8.9-32zm288-32h-32v-80a80 80 0 0 0-160 0v80h-32a32 32 0 0 0-32 32v160a32 32 0 0 0 32 32h224a32 32 0 0 0 32-32V320a32 32 0 0 0-32-32zM496 432a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm32-144h-64v-80a32 32 0 0 1 64 0z"]
};
var faUserMd = {
  prefix: 'fas',
  iconName: 'user-md',
  icon: [448, 512, [], "f0f0", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zM104 424c0 13.3 10.7 24 24 24s24-10.7 24-24-10.7-24-24-24-24 10.7-24 24zm216-135.4v49c36.5 7.4 64 39.8 64 78.4v41.7c0 7.6-5.4 14.2-12.9 15.7l-32.2 6.4c-4.3.9-8.5-1.9-9.4-6.3l-3.1-15.7c-.9-4.3 1.9-8.6 6.3-9.4l19.3-3.9V416c0-62.8-96-65.1-96 1.9v26.7l19.3 3.9c4.3.9 7.1 5.1 6.3 9.4l-3.1 15.7c-.9 4.3-5.1 7.1-9.4 6.3l-31.2-4.2c-7.9-1.1-13.8-7.8-13.8-15.9V416c0-38.6 27.5-70.9 64-78.4v-45.2c-2.2.7-4.4 1.1-6.6 1.9-18 6.3-37.3 9.8-57.4 9.8s-39.4-3.5-57.4-9.8c-7.4-2.6-14.9-4.2-22.6-5.2v81.6c23.1 6.9 40 28.1 40 53.4 0 30.9-25.1 56-56 56s-56-25.1-56-56c0-25.3 16.9-46.5 40-53.4v-80.4C48.5 301 0 355.8 0 422.4v44.8C0 491.9 20.1 512 44.8 512h358.4c24.7 0 44.8-20.1 44.8-44.8v-44.8c0-72-56.8-130.3-128-133.8z"]
};
var faUserMinus = {
  prefix: 'fas',
  iconName: 'user-minus',
  icon: [640, 512, [], "f503", "M624 208H432c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h192c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400 48c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"]
};
var faUserNinja = {
  prefix: 'fas',
  iconName: 'user-ninja',
  icon: [448, 512, [], "f504", "M325.4 289.2L224 390.6 122.6 289.2C54 295.3 0 352.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-70.2-54-127.1-122.6-133.2zM32 192c27.3 0 51.8-11.5 69.2-29.7 15.1 53.9 64 93.7 122.8 93.7 70.7 0 128-57.3 128-128S294.7 0 224 0c-50.4 0-93.6 29.4-114.5 71.8C92.1 47.8 64 32 32 32c0 33.4 17.1 62.8 43.1 80-26 17.2-43.1 46.6-43.1 80zm144-96h96c17.7 0 32 14.3 32 32H144c0-17.7 14.3-32 32-32z"]
};
var faUserNurse = {
  prefix: 'fas',
  iconName: 'user-nurse',
  icon: [448, 512, [], "f82f", "M319.41,320,224,415.39,128.59,320C57.1,323.1,0,381.6,0,453.79A58.21,58.21,0,0,0,58.21,512H389.79A58.21,58.21,0,0,0,448,453.79C448,381.6,390.9,323.1,319.41,320ZM224,304A128,128,0,0,0,352,176V65.82a32,32,0,0,0-20.76-30L246.47,4.07a64,64,0,0,0-44.94,0L116.76,35.86A32,32,0,0,0,96,65.82V176A128,128,0,0,0,224,304ZM184,71.67a5,5,0,0,1,5-5h21.67V45a5,5,0,0,1,5-5h16.66a5,5,0,0,1,5,5V66.67H259a5,5,0,0,1,5,5V88.33a5,5,0,0,1-5,5H237.33V115a5,5,0,0,1-5,5H215.67a5,5,0,0,1-5-5V93.33H189a5,5,0,0,1-5-5ZM144,160H304v16a80,80,0,0,1-160,0Z"]
};
var faUserPlus = {
  prefix: 'fas',
  iconName: 'user-plus',
  icon: [640, 512, [], "f234", "M624 208h-64v-64c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v64h-64c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h64v64c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-64h64c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400 48c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"]
};
var faUserSecret = {
  prefix: 'fas',
  iconName: 'user-secret',
  icon: [448, 512, [], "f21b", "M383.9 308.3l23.9-62.6c4-10.5-3.7-21.7-15-21.7h-58.5c11-18.9 17.8-40.6 17.8-64v-.3c39.2-7.8 64-19.1 64-31.7 0-13.3-27.3-25.1-70.1-33-9.2-32.8-27-65.8-40.6-82.8-9.5-11.9-25.9-15.6-39.5-8.8l-27.6 13.8c-9 4.5-19.6 4.5-28.6 0L182.1 3.4c-13.6-6.8-30-3.1-39.5 8.8-13.5 17-31.4 50-40.6 82.8-42.7 7.9-70 19.7-70 33 0 12.6 24.8 23.9 64 31.7v.3c0 23.4 6.8 45.1 17.8 64H56.3c-11.5 0-19.2 11.7-14.7 22.3l25.8 60.2C27.3 329.8 0 372.7 0 422.4v44.8C0 491.9 20.1 512 44.8 512h358.4c24.7 0 44.8-20.1 44.8-44.8v-44.8c0-48.4-25.8-90.4-64.1-114.1zM176 480l-41.6-192 49.6 32 24 40-32 120zm96 0l-32-120 24-40 49.6-32L272 480zm41.7-298.5c-3.9 11.9-7 24.6-16.5 33.4-10.1 9.3-48 22.4-64-25-2.8-8.4-15.4-8.4-18.3 0-17 50.2-56 32.4-64 25-9.5-8.8-12.7-21.5-16.5-33.4-.8-2.5-6.3-5.7-6.3-5.8v-10.8c28.3 3.6 61 5.8 96 5.8s67.7-2.1 96-5.8v10.8c-.1.1-5.6 3.2-6.4 5.8z"]
};
var faUserShield = {
  prefix: 'fas',
  iconName: 'user-shield',
  icon: [640, 512, [], "f505", "M622.3 271.1l-115.2-45c-4.1-1.6-12.6-3.7-22.2 0l-115.2 45c-10.7 4.2-17.7 14-17.7 24.9 0 111.6 68.7 188.8 132.9 213.9 9.6 3.7 18 1.6 22.2 0C558.4 489.9 640 420.5 640 296c0-10.9-7-20.7-17.7-24.9zM496 462.4V273.3l95.5 37.3c-5.6 87.1-60.9 135.4-95.5 151.8zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm96 40c0-2.5.8-4.8 1.1-7.2-2.5-.1-4.9-.8-7.5-.8h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c6.8 0 13.3-1.5 19.2-4-54-42.9-99.2-116.7-99.2-212z"]
};
var faUserSlash = {
  prefix: 'fas',
  iconName: 'user-slash',
  icon: [640, 512, [], "f506", "M633.8 458.1L362.3 248.3C412.1 230.7 448 183.8 448 128 448 57.3 390.7 0 320 0c-67.1 0-121.5 51.8-126.9 117.4L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3zM96 422.4V464c0 26.5 21.5 48 48 48h350.2L207.4 290.3C144.2 301.3 96 356 96 422.4z"]
};
var faUserTag = {
  prefix: 'fas',
  iconName: 'user-tag',
  icon: [640, 512, [], "f507", "M630.6 364.9l-90.3-90.2c-12-12-28.3-18.7-45.3-18.7h-79.3c-17.7 0-32 14.3-32 32v79.2c0 17 6.7 33.2 18.7 45.2l90.3 90.2c12.5 12.5 32.8 12.5 45.3 0l92.5-92.5c12.6-12.5 12.6-32.7.1-45.2zm-182.8-21c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24c0 13.2-10.7 24-24 24zm-223.8-88c70.7 0 128-57.3 128-128C352 57.3 294.7 0 224 0S96 57.3 96 128c0 70.6 57.3 127.9 128 127.9zm127.8 111.2V294c-12.2-3.6-24.9-6.2-38.2-6.2h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 287.9 0 348.1 0 422.3v41.6c0 26.5 21.5 48 48 48h352c15.5 0 29.1-7.5 37.9-18.9l-58-58c-18.1-18.1-28.1-42.2-28.1-67.9z"]
};
var faUserTie = {
  prefix: 'fas',
  iconName: 'user-tie',
  icon: [448, 512, [], "f508", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm95.8 32.6L272 480l-32-136 32-56h-96l32 56-32 136-47.8-191.4C56.9 292 0 350.3 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-72.1-56.9-130.4-128.2-133.8z"]
};
var faUserTimes = {
  prefix: 'fas',
  iconName: 'user-times',
  icon: [640, 512, [], "f235", "M589.6 240l45.6-45.6c6.3-6.3 6.3-16.5 0-22.8l-22.8-22.8c-6.3-6.3-16.5-6.3-22.8 0L544 194.4l-45.6-45.6c-6.3-6.3-16.5-6.3-22.8 0l-22.8 22.8c-6.3 6.3-6.3 16.5 0 22.8l45.6 45.6-45.6 45.6c-6.3 6.3-6.3 16.5 0 22.8l22.8 22.8c6.3 6.3 16.5 6.3 22.8 0l45.6-45.6 45.6 45.6c6.3 6.3 16.5 6.3 22.8 0l22.8-22.8c6.3-6.3 6.3-16.5 0-22.8L589.6 240zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"]
};
var faUsers = {
  prefix: 'fas',
  iconName: 'users',
  icon: [640, 512, [], "f0c0", "M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"]
};
var faUsersCog = {
  prefix: 'fas',
  iconName: 'users-cog',
  icon: [640, 512, [], "f509", "M610.5 341.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 368.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm224 32c1.9 0 3.7-.5 5.6-.6 8.3-21.7 20.5-42.1 36.3-59.2 7.4-8 17.9-12.6 28.9-12.6 6.9 0 13.7 1.8 19.6 5.3l7.9 4.6c.8-.5 1.6-.9 2.4-1.4 7-14.6 11.2-30.8 11.2-48 0-61.9-50.1-112-112-112S208 82.1 208 144c0 61.9 50.1 112 112 112zm105.2 194.5c-2.3-1.2-4.6-2.6-6.8-3.9-8.2 4.8-15.3 9.8-27.5 9.8-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-10.7-34.5 24.9-49.7 25.8-50.3-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-3.8-2.2-7-5-9.8-8.1-3.3.2-6.5.6-9.8.6-24.6 0-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h255.4c-3.7-6-6.2-12.8-6.2-20.3v-9.2zM173.1 274.6C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"]
};
var faUsersSlash = {
  prefix: 'fas',
  iconName: 'users-slash',
  icon: [640, 512, [], "e073", "M132.65,212.32,36.21,137.78A63.4,63.4,0,0,0,32,160a63.84,63.84,0,0,0,100.65,52.32Zm40.44,62.28A63.79,63.79,0,0,0,128,256H64A64.06,64.06,0,0,0,0,320v32a32,32,0,0,0,32,32H97.91A146.62,146.62,0,0,1,173.09,274.6ZM544,224a64,64,0,1,0-64-64A64.06,64.06,0,0,0,544,224ZM500.56,355.11a114.24,114.24,0,0,0-84.47-65.28L361,247.23c41.46-16.3,71-55.92,71-103.23A111.93,111.93,0,0,0,320,32c-57.14,0-103.69,42.83-110.6,98.08L45.46,3.38A16,16,0,0,0,23,6.19L3.37,31.46A16,16,0,0,0,6.18,53.91L594.53,508.63A16,16,0,0,0,617,505.82l19.64-25.27a16,16,0,0,0-2.81-22.45ZM128,403.21V432a48,48,0,0,0,48,48H464a47.45,47.45,0,0,0,12.57-1.87L232,289.13C173.74,294.83,128,343.42,128,403.21ZM576,256H512a63.79,63.79,0,0,0-45.09,18.6A146.29,146.29,0,0,1,542,384h66a32,32,0,0,0,32-32V320A64.06,64.06,0,0,0,576,256Z"]
};
var faUtensilSpoon = {
  prefix: 'fas',
  iconName: 'utensil-spoon',
  icon: [512, 512, [], "f2e5", "M480.1 31.9c-55-55.1-164.9-34.5-227.8 28.5-49.3 49.3-55.1 110-28.8 160.4L9 413.2c-11.6 10.5-12.1 28.5-1 39.5L59.3 504c11 11 29.1 10.5 39.5-1.1l192.4-214.4c50.4 26.3 111.1 20.5 160.4-28.8 63-62.9 83.6-172.8 28.5-227.8z"]
};
var faUtensils = {
  prefix: 'fas',
  iconName: 'utensils',
  icon: [416, 512, [], "f2e7", "M207.9 15.2c.8 4.7 16.1 94.5 16.1 128.8 0 52.3-27.8 89.6-68.9 104.6L168 486.7c.7 13.7-10.2 25.3-24 25.3H80c-13.7 0-24.7-11.5-24-25.3l12.9-238.1C27.7 233.6 0 196.2 0 144 0 109.6 15.3 19.9 16.1 15.2 19.3-5.1 61.4-5.4 64 16.3v141.2c1.3 3.4 15.1 3.2 16 0 1.4-25.3 7.9-139.2 8-141.8 3.3-20.8 44.7-20.8 47.9 0 .2 2.7 6.6 116.5 8 141.8.9 3.2 14.8 3.4 16 0V16.3c2.6-21.6 44.8-21.4 48-1.1zm119.2 285.7l-15 185.1c-1.2 14 9.9 26 23.9 26h56c13.3 0 24-10.7 24-24V24c0-13.2-10.7-24-24-24-82.5 0-221.4 178.5-64.9 300.9z"]
};
var faVectorSquare = {
  prefix: 'fas',
  iconName: 'vector-square',
  icon: [512, 512, [], "f5cb", "M512 128V32c0-17.67-14.33-32-32-32h-96c-17.67 0-32 14.33-32 32H160c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v96c0 17.67 14.33 32 32 32v192c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32h192c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32V160c17.67 0 32-14.33 32-32zm-96-64h32v32h-32V64zM64 64h32v32H64V64zm32 384H64v-32h32v32zm352 0h-32v-32h32v32zm-32-96h-32c-17.67 0-32 14.33-32 32v32H160v-32c0-17.67-14.33-32-32-32H96V160h32c17.67 0 32-14.33 32-32V96h192v32c0 17.67 14.33 32 32 32h32v192z"]
};
var faVenus = {
  prefix: 'fas',
  iconName: 'venus',
  icon: [288, 512, [], "f221", "M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V368H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80z"]
};
var faVenusDouble = {
  prefix: 'fas',
  iconName: 'venus-double',
  icon: [512, 512, [], "f226", "M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V368H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80zm336 140.4V368h36c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-36v36c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-36h-36c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h36v-51.6c-21.2-4.8-40.6-14.3-57.2-27.3 14-16.7 25-36 32.1-57.1 14.5 14.8 34.7 24 57.1 24 44.1 0 80-35.9 80-80s-35.9-80-80-80c-22.3 0-42.6 9.2-57.1 24-7.1-21.1-18-40.4-32.1-57.1C303.4 43.6 334.3 32 368 32c79.5 0 144 64.5 144 144 0 68.5-47.9 125.9-112 140.4z"]
};
var faVenusMars = {
  prefix: 'fas',
  iconName: 'venus-mars',
  icon: [576, 512, [], "f228", "M564 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7C422.5 72.1 396.2 64 368 64c-33.7 0-64.6 11.6-89.2 30.9 14 16.7 25 36 32.1 57.1 14.5-14.8 34.7-24 57.1-24 44.1 0 80 35.9 80 80s-35.9 80-80 80c-22.3 0-42.6-9.2-57.1-24-7.1 21.1-18 40.4-32.1 57.1 24.5 19.4 55.5 30.9 89.2 30.9 79.5 0 144-64.5 144-144 0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.4 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12V12c0-6.6-5.4-12-12-12zM144 64C64.5 64 0 128.5 0 208c0 68.5 47.9 125.9 112 140.4V400H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.6 112-71.9 112-140.4 0-79.5-64.5-144-144-144zm0 224c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]
};
var faVest = {
  prefix: 'fas',
  iconName: 'vest',
  icon: [448, 512, [], "e085", "M437.252,239.877,384,160V32A32,32,0,0,0,352,0H320a24.021,24.021,0,0,0-13.312,4.031l-25,16.672a103.794,103.794,0,0,1-115.376,0l-25-16.672A24.021,24.021,0,0,0,128,0H96A32,32,0,0,0,64,32V160L10.748,239.877A64,64,0,0,0,0,275.377V480a32,32,0,0,0,32,32H192V288a31.987,31.987,0,0,1,1.643-10.119L207.135,237.4,150.188,66.564A151.518,151.518,0,0,0,224,86.234a151.55,151.55,0,0,0,73.812-19.672L224,288V512H416a32,32,0,0,0,32-32V275.377A64,64,0,0,0,437.252,239.877ZM131.312,371.312l-48,48a16,16,0,0,1-22.624-22.624l48-48a16,16,0,0,1,22.624,22.624Zm256,48a15.992,15.992,0,0,1-22.624,0l-48-48a16,16,0,0,1,22.624-22.624l48,48A15.993,15.993,0,0,1,387.312,419.312Z"]
};
var faVestPatches = {
  prefix: 'fas',
  iconName: 'vest-patches',
  icon: [448, 512, [], "e086", "M437.252,239.877,384,160V32A32,32,0,0,0,352,0H320a23.982,23.982,0,0,0-13.312,4.031l-25,16.672a103.794,103.794,0,0,1-115.376,0l-25-16.672A23.982,23.982,0,0,0,128,0H96A32,32,0,0,0,64,32V160L10.748,239.877A64,64,0,0,0,0,275.377V480a32,32,0,0,0,32,32H192V288a31.987,31.987,0,0,1,1.643-10.119L207.135,237.4,150.188,66.561A151.579,151.579,0,0,0,224,86.234a151.565,151.565,0,0,0,73.811-19.668L224,288V512H416a32,32,0,0,0,32-32V275.377A64,64,0,0,0,437.252,239.877ZM63.5,272.484a12.01,12.01,0,0,1,17-16.968l15.5,15.5,15.5-15.5a12.01,12.01,0,0,1,17,16.968L112.984,288,128.5,303.516a12.01,12.01,0,0,1-17,16.968L96,304.984l-15.5,15.5a12.01,12.01,0,0,1-17-16.968L79.016,288ZM96,456a40,40,0,1,1,40-40A40,40,0,0,1,96,456ZM359.227,335.785,310.7,336a6.671,6.671,0,0,1-6.7-6.7l.215-48.574A24.987,24.987,0,0,1,331.43,256.1c12.789,1.162,22.129,12.619,22.056,25.419l-.037,5.057,5.051-.037c12.826-.035,24.236,9.275,25.4,22.076A24.948,24.948,0,0,1,359.227,335.785Z"]
};
var faVial = {
  prefix: 'fas',
  iconName: 'vial',
  icon: [480, 512, [], "f492", "M477.7 186.1L309.5 18.3c-3.1-3.1-8.2-3.1-11.3 0l-34 33.9c-3.1 3.1-3.1 8.2 0 11.3l11.2 11.1L33 316.5c-38.8 38.7-45.1 102-9.4 143.5 20.6 24 49.5 36 78.4 35.9 26.4 0 52.8-10 72.9-30.1l246.3-245.7 11.2 11.1c3.1 3.1 8.2 3.1 11.3 0l34-33.9c3.1-3 3.1-8.1 0-11.2zM318 256H161l148-147.7 78.5 78.3L318 256z"]
};
var faVials = {
  prefix: 'fas',
  iconName: 'vials',
  icon: [640, 512, [], "f493", "M72 64h24v240c0 44.1 35.9 80 80 80s80-35.9 80-80V64h24c4.4 0 8-3.6 8-8V8c0-4.4-3.6-8-8-8H72c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm72 0h64v96h-64V64zm480 384H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM360 64h24v240c0 44.1 35.9 80 80 80s80-35.9 80-80V64h24c4.4 0 8-3.6 8-8V8c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm72 0h64v96h-64V64z"]
};
var faVideo = {
  prefix: 'fas',
  iconName: 'video',
  icon: [576, 512, [], "f03d", "M336.2 64H47.8C21.4 64 0 85.4 0 111.8v288.4C0 426.6 21.4 448 47.8 448h288.4c26.4 0 47.8-21.4 47.8-47.8V111.8c0-26.4-21.4-47.8-47.8-47.8zm189.4 37.7L416 177.3v157.4l109.6 75.5c21.2 14.6 50.4-.3 50.4-25.8V127.5c0-25.4-29.1-40.4-50.4-25.8z"]
};
var faVideoSlash = {
  prefix: 'fas',
  iconName: 'video-slash',
  icon: [640, 512, [], "f4e2", "M633.8 458.1l-55-42.5c15.4-1.4 29.2-13.7 29.2-31.1v-257c0-25.5-29.1-40.4-50.4-25.8L448 177.3v137.2l-32-24.7v-178c0-26.4-21.4-47.8-47.8-47.8H123.9L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4L42.7 82 416 370.6l178.5 138c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.5-6.9 4.2-17-2.8-22.4zM32 400.2c0 26.4 21.4 47.8 47.8 47.8h288.4c11.2 0 21.4-4 29.6-10.5L32 154.7v245.5z"]
};
var faVihara = {
  prefix: 'fas',
  iconName: 'vihara',
  icon: [640, 512, [], "f6a7", "M632.88 400.71L544 352v-64l55.16-17.69c11.79-5.9 11.79-22.72 0-28.62L480 192v-64l27.31-16.3c7.72-7.72 5.61-20.74-4.16-25.62L320 0 136.85 86.07c-9.77 4.88-11.88 17.9-4.16 25.62L160 128v64L40.84 241.69c-11.79 5.9-11.79 22.72 0 28.62L96 288v64L7.12 400.71c-5.42 3.62-7.7 9.63-7 15.29.62 5.01 3.57 9.75 8.72 12.33L64 448v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h160v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h160v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48l55.15-19.67c5.16-2.58 8.1-7.32 8.72-12.33.71-5.67-1.57-11.68-6.99-15.29zM224 128h192v64H224v-64zm-64 224v-64h320v64H160z"]
};
var faVirus = {
  prefix: 'fas',
  iconName: 'virus',
  icon: [512, 512, [], "e074", "M483.55,227.55H462c-50.68,0-76.07-61.27-40.23-97.11L437,115.19A28.44,28.44,0,0,0,396.8,75L381.56,90.22c-35.84,35.83-97.11,10.45-97.11-40.23V28.44a28.45,28.45,0,0,0-56.9,0V50c0,50.68-61.27,76.06-97.11,40.23L115.2,75A28.44,28.44,0,0,0,75,115.19l15.25,15.25c35.84,35.84,10.45,97.11-40.23,97.11H28.45a28.45,28.45,0,1,0,0,56.89H50c50.68,0,76.07,61.28,40.23,97.12L75,396.8A28.45,28.45,0,0,0,115.2,437l15.24-15.25c35.84-35.84,97.11-10.45,97.11,40.23v21.54a28.45,28.45,0,0,0,56.9,0V462c0-50.68,61.27-76.07,97.11-40.23L396.8,437A28.45,28.45,0,0,0,437,396.8l-15.25-15.24c-35.84-35.84-10.45-97.12,40.23-97.12h21.54a28.45,28.45,0,1,0,0-56.89ZM224,272a48,48,0,1,1,48-48A48,48,0,0,1,224,272Zm80,56a24,24,0,1,1,24-24A24,24,0,0,1,304,328Z"]
};
var faVirusSlash = {
  prefix: 'fas',
  iconName: 'virus-slash',
  icon: [640, 512, [], "e075", "M114,227.6H92.4C76.7,227.6,64,240.3,64,256s12.7,28.4,28.4,28.4H114c50.7,0,76.1,61.3,40.2,97.1L139,396.8 c-11.5,10.7-12.2,28.7-1.6,40.2s28.7,12.2,40.2,1.6c0.5-0.5,1.1-1,1.6-1.6l15.2-15.2c35.8-35.8,97.1-10.5,97.1,40.2v21.5 c0,15.7,12.8,28.4,28.5,28.4c15.7,0,28.4-12.7,28.4-28.4V462c0-26.6,17-45.9,38.2-53.4l-244.5-189 C133.7,224.7,123.9,227.5,114,227.6z M617,505.8l19.6-25.3c5.4-7,4.2-17-2.8-22.5L470.6,332c4.2-25.4,24.9-47.5,55.4-47.5h21.5 c15.7,0,28.4-12.7,28.4-28.4s-12.7-28.4-28.4-28.4H526c-50.7,0-76.1-61.3-40.2-97.1l15.2-15.3c10.7-11.5,10-29.5-1.6-40.2 c-10.9-10.1-27.7-10.1-38.6,0l-15.2,15.2c-35.8,35.8-97.1,10.5-97.1-40.2V28.5C348.4,12.7,335.7,0,320,0 c-15.7,0-28.4,12.7-28.4,28.4V50c0,50.7-61.3,76.1-97.1,40.2L179.2,75c-11.1-11.1-29.4-10.6-40.5,0.5L45.5,3.4 c-7-5.4-17-4.2-22.5,2.8L3.4,31.5c-5.4,7-4.2,17,2.8,22.5l588.4,454.7C601.5,514.1,611.6,512.8,617,505.8z M335.4,227.5l-62.9-48.6 c4.9-1.8,10.2-2.8,15.4-2.9c26.5,0,48,21.5,48,48C336,225.2,335.5,226.3,335.4,227.5z"]
};
var faViruses = {
  prefix: 'fas',
  iconName: 'viruses',
  icon: [640, 512, [], "e076", "M624,352H611.88c-28.51,0-42.79-34.47-22.63-54.63l8.58-8.57a16,16,0,1,0-22.63-22.63l-8.57,8.58C546.47,294.91,512,280.63,512,252.12V240a16,16,0,0,0-32,0v12.12c0,28.51-34.47,42.79-54.63,22.63l-8.57-8.58a16,16,0,0,0-22.63,22.63l8.58,8.57c20.16,20.16,5.88,54.63-22.63,54.63H368a16,16,0,0,0,0,32h12.12c28.51,0,42.79,34.47,22.63,54.63l-8.58,8.57a16,16,0,1,0,22.63,22.63l8.57-8.58c20.16-20.16,54.63-5.88,54.63,22.63V496a16,16,0,0,0,32,0V483.88c0-28.51,34.47-42.79,54.63-22.63l8.57,8.58a16,16,0,1,0,22.63-22.63l-8.58-8.57C569.09,418.47,583.37,384,611.88,384H624a16,16,0,0,0,0-32ZM480,384a32,32,0,1,1,32-32A32,32,0,0,1,480,384ZM346.51,213.33h16.16a21.33,21.33,0,0,0,0-42.66H346.51c-38,0-57.05-46-30.17-72.84l11.43-11.44A21.33,21.33,0,0,0,297.6,56.23L286.17,67.66c-26.88,26.88-72.84,7.85-72.84-30.17V21.33a21.33,21.33,0,0,0-42.66,0V37.49c0,38-46,57.05-72.84,30.17L86.4,56.23A21.33,21.33,0,0,0,56.23,86.39L67.66,97.83c26.88,26.88,7.85,72.84-30.17,72.84H21.33a21.33,21.33,0,0,0,0,42.66H37.49c38,0,57.05,46,30.17,72.84L56.23,297.6A21.33,21.33,0,1,0,86.4,327.77l11.43-11.43c26.88-26.88,72.84-7.85,72.84,30.17v16.16a21.33,21.33,0,0,0,42.66,0V346.51c0-38,46-57.05,72.84-30.17l11.43,11.43a21.33,21.33,0,0,0,30.17-30.17l-11.43-11.43C289.46,259.29,308.49,213.33,346.51,213.33ZM160,192a32,32,0,1,1,32-32A32,32,0,0,1,160,192Zm80,32a16,16,0,1,1,16-16A16,16,0,0,1,240,224Z"]
};
var faVoicemail = {
  prefix: 'fas',
  iconName: 'voicemail',
  icon: [640, 512, [], "f897", "M496 128a144 144 0 0 0-119.74 224H263.74A144 144 0 1 0 144 416h352a144 144 0 0 0 0-288zM64 272a80 80 0 1 1 80 80 80 80 0 0 1-80-80zm432 80a80 80 0 1 1 80-80 80 80 0 0 1-80 80z"]
};
var faVolleyballBall = {
  prefix: 'fas',
  iconName: 'volleyball-ball',
  icon: [512, 512, [], "f45f", "M231.39 243.48a285.56 285.56 0 0 0-22.7-105.7c-90.8 42.4-157.5 122.4-180.3 216.8a249 249 0 0 0 56.9 81.1 333.87 333.87 0 0 1 146.1-192.2zm-36.9-134.4a284.23 284.23 0 0 0-57.4-70.7c-91 49.8-144.8 152.9-125 262.2 33.4-83.1 98.4-152 182.4-191.5zm187.6 165.1c8.6-99.8-27.3-197.5-97.5-264.4-14.7-1.7-51.6-5.5-98.9 8.5A333.87 333.87 0 0 1 279.19 241a285 285 0 0 0 102.9 33.18zm-124.7 9.5a286.33 286.33 0 0 0-80.2 72.6c82 57.3 184.5 75.1 277.5 47.8a247.15 247.15 0 0 0 42.2-89.9 336.1 336.1 0 0 1-80.9 10.4c-54.6-.1-108.9-14.1-158.6-40.9zm-98.3 99.7c-15.2 26-25.7 54.4-32.1 84.2a247.07 247.07 0 0 0 289-22.1c-112.9 16.1-203.3-24.8-256.9-62.1zm180.3-360.6c55.3 70.4 82.5 161.2 74.6 253.6a286.59 286.59 0 0 0 89.7-14.2c0-2 .3-4 .3-6 0-107.8-68.7-199.1-164.6-233.4z"]
};
var faVolumeDown = {
  prefix: 'fas',
  iconName: 'volume-down',
  icon: [384, 512, [], "f027", "M215.03 72.04L126.06 161H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V89.02c0-21.47-25.96-31.98-40.97-16.98zm123.2 108.08c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 229.28 336 242.62 336 257c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.87z"]
};
var faVolumeMute = {
  prefix: 'fas',
  iconName: 'volume-mute',
  icon: [512, 512, [], "f6a9", "M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zM461.64 256l45.64-45.64c6.3-6.3 6.3-16.52 0-22.82l-22.82-22.82c-6.3-6.3-16.52-6.3-22.82 0L416 210.36l-45.64-45.64c-6.3-6.3-16.52-6.3-22.82 0l-22.82 22.82c-6.3 6.3-6.3 16.52 0 22.82L370.36 256l-45.63 45.63c-6.3 6.3-6.3 16.52 0 22.82l22.82 22.82c6.3 6.3 16.52 6.3 22.82 0L416 301.64l45.64 45.64c6.3 6.3 16.52 6.3 22.82 0l22.82-22.82c6.3-6.3 6.3-16.52 0-22.82L461.64 256z"]
};
var faVolumeOff = {
  prefix: 'fas',
  iconName: 'volume-off',
  icon: [256, 512, [], "f026", "M215 71l-89 89H24a24 24 0 0 0-24 24v144a24 24 0 0 0 24 24h102.06L215 441c15 15 41 4.47 41-17V88c0-21.47-26-32-41-17z"]
};
var faVolumeUp = {
  prefix: 'fas',
  iconName: 'volume-up',
  icon: [576, 512, [], "f028", "M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zm233.32-51.08c-11.17-7.33-26.18-4.24-33.51 6.95-7.34 11.17-4.22 26.18 6.95 33.51 66.27 43.49 105.82 116.6 105.82 195.58 0 78.98-39.55 152.09-105.82 195.58-11.17 7.32-14.29 22.34-6.95 33.5 7.04 10.71 21.93 14.56 33.51 6.95C528.27 439.58 576 351.33 576 256S528.27 72.43 448.35 19.97zM480 256c0-63.53-32.06-121.94-85.77-156.24-11.19-7.14-26.03-3.82-33.12 7.46s-3.78 26.21 7.41 33.36C408.27 165.97 432 209.11 432 256s-23.73 90.03-63.48 115.42c-11.19 7.14-14.5 22.07-7.41 33.36 6.51 10.36 21.12 15.14 33.12 7.46C447.94 377.94 480 319.54 480 256zm-141.77-76.87c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 228.28 336 241.63 336 256c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.86z"]
};
var faVoteYea = {
  prefix: 'fas',
  iconName: 'vote-yea',
  icon: [640, 512, [], "f772", "M608 320h-64v64h22.4c5.3 0 9.6 3.6 9.6 8v16c0 4.4-4.3 8-9.6 8H73.6c-5.3 0-9.6-3.6-9.6-8v-16c0-4.4 4.3-8 9.6-8H96v-64H32c-17.7 0-32 14.3-32 32v96c0 17.7 14.3 32 32 32h576c17.7 0 32-14.3 32-32v-96c0-17.7-14.3-32-32-32zm-96 64V64.3c0-17.9-14.5-32.3-32.3-32.3H160.4C142.5 32 128 46.5 128 64.3V384h384zM211.2 202l25.5-25.3c4.2-4.2 11-4.2 15.2.1l41.3 41.6 95.2-94.4c4.2-4.2 11-4.2 15.2.1l25.3 25.5c4.2 4.2 4.2 11-.1 15.2L300.5 292c-4.2 4.2-11 4.2-15.2-.1l-74.1-74.7c-4.3-4.2-4.2-11 0-15.2z"]
};
var faVrCardboard = {
  prefix: 'fas',
  iconName: 'vr-cardboard',
  icon: [640, 512, [], "f729", "M608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h160.22c25.19 0 48.03-14.77 58.36-37.74l27.74-61.64C286.21 331.08 302.35 320 320 320s33.79 11.08 41.68 28.62l27.74 61.64C399.75 433.23 422.6 448 447.78 448H608c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM160 304c-35.35 0-64-28.65-64-64s28.65-64 64-64 64 28.65 64 64-28.65 64-64 64zm320 0c-35.35 0-64-28.65-64-64s28.65-64 64-64 64 28.65 64 64-28.65 64-64 64z"]
};
var faWalking = {
  prefix: 'fas',
  iconName: 'walking',
  icon: [320, 512, [], "f554", "M208 96c26.5 0 48-21.5 48-48S234.5 0 208 0s-48 21.5-48 48 21.5 48 48 48zm94.5 149.1l-23.3-11.8-9.7-29.4c-14.7-44.6-55.7-75.8-102.2-75.9-36-.1-55.9 10.1-93.3 25.2-21.6 8.7-39.3 25.2-49.7 46.2L17.6 213c-7.8 15.8-1.5 35 14.2 42.9 15.6 7.9 34.6 1.5 42.5-14.3L81 228c3.5-7 9.3-12.5 16.5-15.4l26.8-10.8-15.2 60.7c-5.2 20.8.4 42.9 14.9 58.8l59.9 65.4c7.2 7.9 12.3 17.4 14.9 27.7l18.3 73.3c4.3 17.1 21.7 27.6 38.8 23.3 17.1-4.3 27.6-21.7 23.3-38.8l-22.2-89c-2.6-10.3-7.7-19.9-14.9-27.7l-45.5-49.7 17.2-68.7 5.5 16.5c5.3 16.1 16.7 29.4 31.7 37l23.3 11.8c15.6 7.9 34.6 1.5 42.5-14.3 7.7-15.7 1.4-35.1-14.3-43zM73.6 385.8c-3.2 8.1-8 15.4-14.2 21.5l-50 50.1c-12.5 12.5-12.5 32.8 0 45.3s32.7 12.5 45.2 0l59.4-59.4c6.1-6.1 10.9-13.4 14.2-21.5l13.5-33.8c-55.3-60.3-38.7-41.8-47.4-53.7l-20.7 51.5z"]
};
var faWallet = {
  prefix: 'fas',
  iconName: 'wallet',
  icon: [512, 512, [], "f555", "M461.2 128H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h384c8.84 0 16-7.16 16-16 0-26.51-21.49-48-48-48H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h397.2c28.02 0 50.8-21.53 50.8-48V176c0-26.47-22.78-48-50.8-48zM416 336c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
};
var faWarehouse = {
  prefix: 'fas',
  iconName: 'warehouse',
  icon: [640, 512, [], "f494", "M504 352H136.4c-4.4 0-8 3.6-8 8l-.1 48c0 4.4 3.6 8 8 8H504c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm0 96H136.1c-4.4 0-8 3.6-8 8l-.1 48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm0-192H136.6c-4.4 0-8 3.6-8 8l-.1 48c0 4.4 3.6 8 8 8H504c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm106.5-139L338.4 3.7a48.15 48.15 0 0 0-36.9 0L29.5 117C11.7 124.5 0 141.9 0 161.3V504c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8V256c0-17.6 14.6-32 32.6-32h382.8c18 0 32.6 14.4 32.6 32v248c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8V161.3c0-19.4-11.7-36.8-29.5-44.3z"]
};
var faWater = {
  prefix: 'fas',
  iconName: 'water',
  icon: [576, 512, [], "f773", "M562.1 383.9c-21.5-2.4-42.1-10.5-57.9-22.9-14.1-11.1-34.2-11.3-48.2 0-37.9 30.4-107.2 30.4-145.7-1.5-13.5-11.2-33-9.1-46.7 1.8-38 30.1-106.9 30-145.2-1.7-13.5-11.2-33.3-8.9-47.1 2-15.5 12.2-36 20.1-57.7 22.4-7.9.8-13.6 7.8-13.6 15.7v32.2c0 9.1 7.6 16.8 16.7 16 28.8-2.5 56.1-11.4 79.4-25.9 56.5 34.6 137 34.1 192 0 56.5 34.6 137 34.1 192 0 23.3 14.2 50.9 23.3 79.1 25.8 9.1.8 16.7-6.9 16.7-16v-31.6c.1-8-5.7-15.4-13.8-16.3zm0-144c-21.5-2.4-42.1-10.5-57.9-22.9-14.1-11.1-34.2-11.3-48.2 0-37.9 30.4-107.2 30.4-145.7-1.5-13.5-11.2-33-9.1-46.7 1.8-38 30.1-106.9 30-145.2-1.7-13.5-11.2-33.3-8.9-47.1 2-15.5 12.2-36 20.1-57.7 22.4-7.9.8-13.6 7.8-13.6 15.7v32.2c0 9.1 7.6 16.8 16.7 16 28.8-2.5 56.1-11.4 79.4-25.9 56.5 34.6 137 34.1 192 0 56.5 34.6 137 34.1 192 0 23.3 14.2 50.9 23.3 79.1 25.8 9.1.8 16.7-6.9 16.7-16v-31.6c.1-8-5.7-15.4-13.8-16.3zm0-144C540.6 93.4 520 85.4 504.2 73 490.1 61.9 470 61.7 456 73c-37.9 30.4-107.2 30.4-145.7-1.5-13.5-11.2-33-9.1-46.7 1.8-38 30.1-106.9 30-145.2-1.7-13.5-11.2-33.3-8.9-47.1 2-15.5 12.2-36 20.1-57.7 22.4-7.9.8-13.6 7.8-13.6 15.7v32.2c0 9.1 7.6 16.8 16.7 16 28.8-2.5 56.1-11.4 79.4-25.9 56.5 34.6 137 34.1 192 0 56.5 34.6 137 34.1 192 0 23.3 14.2 50.9 23.3 79.1 25.8 9.1.8 16.7-6.9 16.7-16v-31.6c.1-8-5.7-15.4-13.8-16.3z"]
};
var faWaveSquare = {
  prefix: 'fas',
  iconName: 'wave-square',
  icon: [640, 512, [], "f83e", "M476 480H324a36 36 0 0 1-36-36V96h-96v156a36 36 0 0 1-36 36H16a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h112V68a36 36 0 0 1 36-36h152a36 36 0 0 1 36 36v348h96V260a36 36 0 0 1 36-36h140a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H512v156a36 36 0 0 1-36 36z"]
};
var faWeight = {
  prefix: 'fas',
  iconName: 'weight',
  icon: [512, 512, [], "f496", "M448 64h-25.98C438.44 92.28 448 125.01 448 160c0 105.87-86.13 192-192 192S64 265.87 64 160c0-34.99 9.56-67.72 25.98-96H64C28.71 64 0 92.71 0 128v320c0 35.29 28.71 64 64 64h384c35.29 0 64-28.71 64-64V128c0-35.29-28.71-64-64-64zM256 320c88.37 0 160-71.63 160-160S344.37 0 256 0 96 71.63 96 160s71.63 160 160 160zm-.3-151.94l33.58-78.36c3.5-8.17 12.94-11.92 21.03-8.41 8.12 3.48 11.88 12.89 8.41 21l-33.67 78.55C291.73 188 296 197.45 296 208c0 22.09-17.91 40-40 40s-40-17.91-40-40c0-21.98 17.76-39.77 39.7-39.94z"]
};
var faWeightHanging = {
  prefix: 'fas',
  iconName: 'weight-hanging',
  icon: [512, 512, [], "f5cd", "M510.28 445.86l-73.03-292.13c-3.8-15.19-16.44-25.72-30.87-25.72h-60.25c3.57-10.05 5.88-20.72 5.88-32 0-53.02-42.98-96-96-96s-96 42.98-96 96c0 11.28 2.3 21.95 5.88 32h-60.25c-14.43 0-27.08 10.54-30.87 25.72L1.72 445.86C-6.61 479.17 16.38 512 48.03 512h415.95c31.64 0 54.63-32.83 46.3-66.14zM256 128c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32z"]
};
var faWheelchair = {
  prefix: 'fas',
  iconName: 'wheelchair',
  icon: [512, 512, [], "f193", "M496.101 385.669l14.227 28.663c3.929 7.915.697 17.516-7.218 21.445l-65.465 32.886c-16.049 7.967-35.556 1.194-43.189-15.055L331.679 320H192c-15.925 0-29.426-11.71-31.679-27.475C126.433 55.308 128.38 70.044 128 64c0-36.358 30.318-65.635 67.052-63.929 33.271 1.545 60.048 28.905 60.925 62.201.868 32.933-23.152 60.423-54.608 65.039l4.67 32.69H336c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H215.182l4.572 32H352a32 32 0 0 1 28.962 18.392L438.477 396.8l36.178-18.349c7.915-3.929 17.517-.697 21.446 7.218zM311.358 352h-24.506c-7.788 54.204-54.528 96-110.852 96-61.757 0-112-50.243-112-112 0-41.505 22.694-77.809 56.324-97.156-3.712-25.965-6.844-47.86-9.488-66.333C45.956 198.464 0 261.963 0 336c0 97.047 78.953 176 176 176 71.87 0 133.806-43.308 161.11-105.192L311.358 352z"]
};
var faWifi = {
  prefix: 'fas',
  iconName: 'wifi',
  icon: [640, 512, [], "f1eb", "M634.91 154.88C457.74-8.99 182.19-8.93 5.09 154.88c-6.66 6.16-6.79 16.59-.35 22.98l34.24 33.97c6.14 6.1 16.02 6.23 22.4.38 145.92-133.68 371.3-133.71 517.25 0 6.38 5.85 16.26 5.71 22.4-.38l34.24-33.97c6.43-6.39 6.3-16.82-.36-22.98zM320 352c-35.35 0-64 28.65-64 64s28.65 64 64 64 64-28.65 64-64-28.65-64-64-64zm202.67-83.59c-115.26-101.93-290.21-101.82-405.34 0-6.9 6.1-7.12 16.69-.57 23.15l34.44 33.99c6 5.92 15.66 6.32 22.05.8 83.95-72.57 209.74-72.41 293.49 0 6.39 5.52 16.05 5.13 22.05-.8l34.44-33.99c6.56-6.46 6.33-17.06-.56-23.15z"]
};
var faWind = {
  prefix: 'fas',
  iconName: 'wind',
  icon: [512, 512, [], "f72e", "M156.7 256H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h142.2c15.9 0 30.8 10.9 33.4 26.6 3.3 20-12.1 37.4-31.6 37.4-14.1 0-26.1-9.2-30.4-21.9-2.1-6.3-8.6-10.1-15.2-10.1H81.6c-9.8 0-17.7 8.8-15.9 18.4 8.6 44.1 47.6 77.6 94.2 77.6 57.1 0 102.7-50.1 95.2-108.6C249 291 205.4 256 156.7 256zM16 224h336c59.7 0 106.8-54.8 93.8-116.7-7.6-36.2-36.9-65.5-73.1-73.1-55.4-11.6-105.1 24.9-114.9 75.5-1.9 9.6 6.1 18.3 15.8 18.3h32.8c6.7 0 13.1-3.8 15.2-10.1C325.9 105.2 337.9 96 352 96c19.4 0 34.9 17.4 31.6 37.4-2.6 15.7-17.4 26.6-33.4 26.6H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16zm384 32H243.7c19.3 16.6 33.2 38.8 39.8 64H400c26.5 0 48 21.5 48 48s-21.5 48-48 48c-17.9 0-33.3-9.9-41.6-24.4-2.9-5-8.7-7.6-14.5-7.6h-33.8c-10.9 0-19 10.8-15.3 21.1 17.8 50.6 70.5 84.8 129.4 72.3 41.2-8.7 75.1-41.6 84.7-82.7C526 321.5 470.5 256 400 256z"]
};
var faWindowClose = {
  prefix: 'fas',
  iconName: 'window-close',
  icon: [512, 512, [], "f410", "M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-83.6 290.5c4.8 4.8 4.8 12.6 0 17.4l-40.5 40.5c-4.8 4.8-12.6 4.8-17.4 0L256 313.3l-66.5 67.1c-4.8 4.8-12.6 4.8-17.4 0l-40.5-40.5c-4.8-4.8-4.8-12.6 0-17.4l67.1-66.5-67.1-66.5c-4.8-4.8-4.8-12.6 0-17.4l40.5-40.5c4.8-4.8 12.6-4.8 17.4 0l66.5 67.1 66.5-67.1c4.8-4.8 12.6-4.8 17.4 0l40.5 40.5c4.8 4.8 4.8 12.6 0 17.4L313.3 256l67.1 66.5z"]
};
var faWindowMaximize = {
  prefix: 'fas',
  iconName: 'window-maximize',
  icon: [512, 512, [], "f2d0", "M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-16 160H64v-84c0-6.6 5.4-12 12-12h360c6.6 0 12 5.4 12 12v84z"]
};
var faWindowMinimize = {
  prefix: 'fas',
  iconName: 'window-minimize',
  icon: [512, 512, [], "f2d1", "M464 352H48c-26.5 0-48 21.5-48 48v32c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48v-32c0-26.5-21.5-48-48-48z"]
};
var faWindowRestore = {
  prefix: 'fas',
  iconName: 'window-restore',
  icon: [512, 512, [], "f2d2", "M512 48v288c0 26.5-21.5 48-48 48h-48V176c0-44.1-35.9-80-80-80H128V48c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zM384 176v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zm-68 28c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v52h252v-52z"]
};
var faWineBottle = {
  prefix: 'fas',
  iconName: 'wine-bottle',
  icon: [512, 512, [], "f72f", "M507.31 72.57L439.43 4.69c-6.25-6.25-16.38-6.25-22.63 0l-22.63 22.63c-6.25 6.25-6.25 16.38 0 22.63l-76.67 76.67c-46.58-19.7-102.4-10.73-140.37 27.23L18.75 312.23c-24.99 24.99-24.99 65.52 0 90.51l90.51 90.51c24.99 24.99 65.52 24.99 90.51 0l158.39-158.39c37.96-37.96 46.93-93.79 27.23-140.37l76.67-76.67c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.24-6.24 6.24-16.37-.01-22.62zM179.22 423.29l-90.51-90.51 122.04-122.04 90.51 90.51-122.04 122.04z"]
};
var faWineGlass = {
  prefix: 'fas',
  iconName: 'wine-glass',
  icon: [288, 512, [], "f4e3", "M216 464h-40V346.81c68.47-15.89 118.05-79.91 111.4-154.16l-15.95-178.1C270.71 6.31 263.9 0 255.74 0H32.26c-8.15 0-14.97 6.31-15.7 14.55L.6 192.66C-6.05 266.91 43.53 330.93 112 346.82V464H72c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h208c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40z"]
};
var faWineGlassAlt = {
  prefix: 'fas',
  iconName: 'wine-glass-alt',
  icon: [288, 512, [], "f5ce", "M216 464h-40V346.81c68.47-15.89 118.05-79.91 111.4-154.16l-15.95-178.1C270.71 6.31 263.9 0 255.74 0H32.26c-8.15 0-14.97 6.31-15.7 14.55L.6 192.66C-6.05 266.91 43.53 330.93 112 346.82V464H72c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h208c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40zM61.75 48h164.5l7.17 80H54.58l7.17-80z"]
};
var faWonSign = {
  prefix: 'fas',
  iconName: 'won-sign',
  icon: [576, 512, [], "f159", "M564 192c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-48l18.6-80.6c1.7-7.5-4-14.7-11.7-14.7h-46.1c-5.7 0-10.6 4-11.7 9.5L450.7 128H340.8l-19.7-86c-1.3-5.5-6.1-9.3-11.7-9.3h-44c-5.6 0-10.4 3.8-11.7 9.3l-20 86H125l-17.5-85.7c-1.1-5.6-6.1-9.6-11.8-9.6H53.6c-7.7 0-13.4 7.1-11.7 14.6L60 128H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h62.3l7.2 32H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h83.9l40.9 182.6c1.2 5.5 6.1 9.4 11.7 9.4h56.8c5.6 0 10.4-3.9 11.7-9.3L259.3 288h55.1l42.4 182.7c1.3 5.4 6.1 9.3 11.7 9.3h56.8c5.6 0 10.4-3.9 11.7-9.3L479.1 288H564c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-70.1l7.4-32zM183.8 342c-6.2 25.8-6.8 47.2-7.3 47.2h-1.1s-1.7-22-6.8-47.2l-11-54h38.8zm27.5-118h-66.8l-6.5-32h80.8zm62.9 0l2-8.6c1.9-8 3.5-16 4.8-23.4h11.8c1.3 7.4 2.9 15.4 4.8 23.4l2 8.6zm130.9 118c-5.1 25.2-6.8 47.2-6.8 47.2h-1.1c-.6 0-1.1-21.4-7.3-47.2l-12.4-54h39.1zm25.2-118h-67.4l-7.3-32h81.6z"]
};
var faWrench = {
  prefix: 'fas',
  iconName: 'wrench',
  icon: [512, 512, [], "f0ad", "M507.73 109.1c-2.24-9.03-13.54-12.09-20.12-5.51l-74.36 74.36-67.88-11.31-11.31-67.88 74.36-74.36c6.62-6.62 3.43-17.9-5.66-20.16-47.38-11.74-99.55.91-136.58 37.93-39.64 39.64-50.55 97.1-34.05 147.2L18.74 402.76c-24.99 24.99-24.99 65.51 0 90.5 24.99 24.99 65.51 24.99 90.5 0l213.21-213.21c50.12 16.71 107.47 5.68 147.37-34.22 37.07-37.07 49.7-89.32 37.91-136.73zM64 472c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"]
};
var faXRay = {
  prefix: 'fas',
  iconName: 'x-ray',
  icon: [640, 512, [], "f497", "M240 384c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zm160 32c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16zM624 0H16C7.2 0 0 7.2 0 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16zm0 448h-48V96H64v352H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM480 248c0 4.4-3.6 8-8 8H336v32h104c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H336v32h64c26.5 0 48 21.5 48 48s-21.5 48-48 48-48-21.5-48-48v-16h-64v16c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48h64v-32H200c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h104v-32H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h136v-32H200c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h104v-24c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v24h104c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H336v32h136c4.4 0 8 3.6 8 8v16z"]
};
var faYenSign = {
  prefix: 'fas',
  iconName: 'yen-sign',
  icon: [384, 512, [], "f157", "M351.2 32h-65.3c-4.6 0-8.8 2.6-10.8 6.7l-55.4 113.2c-14.5 34.7-27.1 71.9-27.1 71.9h-1.3s-12.6-37.2-27.1-71.9L108.8 38.7c-2-4.1-6.2-6.7-10.8-6.7H32.8c-9.1 0-14.8 9.7-10.6 17.6L102.3 200H44c-6.6 0-12 5.4-12 12v32c0 6.6 5.4 12 12 12h88.2l19.8 37.2V320H44c-6.6 0-12 5.4-12 12v32c0 6.6 5.4 12 12 12h108v92c0 6.6 5.4 12 12 12h56c6.6 0 12-5.4 12-12v-92h108c6.6 0 12-5.4 12-12v-32c0-6.6-5.4-12-12-12H232v-26.8l19.8-37.2H340c6.6 0 12-5.4 12-12v-32c0-6.6-5.4-12-12-12h-58.3l80.1-150.4c4.3-7.9-1.5-17.6-10.6-17.6z"]
};
var faYinYang = {
  prefix: 'fas',
  iconName: 'yin-yang',
  icon: [496, 512, [], "f6ad", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 376c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-128c-53.02 0-96 42.98-96 96s42.98 96 96 96c-106.04 0-192-85.96-192-192S141.96 64 248 64c53.02 0 96 42.98 96 96s-42.98 96-96 96zm0-128c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"]
};
var _iconsCache = {
  faAd: faAd,
  faAddressBook: faAddressBook,
  faAddressCard: faAddressCard,
  faAdjust: faAdjust,
  faAirFreshener: faAirFreshener,
  faAlignCenter: faAlignCenter,
  faAlignJustify: faAlignJustify,
  faAlignLeft: faAlignLeft,
  faAlignRight: faAlignRight,
  faAllergies: faAllergies,
  faAmbulance: faAmbulance,
  faAmericanSignLanguageInterpreting: faAmericanSignLanguageInterpreting,
  faAnchor: faAnchor,
  faAngleDoubleDown: faAngleDoubleDown,
  faAngleDoubleLeft: faAngleDoubleLeft,
  faAngleDoubleRight: faAngleDoubleRight,
  faAngleDoubleUp: faAngleDoubleUp,
  faAngleDown: faAngleDown,
  faAngleLeft: faAngleLeft,
  faAngleRight: faAngleRight,
  faAngleUp: faAngleUp,
  faAngry: faAngry,
  faAnkh: faAnkh,
  faAppleAlt: faAppleAlt,
  faArchive: faArchive,
  faArchway: faArchway,
  faArrowAltCircleDown: faArrowAltCircleDown,
  faArrowAltCircleLeft: faArrowAltCircleLeft,
  faArrowAltCircleRight: faArrowAltCircleRight,
  faArrowAltCircleUp: faArrowAltCircleUp,
  faArrowCircleDown: faArrowCircleDown,
  faArrowCircleLeft: faArrowCircleLeft,
  faArrowCircleRight: faArrowCircleRight,
  faArrowCircleUp: faArrowCircleUp,
  faArrowDown: faArrowDown,
  faArrowLeft: faArrowLeft,
  faArrowRight: faArrowRight,
  faArrowUp: faArrowUp,
  faArrowsAlt: faArrowsAlt,
  faArrowsAltH: faArrowsAltH,
  faArrowsAltV: faArrowsAltV,
  faAssistiveListeningSystems: faAssistiveListeningSystems,
  faAsterisk: faAsterisk,
  faAt: faAt,
  faAtlas: faAtlas,
  faAtom: faAtom,
  faAudioDescription: faAudioDescription,
  faAward: faAward,
  faBaby: faBaby,
  faBabyCarriage: faBabyCarriage,
  faBackspace: faBackspace,
  faBackward: faBackward,
  faBacon: faBacon,
  faBacteria: faBacteria,
  faBacterium: faBacterium,
  faBahai: faBahai,
  faBalanceScale: faBalanceScale,
  faBalanceScaleLeft: faBalanceScaleLeft,
  faBalanceScaleRight: faBalanceScaleRight,
  faBan: faBan,
  faBandAid: faBandAid,
  faBarcode: faBarcode,
  faBars: faBars,
  faBaseballBall: faBaseballBall,
  faBasketballBall: faBasketballBall,
  faBath: faBath,
  faBatteryEmpty: faBatteryEmpty,
  faBatteryFull: faBatteryFull,
  faBatteryHalf: faBatteryHalf,
  faBatteryQuarter: faBatteryQuarter,
  faBatteryThreeQuarters: faBatteryThreeQuarters,
  faBed: faBed,
  faBeer: faBeer,
  faBell: faBell,
  faBellSlash: faBellSlash,
  faBezierCurve: faBezierCurve,
  faBible: faBible,
  faBicycle: faBicycle,
  faBiking: faBiking,
  faBinoculars: faBinoculars,
  faBiohazard: faBiohazard,
  faBirthdayCake: faBirthdayCake,
  faBlender: faBlender,
  faBlenderPhone: faBlenderPhone,
  faBlind: faBlind,
  faBlog: faBlog,
  faBold: faBold,
  faBolt: faBolt,
  faBomb: faBomb,
  faBone: faBone,
  faBong: faBong,
  faBook: faBook,
  faBookDead: faBookDead,
  faBookMedical: faBookMedical,
  faBookOpen: faBookOpen,
  faBookReader: faBookReader,
  faBookmark: faBookmark,
  faBorderAll: faBorderAll,
  faBorderNone: faBorderNone,
  faBorderStyle: faBorderStyle,
  faBowlingBall: faBowlingBall,
  faBox: faBox,
  faBoxOpen: faBoxOpen,
  faBoxTissue: faBoxTissue,
  faBoxes: faBoxes,
  faBraille: faBraille,
  faBrain: faBrain,
  faBreadSlice: faBreadSlice,
  faBriefcase: faBriefcase,
  faBriefcaseMedical: faBriefcaseMedical,
  faBroadcastTower: faBroadcastTower,
  faBroom: faBroom,
  faBrush: faBrush,
  faBug: faBug,
  faBuilding: faBuilding,
  faBullhorn: faBullhorn,
  faBullseye: faBullseye,
  faBurn: faBurn,
  faBus: faBus,
  faBusAlt: faBusAlt,
  faBusinessTime: faBusinessTime,
  faCalculator: faCalculator,
  faCalendar: faCalendar,
  faCalendarAlt: faCalendarAlt,
  faCalendarCheck: faCalendarCheck,
  faCalendarDay: faCalendarDay,
  faCalendarMinus: faCalendarMinus,
  faCalendarPlus: faCalendarPlus,
  faCalendarTimes: faCalendarTimes,
  faCalendarWeek: faCalendarWeek,
  faCamera: faCamera,
  faCameraRetro: faCameraRetro,
  faCampground: faCampground,
  faCandyCane: faCandyCane,
  faCannabis: faCannabis,
  faCapsules: faCapsules,
  faCar: faCar,
  faCarAlt: faCarAlt,
  faCarBattery: faCarBattery,
  faCarCrash: faCarCrash,
  faCarSide: faCarSide,
  faCaravan: faCaravan,
  faCaretDown: faCaretDown,
  faCaretLeft: faCaretLeft,
  faCaretRight: faCaretRight,
  faCaretSquareDown: faCaretSquareDown,
  faCaretSquareLeft: faCaretSquareLeft,
  faCaretSquareRight: faCaretSquareRight,
  faCaretSquareUp: faCaretSquareUp,
  faCaretUp: faCaretUp,
  faCarrot: faCarrot,
  faCartArrowDown: faCartArrowDown,
  faCartPlus: faCartPlus,
  faCashRegister: faCashRegister,
  faCat: faCat,
  faCertificate: faCertificate,
  faChair: faChair,
  faChalkboard: faChalkboard,
  faChalkboardTeacher: faChalkboardTeacher,
  faChargingStation: faChargingStation,
  faChartArea: faChartArea,
  faChartBar: faChartBar,
  faChartLine: faChartLine,
  faChartPie: faChartPie,
  faCheck: faCheck,
  faCheckCircle: faCheckCircle,
  faCheckDouble: faCheckDouble,
  faCheckSquare: faCheckSquare,
  faCheese: faCheese,
  faChess: faChess,
  faChessBishop: faChessBishop,
  faChessBoard: faChessBoard,
  faChessKing: faChessKing,
  faChessKnight: faChessKnight,
  faChessPawn: faChessPawn,
  faChessQueen: faChessQueen,
  faChessRook: faChessRook,
  faChevronCircleDown: faChevronCircleDown,
  faChevronCircleLeft: faChevronCircleLeft,
  faChevronCircleRight: faChevronCircleRight,
  faChevronCircleUp: faChevronCircleUp,
  faChevronDown: faChevronDown,
  faChevronLeft: faChevronLeft,
  faChevronRight: faChevronRight,
  faChevronUp: faChevronUp,
  faChild: faChild,
  faChurch: faChurch,
  faCircle: faCircle,
  faCircleNotch: faCircleNotch,
  faCity: faCity,
  faClinicMedical: faClinicMedical,
  faClipboard: faClipboard,
  faClipboardCheck: faClipboardCheck,
  faClipboardList: faClipboardList,
  faClock: faClock,
  faClone: faClone,
  faClosedCaptioning: faClosedCaptioning,
  faCloud: faCloud,
  faCloudDownloadAlt: faCloudDownloadAlt,
  faCloudMeatball: faCloudMeatball,
  faCloudMoon: faCloudMoon,
  faCloudMoonRain: faCloudMoonRain,
  faCloudRain: faCloudRain,
  faCloudShowersHeavy: faCloudShowersHeavy,
  faCloudSun: faCloudSun,
  faCloudSunRain: faCloudSunRain,
  faCloudUploadAlt: faCloudUploadAlt,
  faCocktail: faCocktail,
  faCode: faCode,
  faCodeBranch: faCodeBranch,
  faCoffee: faCoffee,
  faCog: faCog,
  faCogs: faCogs,
  faCoins: faCoins,
  faColumns: faColumns,
  faComment: faComment,
  faCommentAlt: faCommentAlt,
  faCommentDollar: faCommentDollar,
  faCommentDots: faCommentDots,
  faCommentMedical: faCommentMedical,
  faCommentSlash: faCommentSlash,
  faComments: faComments,
  faCommentsDollar: faCommentsDollar,
  faCompactDisc: faCompactDisc,
  faCompass: faCompass,
  faCompress: faCompress,
  faCompressAlt: faCompressAlt,
  faCompressArrowsAlt: faCompressArrowsAlt,
  faConciergeBell: faConciergeBell,
  faCookie: faCookie,
  faCookieBite: faCookieBite,
  faCopy: faCopy,
  faCopyright: faCopyright,
  faCouch: faCouch,
  faCreditCard: faCreditCard,
  faCrop: faCrop,
  faCropAlt: faCropAlt,
  faCross: faCross,
  faCrosshairs: faCrosshairs,
  faCrow: faCrow,
  faCrown: faCrown,
  faCrutch: faCrutch,
  faCube: faCube,
  faCubes: faCubes,
  faCut: faCut,
  faDatabase: faDatabase,
  faDeaf: faDeaf,
  faDemocrat: faDemocrat,
  faDesktop: faDesktop,
  faDharmachakra: faDharmachakra,
  faDiagnoses: faDiagnoses,
  faDice: faDice,
  faDiceD20: faDiceD20,
  faDiceD6: faDiceD6,
  faDiceFive: faDiceFive,
  faDiceFour: faDiceFour,
  faDiceOne: faDiceOne,
  faDiceSix: faDiceSix,
  faDiceThree: faDiceThree,
  faDiceTwo: faDiceTwo,
  faDigitalTachograph: faDigitalTachograph,
  faDirections: faDirections,
  faDisease: faDisease,
  faDivide: faDivide,
  faDizzy: faDizzy,
  faDna: faDna,
  faDog: faDog,
  faDollarSign: faDollarSign,
  faDolly: faDolly,
  faDollyFlatbed: faDollyFlatbed,
  faDonate: faDonate,
  faDoorClosed: faDoorClosed,
  faDoorOpen: faDoorOpen,
  faDotCircle: faDotCircle,
  faDove: faDove,
  faDownload: faDownload,
  faDraftingCompass: faDraftingCompass,
  faDragon: faDragon,
  faDrawPolygon: faDrawPolygon,
  faDrum: faDrum,
  faDrumSteelpan: faDrumSteelpan,
  faDrumstickBite: faDrumstickBite,
  faDumbbell: faDumbbell,
  faDumpster: faDumpster,
  faDumpsterFire: faDumpsterFire,
  faDungeon: faDungeon,
  faEdit: faEdit,
  faEgg: faEgg,
  faEject: faEject,
  faEllipsisH: faEllipsisH,
  faEllipsisV: faEllipsisV,
  faEnvelope: faEnvelope,
  faEnvelopeOpen: faEnvelopeOpen,
  faEnvelopeOpenText: faEnvelopeOpenText,
  faEnvelopeSquare: faEnvelopeSquare,
  faEquals: faEquals,
  faEraser: faEraser,
  faEthernet: faEthernet,
  faEuroSign: faEuroSign,
  faExchangeAlt: faExchangeAlt,
  faExclamation: faExclamation,
  faExclamationCircle: faExclamationCircle,
  faExclamationTriangle: faExclamationTriangle,
  faExpand: faExpand,
  faExpandAlt: faExpandAlt,
  faExpandArrowsAlt: faExpandArrowsAlt,
  faExternalLinkAlt: faExternalLinkAlt,
  faExternalLinkSquareAlt: faExternalLinkSquareAlt,
  faEye: faEye,
  faEyeDropper: faEyeDropper,
  faEyeSlash: faEyeSlash,
  faFan: faFan,
  faFastBackward: faFastBackward,
  faFastForward: faFastForward,
  faFaucet: faFaucet,
  faFax: faFax,
  faFeather: faFeather,
  faFeatherAlt: faFeatherAlt,
  faFemale: faFemale,
  faFighterJet: faFighterJet,
  faFile: faFile,
  faFileAlt: faFileAlt,
  faFileArchive: faFileArchive,
  faFileAudio: faFileAudio,
  faFileCode: faFileCode,
  faFileContract: faFileContract,
  faFileCsv: faFileCsv,
  faFileDownload: faFileDownload,
  faFileExcel: faFileExcel,
  faFileExport: faFileExport,
  faFileImage: faFileImage,
  faFileImport: faFileImport,
  faFileInvoice: faFileInvoice,
  faFileInvoiceDollar: faFileInvoiceDollar,
  faFileMedical: faFileMedical,
  faFileMedicalAlt: faFileMedicalAlt,
  faFilePdf: faFilePdf,
  faFilePowerpoint: faFilePowerpoint,
  faFilePrescription: faFilePrescription,
  faFileSignature: faFileSignature,
  faFileUpload: faFileUpload,
  faFileVideo: faFileVideo,
  faFileWord: faFileWord,
  faFill: faFill,
  faFillDrip: faFillDrip,
  faFilm: faFilm,
  faFilter: faFilter,
  faFingerprint: faFingerprint,
  faFire: faFire,
  faFireAlt: faFireAlt,
  faFireExtinguisher: faFireExtinguisher,
  faFirstAid: faFirstAid,
  faFish: faFish,
  faFistRaised: faFistRaised,
  faFlag: faFlag,
  faFlagCheckered: faFlagCheckered,
  faFlagUsa: faFlagUsa,
  faFlask: faFlask,
  faFlushed: faFlushed,
  faFolder: faFolder,
  faFolderMinus: faFolderMinus,
  faFolderOpen: faFolderOpen,
  faFolderPlus: faFolderPlus,
  faFont: faFont,
  faFontAwesomeLogoFull: faFontAwesomeLogoFull,
  faFootballBall: faFootballBall,
  faForward: faForward,
  faFrog: faFrog,
  faFrown: faFrown,
  faFrownOpen: faFrownOpen,
  faFunnelDollar: faFunnelDollar,
  faFutbol: faFutbol,
  faGamepad: faGamepad,
  faGasPump: faGasPump,
  faGavel: faGavel,
  faGem: faGem,
  faGenderless: faGenderless,
  faGhost: faGhost,
  faGift: faGift,
  faGifts: faGifts,
  faGlassCheers: faGlassCheers,
  faGlassMartini: faGlassMartini,
  faGlassMartiniAlt: faGlassMartiniAlt,
  faGlassWhiskey: faGlassWhiskey,
  faGlasses: faGlasses,
  faGlobe: faGlobe,
  faGlobeAfrica: faGlobeAfrica,
  faGlobeAmericas: faGlobeAmericas,
  faGlobeAsia: faGlobeAsia,
  faGlobeEurope: faGlobeEurope,
  faGolfBall: faGolfBall,
  faGopuram: faGopuram,
  faGraduationCap: faGraduationCap,
  faGreaterThan: faGreaterThan,
  faGreaterThanEqual: faGreaterThanEqual,
  faGrimace: faGrimace,
  faGrin: faGrin,
  faGrinAlt: faGrinAlt,
  faGrinBeam: faGrinBeam,
  faGrinBeamSweat: faGrinBeamSweat,
  faGrinHearts: faGrinHearts,
  faGrinSquint: faGrinSquint,
  faGrinSquintTears: faGrinSquintTears,
  faGrinStars: faGrinStars,
  faGrinTears: faGrinTears,
  faGrinTongue: faGrinTongue,
  faGrinTongueSquint: faGrinTongueSquint,
  faGrinTongueWink: faGrinTongueWink,
  faGrinWink: faGrinWink,
  faGripHorizontal: faGripHorizontal,
  faGripLines: faGripLines,
  faGripLinesVertical: faGripLinesVertical,
  faGripVertical: faGripVertical,
  faGuitar: faGuitar,
  faHSquare: faHSquare,
  faHamburger: faHamburger,
  faHammer: faHammer,
  faHamsa: faHamsa,
  faHandHolding: faHandHolding,
  faHandHoldingHeart: faHandHoldingHeart,
  faHandHoldingMedical: faHandHoldingMedical,
  faHandHoldingUsd: faHandHoldingUsd,
  faHandHoldingWater: faHandHoldingWater,
  faHandLizard: faHandLizard,
  faHandMiddleFinger: faHandMiddleFinger,
  faHandPaper: faHandPaper,
  faHandPeace: faHandPeace,
  faHandPointDown: faHandPointDown,
  faHandPointLeft: faHandPointLeft,
  faHandPointRight: faHandPointRight,
  faHandPointUp: faHandPointUp,
  faHandPointer: faHandPointer,
  faHandRock: faHandRock,
  faHandScissors: faHandScissors,
  faHandSparkles: faHandSparkles,
  faHandSpock: faHandSpock,
  faHands: faHands,
  faHandsHelping: faHandsHelping,
  faHandsWash: faHandsWash,
  faHandshake: faHandshake,
  faHandshakeAltSlash: faHandshakeAltSlash,
  faHandshakeSlash: faHandshakeSlash,
  faHanukiah: faHanukiah,
  faHardHat: faHardHat,
  faHashtag: faHashtag,
  faHatCowboy: faHatCowboy,
  faHatCowboySide: faHatCowboySide,
  faHatWizard: faHatWizard,
  faHdd: faHdd,
  faHeadSideCough: faHeadSideCough,
  faHeadSideCoughSlash: faHeadSideCoughSlash,
  faHeadSideMask: faHeadSideMask,
  faHeadSideVirus: faHeadSideVirus,
  faHeading: faHeading,
  faHeadphones: faHeadphones,
  faHeadphonesAlt: faHeadphonesAlt,
  faHeadset: faHeadset,
  faHeart: faHeart,
  faHeartBroken: faHeartBroken,
  faHeartbeat: faHeartbeat,
  faHelicopter: faHelicopter,
  faHighlighter: faHighlighter,
  faHiking: faHiking,
  faHippo: faHippo,
  faHistory: faHistory,
  faHockeyPuck: faHockeyPuck,
  faHollyBerry: faHollyBerry,
  faHome: faHome,
  faHorse: faHorse,
  faHorseHead: faHorseHead,
  faHospital: faHospital,
  faHospitalAlt: faHospitalAlt,
  faHospitalSymbol: faHospitalSymbol,
  faHospitalUser: faHospitalUser,
  faHotTub: faHotTub,
  faHotdog: faHotdog,
  faHotel: faHotel,
  faHourglass: faHourglass,
  faHourglassEnd: faHourglassEnd,
  faHourglassHalf: faHourglassHalf,
  faHourglassStart: faHourglassStart,
  faHouseDamage: faHouseDamage,
  faHouseUser: faHouseUser,
  faHryvnia: faHryvnia,
  faICursor: faICursor,
  faIceCream: faIceCream,
  faIcicles: faIcicles,
  faIcons: faIcons,
  faIdBadge: faIdBadge,
  faIdCard: faIdCard,
  faIdCardAlt: faIdCardAlt,
  faIgloo: faIgloo,
  faImage: faImage,
  faImages: faImages,
  faInbox: faInbox,
  faIndent: faIndent,
  faIndustry: faIndustry,
  faInfinity: faInfinity,
  faInfo: faInfo,
  faInfoCircle: faInfoCircle,
  faItalic: faItalic,
  faJedi: faJedi,
  faJoint: faJoint,
  faJournalWhills: faJournalWhills,
  faKaaba: faKaaba,
  faKey: faKey,
  faKeyboard: faKeyboard,
  faKhanda: faKhanda,
  faKiss: faKiss,
  faKissBeam: faKissBeam,
  faKissWinkHeart: faKissWinkHeart,
  faKiwiBird: faKiwiBird,
  faLandmark: faLandmark,
  faLanguage: faLanguage,
  faLaptop: faLaptop,
  faLaptopCode: faLaptopCode,
  faLaptopHouse: faLaptopHouse,
  faLaptopMedical: faLaptopMedical,
  faLaugh: faLaugh,
  faLaughBeam: faLaughBeam,
  faLaughSquint: faLaughSquint,
  faLaughWink: faLaughWink,
  faLayerGroup: faLayerGroup,
  faLeaf: faLeaf,
  faLemon: faLemon,
  faLessThan: faLessThan,
  faLessThanEqual: faLessThanEqual,
  faLevelDownAlt: faLevelDownAlt,
  faLevelUpAlt: faLevelUpAlt,
  faLifeRing: faLifeRing,
  faLightbulb: faLightbulb,
  faLink: faLink,
  faLiraSign: faLiraSign,
  faList: faList,
  faListAlt: faListAlt,
  faListOl: faListOl,
  faListUl: faListUl,
  faLocationArrow: faLocationArrow,
  faLock: faLock,
  faLockOpen: faLockOpen,
  faLongArrowAltDown: faLongArrowAltDown,
  faLongArrowAltLeft: faLongArrowAltLeft,
  faLongArrowAltRight: faLongArrowAltRight,
  faLongArrowAltUp: faLongArrowAltUp,
  faLowVision: faLowVision,
  faLuggageCart: faLuggageCart,
  faLungs: faLungs,
  faLungsVirus: faLungsVirus,
  faMagic: faMagic,
  faMagnet: faMagnet,
  faMailBulk: faMailBulk,
  faMale: faMale,
  faMap: faMap,
  faMapMarked: faMapMarked,
  faMapMarkedAlt: faMapMarkedAlt,
  faMapMarker: faMapMarker,
  faMapMarkerAlt: faMapMarkerAlt,
  faMapPin: faMapPin,
  faMapSigns: faMapSigns,
  faMarker: faMarker,
  faMars: faMars,
  faMarsDouble: faMarsDouble,
  faMarsStroke: faMarsStroke,
  faMarsStrokeH: faMarsStrokeH,
  faMarsStrokeV: faMarsStrokeV,
  faMask: faMask,
  faMedal: faMedal,
  faMedkit: faMedkit,
  faMeh: faMeh,
  faMehBlank: faMehBlank,
  faMehRollingEyes: faMehRollingEyes,
  faMemory: faMemory,
  faMenorah: faMenorah,
  faMercury: faMercury,
  faMeteor: faMeteor,
  faMicrochip: faMicrochip,
  faMicrophone: faMicrophone,
  faMicrophoneAlt: faMicrophoneAlt,
  faMicrophoneAltSlash: faMicrophoneAltSlash,
  faMicrophoneSlash: faMicrophoneSlash,
  faMicroscope: faMicroscope,
  faMinus: faMinus,
  faMinusCircle: faMinusCircle,
  faMinusSquare: faMinusSquare,
  faMitten: faMitten,
  faMobile: faMobile,
  faMobileAlt: faMobileAlt,
  faMoneyBill: faMoneyBill,
  faMoneyBillAlt: faMoneyBillAlt,
  faMoneyBillWave: faMoneyBillWave,
  faMoneyBillWaveAlt: faMoneyBillWaveAlt,
  faMoneyCheck: faMoneyCheck,
  faMoneyCheckAlt: faMoneyCheckAlt,
  faMonument: faMonument,
  faMoon: faMoon,
  faMortarPestle: faMortarPestle,
  faMosque: faMosque,
  faMotorcycle: faMotorcycle,
  faMountain: faMountain,
  faMouse: faMouse,
  faMousePointer: faMousePointer,
  faMugHot: faMugHot,
  faMusic: faMusic,
  faNetworkWired: faNetworkWired,
  faNeuter: faNeuter,
  faNewspaper: faNewspaper,
  faNotEqual: faNotEqual,
  faNotesMedical: faNotesMedical,
  faObjectGroup: faObjectGroup,
  faObjectUngroup: faObjectUngroup,
  faOilCan: faOilCan,
  faOm: faOm,
  faOtter: faOtter,
  faOutdent: faOutdent,
  faPager: faPager,
  faPaintBrush: faPaintBrush,
  faPaintRoller: faPaintRoller,
  faPalette: faPalette,
  faPallet: faPallet,
  faPaperPlane: faPaperPlane,
  faPaperclip: faPaperclip,
  faParachuteBox: faParachuteBox,
  faParagraph: faParagraph,
  faParking: faParking,
  faPassport: faPassport,
  faPastafarianism: faPastafarianism,
  faPaste: faPaste,
  faPause: faPause,
  faPauseCircle: faPauseCircle,
  faPaw: faPaw,
  faPeace: faPeace,
  faPen: faPen,
  faPenAlt: faPenAlt,
  faPenFancy: faPenFancy,
  faPenNib: faPenNib,
  faPenSquare: faPenSquare,
  faPencilAlt: faPencilAlt,
  faPencilRuler: faPencilRuler,
  faPeopleArrows: faPeopleArrows,
  faPeopleCarry: faPeopleCarry,
  faPepperHot: faPepperHot,
  faPercent: faPercent,
  faPercentage: faPercentage,
  faPersonBooth: faPersonBooth,
  faPhone: faPhone,
  faPhoneAlt: faPhoneAlt,
  faPhoneSlash: faPhoneSlash,
  faPhoneSquare: faPhoneSquare,
  faPhoneSquareAlt: faPhoneSquareAlt,
  faPhoneVolume: faPhoneVolume,
  faPhotoVideo: faPhotoVideo,
  faPiggyBank: faPiggyBank,
  faPills: faPills,
  faPizzaSlice: faPizzaSlice,
  faPlaceOfWorship: faPlaceOfWorship,
  faPlane: faPlane,
  faPlaneArrival: faPlaneArrival,
  faPlaneDeparture: faPlaneDeparture,
  faPlaneSlash: faPlaneSlash,
  faPlay: faPlay,
  faPlayCircle: faPlayCircle,
  faPlug: faPlug,
  faPlus: faPlus,
  faPlusCircle: faPlusCircle,
  faPlusSquare: faPlusSquare,
  faPodcast: faPodcast,
  faPoll: faPoll,
  faPollH: faPollH,
  faPoo: faPoo,
  faPooStorm: faPooStorm,
  faPoop: faPoop,
  faPortrait: faPortrait,
  faPoundSign: faPoundSign,
  faPowerOff: faPowerOff,
  faPray: faPray,
  faPrayingHands: faPrayingHands,
  faPrescription: faPrescription,
  faPrescriptionBottle: faPrescriptionBottle,
  faPrescriptionBottleAlt: faPrescriptionBottleAlt,
  faPrint: faPrint,
  faProcedures: faProcedures,
  faProjectDiagram: faProjectDiagram,
  faPumpMedical: faPumpMedical,
  faPumpSoap: faPumpSoap,
  faPuzzlePiece: faPuzzlePiece,
  faQrcode: faQrcode,
  faQuestion: faQuestion,
  faQuestionCircle: faQuestionCircle,
  faQuidditch: faQuidditch,
  faQuoteLeft: faQuoteLeft,
  faQuoteRight: faQuoteRight,
  faQuran: faQuran,
  faRadiation: faRadiation,
  faRadiationAlt: faRadiationAlt,
  faRainbow: faRainbow,
  faRandom: faRandom,
  faReceipt: faReceipt,
  faRecordVinyl: faRecordVinyl,
  faRecycle: faRecycle,
  faRedo: faRedo,
  faRedoAlt: faRedoAlt,
  faRegistered: faRegistered,
  faRemoveFormat: faRemoveFormat,
  faReply: faReply,
  faReplyAll: faReplyAll,
  faRepublican: faRepublican,
  faRestroom: faRestroom,
  faRetweet: faRetweet,
  faRibbon: faRibbon,
  faRing: faRing,
  faRoad: faRoad,
  faRobot: faRobot,
  faRocket: faRocket,
  faRoute: faRoute,
  faRss: faRss,
  faRssSquare: faRssSquare,
  faRubleSign: faRubleSign,
  faRuler: faRuler,
  faRulerCombined: faRulerCombined,
  faRulerHorizontal: faRulerHorizontal,
  faRulerVertical: faRulerVertical,
  faRunning: faRunning,
  faRupeeSign: faRupeeSign,
  faSadCry: faSadCry,
  faSadTear: faSadTear,
  faSatellite: faSatellite,
  faSatelliteDish: faSatelliteDish,
  faSave: faSave,
  faSchool: faSchool,
  faScrewdriver: faScrewdriver,
  faScroll: faScroll,
  faSdCard: faSdCard,
  faSearch: faSearch,
  faSearchDollar: faSearchDollar,
  faSearchLocation: faSearchLocation,
  faSearchMinus: faSearchMinus,
  faSearchPlus: faSearchPlus,
  faSeedling: faSeedling,
  faServer: faServer,
  faShapes: faShapes,
  faShare: faShare,
  faShareAlt: faShareAlt,
  faShareAltSquare: faShareAltSquare,
  faShareSquare: faShareSquare,
  faShekelSign: faShekelSign,
  faShieldAlt: faShieldAlt,
  faShieldVirus: faShieldVirus,
  faShip: faShip,
  faShippingFast: faShippingFast,
  faShoePrints: faShoePrints,
  faShoppingBag: faShoppingBag,
  faShoppingBasket: faShoppingBasket,
  faShoppingCart: faShoppingCart,
  faShower: faShower,
  faShuttleVan: faShuttleVan,
  faSign: faSign,
  faSignInAlt: faSignInAlt,
  faSignLanguage: faSignLanguage,
  faSignOutAlt: faSignOutAlt,
  faSignal: faSignal,
  faSignature: faSignature,
  faSimCard: faSimCard,
  faSink: faSink,
  faSitemap: faSitemap,
  faSkating: faSkating,
  faSkiing: faSkiing,
  faSkiingNordic: faSkiingNordic,
  faSkull: faSkull,
  faSkullCrossbones: faSkullCrossbones,
  faSlash: faSlash,
  faSleigh: faSleigh,
  faSlidersH: faSlidersH,
  faSmile: faSmile,
  faSmileBeam: faSmileBeam,
  faSmileWink: faSmileWink,
  faSmog: faSmog,
  faSmoking: faSmoking,
  faSmokingBan: faSmokingBan,
  faSms: faSms,
  faSnowboarding: faSnowboarding,
  faSnowflake: faSnowflake,
  faSnowman: faSnowman,
  faSnowplow: faSnowplow,
  faSoap: faSoap,
  faSocks: faSocks,
  faSolarPanel: faSolarPanel,
  faSort: faSort,
  faSortAlphaDown: faSortAlphaDown,
  faSortAlphaDownAlt: faSortAlphaDownAlt,
  faSortAlphaUp: faSortAlphaUp,
  faSortAlphaUpAlt: faSortAlphaUpAlt,
  faSortAmountDown: faSortAmountDown,
  faSortAmountDownAlt: faSortAmountDownAlt,
  faSortAmountUp: faSortAmountUp,
  faSortAmountUpAlt: faSortAmountUpAlt,
  faSortDown: faSortDown,
  faSortNumericDown: faSortNumericDown,
  faSortNumericDownAlt: faSortNumericDownAlt,
  faSortNumericUp: faSortNumericUp,
  faSortNumericUpAlt: faSortNumericUpAlt,
  faSortUp: faSortUp,
  faSpa: faSpa,
  faSpaceShuttle: faSpaceShuttle,
  faSpellCheck: faSpellCheck,
  faSpider: faSpider,
  faSpinner: faSpinner,
  faSplotch: faSplotch,
  faSprayCan: faSprayCan,
  faSquare: faSquare,
  faSquareFull: faSquareFull,
  faSquareRootAlt: faSquareRootAlt,
  faStamp: faStamp,
  faStar: faStar,
  faStarAndCrescent: faStarAndCrescent,
  faStarHalf: faStarHalf,
  faStarHalfAlt: faStarHalfAlt,
  faStarOfDavid: faStarOfDavid,
  faStarOfLife: faStarOfLife,
  faStepBackward: faStepBackward,
  faStepForward: faStepForward,
  faStethoscope: faStethoscope,
  faStickyNote: faStickyNote,
  faStop: faStop,
  faStopCircle: faStopCircle,
  faStopwatch: faStopwatch,
  faStopwatch20: faStopwatch20,
  faStore: faStore,
  faStoreAlt: faStoreAlt,
  faStoreAltSlash: faStoreAltSlash,
  faStoreSlash: faStoreSlash,
  faStream: faStream,
  faStreetView: faStreetView,
  faStrikethrough: faStrikethrough,
  faStroopwafel: faStroopwafel,
  faSubscript: faSubscript,
  faSubway: faSubway,
  faSuitcase: faSuitcase,
  faSuitcaseRolling: faSuitcaseRolling,
  faSun: faSun,
  faSuperscript: faSuperscript,
  faSurprise: faSurprise,
  faSwatchbook: faSwatchbook,
  faSwimmer: faSwimmer,
  faSwimmingPool: faSwimmingPool,
  faSynagogue: faSynagogue,
  faSync: faSync,
  faSyncAlt: faSyncAlt,
  faSyringe: faSyringe,
  faTable: faTable,
  faTableTennis: faTableTennis,
  faTablet: faTablet,
  faTabletAlt: faTabletAlt,
  faTablets: faTablets,
  faTachometerAlt: faTachometerAlt,
  faTag: faTag,
  faTags: faTags,
  faTape: faTape,
  faTasks: faTasks,
  faTaxi: faTaxi,
  faTeeth: faTeeth,
  faTeethOpen: faTeethOpen,
  faTemperatureHigh: faTemperatureHigh,
  faTemperatureLow: faTemperatureLow,
  faTenge: faTenge,
  faTerminal: faTerminal,
  faTextHeight: faTextHeight,
  faTextWidth: faTextWidth,
  faTh: faTh,
  faThLarge: faThLarge,
  faThList: faThList,
  faTheaterMasks: faTheaterMasks,
  faThermometer: faThermometer,
  faThermometerEmpty: faThermometerEmpty,
  faThermometerFull: faThermometerFull,
  faThermometerHalf: faThermometerHalf,
  faThermometerQuarter: faThermometerQuarter,
  faThermometerThreeQuarters: faThermometerThreeQuarters,
  faThumbsDown: faThumbsDown,
  faThumbsUp: faThumbsUp,
  faThumbtack: faThumbtack,
  faTicketAlt: faTicketAlt,
  faTimes: faTimes,
  faTimesCircle: faTimesCircle,
  faTint: faTint,
  faTintSlash: faTintSlash,
  faTired: faTired,
  faToggleOff: faToggleOff,
  faToggleOn: faToggleOn,
  faToilet: faToilet,
  faToiletPaper: faToiletPaper,
  faToiletPaperSlash: faToiletPaperSlash,
  faToolbox: faToolbox,
  faTools: faTools,
  faTooth: faTooth,
  faTorah: faTorah,
  faToriiGate: faToriiGate,
  faTractor: faTractor,
  faTrademark: faTrademark,
  faTrafficLight: faTrafficLight,
  faTrailer: faTrailer,
  faTrain: faTrain,
  faTram: faTram,
  faTransgender: faTransgender,
  faTransgenderAlt: faTransgenderAlt,
  faTrash: faTrash,
  faTrashAlt: faTrashAlt,
  faTrashRestore: faTrashRestore,
  faTrashRestoreAlt: faTrashRestoreAlt,
  faTree: faTree,
  faTrophy: faTrophy,
  faTruck: faTruck,
  faTruckLoading: faTruckLoading,
  faTruckMonster: faTruckMonster,
  faTruckMoving: faTruckMoving,
  faTruckPickup: faTruckPickup,
  faTshirt: faTshirt,
  faTty: faTty,
  faTv: faTv,
  faUmbrella: faUmbrella,
  faUmbrellaBeach: faUmbrellaBeach,
  faUnderline: faUnderline,
  faUndo: faUndo,
  faUndoAlt: faUndoAlt,
  faUniversalAccess: faUniversalAccess,
  faUniversity: faUniversity,
  faUnlink: faUnlink,
  faUnlock: faUnlock,
  faUnlockAlt: faUnlockAlt,
  faUpload: faUpload,
  faUser: faUser,
  faUserAlt: faUserAlt,
  faUserAltSlash: faUserAltSlash,
  faUserAstronaut: faUserAstronaut,
  faUserCheck: faUserCheck,
  faUserCircle: faUserCircle,
  faUserClock: faUserClock,
  faUserCog: faUserCog,
  faUserEdit: faUserEdit,
  faUserFriends: faUserFriends,
  faUserGraduate: faUserGraduate,
  faUserInjured: faUserInjured,
  faUserLock: faUserLock,
  faUserMd: faUserMd,
  faUserMinus: faUserMinus,
  faUserNinja: faUserNinja,
  faUserNurse: faUserNurse,
  faUserPlus: faUserPlus,
  faUserSecret: faUserSecret,
  faUserShield: faUserShield,
  faUserSlash: faUserSlash,
  faUserTag: faUserTag,
  faUserTie: faUserTie,
  faUserTimes: faUserTimes,
  faUsers: faUsers,
  faUsersCog: faUsersCog,
  faUsersSlash: faUsersSlash,
  faUtensilSpoon: faUtensilSpoon,
  faUtensils: faUtensils,
  faVectorSquare: faVectorSquare,
  faVenus: faVenus,
  faVenusDouble: faVenusDouble,
  faVenusMars: faVenusMars,
  faVest: faVest,
  faVestPatches: faVestPatches,
  faVial: faVial,
  faVials: faVials,
  faVideo: faVideo,
  faVideoSlash: faVideoSlash,
  faVihara: faVihara,
  faVirus: faVirus,
  faVirusSlash: faVirusSlash,
  faViruses: faViruses,
  faVoicemail: faVoicemail,
  faVolleyballBall: faVolleyballBall,
  faVolumeDown: faVolumeDown,
  faVolumeMute: faVolumeMute,
  faVolumeOff: faVolumeOff,
  faVolumeUp: faVolumeUp,
  faVoteYea: faVoteYea,
  faVrCardboard: faVrCardboard,
  faWalking: faWalking,
  faWallet: faWallet,
  faWarehouse: faWarehouse,
  faWater: faWater,
  faWaveSquare: faWaveSquare,
  faWeight: faWeight,
  faWeightHanging: faWeightHanging,
  faWheelchair: faWheelchair,
  faWifi: faWifi,
  faWind: faWind,
  faWindowClose: faWindowClose,
  faWindowMaximize: faWindowMaximize,
  faWindowMinimize: faWindowMinimize,
  faWindowRestore: faWindowRestore,
  faWineBottle: faWineBottle,
  faWineGlass: faWineGlass,
  faWineGlassAlt: faWineGlassAlt,
  faWonSign: faWonSign,
  faWrench: faWrench,
  faXRay: faXRay,
  faYenSign: faYenSign,
  faYinYang: faYinYang
};




/***/ }),

/***/ "./node_modules/@fortawesome/react-fontawesome/index.es.js":
/*!*****************************************************************!*\
  !*** ./node_modules/@fortawesome/react-fontawesome/index.es.js ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "FontAwesomeIcon": () => (/* binding */ FontAwesomeIcon)
/* harmony export */ });
/* harmony import */ var _fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core */ "./node_modules/@fortawesome/fontawesome-svg-core/index.es.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");




function _typeof(obj) {
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
    _typeof = function (obj) {
      return typeof obj;
    };
  } else {
    _typeof = function (obj) {
      return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
    };
  }

  return _typeof(obj);
}

function _defineProperty(obj, key, value) {
  if (key in obj) {
    Object.defineProperty(obj, key, {
      value: value,
      enumerable: true,
      configurable: true,
      writable: true
    });
  } else {
    obj[key] = value;
  }

  return obj;
}

function ownKeys(object, enumerableOnly) {
  var keys = Object.keys(object);

  if (Object.getOwnPropertySymbols) {
    var symbols = Object.getOwnPropertySymbols(object);
    if (enumerableOnly) symbols = symbols.filter(function (sym) {
      return Object.getOwnPropertyDescriptor(object, sym).enumerable;
    });
    keys.push.apply(keys, symbols);
  }

  return keys;
}

function _objectSpread2(target) {
  for (var i = 1; i < arguments.length; i++) {
    var source = arguments[i] != null ? arguments[i] : {};

    if (i % 2) {
      ownKeys(Object(source), true).forEach(function (key) {
        _defineProperty(target, key, source[key]);
      });
    } else if (Object.getOwnPropertyDescriptors) {
      Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
    } else {
      ownKeys(Object(source)).forEach(function (key) {
        Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
      });
    }
  }

  return target;
}

function _objectWithoutPropertiesLoose(source, excluded) {
  if (source == null) return {};
  var target = {};
  var sourceKeys = Object.keys(source);
  var key, i;

  for (i = 0; i < sourceKeys.length; i++) {
    key = sourceKeys[i];
    if (excluded.indexOf(key) >= 0) continue;
    target[key] = source[key];
  }

  return target;
}

function _objectWithoutProperties(source, excluded) {
  if (source == null) return {};

  var target = _objectWithoutPropertiesLoose(source, excluded);

  var key, i;

  if (Object.getOwnPropertySymbols) {
    var sourceSymbolKeys = Object.getOwnPropertySymbols(source);

    for (i = 0; i < sourceSymbolKeys.length; i++) {
      key = sourceSymbolKeys[i];
      if (excluded.indexOf(key) >= 0) continue;
      if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
      target[key] = source[key];
    }
  }

  return target;
}

function _toConsumableArray(arr) {
  return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
}

function _arrayWithoutHoles(arr) {
  if (Array.isArray(arr)) {
    for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];

    return arr2;
  }
}

function _iterableToArray(iter) {
  if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
}

function _nonIterableSpread() {
  throw new TypeError("Invalid attempt to spread non-iterable instance");
}

// Get CSS class list from a props object
function classList(props) {
  var _classes;

  var spin = props.spin,
      pulse = props.pulse,
      fixedWidth = props.fixedWidth,
      inverse = props.inverse,
      border = props.border,
      listItem = props.listItem,
      flip = props.flip,
      size = props.size,
      rotation = props.rotation,
      pull = props.pull; // map of CSS class names to properties

  var classes = (_classes = {
    'fa-spin': spin,
    'fa-pulse': pulse,
    'fa-fw': fixedWidth,
    'fa-inverse': inverse,
    'fa-border': border,
    'fa-li': listItem,
    'fa-flip-horizontal': flip === 'horizontal' || flip === 'both',
    'fa-flip-vertical': flip === 'vertical' || flip === 'both'
  }, _defineProperty(_classes, "fa-".concat(size), typeof size !== 'undefined' && size !== null), _defineProperty(_classes, "fa-rotate-".concat(rotation), typeof rotation !== 'undefined' && rotation !== null && rotation !== 0), _defineProperty(_classes, "fa-pull-".concat(pull), typeof pull !== 'undefined' && pull !== null), _defineProperty(_classes, 'fa-swap-opacity', props.swapOpacity), _classes); // map over all the keys in the classes object
  // return an array of the keys where the value for the key is not null

  return Object.keys(classes).map(function (key) {
    return classes[key] ? key : null;
  }).filter(function (key) {
    return key;
  });
}

// Camelize taken from humps
// humps is copyright © 2012+ Dom Christie
// Released under the MIT license.
// Performant way to determine if object coerces to a number
function _isNumerical(obj) {
  obj = obj - 0; // eslint-disable-next-line no-self-compare

  return obj === obj;
}

function camelize(string) {
  if (_isNumerical(string)) {
    return string;
  } // eslint-disable-next-line no-useless-escape


  string = string.replace(/[\-_\s]+(.)?/g, function (match, chr) {
    return chr ? chr.toUpperCase() : '';
  }); // Ensure 1st char is always lowercase

  return string.substr(0, 1).toLowerCase() + string.substr(1);
}

function capitalize(val) {
  return val.charAt(0).toUpperCase() + val.slice(1);
}

function styleToObject(style) {
  return style.split(';').map(function (s) {
    return s.trim();
  }).filter(function (s) {
    return s;
  }).reduce(function (acc, pair) {
    var i = pair.indexOf(':');
    var prop = camelize(pair.slice(0, i));
    var value = pair.slice(i + 1).trim();
    prop.startsWith('webkit') ? acc[capitalize(prop)] = value : acc[prop] = value;
    return acc;
  }, {});
}

function convert(createElement, element) {
  var extraProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

  if (typeof element === 'string') {
    return element;
  }

  var children = (element.children || []).map(function (child) {
    return convert(createElement, child);
  });
  /* eslint-disable dot-notation */

  var mixins = Object.keys(element.attributes || {}).reduce(function (acc, key) {
    var val = element.attributes[key];

    switch (key) {
      case 'class':
        acc.attrs['className'] = val;
        delete element.attributes['class'];
        break;

      case 'style':
        acc.attrs['style'] = styleToObject(val);
        break;

      default:
        if (key.indexOf('aria-') === 0 || key.indexOf('data-') === 0) {
          acc.attrs[key.toLowerCase()] = val;
        } else {
          acc.attrs[camelize(key)] = val;
        }

    }

    return acc;
  }, {
    attrs: {}
  });

  var _extraProps$style = extraProps.style,
      existingStyle = _extraProps$style === void 0 ? {} : _extraProps$style,
      remaining = _objectWithoutProperties(extraProps, ["style"]);

  mixins.attrs['style'] = _objectSpread2({}, mixins.attrs['style'], {}, existingStyle);
  /* eslint-enable */

  return createElement.apply(void 0, [element.tag, _objectSpread2({}, mixins.attrs, {}, remaining)].concat(_toConsumableArray(children)));
}

var PRODUCTION = false;

try {
  PRODUCTION = "development" === 'production';
} catch (e) {}

function log () {
  if (!PRODUCTION && console && typeof console.error === 'function') {
    var _console;

    (_console = console).error.apply(_console, arguments);
  }
}

function normalizeIconArgs(icon) {
  // this has everything that it needs to be rendered which means it was probably imported
  // directly from an icon svg package
  if (icon && _typeof(icon) === 'object' && icon.prefix && icon.iconName && icon.icon) {
    return icon;
  }

  if (_fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__.parse.icon) {
    return _fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__.parse.icon(icon);
  } // if the icon is null, there's nothing to do


  if (icon === null) {
    return null;
  } // if the icon is an object and has a prefix and an icon name, return it


  if (icon && _typeof(icon) === 'object' && icon.prefix && icon.iconName) {
    return icon;
  } // if it's an array with length of two


  if (Array.isArray(icon) && icon.length === 2) {
    // use the first item as prefix, second as icon name
    return {
      prefix: icon[0],
      iconName: icon[1]
    };
  } // if it's a string, use it as the icon name


  if (typeof icon === 'string') {
    return {
      prefix: 'fas',
      iconName: icon
    };
  }
}

// creates an object with a key of key
// and a value of value
// if certain conditions are met
function objectWithKey(key, value) {
  // if the value is a non-empty array
  // or it's not an array but it is truthy
  // then create the object with the key and the value
  // if not, return an empty array
  return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? _defineProperty({}, key, value) : {};
}

function FontAwesomeIcon(_ref) {
  var forwardedRef = _ref.forwardedRef,
      props = _objectWithoutProperties(_ref, ["forwardedRef"]);

  var iconArgs = props.icon,
      maskArgs = props.mask,
      symbol = props.symbol,
      className = props.className,
      title = props.title,
      titleId = props.titleId;
  var iconLookup = normalizeIconArgs(iconArgs);
  var classes = objectWithKey('classes', [].concat(_toConsumableArray(classList(props)), _toConsumableArray(className.split(' '))));
  var transform = objectWithKey('transform', typeof props.transform === 'string' ? _fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__.parse.transform(props.transform) : props.transform);
  var mask = objectWithKey('mask', normalizeIconArgs(maskArgs));
  var renderedIcon = (0,_fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__.icon)(iconLookup, _objectSpread2({}, classes, {}, transform, {}, mask, {
    symbol: symbol,
    title: title,
    titleId: titleId
  }));

  if (!renderedIcon) {
    log('Could not find icon', iconLookup);
    return null;
  }

  var abstract = renderedIcon.abstract;
  var extraProps = {
    ref: forwardedRef
  };
  Object.keys(props).forEach(function (key) {
    // eslint-disable-next-line no-prototype-builtins
    if (!FontAwesomeIcon.defaultProps.hasOwnProperty(key)) {
      extraProps[key] = props[key];
    }
  });
  return convertCurry(abstract[0], extraProps);
}
FontAwesomeIcon.displayName = 'FontAwesomeIcon';
FontAwesomeIcon.propTypes = {
  border: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
  className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
  mask: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_2___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string)]),
  fixedWidth: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
  inverse: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
  flip: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(['horizontal', 'vertical', 'both']),
  icon: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_2___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string)]),
  listItem: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
  pull: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(['right', 'left']),
  pulse: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
  rotation: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf([0, 90, 180, 270]),
  size: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(['lg', 'xs', 'sm', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']),
  spin: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
  symbol: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string)]),
  title: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
  transform: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_2___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object)]),
  swapOpacity: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool)
};
FontAwesomeIcon.defaultProps = {
  border: false,
  className: '',
  mask: null,
  fixedWidth: false,
  inverse: false,
  flip: null,
  icon: null,
  listItem: false,
  pull: null,
  pulse: false,
  rotation: null,
  size: null,
  spin: false,
  symbol: false,
  title: '',
  transform: null,
  swapOpacity: false
};
var convertCurry = convert.bind(null, react__WEBPACK_IMPORTED_MODULE_1__.createElement);




/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/Chart/Chart.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/Chart/Chart.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Chart": () => (/* binding */ Chart)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js");
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_legend_Margin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_legend_Margin */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_legend_Margin.js");
/* harmony import */ var victory_chart__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! victory-chart */ "./node_modules/victory-chart/es/victory-chart.js");
/* harmony import */ var _ChartContainer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../ChartContainer */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartContainer/ChartContainer.js");
/* harmony import */ var _ChartLegend__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../ChartLegend */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartLegend/ChartLegend.js");
/* harmony import */ var _ChartTheme__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ChartTheme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/ChartStyles.js");
/* harmony import */ var _ChartUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ChartUtils */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-theme.js");
/* harmony import */ var _ChartUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../ChartUtils */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-padding.js");
/* harmony import */ var _ChartUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../ChartUtils */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-helpers.js");
/* harmony import */ var _ChartUtils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../ChartUtils */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-label.js");
/* harmony import */ var _ChartUtils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../ChartUtils */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-legend.js");



/* eslint-disable camelcase */






const Chart = (_a) => {
    var { ariaDesc, ariaTitle, children, legendAllowWrap = false, legendComponent = react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ChartLegend__WEBPACK_IMPORTED_MODULE_2__.ChartLegend, null), legendData, legendPosition = _ChartTheme__WEBPACK_IMPORTED_MODULE_3__.ChartCommonStyles.legend.position, padding, showAxis = true, themeColor, themeVariant, 
    // destructure last
    theme = (0,_ChartUtils__WEBPACK_IMPORTED_MODULE_4__.getTheme)(themeColor, themeVariant), containerComponent = react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ChartContainer__WEBPACK_IMPORTED_MODULE_5__.ChartContainer, null), legendOrientation = theme.legend.orientation, height = theme.chart.height, width = theme.chart.width } = _a, rest = (0,tslib__WEBPACK_IMPORTED_MODULE_6__.__rest)(_a, ["ariaDesc", "ariaTitle", "children", "legendAllowWrap", "legendComponent", "legendData", "legendPosition", "padding", "showAxis", "themeColor", "themeVariant", "theme", "containerComponent", "legendOrientation", "height", "width"]);
    const defaultPadding = {
        bottom: (0,_ChartUtils__WEBPACK_IMPORTED_MODULE_7__.getPaddingForSide)('bottom', padding, theme.chart.padding),
        left: (0,_ChartUtils__WEBPACK_IMPORTED_MODULE_7__.getPaddingForSide)('left', padding, theme.chart.padding),
        right: (0,_ChartUtils__WEBPACK_IMPORTED_MODULE_7__.getPaddingForSide)('right', padding, theme.chart.padding),
        top: (0,_ChartUtils__WEBPACK_IMPORTED_MODULE_7__.getPaddingForSide)('top', padding, theme.chart.padding)
    };
    // Clone so users can override container props
    const container = react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(containerComponent, Object.assign(Object.assign({ desc: ariaDesc, title: ariaTitle, theme }, containerComponent.props), { className: (0,_ChartUtils__WEBPACK_IMPORTED_MODULE_8__.getClassName)({ className: containerComponent.props.className }) // Override VictoryContainer class name
     }));
    const legend = react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(legendComponent, Object.assign({ data: legendData, orientation: legendOrientation, theme }, legendComponent.props));
    // Returns a computed legend
    const getLegend = () => {
        if (!legend.props.data) {
            return null;
        }
        let dx = 0;
        let dy = 0;
        let xAxisLabelHeight = 0;
        let legendTitleHeight = legend.props.title ? 10 : 0;
        // Adjust for axis label
        react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(children).map((child) => {
            if (child.type.role === 'axis' && child.props.label && !child.props.dependentAxis) {
                xAxisLabelHeight = (0,_ChartUtils__WEBPACK_IMPORTED_MODULE_9__.getLabelTextSize)({ text: child.props.label, theme }).height + 10;
                legendTitleHeight = 0;
            }
        });
        if (legendPosition === _ChartLegend__WEBPACK_IMPORTED_MODULE_2__.ChartLegendPosition.bottom) {
            dy += xAxisLabelHeight + legendTitleHeight;
        }
        else if (legendPosition === _ChartLegend__WEBPACK_IMPORTED_MODULE_2__.ChartLegendPosition.bottomLeft) {
            dy += xAxisLabelHeight + legendTitleHeight;
            dx = -10;
        }
        // Adjust legend position when axis is hidden
        if (!showAxis) {
            dy -= _patternfly_react_tokens_dist_esm_chart_legend_Margin__WEBPACK_IMPORTED_MODULE_10__["default"].value;
        }
        return (0,_ChartUtils__WEBPACK_IMPORTED_MODULE_11__.getComputedLegend)({
            allowWrap: legendAllowWrap,
            chartType: 'chart',
            dx,
            dy,
            height,
            legendComponent: legend,
            padding: defaultPadding,
            position: legendPosition,
            theme,
            width
        });
    };
    const VictoryChartWithContainerComponent = victory_chart__WEBPACK_IMPORTED_MODULE_12__["default"];
    if (!showAxis) {
        const Null = () => null;
        VictoryChartWithContainerComponent.defaultProps.defaultAxes.dependent = react__WEBPACK_IMPORTED_MODULE_0__.createElement(Null, null);
        VictoryChartWithContainerComponent.defaultProps.defaultAxes.independent = react__WEBPACK_IMPORTED_MODULE_0__.createElement(Null, null);
    }
    // Note: containerComponent is required for theme
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(VictoryChartWithContainerComponent, Object.assign({ containerComponent: container, height: height, padding: defaultPadding, theme: theme, width: width }, rest),
        children,
        getLegend()));
};
Chart.displayName = 'Chart';
hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1___default()(Chart, victory_chart__WEBPACK_IMPORTED_MODULE_12__["default"]);
//# sourceMappingURL=Chart.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartArea/ChartArea.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartArea/ChartArea.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ChartAreaSortOrder": () => (/* binding */ ChartAreaSortOrder),
/* harmony export */   "ChartArea": () => (/* binding */ ChartArea)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js");
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var victory_area__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-area */ "./node_modules/victory-area/es/victory-area.js");
/* harmony import */ var _ChartContainer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../ChartContainer */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartContainer/ChartContainer.js");
/* harmony import */ var _ChartUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ChartUtils */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-theme.js");






var ChartAreaSortOrder;
(function (ChartAreaSortOrder) {
    ChartAreaSortOrder["ascending"] = "ascending";
    ChartAreaSortOrder["descending"] = "descending";
})(ChartAreaSortOrder || (ChartAreaSortOrder = {}));
const ChartArea = (_a) => {
    var { containerComponent = react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ChartContainer__WEBPACK_IMPORTED_MODULE_2__.ChartContainer, null), themeColor, themeVariant, 
    // destructure last
    theme = (0,_ChartUtils__WEBPACK_IMPORTED_MODULE_3__.getTheme)(themeColor, themeVariant) } = _a, rest = (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__rest)(_a, ["containerComponent", "themeColor", "themeVariant", "theme"]);
    // Clone so users can override container props
    const container = react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(containerComponent, Object.assign({ theme }, containerComponent.props));
    // Note: containerComponent is required for theme
    return react__WEBPACK_IMPORTED_MODULE_0__.createElement(victory_area__WEBPACK_IMPORTED_MODULE_5__["default"], Object.assign({ containerComponent: container, theme: theme }, rest));
};
ChartArea.displayName = 'ChartArea';
// Note: VictoryArea.role must be hoisted
hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1___default()(ChartArea, victory_area__WEBPACK_IMPORTED_MODULE_5__["default"]);
//# sourceMappingURL=ChartArea.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartAxis/ChartAxis.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartAxis/ChartAxis.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ChartAxis": () => (/* binding */ ChartAxis)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js");
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var victory_axis__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-axis */ "./node_modules/victory-axis/es/victory-axis.js");
/* harmony import */ var _ChartContainer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../ChartContainer */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartContainer/ChartContainer.js");
/* harmony import */ var _ChartUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ChartUtils */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-theme.js");






const ChartAxis = (_a) => {
    var { containerComponent = react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ChartContainer__WEBPACK_IMPORTED_MODULE_2__.ChartContainer, null), showGrid = false, themeColor, themeVariant, 
    // destructure last
    theme = (0,_ChartUtils__WEBPACK_IMPORTED_MODULE_3__.getTheme)(themeColor, themeVariant) } = _a, rest = (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__rest)(_a, ["containerComponent", "showGrid", "themeColor", "themeVariant", "theme"]);
    // Clone so users can override container props
    const container = react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(containerComponent, Object.assign({ theme }, containerComponent.props));
    // Note: containerComponent is required for theme
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(victory_axis__WEBPACK_IMPORTED_MODULE_5__["default"], Object.assign({ containerComponent: container, theme: showGrid ? (0,_ChartUtils__WEBPACK_IMPORTED_MODULE_3__.getAxisTheme)(themeColor, themeVariant) : theme }, rest)));
};
ChartAxis.displayName = 'ChartAxis';
hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1___default()(ChartAxis, victory_axis__WEBPACK_IMPORTED_MODULE_5__["default"]);
//# sourceMappingURL=ChartAxis.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartContainer/ChartContainer.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartContainer/ChartContainer.js ***!
  \****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ChartContainer": () => (/* binding */ ChartContainer)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js");
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-container/victory-container.js");
/* harmony import */ var _ChartUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../ChartUtils */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-theme.js");
/* harmony import */ var _ChartUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ChartUtils */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-helpers.js");





const ChartContainer = (_a) => {
    var { className, themeColor, themeVariant, 
    // destructure last
    theme = (0,_ChartUtils__WEBPACK_IMPORTED_MODULE_2__.getTheme)(themeColor, themeVariant) } = _a, rest = (0,tslib__WEBPACK_IMPORTED_MODULE_3__.__rest)(_a, ["className", "themeColor", "themeVariant", "theme"]);
    const chartClassName = (0,_ChartUtils__WEBPACK_IMPORTED_MODULE_4__.getClassName)({ className });
    // Note: className is valid, but Victory is missing a type
    return react__WEBPACK_IMPORTED_MODULE_0__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__["default"], Object.assign({ className: chartClassName, theme: theme }, rest));
};
ChartContainer.displayName = 'ChartContainer';
// Note: VictoryContainer.role must be hoisted
hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1___default()(ChartContainer, victory_core__WEBPACK_IMPORTED_MODULE_5__["default"]);
//# sourceMappingURL=ChartContainer.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartGroup/ChartGroup.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartGroup/ChartGroup.js ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ChartGroupSortOrder": () => (/* binding */ ChartGroupSortOrder),
/* harmony export */   "ChartGroup": () => (/* binding */ ChartGroup)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js");
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var victory_group__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-group */ "./node_modules/victory-group/es/victory-group.js");
/* harmony import */ var _ChartContainer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../ChartContainer */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartContainer/ChartContainer.js");
/* harmony import */ var _ChartUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ChartUtils */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-theme.js");
/* harmony import */ var _ChartUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../ChartUtils */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-helpers.js");






var ChartGroupSortOrder;
(function (ChartGroupSortOrder) {
    ChartGroupSortOrder["ascending"] = "ascending";
    ChartGroupSortOrder["descending"] = "descending";
})(ChartGroupSortOrder || (ChartGroupSortOrder = {}));
const ChartGroup = (_a) => {
    var { ariaDesc, ariaTitle, children, containerComponent = react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ChartContainer__WEBPACK_IMPORTED_MODULE_2__.ChartContainer, null), themeColor, themeVariant, 
    // destructure last
    theme = (0,_ChartUtils__WEBPACK_IMPORTED_MODULE_3__.getTheme)(themeColor, themeVariant) } = _a, rest = (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__rest)(_a, ["ariaDesc", "ariaTitle", "children", "containerComponent", "themeColor", "themeVariant", "theme"]);
    // Clone so users can override container props
    const container = react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(containerComponent, Object.assign(Object.assign({ desc: ariaDesc, title: ariaTitle, theme }, containerComponent.props), { className: (0,_ChartUtils__WEBPACK_IMPORTED_MODULE_5__.getClassName)({ className: containerComponent.props.className }) // Override VictoryContainer class name
     }));
    // Note: containerComponent is required for theme
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(victory_group__WEBPACK_IMPORTED_MODULE_6__["default"], Object.assign({ containerComponent: container, theme: theme }, rest), children));
};
ChartGroup.displayName = 'ChartGroup';
// Note: VictoryGroup.role must be hoisted
hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1___default()(ChartGroup, victory_group__WEBPACK_IMPORTED_MODULE_6__["default"]);
//# sourceMappingURL=ChartGroup.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartLabel/ChartLabel.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartLabel/ChartLabel.js ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ChartLabelDirection": () => (/* binding */ ChartLabelDirection),
/* harmony export */   "ChartLabelPlacement": () => (/* binding */ ChartLabelPlacement),
/* harmony export */   "ChartLabel": () => (/* binding */ ChartLabel)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js");
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js");
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-label/victory-label.js");
/* harmony import */ var _ChartTheme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ChartTheme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/ChartStyles.js");






var ChartLabelDirection;
(function (ChartLabelDirection) {
    ChartLabelDirection["rtl"] = "rtl";
    ChartLabelDirection["ltr"] = "ltr";
    ChartLabelDirection["inherit"] = "inherit";
})(ChartLabelDirection || (ChartLabelDirection = {}));
var ChartLabelPlacement;
(function (ChartLabelPlacement) {
    ChartLabelPlacement["parallel"] = "parallel";
    ChartLabelPlacement["perpendicular"] = "perpendicular";
    ChartLabelPlacement["vertical"] = "vertical";
})(ChartLabelPlacement || (ChartLabelPlacement = {}));
const ChartLabel = (_a) => {
    var { style, textAnchor } = _a, rest = (0,tslib__WEBPACK_IMPORTED_MODULE_3__.__rest)(_a, ["style", "textAnchor"]);
    const applyDefaultStyle = (customStyle) => lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()(Object.assign(Object.assign({}, customStyle), { textAnchor // textAnchor prop must override given theme styles
     }), {
        fontFamily: _ChartTheme__WEBPACK_IMPORTED_MODULE_4__.ChartCommonStyles.label.fontFamily,
        fontSize: _ChartTheme__WEBPACK_IMPORTED_MODULE_4__.ChartCommonStyles.label.fontSize,
        letterSpacing: _ChartTheme__WEBPACK_IMPORTED_MODULE_4__.ChartCommonStyles.label.letterSpacing
    });
    const newStyle = Array.isArray(style) ? style.map(applyDefaultStyle) : applyDefaultStyle(style);
    return react__WEBPACK_IMPORTED_MODULE_0__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__["default"], Object.assign({ style: newStyle, textAnchor: textAnchor }, rest));
};
ChartLabel.displayName = 'ChartLabel';
// Note: VictoryLabel.role must be hoisted
hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1___default()(ChartLabel, victory_core__WEBPACK_IMPORTED_MODULE_5__["default"]);
//# sourceMappingURL=ChartLabel.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartLegend/ChartLegend.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartLegend/ChartLegend.js ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ChartLegendOrientation": () => (/* binding */ ChartLegendOrientation),
/* harmony export */   "ChartLegendPosition": () => (/* binding */ ChartLegendPosition),
/* harmony export */   "ChartLegendRowGutter": () => (/* binding */ ChartLegendRowGutter),
/* harmony export */   "ChartLegend": () => (/* binding */ ChartLegend)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js");
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var victory_legend__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-legend */ "./node_modules/victory-legend/es/victory-legend.js");
/* harmony import */ var _ChartContainer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../ChartContainer */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartContainer/ChartContainer.js");
/* harmony import */ var _ChartLabel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ChartLabel */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartLabel/ChartLabel.js");
/* harmony import */ var _ChartPoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ChartPoint */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartPoint/ChartPoint.js");
/* harmony import */ var _ChartUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../ChartUtils */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-theme.js");








var ChartLegendOrientation;
(function (ChartLegendOrientation) {
    ChartLegendOrientation["horizontal"] = "horizontal";
    ChartLegendOrientation["vertical"] = "vertical";
})(ChartLegendOrientation || (ChartLegendOrientation = {}));
var ChartLegendPosition;
(function (ChartLegendPosition) {
    ChartLegendPosition["bottom"] = "bottom";
    ChartLegendPosition["bottomLeft"] = "bottom-left";
    ChartLegendPosition["right"] = "right";
})(ChartLegendPosition || (ChartLegendPosition = {}));
var ChartLegendRowGutter;
(function (ChartLegendRowGutter) {
    ChartLegendRowGutter["bottom"] = "bottom";
    ChartLegendRowGutter["top"] = "top";
})(ChartLegendRowGutter || (ChartLegendRowGutter = {}));
const ChartLegend = (_a) => {
    var { containerComponent = react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ChartContainer__WEBPACK_IMPORTED_MODULE_2__.ChartContainer, null), dataComponent = react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ChartPoint__WEBPACK_IMPORTED_MODULE_3__.ChartPoint, null), labelComponent = react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ChartLabel__WEBPACK_IMPORTED_MODULE_4__.ChartLabel, null), responsive = true, themeColor, themeVariant, titleComponent = react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ChartLabel__WEBPACK_IMPORTED_MODULE_4__.ChartLabel, null), 
    // destructure last
    theme = (0,_ChartUtils__WEBPACK_IMPORTED_MODULE_5__.getTheme)(themeColor, themeVariant) } = _a, rest = (0,tslib__WEBPACK_IMPORTED_MODULE_6__.__rest)(_a, ["containerComponent", "dataComponent", "labelComponent", "responsive", "themeColor", "themeVariant", "titleComponent", "theme"]);
    // Clone so users can override container props
    const container = react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(containerComponent, Object.assign({ responsive,
        theme }, containerComponent.props));
    // Note: containerComponent is required for theme
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(victory_legend__WEBPACK_IMPORTED_MODULE_7__["default"], Object.assign({ containerComponent: container, dataComponent: dataComponent, labelComponent: labelComponent, theme: theme, titleComponent: titleComponent }, rest)));
};
ChartLegend.displayName = 'ChartLegend';
// Note: VictoryLegend.role must be hoisted, but getBaseProps causes error with ChartVoronoiContainer
hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1___default()(ChartLegend, victory_legend__WEBPACK_IMPORTED_MODULE_7__["default"], { getBaseProps: true });
ChartLegend.getBaseProps = (props) => {
    const theme = (0,_ChartUtils__WEBPACK_IMPORTED_MODULE_5__.getTheme)(null, null);
    return victory_legend__WEBPACK_IMPORTED_MODULE_7__["default"].getBaseProps(Object.assign({ titleComponent: react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ChartLabel__WEBPACK_IMPORTED_MODULE_4__.ChartLabel, null) }, props), {
        height: theme.chart.height,
        orientation: theme.legend.orientation,
        titleOrientation: theme.legend.titleOrientation,
        x: 0,
        y: 0,
        width: theme.chart.width
    });
};
//# sourceMappingURL=ChartLegend.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartPoint/ChartPoint.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartPoint/ChartPoint.js ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ChartPoint": () => (/* binding */ ChartPoint)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-primitives/path.js");
/* harmony import */ var _path_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./path-helpers */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartPoint/path-helpers.js");




const getPath = (props) => {
    const { x, y } = props;
    const size = victory_core__WEBPACK_IMPORTED_MODULE_1__.evaluateProp(props.size, props);
    if (props.getPath) {
        return props.getPath(x, y, size);
    }
    const pathFunctions = {
        circle: _path_helpers__WEBPACK_IMPORTED_MODULE_2__.PathHelpers.circle,
        square: _path_helpers__WEBPACK_IMPORTED_MODULE_2__.PathHelpers.square,
        diamond: _path_helpers__WEBPACK_IMPORTED_MODULE_2__.PathHelpers.diamond,
        eyeSlash: _path_helpers__WEBPACK_IMPORTED_MODULE_2__.PathHelpers.eyeSlash,
        triangleDown: _path_helpers__WEBPACK_IMPORTED_MODULE_2__.PathHelpers.triangleDown,
        triangleLeft: _path_helpers__WEBPACK_IMPORTED_MODULE_2__.PathHelpers.triangleLeft,
        triangleRight: _path_helpers__WEBPACK_IMPORTED_MODULE_2__.PathHelpers.triangleRight,
        triangleUp: _path_helpers__WEBPACK_IMPORTED_MODULE_2__.PathHelpers.triangleUp,
        plus: _path_helpers__WEBPACK_IMPORTED_MODULE_2__.PathHelpers.plus,
        minus: _path_helpers__WEBPACK_IMPORTED_MODULE_2__.PathHelpers.minus,
        star: _path_helpers__WEBPACK_IMPORTED_MODULE_2__.PathHelpers.star,
        dash: _path_helpers__WEBPACK_IMPORTED_MODULE_2__.PathHelpers.dash,
        threshold: _path_helpers__WEBPACK_IMPORTED_MODULE_2__.PathHelpers.threshold
    };
    const symbol = victory_core__WEBPACK_IMPORTED_MODULE_1__.evaluateProp(props.symbol, props);
    const key = symbol;
    const symbolFunction = typeof pathFunctions[key] === 'function' ? pathFunctions[key] : pathFunctions.square;
    return symbolFunction(x, y, size);
};
const ChartPoint = (_a) => {
    var { active, className, clipPath, datum, desc, events, pathComponent = react__WEBPACK_IMPORTED_MODULE_0__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__["default"], null), role = 'presentation', shapeRendering = 'auto', tabIndex, transform } = _a, rest = (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__rest)(_a, ["active", "className", "clipPath", "datum", "desc", "events", "pathComponent", "role", "shapeRendering", "tabIndex", "transform"]);
    const props = Object.assign({ active,
        className,
        clipPath,
        datum,
        desc,
        events,
        role,
        shapeRendering,
        tabIndex,
        transform }, rest);
    return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(pathComponent, Object.assign(Object.assign({ className,
        clipPath, d: getPath(props), desc: victory_core__WEBPACK_IMPORTED_MODULE_1__.evaluateProp(desc, props) }, events), { role,
        shapeRendering, style: victory_core__WEBPACK_IMPORTED_MODULE_1__.evaluateStyle(rest.style, props), tabIndex: victory_core__WEBPACK_IMPORTED_MODULE_1__.evaluateProp(tabIndex, props), transform }));
};
ChartPoint.displayName = 'ChartPoint';
//# sourceMappingURL=ChartPoint.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartPoint/path-helpers.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartPoint/path-helpers.js ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "PathHelpers": () => (/* binding */ PathHelpers)
/* harmony export */ });
const PathHelpers = {
    circle: (x, y, size) => `M ${x}, ${y}
      m ${-size}, 0
      a ${size}, ${size} 0 1,0 ${size * 2},0
      a ${size}, ${size} 0 1,0 ${-size * 2},0`,
    dash: (x, y, size) => {
        const baseSize = 1.1 * size;
        const lineHeight = baseSize - baseSize * 0.3;
        const x0 = x - baseSize;
        const y1 = y + lineHeight / 2;
        const distance = (x + baseSize - x0) * 0.3;
        const padding = distance / 3;
        return `M ${x0}, ${y1}
      h${distance}
      v-${lineHeight}
      h-${distance}
      z
      M ${x0 + distance + padding}, ${y1}
      h${distance}
      v-${lineHeight}
      h-${distance}
      z
      M ${x0 + distance * 2 + padding * 2}, ${y1}
      h${distance}
      v-${lineHeight}
      h-${distance}
      z`;
    },
    diamond: (x, y, size) => {
        const baseSize = 0.87 * size;
        const length = Math.sqrt(2 * (baseSize * baseSize));
        return `M ${x}, ${y + length}
      l ${length}, -${length}
      l -${length}, -${length}
      l -${length}, ${length}
      l ${length}, ${length}
      z`;
    },
    // The eye slash symbol is used to hide / show each data series individually
    // See https://github.com/patternfly/patternfly-next/issues/2352
    eyeSlash: (x, y, size) => {
        const baseSize = 0.87 * size;
        const x0 = x - baseSize;
        const y1 = y - size * 1.25;
        // For converting to relative paths, see https://aydos.com/svgedit/
        // Data taken from path of assets/Eyecon.svg, minus first two x and y values
        const data = '.013 .013 0 0 2.179 2.219c.7-.204 1.418-.307 2.152-.307 2.859 0 5.464 1.551 7.814 4.654.243 .321.268 .753.073 1.097l-.073.111-.236.305c-.632.801-1.282 1.491-1.951 2.071l1.773 1.806c.382.389 .382 1.012 0 1.401l-.058.059c-.387.394-1.02.4-1.414.013l-.013-.013-11.732-11.956c-.382-.389-.382-1.012 0-1.401l.058-.059c.387-.394 1.02-.4 1.414-.013zm-.674 3.71 1.407 1.436c-.329.604-.516 1.298-.516 2.038 0 2.323 1.848 4.206 4.127 4.206.726 0 1.408-.191 2-.526l.966.984c-.956.396-1.945.593-2.966.593-2.859 0-5.464-1.551-7.814-4.654-.243-.321-.268-.753-.073-1.097l.073-.111.236-.305c.823-1.042 1.676-1.897 2.56-2.565zm2.177 2.22 4.072 4.149c-.377.167-.793.259-1.23.259-1.71 0-3.096-1.412-3.096-3.155 0-.445.091-.869.254-1.253zm2.842-2.953c-.43 0-.845.067-1.234.191l.865.882c.121-.015.244-.022.369-.022 1.71 0 3.096 1.412 3.096 3.155 0 .127-.007.252-.022.375l.866.882c.122-.397.187-.819.187-1.257 0-2.323-1.848-4.206-4.127-4.206z';
        return `m${x0}, ${y1} ${data}`;
    },
    minus: (x, y, size) => {
        const baseSize = 1.1 * size;
        const lineHeight = baseSize - baseSize * 0.3;
        const x0 = x - baseSize;
        const y1 = y + lineHeight / 2;
        const distance = x + baseSize - x0;
        return `M ${x0}, ${y1}
      h${distance}
      v-${lineHeight}
      h-${distance}
      z`;
    },
    plus: (x, y, size) => {
        const baseSize = 1.1 * size;
        const distance = baseSize / 1.5;
        return `
      M ${x - distance / 2}, ${y + baseSize}
      v-${distance}
      h-${distance}
      v-${distance}
      h${distance}
      v-${distance}
      h${distance}
      v${distance}
      h${distance}
      v${distance}
      h-${distance}
      v${distance}
      z`;
    },
    star: (x, y, size) => {
        const baseSize = 1.35 * size;
        const angle = Math.PI / 5;
        const starCoords = [...Array(10).keys()].map(index => {
            const length = index % 2 === 0 ? baseSize : baseSize / 2;
            return `${length * Math.sin(angle * (index + 1)) + x},
        ${length * Math.cos(angle * (index + 1)) + y}`;
        });
        return `M ${starCoords.join('L')} z`;
    },
    square: (x, y, size) => {
        const baseSize = 0.87 * size;
        const x0 = x - baseSize;
        const y1 = y + baseSize;
        const distance = x + baseSize - x0;
        return `M ${x0}, ${y1}
      h${distance}
      v-${distance}
      h-${distance}
      z`;
    },
    threshold: (x, y, size) => {
        const baseSize = 1.1 * size;
        const lineHeight = baseSize - baseSize * 0.3;
        const x0 = x - baseSize;
        const y1 = y + lineHeight / 2;
        const distance = (x + baseSize - x0) * 0.5;
        const padding = distance / 3;
        return `M ${x0}, ${y1}
      h${distance}
      v-${lineHeight}
      h-${distance}
      z
      M ${x0 + distance + padding}, ${y1}
      h${distance}
      v-${lineHeight}
      h-${distance}
      z`;
    },
    triangleDown: (x, y, size) => {
        const height = (size / 2) * Math.sqrt(3);
        const x0 = x - size;
        const x1 = x + size;
        const y0 = y - size;
        const y1 = y + height;
        return `M ${x0}, ${y0}
      L ${x1}, ${y0}
      L ${x}, ${y1}
      z`;
    },
    triangleLeft: (x, y, size) => {
        const height = (size / 2) * Math.sqrt(3);
        const x0 = x - height;
        const x1 = x + size;
        const y0 = y - size;
        const y1 = y + size;
        return `M ${x1}, ${y0}
      L ${x1}, ${y1}
      L ${x0}, ${y}
      z`;
    },
    triangleRight: (x, y, size) => {
        const height = (size / 2) * Math.sqrt(3);
        const x0 = x - size;
        const x1 = x + height;
        const y0 = y - size;
        const y1 = y + size;
        return `M ${x0}, ${y0}
      L ${x0}, ${y1}
      L ${x1}, ${y}
      z`;
    },
    triangleUp: (x, y, size) => {
        const height = (size / 2) * Math.sqrt(3);
        const x0 = x - size;
        const x1 = x + size;
        const y0 = y - height;
        const y1 = y + size;
        return `M ${x0}, ${y1}
      L ${x1}, ${y1}
      L ${x}, ${y0}
      z`;
    }
};
//# sourceMappingURL=path-helpers.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/ChartStyles.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/ChartStyles.js ***!
  \*********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ChartCommonStyles": () => (/* binding */ ChartCommonStyles),
/* harmony export */   "ChartBulletStyles": () => (/* binding */ ChartBulletStyles),
/* harmony export */   "ChartDonutStyles": () => (/* binding */ ChartDonutStyles),
/* harmony export */   "ChartDonutUtilizationStyles": () => (/* binding */ ChartDonutUtilizationStyles),
/* harmony export */   "ChartLegendTooltipStyles": () => (/* binding */ ChartLegendTooltipStyles),
/* harmony export */   "ChartScatterStyles": () => (/* binding */ ChartScatterStyles)
/* harmony export */ });
/* harmony import */ var _styles_common_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./styles/common-styles */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/styles/common-styles.js");
/* harmony import */ var _styles_bullet_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./styles/bullet-styles */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/styles/bullet-styles.js");
/* harmony import */ var _styles_donut_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./styles/donut-styles */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/styles/donut-styles.js");
/* harmony import */ var _styles_donut_utilization_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./styles/donut-utilization-styles */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/styles/donut-utilization-styles.js");
/* harmony import */ var _styles_legend_tooltip_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./styles/legend-tooltip-styles */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/styles/legend-tooltip-styles.js");
/* harmony import */ var _styles_scatter_styles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./styles/scatter-styles */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/styles/scatter-styles.js");






const ChartCommonStyles = _styles_common_styles__WEBPACK_IMPORTED_MODULE_0__.CommonStyles;
const ChartBulletStyles = _styles_bullet_styles__WEBPACK_IMPORTED_MODULE_1__.BulletStyles;
const ChartDonutStyles = _styles_donut_styles__WEBPACK_IMPORTED_MODULE_2__.DonutStyles;
const ChartDonutUtilizationStyles = _styles_donut_utilization_styles__WEBPACK_IMPORTED_MODULE_3__.DonutUtilizationStyles;
const ChartLegendTooltipStyles = _styles_legend_tooltip_styles__WEBPACK_IMPORTED_MODULE_4__.LegendTooltipStyles;
const ChartScatterStyles = _styles_scatter_styles__WEBPACK_IMPORTED_MODULE_5__.ScatterStyles;
//# sourceMappingURL=ChartStyles.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/ChartTheme.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/ChartTheme.js ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ChartThemeColor": () => (/* binding */ ChartThemeColor),
/* harmony export */   "ChartThemeVariant": () => (/* binding */ ChartThemeVariant),
/* harmony export */   "ChartAxisTheme": () => (/* binding */ ChartAxisTheme),
/* harmony export */   "ChartBaseTheme": () => (/* binding */ ChartBaseTheme),
/* harmony export */   "ChartBulletComparativeErrorMeasureTheme": () => (/* binding */ ChartBulletComparativeErrorMeasureTheme),
/* harmony export */   "ChartBulletComparativeMeasureTheme": () => (/* binding */ ChartBulletComparativeMeasureTheme),
/* harmony export */   "ChartBulletComparativeWarningMeasureTheme": () => (/* binding */ ChartBulletComparativeWarningMeasureTheme),
/* harmony export */   "ChartBulletGroupTitleTheme": () => (/* binding */ ChartBulletGroupTitleTheme),
/* harmony export */   "ChartBulletPrimaryDotMeasureTheme": () => (/* binding */ ChartBulletPrimaryDotMeasureTheme),
/* harmony export */   "ChartBulletPrimaryNegativeMeasureTheme": () => (/* binding */ ChartBulletPrimaryNegativeMeasureTheme),
/* harmony export */   "ChartBulletPrimarySegmentedMeasureTheme": () => (/* binding */ ChartBulletPrimarySegmentedMeasureTheme),
/* harmony export */   "ChartBulletTheme": () => (/* binding */ ChartBulletTheme),
/* harmony export */   "ChartBulletQualitativeRangeTheme": () => (/* binding */ ChartBulletQualitativeRangeTheme),
/* harmony export */   "ChartDonutUtilizationDynamicTheme": () => (/* binding */ ChartDonutUtilizationDynamicTheme),
/* harmony export */   "ChartDonutUtilizationStaticTheme": () => (/* binding */ ChartDonutUtilizationStaticTheme),
/* harmony export */   "ChartDonutTheme": () => (/* binding */ ChartDonutTheme),
/* harmony export */   "ChartDonutThresholdDynamicTheme": () => (/* binding */ ChartDonutThresholdDynamicTheme),
/* harmony export */   "ChartDonutThresholdStaticTheme": () => (/* binding */ ChartDonutThresholdStaticTheme),
/* harmony export */   "ChartThresholdTheme": () => (/* binding */ ChartThresholdTheme)
/* harmony export */ });
/* harmony import */ var _themes_axis_theme__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./themes/axis-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/axis-theme.js");
/* harmony import */ var _themes_base_theme__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./themes/base-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/base-theme.js");
/* harmony import */ var _themes_bullet_theme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./themes/bullet-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/bullet-theme.js");
/* harmony import */ var _themes_donut_theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./themes/donut-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/donut-theme.js");
/* harmony import */ var _themes_threshold_theme__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./themes/threshold-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/threshold-theme.js");
/* harmony import */ var _themes_donut_threshold_theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./themes/donut-threshold-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/donut-threshold-theme.js");
/* harmony import */ var _themes_donut_utilization_theme__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./themes/donut-utilization-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/donut-utilization-theme.js");







/**
 * The color family to be applied to a theme. For example, 'blue' represents an ordered list of colors
 * (i.e., a color scale) composed from the blue color family defined by PatternFly core.
 *
 * For example, the 'blue' color scale looks like:
 *
 * chart_color_blue_100
 * chart_color_blue_200
 * chart_color_blue_300
 * chart_color_blue_400
 * chart_color_blue_500
 *
 * In this case, the chart_color_blue_100 value would be applied to the first data point in a chart.
 * The chart_color_blue_200 value would be applied to the second data point in a chart. And so on...
 *
 * If legend data is provided to a chart, those colors would be synced with the legend as well.
 *
 * The 'multiOrdered' color family is intended for ordered charts; donut, pie, bar, & stack
 * The 'multiUnordered' color family is intended for unordered charts; area & line
 * The 'multi' defaults to the 'multiOrdered' color family
 *
 * Note: These values are not intended to be applied directly as a component's fill style. For example, "multi" would
 * not be a valid fill color. Please use chart variables from PatternFly core (e.g., via the react-charts package)
 */
const ChartThemeColor = {
    blue: 'blue',
    cyan: 'cyan',
    default: 'blue',
    gold: 'gold',
    gray: 'gray',
    green: 'green',
    multi: 'multi',
    multiOrdered: 'multi-ordered',
    multiUnordered: 'multi-unordered',
    orange: 'orange',
    purple: 'purple'
};
/**
 * The variant to be applied to a theme.
 *
 * Note: Only the light variant is currently supported
 */
const ChartThemeVariant = {
    dark: 'dark',
    default: 'light',
    light: 'light'
};
const ChartAxisTheme = _themes_axis_theme__WEBPACK_IMPORTED_MODULE_0__.AxisTheme;
const ChartBaseTheme = _themes_base_theme__WEBPACK_IMPORTED_MODULE_1__.BaseTheme;
const ChartBulletComparativeErrorMeasureTheme = _themes_bullet_theme__WEBPACK_IMPORTED_MODULE_2__.BulletComparativeErrorMeasureTheme;
const ChartBulletComparativeMeasureTheme = _themes_bullet_theme__WEBPACK_IMPORTED_MODULE_2__.BulletComparativeMeasureTheme;
const ChartBulletComparativeWarningMeasureTheme = _themes_bullet_theme__WEBPACK_IMPORTED_MODULE_2__.BulletComparativeWarningMeasureTheme;
const ChartBulletGroupTitleTheme = _themes_bullet_theme__WEBPACK_IMPORTED_MODULE_2__.BulletGroupTitleTheme;
const ChartBulletPrimaryDotMeasureTheme = _themes_bullet_theme__WEBPACK_IMPORTED_MODULE_2__.BulletPrimaryDotMeasureTheme;
const ChartBulletPrimaryNegativeMeasureTheme = _themes_bullet_theme__WEBPACK_IMPORTED_MODULE_2__.BulletPrimaryNegativeMeasureTheme;
const ChartBulletPrimarySegmentedMeasureTheme = _themes_bullet_theme__WEBPACK_IMPORTED_MODULE_2__.BulletPrimarySegmentedMeasureTheme;
const ChartBulletTheme = _themes_bullet_theme__WEBPACK_IMPORTED_MODULE_2__.BulletTheme;
const ChartBulletQualitativeRangeTheme = _themes_bullet_theme__WEBPACK_IMPORTED_MODULE_2__.BulletQualitativeRangeTheme;
const ChartDonutUtilizationDynamicTheme = _themes_donut_utilization_theme__WEBPACK_IMPORTED_MODULE_3__.DonutUtilizationDynamicTheme;
const ChartDonutUtilizationStaticTheme = _themes_donut_utilization_theme__WEBPACK_IMPORTED_MODULE_3__.DonutUtilizationStaticTheme;
const ChartDonutTheme = _themes_donut_theme__WEBPACK_IMPORTED_MODULE_4__.DonutTheme;
const ChartDonutThresholdDynamicTheme = _themes_donut_threshold_theme__WEBPACK_IMPORTED_MODULE_5__.DonutThresholdDynamicTheme;
const ChartDonutThresholdStaticTheme = _themes_donut_threshold_theme__WEBPACK_IMPORTED_MODULE_5__.DonutThresholdStaticTheme;
const ChartThresholdTheme = _themes_threshold_theme__WEBPACK_IMPORTED_MODULE_6__.ThresholdTheme;
//# sourceMappingURL=ChartTheme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/styles/bullet-styles.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/styles/bullet-styles.js ***!
  \******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "BulletStyles": () => (/* binding */ BulletStyles)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_bullet_axis_tick_count__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_bullet_axis_tick_count */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_axis_tick_count.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_bullet_comparative_measure_Width__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_bullet_comparative_measure_error_Width__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_error_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_error_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_bullet_comparative_measure_warning_Width__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_warning_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_warning_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_bullet_label_subtitle_Fill__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_bullet_label_subtitle_Fill */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_label_subtitle_Fill.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_bullet_primary_measure_dot_size__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_bullet_primary_measure_dot_size */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_primary_measure_dot_size.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_bullet_primary_measure_segmented_Width__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_bullet_primary_measure_segmented_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_primary_measure_segmented_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_bullet_qualitative_range_Width__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_bullet_qualitative_range_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_qualitative_range_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_global_FontSize_2xl__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_global_FontSize_2xl */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_FontSize_2xl.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_global_FontSize_sm__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_global_FontSize_sm */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_FontSize_sm.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_global_FontSize_lg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_global_FontSize_lg */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_FontSize_lg.js");
/* eslint-disable camelcase */











// Bullet styles
const BulletStyles = {
    axisTickCount: _patternfly_react_tokens_dist_esm_chart_bullet_axis_tick_count__WEBPACK_IMPORTED_MODULE_0__["default"].value,
    comparativeMeasureErrorWidth: _patternfly_react_tokens_dist_esm_chart_bullet_comparative_measure_error_Width__WEBPACK_IMPORTED_MODULE_1__["default"].value,
    comparativeMeasureWarningWidth: _patternfly_react_tokens_dist_esm_chart_bullet_comparative_measure_warning_Width__WEBPACK_IMPORTED_MODULE_2__["default"].value,
    comparativeMeasureWidth: _patternfly_react_tokens_dist_esm_chart_bullet_comparative_measure_Width__WEBPACK_IMPORTED_MODULE_3__["default"].value,
    label: {
        groupTitle: {
            // Victory props only
            fontSize: _patternfly_react_tokens_dist_esm_chart_global_FontSize_2xl__WEBPACK_IMPORTED_MODULE_4__["default"].value
        },
        subTitle: {
            // Victory props only
            fill: _patternfly_react_tokens_dist_esm_chart_bullet_label_subtitle_Fill__WEBPACK_IMPORTED_MODULE_5__["default"].value,
            fontSize: _patternfly_react_tokens_dist_esm_chart_global_FontSize_sm__WEBPACK_IMPORTED_MODULE_6__["default"].value
        },
        title: {
            // Victory props only
            fontSize: _patternfly_react_tokens_dist_esm_chart_global_FontSize_lg__WEBPACK_IMPORTED_MODULE_7__["default"].value
        }
    },
    primaryDotMeasureSize: _patternfly_react_tokens_dist_esm_chart_bullet_primary_measure_dot_size__WEBPACK_IMPORTED_MODULE_8__["default"].value,
    primarySegmentedMeasureWidth: _patternfly_react_tokens_dist_esm_chart_bullet_primary_measure_segmented_Width__WEBPACK_IMPORTED_MODULE_9__["default"].value,
    qualitativeRangeWidth: _patternfly_react_tokens_dist_esm_chart_bullet_qualitative_range_Width__WEBPACK_IMPORTED_MODULE_10__["default"].value
};
//# sourceMappingURL=bullet-styles.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/styles/common-styles.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/styles/common-styles.js ***!
  \******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CommonStyles": () => (/* binding */ CommonStyles)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_global_FontFamily__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_global_FontFamily */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_FontFamily.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_global_FontSize_sm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_global_FontSize_sm */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_FontSize_sm.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_global_label_Margin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_global_label_Margin */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_label_Margin.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_global_letter_spacing__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_global_letter_spacing */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_letter_spacing.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_legend_Margin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_legend_Margin */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_legend_Margin.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_legend_position__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_legend_position */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_legend_position.js");
/* eslint-disable camelcase */






// Typography
const TYPOGRAPHY_FONT_FAMILY = _patternfly_react_tokens_dist_esm_chart_global_FontFamily__WEBPACK_IMPORTED_MODULE_0__["default"]["var"];
const TYPOGRAPHY_LETTER_SPACING = _patternfly_react_tokens_dist_esm_chart_global_letter_spacing__WEBPACK_IMPORTED_MODULE_1__["default"]["var"];
const TYPOGRAPHY_FONT_SIZE = _patternfly_react_tokens_dist_esm_chart_global_FontSize_sm__WEBPACK_IMPORTED_MODULE_2__["default"].value;
const CommonStyles = {
    label: {
        fontFamily: TYPOGRAPHY_FONT_FAMILY,
        fontSize: TYPOGRAPHY_FONT_SIZE,
        letterSpacing: TYPOGRAPHY_LETTER_SPACING,
        margin: _patternfly_react_tokens_dist_esm_chart_global_label_Margin__WEBPACK_IMPORTED_MODULE_3__["default"].value
    },
    legend: {
        margin: _patternfly_react_tokens_dist_esm_chart_legend_Margin__WEBPACK_IMPORTED_MODULE_4__["default"].value,
        position: _patternfly_react_tokens_dist_esm_chart_legend_position__WEBPACK_IMPORTED_MODULE_5__["default"].value
    }
};
//# sourceMappingURL=common-styles.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/styles/donut-styles.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/styles/donut-styles.js ***!
  \*****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DonutStyles": () => (/* binding */ DonutStyles)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_global_FontSize_sm__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_global_FontSize_sm */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_FontSize_sm.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_global_FontSize_2xl__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_global_FontSize_2xl */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_FontSize_2xl.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_donut_label_subtitle_Fill__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_donut_label_subtitle_Fill */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_label_subtitle_Fill.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_donut_label_subtitle_position__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_donut_label_subtitle_position */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_label_subtitle_position.js");
/* eslint-disable camelcase */




// Donut styles
const DonutStyles = {
    label: {
        subTitle: {
            // Victory props only
            fill: _patternfly_react_tokens_dist_esm_chart_donut_label_subtitle_Fill__WEBPACK_IMPORTED_MODULE_0__["default"].value,
            fontSize: _patternfly_react_tokens_dist_esm_chart_global_FontSize_sm__WEBPACK_IMPORTED_MODULE_1__["default"].value
        },
        subTitlePosition: _patternfly_react_tokens_dist_esm_chart_donut_label_subtitle_position__WEBPACK_IMPORTED_MODULE_2__["default"].value,
        title: {
            // Victory props only
            fontSize: _patternfly_react_tokens_dist_esm_chart_global_FontSize_2xl__WEBPACK_IMPORTED_MODULE_3__["default"].value
        }
    }
};
//# sourceMappingURL=donut-styles.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/styles/donut-utilization-styles.js":
/*!*****************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/styles/donut-utilization-styles.js ***!
  \*****************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DonutUtilizationStyles": () => (/* binding */ DonutUtilizationStyles)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_donut_threshold_warning_Color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_donut_threshold_warning_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_warning_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_donut_threshold_danger_Color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_donut_threshold_danger_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_danger_Color.js");
/* eslint-disable camelcase */


// Donut utilization styles
const DonutUtilizationStyles = {
    thresholds: {
        colorScale: [_patternfly_react_tokens_dist_esm_chart_donut_threshold_warning_Color__WEBPACK_IMPORTED_MODULE_0__["default"].value, _patternfly_react_tokens_dist_esm_chart_donut_threshold_danger_Color__WEBPACK_IMPORTED_MODULE_1__["default"].value]
    }
};
//# sourceMappingURL=donut-utilization-styles.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/styles/legend-tooltip-styles.js":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/styles/legend-tooltip-styles.js ***!
  \**************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "LegendTooltipStyles": () => (/* binding */ LegendTooltipStyles)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_global_FontWeight_bold__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/global_FontWeight_bold */ "./node_modules/@patternfly/react-tokens/dist/esm/global_FontWeight_bold.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_voronoi_labels_Fill__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_voronoi_labels_Fill */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_labels_Fill.js");
/* eslint-disable camelcase */


// Legend tooltip styles
const LegendTooltipStyles = {
    flyout: {
        padding: 40
    },
    label: {
        fill: _patternfly_react_tokens_dist_esm_chart_voronoi_labels_Fill__WEBPACK_IMPORTED_MODULE_0__["default"].value,
        fontWeight: _patternfly_react_tokens_dist_esm_global_FontWeight_bold__WEBPACK_IMPORTED_MODULE_1__["default"].value
    }
};
//# sourceMappingURL=legend-tooltip-styles.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/styles/scatter-styles.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/styles/scatter-styles.js ***!
  \*******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ScatterStyles": () => (/* binding */ ScatterStyles)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_scatter_active_size__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_scatter_active_size */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_scatter_active_size.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_scatter_size__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_scatter_size */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_scatter_size.js");
/* eslint-disable camelcase */


// Donut styles
const ScatterStyles = {
    activeSize: _patternfly_react_tokens_dist_esm_chart_scatter_active_size__WEBPACK_IMPORTED_MODULE_0__["default"].value,
    size: _patternfly_react_tokens_dist_esm_chart_scatter_size__WEBPACK_IMPORTED_MODULE_1__["default"].value
};
//# sourceMappingURL=scatter-styles.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/axis-theme.js":
/*!***************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/axis-theme.js ***!
  \***************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "AxisTheme": () => (/* binding */ AxisTheme)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_axis_grid_stroke_Color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_axis_grid_stroke_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_grid_stroke_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_axis_tick_stroke_Color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_axis_tick_stroke_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_tick_stroke_Color.js");
/* eslint-disable camelcase */


// Axis theme
const AxisTheme = {
    axis: {
        style: {
            grid: {
                stroke: _patternfly_react_tokens_dist_esm_chart_axis_grid_stroke_Color__WEBPACK_IMPORTED_MODULE_0__["default"].value
            },
            ticks: {
                stroke: _patternfly_react_tokens_dist_esm_chart_axis_tick_stroke_Color__WEBPACK_IMPORTED_MODULE_1__["default"].value
            }
        }
    }
};
//# sourceMappingURL=axis-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/base-theme.js":
/*!***************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/base-theme.js ***!
  \***************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "BaseTheme": () => (/* binding */ BaseTheme)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_global_FontFamily__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_global_FontFamily */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_FontFamily.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_global_letter_spacing__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_global_letter_spacing */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_letter_spacing.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_global_FontSize_sm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_global_FontSize_sm */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_FontSize_sm.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_global_label_Padding__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_global_label_Padding */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_label_Padding.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_global_label_stroke__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_global_label_stroke */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_label_stroke.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_global_label_text_anchor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_global_label_text_anchor */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_label_text_anchor.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_global_layout_Padding__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_global_layout_Padding */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_layout_Padding.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_global_layout_Height__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_global_layout_Height */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_layout_Height.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_global_layout_Width__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_global_layout_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_layout_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_global_stroke_line_cap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_global_stroke_line_cap */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_stroke_line_cap.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_global_stroke_line_join__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_global_stroke_line_join */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_stroke_line_join.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_area_data_Fill__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_area_data_Fill */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_area_data_Fill.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_area_Opacity__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_area_Opacity */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_area_Opacity.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_area_stroke_Width__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_area_stroke_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_area_stroke_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_axis_axis_stroke_Width__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_axis_axis_stroke_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_axis_stroke_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_axis_axis_stroke_Color__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_axis_axis_stroke_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_axis_stroke_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_axis_axis_Fill__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_axis_axis_Fill */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_axis_Fill.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_axis_axis_label_Padding__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_axis_axis_label_Padding */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_axis_label_Padding.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_axis_axis_label_stroke_Color__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_axis_axis_label_stroke_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_axis_label_stroke_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_axis_grid_Fill__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_axis_grid_Fill */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_grid_Fill.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_axis_grid_PointerEvents__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_axis_grid_PointerEvents */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_grid_PointerEvents.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_axis_tick_Fill__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_axis_tick_Fill */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_tick_Fill.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_axis_tick_Size__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_axis_tick_Size */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_tick_Size.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_axis_tick_stroke_Color__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_axis_tick_stroke_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_tick_stroke_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_axis_tick_Width__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_axis_tick_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_tick_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_axis_tick_label_Fill__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_axis_tick_label_Fill */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_tick_label_Fill.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_bar_Width__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_bar_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bar_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_bar_data_stroke__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_bar_data_stroke */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bar_data_stroke.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_bar_data_Fill__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_bar_data_Fill */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bar_data_Fill.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_bar_data_Padding__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_bar_data_Padding */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bar_data_Padding.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_bar_data_stroke_Width__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_bar_data_stroke_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bar_data_stroke_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_boxplot_max_Padding__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_boxplot_max_Padding */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_max_Padding.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_boxplot_max_stroke_Color__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_boxplot_max_stroke_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_max_stroke_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_boxplot_max_stroke_Width__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_boxplot_max_stroke_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_max_stroke_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_boxplot_median_Padding__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_boxplot_median_Padding */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_median_Padding.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_boxplot_median_stroke_Color__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_boxplot_median_stroke_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_median_stroke_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_boxplot_median_stroke_Width__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_boxplot_median_stroke_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_median_stroke_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_boxplot_min_Padding__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_boxplot_min_Padding */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_min_Padding.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_boxplot_min_stroke_Width__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_boxplot_min_stroke_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_min_stroke_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_boxplot_min_stroke_Color__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_boxplot_min_stroke_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_min_stroke_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_boxplot_lower_quartile_Padding__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_boxplot_lower_quartile_Padding */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_lower_quartile_Padding.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_boxplot_lower_quartile_Fill__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_boxplot_lower_quartile_Fill */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_lower_quartile_Fill.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_boxplot_upper_quartile_Padding__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_boxplot_upper_quartile_Padding */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_upper_quartile_Padding.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_boxplot_upper_quartile_Fill__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_boxplot_upper_quartile_Fill */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_upper_quartile_Fill.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_boxplot_box_Width__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_boxplot_box_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_box_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_candelstick_data_stroke_Width__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_candelstick_data_stroke_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_candelstick_data_stroke_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_candelstick_data_stroke_Color__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_candelstick_data_stroke_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_candelstick_data_stroke_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_candelstick_candle_positive_Color__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_candelstick_candle_positive_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_candelstick_candle_positive_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_candelstick_candle_negative_Color__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_candelstick_candle_negative_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_candelstick_candle_negative_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_errorbar_BorderWidth__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_errorbar_BorderWidth */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_errorbar_BorderWidth.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_errorbar_data_Fill__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_errorbar_data_Fill */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_errorbar_data_Fill.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_errorbar_data_Opacity__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_errorbar_data_Opacity */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_errorbar_data_Opacity.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_errorbar_data_stroke_Width__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_errorbar_data_stroke_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_errorbar_data_stroke_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_errorbar_data_stroke_Color__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_errorbar_data_stroke_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_errorbar_data_stroke_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_legend_gutter_Width__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_legend_gutter_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_legend_gutter_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_legend_orientation__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_legend_orientation */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_legend_orientation.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_legend_title_orientation__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_legend_title_orientation */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_legend_title_orientation.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_legend_data_type__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_legend_data_type */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_legend_data_type.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_legend_title_Padding__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_legend_title_Padding */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_legend_title_Padding.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_line_data_Fill__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_line_data_Fill */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_line_data_Fill.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_line_data_Opacity__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_line_data_Opacity */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_line_data_Opacity.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_line_data_stroke_Width__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_line_data_stroke_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_line_data_stroke_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_line_data_stroke_Color__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_line_data_stroke_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_line_data_stroke_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_pie_Padding__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_pie_Padding */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_pie_Padding.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_pie_data_Padding__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_pie_data_Padding */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_pie_data_Padding.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_pie_data_stroke_Width__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_pie_data_stroke_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_pie_data_stroke_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_pie_data_stroke_Color__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_pie_data_stroke_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_pie_data_stroke_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_pie_labels_Padding__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_pie_labels_Padding */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_pie_labels_Padding.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_pie_Height__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_pie_Height */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_pie_Height.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_pie_Width__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_pie_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_pie_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_scatter_data_stroke_Color__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_scatter_data_stroke_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_scatter_data_stroke_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_scatter_data_stroke_Width__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_scatter_data_stroke_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_scatter_data_stroke_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_scatter_data_Opacity__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_scatter_data_Opacity */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_scatter_data_Opacity.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_scatter_data_Fill__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_scatter_data_Fill */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_scatter_data_Fill.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_stack_data_stroke_Width__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_stack_data_stroke_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_stack_data_stroke_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_tooltip_corner_radius__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_tooltip_corner_radius */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_corner_radius.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_tooltip_pointer_length__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_tooltip_pointer_length */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_pointer_length.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_tooltip_Fill__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_tooltip_Fill */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_Fill.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_tooltip_flyoutStyle_corner_radius__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_tooltip_flyoutStyle_corner_radius */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_flyoutStyle_corner_radius.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_tooltip_flyoutStyle_stroke_Width__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_tooltip_flyoutStyle_stroke_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_flyoutStyle_stroke_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_tooltip_flyoutStyle_PointerEvents__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_tooltip_flyoutStyle_PointerEvents */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_flyoutStyle_PointerEvents.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_tooltip_flyoutStyle_stroke_Color__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_tooltip_flyoutStyle_stroke_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_flyoutStyle_stroke_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_tooltip_flyoutStyle_Fill__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_tooltip_flyoutStyle_Fill */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_flyoutStyle_Fill.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_tooltip_pointer_Width__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_tooltip_pointer_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_pointer_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_tooltip_Padding__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_tooltip_Padding */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_Padding.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_tooltip_PointerEvents__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_tooltip_PointerEvents */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_PointerEvents.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_voronoi_data_Fill__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_voronoi_data_Fill */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_data_Fill.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_voronoi_data_stroke_Color__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_voronoi_data_stroke_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_data_stroke_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_voronoi_data_stroke_Width__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_voronoi_data_stroke_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_data_stroke_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_voronoi_labels_Fill__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_voronoi_labels_Fill */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_labels_Fill.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_voronoi_labels_Padding__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_voronoi_labels_Padding */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_labels_Padding.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_voronoi_labels_PointerEvents__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_voronoi_labels_PointerEvents */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_labels_PointerEvents.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_voronoi_flyout_stroke_Width__WEBPACK_IMPORTED_MODULE_95__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_voronoi_flyout_stroke_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_flyout_stroke_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_voronoi_flyout_PointerEvents__WEBPACK_IMPORTED_MODULE_93__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_voronoi_flyout_PointerEvents */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_flyout_PointerEvents.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_voronoi_flyout_stroke_Color__WEBPACK_IMPORTED_MODULE_94__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_voronoi_flyout_stroke_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_flyout_stroke_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_voronoi_flyout_stroke_Fill__WEBPACK_IMPORTED_MODULE_92__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_voronoi_flyout_stroke_Fill */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_flyout_stroke_Fill.js");
/* eslint-disable camelcase */
































































































// Note: Values must be in pixles
// Typography
//
// Note: Victory's approximateTextSize function uses specific character widths and does not work with font variables
// See https://github.com/patternfly/patternfly-react/issues/5300
const TYPOGRAPHY_FONT_FAMILY = _patternfly_react_tokens_dist_esm_chart_global_FontFamily__WEBPACK_IMPORTED_MODULE_0__["default"].value.replace(/ /g, '');
const TYPOGRAPHY_LETTER_SPACING = _patternfly_react_tokens_dist_esm_chart_global_letter_spacing__WEBPACK_IMPORTED_MODULE_1__["default"].value;
const TYPOGRAPHY_FONT_SIZE = _patternfly_react_tokens_dist_esm_chart_global_FontSize_sm__WEBPACK_IMPORTED_MODULE_2__["default"].value;
// Labels
const LABEL_PROPS = {
    fontFamily: TYPOGRAPHY_FONT_FAMILY,
    fontSize: TYPOGRAPHY_FONT_SIZE,
    letterSpacing: TYPOGRAPHY_LETTER_SPACING,
    padding: _patternfly_react_tokens_dist_esm_chart_global_label_Padding__WEBPACK_IMPORTED_MODULE_3__["default"].value,
    stroke: _patternfly_react_tokens_dist_esm_chart_global_label_stroke__WEBPACK_IMPORTED_MODULE_4__["default"].value
};
const LABEL_CENTERED_PROPS = Object.assign(Object.assign({}, LABEL_PROPS), { textAnchor: _patternfly_react_tokens_dist_esm_chart_global_label_text_anchor__WEBPACK_IMPORTED_MODULE_5__["default"].value });
// Layout
const LAYOUT_PROPS = {
    padding: _patternfly_react_tokens_dist_esm_chart_global_layout_Padding__WEBPACK_IMPORTED_MODULE_6__["default"].value,
    height: _patternfly_react_tokens_dist_esm_chart_global_layout_Height__WEBPACK_IMPORTED_MODULE_7__["default"].value,
    width: _patternfly_react_tokens_dist_esm_chart_global_layout_Width__WEBPACK_IMPORTED_MODULE_8__["default"].value
};
// Strokes
const STROKE_LINE_CAP = _patternfly_react_tokens_dist_esm_chart_global_stroke_line_cap__WEBPACK_IMPORTED_MODULE_9__["default"].value;
const STROKE_LINE_JOIN = _patternfly_react_tokens_dist_esm_chart_global_stroke_line_join__WEBPACK_IMPORTED_MODULE_10__["default"].value;
// Victory theme properties only
const BaseTheme = {
    area: Object.assign(Object.assign({}, LAYOUT_PROPS), { style: {
            data: {
                fill: _patternfly_react_tokens_dist_esm_chart_area_data_Fill__WEBPACK_IMPORTED_MODULE_11__["default"].value,
                fillOpacity: _patternfly_react_tokens_dist_esm_chart_area_Opacity__WEBPACK_IMPORTED_MODULE_12__["default"].value,
                // Omit stroke to add a line border from color scale
                // stroke: chart_global_label_stroke.value,
                strokeWidth: _patternfly_react_tokens_dist_esm_chart_area_stroke_Width__WEBPACK_IMPORTED_MODULE_13__["default"].value
            },
            labels: LABEL_CENTERED_PROPS
        } }),
    axis: Object.assign(Object.assign({}, LAYOUT_PROPS), { style: {
            axis: {
                fill: _patternfly_react_tokens_dist_esm_chart_axis_axis_Fill__WEBPACK_IMPORTED_MODULE_14__["default"].value,
                strokeWidth: _patternfly_react_tokens_dist_esm_chart_axis_axis_stroke_Width__WEBPACK_IMPORTED_MODULE_15__["default"].value,
                stroke: _patternfly_react_tokens_dist_esm_chart_axis_axis_stroke_Color__WEBPACK_IMPORTED_MODULE_16__["default"].value,
                strokeLinecap: STROKE_LINE_CAP,
                strokeLinejoin: STROKE_LINE_JOIN
            },
            axisLabel: Object.assign(Object.assign({}, LABEL_CENTERED_PROPS), { padding: _patternfly_react_tokens_dist_esm_chart_axis_axis_label_Padding__WEBPACK_IMPORTED_MODULE_17__["default"].value, stroke: _patternfly_react_tokens_dist_esm_chart_axis_axis_label_stroke_Color__WEBPACK_IMPORTED_MODULE_18__["default"].value }),
            grid: {
                fill: _patternfly_react_tokens_dist_esm_chart_axis_grid_Fill__WEBPACK_IMPORTED_MODULE_19__["default"].value,
                stroke: 'none',
                pointerEvents: _patternfly_react_tokens_dist_esm_chart_axis_grid_PointerEvents__WEBPACK_IMPORTED_MODULE_20__["default"].value,
                strokeLinecap: STROKE_LINE_CAP,
                strokeLinejoin: STROKE_LINE_JOIN
            },
            ticks: {
                fill: _patternfly_react_tokens_dist_esm_chart_axis_tick_Fill__WEBPACK_IMPORTED_MODULE_21__["default"].value,
                size: _patternfly_react_tokens_dist_esm_chart_axis_tick_Size__WEBPACK_IMPORTED_MODULE_22__["default"].value,
                stroke: _patternfly_react_tokens_dist_esm_chart_axis_tick_stroke_Color__WEBPACK_IMPORTED_MODULE_23__["default"].value,
                strokeLinecap: STROKE_LINE_CAP,
                strokeLinejoin: STROKE_LINE_JOIN,
                strokeWidth: _patternfly_react_tokens_dist_esm_chart_axis_tick_Width__WEBPACK_IMPORTED_MODULE_24__["default"].value
            },
            tickLabels: Object.assign(Object.assign({}, LABEL_PROPS), { fill: _patternfly_react_tokens_dist_esm_chart_axis_tick_label_Fill__WEBPACK_IMPORTED_MODULE_25__["default"].value })
        } }),
    bar: Object.assign(Object.assign({}, LAYOUT_PROPS), { barWidth: _patternfly_react_tokens_dist_esm_chart_bar_Width__WEBPACK_IMPORTED_MODULE_26__["default"].value, style: {
            data: {
                fill: _patternfly_react_tokens_dist_esm_chart_bar_data_Fill__WEBPACK_IMPORTED_MODULE_27__["default"].value,
                padding: _patternfly_react_tokens_dist_esm_chart_bar_data_Padding__WEBPACK_IMPORTED_MODULE_28__["default"].value,
                stroke: _patternfly_react_tokens_dist_esm_chart_bar_data_stroke__WEBPACK_IMPORTED_MODULE_29__["default"].value,
                strokeWidth: _patternfly_react_tokens_dist_esm_chart_bar_data_stroke_Width__WEBPACK_IMPORTED_MODULE_30__["default"].value
            },
            labels: LABEL_PROPS
        } }),
    boxplot: Object.assign(Object.assign({}, LAYOUT_PROPS), { style: {
            max: {
                padding: _patternfly_react_tokens_dist_esm_chart_boxplot_max_Padding__WEBPACK_IMPORTED_MODULE_31__["default"].value,
                stroke: _patternfly_react_tokens_dist_esm_chart_boxplot_max_stroke_Color__WEBPACK_IMPORTED_MODULE_32__["default"].value,
                strokeWidth: _patternfly_react_tokens_dist_esm_chart_boxplot_max_stroke_Width__WEBPACK_IMPORTED_MODULE_33__["default"].value
            },
            maxLabels: LABEL_PROPS,
            median: {
                padding: _patternfly_react_tokens_dist_esm_chart_boxplot_median_Padding__WEBPACK_IMPORTED_MODULE_34__["default"].value,
                stroke: _patternfly_react_tokens_dist_esm_chart_boxplot_median_stroke_Color__WEBPACK_IMPORTED_MODULE_35__["default"].value,
                strokeWidth: _patternfly_react_tokens_dist_esm_chart_boxplot_median_stroke_Width__WEBPACK_IMPORTED_MODULE_36__["default"].value
            },
            medianLabels: LABEL_PROPS,
            min: {
                padding: _patternfly_react_tokens_dist_esm_chart_boxplot_min_Padding__WEBPACK_IMPORTED_MODULE_37__["default"].value,
                stroke: _patternfly_react_tokens_dist_esm_chart_boxplot_min_stroke_Color__WEBPACK_IMPORTED_MODULE_38__["default"].value,
                strokeWidth: _patternfly_react_tokens_dist_esm_chart_boxplot_min_stroke_Width__WEBPACK_IMPORTED_MODULE_39__["default"].value
            },
            minLabels: LABEL_PROPS,
            q1: {
                fill: _patternfly_react_tokens_dist_esm_chart_boxplot_lower_quartile_Fill__WEBPACK_IMPORTED_MODULE_40__["default"].value,
                padding: _patternfly_react_tokens_dist_esm_chart_boxplot_lower_quartile_Padding__WEBPACK_IMPORTED_MODULE_41__["default"].value
            },
            q1Labels: LABEL_PROPS,
            q3: {
                fill: _patternfly_react_tokens_dist_esm_chart_boxplot_upper_quartile_Fill__WEBPACK_IMPORTED_MODULE_42__["default"].value,
                padding: _patternfly_react_tokens_dist_esm_chart_boxplot_upper_quartile_Padding__WEBPACK_IMPORTED_MODULE_43__["default"].value
            },
            q3Labels: LABEL_PROPS
        }, boxWidth: _patternfly_react_tokens_dist_esm_chart_boxplot_box_Width__WEBPACK_IMPORTED_MODULE_44__["default"].value }),
    candlestick: Object.assign(Object.assign({}, LAYOUT_PROPS), { candleColors: {
            positive: _patternfly_react_tokens_dist_esm_chart_candelstick_candle_positive_Color__WEBPACK_IMPORTED_MODULE_45__["default"].value,
            negative: _patternfly_react_tokens_dist_esm_chart_candelstick_candle_negative_Color__WEBPACK_IMPORTED_MODULE_46__["default"].value
        }, style: {
            data: {
                stroke: _patternfly_react_tokens_dist_esm_chart_candelstick_data_stroke_Color__WEBPACK_IMPORTED_MODULE_47__["default"].value,
                strokeWidth: _patternfly_react_tokens_dist_esm_chart_candelstick_data_stroke_Width__WEBPACK_IMPORTED_MODULE_48__["default"].value
            },
            labels: LABEL_CENTERED_PROPS
        } }),
    chart: Object.assign({}, LAYOUT_PROPS),
    errorbar: Object.assign(Object.assign({}, LAYOUT_PROPS), { borderWidth: _patternfly_react_tokens_dist_esm_chart_errorbar_BorderWidth__WEBPACK_IMPORTED_MODULE_49__["default"].value, style: {
            data: {
                fill: _patternfly_react_tokens_dist_esm_chart_errorbar_data_Fill__WEBPACK_IMPORTED_MODULE_50__["default"].value,
                opacity: _patternfly_react_tokens_dist_esm_chart_errorbar_data_Opacity__WEBPACK_IMPORTED_MODULE_51__["default"].value,
                stroke: _patternfly_react_tokens_dist_esm_chart_errorbar_data_stroke_Color__WEBPACK_IMPORTED_MODULE_52__["default"].value,
                strokeWidth: _patternfly_react_tokens_dist_esm_chart_errorbar_data_stroke_Width__WEBPACK_IMPORTED_MODULE_53__["default"].value
            },
            labels: LABEL_CENTERED_PROPS
        } }),
    group: Object.assign({}, LAYOUT_PROPS),
    legend: {
        gutter: _patternfly_react_tokens_dist_esm_chart_legend_gutter_Width__WEBPACK_IMPORTED_MODULE_54__["default"].value,
        orientation: _patternfly_react_tokens_dist_esm_chart_legend_orientation__WEBPACK_IMPORTED_MODULE_55__["default"].value,
        titleOrientation: _patternfly_react_tokens_dist_esm_chart_legend_title_orientation__WEBPACK_IMPORTED_MODULE_56__["default"].value,
        style: {
            data: {
                type: _patternfly_react_tokens_dist_esm_chart_legend_data_type__WEBPACK_IMPORTED_MODULE_57__["default"].value
            },
            labels: LABEL_PROPS,
            title: Object.assign(Object.assign({}, LABEL_PROPS), { fontSize: TYPOGRAPHY_FONT_SIZE, padding: _patternfly_react_tokens_dist_esm_chart_legend_title_Padding__WEBPACK_IMPORTED_MODULE_58__["default"].value })
        }
    },
    line: Object.assign(Object.assign({}, LAYOUT_PROPS), { style: {
            data: {
                fill: _patternfly_react_tokens_dist_esm_chart_line_data_Fill__WEBPACK_IMPORTED_MODULE_59__["default"].value,
                opacity: _patternfly_react_tokens_dist_esm_chart_line_data_Opacity__WEBPACK_IMPORTED_MODULE_60__["default"].value,
                stroke: _patternfly_react_tokens_dist_esm_chart_line_data_stroke_Color__WEBPACK_IMPORTED_MODULE_61__["default"].value,
                strokeWidth: _patternfly_react_tokens_dist_esm_chart_line_data_stroke_Width__WEBPACK_IMPORTED_MODULE_62__["default"].value
            },
            labels: LABEL_CENTERED_PROPS
        } }),
    pie: {
        padding: _patternfly_react_tokens_dist_esm_chart_pie_Padding__WEBPACK_IMPORTED_MODULE_63__["default"].value,
        style: {
            data: {
                padding: _patternfly_react_tokens_dist_esm_chart_pie_data_Padding__WEBPACK_IMPORTED_MODULE_64__["default"].value,
                stroke: _patternfly_react_tokens_dist_esm_chart_pie_data_stroke_Color__WEBPACK_IMPORTED_MODULE_65__["default"].value,
                strokeWidth: _patternfly_react_tokens_dist_esm_chart_pie_data_stroke_Width__WEBPACK_IMPORTED_MODULE_66__["default"].value
            },
            labels: Object.assign(Object.assign({}, LABEL_PROPS), { padding: _patternfly_react_tokens_dist_esm_chart_pie_labels_Padding__WEBPACK_IMPORTED_MODULE_67__["default"].value })
        },
        height: _patternfly_react_tokens_dist_esm_chart_pie_Height__WEBPACK_IMPORTED_MODULE_68__["default"].value,
        width: _patternfly_react_tokens_dist_esm_chart_pie_Width__WEBPACK_IMPORTED_MODULE_69__["default"].value
    },
    scatter: Object.assign(Object.assign({}, LAYOUT_PROPS), { style: {
            data: {
                fill: _patternfly_react_tokens_dist_esm_chart_scatter_data_Fill__WEBPACK_IMPORTED_MODULE_70__["default"].value,
                opacity: _patternfly_react_tokens_dist_esm_chart_scatter_data_Opacity__WEBPACK_IMPORTED_MODULE_71__["default"].value,
                stroke: _patternfly_react_tokens_dist_esm_chart_scatter_data_stroke_Color__WEBPACK_IMPORTED_MODULE_72__["default"].value,
                strokeWidth: _patternfly_react_tokens_dist_esm_chart_scatter_data_stroke_Width__WEBPACK_IMPORTED_MODULE_73__["default"].value
            },
            labels: LABEL_CENTERED_PROPS
        } }),
    stack: Object.assign(Object.assign({}, LAYOUT_PROPS), { style: {
            data: {
                strokeWidth: _patternfly_react_tokens_dist_esm_chart_stack_data_stroke_Width__WEBPACK_IMPORTED_MODULE_74__["default"].value
            }
        } }),
    tooltip: {
        cornerRadius: _patternfly_react_tokens_dist_esm_chart_tooltip_corner_radius__WEBPACK_IMPORTED_MODULE_75__["default"].value,
        flyoutPadding: _patternfly_react_tokens_dist_esm_chart_tooltip_Padding__WEBPACK_IMPORTED_MODULE_76__["default"].value,
        flyoutStyle: {
            cornerRadius: _patternfly_react_tokens_dist_esm_chart_tooltip_flyoutStyle_corner_radius__WEBPACK_IMPORTED_MODULE_77__["default"].value,
            fill: _patternfly_react_tokens_dist_esm_chart_tooltip_flyoutStyle_Fill__WEBPACK_IMPORTED_MODULE_78__["default"].value,
            pointerEvents: _patternfly_react_tokens_dist_esm_chart_tooltip_flyoutStyle_PointerEvents__WEBPACK_IMPORTED_MODULE_79__["default"].value,
            stroke: _patternfly_react_tokens_dist_esm_chart_tooltip_flyoutStyle_stroke_Color__WEBPACK_IMPORTED_MODULE_80__["default"].value,
            strokeWidth: _patternfly_react_tokens_dist_esm_chart_tooltip_flyoutStyle_stroke_Width__WEBPACK_IMPORTED_MODULE_81__["default"].value
        },
        pointerLength: _patternfly_react_tokens_dist_esm_chart_tooltip_pointer_length__WEBPACK_IMPORTED_MODULE_82__["default"].value,
        pointerWidth: _patternfly_react_tokens_dist_esm_chart_tooltip_pointer_Width__WEBPACK_IMPORTED_MODULE_83__["default"].value,
        style: {
            fill: _patternfly_react_tokens_dist_esm_chart_tooltip_Fill__WEBPACK_IMPORTED_MODULE_84__["default"].value,
            pointerEvents: _patternfly_react_tokens_dist_esm_chart_tooltip_PointerEvents__WEBPACK_IMPORTED_MODULE_85__["default"].value
        }
    },
    voronoi: Object.assign(Object.assign({}, LAYOUT_PROPS), { style: {
            data: {
                fill: _patternfly_react_tokens_dist_esm_chart_voronoi_data_Fill__WEBPACK_IMPORTED_MODULE_86__["default"].value,
                stroke: _patternfly_react_tokens_dist_esm_chart_voronoi_data_stroke_Color__WEBPACK_IMPORTED_MODULE_87__["default"].value,
                strokeWidth: _patternfly_react_tokens_dist_esm_chart_voronoi_data_stroke_Width__WEBPACK_IMPORTED_MODULE_88__["default"].value
            },
            labels: Object.assign(Object.assign({}, LABEL_CENTERED_PROPS), { fill: _patternfly_react_tokens_dist_esm_chart_voronoi_labels_Fill__WEBPACK_IMPORTED_MODULE_89__["default"].value, padding: _patternfly_react_tokens_dist_esm_chart_voronoi_labels_Padding__WEBPACK_IMPORTED_MODULE_90__["default"].value, pointerEvents: _patternfly_react_tokens_dist_esm_chart_voronoi_labels_PointerEvents__WEBPACK_IMPORTED_MODULE_91__["default"].value }),
            // Note: These properties override tooltip
            flyout: {
                fill: _patternfly_react_tokens_dist_esm_chart_voronoi_flyout_stroke_Fill__WEBPACK_IMPORTED_MODULE_92__["default"].value,
                pointerEvents: _patternfly_react_tokens_dist_esm_chart_voronoi_flyout_PointerEvents__WEBPACK_IMPORTED_MODULE_93__["default"].value,
                stroke: _patternfly_react_tokens_dist_esm_chart_voronoi_flyout_stroke_Color__WEBPACK_IMPORTED_MODULE_94__["default"].value,
                strokeWidth: _patternfly_react_tokens_dist_esm_chart_voronoi_flyout_stroke_Width__WEBPACK_IMPORTED_MODULE_95__["default"].value
            }
        } })
};
//# sourceMappingURL=base-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/bullet-theme.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/bullet-theme.js ***!
  \*****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "BulletTheme": () => (/* binding */ BulletTheme),
/* harmony export */   "BulletComparativeErrorMeasureTheme": () => (/* binding */ BulletComparativeErrorMeasureTheme),
/* harmony export */   "BulletComparativeMeasureTheme": () => (/* binding */ BulletComparativeMeasureTheme),
/* harmony export */   "BulletComparativeWarningMeasureTheme": () => (/* binding */ BulletComparativeWarningMeasureTheme),
/* harmony export */   "BulletGroupTitleTheme": () => (/* binding */ BulletGroupTitleTheme),
/* harmony export */   "BulletPrimaryDotMeasureTheme": () => (/* binding */ BulletPrimaryDotMeasureTheme),
/* harmony export */   "BulletPrimaryNegativeMeasureTheme": () => (/* binding */ BulletPrimaryNegativeMeasureTheme),
/* harmony export */   "BulletPrimarySegmentedMeasureTheme": () => (/* binding */ BulletPrimarySegmentedMeasureTheme),
/* harmony export */   "BulletQualitativeRangeTheme": () => (/* binding */ BulletQualitativeRangeTheme)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_bullet_Height__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_bullet_Height */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_Height.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_bullet_comparative_measure_Fill_Color__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_Fill_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_Fill_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_bullet_comparative_measure_stroke_Color__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_stroke_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_stroke_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_bullet_comparative_measure_stroke_Width__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_stroke_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_stroke_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_bullet_comparative_measure_error_Fill_Color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_error_Fill_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_error_Fill_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_bullet_comparative_measure_error_stroke_Color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_error_stroke_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_error_stroke_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_bullet_comparative_measure_error_stroke_Width__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_error_stroke_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_error_stroke_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_bullet_comparative_measure_warning_Fill_Color__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_warning_Fill_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_warning_Fill_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_bullet_comparative_measure_warning_stroke_Color__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_warning_stroke_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_warning_stroke_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_bullet_comparative_measure_warning_stroke_Width__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_warning_stroke_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_warning_stroke_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_bullet_group_title_divider_Fill_Color__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_bullet_group_title_divider_Fill_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_group_title_divider_Fill_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_bullet_group_title_divider_stroke_Color__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_bullet_group_title_divider_stroke_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_group_title_divider_stroke_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_bullet_group_title_divider_stroke_Width__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_bullet_group_title_divider_stroke_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_group_title_divider_stroke_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_black_100__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_black_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_black_200__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_black_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_black_300__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_black_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_black_400__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_black_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_black_500__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_black_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_500.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_red_100__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_red_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_red_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_red_200__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_red_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_red_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_red_300__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_red_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_red_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_red_400__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_red_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_red_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_red_500__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_red_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_red_500.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_global_layout_Padding__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_global_layout_Padding */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_layout_Padding.js");
/* eslint-disable camelcase */
























// See https://docs.google.com/document/d/1cw10pJFXWruB1SA8TQwituxn5Ss6KpxYPCOYGrH8qAY/edit#
// See https://www.patternfly.org/v3/pattern-library/data-visualization/bullet-chart/#design
// Bullet theme
const BulletTheme = {
    chart: {
        height: _patternfly_react_tokens_dist_esm_chart_bullet_Height__WEBPACK_IMPORTED_MODULE_0__["default"].value
    }
};
// Bullet comparative measure error theme
const BulletComparativeErrorMeasureTheme = {
    bar: {
        height: _patternfly_react_tokens_dist_esm_chart_bullet_Height__WEBPACK_IMPORTED_MODULE_0__["default"].value,
        style: {
            data: {
                fill: _patternfly_react_tokens_dist_esm_chart_bullet_comparative_measure_error_Fill_Color__WEBPACK_IMPORTED_MODULE_1__["default"].value,
                stroke: _patternfly_react_tokens_dist_esm_chart_bullet_comparative_measure_error_stroke_Color__WEBPACK_IMPORTED_MODULE_2__["default"].value,
                strokeWidth: _patternfly_react_tokens_dist_esm_chart_bullet_comparative_measure_error_stroke_Width__WEBPACK_IMPORTED_MODULE_3__["default"].value
            }
        }
    }
};
// Bullet comparative measure theme
const BulletComparativeMeasureTheme = {
    bar: {
        height: _patternfly_react_tokens_dist_esm_chart_bullet_Height__WEBPACK_IMPORTED_MODULE_0__["default"].value,
        style: {
            data: {
                fill: _patternfly_react_tokens_dist_esm_chart_bullet_comparative_measure_Fill_Color__WEBPACK_IMPORTED_MODULE_4__["default"].value,
                stroke: _patternfly_react_tokens_dist_esm_chart_bullet_comparative_measure_stroke_Color__WEBPACK_IMPORTED_MODULE_5__["default"].value,
                strokeWidth: _patternfly_react_tokens_dist_esm_chart_bullet_comparative_measure_stroke_Width__WEBPACK_IMPORTED_MODULE_6__["default"].value
            }
        }
    }
};
// Bullet comparative measure warning theme
const BulletComparativeWarningMeasureTheme = {
    bar: {
        height: _patternfly_react_tokens_dist_esm_chart_bullet_Height__WEBPACK_IMPORTED_MODULE_0__["default"].value,
        style: {
            data: {
                fill: _patternfly_react_tokens_dist_esm_chart_bullet_comparative_measure_warning_Fill_Color__WEBPACK_IMPORTED_MODULE_7__["default"].value,
                stroke: _patternfly_react_tokens_dist_esm_chart_bullet_comparative_measure_warning_stroke_Color__WEBPACK_IMPORTED_MODULE_8__["default"].value,
                strokeWidth: _patternfly_react_tokens_dist_esm_chart_bullet_comparative_measure_warning_stroke_Width__WEBPACK_IMPORTED_MODULE_9__["default"].value
            }
        }
    }
};
// Bullet group title theme
const BulletGroupTitleTheme = {
    chart: {
        padding: {
            bottom: 0,
            left: 0,
            right: 0,
            top: _patternfly_react_tokens_dist_esm_chart_global_layout_Padding__WEBPACK_IMPORTED_MODULE_10__["default"].value
        } // Victory incorrectly typed ThemeBaseProps.padding as number instead of PaddingProps
    },
    line: {
        style: {
            data: {
                fill: _patternfly_react_tokens_dist_esm_chart_bullet_group_title_divider_Fill_Color__WEBPACK_IMPORTED_MODULE_11__["default"].value,
                stroke: _patternfly_react_tokens_dist_esm_chart_bullet_group_title_divider_stroke_Color__WEBPACK_IMPORTED_MODULE_12__["default"].value,
                strokeWidth: _patternfly_react_tokens_dist_esm_chart_bullet_group_title_divider_stroke_Width__WEBPACK_IMPORTED_MODULE_13__["default"].value
            }
        }
    }
};
// Bullet primary dot measure theme
const BulletPrimaryDotMeasureTheme = {
    group: {
        height: _patternfly_react_tokens_dist_esm_chart_bullet_Height__WEBPACK_IMPORTED_MODULE_0__["default"].value
    }
};
// Bullet primary negative measure theme
const BulletPrimaryNegativeMeasureTheme = {
    group: {
        colorScale: [
            _patternfly_react_tokens_dist_esm_chart_color_red_100__WEBPACK_IMPORTED_MODULE_14__["default"].value,
            _patternfly_react_tokens_dist_esm_chart_color_red_200__WEBPACK_IMPORTED_MODULE_15__["default"].value,
            _patternfly_react_tokens_dist_esm_chart_color_red_300__WEBPACK_IMPORTED_MODULE_16__["default"].value,
            _patternfly_react_tokens_dist_esm_chart_color_red_400__WEBPACK_IMPORTED_MODULE_17__["default"].value,
            _patternfly_react_tokens_dist_esm_chart_color_red_500__WEBPACK_IMPORTED_MODULE_18__["default"].value
        ],
        height: _patternfly_react_tokens_dist_esm_chart_bullet_Height__WEBPACK_IMPORTED_MODULE_0__["default"].value
    }
};
// Bullet primary segmented measure theme
const BulletPrimarySegmentedMeasureTheme = {
    group: {
        height: _patternfly_react_tokens_dist_esm_chart_bullet_Height__WEBPACK_IMPORTED_MODULE_0__["default"].value
    }
};
// Bullet qualitative range theme
const BulletQualitativeRangeTheme = {
    group: {
        colorScale: [
            _patternfly_react_tokens_dist_esm_chart_color_black_100__WEBPACK_IMPORTED_MODULE_19__["default"].value,
            _patternfly_react_tokens_dist_esm_chart_color_black_200__WEBPACK_IMPORTED_MODULE_20__["default"].value,
            _patternfly_react_tokens_dist_esm_chart_color_black_300__WEBPACK_IMPORTED_MODULE_21__["default"].value,
            _patternfly_react_tokens_dist_esm_chart_color_black_400__WEBPACK_IMPORTED_MODULE_22__["default"].value,
            _patternfly_react_tokens_dist_esm_chart_color_black_500__WEBPACK_IMPORTED_MODULE_23__["default"].value
        ],
        height: _patternfly_react_tokens_dist_esm_chart_bullet_Height__WEBPACK_IMPORTED_MODULE_0__["default"].value
    }
};
//# sourceMappingURL=bullet-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/color-theme.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/color-theme.js ***!
  \****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ColorTheme": () => (/* binding */ ColorTheme)
/* harmony export */ });
// Victory theme properties only
const ColorTheme = (props) => {
    const { COLOR_SCALE } = props;
    return {
        area: {
            colorScale: COLOR_SCALE,
            style: {
                data: {
                    fill: COLOR_SCALE[0]
                }
            }
        },
        axis: {
            colorScale: COLOR_SCALE
        },
        bar: {
            colorScale: COLOR_SCALE,
            style: {
                data: {
                    fill: COLOR_SCALE[0]
                }
            }
        },
        boxplot: {
            colorScale: COLOR_SCALE
        },
        candlestick: {
            colorScale: COLOR_SCALE
        },
        chart: {
            colorScale: COLOR_SCALE
        },
        errorbar: {
            colorScale: COLOR_SCALE
        },
        group: {
            colorScale: COLOR_SCALE
        },
        legend: {
            colorScale: COLOR_SCALE
        },
        line: {
            colorScale: COLOR_SCALE,
            style: {
                data: {
                    stroke: COLOR_SCALE[0]
                }
            }
        },
        pie: {
            colorScale: COLOR_SCALE
        },
        scatter: {
            colorScale: COLOR_SCALE
        },
        stack: {
            colorScale: COLOR_SCALE
        },
        voronoi: {
            colorScale: COLOR_SCALE
        }
    };
};
//# sourceMappingURL=color-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/blue-color-theme.js":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/blue-color-theme.js ***!
  \**************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DarkBlueColorTheme": () => (/* binding */ DarkBlueColorTheme)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_100__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_200__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_300__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_400__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_500__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_500.js");
/* harmony import */ var _color_theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/color-theme.js");
/* eslint-disable camelcase */






// Color scale
// See https://docs.google.com/document/d/1cw10pJFXWruB1SA8TQwituxn5Ss6KpxYPCOYGrH8qAY/edit
const COLOR_SCALE = [
    _patternfly_react_tokens_dist_esm_chart_color_blue_300__WEBPACK_IMPORTED_MODULE_0__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_blue_100__WEBPACK_IMPORTED_MODULE_1__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_blue_500__WEBPACK_IMPORTED_MODULE_2__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_blue_200__WEBPACK_IMPORTED_MODULE_3__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_blue_400__WEBPACK_IMPORTED_MODULE_4__["default"].value
];
const DarkBlueColorTheme = (0,_color_theme__WEBPACK_IMPORTED_MODULE_5__.ColorTheme)({
    COLOR_SCALE
});
//# sourceMappingURL=blue-color-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/cyan-color-theme.js":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/cyan-color-theme.js ***!
  \**************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DarkCyanColorTheme": () => (/* binding */ DarkCyanColorTheme)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_100__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_200__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_300__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_400__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_500__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_500.js");
/* harmony import */ var _color_theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/color-theme.js");
/* eslint-disable camelcase */






// Color scale
// See https://docs.google.com/document/d/1cw10pJFXWruB1SA8TQwituxn5Ss6KpxYPCOYGrH8qAY/edit
const COLOR_SCALE = [
    _patternfly_react_tokens_dist_esm_chart_color_cyan_300__WEBPACK_IMPORTED_MODULE_0__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_100__WEBPACK_IMPORTED_MODULE_1__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_500__WEBPACK_IMPORTED_MODULE_2__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_200__WEBPACK_IMPORTED_MODULE_3__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_400__WEBPACK_IMPORTED_MODULE_4__["default"].value
];
const DarkCyanColorTheme = (0,_color_theme__WEBPACK_IMPORTED_MODULE_5__.ColorTheme)({
    COLOR_SCALE
});
//# sourceMappingURL=cyan-color-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/gold-color-theme.js":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/gold-color-theme.js ***!
  \**************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DarkGoldColorTheme": () => (/* binding */ DarkGoldColorTheme)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_100__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_200__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_300__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_400__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_500__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_500.js");
/* harmony import */ var _color_theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/color-theme.js");
/* eslint-disable camelcase */






// Color scale
// See https://docs.google.com/document/d/1cw10pJFXWruB1SA8TQwituxn5Ss6KpxYPCOYGrH8qAY/edit
const COLOR_SCALE = [
    _patternfly_react_tokens_dist_esm_chart_color_gold_300__WEBPACK_IMPORTED_MODULE_0__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_100__WEBPACK_IMPORTED_MODULE_1__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_500__WEBPACK_IMPORTED_MODULE_2__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_200__WEBPACK_IMPORTED_MODULE_3__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_400__WEBPACK_IMPORTED_MODULE_4__["default"].value
];
const DarkGoldColorTheme = (0,_color_theme__WEBPACK_IMPORTED_MODULE_5__.ColorTheme)({
    COLOR_SCALE
});
//# sourceMappingURL=gold-color-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/gray-color-theme.js":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/gray-color-theme.js ***!
  \**************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DarkGrayColorTheme": () => (/* binding */ DarkGrayColorTheme)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_black_100__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_black_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_black_200__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_black_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_black_300__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_black_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_black_400__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_black_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_black_500__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_black_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_500.js");
/* harmony import */ var _color_theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/color-theme.js");
/* eslint-disable camelcase */






// Color scale
// See https://docs.google.com/document/d/1cw10pJFXWruB1SA8TQwituxn5Ss6KpxYPCOYGrH8qAY/edit
const COLOR_SCALE = [
    _patternfly_react_tokens_dist_esm_chart_color_black_300__WEBPACK_IMPORTED_MODULE_0__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_black_100__WEBPACK_IMPORTED_MODULE_1__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_black_500__WEBPACK_IMPORTED_MODULE_2__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_black_200__WEBPACK_IMPORTED_MODULE_3__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_black_400__WEBPACK_IMPORTED_MODULE_4__["default"].value
];
const DarkGrayColorTheme = (0,_color_theme__WEBPACK_IMPORTED_MODULE_5__.ColorTheme)({
    COLOR_SCALE
});
//# sourceMappingURL=gray-color-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/green-color-theme.js":
/*!***************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/green-color-theme.js ***!
  \***************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DarkGreenColorTheme": () => (/* binding */ DarkGreenColorTheme)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_100__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_200__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_300__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_400__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_500__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_500.js");
/* harmony import */ var _color_theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/color-theme.js");
/* eslint-disable camelcase */






// Color scale
// See https://docs.google.com/document/d/1cw10pJFXWruB1SA8TQwituxn5Ss6KpxYPCOYGrH8qAY/edit
const COLOR_SCALE = [
    _patternfly_react_tokens_dist_esm_chart_color_green_300__WEBPACK_IMPORTED_MODULE_0__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_100__WEBPACK_IMPORTED_MODULE_1__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_500__WEBPACK_IMPORTED_MODULE_2__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_200__WEBPACK_IMPORTED_MODULE_3__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_400__WEBPACK_IMPORTED_MODULE_4__["default"].value
];
const DarkGreenColorTheme = (0,_color_theme__WEBPACK_IMPORTED_MODULE_5__.ColorTheme)({
    COLOR_SCALE
});
//# sourceMappingURL=green-color-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/multi-color-ordered-theme.js":
/*!***********************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/multi-color-ordered-theme.js ***!
  \***********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DarkMultiColorOrderedTheme": () => (/* binding */ DarkMultiColorOrderedTheme)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_100__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_200__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_300__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_400__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_500__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_500.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_100__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_200__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_300__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_400__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_500__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_500.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_100__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_200__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_300__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_400__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_500__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_500.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_100__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_200__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_300__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_400__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_500__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_500.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_100__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_200__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_300__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_400__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_500__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_500.js");
/* harmony import */ var _color_theme__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/color-theme.js");
/* eslint-disable camelcase */


























// The color order below (minus the purple color family) improves the color contrast in ordered charts; donut, pie, bar, & stack
// See https://docs.google.com/document/d/1cw10pJFXWruB1SA8TQwituxn5Ss6KpxYPCOYGrH8qAY/edit
const COLOR_SCALE = [
    _patternfly_react_tokens_dist_esm_chart_color_blue_300__WEBPACK_IMPORTED_MODULE_0__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_300__WEBPACK_IMPORTED_MODULE_1__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_300__WEBPACK_IMPORTED_MODULE_2__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_300__WEBPACK_IMPORTED_MODULE_3__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_300__WEBPACK_IMPORTED_MODULE_4__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_blue_100__WEBPACK_IMPORTED_MODULE_5__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_500__WEBPACK_IMPORTED_MODULE_6__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_100__WEBPACK_IMPORTED_MODULE_7__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_100__WEBPACK_IMPORTED_MODULE_8__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_500__WEBPACK_IMPORTED_MODULE_9__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_blue_500__WEBPACK_IMPORTED_MODULE_10__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_100__WEBPACK_IMPORTED_MODULE_11__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_500__WEBPACK_IMPORTED_MODULE_12__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_500__WEBPACK_IMPORTED_MODULE_13__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_100__WEBPACK_IMPORTED_MODULE_14__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_blue_200__WEBPACK_IMPORTED_MODULE_15__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_400__WEBPACK_IMPORTED_MODULE_16__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_200__WEBPACK_IMPORTED_MODULE_17__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_200__WEBPACK_IMPORTED_MODULE_18__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_400__WEBPACK_IMPORTED_MODULE_19__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_blue_400__WEBPACK_IMPORTED_MODULE_20__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_200__WEBPACK_IMPORTED_MODULE_21__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_400__WEBPACK_IMPORTED_MODULE_22__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_400__WEBPACK_IMPORTED_MODULE_23__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_200__WEBPACK_IMPORTED_MODULE_24__["default"].value
];
const DarkMultiColorOrderedTheme = (0,_color_theme__WEBPACK_IMPORTED_MODULE_25__.ColorTheme)({
    COLOR_SCALE
});
//# sourceMappingURL=multi-color-ordered-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/multi-color-unordered-theme.js":
/*!*************************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/multi-color-unordered-theme.js ***!
  \*************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DarkMultiColorUnorderedTheme": () => (/* binding */ DarkMultiColorUnorderedTheme)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_100__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_200__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_300__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_400__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_500__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_500.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_100__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_200__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_300__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_400__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_500__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_500.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_100__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_200__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_300__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_400__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_500__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_500.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_purple_100__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_purple_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_purple_200__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_purple_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_purple_300__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_purple_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_purple_400__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_purple_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_purple_500__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_purple_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_500.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_100__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_200__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_300__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_400__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_500__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_500.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_100__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_200__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_300__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_400__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_500__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_500.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_black_100__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_black_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_black_200__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_black_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_black_300__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_black_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_black_400__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_black_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_black_500__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_black_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_500.js");
/* harmony import */ var _color_theme__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ../color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/color-theme.js");
/* eslint-disable camelcase */




































// The color order below improves the color contrast in unordered charts; area & line
// See https://github.com/patternfly/patternfly-next/issues/1551
const COLOR_SCALE = [
    _patternfly_react_tokens_dist_esm_chart_color_blue_300__WEBPACK_IMPORTED_MODULE_0__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_300__WEBPACK_IMPORTED_MODULE_1__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_300__WEBPACK_IMPORTED_MODULE_2__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_purple_300__WEBPACK_IMPORTED_MODULE_3__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_300__WEBPACK_IMPORTED_MODULE_4__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_300__WEBPACK_IMPORTED_MODULE_5__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_black_300__WEBPACK_IMPORTED_MODULE_6__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_blue_100__WEBPACK_IMPORTED_MODULE_7__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_500__WEBPACK_IMPORTED_MODULE_8__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_100__WEBPACK_IMPORTED_MODULE_9__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_purple_500__WEBPACK_IMPORTED_MODULE_10__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_100__WEBPACK_IMPORTED_MODULE_11__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_500__WEBPACK_IMPORTED_MODULE_12__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_black_100__WEBPACK_IMPORTED_MODULE_13__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_blue_500__WEBPACK_IMPORTED_MODULE_14__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_100__WEBPACK_IMPORTED_MODULE_15__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_500__WEBPACK_IMPORTED_MODULE_16__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_purple_100__WEBPACK_IMPORTED_MODULE_17__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_500__WEBPACK_IMPORTED_MODULE_18__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_100__WEBPACK_IMPORTED_MODULE_19__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_black_500__WEBPACK_IMPORTED_MODULE_20__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_blue_200__WEBPACK_IMPORTED_MODULE_21__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_400__WEBPACK_IMPORTED_MODULE_22__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_200__WEBPACK_IMPORTED_MODULE_23__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_purple_400__WEBPACK_IMPORTED_MODULE_24__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_200__WEBPACK_IMPORTED_MODULE_25__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_400__WEBPACK_IMPORTED_MODULE_26__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_black_200__WEBPACK_IMPORTED_MODULE_27__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_blue_400__WEBPACK_IMPORTED_MODULE_28__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_200__WEBPACK_IMPORTED_MODULE_29__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_400__WEBPACK_IMPORTED_MODULE_30__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_purple_200__WEBPACK_IMPORTED_MODULE_31__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_400__WEBPACK_IMPORTED_MODULE_32__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_200__WEBPACK_IMPORTED_MODULE_33__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_black_400__WEBPACK_IMPORTED_MODULE_34__["default"].value
];
const DarkMultiColorUnorderedTheme = (0,_color_theme__WEBPACK_IMPORTED_MODULE_35__.ColorTheme)({
    COLOR_SCALE
});
//# sourceMappingURL=multi-color-unordered-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/orange-color-theme.js":
/*!****************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/orange-color-theme.js ***!
  \****************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DarkOrangeColorTheme": () => (/* binding */ DarkOrangeColorTheme)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_100__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_200__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_300__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_400__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_500__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_500.js");
/* harmony import */ var _color_theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/color-theme.js");
/* eslint-disable camelcase */






// Color scale
// See https://docs.google.com/document/d/1cw10pJFXWruB1SA8TQwituxn5Ss6KpxYPCOYGrH8qAY/edit
const COLOR_SCALE = [
    _patternfly_react_tokens_dist_esm_chart_color_orange_300__WEBPACK_IMPORTED_MODULE_0__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_100__WEBPACK_IMPORTED_MODULE_1__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_500__WEBPACK_IMPORTED_MODULE_2__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_200__WEBPACK_IMPORTED_MODULE_3__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_400__WEBPACK_IMPORTED_MODULE_4__["default"].value
];
const DarkOrangeColorTheme = (0,_color_theme__WEBPACK_IMPORTED_MODULE_5__.ColorTheme)({
    COLOR_SCALE
});
//# sourceMappingURL=orange-color-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/purple-color-theme.js":
/*!****************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/purple-color-theme.js ***!
  \****************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DarkPurpleColorTheme": () => (/* binding */ DarkPurpleColorTheme)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_purple_100__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_purple_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_purple_200__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_purple_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_purple_300__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_purple_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_purple_400__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_purple_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_purple_500__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_purple_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_500.js");
/* harmony import */ var _color_theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/color-theme.js");
/* eslint-disable camelcase */






// Color scale
// See https://docs.google.com/document/d/1cw10pJFXWruB1SA8TQwituxn5Ss6KpxYPCOYGrH8qAY/edit
const COLOR_SCALE = [
    _patternfly_react_tokens_dist_esm_chart_color_purple_300__WEBPACK_IMPORTED_MODULE_0__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_purple_100__WEBPACK_IMPORTED_MODULE_1__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_purple_500__WEBPACK_IMPORTED_MODULE_2__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_purple_200__WEBPACK_IMPORTED_MODULE_3__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_purple_400__WEBPACK_IMPORTED_MODULE_4__["default"].value
];
const DarkPurpleColorTheme = (0,_color_theme__WEBPACK_IMPORTED_MODULE_5__.ColorTheme)({
    COLOR_SCALE
});
//# sourceMappingURL=purple-color-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/donut-theme.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/donut-theme.js ***!
  \****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DonutTheme": () => (/* binding */ DonutTheme)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_donut_pie_Height__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_donut_pie_Height */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_pie_Height.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_donut_pie_angle_Padding__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_donut_pie_angle_Padding */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_pie_angle_Padding.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_donut_pie_Padding__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_donut_pie_Padding */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_pie_Padding.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_donut_pie_Width__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_donut_pie_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_pie_Width.js");
/* eslint-disable camelcase */




// Donut theme
const DonutTheme = {
    pie: {
        height: _patternfly_react_tokens_dist_esm_chart_donut_pie_Height__WEBPACK_IMPORTED_MODULE_0__["default"].value,
        padding: _patternfly_react_tokens_dist_esm_chart_donut_pie_Padding__WEBPACK_IMPORTED_MODULE_1__["default"].value,
        padAngle: _patternfly_react_tokens_dist_esm_chart_donut_pie_angle_Padding__WEBPACK_IMPORTED_MODULE_2__["default"].value,
        width: _patternfly_react_tokens_dist_esm_chart_donut_pie_Width__WEBPACK_IMPORTED_MODULE_3__["default"].value
    }
};
//# sourceMappingURL=donut-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/donut-threshold-theme.js":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/donut-threshold-theme.js ***!
  \**************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DonutThresholdDynamicTheme": () => (/* binding */ DonutThresholdDynamicTheme),
/* harmony export */   "DonutThresholdStaticTheme": () => (/* binding */ DonutThresholdStaticTheme)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_donut_threshold_first_Color__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_donut_threshold_first_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_first_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_donut_threshold_second_Color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_donut_threshold_second_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_second_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_donut_threshold_third_Color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_donut_threshold_third_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_third_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_donut_threshold_dynamic_pie_Height__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_donut_threshold_dynamic_pie_Height */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_dynamic_pie_Height.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_donut_threshold_dynamic_pie_Padding__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_donut_threshold_dynamic_pie_Padding */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_dynamic_pie_Padding.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_donut_threshold_dynamic_pie_Width__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_donut_threshold_dynamic_pie_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_dynamic_pie_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_donut_threshold_static_pie_Height__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_donut_threshold_static_pie_Height */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_static_pie_Height.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_donut_threshold_static_pie_angle_Padding__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_donut_threshold_static_pie_angle_Padding */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_static_pie_angle_Padding.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_donut_threshold_static_pie_Padding__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_donut_threshold_static_pie_Padding */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_static_pie_Padding.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_donut_threshold_static_pie_Width__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_donut_threshold_static_pie_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_static_pie_Width.js");
/* eslint-disable camelcase */










// Donut threshold dynamic theme
const DonutThresholdDynamicTheme = {
    legend: {
        colorScale: [_patternfly_react_tokens_dist_esm_chart_donut_threshold_second_Color__WEBPACK_IMPORTED_MODULE_0__["default"].value, _patternfly_react_tokens_dist_esm_chart_donut_threshold_third_Color__WEBPACK_IMPORTED_MODULE_1__["default"].value]
    },
    pie: {
        height: _patternfly_react_tokens_dist_esm_chart_donut_threshold_dynamic_pie_Height__WEBPACK_IMPORTED_MODULE_2__["default"].value,
        padding: _patternfly_react_tokens_dist_esm_chart_donut_threshold_dynamic_pie_Padding__WEBPACK_IMPORTED_MODULE_3__["default"].value,
        width: _patternfly_react_tokens_dist_esm_chart_donut_threshold_dynamic_pie_Width__WEBPACK_IMPORTED_MODULE_4__["default"].value
    }
};
// Donut threshold static theme
const DonutThresholdStaticTheme = {
    pie: {
        colorScale: [
            _patternfly_react_tokens_dist_esm_chart_donut_threshold_first_Color__WEBPACK_IMPORTED_MODULE_5__["default"].value,
            _patternfly_react_tokens_dist_esm_chart_donut_threshold_second_Color__WEBPACK_IMPORTED_MODULE_0__["default"].value,
            _patternfly_react_tokens_dist_esm_chart_donut_threshold_third_Color__WEBPACK_IMPORTED_MODULE_1__["default"].value
        ],
        height: _patternfly_react_tokens_dist_esm_chart_donut_threshold_static_pie_Height__WEBPACK_IMPORTED_MODULE_6__["default"].value,
        padAngle: _patternfly_react_tokens_dist_esm_chart_donut_threshold_static_pie_angle_Padding__WEBPACK_IMPORTED_MODULE_7__["default"].value,
        padding: _patternfly_react_tokens_dist_esm_chart_donut_threshold_static_pie_Padding__WEBPACK_IMPORTED_MODULE_8__["default"].value,
        width: _patternfly_react_tokens_dist_esm_chart_donut_threshold_static_pie_Width__WEBPACK_IMPORTED_MODULE_9__["default"].value
    }
};
//# sourceMappingURL=donut-threshold-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/donut-utilization-theme.js":
/*!****************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/donut-utilization-theme.js ***!
  \****************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DonutUtilizationDynamicTheme": () => (/* binding */ DonutUtilizationDynamicTheme),
/* harmony export */   "DonutUtilizationStaticTheme": () => (/* binding */ DonutUtilizationStaticTheme)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_donut_threshold_first_Color__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_donut_threshold_first_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_first_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_donut_threshold_second_Color__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_donut_threshold_second_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_second_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_donut_threshold_third_Color__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_donut_threshold_third_Color */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_third_Color.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_donut_utilization_dynamic_pie_Height__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_donut_utilization_dynamic_pie_Height */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_utilization_dynamic_pie_Height.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_donut_utilization_dynamic_pie_angle_Padding__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_donut_utilization_dynamic_pie_angle_Padding */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_utilization_dynamic_pie_angle_Padding.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_donut_utilization_dynamic_pie_Padding__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_donut_utilization_dynamic_pie_Padding */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_utilization_dynamic_pie_Padding.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_donut_utilization_dynamic_pie_Width__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_donut_utilization_dynamic_pie_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_utilization_dynamic_pie_Width.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_donut_utilization_static_pie_Padding__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_donut_utilization_static_pie_Padding */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_utilization_static_pie_Padding.js");
/* eslint-disable camelcase */








// Donut utilization dynamic theme
const DonutUtilizationDynamicTheme = {
    pie: {
        height: _patternfly_react_tokens_dist_esm_chart_donut_utilization_dynamic_pie_Height__WEBPACK_IMPORTED_MODULE_0__["default"].value,
        padding: _patternfly_react_tokens_dist_esm_chart_donut_utilization_dynamic_pie_Padding__WEBPACK_IMPORTED_MODULE_1__["default"].value,
        padAngle: _patternfly_react_tokens_dist_esm_chart_donut_utilization_dynamic_pie_angle_Padding__WEBPACK_IMPORTED_MODULE_2__["default"].value,
        width: _patternfly_react_tokens_dist_esm_chart_donut_utilization_dynamic_pie_Width__WEBPACK_IMPORTED_MODULE_3__["default"].value
    }
};
// Donut utilization static theme
const DonutUtilizationStaticTheme = {
    legend: {
        colorScale: [
            _patternfly_react_tokens_dist_esm_chart_donut_threshold_first_Color__WEBPACK_IMPORTED_MODULE_4__["default"].value,
            _patternfly_react_tokens_dist_esm_chart_donut_threshold_second_Color__WEBPACK_IMPORTED_MODULE_5__["default"].value,
            _patternfly_react_tokens_dist_esm_chart_donut_threshold_third_Color__WEBPACK_IMPORTED_MODULE_6__["default"].value
        ]
    },
    pie: {
        colorScale: [_patternfly_react_tokens_dist_esm_chart_donut_threshold_first_Color__WEBPACK_IMPORTED_MODULE_4__["default"].value],
        padding: _patternfly_react_tokens_dist_esm_chart_donut_utilization_static_pie_Padding__WEBPACK_IMPORTED_MODULE_7__["default"].value
    }
};
//# sourceMappingURL=donut-utilization-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/blue-color-theme.js":
/*!***************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/blue-color-theme.js ***!
  \***************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "LightBlueColorTheme": () => (/* binding */ LightBlueColorTheme)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_100__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_200__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_300__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_400__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_500__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_500.js");
/* harmony import */ var _color_theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/color-theme.js");
/* eslint-disable camelcase */






// Color scale
// See https://docs.google.com/document/d/1cw10pJFXWruB1SA8TQwituxn5Ss6KpxYPCOYGrH8qAY/edit
const COLOR_SCALE = [
    _patternfly_react_tokens_dist_esm_chart_color_blue_300__WEBPACK_IMPORTED_MODULE_0__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_blue_100__WEBPACK_IMPORTED_MODULE_1__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_blue_500__WEBPACK_IMPORTED_MODULE_2__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_blue_200__WEBPACK_IMPORTED_MODULE_3__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_blue_400__WEBPACK_IMPORTED_MODULE_4__["default"].value
];
const LightBlueColorTheme = (0,_color_theme__WEBPACK_IMPORTED_MODULE_5__.ColorTheme)({
    COLOR_SCALE
});
//# sourceMappingURL=blue-color-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/cyan-color-theme.js":
/*!***************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/cyan-color-theme.js ***!
  \***************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "LightCyanColorTheme": () => (/* binding */ LightCyanColorTheme)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_100__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_200__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_300__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_400__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_500__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_500.js");
/* harmony import */ var _color_theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/color-theme.js");
/* eslint-disable camelcase */






// Color scale
// See https://docs.google.com/document/d/1cw10pJFXWruB1SA8TQwituxn5Ss6KpxYPCOYGrH8qAY/edit
const COLOR_SCALE = [
    _patternfly_react_tokens_dist_esm_chart_color_cyan_300__WEBPACK_IMPORTED_MODULE_0__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_100__WEBPACK_IMPORTED_MODULE_1__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_500__WEBPACK_IMPORTED_MODULE_2__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_200__WEBPACK_IMPORTED_MODULE_3__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_400__WEBPACK_IMPORTED_MODULE_4__["default"].value
];
const LightCyanColorTheme = (0,_color_theme__WEBPACK_IMPORTED_MODULE_5__.ColorTheme)({
    COLOR_SCALE
});
//# sourceMappingURL=cyan-color-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/gold-color-theme.js":
/*!***************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/gold-color-theme.js ***!
  \***************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "LightGoldColorTheme": () => (/* binding */ LightGoldColorTheme)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_100__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_200__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_300__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_400__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_500__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_500.js");
/* harmony import */ var _color_theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/color-theme.js");
/* eslint-disable camelcase */






// Color scale
// See https://docs.google.com/document/d/1cw10pJFXWruB1SA8TQwituxn5Ss6KpxYPCOYGrH8qAY/edit
const COLOR_SCALE = [
    _patternfly_react_tokens_dist_esm_chart_color_gold_300__WEBPACK_IMPORTED_MODULE_0__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_100__WEBPACK_IMPORTED_MODULE_1__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_500__WEBPACK_IMPORTED_MODULE_2__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_200__WEBPACK_IMPORTED_MODULE_3__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_400__WEBPACK_IMPORTED_MODULE_4__["default"].value
];
const LightGoldColorTheme = (0,_color_theme__WEBPACK_IMPORTED_MODULE_5__.ColorTheme)({
    COLOR_SCALE
});
//# sourceMappingURL=gold-color-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/gray-color-theme.js":
/*!***************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/gray-color-theme.js ***!
  \***************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "LightGrayColorTheme": () => (/* binding */ LightGrayColorTheme)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_black_100__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_black_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_black_200__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_black_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_black_300__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_black_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_black_400__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_black_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_black_500__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_black_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_500.js");
/* harmony import */ var _color_theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/color-theme.js");
/* eslint-disable camelcase */






// Color scale
// See https://docs.google.com/document/d/1cw10pJFXWruB1SA8TQwituxn5Ss6KpxYPCOYGrH8qAY/edit
const COLOR_SCALE = [
    _patternfly_react_tokens_dist_esm_chart_color_black_300__WEBPACK_IMPORTED_MODULE_0__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_black_100__WEBPACK_IMPORTED_MODULE_1__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_black_500__WEBPACK_IMPORTED_MODULE_2__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_black_200__WEBPACK_IMPORTED_MODULE_3__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_black_400__WEBPACK_IMPORTED_MODULE_4__["default"].value
];
const LightGrayColorTheme = (0,_color_theme__WEBPACK_IMPORTED_MODULE_5__.ColorTheme)({
    COLOR_SCALE
});
//# sourceMappingURL=gray-color-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/green-color-theme.js":
/*!****************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/green-color-theme.js ***!
  \****************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "LightGreenColorTheme": () => (/* binding */ LightGreenColorTheme)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_100__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_200__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_300__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_400__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_500__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_500.js");
/* harmony import */ var _color_theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/color-theme.js");
/* eslint-disable camelcase */






// Color scale
// See https://docs.google.com/document/d/1cw10pJFXWruB1SA8TQwituxn5Ss6KpxYPCOYGrH8qAY/edit
const COLOR_SCALE = [
    _patternfly_react_tokens_dist_esm_chart_color_green_300__WEBPACK_IMPORTED_MODULE_0__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_100__WEBPACK_IMPORTED_MODULE_1__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_500__WEBPACK_IMPORTED_MODULE_2__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_200__WEBPACK_IMPORTED_MODULE_3__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_400__WEBPACK_IMPORTED_MODULE_4__["default"].value
];
const LightGreenColorTheme = (0,_color_theme__WEBPACK_IMPORTED_MODULE_5__.ColorTheme)({
    COLOR_SCALE
});
//# sourceMappingURL=green-color-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/multi-color-ordered-theme.js":
/*!************************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/multi-color-ordered-theme.js ***!
  \************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "LightMultiColorOrderedTheme": () => (/* binding */ LightMultiColorOrderedTheme)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_100__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_200__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_300__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_400__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_500__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_500.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_100__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_200__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_300__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_400__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_500__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_500.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_100__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_200__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_300__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_400__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_500__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_500.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_100__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_200__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_300__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_400__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_500__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_500.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_100__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_200__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_300__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_400__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_500__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_500.js");
/* harmony import */ var _color_theme__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/color-theme.js");
/* eslint-disable camelcase */


























// The color order below (minus the purple color family) improves the color contrast in ordered charts; donut, pie, bar, & stack
// See https://docs.google.com/document/d/1cw10pJFXWruB1SA8TQwituxn5Ss6KpxYPCOYGrH8qAY/edit
const COLOR_SCALE = [
    _patternfly_react_tokens_dist_esm_chart_color_blue_300__WEBPACK_IMPORTED_MODULE_0__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_300__WEBPACK_IMPORTED_MODULE_1__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_300__WEBPACK_IMPORTED_MODULE_2__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_300__WEBPACK_IMPORTED_MODULE_3__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_300__WEBPACK_IMPORTED_MODULE_4__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_blue_100__WEBPACK_IMPORTED_MODULE_5__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_500__WEBPACK_IMPORTED_MODULE_6__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_100__WEBPACK_IMPORTED_MODULE_7__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_100__WEBPACK_IMPORTED_MODULE_8__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_500__WEBPACK_IMPORTED_MODULE_9__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_blue_500__WEBPACK_IMPORTED_MODULE_10__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_100__WEBPACK_IMPORTED_MODULE_11__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_500__WEBPACK_IMPORTED_MODULE_12__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_500__WEBPACK_IMPORTED_MODULE_13__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_100__WEBPACK_IMPORTED_MODULE_14__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_blue_200__WEBPACK_IMPORTED_MODULE_15__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_400__WEBPACK_IMPORTED_MODULE_16__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_200__WEBPACK_IMPORTED_MODULE_17__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_200__WEBPACK_IMPORTED_MODULE_18__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_400__WEBPACK_IMPORTED_MODULE_19__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_blue_400__WEBPACK_IMPORTED_MODULE_20__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_200__WEBPACK_IMPORTED_MODULE_21__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_400__WEBPACK_IMPORTED_MODULE_22__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_400__WEBPACK_IMPORTED_MODULE_23__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_200__WEBPACK_IMPORTED_MODULE_24__["default"].value
];
const LightMultiColorOrderedTheme = (0,_color_theme__WEBPACK_IMPORTED_MODULE_25__.ColorTheme)({
    COLOR_SCALE
});
//# sourceMappingURL=multi-color-ordered-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/multi-color-unordered-theme.js":
/*!**************************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/multi-color-unordered-theme.js ***!
  \**************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "LightMultiColorUnorderedTheme": () => (/* binding */ LightMultiColorUnorderedTheme)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_100__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_200__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_300__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_400__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_blue_500__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_blue_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_500.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_100__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_200__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_300__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_400__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_green_500__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_green_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_500.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_100__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_200__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_300__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_400__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_cyan_500__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_cyan_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_500.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_purple_100__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_purple_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_purple_200__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_purple_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_purple_300__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_purple_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_purple_400__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_purple_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_purple_500__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_purple_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_500.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_100__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_200__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_300__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_400__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_gold_500__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_gold_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_500.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_100__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_200__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_300__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_400__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_500__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_500.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_black_100__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_black_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_black_200__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_black_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_black_300__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_black_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_black_400__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_black_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_black_500__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_black_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_500.js");
/* harmony import */ var _color_theme__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ../color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/color-theme.js");
/* eslint-disable camelcase */




































// The color order below improves the color contrast in unordered charts; area & line
// See https://github.com/patternfly/patternfly-next/issues/1551
const COLOR_SCALE = [
    _patternfly_react_tokens_dist_esm_chart_color_blue_300__WEBPACK_IMPORTED_MODULE_0__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_300__WEBPACK_IMPORTED_MODULE_1__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_300__WEBPACK_IMPORTED_MODULE_2__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_purple_300__WEBPACK_IMPORTED_MODULE_3__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_300__WEBPACK_IMPORTED_MODULE_4__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_300__WEBPACK_IMPORTED_MODULE_5__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_black_300__WEBPACK_IMPORTED_MODULE_6__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_blue_100__WEBPACK_IMPORTED_MODULE_7__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_500__WEBPACK_IMPORTED_MODULE_8__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_100__WEBPACK_IMPORTED_MODULE_9__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_purple_500__WEBPACK_IMPORTED_MODULE_10__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_100__WEBPACK_IMPORTED_MODULE_11__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_500__WEBPACK_IMPORTED_MODULE_12__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_black_100__WEBPACK_IMPORTED_MODULE_13__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_blue_500__WEBPACK_IMPORTED_MODULE_14__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_100__WEBPACK_IMPORTED_MODULE_15__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_500__WEBPACK_IMPORTED_MODULE_16__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_purple_100__WEBPACK_IMPORTED_MODULE_17__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_500__WEBPACK_IMPORTED_MODULE_18__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_100__WEBPACK_IMPORTED_MODULE_19__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_black_500__WEBPACK_IMPORTED_MODULE_20__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_blue_200__WEBPACK_IMPORTED_MODULE_21__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_400__WEBPACK_IMPORTED_MODULE_22__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_200__WEBPACK_IMPORTED_MODULE_23__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_purple_400__WEBPACK_IMPORTED_MODULE_24__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_200__WEBPACK_IMPORTED_MODULE_25__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_400__WEBPACK_IMPORTED_MODULE_26__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_black_200__WEBPACK_IMPORTED_MODULE_27__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_blue_400__WEBPACK_IMPORTED_MODULE_28__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_gold_200__WEBPACK_IMPORTED_MODULE_29__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_green_400__WEBPACK_IMPORTED_MODULE_30__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_purple_200__WEBPACK_IMPORTED_MODULE_31__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_400__WEBPACK_IMPORTED_MODULE_32__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_cyan_200__WEBPACK_IMPORTED_MODULE_33__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_black_400__WEBPACK_IMPORTED_MODULE_34__["default"].value
];
const LightMultiColorUnorderedTheme = (0,_color_theme__WEBPACK_IMPORTED_MODULE_35__.ColorTheme)({
    COLOR_SCALE
});
//# sourceMappingURL=multi-color-unordered-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/orange-color-theme.js":
/*!*****************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/orange-color-theme.js ***!
  \*****************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "LightOrangeColorTheme": () => (/* binding */ LightOrangeColorTheme)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_100__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_200__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_300__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_400__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_orange_500__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_orange_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_500.js");
/* harmony import */ var _color_theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/color-theme.js");
/* eslint-disable camelcase */






// Color scale
// See https://docs.google.com/document/d/1cw10pJFXWruB1SA8TQwituxn5Ss6KpxYPCOYGrH8qAY/edit
const COLOR_SCALE = [
    _patternfly_react_tokens_dist_esm_chart_color_orange_300__WEBPACK_IMPORTED_MODULE_0__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_100__WEBPACK_IMPORTED_MODULE_1__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_500__WEBPACK_IMPORTED_MODULE_2__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_200__WEBPACK_IMPORTED_MODULE_3__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_orange_400__WEBPACK_IMPORTED_MODULE_4__["default"].value
];
const LightOrangeColorTheme = (0,_color_theme__WEBPACK_IMPORTED_MODULE_5__.ColorTheme)({
    COLOR_SCALE
});
//# sourceMappingURL=orange-color-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/purple-color-theme.js":
/*!*****************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/purple-color-theme.js ***!
  \*****************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "LightPurpleColorTheme": () => (/* binding */ LightPurpleColorTheme)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_purple_100__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_purple_100 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_100.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_purple_200__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_purple_200 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_200.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_purple_300__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_purple_300 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_300.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_purple_400__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_purple_400 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_400.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_color_purple_500__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_color_purple_500 */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_500.js");
/* harmony import */ var _color_theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/color-theme.js");
/* eslint-disable camelcase */






// Color scale
// See https://docs.google.com/document/d/1cw10pJFXWruB1SA8TQwituxn5Ss6KpxYPCOYGrH8qAY/edit
const COLOR_SCALE = [
    _patternfly_react_tokens_dist_esm_chart_color_purple_300__WEBPACK_IMPORTED_MODULE_0__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_purple_100__WEBPACK_IMPORTED_MODULE_1__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_purple_500__WEBPACK_IMPORTED_MODULE_2__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_purple_200__WEBPACK_IMPORTED_MODULE_3__["default"].value,
    _patternfly_react_tokens_dist_esm_chart_color_purple_400__WEBPACK_IMPORTED_MODULE_4__["default"].value
];
const LightPurpleColorTheme = (0,_color_theme__WEBPACK_IMPORTED_MODULE_5__.ColorTheme)({
    COLOR_SCALE
});
//# sourceMappingURL=purple-color-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/threshold-theme.js":
/*!********************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/threshold-theme.js ***!
  \********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ThresholdTheme": () => (/* binding */ ThresholdTheme)
/* harmony export */ });
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_threshold_stroke_dash_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_threshold_stroke_dash_array */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_threshold_stroke_dash_array.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_chart_threshold_stroke_Width__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/chart_threshold_stroke_Width */ "./node_modules/@patternfly/react-tokens/dist/esm/chart_threshold_stroke_Width.js");
/* eslint-disable camelcase */


// Threshold theme
const ThresholdTheme = {
    line: {
        style: {
            data: {
                strokeDasharray: _patternfly_react_tokens_dist_esm_chart_threshold_stroke_dash_array__WEBPACK_IMPORTED_MODULE_0__["default"].value,
                strokeWidth: _patternfly_react_tokens_dist_esm_chart_threshold_stroke_Width__WEBPACK_IMPORTED_MODULE_1__["default"].value
            }
        }
    }
};
//# sourceMappingURL=threshold-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTooltip/ChartTooltip.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartTooltip/ChartTooltip.js ***!
  \************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ChartTooltip": () => (/* binding */ ChartTooltip)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js");
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var victory_tooltip__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-tooltip */ "./node_modules/victory-tooltip/es/victory-tooltip.js");
/* harmony import */ var _ChartLabel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../ChartLabel */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartLabel/ChartLabel.js");
/* harmony import */ var _ChartUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ChartUtils */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-theme.js");






const ChartTooltip = (_a) => {
    var { constrainToVisibleArea = false, labelComponent = react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ChartLabel__WEBPACK_IMPORTED_MODULE_2__.ChartLabel, null), // Note that Victory provides its own label component here
    labelTextAnchor, themeColor, themeVariant, 
    // destructure last
    theme = (0,_ChartUtils__WEBPACK_IMPORTED_MODULE_3__.getTheme)(themeColor, themeVariant) } = _a, rest = (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__rest)(_a, ["constrainToVisibleArea", "labelComponent", "labelTextAnchor", "themeColor", "themeVariant", "theme"]);
    const chartLabelComponent = react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(labelComponent, Object.assign({ textAnchor: labelTextAnchor, theme }, labelComponent.props));
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(victory_tooltip__WEBPACK_IMPORTED_MODULE_5__["default"], Object.assign({ constrainToVisibleArea: constrainToVisibleArea, labelComponent: chartLabelComponent, theme: theme }, rest)));
};
ChartTooltip.displayName = 'ChartTooltip';
// Note: VictoryTooltip.defaultEvents must be hoisted
hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1___default()(ChartTooltip, victory_tooltip__WEBPACK_IMPORTED_MODULE_5__["default"]);
//# sourceMappingURL=ChartTooltip.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-helpers.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-helpers.js ***!
  \***********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "canUseDOM": () => (/* binding */ canUseDOM),
/* harmony export */   "getClassName": () => (/* binding */ getClassName)
/* harmony export */ });
// Misc util functions
// Copied from exenv
const canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
// Returns the class name that will be applied to the outer-most div rendered by the chart's container
const getClassName = ({ className }) => {
    let cleanClassName;
    // Workaround for VictoryContainer class name
    if (className) {
        cleanClassName = className
            .replace(/VictoryContainer/g, '')
            .replace(/pf-c-chart/g, '')
            .replace(/\s+/g, ' ')
            .trim();
    }
    return cleanClassName && cleanClassName.length ? `pf-c-chart ${cleanClassName}` : 'pf-c-chart';
};
//# sourceMappingURL=chart-helpers.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-label.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-label.js ***!
  \*********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getBulletLabelX": () => (/* binding */ getBulletLabelX),
/* harmony export */   "getBulletLabelY": () => (/* binding */ getBulletLabelY),
/* harmony export */   "getPieLabelX": () => (/* binding */ getPieLabelX),
/* harmony export */   "getPieLabelY": () => (/* binding */ getPieLabelY),
/* harmony export */   "getLabelTextSize": () => (/* binding */ getLabelTextSize)
/* harmony export */ });
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/textsize.js");
/* harmony import */ var _chart_origin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./chart-origin */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-origin.js");
/* harmony import */ var _ChartTheme__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ChartTheme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/ChartStyles.js");



// Returns x coordinate for bullet labels
const getBulletLabelX = ({ chartWidth, dx = 0, labelPosition }) => labelPosition === 'top' && chartWidth ? Math.round(chartWidth / 2) : dx;
// Returns y coordinate for bullet labels
const getBulletLabelY = ({ chartHeight, dy = 0, labelPosition }) => {
    switch (labelPosition) {
        case 'bottom':
            return chartHeight + _ChartTheme__WEBPACK_IMPORTED_MODULE_0__.ChartCommonStyles.label.margin + dy;
        case 'left':
            return chartHeight ? Math.round(chartHeight / 2) + dy : dy;
        default:
            return dy;
    }
};
// Returns x coordinate for pie labels
const getPieLabelX = ({ dx = 0, height, labelPosition, legendPosition, padding, width }) => {
    const origin = (0,_chart_origin__WEBPACK_IMPORTED_MODULE_1__.getPieOrigin)({ height, padding, width });
    const radius = victory_core__WEBPACK_IMPORTED_MODULE_2__.getRadius({ height, width, padding });
    switch (labelPosition) {
        case 'bottom':
        case 'center':
            return origin.x + dx;
        case 'right':
            switch (legendPosition) {
                case 'bottom':
                    return origin.x + _ChartTheme__WEBPACK_IMPORTED_MODULE_0__.ChartCommonStyles.label.margin + dx + radius;
                case 'right':
                    return origin.x + _ChartTheme__WEBPACK_IMPORTED_MODULE_0__.ChartCommonStyles.label.margin + dx;
                default:
                    return dx;
            }
        default:
            return dx;
    }
};
// Returns x coordinate for pie labels
const getPieLabelY = ({ dy = 0, height, labelPosition, padding, width }) => {
    const origin = (0,_chart_origin__WEBPACK_IMPORTED_MODULE_1__.getPieOrigin)({ height, padding, width });
    const radius = victory_core__WEBPACK_IMPORTED_MODULE_2__.getRadius({ height, width, padding });
    switch (labelPosition) {
        case 'center':
        case 'right':
            return origin.y + dy;
        case 'bottom':
            return origin.y + radius + _ChartTheme__WEBPACK_IMPORTED_MODULE_0__.ChartCommonStyles.label.margin * 2 + dy;
        default:
            return dy;
    }
};
// Returns an approximate size for the give text
const getLabelTextSize = ({ text, theme }) => {
    const style = theme.legend.style.labels;
    // The approximateTextSize function returns height and width, but Victory incorrectly typed it as number
    return victory_core__WEBPACK_IMPORTED_MODULE_3__.approximateTextSize(text, Object.assign({}, style));
};
//# sourceMappingURL=chart-label.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-legend.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-legend.js ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getComputedLegend": () => (/* binding */ getComputedLegend),
/* harmony export */   "getLegendDimensions": () => (/* binding */ getLegendDimensions),
/* harmony export */   "doesLegendFit": () => (/* binding */ doesLegendFit),
/* harmony export */   "getLegendItemsPerRow": () => (/* binding */ getLegendItemsPerRow),
/* harmony export */   "getLegendX": () => (/* binding */ getLegendX),
/* harmony export */   "getLegendY": () => (/* binding */ getLegendY),
/* harmony export */   "getBulletLegendY": () => (/* binding */ getBulletLegendY),
/* harmony export */   "getChartLegendX": () => (/* binding */ getChartLegendX),
/* harmony export */   "getChartLegendY": () => (/* binding */ getChartLegendY),
/* harmony export */   "getPieLegendX": () => (/* binding */ getPieLegendX),
/* harmony export */   "getPieLegendY": () => (/* binding */ getPieLegendY),
/* harmony export */   "getMaxLegendTextSize": () => (/* binding */ getMaxLegendTextSize)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js");
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/textsize.js");
/* harmony import */ var victory_legend__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-legend */ "./node_modules/victory-legend/es/victory-legend.js");
/* harmony import */ var _ChartTheme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../ChartTheme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/ChartStyles.js");
/* harmony import */ var _chart_origin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./chart-origin */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-origin.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");







// Returns a legend which has been positioned per the given chart properties
const getComputedLegend = ({ allowWrap = true, chartType = 'chart', dx = 0, dy = 0, height, legendComponent, padding, position = _ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartCommonStyles.legend.position, theme, width, 
// destructure last
orientation = theme.legend.orientation }) => {
    // Get the number of legend items per row
    const legendItemsProps = legendComponent.props ? legendComponent.props : {};
    const legendItemsPerRow = allowWrap
        ? getLegendItemsPerRow({
            chartType,
            dx,
            height,
            legendData: legendItemsProps.data,
            legendOrientation: legendItemsProps.legendOrientation ? legendItemsProps.legendOrientation : orientation,
            legendPosition: position,
            legendProps: legendItemsProps,
            padding,
            theme,
            width
        })
        : undefined;
    // Include new itemsPerRow prop when determining x and y position
    const legendPositionProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, legendComponent.props, {
        itemsPerRow: legendItemsPerRow
    });
    const legendX = getLegendX({
        chartType,
        dx,
        height,
        legendData: legendPositionProps.data,
        legendOrientation: legendPositionProps.legendOrientation ? legendPositionProps.legendOrientation : orientation,
        legendPosition: position,
        legendProps: legendPositionProps,
        padding,
        theme,
        width
    });
    const legendY = getLegendY({
        chartType,
        dy,
        height,
        legendData: legendPositionProps.data,
        legendOrientation: legendPositionProps.legendOrientation ? legendPositionProps.legendOrientation : orientation,
        legendProps: legendPositionProps,
        legendPosition: position,
        padding,
        theme,
        width
    });
    // Clone legend with updated props
    const legendProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, legendComponent.props, {
        itemsPerRow: legendItemsPerRow,
        orientation,
        standalone: false,
        theme,
        x: legendX > 0 ? legendX : 0,
        y: legendY > 0 ? legendY : 0
    });
    return react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(legendComponent, legendProps);
};
// Returns legend dimensions
const getLegendDimensions = ({ legendData, legendOrientation, legendProps, theme }) => {
    if (legendData || legendProps.data) {
        return victory_legend__WEBPACK_IMPORTED_MODULE_3__["default"].getDimensions(Object.assign({ data: legendData, orientation: legendOrientation, theme }, legendProps // override above
        ));
    }
    return {};
};
// Returns true if the legend is smaller than its container
const doesLegendFit = ({ dx = 0, height, legendPosition, legendData, legendOrientation, legendProps, padding, theme, width }) => {
    const { left, right } = victory_core__WEBPACK_IMPORTED_MODULE_4__.getPadding({ padding });
    const chartSize = {
        height,
        width: width - left - right
    };
    const legendDimensions = getLegendDimensions({
        legendData,
        legendOrientation,
        legendProps,
        theme
    });
    let occupiedWidth = 0;
    switch (legendPosition) {
        case 'bottom-left':
            occupiedWidth = left + dx;
            break;
        case 'right':
            occupiedWidth = chartSize.width + _ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartCommonStyles.legend.margin + left + dx;
            break;
        default:
            occupiedWidth = dx;
            break;
    }
    return width - occupiedWidth > legendDimensions.width;
};
// Returns the number of legend items per row
const getLegendItemsPerRow = ({ dx, height, legendPosition, legendData, legendOrientation, legendProps, padding, theme, width }) => {
    let itemsPerRow = legendData ? legendData.length : 0;
    for (let i = itemsPerRow; i > 0; i--) {
        const fits = doesLegendFit({
            dx,
            height,
            legendPosition,
            legendData,
            legendOrientation,
            legendProps: Object.assign(Object.assign({}, legendProps), { itemsPerRow: i }),
            padding,
            theme,
            width
        });
        if (fits) {
            itemsPerRow = i;
            break;
        }
    }
    return itemsPerRow;
};
// Returns x coordinate for legend
const getLegendX = (_a) => {
    var { chartType } = _a, rest = (0,tslib__WEBPACK_IMPORTED_MODULE_5__.__rest)(_a, ["chartType"]);
    return chartType === 'pie' ? getPieLegendX(rest) : getChartLegendX(rest);
};
// Returns y coordinate for legend
const getLegendY = (_a) => {
    var { chartType } = _a, rest = (0,tslib__WEBPACK_IMPORTED_MODULE_5__.__rest)(_a, ["chartType"]);
    switch (chartType) {
        case 'pie':
            return getPieLegendY(rest);
        case 'bullet':
            return getBulletLegendY(rest);
        default:
            return getChartLegendY(rest);
    }
};
// Returns y coordinate for bullet legends
const getBulletLegendY = ({ dy = 0, height, legendPosition, legendData, legendOrientation, legendProps, padding, theme, width }) => {
    const { left, right } = victory_core__WEBPACK_IMPORTED_MODULE_4__.getPadding({ padding });
    const chartSize = {
        height,
        width: width - left - right
    };
    switch (legendPosition) {
        case 'bottom':
        case 'bottom-left':
            return chartSize.height + _ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartCommonStyles.legend.margin + dy;
        case 'right': {
            // Legend height with padding
            const legendDimensions = getLegendDimensions({
                legendData,
                legendOrientation,
                legendProps,
                theme
            });
            const legendPadding = (legendDataArr) => (legendDataArr && legendDataArr.length > 0 ? 17 : 0);
            return (chartSize.height - legendDimensions.height) / 2 + legendPadding(legendData);
        }
        default:
            return dy;
    }
};
// Returns x coordinate for chart legends
const getChartLegendX = ({ dx = 0, height, legendData, legendOrientation, legendPosition, legendProps, padding, theme, width }) => {
    const { top, bottom, left, right } = victory_core__WEBPACK_IMPORTED_MODULE_4__.getPadding({ padding });
    const chartSize = {
        height: Math.abs(height - (bottom + top)),
        width: Math.abs(width - (left + right))
    };
    const legendDimensions = getLegendDimensions({
        legendData,
        legendOrientation,
        legendProps,
        theme
    });
    switch (legendPosition) {
        case 'bottom':
            return width > legendDimensions.width ? Math.round((width - legendDimensions.width) / 2) + dx : dx;
        case 'bottom-left':
            return left + dx;
        case 'right':
            return chartSize.width + _ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartCommonStyles.legend.margin + left + dx;
        default:
            return dx;
    }
};
// Returns y coordinate for chart legends
const getChartLegendY = ({ dy = 0, height, legendPosition, legendData, legendOrientation, legendProps, padding, theme, width }) => {
    const { top, bottom, left, right } = victory_core__WEBPACK_IMPORTED_MODULE_4__.getPadding({ padding });
    const chartSize = {
        height: Math.abs(height - (bottom + top)),
        width: Math.abs(width - (left + right))
    };
    switch (legendPosition) {
        case 'bottom':
        case 'bottom-left':
            return chartSize.height + _ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartCommonStyles.legend.margin * 2 + top + dy;
        case 'right': {
            // Legend height with padding
            const legendDimensions = getLegendDimensions({
                legendData,
                legendOrientation,
                legendProps,
                theme
            });
            const originX = chartSize.height / 2 + top;
            const legendPadding = (legendDataArr) => (legendDataArr && legendDataArr.length > 0 ? 2 : 0);
            return originX - legendDimensions.height / 2 + legendPadding(legendData);
        }
        default:
            return dy;
    }
};
// Returns x coordinate for pie legends
const getPieLegendX = ({ dx = 0, height, legendData, legendOrientation, legendPosition, legendProps, padding, theme, width }) => {
    const origin = (0,_chart_origin__WEBPACK_IMPORTED_MODULE_6__.getPieOrigin)({ height, padding, width });
    const radius = victory_core__WEBPACK_IMPORTED_MODULE_4__.getRadius({ height, width, padding });
    const legendDimensions = getLegendDimensions({
        legendData,
        legendOrientation,
        legendProps,
        theme
    });
    switch (legendPosition) {
        case 'bottom':
            return width > legendDimensions.width ? Math.round((width - legendDimensions.width) / 2) + dx : dx;
        case 'right':
            return origin.x + _ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartCommonStyles.label.margin + dx + radius;
        default:
            return dx;
    }
};
// Returns y coordinate for pie legends
const getPieLegendY = ({ dy = 0, height, legendPosition, legendData, legendOrientation, legendProps, padding, theme, width }) => {
    const origin = (0,_chart_origin__WEBPACK_IMPORTED_MODULE_6__.getPieOrigin)({ height, padding, width });
    const radius = victory_core__WEBPACK_IMPORTED_MODULE_4__.getRadius({ height, width, padding });
    switch (legendPosition) {
        case 'bottom':
            return origin.y + _ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartCommonStyles.legend.margin + radius + dy;
        case 'right': {
            // Legend height with padding
            const legendDimensions = getLegendDimensions({
                legendData,
                legendOrientation,
                legendProps,
                theme
            });
            const legendPadding = (legendDataArr) => (legendDataArr && legendDataArr.length > 0 ? 2 : 0);
            return origin.y - legendDimensions.height / 2 + legendPadding(legendData);
        }
        default:
            return dy;
    }
};
// Returns an approximation of longest text width based on legend styles
const getMaxLegendTextSize = ({ legendData, theme }) => {
    const style = theme && theme.legend && theme.legend.style ? theme.legend.style.labels : undefined;
    if (!(legendData && legendData.length)) {
        return 0;
    }
    let result = '';
    legendData.forEach(data => {
        if (data.name && data.name.length > result.length) {
            result = data.name;
        }
    });
    // The approximateTextSize function returns height and width, but Victory incorrectly typed it as number
    const adjustedTextSize = victory_core__WEBPACK_IMPORTED_MODULE_7__.approximateTextSize(result, Object.assign({}, style));
    return adjustedTextSize.width;
};
//# sourceMappingURL=chart-legend.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-origin.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-origin.js ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getPieOrigin": () => (/* binding */ getPieOrigin)
/* harmony export */ });
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/helpers.js");

// Returns the origin for pie based charts. For example, something with a radius such as pie, donut, donut utilization,
// and donut threshold.
const getPieOrigin = ({ height, padding, width }) => {
    const { top, bottom, left, right } = victory_core__WEBPACK_IMPORTED_MODULE_0__.getPadding({ padding });
    const radius = victory_core__WEBPACK_IMPORTED_MODULE_0__.getRadius({ height, width, padding });
    const offsetX = (width - radius * 2 - left - right) / 2;
    const offsetY = (height - radius * 2 - top - bottom) / 2;
    return {
        x: radius + left + offsetX,
        y: radius + top + offsetY
    };
};
//# sourceMappingURL=chart-origin.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-padding.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-padding.js ***!
  \***********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getPaddingForSide": () => (/* binding */ getPaddingForSide)
/* harmony export */ });
const getPaddingForSide = (side, padding, fallback) => {
    if (typeof padding == 'number') {
        return padding;
    }
    else if (typeof padding == 'object' && Object.keys(padding).length > 0) {
        return padding[side] || 0;
    }
    return getPaddingForSide(side, fallback, 0);
};
//# sourceMappingURL=chart-padding.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-theme.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-theme.js ***!
  \*********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getCustomTheme": () => (/* binding */ getCustomTheme),
/* harmony export */   "getAxisTheme": () => (/* binding */ getAxisTheme),
/* harmony export */   "getBulletTheme": () => (/* binding */ getBulletTheme),
/* harmony export */   "getBulletComparativeErrorMeasureTheme": () => (/* binding */ getBulletComparativeErrorMeasureTheme),
/* harmony export */   "getBulletComparativeMeasureTheme": () => (/* binding */ getBulletComparativeMeasureTheme),
/* harmony export */   "getBulletComparativeWarningMeasureTheme": () => (/* binding */ getBulletComparativeWarningMeasureTheme),
/* harmony export */   "getBulletGroupTitleTheme": () => (/* binding */ getBulletGroupTitleTheme),
/* harmony export */   "getBulletPrimaryDotMeasureTheme": () => (/* binding */ getBulletPrimaryDotMeasureTheme),
/* harmony export */   "getBulletPrimaryNegativeMeasureTheme": () => (/* binding */ getBulletPrimaryNegativeMeasureTheme),
/* harmony export */   "getBulletPrimarySegmentedMeasureTheme": () => (/* binding */ getBulletPrimarySegmentedMeasureTheme),
/* harmony export */   "getBulletQualitativeRangeTheme": () => (/* binding */ getBulletQualitativeRangeTheme),
/* harmony export */   "getDonutTheme": () => (/* binding */ getDonutTheme),
/* harmony export */   "getDonutThresholdDynamicTheme": () => (/* binding */ getDonutThresholdDynamicTheme),
/* harmony export */   "getDonutThresholdStaticTheme": () => (/* binding */ getDonutThresholdStaticTheme),
/* harmony export */   "getDonutUtilizationTheme": () => (/* binding */ getDonutUtilizationTheme),
/* harmony export */   "getDarkThemeColors": () => (/* binding */ getDarkThemeColors),
/* harmony export */   "getLightThemeColors": () => (/* binding */ getLightThemeColors),
/* harmony export */   "getTheme": () => (/* binding */ getTheme),
/* harmony export */   "getThresholdTheme": () => (/* binding */ getThresholdTheme)
/* harmony export */ });
/* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/cloneDeep */ "./node_modules/lodash/cloneDeep.js");
/* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_merge__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/merge */ "./node_modules/lodash/merge.js");
/* harmony import */ var lodash_merge__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_merge__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ChartTheme_themes_dark_blue_color_theme__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ChartTheme/themes/dark/blue-color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/blue-color-theme.js");
/* harmony import */ var _ChartTheme_themes_dark_cyan_color_theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ChartTheme/themes/dark/cyan-color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/cyan-color-theme.js");
/* harmony import */ var _ChartTheme_themes_dark_gold_color_theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../ChartTheme/themes/dark/gold-color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/gold-color-theme.js");
/* harmony import */ var _ChartTheme_themes_dark_gray_color_theme__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../ChartTheme/themes/dark/gray-color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/gray-color-theme.js");
/* harmony import */ var _ChartTheme_themes_dark_green_color_theme__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../ChartTheme/themes/dark/green-color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/green-color-theme.js");
/* harmony import */ var _ChartTheme_themes_dark_multi_color_ordered_theme__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../ChartTheme/themes/dark/multi-color-ordered-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/multi-color-ordered-theme.js");
/* harmony import */ var _ChartTheme_themes_dark_multi_color_unordered_theme__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../ChartTheme/themes/dark/multi-color-unordered-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/multi-color-unordered-theme.js");
/* harmony import */ var _ChartTheme_themes_dark_orange_color_theme__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../ChartTheme/themes/dark/orange-color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/orange-color-theme.js");
/* harmony import */ var _ChartTheme_themes_dark_purple_color_theme__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../ChartTheme/themes/dark/purple-color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/dark/purple-color-theme.js");
/* harmony import */ var _ChartTheme_themes_light_blue_color_theme__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../ChartTheme/themes/light/blue-color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/blue-color-theme.js");
/* harmony import */ var _ChartTheme_themes_light_cyan_color_theme__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../ChartTheme/themes/light/cyan-color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/cyan-color-theme.js");
/* harmony import */ var _ChartTheme_themes_light_gold_color_theme__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../ChartTheme/themes/light/gold-color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/gold-color-theme.js");
/* harmony import */ var _ChartTheme_themes_light_gray_color_theme__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../ChartTheme/themes/light/gray-color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/gray-color-theme.js");
/* harmony import */ var _ChartTheme_themes_light_green_color_theme__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../ChartTheme/themes/light/green-color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/green-color-theme.js");
/* harmony import */ var _ChartTheme_themes_light_multi_color_ordered_theme__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../ChartTheme/themes/light/multi-color-ordered-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/multi-color-ordered-theme.js");
/* harmony import */ var _ChartTheme_themes_light_multi_color_unordered_theme__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../ChartTheme/themes/light/multi-color-unordered-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/multi-color-unordered-theme.js");
/* harmony import */ var _ChartTheme_themes_light_orange_color_theme__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../ChartTheme/themes/light/orange-color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/orange-color-theme.js");
/* harmony import */ var _ChartTheme_themes_light_purple_color_theme__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../ChartTheme/themes/light/purple-color-theme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/themes/light/purple-color-theme.js");
/* harmony import */ var _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../ChartTheme/ChartTheme */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/ChartTheme.js");





















// Apply custom properties to base and color themes
const getCustomTheme = (themeColor, themeVariant, customTheme) => lodash_merge__WEBPACK_IMPORTED_MODULE_1___default()(getTheme(themeColor, themeVariant), customTheme);
// Returns axis theme
const getAxisTheme = (themeColor, themeVariant) => getCustomTheme(themeColor, themeVariant, _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartAxisTheme);
// Returns bullet chart theme
const getBulletTheme = (themeColor, themeVariant) => getCustomTheme(themeColor, themeVariant, _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartBulletTheme);
// Returns comparative error measure theme for bullet chart
const getBulletComparativeErrorMeasureTheme = (themeColor, themeVariant) => getCustomTheme(themeColor, themeVariant, _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartBulletComparativeErrorMeasureTheme);
// Returns comparative measure theme for bullet chart
const getBulletComparativeMeasureTheme = (themeColor, themeVariant) => getCustomTheme(themeColor, themeVariant, _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartBulletComparativeMeasureTheme);
// Returns comparative warning measure theme for bullet chart
const getBulletComparativeWarningMeasureTheme = (themeColor, themeVariant) => getCustomTheme(themeColor, themeVariant, _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartBulletComparativeWarningMeasureTheme);
// Returns group title theme for bullet chart
const getBulletGroupTitleTheme = (themeColor, themeVariant) => getCustomTheme(themeColor, themeVariant, _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartBulletGroupTitleTheme);
// Returns primary dot measure theme for bullet chart
const getBulletPrimaryDotMeasureTheme = (themeColor, themeVariant) => getCustomTheme(themeColor, themeVariant, _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartBulletPrimaryDotMeasureTheme);
// Returns primary negative measure theme for bullet chart
const getBulletPrimaryNegativeMeasureTheme = (themeColor, themeVariant) => getCustomTheme(themeColor, themeVariant, _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartBulletPrimaryNegativeMeasureTheme);
// Returns primary segmented measure theme for bullet chart
const getBulletPrimarySegmentedMeasureTheme = (themeColor, themeVariant) => getCustomTheme(themeColor, themeVariant, _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartBulletPrimarySegmentedMeasureTheme);
// Returns qualitative range theme for bullet chart
const getBulletQualitativeRangeTheme = (themeColor, themeVariant) => getCustomTheme(themeColor, themeVariant, _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartBulletQualitativeRangeTheme);
// Returns donut theme
const getDonutTheme = (themeColor, themeVariant) => getCustomTheme(themeColor, themeVariant, _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartDonutTheme);
// Returns dynamic donut threshold theme
const getDonutThresholdDynamicTheme = (themeColor, themeVariant) => {
    const theme = getCustomTheme(themeColor, themeVariant, _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartDonutThresholdDynamicTheme);
    // Merge just the first color of dynamic (blue, green, etc.) with static (grey) for expected colorScale
    theme.legend.colorScale = [theme.pie.colorScale[0], ..._ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartDonutThresholdDynamicTheme.legend.colorScale];
    // Merge the threshold colors in case users want to show the unused data
    theme.pie.colorScale = [theme.pie.colorScale[0], ..._ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartDonutThresholdStaticTheme.pie.colorScale];
    return theme;
};
// Returns static donut threshold theme
const getDonutThresholdStaticTheme = (themeColor, themeVariant, invert) => {
    const staticTheme = lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_0___default()(_ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartDonutThresholdStaticTheme);
    if (invert && staticTheme.pie.colorScale instanceof Array) {
        staticTheme.pie.colorScale = staticTheme.pie.colorScale.reverse();
    }
    return getCustomTheme(themeColor, themeVariant, staticTheme);
};
// Returns donut utilization theme
const getDonutUtilizationTheme = (themeColor, themeVariant) => {
    const theme = getCustomTheme(themeColor, themeVariant, _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartDonutUtilizationDynamicTheme);
    // Merge just the first color of dynamic (blue, green, etc.) with static (grey) for expected colorScale
    theme.pie.colorScale = [theme.pie.colorScale[0], ..._ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartDonutUtilizationStaticTheme.pie.colorScale];
    theme.legend.colorScale = [theme.legend.colorScale[0], ..._ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartDonutUtilizationStaticTheme.legend.colorScale];
    return theme;
};
// Returns dark theme colors
const getDarkThemeColors = (themeColor) => {
    switch (themeColor) {
        case _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartThemeColor.blue:
            return _ChartTheme_themes_dark_blue_color_theme__WEBPACK_IMPORTED_MODULE_3__.DarkBlueColorTheme;
        case _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartThemeColor.cyan:
            return _ChartTheme_themes_dark_cyan_color_theme__WEBPACK_IMPORTED_MODULE_4__.DarkCyanColorTheme;
        case _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartThemeColor.gold:
            return _ChartTheme_themes_dark_gold_color_theme__WEBPACK_IMPORTED_MODULE_5__.DarkGoldColorTheme;
        case _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartThemeColor.gray:
            return _ChartTheme_themes_dark_gray_color_theme__WEBPACK_IMPORTED_MODULE_6__.DarkGrayColorTheme;
        case _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartThemeColor.green:
            return _ChartTheme_themes_dark_green_color_theme__WEBPACK_IMPORTED_MODULE_7__.DarkGreenColorTheme;
        case _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartThemeColor.multi:
        case _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartThemeColor.multiOrdered:
            return _ChartTheme_themes_dark_multi_color_ordered_theme__WEBPACK_IMPORTED_MODULE_8__.DarkMultiColorOrderedTheme;
        case _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartThemeColor.multiUnordered:
            return _ChartTheme_themes_dark_multi_color_unordered_theme__WEBPACK_IMPORTED_MODULE_9__.DarkMultiColorUnorderedTheme;
        case _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartThemeColor.orange:
            return _ChartTheme_themes_dark_orange_color_theme__WEBPACK_IMPORTED_MODULE_10__.DarkOrangeColorTheme;
        case _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartThemeColor.purple:
            return _ChartTheme_themes_dark_purple_color_theme__WEBPACK_IMPORTED_MODULE_11__.DarkPurpleColorTheme;
        default:
            return _ChartTheme_themes_dark_blue_color_theme__WEBPACK_IMPORTED_MODULE_3__.DarkBlueColorTheme;
    }
};
// Returns light theme colors
const getLightThemeColors = (themeColor) => {
    switch (themeColor) {
        case _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartThemeColor.blue:
            return _ChartTheme_themes_light_blue_color_theme__WEBPACK_IMPORTED_MODULE_12__.LightBlueColorTheme;
        case _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartThemeColor.cyan:
            return _ChartTheme_themes_light_cyan_color_theme__WEBPACK_IMPORTED_MODULE_13__.LightCyanColorTheme;
        case _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartThemeColor.gold:
            return _ChartTheme_themes_light_gold_color_theme__WEBPACK_IMPORTED_MODULE_14__.LightGoldColorTheme;
        case _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartThemeColor.gray:
            return _ChartTheme_themes_light_gray_color_theme__WEBPACK_IMPORTED_MODULE_15__.LightGrayColorTheme;
        case _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartThemeColor.green:
            return _ChartTheme_themes_light_green_color_theme__WEBPACK_IMPORTED_MODULE_16__.LightGreenColorTheme;
        case _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartThemeColor.multi:
        case _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartThemeColor.multiOrdered:
            return _ChartTheme_themes_light_multi_color_ordered_theme__WEBPACK_IMPORTED_MODULE_17__.LightMultiColorOrderedTheme;
        case _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartThemeColor.multiUnordered:
            return _ChartTheme_themes_light_multi_color_unordered_theme__WEBPACK_IMPORTED_MODULE_18__.LightMultiColorUnorderedTheme;
        case _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartThemeColor.orange:
            return _ChartTheme_themes_light_orange_color_theme__WEBPACK_IMPORTED_MODULE_19__.LightOrangeColorTheme;
        case _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartThemeColor.purple:
            return _ChartTheme_themes_light_purple_color_theme__WEBPACK_IMPORTED_MODULE_20__.LightPurpleColorTheme;
        default:
            return _ChartTheme_themes_light_blue_color_theme__WEBPACK_IMPORTED_MODULE_12__.LightBlueColorTheme;
    }
};
// Applies theme color and variant to base theme
const getTheme = (themeColor, themeVariant) => {
    // Deep clone
    const baseTheme = Object.assign({}, JSON.parse(JSON.stringify(_ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartBaseTheme)));
    switch (themeVariant) {
        case _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartThemeVariant.dark:
            return lodash_merge__WEBPACK_IMPORTED_MODULE_1___default()(baseTheme, getDarkThemeColors(themeColor));
        case _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartThemeVariant.light:
            return lodash_merge__WEBPACK_IMPORTED_MODULE_1___default()(baseTheme, getLightThemeColors(themeColor));
        default:
            return lodash_merge__WEBPACK_IMPORTED_MODULE_1___default()(baseTheme, getLightThemeColors(themeColor));
    }
};
// Returns threshold theme
const getThresholdTheme = (themeColor, themeVariant) => getCustomTheme(themeColor, themeVariant, _ChartTheme_ChartTheme__WEBPACK_IMPORTED_MODULE_2__.ChartThresholdTheme);
//# sourceMappingURL=chart-theme.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartVoronoiContainer/ChartVoronoiContainer.js":
/*!******************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-charts/dist/esm/components/ChartVoronoiContainer/ChartVoronoiContainer.js ***!
  \******************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ChartVoronoiDimension": () => (/* binding */ ChartVoronoiDimension),
/* harmony export */   "ChartVoronoiContainer": () => (/* binding */ ChartVoronoiContainer)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js");
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var victory_voronoi_container__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-voronoi-container */ "./node_modules/victory-voronoi-container/es/victory-voronoi-container.js");
/* harmony import */ var _ChartTooltip__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ChartTooltip */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTooltip/ChartTooltip.js");
/* harmony import */ var _ChartUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../ChartUtils */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-theme.js");
/* harmony import */ var _ChartUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../ChartUtils */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartUtils/chart-helpers.js");






var ChartVoronoiDimension;
(function (ChartVoronoiDimension) {
    ChartVoronoiDimension["x"] = "x";
    ChartVoronoiDimension["y"] = "y";
})(ChartVoronoiDimension || (ChartVoronoiDimension = {}));
const ChartVoronoiContainer = (_a) => {
    var { className, constrainToVisibleArea = false, themeColor, themeVariant, 
    // destructure last
    theme = (0,_ChartUtils__WEBPACK_IMPORTED_MODULE_2__.getTheme)(themeColor, themeVariant), labelComponent = react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ChartTooltip__WEBPACK_IMPORTED_MODULE_3__.ChartTooltip, null) } = _a, // Note that Victory provides its own tooltip component here
    rest = (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__rest)(_a, ["className", "constrainToVisibleArea", "themeColor", "themeVariant", "theme", "labelComponent"]);
    const chartClassName = (0,_ChartUtils__WEBPACK_IMPORTED_MODULE_5__.getClassName)({ className });
    const chartLabelComponent = react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(labelComponent, Object.assign({ constrainToVisibleArea,
        theme }, labelComponent.props));
    // Note: theme is required by voronoiContainerMixin
    return (
    // Note: className is valid, but Victory is missing a type
    react__WEBPACK_IMPORTED_MODULE_0__.createElement(victory_voronoi_container__WEBPACK_IMPORTED_MODULE_6__["default"], Object.assign({ className: chartClassName, labelComponent: chartLabelComponent, theme: theme }, rest)));
};
ChartVoronoiContainer.displayName = 'ChartVoronoiContainer';
ChartVoronoiContainer.defaultProps = victory_voronoi_container__WEBPACK_IMPORTED_MODULE_6__["default"].defaultProps;
// Note: VictoryVoronoiContainer.defaultEvents & VictoryContainer.role must be hoisted
hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_1___default()(ChartVoronoiContainer, victory_voronoi_container__WEBPACK_IMPORTED_MODULE_6__["default"]);
//# sourceMappingURL=ChartVoronoiContainer.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/Alert.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Alert/Alert.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "AlertVariant": () => (/* binding */ AlertVariant),
/* harmony export */   "Alert": () => (/* binding */ Alert)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Alert_alert__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Alert/alert */ "./node_modules/@patternfly/react-styles/css/components/Alert/alert.js");
/* harmony import */ var _patternfly_react_styles_css_utilities_Accessibility_accessibility__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles/css/utilities/Accessibility/accessibility */ "./node_modules/@patternfly/react-styles/css/utilities/Accessibility/accessibility.js");
/* harmony import */ var _AlertIcon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./AlertIcon */ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/AlertIcon.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");
/* harmony import */ var _AlertContext__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./AlertContext */ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/AlertContext.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_c_alert_title_max_lines__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/c_alert__title_max_lines */ "./node_modules/@patternfly/react-tokens/dist/esm/c_alert__title_max_lines.js");
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Tooltip */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js");
/* harmony import */ var _AlertToggleExpandButton__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./AlertToggleExpandButton */ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/AlertToggleExpandButton.js");












var AlertVariant;
(function (AlertVariant) {
    AlertVariant["success"] = "success";
    AlertVariant["danger"] = "danger";
    AlertVariant["warning"] = "warning";
    AlertVariant["info"] = "info";
    AlertVariant["default"] = "default";
})(AlertVariant || (AlertVariant = {}));
const Alert = (_a) => {
    var { variant = AlertVariant.default, isInline = false, isPlain = false, isLiveRegion = false, variantLabel = `${(0,_helpers__WEBPACK_IMPORTED_MODULE_1__.capitalize)(variant)} alert:`, 'aria-label': ariaLabel = `${(0,_helpers__WEBPACK_IMPORTED_MODULE_1__.capitalize)(variant)} Alert`, actionClose, actionLinks, title, titleHeadingLevel: TitleHeadingLevel = 'h4', children = '', className = '', ouiaId, ouiaSafe = true, timeout = false, timeoutAnimation = 3000, onTimeout = () => { }, truncateTitle = 0, tooltipPosition, customIcon, isExpandable = false, toggleAriaLabel = `${(0,_helpers__WEBPACK_IMPORTED_MODULE_1__.capitalize)(variant)} alert details`, onMouseEnter = () => { }, onMouseLeave = () => { } } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["variant", "isInline", "isPlain", "isLiveRegion", "variantLabel", 'aria-label', "actionClose", "actionLinks", "title", "titleHeadingLevel", "children", "className", "ouiaId", "ouiaSafe", "timeout", "timeoutAnimation", "onTimeout", "truncateTitle", "tooltipPosition", "customIcon", "isExpandable", "toggleAriaLabel", "onMouseEnter", "onMouseLeave"]);
    const ouiaProps = (0,_helpers__WEBPACK_IMPORTED_MODULE_3__.useOUIAProps)(Alert.displayName, ouiaId, ouiaSafe, variant);
    const getHeadingContent = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_utilities_Accessibility_accessibility__WEBPACK_IMPORTED_MODULE_5__["default"].screenReader) }, variantLabel),
        title));
    const titleRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);
    const divRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef();
    const [isTooltipVisible, setIsTooltipVisible] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        if (!titleRef.current || !truncateTitle) {
            return;
        }
        titleRef.current.style.setProperty(_patternfly_react_tokens_dist_esm_c_alert_title_max_lines__WEBPACK_IMPORTED_MODULE_6__["default"].name, truncateTitle.toString());
        const showTooltip = titleRef.current && titleRef.current.offsetHeight < titleRef.current.scrollHeight;
        if (isTooltipVisible !== showTooltip) {
            setIsTooltipVisible(showTooltip);
        }
    }, [titleRef, truncateTitle, isTooltipVisible]);
    const [timedOut, setTimedOut] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
    const [timedOutAnimation, setTimedOutAnimation] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(true);
    const [isMouseOver, setIsMouseOver] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)();
    const [containsFocus, setContainsFocus] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)();
    const dismissed = timedOut && timedOutAnimation && !isMouseOver && !containsFocus;
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        timeout = timeout === true ? 8000 : Number(timeout);
        if (timeout > 0) {
            const timer = setTimeout(() => setTimedOut(true), timeout);
            return () => clearTimeout(timer);
        }
    }, []);
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        const onDocumentFocus = () => {
            if (divRef.current) {
                if (divRef.current.contains(document.activeElement)) {
                    setContainsFocus(true);
                    setTimedOutAnimation(false);
                }
                else if (containsFocus) {
                    setContainsFocus(false);
                }
            }
        };
        document.addEventListener('focus', onDocumentFocus, true);
        return () => document.removeEventListener('focus', onDocumentFocus, true);
    }, [containsFocus]);
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        if (containsFocus === false || isMouseOver === false) {
            const timer = setTimeout(() => setTimedOutAnimation(true), timeoutAnimation);
            return () => clearTimeout(timer);
        }
    }, [containsFocus, isMouseOver]);
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        dismissed && onTimeout();
    }, [dismissed]);
    const [isExpanded, setIsExpanded] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
    const onToggleExpand = () => {
        setIsExpanded(!isExpanded);
    };
    const myOnMouseEnter = (ev) => {
        setIsMouseOver(true);
        setTimedOutAnimation(false);
        onMouseEnter(ev);
    };
    const myOnMouseLeave = (ev) => {
        setIsMouseOver(false);
        onMouseLeave(ev);
    };
    if (dismissed) {
        return null;
    }
    const Title = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(TitleHeadingLevel, Object.assign({}, (isTooltipVisible && { tabIndex: 0 }), { ref: titleRef, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Alert_alert__WEBPACK_IMPORTED_MODULE_7__["default"].alertTitle, truncateTitle && _patternfly_react_styles_css_components_Alert_alert__WEBPACK_IMPORTED_MODULE_7__["default"].modifiers.truncate) }), getHeadingContent));
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ ref: divRef, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Alert_alert__WEBPACK_IMPORTED_MODULE_7__["default"].alert, isInline && _patternfly_react_styles_css_components_Alert_alert__WEBPACK_IMPORTED_MODULE_7__["default"].modifiers.inline, isPlain && _patternfly_react_styles_css_components_Alert_alert__WEBPACK_IMPORTED_MODULE_7__["default"].modifiers.plain, isExpandable && _patternfly_react_styles_css_components_Alert_alert__WEBPACK_IMPORTED_MODULE_7__["default"].modifiers.expandable, isExpanded && _patternfly_react_styles_css_components_Alert_alert__WEBPACK_IMPORTED_MODULE_7__["default"].modifiers.expanded, _patternfly_react_styles_css_components_Alert_alert__WEBPACK_IMPORTED_MODULE_7__["default"].modifiers[variant], className), "aria-label": ariaLabel }, ouiaProps, (isLiveRegion && {
        'aria-live': 'polite',
        'aria-atomic': 'false'
    }), { onMouseEnter: myOnMouseEnter, onMouseLeave: myOnMouseLeave }, props),
        isExpandable && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_AlertContext__WEBPACK_IMPORTED_MODULE_8__.AlertContext.Provider, { value: { title, variantLabel } },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Alert_alert__WEBPACK_IMPORTED_MODULE_7__["default"].alertToggle) },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_AlertToggleExpandButton__WEBPACK_IMPORTED_MODULE_9__.AlertToggleExpandButton, { isExpanded: isExpanded, onToggleExpand: onToggleExpand, "aria-label": toggleAriaLabel })))),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_AlertIcon__WEBPACK_IMPORTED_MODULE_10__.AlertIcon, { variant: variant, customIcon: customIcon }),
        isTooltipVisible ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Tooltip__WEBPACK_IMPORTED_MODULE_11__.Tooltip, { content: getHeadingContent, position: tooltipPosition }, Title)) : (Title),
        actionClose && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_AlertContext__WEBPACK_IMPORTED_MODULE_8__.AlertContext.Provider, { value: { title, variantLabel } },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Alert_alert__WEBPACK_IMPORTED_MODULE_7__["default"].alertAction) }, actionClose))),
        children && (!isExpandable || (isExpandable && isExpanded)) && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Alert_alert__WEBPACK_IMPORTED_MODULE_7__["default"].alertDescription) }, children)),
        actionLinks && react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Alert_alert__WEBPACK_IMPORTED_MODULE_7__["default"].alertActionGroup) }, actionLinks)));
};
Alert.displayName = 'Alert';
//# sourceMappingURL=Alert.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/AlertActionCloseButton.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Alert/AlertActionCloseButton.js ***!
  \*************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "AlertActionCloseButton": () => (/* binding */ AlertActionCloseButton)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_times_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/times-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/times-icon.js");
/* harmony import */ var _AlertContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AlertContext */ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/AlertContext.js");





const AlertActionCloseButton = (_a) => {
    var { 
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    className = '', onClose = () => undefined, 'aria-label': ariaLabel = '', variantLabel } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "onClose", 'aria-label', "variantLabel"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_AlertContext__WEBPACK_IMPORTED_MODULE_2__.AlertContext.Consumer, null, ({ title, variantLabel: alertVariantLabel }) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__.Button, Object.assign({ variant: _Button__WEBPACK_IMPORTED_MODULE_3__.ButtonVariant.plain, onClick: onClose, "aria-label": ariaLabel === '' ? `Close ${variantLabel || alertVariantLabel} alert: ${title}` : ariaLabel }, props),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_times_icon__WEBPACK_IMPORTED_MODULE_4__["default"], null)))));
};
AlertActionCloseButton.displayName = 'AlertActionCloseButton';
//# sourceMappingURL=AlertActionCloseButton.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/AlertContext.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Alert/AlertContext.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "AlertContext": () => (/* binding */ AlertContext)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");

const AlertContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext(null);
//# sourceMappingURL=AlertContext.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/AlertIcon.js":
/*!************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Alert/AlertIcon.js ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "variantIcons": () => (/* binding */ variantIcons),
/* harmony export */   "AlertIcon": () => (/* binding */ AlertIcon)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Alert_alert__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Alert/alert */ "./node_modules/@patternfly/react-styles/css/components/Alert/alert.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_check_circle_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/check-circle-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/check-circle-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_exclamation_circle_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/exclamation-circle-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_exclamation_triangle_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/exclamation-triangle-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/exclamation-triangle-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_info_circle_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/info-circle-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/info-circle-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_bell_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/bell-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/bell-icon.js");









const variantIcons = {
    success: _patternfly_react_icons_dist_esm_icons_check_circle_icon__WEBPACK_IMPORTED_MODULE_1__["default"],
    danger: _patternfly_react_icons_dist_esm_icons_exclamation_circle_icon__WEBPACK_IMPORTED_MODULE_2__["default"],
    warning: _patternfly_react_icons_dist_esm_icons_exclamation_triangle_icon__WEBPACK_IMPORTED_MODULE_3__["default"],
    info: _patternfly_react_icons_dist_esm_icons_info_circle_icon__WEBPACK_IMPORTED_MODULE_4__["default"],
    default: _patternfly_react_icons_dist_esm_icons_bell_icon__WEBPACK_IMPORTED_MODULE_5__["default"]
};
const AlertIcon = (_a) => {
    var { variant, customIcon, className = '' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_6__.__rest)(_a, ["variant", "customIcon", "className"]);
    const Icon = variantIcons[variant];
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({}, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_7__.css)(_patternfly_react_styles_css_components_Alert_alert__WEBPACK_IMPORTED_MODULE_8__["default"].alertIcon, className) }), customIcon || react__WEBPACK_IMPORTED_MODULE_0__.createElement(Icon, null)));
};
//# sourceMappingURL=AlertIcon.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/AlertToggleExpandButton.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Alert/AlertToggleExpandButton.js ***!
  \**************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "AlertToggleExpandButton": () => (/* binding */ AlertToggleExpandButton)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _AlertContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AlertContext */ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/AlertContext.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-right-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-right-icon.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Alert_alert__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Alert/alert */ "./node_modules/@patternfly/react-styles/css/components/Alert/alert.js");







const AlertToggleExpandButton = (_a) => {
    var { 'aria-label': ariaLabel, variantLabel, onToggleExpand, isExpanded } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ['aria-label', "variantLabel", "onToggleExpand", "isExpanded"]);
    const { title, variantLabel: alertVariantLabel } = react__WEBPACK_IMPORTED_MODULE_0__.useContext(_AlertContext__WEBPACK_IMPORTED_MODULE_2__.AlertContext);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__.Button, Object.assign({ variant: _Button__WEBPACK_IMPORTED_MODULE_3__.ButtonVariant.plain, onClick: onToggleExpand, "aria-expanded": isExpanded, "aria-label": ariaLabel === '' ? `Toggle ${variantLabel || alertVariantLabel} alert: ${title}` : ariaLabel }, props),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Alert_alert__WEBPACK_IMPORTED_MODULE_5__["default"].alertToggleIcon) },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_6__["default"], { "aria-hidden": "true" }))));
};
AlertToggleExpandButton.displayName = 'AlertToggleExpandButton';
//# sourceMappingURL=AlertToggleExpandButton.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/AlertGroup/AlertGroup.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/AlertGroup/AlertGroup.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "AlertGroup": () => (/* binding */ AlertGroup)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");
/* harmony import */ var _AlertGroupInline__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./AlertGroupInline */ "./node_modules/@patternfly/react-core/dist/esm/components/AlertGroup/AlertGroupInline.js");





class AlertGroup extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor() {
        super(...arguments);
        this.state = {
            container: undefined
        };
    }
    componentDidMount() {
        const container = document.createElement('div');
        const target = this.getTargetElement();
        this.setState({ container });
        target.appendChild(container);
    }
    componentWillUnmount() {
        const target = this.getTargetElement();
        if (this.state.container) {
            target.removeChild(this.state.container);
        }
    }
    getTargetElement() {
        const appendTo = this.props.appendTo;
        if (typeof appendTo === 'function') {
            return appendTo();
        }
        return appendTo || document.body;
    }
    render() {
        const _a = this.props, { className, children, isToast, isLiveRegion } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["className", "children", "isToast", "isLiveRegion"]);
        const alertGroup = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_AlertGroupInline__WEBPACK_IMPORTED_MODULE_3__.AlertGroupInline, Object.assign({ className: className, isToast: isToast, isLiveRegion: isLiveRegion }, props), children));
        if (!this.props.isToast) {
            return alertGroup;
        }
        const container = this.state.container;
        if (!_helpers__WEBPACK_IMPORTED_MODULE_4__.canUseDOM || !container) {
            return null;
        }
        return react_dom__WEBPACK_IMPORTED_MODULE_1__.createPortal(alertGroup, container);
    }
}
AlertGroup.displayName = 'AlertGroup';
//# sourceMappingURL=AlertGroup.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/AlertGroup/AlertGroupInline.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/AlertGroup/AlertGroupInline.js ***!
  \************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "AlertGroupInline": () => (/* binding */ AlertGroupInline)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_AlertGroup_alert_group__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/AlertGroup/alert-group */ "./node_modules/@patternfly/react-styles/css/components/AlertGroup/alert-group.js");




const AlertGroupInline = (_a) => {
    var { className, children, isToast, isLiveRegion } = _a, rest = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "children", "isToast", "isLiveRegion"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("ul", Object.assign({ "aria-live": isLiveRegion ? 'polite' : null, "aria-atomic": isLiveRegion ? false : null, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_AlertGroup_alert_group__WEBPACK_IMPORTED_MODULE_3__["default"].alertGroup, className, isToast ? _patternfly_react_styles_css_components_AlertGroup_alert_group__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.toast : '') }, rest), react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(children).map((Alert, index) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", { key: index }, Alert)))));
};
AlertGroupInline.displayName = 'AlertGroupInline';
//# sourceMappingURL=AlertGroupInline.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/ApplicationLauncher/ApplicationLauncherSeparator.js":
/*!*********************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/ApplicationLauncher/ApplicationLauncherSeparator.js ***!
  \*********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ApplicationLauncherSeparator": () => (/* binding */ ApplicationLauncherSeparator)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _Dropdown_DropdownSeparator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Dropdown/DropdownSeparator */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownSeparator.js");



const ApplicationLauncherSeparator = (_a) => {
    var { 
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    children } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children"]);
    return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Dropdown_DropdownSeparator__WEBPACK_IMPORTED_MODULE_2__.DropdownSeparator, Object.assign({}, props));
};
ApplicationLauncherSeparator.displayName = 'ApplicationLauncherSeparator';
//# sourceMappingURL=ApplicationLauncherSeparator.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Backdrop/Backdrop.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Backdrop/Backdrop.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Backdrop": () => (/* binding */ Backdrop)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Backdrop_backdrop__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Backdrop/backdrop */ "./node_modules/@patternfly/react-styles/css/components/Backdrop/backdrop.js");




const Backdrop = (_a) => {
    var { children = null, className = '' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({}, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Backdrop_backdrop__WEBPACK_IMPORTED_MODULE_3__["default"].backdrop, className) }), children));
};
Backdrop.displayName = 'Backdrop';
//# sourceMappingURL=Backdrop.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Badge/Badge.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Badge/Badge.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Badge": () => (/* binding */ Badge)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Badge_badge__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Badge/badge */ "./node_modules/@patternfly/react-styles/css/components/Badge/badge.js");




const Badge = (_a) => {
    var { isRead = false, className = '', children = '' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["isRead", "className", "children"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", Object.assign({}, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Badge_badge__WEBPACK_IMPORTED_MODULE_3__["default"].badge, (isRead ? _patternfly_react_styles_css_components_Badge_badge__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.read : _patternfly_react_styles_css_components_Badge_badge__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.unread), className) }), children));
};
Badge.displayName = 'Badge';
//# sourceMappingURL=Badge.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Breadcrumb/Breadcrumb.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Breadcrumb/Breadcrumb.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Breadcrumb": () => (/* binding */ Breadcrumb)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Breadcrumb_breadcrumb__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Breadcrumb/breadcrumb */ "./node_modules/@patternfly/react-styles/css/components/Breadcrumb/breadcrumb.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");





const Breadcrumb = (_a) => {
    var { children = null, className = '', 'aria-label': ariaLabel = 'Breadcrumb', ouiaId, ouiaSafe = true } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", 'aria-label', "ouiaId", "ouiaSafe"]);
    const ouiaProps = (0,_helpers__WEBPACK_IMPORTED_MODULE_2__.useOUIAProps)(Breadcrumb.displayName, ouiaId, ouiaSafe);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("nav", Object.assign({}, props, { "aria-label": ariaLabel, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Breadcrumb_breadcrumb__WEBPACK_IMPORTED_MODULE_4__["default"].breadcrumb, className) }, ouiaProps),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("ol", { className: _patternfly_react_styles_css_components_Breadcrumb_breadcrumb__WEBPACK_IMPORTED_MODULE_4__["default"].breadcrumbList }, react__WEBPACK_IMPORTED_MODULE_0__.Children.map(children, (child, index) => {
            const showDivider = index > 0;
            if (react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(child)) {
                return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(child, { showDivider });
            }
            return child;
        }))));
};
Breadcrumb.displayName = 'Breadcrumb';
//# sourceMappingURL=Breadcrumb.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Breadcrumb/BreadcrumbItem.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Breadcrumb/BreadcrumbItem.js ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "BreadcrumbItem": () => (/* binding */ BreadcrumbItem)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-right-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-right-icon.js");
/* harmony import */ var _patternfly_react_styles_css_components_Breadcrumb_breadcrumb__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Breadcrumb/breadcrumb */ "./node_modules/@patternfly/react-styles/css/components/Breadcrumb/breadcrumb.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");





const BreadcrumbItem = (_a) => {
    var { children = null, className: classNameProp = '', to = undefined, isActive = false, isDropdown = false, showDivider, target = undefined, component = 'a', render = undefined } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "to", "isActive", "isDropdown", "showDivider", "target", "component", "render"]);
    const Component = component;
    const ariaCurrent = isActive ? 'page' : undefined;
    const className = (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Breadcrumb_breadcrumb__WEBPACK_IMPORTED_MODULE_3__["default"].breadcrumbLink, isActive && _patternfly_react_styles_css_components_Breadcrumb_breadcrumb__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.current);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", Object.assign({}, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Breadcrumb_breadcrumb__WEBPACK_IMPORTED_MODULE_3__["default"].breadcrumbItem, classNameProp) }),
        showDivider && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: _patternfly_react_styles_css_components_Breadcrumb_breadcrumb__WEBPACK_IMPORTED_MODULE_3__["default"].breadcrumbItemDivider },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_4__["default"], null))),
        component === 'button' && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", { className: className, "aria-current": ariaCurrent, type: "button" }, children)),
        isDropdown && react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Breadcrumb_breadcrumb__WEBPACK_IMPORTED_MODULE_3__["default"].breadcrumbDropdown) }, children),
        render && render({ className, ariaCurrent }),
        to && !render && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, { href: to, target: target, className: className, "aria-current": ariaCurrent }, children)),
        !to && component !== 'button' && !isDropdown && children));
};
BreadcrumbItem.displayName = 'BreadcrumbItem';
//# sourceMappingURL=BreadcrumbItem.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ButtonVariant": () => (/* binding */ ButtonVariant),
/* harmony export */   "ButtonType": () => (/* binding */ ButtonType),
/* harmony export */   "Button": () => (/* binding */ Button)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Button/button */ "./node_modules/@patternfly/react-styles/css/components/Button/button.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _Spinner__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Spinner */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");






var ButtonVariant;
(function (ButtonVariant) {
    ButtonVariant["primary"] = "primary";
    ButtonVariant["secondary"] = "secondary";
    ButtonVariant["tertiary"] = "tertiary";
    ButtonVariant["danger"] = "danger";
    ButtonVariant["warning"] = "warning";
    ButtonVariant["link"] = "link";
    ButtonVariant["plain"] = "plain";
    ButtonVariant["control"] = "control";
})(ButtonVariant || (ButtonVariant = {}));
var ButtonType;
(function (ButtonType) {
    ButtonType["button"] = "button";
    ButtonType["submit"] = "submit";
    ButtonType["reset"] = "reset";
})(ButtonType || (ButtonType = {}));
const ButtonBase = (_a) => {
    var { children = null, className = '', component = 'button', isActive = false, isBlock = false, isDisabled = false, isAriaDisabled = false, isLoading = null, isDanger = false, spinnerAriaValueText, isSmall = false, isLarge = false, inoperableEvents = ['onClick', 'onKeyPress'], isInline = false, type = ButtonType.button, variant = ButtonVariant.primary, iconPosition = 'left', 'aria-label': ariaLabel = null, icon = null, ouiaId, ouiaSafe = true, tabIndex = null, innerRef } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "component", "isActive", "isBlock", "isDisabled", "isAriaDisabled", "isLoading", "isDanger", "spinnerAriaValueText", "isSmall", "isLarge", "inoperableEvents", "isInline", "type", "variant", "iconPosition", 'aria-label', "icon", "ouiaId", "ouiaSafe", "tabIndex", "innerRef"]);
    const ouiaProps = (0,_helpers__WEBPACK_IMPORTED_MODULE_2__.useOUIAProps)(Button.displayName, ouiaId, ouiaSafe, variant);
    const Component = component;
    const isButtonElement = Component === 'button';
    const isInlineSpan = isInline && Component === 'span';
    const preventedEvents = inoperableEvents.reduce((handlers, eventToPrevent) => (Object.assign(Object.assign({}, handlers), { [eventToPrevent]: (event) => {
            event.preventDefault();
        } })), {});
    const getDefaultTabIdx = () => {
        if (isDisabled) {
            return isButtonElement ? null : -1;
        }
        else if (isAriaDisabled) {
            return null;
        }
        else if (isInlineSpan) {
            return 0;
        }
    };
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({}, props, (isAriaDisabled ? preventedEvents : null), { "aria-disabled": isDisabled || isAriaDisabled, "aria-label": ariaLabel, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_4__["default"].button, _patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers[variant], isBlock && _patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.block, isDisabled && _patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.disabled, isAriaDisabled && _patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.ariaDisabled, isActive && _patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.active, isInline && variant === ButtonVariant.link && _patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.inline, isDanger && (variant === ButtonVariant.secondary || variant === ButtonVariant.link) && _patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.danger, isLoading !== null && _patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.progress, isLoading && _patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.inProgress, isSmall && _patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.small, isLarge && _patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.displayLg, className), disabled: isButtonElement ? isDisabled : null, tabIndex: tabIndex !== null ? tabIndex : getDefaultTabIdx(), type: isButtonElement || isInlineSpan ? type : null, role: isInlineSpan ? 'button' : null, ref: innerRef }, ouiaProps),
        isLoading && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_4__["default"].buttonProgress) },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Spinner__WEBPACK_IMPORTED_MODULE_5__.Spinner, { size: _Spinner__WEBPACK_IMPORTED_MODULE_5__.spinnerSize.md, "aria-valuetext": spinnerAriaValueText }))),
        variant !== ButtonVariant.plain && icon && iconPosition === 'left' && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_4__["default"].buttonIcon, _patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.start) }, icon)),
        children,
        variant !== ButtonVariant.plain && icon && iconPosition === 'right' && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_4__["default"].buttonIcon, _patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.end) }, icon))));
};
const Button = react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((props, ref) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(ButtonBase, Object.assign({ innerRef: ref }, props))));
Button.displayName = 'Button';
//# sourceMappingURL=Button.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Card/Card.js":
/*!******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Card/Card.js ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CardContext": () => (/* binding */ CardContext),
/* harmony export */   "Card": () => (/* binding */ Card)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Card/card */ "./node_modules/@patternfly/react-styles/css/components/Card/card.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");





const CardContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext({
    cardId: '',
    isExpanded: false
});
const Card = (_a) => {
    var { children = null, id = '', className = '', component = 'article', isHoverable = false, isCompact = false, isSelectable = false, isSelectableRaised = false, isSelected = false, isDisabledRaised = false, isFlat = false, isExpanded = false, isRounded = false, isLarge = false, isFullHeight = false, isPlain = false, ouiaId, ouiaSafe = true } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "id", "className", "component", "isHoverable", "isCompact", "isSelectable", "isSelectableRaised", "isSelected", "isDisabledRaised", "isFlat", "isExpanded", "isRounded", "isLarge", "isFullHeight", "isPlain", "ouiaId", "ouiaSafe"]);
    const Component = component;
    const ouiaProps = (0,_helpers__WEBPACK_IMPORTED_MODULE_2__.useOUIAProps)(Card.displayName, ouiaId, ouiaSafe);
    if (isCompact && isLarge) {
        // eslint-disable-next-line no-console
        console.warn('Card: Cannot use isCompact with isLarge. Defaulting to isCompact');
        isLarge = false;
    }
    const getSelectableModifiers = () => {
        if (isDisabledRaised) {
            return (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.nonSelectableRaised);
        }
        if (isSelectableRaised) {
            return (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.selectableRaised, isSelected && _patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.selectedRaised);
        }
        if (isSelectable || isHoverable) {
            return (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.selectable, isSelected && _patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.selected);
        }
        return '';
    };
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(CardContext.Provider, { value: {
            cardId: id,
            isExpanded
        } },
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({ id: id, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_4__["default"].card, isCompact && _patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.compact, isExpanded && _patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.expanded, isFlat && _patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.flat, isRounded && _patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.rounded, isLarge && _patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.displayLg, isFullHeight && _patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.fullHeight, isPlain && _patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.plain, getSelectableModifiers(), className), tabIndex: isSelectable || isSelectableRaised ? '0' : undefined }, props, ouiaProps), children)));
};
Card.displayName = 'Card';
//# sourceMappingURL=Card.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardActions.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Card/CardActions.js ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CardActions": () => (/* binding */ CardActions)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Card/card */ "./node_modules/@patternfly/react-styles/css/components/Card/card.js");




const CardActions = (_a) => {
    var { children = null, className = '', hasNoOffset = false } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "hasNoOffset"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_3__["default"].cardActions, hasNoOffset && _patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.noOffset, className) }, props), children));
};
CardActions.displayName = 'CardActions';
//# sourceMappingURL=CardActions.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardBody.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Card/CardBody.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CardBody": () => (/* binding */ CardBody)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Card/card */ "./node_modules/@patternfly/react-styles/css/components/Card/card.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");




const CardBody = (_a) => {
    var { children = null, className = '', component = 'div', isFilled = true } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "component", "isFilled"]);
    const Component = component;
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_3__["default"].cardBody, !isFilled && _patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.noFill, className) }, props), children));
};
CardBody.displayName = 'CardBody';
//# sourceMappingURL=CardBody.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardFooter.js":
/*!************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Card/CardFooter.js ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CardFooter": () => (/* binding */ CardFooter)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Card/card */ "./node_modules/@patternfly/react-styles/css/components/Card/card.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");




const CardFooter = (_a) => {
    var { children = null, className = '', component = 'div' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "component"]);
    const Component = component;
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_3__["default"].cardFooter, className) }, props), children));
};
CardFooter.displayName = 'CardFooter';
//# sourceMappingURL=CardFooter.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardHeader.js":
/*!************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Card/CardHeader.js ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CardHeader": () => (/* binding */ CardHeader)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Card/card */ "./node_modules/@patternfly/react-styles/css/components/Card/card.js");
/* harmony import */ var _Card__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Card */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/Card.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-right-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-right-icon.js");







const CardHeader = (_a) => {
    var { children = null, className = '', id, onExpand, toggleButtonProps, isToggleRightAligned } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "id", "onExpand", "toggleButtonProps", "isToggleRightAligned"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Card__WEBPACK_IMPORTED_MODULE_2__.CardContext.Consumer, null, ({ cardId }) => {
        const cardHeaderToggle = (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_4__["default"].cardHeaderToggle) },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_5__.Button, Object.assign({ variant: "plain", type: "button", onClick: evt => {
                    onExpand(evt, cardId);
                } }, toggleButtonProps),
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_4__["default"].cardHeaderToggleIcon) },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_6__["default"], { "aria-hidden": "true" })))));
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_4__["default"].cardHeader, isToggleRightAligned && _patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.toggleRight, className), id: id }, props),
            onExpand && !isToggleRightAligned && cardHeaderToggle,
            children,
            onExpand && isToggleRightAligned && cardHeaderToggle));
    }));
};
CardHeader.displayName = 'CardHeader';
//# sourceMappingURL=CardHeader.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardHeaderMain.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Card/CardHeaderMain.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CardHeaderMain": () => (/* binding */ CardHeaderMain)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");


const CardHeaderMain = (_a) => {
    var { children = null, className = '' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: className }, props), children));
};
CardHeaderMain.displayName = 'CardHeaderMain';
//# sourceMappingURL=CardHeaderMain.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardTitle.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Card/CardTitle.js ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CardTitle": () => (/* binding */ CardTitle)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Card/card */ "./node_modules/@patternfly/react-styles/css/components/Card/card.js");




const CardTitle = (_a) => {
    var { children = null, className = '', component = 'div' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "component"]);
    const Component = component;
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Card_card__WEBPACK_IMPORTED_MODULE_3__["default"].cardTitle, className) }, props), children));
};
CardTitle.displayName = 'CardTitle';
//# sourceMappingURL=CardTitle.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Checkbox": () => (/* binding */ Checkbox)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Check_check__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Check/check */ "./node_modules/@patternfly/react-styles/css/components/Check/check.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");





// tslint:disable-next-line:no-empty
const defaultOnChange = () => { };
class Checkbox extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor(props) {
        super(props);
        this.handleChange = (event) => {
            this.props.onChange(event.currentTarget.checked, event);
        };
        this.state = {
            ouiaStateId: (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.getDefaultOUIAId)(Checkbox.displayName)
        };
    }
    render() {
        const _a = this.props, { 'aria-label': ariaLabel, className, onChange, isValid, isDisabled, isChecked, label, checked, defaultChecked, description, body, ouiaId, ouiaSafe } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ['aria-label', "className", "onChange", "isValid", "isDisabled", "isChecked", "label", "checked", "defaultChecked", "description", "body", "ouiaId", "ouiaSafe"]);
        if (!props.id) {
            // eslint-disable-next-line no-console
            console.error('Checkbox:', 'id is required to make input accessible');
        }
        const checkedProps = {};
        if ([true, false].includes(checked) || isChecked === true) {
            checkedProps.checked = checked || isChecked;
        }
        if (onChange !== defaultOnChange) {
            checkedProps.checked = isChecked;
        }
        if ([false, true].includes(defaultChecked)) {
            checkedProps.defaultChecked = defaultChecked;
        }
        checkedProps.checked = checkedProps.checked === null ? false : checkedProps.checked;
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Check_check__WEBPACK_IMPORTED_MODULE_4__["default"].check, !label && _patternfly_react_styles_css_components_Check_check__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.standalone, className) },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", Object.assign({}, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Check_check__WEBPACK_IMPORTED_MODULE_4__["default"].checkInput), type: "checkbox", onChange: this.handleChange, "aria-invalid": !isValid, "aria-label": ariaLabel, disabled: isDisabled, ref: elem => elem && (elem.indeterminate = isChecked === null) }, checkedProps, (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.getOUIAProps)(Checkbox.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe))),
            label && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("label", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Check_check__WEBPACK_IMPORTED_MODULE_4__["default"].checkLabel, isDisabled && _patternfly_react_styles_css_components_Check_check__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.disabled), htmlFor: props.id }, label)),
            description && react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Check_check__WEBPACK_IMPORTED_MODULE_4__["default"].checkDescription) }, description),
            body && react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Check_check__WEBPACK_IMPORTED_MODULE_4__["default"].checkBody) }, body)));
    }
}
Checkbox.displayName = 'Checkbox';
Checkbox.defaultProps = {
    className: '',
    isValid: true,
    isDisabled: false,
    isChecked: false,
    onChange: defaultOnChange,
    ouiaSafe: true
};
//# sourceMappingURL=Checkbox.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/ChipGroup/Chip.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/ChipGroup/Chip.js ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Chip": () => (/* binding */ Chip)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Tooltip */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_times_icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/times-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/times-icon.js");
/* harmony import */ var _patternfly_react_styles_css_components_Chip_chip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Chip/chip */ "./node_modules/@patternfly/react-styles/css/components/Chip/chip.js");
/* harmony import */ var _helpers_GenerateId_GenerateId__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../helpers/GenerateId/GenerateId */ "./node_modules/@patternfly/react-core/dist/esm/helpers/GenerateId/GenerateId.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");








class Chip extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor(props) {
        super(props);
        this.span = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.renderOverflowChip = () => {
            const { children, className, onClick, ouiaId } = this.props;
            const Component = this.props.component;
            return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({ onClick: onClick, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Chip_chip__WEBPACK_IMPORTED_MODULE_2__["default"].chip, _patternfly_react_styles_css_components_Chip_chip__WEBPACK_IMPORTED_MODULE_2__["default"].modifiers.overflow, className) }, (this.props.component === 'button' ? { type: 'button' } : {}), (0,_helpers__WEBPACK_IMPORTED_MODULE_3__.getOUIAProps)('OverflowChip', ouiaId !== undefined ? ouiaId : this.state.ouiaStateId)),
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Chip_chip__WEBPACK_IMPORTED_MODULE_2__["default"].chipText) }, children)));
        };
        this.renderChip = (randomId) => {
            const { children, tooltipPosition } = this.props;
            if (this.state.isTooltipVisible) {
                return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Tooltip__WEBPACK_IMPORTED_MODULE_4__.Tooltip, { position: tooltipPosition, content: children }, this.renderInnerChip(randomId)));
            }
            return this.renderInnerChip(randomId);
        };
        this.state = {
            isTooltipVisible: false,
            ouiaStateId: (0,_helpers__WEBPACK_IMPORTED_MODULE_3__.getDefaultOUIAId)(Chip.displayName)
        };
    }
    componentDidMount() {
        this.setState({
            isTooltipVisible: Boolean(this.span.current && this.span.current.offsetWidth < this.span.current.scrollWidth)
        });
    }
    renderInnerChip(id) {
        const { children, className, onClick, closeBtnAriaLabel, isReadOnly, component, ouiaId } = this.props;
        const Component = component;
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Chip_chip__WEBPACK_IMPORTED_MODULE_2__["default"].chip, className) }, (this.state.isTooltipVisible && { tabIndex: 0 }), (0,_helpers__WEBPACK_IMPORTED_MODULE_3__.getOUIAProps)(Chip.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId)),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { ref: this.span, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Chip_chip__WEBPACK_IMPORTED_MODULE_2__["default"].chipText), id: id }, children),
            !isReadOnly && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_5__.Button, { onClick: onClick, variant: "plain", "aria-label": closeBtnAriaLabel, id: `remove_${id}`, "aria-labelledby": `remove_${id} ${id}`, ouiaId: ouiaId || closeBtnAriaLabel },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_times_icon__WEBPACK_IMPORTED_MODULE_6__["default"], { "aria-hidden": "true" })))));
    }
    render() {
        const { isOverflowChip } = this.props;
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_helpers_GenerateId_GenerateId__WEBPACK_IMPORTED_MODULE_7__.GenerateId, null, randomId => (isOverflowChip ? this.renderOverflowChip() : this.renderChip(this.props.id || randomId))));
    }
}
Chip.displayName = 'Chip';
Chip.defaultProps = {
    closeBtnAriaLabel: 'close',
    className: '',
    isOverflowChip: false,
    isReadOnly: false,
    tooltipPosition: 'top',
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    onClick: (_e) => undefined,
    component: 'div'
};
//# sourceMappingURL=Chip.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/ChipGroup/ChipGroup.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/ChipGroup/ChipGroup.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ChipGroup": () => (/* binding */ ChipGroup)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_ChipGroup_chip_group__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/ChipGroup/chip-group */ "./node_modules/@patternfly/react-styles/css/components/ChipGroup/chip-group.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _Chip__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Chip */ "./node_modules/@patternfly/react-core/dist/esm/components/ChipGroup/Chip.js");
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Tooltip */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_times_circle_icon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/times-circle-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/times-circle-icon.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");
/* harmony import */ var _helpers_GenerateId_GenerateId__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../helpers/GenerateId/GenerateId */ "./node_modules/@patternfly/react-core/dist/esm/helpers/GenerateId/GenerateId.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");











class ChipGroup extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor(props) {
        super(props);
        this.headingRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.toggleCollapse = () => {
            this.setState(prevState => ({
                isOpen: !prevState.isOpen,
                isTooltipVisible: Boolean(this.headingRef.current && this.headingRef.current.offsetWidth < this.headingRef.current.scrollWidth)
            }));
        };
        this.state = {
            isOpen: this.props.defaultIsOpen,
            isTooltipVisible: false
        };
    }
    componentDidMount() {
        this.setState({
            isTooltipVisible: Boolean(this.headingRef.current && this.headingRef.current.offsetWidth < this.headingRef.current.scrollWidth)
        });
    }
    renderLabel(id) {
        const { categoryName, tooltipPosition } = this.props;
        const { isTooltipVisible } = this.state;
        return isTooltipVisible ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Tooltip__WEBPACK_IMPORTED_MODULE_1__.Tooltip, { position: tooltipPosition, content: categoryName },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { tabIndex: 0, ref: this.headingRef, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ChipGroup_chip_group__WEBPACK_IMPORTED_MODULE_3__["default"].chipGroupLabel), id: id, "aria-label": categoryName },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { "aria-hidden": "true" }, categoryName)))) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { ref: this.headingRef, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ChipGroup_chip_group__WEBPACK_IMPORTED_MODULE_3__["default"].chipGroupLabel), "aria-hidden": "true", id: id }, categoryName));
    }
    render() {
        const _a = this.props, { categoryName, children, className, isClosable, closeBtnAriaLabel, 'aria-label': ariaLabel, onClick, onOverflowChipClick, numChips, expandedText, collapsedText, ouiaId, 
        /* eslint-disable @typescript-eslint/no-unused-vars */
        defaultIsOpen, tooltipPosition } = _a, 
        /* eslint-enable @typescript-eslint/no-unused-vars */
        rest = (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__rest)(_a, ["categoryName", "children", "className", "isClosable", "closeBtnAriaLabel", 'aria-label', "onClick", "onOverflowChipClick", "numChips", "expandedText", "collapsedText", "ouiaId", "defaultIsOpen", "tooltipPosition"]);
        const { isOpen } = this.state;
        const numChildren = react__WEBPACK_IMPORTED_MODULE_0__.Children.count(children);
        const collapsedTextResult = (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.fillTemplate)(collapsedText, {
            remaining: react__WEBPACK_IMPORTED_MODULE_0__.Children.count(children) - numChips
        });
        const renderChipGroup = (id) => {
            const chipArray = !isOpen
                ? react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(children).slice(0, numChips)
                : react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(children);
            return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ChipGroup_chip_group__WEBPACK_IMPORTED_MODULE_3__["default"].chipGroup, className, categoryName && _patternfly_react_styles_css_components_ChipGroup_chip_group__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.category) }, (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.getOUIAProps)(ChipGroup.displayName, ouiaId)),
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ChipGroup_chip_group__WEBPACK_IMPORTED_MODULE_3__["default"].chipGroupMain) },
                    categoryName && this.renderLabel(id),
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement("ul", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ChipGroup_chip_group__WEBPACK_IMPORTED_MODULE_3__["default"].chipGroupList) }, (categoryName && { 'aria-labelledby': id }), (!categoryName && { 'aria-label': ariaLabel }), { role: "list" }, rest),
                        chipArray.map((child, i) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ChipGroup_chip_group__WEBPACK_IMPORTED_MODULE_3__["default"].chipGroupListItem), key: i }, child))),
                        numChildren > numChips && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ChipGroup_chip_group__WEBPACK_IMPORTED_MODULE_3__["default"].chipGroupListItem) },
                            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Chip__WEBPACK_IMPORTED_MODULE_7__.Chip, { isOverflowChip: true, onClick: event => {
                                    this.toggleCollapse();
                                    onOverflowChipClick(event);
                                }, component: "button" }, isOpen ? expandedText : collapsedTextResult))))),
                isClosable && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ChipGroup_chip_group__WEBPACK_IMPORTED_MODULE_3__["default"].chipGroupClose) },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_8__.Button, { variant: "plain", "aria-label": closeBtnAriaLabel, onClick: onClick, id: `remove_group_${id}`, "aria-labelledby": `remove_group_${id} ${id}`, ouiaId: ouiaId || closeBtnAriaLabel },
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_times_circle_icon__WEBPACK_IMPORTED_MODULE_9__["default"], { "aria-hidden": "true" }))))));
        };
        return numChildren === 0 ? null : react__WEBPACK_IMPORTED_MODULE_0__.createElement(_helpers_GenerateId_GenerateId__WEBPACK_IMPORTED_MODULE_10__.GenerateId, null, randomId => renderChipGroup(this.props.id || randomId));
    }
}
ChipGroup.displayName = 'ChipGroup';
ChipGroup.defaultProps = {
    expandedText: 'Show Less',
    collapsedText: '${remaining} more',
    categoryName: '',
    defaultIsOpen: false,
    numChips: 3,
    isClosable: false,
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    onClick: (_e) => undefined,
    onOverflowChipClick: (_e) => undefined,
    closeBtnAriaLabel: 'Close chip group',
    tooltipPosition: 'top',
    'aria-label': 'Chip group category'
};
//# sourceMappingURL=ChipGroup.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/ClipboardCopy/ClipboardCopy.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/ClipboardCopy/ClipboardCopy.js ***!
  \************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "clipboardCopyFunc": () => (/* binding */ clipboardCopyFunc),
/* harmony export */   "ClipboardCopyVariant": () => (/* binding */ ClipboardCopyVariant),
/* harmony export */   "ClipboardCopy": () => (/* binding */ ClipboardCopy)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_ClipboardCopy_clipboard_copy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/ClipboardCopy/clipboard-copy */ "./node_modules/@patternfly/react-styles/css/components/ClipboardCopy/clipboard-copy.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _TextInput__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../TextInput */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Tooltip */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js");
/* harmony import */ var _helpers_GenerateId_GenerateId__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/GenerateId/GenerateId */ "./node_modules/@patternfly/react-core/dist/esm/helpers/GenerateId/GenerateId.js");
/* harmony import */ var _ClipboardCopyButton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ClipboardCopyButton */ "./node_modules/@patternfly/react-core/dist/esm/components/ClipboardCopy/ClipboardCopyButton.js");
/* harmony import */ var _ClipboardCopyToggle__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ClipboardCopyToggle */ "./node_modules/@patternfly/react-core/dist/esm/components/ClipboardCopy/ClipboardCopyToggle.js");
/* harmony import */ var _ClipboardCopyExpanded__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ClipboardCopyExpanded */ "./node_modules/@patternfly/react-core/dist/esm/components/ClipboardCopy/ClipboardCopyExpanded.js");










const clipboardCopyFunc = (event, text) => {
    const clipboard = event.currentTarget.parentElement;
    const el = document.createElement('textarea');
    el.value = text.toString();
    clipboard.appendChild(el);
    el.select();
    document.execCommand('copy');
    clipboard.removeChild(el);
};
var ClipboardCopyVariant;
(function (ClipboardCopyVariant) {
    ClipboardCopyVariant["inline"] = "inline";
    ClipboardCopyVariant["expansion"] = "expansion";
    ClipboardCopyVariant["inlineCompact"] = "inline-compact";
})(ClipboardCopyVariant || (ClipboardCopyVariant = {}));
class ClipboardCopy extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor(props) {
        super(props);
        this.timer = null;
        // eslint-disable-next-line @typescript-eslint/no-unused-vars
        this.componentDidUpdate = (prevProps, prevState) => {
            if (prevProps.children !== this.props.children) {
                this.updateText(this.props.children);
            }
        };
        // eslint-disable-next-line @typescript-eslint/no-unused-vars
        this.expandContent = (_event) => {
            this.setState(prevState => ({
                expanded: !prevState.expanded
            }));
        };
        this.updateText = (text) => {
            this.setState({ text });
            this.props.onChange(text);
        };
        this.render = () => {
            const _a = this.props, { 
            /* eslint-disable @typescript-eslint/no-unused-vars */
            isExpanded, onChange, // Don't pass to <div>
            /* eslint-enable @typescript-eslint/no-unused-vars */
            isReadOnly, isCode, isBlock, exitDelay, maxWidth, entryDelay, switchDelay, onCopy, hoverTip, clickTip, textAriaLabel, toggleAriaLabel, variant, position, className, additionalActions } = _a, divProps = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["isExpanded", "onChange", "isReadOnly", "isCode", "isBlock", "exitDelay", "maxWidth", "entryDelay", "switchDelay", "onCopy", "hoverTip", "clickTip", "textAriaLabel", "toggleAriaLabel", "variant", "position", "className", "additionalActions"]);
            const textIdPrefix = 'text-input-';
            const toggleIdPrefix = 'toggle-';
            const contentIdPrefix = 'content-';
            return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ClipboardCopy_clipboard_copy__WEBPACK_IMPORTED_MODULE_3__["default"].clipboardCopy, variant === 'inline-compact' && _patternfly_react_styles_css_components_ClipboardCopy_clipboard_copy__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.inline, isBlock && _patternfly_react_styles_css_components_ClipboardCopy_clipboard_copy__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.block, this.state.expanded && _patternfly_react_styles_css_components_ClipboardCopy_clipboard_copy__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.expanded, className) }, divProps),
                variant === 'inline-compact' && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_helpers_GenerateId_GenerateId__WEBPACK_IMPORTED_MODULE_4__.GenerateId, { prefix: "" }, id => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
                    !isCode && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ClipboardCopy_clipboard_copy__WEBPACK_IMPORTED_MODULE_3__["default"].clipboardCopyText), id: `${textIdPrefix}${id}` }, this.state.text)),
                    isCode && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("code", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ClipboardCopy_clipboard_copy__WEBPACK_IMPORTED_MODULE_3__["default"].clipboardCopyText, _patternfly_react_styles_css_components_ClipboardCopy_clipboard_copy__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.code), id: `${textIdPrefix}${id}` }, this.state.text)),
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ClipboardCopy_clipboard_copy__WEBPACK_IMPORTED_MODULE_3__["default"].clipboardCopyActions) },
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ClipboardCopy_clipboard_copy__WEBPACK_IMPORTED_MODULE_3__["default"].clipboardCopyActionsItem) },
                            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ClipboardCopyButton__WEBPACK_IMPORTED_MODULE_5__.ClipboardCopyButton, { variant: "plain", exitDelay: exitDelay, entryDelay: entryDelay, maxWidth: maxWidth, position: position, id: `copy-button-${id}`, textId: `text-input-${id}`, "aria-label": hoverTip, onClick: (event) => {
                                    if (this.timer) {
                                        window.clearTimeout(this.timer);
                                        this.setState({ copied: false });
                                    }
                                    onCopy(event, this.state.text);
                                    this.setState({ copied: true }, () => {
                                        this.timer = window.setTimeout(() => {
                                            this.setState({ copied: false });
                                            this.timer = null;
                                        }, switchDelay);
                                    });
                                } }, this.state.copied ? clickTip : hoverTip)),
                        additionalActions && additionalActions))))),
                variant !== 'inline-compact' && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_helpers_GenerateId_GenerateId__WEBPACK_IMPORTED_MODULE_4__.GenerateId, { prefix: "" }, id => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ClipboardCopy_clipboard_copy__WEBPACK_IMPORTED_MODULE_3__["default"].clipboardCopyGroup) },
                        variant === 'expansion' && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ClipboardCopyToggle__WEBPACK_IMPORTED_MODULE_6__.ClipboardCopyToggle, { isExpanded: this.state.expanded, onClick: this.expandContent, id: `${toggleIdPrefix}${id}`, textId: `${textIdPrefix}${id}`, contentId: `${contentIdPrefix}${id}`, "aria-label": toggleAriaLabel })),
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TextInput__WEBPACK_IMPORTED_MODULE_7__.TextInput, { isReadOnly: isReadOnly || this.state.expanded, onChange: this.updateText, value: this.state.text, id: `text-input-${id}`, "aria-label": textAriaLabel }),
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ClipboardCopyButton__WEBPACK_IMPORTED_MODULE_5__.ClipboardCopyButton, { exitDelay: exitDelay, entryDelay: entryDelay, maxWidth: maxWidth, position: position, id: `copy-button-${id}`, textId: `text-input-${id}`, "aria-label": hoverTip, onClick: (event) => {
                                if (this.timer) {
                                    window.clearTimeout(this.timer);
                                    this.setState({ copied: false });
                                }
                                onCopy(event, this.state.text);
                                this.setState({ copied: true }, () => {
                                    this.timer = window.setTimeout(() => {
                                        this.setState({ copied: false });
                                        this.timer = null;
                                    }, switchDelay);
                                });
                            } }, this.state.copied ? clickTip : hoverTip)),
                    this.state.expanded && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ClipboardCopyExpanded__WEBPACK_IMPORTED_MODULE_8__.ClipboardCopyExpanded, { isReadOnly: isReadOnly, isCode: isCode, id: `content-${id}`, onChange: this.updateText }, this.state.text))))))));
        };
        this.state = {
            text: this.props.children,
            expanded: this.props.isExpanded,
            copied: false
        };
    }
}
ClipboardCopy.displayName = 'ClipboardCopy';
ClipboardCopy.defaultProps = {
    hoverTip: 'Copy to clipboard',
    clickTip: 'Successfully copied to clipboard!',
    isReadOnly: false,
    isExpanded: false,
    isCode: false,
    variant: 'inline',
    position: _Tooltip__WEBPACK_IMPORTED_MODULE_9__.TooltipPosition.top,
    maxWidth: '150px',
    exitDelay: 1600,
    entryDelay: 300,
    switchDelay: 2000,
    onCopy: clipboardCopyFunc,
    onChange: () => undefined,
    textAriaLabel: 'Copyable input',
    toggleAriaLabel: 'Show content',
    additionalActions: null
};
//# sourceMappingURL=ClipboardCopy.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/ClipboardCopy/ClipboardCopyButton.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/ClipboardCopy/ClipboardCopyButton.js ***!
  \******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ClipboardCopyButton": () => (/* binding */ ClipboardCopyButton)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_copy_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/copy-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/copy-icon.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Tooltip */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js");





const ClipboardCopyButton = (_a) => {
    var { onClick, exitDelay = 0, entryDelay = 300, maxWidth = '100px', position = 'top', 'aria-label': ariaLabel = 'Copyable input', id, textId, children, variant = 'control' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["onClick", "exitDelay", "entryDelay", "maxWidth", "position", 'aria-label', "id", "textId", "children", "variant"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Tooltip__WEBPACK_IMPORTED_MODULE_2__.Tooltip, { trigger: "mouseenter focus click", exitDelay: exitDelay, entryDelay: entryDelay, maxWidth: maxWidth, position: position, content: react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, children) },
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__.Button, Object.assign({ type: "button", variant: variant, onClick: onClick, "aria-label": ariaLabel, id: id, "aria-labelledby": `${id} ${textId}` }, props),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_copy_icon__WEBPACK_IMPORTED_MODULE_4__["default"], null))));
};
ClipboardCopyButton.displayName = 'ClipboardCopyButton';
//# sourceMappingURL=ClipboardCopyButton.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/ClipboardCopy/ClipboardCopyExpanded.js":
/*!********************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/ClipboardCopy/ClipboardCopyExpanded.js ***!
  \********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ClipboardCopyExpanded": () => (/* binding */ ClipboardCopyExpanded)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_ClipboardCopy_clipboard_copy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/ClipboardCopy/clipboard-copy */ "./node_modules/@patternfly/react-styles/css/components/ClipboardCopy/clipboard-copy.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");




class ClipboardCopyExpanded extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor(props) {
        super(props);
    }
    render() {
        const _a = this.props, { className, children, onChange, isReadOnly, isCode } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "children", "onChange", "isReadOnly", "isCode"]);
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ suppressContentEditableWarning: true, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ClipboardCopy_clipboard_copy__WEBPACK_IMPORTED_MODULE_3__["default"].clipboardCopyExpandableContent, className), onInput: (e) => onChange(e.target.innerText, e), contentEditable: !isReadOnly }, props), isCode ? react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre", null, children) : children));
    }
}
ClipboardCopyExpanded.displayName = 'ClipboardCopyExpanded';
ClipboardCopyExpanded.defaultProps = {
    onChange: () => undefined,
    className: '',
    isReadOnly: false,
    isCode: false
};
//# sourceMappingURL=ClipboardCopyExpanded.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/ClipboardCopy/ClipboardCopyToggle.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/ClipboardCopy/ClipboardCopyToggle.js ***!
  \******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ClipboardCopyToggle": () => (/* binding */ ClipboardCopyToggle)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-right-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-right-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_down_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-down-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-down-icon.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");





const ClipboardCopyToggle = (_a) => {
    var { onClick, id, textId, contentId, isExpanded = false } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["onClick", "id", "textId", "contentId", "isExpanded"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_2__.Button, Object.assign({ type: "button", variant: "control", onClick: onClick, id: id, "aria-labelledby": `${id} ${textId}`, "aria-controls": `${id} ${contentId}`, "aria-expanded": isExpanded }, props), isExpanded ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_down_icon__WEBPACK_IMPORTED_MODULE_3__["default"], { "aria-hidden": "true" }) : react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_4__["default"], { "aria-hidden": "true" })));
};
ClipboardCopyToggle.displayName = 'ClipboardCopyToggle';
//# sourceMappingURL=ClipboardCopyToggle.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Divider/Divider.js":
/*!************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Divider/Divider.js ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DividerVariant": () => (/* binding */ DividerVariant),
/* harmony export */   "Divider": () => (/* binding */ Divider)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Divider_divider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Divider/divider */ "./node_modules/@patternfly/react-styles/css/components/Divider/divider.js");
/* harmony import */ var _helpers_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/util */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");





var DividerVariant;
(function (DividerVariant) {
    DividerVariant["hr"] = "hr";
    DividerVariant["li"] = "li";
    DividerVariant["div"] = "div";
})(DividerVariant || (DividerVariant = {}));
const Divider = (_a) => {
    var { className, component = DividerVariant.hr, isVertical = false, inset } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "component", "isVertical", "inset"]);
    const Component = component;
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Divider_divider__WEBPACK_IMPORTED_MODULE_3__["default"].divider, isVertical && _patternfly_react_styles_css_components_Divider_divider__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.vertical, (0,_helpers_util__WEBPACK_IMPORTED_MODULE_4__.formatBreakpointMods)(inset, _patternfly_react_styles_css_components_Divider_divider__WEBPACK_IMPORTED_MODULE_3__["default"]), className) }, (component !== 'hr' && { role: 'separator' }), props)));
};
Divider.displayName = 'Divider';
//# sourceMappingURL=Divider.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Drawer/Drawer.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Drawer/Drawer.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DrawerColorVariant": () => (/* binding */ DrawerColorVariant),
/* harmony export */   "DrawerContext": () => (/* binding */ DrawerContext),
/* harmony export */   "Drawer": () => (/* binding */ Drawer)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Drawer/drawer */ "./node_modules/@patternfly/react-styles/css/components/Drawer/drawer.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");




var DrawerColorVariant;
(function (DrawerColorVariant) {
    DrawerColorVariant["default"] = "default";
    DrawerColorVariant["light200"] = "light-200";
})(DrawerColorVariant || (DrawerColorVariant = {}));
const DrawerContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext({
    isExpanded: false,
    isStatic: false,
    onExpand: () => { },
    position: 'right',
    drawerRef: null
});
const Drawer = (_a) => {
    var { className = '', children, isExpanded = false, isInline = false, isStatic = false, position = 'right', onExpand = () => { } } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "children", "isExpanded", "isInline", "isStatic", "position", "onExpand"]);
    const drawerRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef();
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(DrawerContext.Provider, { value: { isExpanded, isStatic, onExpand, position, drawerRef } },
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_3__["default"].drawer, isExpanded && _patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.expanded, isInline && _patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.inline, isStatic && _patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers["static"], position === 'left' && _patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.panelLeft, position === 'bottom' && _patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.panelBottom, className), ref: drawerRef }, props), children)));
};
Drawer.displayName = 'Drawer';
//# sourceMappingURL=Drawer.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerActions.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerActions.js ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DrawerActions": () => (/* binding */ DrawerActions)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Drawer/drawer */ "./node_modules/@patternfly/react-styles/css/components/Drawer/drawer.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");




const DrawerActions = (_a) => {
    var { 
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    className = '', children } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "children"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_3__["default"].drawerActions, className) }, props), children));
};
DrawerActions.displayName = 'DrawerActions';
//# sourceMappingURL=DrawerActions.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerCloseButton.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerCloseButton.js ***!
  \*********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DrawerCloseButton": () => (/* binding */ DrawerCloseButton)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Drawer/drawer */ "./node_modules/@patternfly/react-styles/css/components/Drawer/drawer.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_times_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/times-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/times-icon.js");






const DrawerCloseButton = (_a) => {
    var { 
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    className = '', onClose = () => undefined, 'aria-label': ariaLabel = 'Close drawer panel' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "onClose", 'aria-label']);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_3__["default"].drawerClose, className) }, props),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_4__.Button, { variant: "plain", onClick: onClose, "aria-label": ariaLabel },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_times_icon__WEBPACK_IMPORTED_MODULE_5__["default"], null))));
};
DrawerCloseButton.displayName = 'DrawerCloseButton';
//# sourceMappingURL=DrawerCloseButton.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerContent.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerContent.js ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DrawerContent": () => (/* binding */ DrawerContent)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Drawer/drawer */ "./node_modules/@patternfly/react-styles/css/components/Drawer/drawer.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _DrawerMain__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DrawerMain */ "./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerMain.js");
/* harmony import */ var _Drawer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Drawer */ "./node_modules/@patternfly/react-core/dist/esm/components/Drawer/Drawer.js");






const DrawerContent = (_a) => {
    var { 
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    className = '', children, panelContent, colorVariant = _Drawer__WEBPACK_IMPORTED_MODULE_1__.DrawerColorVariant["default"] } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["className", "children", "panelContent", "colorVariant"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_DrawerMain__WEBPACK_IMPORTED_MODULE_3__.DrawerMain, null,
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_5__["default"].drawerContent, colorVariant === _Drawer__WEBPACK_IMPORTED_MODULE_1__.DrawerColorVariant.light200 && _patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.light_200, className) }, props), children),
        panelContent));
};
DrawerContent.displayName = 'DrawerContent';
//# sourceMappingURL=DrawerContent.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerContentBody.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerContentBody.js ***!
  \*********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DrawerContentBody": () => (/* binding */ DrawerContentBody)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Drawer/drawer */ "./node_modules/@patternfly/react-styles/css/components/Drawer/drawer.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");




const DrawerContentBody = (_a) => {
    var { 
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    className = '', children, hasPadding = false } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "children", "hasPadding"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_3__["default"].drawerBody, hasPadding && _patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.padding, className) }, props), children));
};
DrawerContentBody.displayName = 'DrawerContentBody';
//# sourceMappingURL=DrawerContentBody.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerHead.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerHead.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DrawerHead": () => (/* binding */ DrawerHead)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Drawer/drawer */ "./node_modules/@patternfly/react-styles/css/components/Drawer/drawer.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _DrawerPanelBody__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DrawerPanelBody */ "./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerPanelBody.js");





const DrawerHead = (_a) => {
    var { 
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    className = '', children, hasNoPadding = false } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "children", "hasNoPadding"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_DrawerPanelBody__WEBPACK_IMPORTED_MODULE_2__.DrawerPanelBody, { hasNoPadding: hasNoPadding },
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_4__["default"].drawerHead, className) }, props), children)));
};
DrawerHead.displayName = 'DrawerHead';
//# sourceMappingURL=DrawerHead.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerMain.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerMain.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DrawerMain": () => (/* binding */ DrawerMain)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Drawer/drawer */ "./node_modules/@patternfly/react-styles/css/components/Drawer/drawer.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");




const DrawerMain = (_a) => {
    var { 
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    className = '', children } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "children"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_3__["default"].drawerMain, className) }, props), children));
};
DrawerMain.displayName = 'DrawerMain';
//# sourceMappingURL=DrawerMain.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerPanelBody.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerPanelBody.js ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DrawerPanelBody": () => (/* binding */ DrawerPanelBody)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Drawer/drawer */ "./node_modules/@patternfly/react-styles/css/components/Drawer/drawer.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");




const DrawerPanelBody = (_a) => {
    var { 
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    className = '', children, hasNoPadding = false } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "children", "hasNoPadding"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_3__["default"].drawerBody, hasNoPadding && _patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.noPadding, className) }, props), children));
};
DrawerPanelBody.displayName = 'DrawerPanelBody';
//# sourceMappingURL=DrawerPanelBody.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerPanelContent.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerPanelContent.js ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DrawerPanelContent": () => (/* binding */ DrawerPanelContent)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Drawer/drawer */ "./node_modules/@patternfly/react-styles/css/components/Drawer/drawer.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _Drawer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Drawer */ "./node_modules/@patternfly/react-core/dist/esm/components/Drawer/Drawer.js");
/* harmony import */ var _helpers_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers/util */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");






let isResizing = null;
let newSize = 0;
const DrawerPanelContent = (_a) => {
    var { className = '', id, children, hasNoBorder = false, isResizable = false, onResize, minSize, defaultSize, maxSize, increment = 5, resizeAriaLabel = 'Resize', resizeAriaDescribedBy = 'Press space to begin resizing, and use the arrow keys to grow or shrink the panel. Press enter or escape to finish resizing.', widths, colorVariant = _Drawer__WEBPACK_IMPORTED_MODULE_1__.DrawerColorVariant["default"] } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["className", "id", "children", "hasNoBorder", "isResizable", "onResize", "minSize", "defaultSize", "maxSize", "increment", "resizeAriaLabel", "resizeAriaDescribedBy", "widths", "colorVariant"]);
    const panel = react__WEBPACK_IMPORTED_MODULE_0__.useRef();
    const { position, isExpanded, isStatic, onExpand, drawerRef } = react__WEBPACK_IMPORTED_MODULE_0__.useContext(_Drawer__WEBPACK_IMPORTED_MODULE_1__.DrawerContext);
    const hidden = isStatic ? false : !isExpanded;
    const [isExpandedInternal, setIsExpandedInternal] = react__WEBPACK_IMPORTED_MODULE_0__.useState(!hidden);
    let currWidth = 0;
    let panelRect;
    let right;
    let left;
    let bottom;
    let setInitialVals = true;
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        if (!isStatic && isExpanded) {
            setIsExpandedInternal(isExpanded);
        }
    }, [isStatic, isExpanded]);
    const handleTouchStart = (e) => {
        e.stopPropagation();
        document.addEventListener('touchmove', callbackTouchMove, { passive: false });
        document.addEventListener('touchend', callbackTouchEnd);
        isResizing = true;
    };
    const handleMousedown = (e) => {
        e.stopPropagation();
        e.preventDefault();
        document.addEventListener('mousemove', callbackMouseMove);
        document.addEventListener('mouseup', callbackMouseUp);
        drawerRef.current.classList.add((0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.resizing));
        isResizing = true;
        setInitialVals = true;
    };
    const handleMouseMove = (e) => {
        const mousePos = position === 'bottom' ? e.clientY : e.clientX;
        handleControlMove(e, mousePos);
    };
    const handleTouchMove = (e) => {
        e.preventDefault();
        e.stopImmediatePropagation();
        const touchPos = position === 'bottom' ? e.touches[0].clientY : e.touches[0].clientX;
        handleControlMove(e, touchPos);
    };
    const handleControlMove = (e, controlPosition) => {
        e.stopPropagation();
        if (!isResizing) {
            return;
        }
        if (setInitialVals) {
            panelRect = panel.current.getBoundingClientRect();
            right = panelRect.right;
            left = panelRect.left;
            bottom = panelRect.bottom;
            setInitialVals = false;
        }
        const mousePos = controlPosition;
        let newSize = 0;
        if (position === 'right') {
            newSize = right - mousePos;
        }
        else if (position === 'left') {
            newSize = mousePos - left;
        }
        else {
            newSize = bottom - mousePos;
        }
        if (position === 'bottom') {
            panel.current.style.overflowAnchor = 'none';
        }
        panel.current.style.setProperty('--pf-c-drawer__panel--md--FlexBasis', newSize + 'px');
        currWidth = newSize;
    };
    const handleMouseup = () => {
        if (!isResizing) {
            return;
        }
        drawerRef.current.classList.remove((0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.resizing));
        isResizing = false;
        onResize && onResize(currWidth, id);
        setInitialVals = true;
        document.removeEventListener('mousemove', callbackMouseMove);
        document.removeEventListener('mouseup', callbackMouseUp);
    };
    const handleTouchEnd = (e) => {
        e.stopPropagation();
        if (!isResizing) {
            return;
        }
        isResizing = false;
        onResize && onResize(currWidth, id);
        document.removeEventListener('touchmove', callbackTouchMove);
        document.removeEventListener('touchend', callbackTouchEnd);
    };
    const callbackMouseMove = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(handleMouseMove, []);
    const callbackTouchEnd = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(handleTouchEnd, []);
    const callbackTouchMove = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(handleTouchMove, []);
    const callbackMouseUp = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(handleMouseup, []);
    const handleKeys = (e) => {
        const key = e.key;
        if (key !== ' ' &&
            key !== 'Escape' &&
            key !== 'Enter' &&
            key !== 'ArrowUp' &&
            key !== 'ArrowDown' &&
            key !== 'ArrowLeft' &&
            key !== 'ArrowRight') {
            if (isResizing) {
                e.preventDefault();
            }
            return;
        }
        e.preventDefault();
        if (key === ' ' || key === 'Escape' || key === 'Enter') {
            if (key === ' ') {
                isResizing = true;
            }
            else {
                isResizing = false;
                onResize && onResize(currWidth, id);
            }
            const panelRect = panel.current.getBoundingClientRect();
            newSize = position === 'bottom' ? panelRect.height : panelRect.width;
        }
        if (isResizing) {
            let delta = 0;
            if (key === 'ArrowRight') {
                delta = position === 'left' ? increment : -increment;
            }
            else if (key === 'ArrowLeft') {
                delta = position === 'left' ? -increment : increment;
            }
            else if (key === 'ArrowUp') {
                delta = increment;
            }
            else if (key === 'ArrowDown') {
                delta = -increment;
            }
            newSize = newSize + delta;
            if (position === 'bottom') {
                panel.current.style.overflowAnchor = 'none';
            }
            panel.current.style.setProperty('--pf-c-drawer__panel--md--FlexBasis', newSize + 'px');
            currWidth = newSize;
        }
    };
    const boundaryCssVars = {};
    if (defaultSize) {
        boundaryCssVars['--pf-c-drawer__panel--md--FlexBasis'] = defaultSize;
    }
    if (minSize) {
        boundaryCssVars['--pf-c-drawer__panel--md--FlexBasis--min'] = minSize;
    }
    if (maxSize) {
        boundaryCssVars['--pf-c-drawer__panel--md--FlexBasis--max'] = maxSize;
    }
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ id: id, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_4__["default"].drawerPanel, isResizable && _patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.resizable, hasNoBorder && _patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.noBorder, (0,_helpers_util__WEBPACK_IMPORTED_MODULE_5__.formatBreakpointMods)(widths, _patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_4__["default"]), colorVariant === _Drawer__WEBPACK_IMPORTED_MODULE_1__.DrawerColorVariant.light200 && _patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.light_200, className), ref: panel, onTransitionEnd: ev => {
            if (!hidden && ev.nativeEvent.propertyName === 'transform') {
                onExpand();
            }
            setIsExpandedInternal(!hidden);
        }, hidden: hidden }, ((defaultSize || minSize || maxSize) && {
        style: boundaryCssVars
    }), props), isExpandedInternal && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
        isResizable && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_4__["default"].drawerSplitter, position !== 'bottom' && _patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.vertical), role: "separator", tabIndex: 0, "aria-orientation": position === 'bottom' ? 'horizontal' : 'vertical', "aria-label": resizeAriaLabel, "aria-describedby": resizeAriaDescribedBy, onMouseDown: handleMousedown, onKeyDown: handleKeys, onTouchStart: handleTouchStart },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_4__["default"].drawerSplitterHandle), "aria-hidden": true })),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Drawer_drawer__WEBPACK_IMPORTED_MODULE_4__["default"].drawerPanelMain) }, children))),
        !isResizable && children))));
};
DrawerPanelContent.displayName = 'DrawerPanelContent';
//# sourceMappingURL=DrawerPanelContent.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/BadgeToggle.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/BadgeToggle.js ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "BadgeToggle": () => (/* binding */ BadgeToggle)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Dropdown/dropdown */ "./node_modules/@patternfly/react-styles/css/components/Dropdown/dropdown.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_caret_down_icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/caret-down-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/caret-down-icon.js");
/* harmony import */ var _Toggle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Toggle */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/Toggle.js");
/* harmony import */ var _Badge__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Badge */ "./node_modules/@patternfly/react-core/dist/esm/components/Badge/Badge.js");







const BadgeToggle = (_a) => {
    var { id = '', children = null, badgeProps = { isRead: true }, className = '', isOpen = false, 'aria-label': ariaLabel = 'Actions', parentRef = null, getMenuRef = null, isActive = false, isPlain = null, isDisabled = false, bubbleEvent = false, onToggle = () => undefined, 
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    ref } = _a, // Types of Ref are different for React.FC vs React.Component
    props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["id", "children", "badgeProps", "className", "isOpen", 'aria-label', "parentRef", "getMenuRef", "isActive", "isPlain", "isDisabled", "bubbleEvent", "onToggle", "ref"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Toggle__WEBPACK_IMPORTED_MODULE_2__.Toggle, Object.assign({ id: id, className: className, isOpen: isOpen, "aria-label": ariaLabel, parentRef: parentRef, getMenuRef: getMenuRef, isActive: isActive, isPlain: isPlain || true, isDisabled: isDisabled, onToggle: onToggle, bubbleEvent: bubbleEvent }, props),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Badge__WEBPACK_IMPORTED_MODULE_3__.Badge, Object.assign({}, badgeProps),
            children,
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_5__["default"].dropdownToggleIcon) },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_caret_down_icon__WEBPACK_IMPORTED_MODULE_6__["default"], null)))));
};
BadgeToggle.displayName = 'BadgeToggle';
//# sourceMappingURL=BadgeToggle.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/Dropdown.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/Dropdown.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Dropdown": () => (/* binding */ Dropdown)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Dropdown/dropdown */ "./node_modules/@patternfly/react-styles/css/components/Dropdown/dropdown.js");
/* harmony import */ var _dropdownConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dropdownConstants */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/dropdownConstants.js");
/* harmony import */ var _DropdownWithContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./DropdownWithContext */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownWithContext.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");






const Dropdown = (_a) => {
    var { onSelect, 
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    ref, // Types of Ref are different for React.FC vs React.Component
    ouiaId, ouiaSafe, alignments, contextProps } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["onSelect", "ref", "ouiaId", "ouiaSafe", "alignments", "contextProps"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_dropdownConstants__WEBPACK_IMPORTED_MODULE_2__.DropdownContext.Provider, { value: Object.assign({ onSelect: event => onSelect && onSelect(event), toggleTextClass: _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_3__["default"].dropdownToggleText, toggleIconClass: _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_3__["default"].dropdownToggleImage, toggleIndicatorClass: _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_3__["default"].dropdownToggleIcon, menuClass: _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_3__["default"].dropdownMenu, itemClass: _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_3__["default"].dropdownMenuItem, toggleClass: _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_3__["default"].dropdownToggle, baseClass: _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_3__["default"].dropdown, baseComponent: 'div', sectionClass: _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_3__["default"].dropdownGroup, sectionTitleClass: _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_3__["default"].dropdownGroupTitle, sectionComponent: 'section', disabledClass: _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.disabled, plainTextClass: _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.text, ouiaId: (0,_helpers__WEBPACK_IMPORTED_MODULE_4__.useOUIAId)(Dropdown.displayName, ouiaId), ouiaSafe, ouiaComponentType: Dropdown.displayName, alignments }, contextProps) },
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_DropdownWithContext__WEBPACK_IMPORTED_MODULE_5__.DropdownWithContext, Object.assign({}, props))));
};
Dropdown.displayName = 'Dropdown';
//# sourceMappingURL=Dropdown.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownItem.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownItem.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DropdownItem": () => (/* binding */ DropdownItem)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _InternalDropdownItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./InternalDropdownItem */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/InternalDropdownItem.js");
/* harmony import */ var _dropdownConstants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./dropdownConstants */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/dropdownConstants.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");





const DropdownItem = (_a) => {
    var { children, className, component = 'a', isDisabled = false, isAriaDisabled = false, isPlainText = false, isHovered = false, href, tooltip, tooltipProps = {}, listItemClassName, onClick, 
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    ref, // Types of Ref are different for React.FC vs React.Component
    additionalChild, customChild, tabIndex = -1, icon = null, autoFocus, description = null, styleChildren, ouiaId, ouiaSafe } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "component", "isDisabled", "isAriaDisabled", "isPlainText", "isHovered", "href", "tooltip", "tooltipProps", "listItemClassName", "onClick", "ref", "additionalChild", "customChild", "tabIndex", "icon", "autoFocus", "description", "styleChildren", "ouiaId", "ouiaSafe"]);
    const ouiaProps = (0,_helpers__WEBPACK_IMPORTED_MODULE_2__.useOUIAProps)(DropdownItem.displayName, ouiaId, ouiaSafe);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_dropdownConstants__WEBPACK_IMPORTED_MODULE_3__.DropdownArrowContext.Consumer, null, context => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_InternalDropdownItem__WEBPACK_IMPORTED_MODULE_4__.InternalDropdownItem, Object.assign({ context: context, role: "menuitem", tabIndex: tabIndex, className: className, component: component, isDisabled: isDisabled, isAriaDisabled: isAriaDisabled, isPlainText: isPlainText, isHovered: isHovered, href: href, tooltip: tooltip, tooltipProps: tooltipProps, listItemClassName: listItemClassName, onClick: onClick, additionalChild: additionalChild, customChild: customChild, icon: icon, autoFocus: autoFocus, styleChildren: styleChildren, description: description }, ouiaProps, props), children))));
};
DropdownItem.displayName = 'DropdownItem';
//# sourceMappingURL=DropdownItem.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownMenu.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownMenu.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DropdownMenu": () => (/* binding */ DropdownMenu)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Dropdown/dropdown */ "./node_modules/@patternfly/react-styles/css/components/Dropdown/dropdown.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _helpers_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/util */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");
/* harmony import */ var _dropdownConstants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./dropdownConstants */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/dropdownConstants.js");







class DropdownMenu extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor() {
        super(...arguments);
        this.refsCollection = [];
        this.componentWillUnmount = () => {
            document.removeEventListener('keydown', this.onKeyDown);
        };
        this.onKeyDown = (event) => {
            if (!this.props.isOpen ||
                !Array.from(document.activeElement.classList).find(className => DropdownMenu.validToggleClasses.concat(this.context.toggleClass).includes(className))) {
                return;
            }
            const refs = this.refsCollection;
            if (event.key === 'ArrowDown') {
                const firstFocusTargetCollection = refs.find(ref => ref && ref[0] && !ref[0].hasAttribute('disabled'));
                DropdownMenu.focusFirstRef(firstFocusTargetCollection);
                event.stopPropagation();
            }
            else if (event.key === 'ArrowUp') {
                const collectionLength = refs.length;
                const lastFocusTargetCollection = refs.slice(collectionLength - 1, collectionLength);
                const lastFocusTarget = lastFocusTargetCollection && lastFocusTargetCollection[0];
                DropdownMenu.focusFirstRef(lastFocusTarget);
                event.stopPropagation();
            }
        };
        this.childKeyHandler = (index, innerIndex, position, custom = false) => {
            (0,_helpers_util__WEBPACK_IMPORTED_MODULE_2__.keyHandler)(index, innerIndex, position, this.refsCollection, this.props.isGrouped ? this.refsCollection : react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(this.props.children), custom);
        };
        this.sendRef = (index, nodes, isDisabled, isSeparator) => {
            this.refsCollection[index] = [];
            nodes.map((node, innerIndex) => {
                if (!node) {
                    this.refsCollection[index][innerIndex] = null;
                }
                else if (!node.getAttribute) {
                    // eslint-disable-next-line react/no-find-dom-node
                    this.refsCollection[index][innerIndex] = react_dom__WEBPACK_IMPORTED_MODULE_1__.findDOMNode(node);
                }
                else if (isSeparator) {
                    this.refsCollection[index][innerIndex] = null;
                }
                else {
                    this.refsCollection[index][innerIndex] = node;
                }
            });
        };
    }
    componentDidMount() {
        document.addEventListener('keydown', this.onKeyDown);
        const { autoFocus } = this.props;
        if (autoFocus) {
            // Focus first non-disabled element
            const focusTargetCollection = this.refsCollection.find(ref => ref && ref[0] && !ref[0].hasAttribute('disabled'));
            const focusTarget = focusTargetCollection && focusTargetCollection[0];
            if (focusTarget && focusTarget.focus) {
                setTimeout(() => focusTarget.focus());
            }
        }
    }
    shouldComponentUpdate() {
        // reset refsCollection before updating to account for child removal between mounts
        this.refsCollection = [];
        return true;
    }
    extendChildren() {
        const { children, isGrouped } = this.props;
        if (isGrouped) {
            let index = 0;
            return react__WEBPACK_IMPORTED_MODULE_0__.Children.map(children, groupedChildren => {
                const group = groupedChildren;
                const props = {};
                if (group.props && group.props.children) {
                    if (Array.isArray(group.props.children)) {
                        props.children = react__WEBPACK_IMPORTED_MODULE_0__.Children.map(group.props.children, option => react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(option, {
                            index: index++
                        }));
                    }
                    else {
                        props.children = react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(group.props.children, {
                            index: index++
                        });
                    }
                }
                return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(group, props);
            });
        }
        return react__WEBPACK_IMPORTED_MODULE_0__.Children.map(children, (child, index) => react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(child, {
            index
        }));
    }
    render() {
        const _a = this.props, { className, isOpen, position, children, component, isGrouped, setMenuComponentRef, 
        // eslint-disable-next-line @typescript-eslint/no-unused-vars
        openedOnEnter, alignments } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_3__.__rest)(_a, ["className", "isOpen", "position", "children", "component", "isGrouped", "setMenuComponentRef", "openedOnEnter", "alignments"]);
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_dropdownConstants__WEBPACK_IMPORTED_MODULE_4__.DropdownArrowContext.Provider, { value: {
                keyHandler: this.childKeyHandler,
                sendRef: this.sendRef
            } }, component === 'div' ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_dropdownConstants__WEBPACK_IMPORTED_MODULE_4__.DropdownContext.Consumer, null, ({ onSelect, menuClass }) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__.css)(menuClass, position === _dropdownConstants__WEBPACK_IMPORTED_MODULE_4__.DropdownPosition.right && _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_6__["default"].modifiers.alignRight, (0,_helpers_util__WEBPACK_IMPORTED_MODULE_2__.formatBreakpointMods)(alignments, _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_6__["default"], 'align-'), className), hidden: !isOpen, onClick: event => onSelect && onSelect(event), ref: setMenuComponentRef }, children)))) : ((isGrouped && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_dropdownConstants__WEBPACK_IMPORTED_MODULE_4__.DropdownContext.Consumer, null, ({ menuClass, menuComponent }) => {
            const MenuComponent = (menuComponent || 'div');
            return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(MenuComponent, Object.assign({}, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__.css)(menuClass, position === _dropdownConstants__WEBPACK_IMPORTED_MODULE_4__.DropdownPosition.right && _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_6__["default"].modifiers.alignRight, (0,_helpers_util__WEBPACK_IMPORTED_MODULE_2__.formatBreakpointMods)(alignments, _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_6__["default"], 'align-'), className), hidden: !isOpen, role: "menu", ref: setMenuComponentRef }), this.extendChildren()));
        }))) || (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_dropdownConstants__WEBPACK_IMPORTED_MODULE_4__.DropdownContext.Consumer, null, ({ menuClass, menuComponent }) => {
            const MenuComponent = (menuComponent || component);
            return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(MenuComponent, Object.assign({}, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__.css)(menuClass, position === _dropdownConstants__WEBPACK_IMPORTED_MODULE_4__.DropdownPosition.right && _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_6__["default"].modifiers.alignRight, (0,_helpers_util__WEBPACK_IMPORTED_MODULE_2__.formatBreakpointMods)(alignments, _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_6__["default"], 'align-'), className), hidden: !isOpen, role: "menu", ref: setMenuComponentRef }), this.extendChildren()));
        })))));
    }
}
DropdownMenu.displayName = 'DropdownMenu';
DropdownMenu.defaultProps = {
    className: '',
    isOpen: true,
    openedOnEnter: false,
    autoFocus: true,
    position: _dropdownConstants__WEBPACK_IMPORTED_MODULE_4__.DropdownPosition.left,
    component: 'ul',
    isGrouped: false,
    setMenuComponentRef: null
};
DropdownMenu.validToggleClasses = [_patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_6__["default"].dropdownToggle, _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_6__["default"].dropdownToggleButton];
DropdownMenu.focusFirstRef = (refCollection) => {
    if (refCollection && refCollection[0] && refCollection[0].focus) {
        setTimeout(() => refCollection[0].focus());
    }
};
DropdownMenu.contextType = _dropdownConstants__WEBPACK_IMPORTED_MODULE_4__.DropdownContext;
//# sourceMappingURL=DropdownMenu.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownSeparator.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownSeparator.js ***!
  \***********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DropdownSeparator": () => (/* binding */ DropdownSeparator)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _dropdownConstants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./dropdownConstants */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/dropdownConstants.js");
/* harmony import */ var _InternalDropdownItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./InternalDropdownItem */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/InternalDropdownItem.js");
/* harmony import */ var _Divider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Divider */ "./node_modules/@patternfly/react-core/dist/esm/components/Divider/Divider.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");






const DropdownSeparator = (_a) => {
    var { className = '', 
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    ref, // Types of Ref are different for React.FC vs React.Component
    ouiaId, ouiaSafe } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "ref", "ouiaId", "ouiaSafe"]);
    const ouiaProps = (0,_helpers__WEBPACK_IMPORTED_MODULE_2__.useOUIAProps)(DropdownSeparator.displayName, ouiaId, ouiaSafe);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_dropdownConstants__WEBPACK_IMPORTED_MODULE_3__.DropdownArrowContext.Consumer, null, context => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_InternalDropdownItem__WEBPACK_IMPORTED_MODULE_4__.InternalDropdownItem, Object.assign({}, props, { context: context, component: react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Divider__WEBPACK_IMPORTED_MODULE_5__.Divider, { component: _Divider__WEBPACK_IMPORTED_MODULE_5__.DividerVariant.div }), className: className, role: "separator" }, ouiaProps)))));
};
DropdownSeparator.displayName = 'DropdownSeparator';
//# sourceMappingURL=DropdownSeparator.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownToggle.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownToggle.js ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DropdownToggle": () => (/* binding */ DropdownToggle)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_caret_down_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/caret-down-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/caret-down-icon.js");
/* harmony import */ var _Toggle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Toggle */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/Toggle.js");
/* harmony import */ var _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Dropdown/dropdown */ "./node_modules/@patternfly/react-styles/css/components/Dropdown/dropdown.js");
/* harmony import */ var _dropdownConstants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./dropdownConstants */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/dropdownConstants.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");








const DropdownToggle = (_a) => {
    var { id = '', children = null, className = '', isOpen = false, parentRef = null, getMenuRef = null, isDisabled = false, isPlain = false, isPrimary = false, toggleVariant = 'default', 
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    isActive = false, 
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    onToggle = (_isOpen) => undefined, icon = null, toggleIndicator: ToggleIndicator = _patternfly_react_icons_dist_esm_icons_caret_down_icon__WEBPACK_IMPORTED_MODULE_1__["default"], splitButtonItems, splitButtonVariant = 'checkbox', 'aria-haspopup': ariaHasPopup, ouiaId, ouiaSafe, 
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    ref } = _a, // Types of Ref are different for React.FC vs React.Component
    props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["id", "children", "className", "isOpen", "parentRef", "getMenuRef", "isDisabled", "isPlain", "isPrimary", "toggleVariant", "isActive", "onToggle", "icon", "toggleIndicator", "splitButtonItems", "splitButtonVariant", 'aria-haspopup', "ouiaId", "ouiaSafe", "ref"]);
    const ouiaProps = (0,_helpers__WEBPACK_IMPORTED_MODULE_3__.useOUIAProps)(DropdownToggle.displayName, ouiaId, ouiaSafe);
    const toggle = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_dropdownConstants__WEBPACK_IMPORTED_MODULE_4__.DropdownContext.Consumer, null, ({ toggleTextClass, toggleIndicatorClass, toggleIconClass }) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Toggle__WEBPACK_IMPORTED_MODULE_5__.Toggle, Object.assign({}, props, { id: id, className: className, isOpen: isOpen, parentRef: parentRef, getMenuRef: getMenuRef, isActive: isActive, isDisabled: isDisabled, isPlain: isPlain, isPrimary: isPrimary, toggleVariant: toggleVariant, onToggle: onToggle, "aria-haspopup": ariaHasPopup }, ouiaProps, (splitButtonItems && { isSplitButton: true, 'aria-label': props['aria-label'] || 'Select' })),
        icon && react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_6__.css)(toggleIconClass) }, icon),
        children && react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: ToggleIndicator && (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_6__.css)(toggleTextClass) }, children),
        ToggleIndicator && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_6__.css)(!splitButtonItems && toggleIndicatorClass) },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(ToggleIndicator, null)))))));
    if (splitButtonItems) {
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_6__.css)(_patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_7__["default"].dropdownToggle, _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_7__["default"].modifiers.splitButton, splitButtonVariant === 'action' && _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_7__["default"].modifiers.action, (toggleVariant === 'primary' || isPrimary) && splitButtonVariant === 'action' && _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_7__["default"].modifiers.primary, isDisabled && _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_7__["default"].modifiers.disabled) },
            splitButtonItems,
            toggle));
    }
    return toggle;
};
DropdownToggle.displayName = 'DropdownToggle';
//# sourceMappingURL=DropdownToggle.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownWithContext.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownWithContext.js ***!
  \*************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DropdownWithContext": () => (/* binding */ DropdownWithContext)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Dropdown/dropdown */ "./node_modules/@patternfly/react-styles/css/components/Dropdown/dropdown.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _DropdownMenu__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DropdownMenu */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownMenu.js");
/* harmony import */ var _dropdownConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dropdownConstants */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/dropdownConstants.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");
/* harmony import */ var _helpers_Popper_Popper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../helpers/Popper/Popper */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/Popper.js");








class DropdownWithContext extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor(props) {
        super(props);
        this.openedOnEnter = false;
        this.baseComponentRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.menuComponentRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.onEnter = () => {
            this.openedOnEnter = true;
        };
        this.setMenuComponentRef = (element) => {
            this.menuComponentRef = element;
        };
        this.getMenuComponentRef = () => this.menuComponentRef;
        if (props.dropdownItems && props.dropdownItems.length > 0 && props.children) {
            // eslint-disable-next-line no-console
            console.error('Children and dropdownItems props have been provided. Only the dropdownItems prop items will be rendered');
        }
    }
    componentDidUpdate() {
        if (!this.props.isOpen) {
            this.openedOnEnter = false;
        }
    }
    render() {
        const _a = this.props, { children, className, direction, dropdownItems, isOpen, isPlain, isGrouped, isFullHeight, 
        // eslint-disable-next-line @typescript-eslint/no-unused-vars
        onSelect, position, toggle, autoFocus, menuAppendTo } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "direction", "dropdownItems", "isOpen", "isPlain", "isGrouped", "isFullHeight", "onSelect", "position", "toggle", "autoFocus", "menuAppendTo"]);
        const id = toggle.props.id || `pf-dropdown-toggle-id-${DropdownWithContext.currentId++}`;
        let component;
        let renderedContent;
        let ariaHasPopup = false;
        if (dropdownItems && dropdownItems.length > 0) {
            component = 'ul';
            renderedContent = dropdownItems;
            ariaHasPopup = true;
        }
        else {
            component = 'div';
            renderedContent = react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(children);
        }
        const openedOnEnter = this.openedOnEnter;
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_dropdownConstants__WEBPACK_IMPORTED_MODULE_2__.DropdownContext.Consumer, null, ({ baseClass, baseComponent, id: contextId, ouiaId, ouiaComponentType, ouiaSafe, alignments }) => {
            const BaseComponent = baseComponent;
            const menuContainer = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_DropdownMenu__WEBPACK_IMPORTED_MODULE_3__.DropdownMenu, { setMenuComponentRef: this.setMenuComponentRef, component: component, isOpen: isOpen, position: position, "aria-labelledby": contextId ? `${contextId}-toggle` : id, isGrouped: isGrouped, autoFocus: openedOnEnter && autoFocus, alignments: alignments }, renderedContent));
            const popperContainer = (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(baseClass, direction === _dropdownConstants__WEBPACK_IMPORTED_MODULE_2__.DropdownDirection.up && _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.top, position === _dropdownConstants__WEBPACK_IMPORTED_MODULE_2__.DropdownPosition.right && _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.alignRight, isOpen && _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.expanded, className) }, isOpen && menuContainer));
            const mainContainer = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(BaseComponent, Object.assign({}, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(baseClass, direction === _dropdownConstants__WEBPACK_IMPORTED_MODULE_2__.DropdownDirection.up && _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.top, position === _dropdownConstants__WEBPACK_IMPORTED_MODULE_2__.DropdownPosition.right && _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.alignRight, isOpen && _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.expanded, isFullHeight && _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.fullHeight, className), ref: this.baseComponentRef }, (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.getOUIAProps)(ouiaComponentType, ouiaId, ouiaSafe)),
                react__WEBPACK_IMPORTED_MODULE_0__.Children.map(toggle, oneToggle => react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(oneToggle, {
                    parentRef: this.baseComponentRef,
                    getMenuRef: this.getMenuComponentRef,
                    isOpen,
                    id,
                    isPlain,
                    'aria-haspopup': ariaHasPopup,
                    onEnter: () => {
                        this.onEnter();
                        oneToggle.props.onEnter && oneToggle.props.onEnter();
                    }
                })),
                menuAppendTo === 'inline' && isOpen && menuContainer));
            const getParentElement = () => {
                if (this.baseComponentRef && this.baseComponentRef.current) {
                    return this.baseComponentRef.current.parentElement;
                }
                return null;
            };
            return menuAppendTo === 'inline' ? (mainContainer) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_helpers_Popper_Popper__WEBPACK_IMPORTED_MODULE_7__.Popper, { trigger: mainContainer, popper: popperContainer, direction: direction, position: position, appendTo: menuAppendTo === 'parent' ? getParentElement() : menuAppendTo, isVisible: isOpen }));
        }));
    }
}
DropdownWithContext.displayName = 'DropdownWithContext';
// seed for the aria-labelledby ID
DropdownWithContext.currentId = 0;
DropdownWithContext.defaultProps = {
    className: '',
    dropdownItems: [],
    isOpen: false,
    isPlain: false,
    isGrouped: false,
    position: _dropdownConstants__WEBPACK_IMPORTED_MODULE_2__.DropdownPosition.left,
    direction: _dropdownConstants__WEBPACK_IMPORTED_MODULE_2__.DropdownDirection.down,
    onSelect: () => undefined,
    autoFocus: true,
    menuAppendTo: 'inline'
};
//# sourceMappingURL=DropdownWithContext.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/InternalDropdownItem.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/InternalDropdownItem.js ***!
  \**************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "InternalDropdownItem": () => (/* binding */ InternalDropdownItem)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _dropdownConstants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./dropdownConstants */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/dropdownConstants.js");
/* harmony import */ var _helpers_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers/constants */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _helpers_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../helpers/util */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Tooltip */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js");
/* harmony import */ var _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Dropdown/dropdown */ "./node_modules/@patternfly/react-styles/css/components/Dropdown/dropdown.js");








class InternalDropdownItem extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor() {
        super(...arguments);
        this.ref = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.additionalRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.getInnerNode = (node) => (node && node.childNodes && node.childNodes.length ? node.childNodes[0] : node);
        this.onKeyDown = (event) => {
            // Detected key press on this item, notify the menu parent so that the appropriate item can be focused
            const innerIndex = event.target === this.ref.current ? 0 : 1;
            if (!this.props.customChild) {
                event.preventDefault();
            }
            if (event.key === 'ArrowUp') {
                this.props.context.keyHandler(this.props.index, innerIndex, _helpers_constants__WEBPACK_IMPORTED_MODULE_1__.KEYHANDLER_DIRECTION.UP);
                event.stopPropagation();
            }
            else if (event.key === 'ArrowDown') {
                this.props.context.keyHandler(this.props.index, innerIndex, _helpers_constants__WEBPACK_IMPORTED_MODULE_1__.KEYHANDLER_DIRECTION.DOWN);
                event.stopPropagation();
            }
            else if (event.key === 'ArrowRight') {
                this.props.context.keyHandler(this.props.index, innerIndex, _helpers_constants__WEBPACK_IMPORTED_MODULE_1__.KEYHANDLER_DIRECTION.RIGHT);
                event.stopPropagation();
            }
            else if (event.key === 'ArrowLeft') {
                this.props.context.keyHandler(this.props.index, innerIndex, _helpers_constants__WEBPACK_IMPORTED_MODULE_1__.KEYHANDLER_DIRECTION.LEFT);
                event.stopPropagation();
            }
            else if (event.key === 'Enter' || event.key === ' ') {
                event.target.click();
                this.props.enterTriggersArrowDown &&
                    this.props.context.keyHandler(this.props.index, innerIndex, _helpers_constants__WEBPACK_IMPORTED_MODULE_1__.KEYHANDLER_DIRECTION.DOWN);
            }
        };
        this.componentRef = (element) => {
            this.ref.current = element;
            const { component } = this.props;
            const ref = component.ref;
            if (ref) {
                if (typeof ref === 'function') {
                    ref(element);
                }
                else {
                    ref.current = element;
                }
            }
        };
    }
    componentDidMount() {
        const { context, index, isDisabled, role, customChild, autoFocus } = this.props;
        const customRef = customChild ? this.getInnerNode(this.ref.current) : this.ref.current;
        context.sendRef(index, [customRef, customChild ? customRef : this.additionalRef.current], isDisabled, role === 'separator');
        autoFocus && setTimeout(() => customRef.focus());
    }
    componentDidUpdate() {
        const { context, index, isDisabled, role, customChild } = this.props;
        const customRef = customChild ? this.getInnerNode(this.ref.current) : this.ref.current;
        context.sendRef(index, [customRef, customChild ? customRef : this.additionalRef.current], isDisabled, role === 'separator');
    }
    extendAdditionalChildRef() {
        const { additionalChild } = this.props;
        return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(additionalChild, {
            ref: this.additionalRef
        });
    }
    render() {
        /* eslint-disable @typescript-eslint/no-unused-vars */
        const _a = this.props, { className, children, isHovered, context, onClick, component, role, isDisabled, isAriaDisabled, isPlainText, index, href, tooltip, tooltipProps, id, componentID, listItemClassName, additionalChild, customChild, enterTriggersArrowDown, icon, autoFocus, styleChildren, description, inoperableEvents } = _a, additionalProps = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["className", "children", "isHovered", "context", "onClick", "component", "role", "isDisabled", "isAriaDisabled", "isPlainText", "index", "href", "tooltip", "tooltipProps", "id", "componentID", "listItemClassName", "additionalChild", "customChild", "enterTriggersArrowDown", "icon", "autoFocus", "styleChildren", "description", "inoperableEvents"]);
        /* eslint-enable @typescript-eslint/no-unused-vars */
        let classes = (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(icon && _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.icon, isAriaDisabled && _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.ariaDisabled, className);
        if (component === 'a') {
            additionalProps['aria-disabled'] = isDisabled || isAriaDisabled;
        }
        else if (component === 'button') {
            additionalProps['aria-disabled'] = isDisabled || isAriaDisabled;
            additionalProps.type = additionalProps.type || 'button';
        }
        const renderWithTooltip = (childNode) => tooltip ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Tooltip__WEBPACK_IMPORTED_MODULE_5__.Tooltip, Object.assign({ content: tooltip }, tooltipProps), childNode)) : (childNode);
        const renderClonedComponent = (element) => react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(element, Object.assign(Object.assign({}, (styleChildren && {
            className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(element.props.className, classes)
        })), (this.props.role !== 'separator' && { ref: this.componentRef })));
        const renderDefaultComponent = (tag) => {
            const Component = tag;
            const componentContent = description ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_4__["default"].dropdownMenuItemMain },
                    icon && react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_4__["default"].dropdownMenuItemIcon) }, icon),
                    children),
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_4__["default"].dropdownMenuItemDescription }, description))) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
                icon && react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_4__["default"].dropdownMenuItemIcon) }, icon),
                children));
            return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({}, additionalProps, (isDisabled || isAriaDisabled ? (0,_helpers_util__WEBPACK_IMPORTED_MODULE_6__.preventedEvents)(inoperableEvents) : null), { href: href, ref: this.ref, className: classes, id: componentID }), componentContent));
        };
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_dropdownConstants__WEBPACK_IMPORTED_MODULE_7__.DropdownContext.Consumer, null, ({ onSelect, itemClass, disabledClass, plainTextClass }) => {
            if (this.props.role !== 'separator') {
                classes = (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(classes, isDisabled && disabledClass, isPlainText && plainTextClass, itemClass, description && _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.description);
            }
            if (customChild) {
                return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(customChild, {
                    ref: this.ref,
                    onKeyDown: this.onKeyDown
                });
            }
            return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", { className: listItemClassName || null, role: role, onKeyDown: this.onKeyDown, onClick: (event) => {
                    if (!isDisabled && !isAriaDisabled) {
                        onClick(event);
                        onSelect(event);
                    }
                }, id: id },
                renderWithTooltip(react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(component)
                    ? renderClonedComponent(component)
                    : renderDefaultComponent(component)),
                additionalChild && this.extendAdditionalChildRef()));
        }));
    }
}
InternalDropdownItem.displayName = 'InternalDropdownItem';
InternalDropdownItem.defaultProps = {
    className: '',
    isHovered: false,
    component: 'a',
    role: 'none',
    isDisabled: false,
    isPlainText: false,
    tooltipProps: {},
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    onClick: (event) => undefined,
    index: -1,
    context: {
        keyHandler: () => { },
        sendRef: () => { }
    },
    enterTriggersArrowDown: false,
    icon: null,
    styleChildren: true,
    description: null,
    inoperableEvents: ['onClick', 'onKeyPress']
};
//# sourceMappingURL=InternalDropdownItem.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/KebabToggle.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/KebabToggle.js ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "KebabToggle": () => (/* binding */ KebabToggle)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_ellipsis_v_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/ellipsis-v-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon.js");
/* harmony import */ var _Toggle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Toggle */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/Toggle.js");




const KebabToggle = (_a) => {
    var { id = '', 
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    children = null, className = '', isOpen = false, 'aria-label': ariaLabel = 'Actions', parentRef = null, getMenuRef = null, isActive = false, isPlain = false, isDisabled = false, bubbleEvent = false, onToggle = () => undefined, 
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    ref } = _a, // Types of Ref are different for React.FC vs React.Component
    props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["id", "children", "className", "isOpen", 'aria-label', "parentRef", "getMenuRef", "isActive", "isPlain", "isDisabled", "bubbleEvent", "onToggle", "ref"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Toggle__WEBPACK_IMPORTED_MODULE_2__.Toggle, Object.assign({ id: id, className: className, isOpen: isOpen, "aria-label": ariaLabel, parentRef: parentRef, getMenuRef: getMenuRef, isActive: isActive, isPlain: isPlain, isDisabled: isDisabled, onToggle: onToggle, bubbleEvent: bubbleEvent }, props),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_ellipsis_v_icon__WEBPACK_IMPORTED_MODULE_3__["default"], null)));
};
KebabToggle.displayName = 'KebabToggle';
//# sourceMappingURL=KebabToggle.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/Toggle.js":
/*!************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/Toggle.js ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Toggle": () => (/* binding */ Toggle)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Dropdown/dropdown */ "./node_modules/@patternfly/react-styles/css/components/Dropdown/dropdown.js");
/* harmony import */ var _dropdownConstants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./dropdownConstants */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/dropdownConstants.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _helpers_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/constants */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");






const buttonVariantStyles = {
    default: '',
    primary: _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.primary,
    secondary: _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.secondary
};
class Toggle extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor() {
        super(...arguments);
        this.buttonRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.componentDidMount = () => {
            document.addEventListener('click', this.onDocClick);
            document.addEventListener('touchstart', this.onDocClick);
            document.addEventListener('keydown', this.onEscPress);
        };
        this.componentWillUnmount = () => {
            document.removeEventListener('click', this.onDocClick);
            document.removeEventListener('touchstart', this.onDocClick);
            document.removeEventListener('keydown', this.onEscPress);
        };
        this.onDocClick = (event) => {
            const { isOpen, parentRef, onToggle, getMenuRef } = this.props;
            const menuRef = getMenuRef && getMenuRef();
            const clickedOnToggle = parentRef && parentRef.current && parentRef.current.contains(event.target);
            const clickedWithinMenu = menuRef && menuRef.contains && menuRef.contains(event.target);
            if (isOpen && !(clickedOnToggle || clickedWithinMenu)) {
                onToggle(false, event);
            }
        };
        this.onEscPress = (event) => {
            const { parentRef, getMenuRef } = this.props;
            const keyCode = event.keyCode || event.which;
            const menuRef = getMenuRef && getMenuRef();
            const escFromToggle = parentRef && parentRef.current && parentRef.current.contains(event.target);
            const escFromWithinMenu = menuRef && menuRef.contains && menuRef.contains(event.target);
            if (this.props.isOpen &&
                (keyCode === _helpers_constants__WEBPACK_IMPORTED_MODULE_2__.KEY_CODES.ESCAPE_KEY || event.key === 'Tab') &&
                (escFromToggle || escFromWithinMenu)) {
                this.props.onToggle(false, event);
                this.buttonRef.current.focus();
            }
        };
        this.onKeyDown = (event) => {
            if (event.key === 'Tab' && !this.props.isOpen) {
                return;
            }
            if ((event.key === 'Tab' || event.key === 'Enter' || event.key === ' ') && this.props.isOpen) {
                if (!this.props.bubbleEvent) {
                    event.stopPropagation();
                }
                event.preventDefault();
                this.props.onToggle(!this.props.isOpen, event);
            }
            else if ((event.key === 'Enter' || event.key === ' ') && !this.props.isOpen) {
                if (!this.props.bubbleEvent) {
                    event.stopPropagation();
                }
                event.preventDefault();
                this.props.onToggle(!this.props.isOpen, event);
                this.props.onEnter();
            }
        };
    }
    render() {
        const _a = this.props, { className, children, isOpen, isDisabled, isPlain, isPrimary, isSplitButton, toggleVariant, onToggle, 'aria-haspopup': ariaHasPopup, 
        /* eslint-disable @typescript-eslint/no-unused-vars */
        isActive, bubbleEvent, onEnter, parentRef, getMenuRef, 
        /* eslint-enable @typescript-eslint/no-unused-vars */
        id, type } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_3__.__rest)(_a, ["className", "children", "isOpen", "isDisabled", "isPlain", "isPrimary", "isSplitButton", "toggleVariant", "onToggle", 'aria-haspopup', "isActive", "bubbleEvent", "onEnter", "parentRef", "getMenuRef", "id", "type"]);
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_dropdownConstants__WEBPACK_IMPORTED_MODULE_4__.DropdownContext.Consumer, null, ({ toggleClass }) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", Object.assign({}, props, { id: id, ref: this.buttonRef, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__.css)(isSplitButton ? _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_1__["default"].dropdownToggleButton : toggleClass || _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_1__["default"].dropdownToggle, isActive && _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.active, isPlain && _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.plain, isPrimary && _patternfly_react_styles_css_components_Dropdown_dropdown__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.primary, buttonVariantStyles[toggleVariant], className), type: type || 'button', onClick: event => onToggle(!isOpen, event), "aria-expanded": isOpen, "aria-haspopup": ariaHasPopup, onKeyDown: event => this.onKeyDown(event), disabled: isDisabled }), children))));
    }
}
Toggle.displayName = 'Toggle';
Toggle.defaultProps = {
    className: '',
    isOpen: false,
    isActive: false,
    isDisabled: false,
    isPlain: false,
    isPrimary: false,
    isSplitButton: false,
    onToggle: () => { },
    onEnter: () => { },
    bubbleEvent: false
};
//# sourceMappingURL=Toggle.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/dropdownConstants.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/dropdownConstants.js ***!
  \***********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DropdownPosition": () => (/* binding */ DropdownPosition),
/* harmony export */   "DropdownDirection": () => (/* binding */ DropdownDirection),
/* harmony export */   "DropdownContext": () => (/* binding */ DropdownContext),
/* harmony export */   "DropdownArrowContext": () => (/* binding */ DropdownArrowContext)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");

var DropdownPosition;
(function (DropdownPosition) {
    DropdownPosition["right"] = "right";
    DropdownPosition["left"] = "left";
})(DropdownPosition || (DropdownPosition = {}));
var DropdownDirection;
(function (DropdownDirection) {
    DropdownDirection["up"] = "up";
    DropdownDirection["down"] = "down";
})(DropdownDirection || (DropdownDirection = {}));
const DropdownContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext({
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    onSelect: (event) => undefined,
    id: '',
    toggleIndicatorClass: '',
    toggleIconClass: '',
    toggleTextClass: '',
    menuClass: '',
    itemClass: '',
    toggleClass: '',
    baseClass: '',
    baseComponent: 'div',
    sectionClass: '',
    sectionTitleClass: '',
    sectionComponent: 'section',
    disabledClass: '',
    plainTextClass: '',
    menuComponent: 'ul'
});
const DropdownArrowContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext({
    keyHandler: null,
    sendRef: null
});
//# sourceMappingURL=dropdownConstants.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelector.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelector.js ***!
  \******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DualListSelector": () => (/* binding */ DualListSelector)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles/css/components/DualListSelector/dual-list-selector */ "./node_modules/@patternfly/react-styles/css/components/DualListSelector/dual-list-selector.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_double_left_icon__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-double-left-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-double-left-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_left_icon__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-left-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-left-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_double_right_icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-double-right-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-double-right-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-right-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-right-icon.js");
/* harmony import */ var _DualListSelectorPane__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./DualListSelectorPane */ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorPane.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");
/* harmony import */ var _treeUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./treeUtils */ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/treeUtils.js");
/* harmony import */ var _DualListSelectorControlsWrapper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./DualListSelectorControlsWrapper */ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorControlsWrapper.js");
/* harmony import */ var _DualListSelectorControl__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./DualListSelectorControl */ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorControl.js");
/* harmony import */ var _DualListSelectorContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DualListSelectorContext */ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorContext.js");














class DualListSelector extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor(props) {
        super(props);
        this.addAllButtonRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.addSelectedButtonRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.removeSelectedButtonRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.removeAllButtonRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.originalAvailableCopy = JSON.parse(JSON.stringify(this.props.availableOptions));
        this.originalChosenCopy = JSON.parse(JSON.stringify(this.props.chosenOptions));
        // If the DualListSelector uses trees, concat the two initial arrays and merge duplicate folder IDs
        this.mergedCopy = this.props.isTree
            ? Object.values(this.originalAvailableCopy
                .concat(this.originalChosenCopy)
                .reduce((mapObj, item) => {
                const key = item.id;
                if (mapObj[key]) {
                    // If map already has an item ID, add the dupe ID's children to the existing map
                    mapObj[key].children.push(...item.children);
                }
                else {
                    // Else clone the item data
                    mapObj[key] = Object.assign({}, item);
                }
                return mapObj;
            }, {}))
            : null;
        this.onFilterUpdate = (newFilteredOptions, paneType, isSearchReset) => {
            const { isTree } = this.props;
            if (paneType === 'available') {
                if (isSearchReset) {
                    this.setState({
                        availableFilteredOptions: null,
                        availableTreeFilteredOptions: null
                    });
                    return;
                }
                if (isTree) {
                    this.setState({
                        availableTreeFilteredOptions: (0,_treeUtils__WEBPACK_IMPORTED_MODULE_1__.flattenTreeWithFolders)(newFilteredOptions)
                    });
                }
                else {
                    this.setState({
                        availableFilteredOptions: newFilteredOptions
                    });
                }
            }
            else if (paneType === 'chosen') {
                if (isSearchReset) {
                    this.setState({
                        chosenFilteredOptions: null,
                        chosenTreeFilteredOptions: null
                    });
                    return;
                }
                if (isTree) {
                    this.setState({
                        chosenTreeFilteredOptions: (0,_treeUtils__WEBPACK_IMPORTED_MODULE_1__.flattenTreeWithFolders)(newFilteredOptions)
                    });
                }
                else {
                    this.setState({
                        chosenFilteredOptions: newFilteredOptions
                    });
                }
            }
        };
        this.addAllVisible = () => {
            this.setState(prevState => {
                const itemsToRemove = [];
                const newAvailable = [];
                const movedOptions = prevState.availableFilteredOptions || prevState.availableOptions;
                prevState.availableOptions.forEach(value => {
                    if (movedOptions.indexOf(value) !== -1) {
                        itemsToRemove.push(value);
                    }
                    else {
                        newAvailable.push(value);
                    }
                });
                const newChosen = [...prevState.chosenOptions, ...itemsToRemove];
                this.props.addAll && this.props.addAll(newAvailable, newChosen);
                this.props.onListChange && this.props.onListChange(newAvailable, newChosen);
                return {
                    chosenOptions: newChosen,
                    availableOptions: newAvailable,
                    chosenOptionsSelected: [],
                    availableOptionsSelected: []
                };
            });
        };
        this.addAllTreeVisible = () => {
            this.setState(prevState => {
                const movedOptions = prevState.availableTreeFilteredOptions ||
                    (0,_treeUtils__WEBPACK_IMPORTED_MODULE_1__.flattenTreeWithFolders)(prevState.availableOptions);
                const newAvailable = prevState.availableOptions
                    .map(opt => Object.assign({}, opt))
                    .filter(item => (0,_treeUtils__WEBPACK_IMPORTED_MODULE_1__.filterRestTreeItems)(item, movedOptions));
                const currChosen = (0,_treeUtils__WEBPACK_IMPORTED_MODULE_1__.flattenTree)(prevState.chosenOptions);
                const nextChosenOptions = currChosen.concat(movedOptions);
                const newChosen = this.mergedCopy
                    .map(opt => Object.assign({}, opt))
                    .filter(item => (0,_treeUtils__WEBPACK_IMPORTED_MODULE_1__.filterTreeItemsWithoutFolders)(item, nextChosenOptions));
                this.props.addAll && this.props.addAll(newAvailable, newChosen);
                this.props.onListChange && this.props.onListChange(newAvailable, newChosen);
                return {
                    chosenOptions: newChosen,
                    chosenFilteredOptions: newChosen,
                    availableOptions: newAvailable,
                    availableFilteredOptions: newAvailable,
                    availableTreeOptionsChecked: [],
                    chosenTreeOptionsChecked: []
                };
            });
        };
        this.addSelected = () => {
            this.setState(prevState => {
                const itemsToRemove = [];
                const newAvailable = [];
                prevState.availableOptions.forEach((value, index) => {
                    if (prevState.availableOptionsSelected.indexOf(index) !== -1) {
                        itemsToRemove.push(value);
                    }
                    else {
                        newAvailable.push(value);
                    }
                });
                const newChosen = [...prevState.chosenOptions, ...itemsToRemove];
                this.props.addSelected && this.props.addSelected(newAvailable, newChosen);
                this.props.onListChange && this.props.onListChange(newAvailable, newChosen);
                return {
                    chosenOptionsSelected: [],
                    availableOptionsSelected: [],
                    chosenOptions: newChosen,
                    availableOptions: newAvailable
                };
            });
        };
        this.addTreeSelected = () => {
            this.setState(prevState => {
                // Remove selected available nodes from current available nodes
                const newAvailable = prevState.availableOptions
                    .map(opt => Object.assign({}, opt))
                    .filter(item => (0,_treeUtils__WEBPACK_IMPORTED_MODULE_1__.filterRestTreeItems)(item, prevState.availableTreeOptionsChecked));
                // Get next chosen options from current + new nodes and remap from base
                const currChosen = (0,_treeUtils__WEBPACK_IMPORTED_MODULE_1__.flattenTree)(prevState.chosenOptions);
                const nextChosenOptions = currChosen.concat(prevState.availableTreeOptionsChecked);
                const newChosen = this.mergedCopy
                    .map(opt => Object.assign({}, opt))
                    .filter(item => (0,_treeUtils__WEBPACK_IMPORTED_MODULE_1__.filterTreeItemsWithoutFolders)(item, nextChosenOptions));
                this.props.addSelected && this.props.addSelected(newAvailable, newChosen);
                this.props.onListChange && this.props.onListChange(newAvailable, newChosen);
                return {
                    availableTreeOptionsChecked: [],
                    chosenTreeOptionsChecked: [],
                    availableOptions: newAvailable,
                    chosenOptions: newChosen
                };
            });
        };
        this.removeAllVisible = () => {
            this.setState(prevState => {
                const itemsToRemove = [];
                const newChosen = [];
                const movedOptions = prevState.chosenFilteredOptions || prevState.chosenOptions;
                prevState.chosenOptions.forEach(value => {
                    if (movedOptions.indexOf(value) !== -1) {
                        itemsToRemove.push(value);
                    }
                    else {
                        newChosen.push(value);
                    }
                });
                const newAvailable = [...prevState.availableOptions, ...itemsToRemove];
                this.props.removeAll && this.props.removeAll(newAvailable, newChosen);
                this.props.onListChange && this.props.onListChange(newAvailable, newChosen);
                return {
                    chosenOptions: newChosen,
                    availableOptions: newAvailable,
                    chosenOptionsSelected: [],
                    availableOptionsSelected: []
                };
            });
        };
        this.removeAllTreeVisible = () => {
            this.setState(prevState => {
                const movedOptions = prevState.chosenTreeFilteredOptions ||
                    (0,_treeUtils__WEBPACK_IMPORTED_MODULE_1__.flattenTreeWithFolders)(prevState.chosenOptions);
                const newChosen = prevState.chosenOptions
                    .map(opt => Object.assign({}, opt))
                    .filter(item => (0,_treeUtils__WEBPACK_IMPORTED_MODULE_1__.filterRestTreeItems)(item, movedOptions));
                const currAvailable = (0,_treeUtils__WEBPACK_IMPORTED_MODULE_1__.flattenTree)(prevState.availableOptions);
                const nextAvailableOptions = currAvailable.concat(movedOptions);
                const newAvailable = this.mergedCopy
                    .map(opt => Object.assign({}, opt))
                    .filter(item => (0,_treeUtils__WEBPACK_IMPORTED_MODULE_1__.filterTreeItemsWithoutFolders)(item, nextAvailableOptions));
                this.props.removeAll && this.props.removeAll(newAvailable, newChosen);
                this.props.onListChange && this.props.onListChange(newAvailable, newChosen);
                return {
                    chosenOptions: newChosen,
                    availableOptions: newAvailable,
                    availableTreeOptionsChecked: [],
                    chosenTreeOptionsChecked: []
                };
            });
        };
        this.removeSelected = () => {
            this.setState(prevState => {
                const itemsToRemove = [];
                const newChosen = [];
                prevState.chosenOptions.forEach((value, index) => {
                    if (prevState.chosenOptionsSelected.indexOf(index) !== -1) {
                        itemsToRemove.push(value);
                    }
                    else {
                        newChosen.push(value);
                    }
                });
                const newAvailable = [...prevState.availableOptions, ...itemsToRemove];
                this.props.removeSelected && this.props.removeSelected(newAvailable, newChosen);
                this.props.onListChange && this.props.onListChange(newAvailable, newChosen);
                return {
                    chosenOptionsSelected: [],
                    availableOptionsSelected: [],
                    chosenOptions: newChosen,
                    availableOptions: newAvailable
                };
            });
        };
        this.removeTreeSelected = () => {
            this.setState(prevState => {
                // Remove selected chosen nodes from current chosen nodes
                const newChosen = prevState.chosenOptions
                    .map(opt => Object.assign({}, opt))
                    .filter(item => (0,_treeUtils__WEBPACK_IMPORTED_MODULE_1__.filterRestTreeItems)(item, prevState.chosenTreeOptionsChecked));
                // Get next chosen options from current and remap from base
                const currAvailable = (0,_treeUtils__WEBPACK_IMPORTED_MODULE_1__.flattenTree)(prevState.availableOptions);
                const nextAvailableOptions = currAvailable.concat(prevState.chosenTreeOptionsChecked);
                const newAvailable = this.mergedCopy
                    .map(opt => Object.assign({}, opt))
                    .filter(item => (0,_treeUtils__WEBPACK_IMPORTED_MODULE_1__.filterTreeItemsWithoutFolders)(item, nextAvailableOptions));
                this.props.removeSelected && this.props.removeSelected(newAvailable, newChosen);
                this.props.onListChange && this.props.onListChange(newAvailable, newChosen);
                return {
                    availableTreeOptionsChecked: [],
                    chosenTreeOptionsChecked: [],
                    availableOptions: newAvailable,
                    chosenOptions: newChosen
                };
            });
        };
        this.onOptionSelect = (e, index, isChosen, 
        /* eslint-disable @typescript-eslint/no-unused-vars */
        id, itemData, parentData
        /* eslint-enable @typescript-eslint/no-unused-vars */
        ) => {
            this.setState(prevState => {
                const originalArray = isChosen ? prevState.chosenOptionsSelected : prevState.availableOptionsSelected;
                let updatedArray = null;
                if (originalArray.indexOf(index) !== -1) {
                    updatedArray = originalArray.filter(value => value !== index);
                }
                else {
                    updatedArray = [...originalArray, index];
                }
                return {
                    chosenOptionsSelected: isChosen ? updatedArray : prevState.chosenOptionsSelected,
                    availableOptionsSelected: isChosen ? prevState.availableOptionsSelected : updatedArray
                };
            });
            this.props.onOptionSelect && this.props.onOptionSelect(e, index, isChosen, id, itemData, parentData);
        };
        this.isChecked = (treeItem, isChosen) => isChosen
            ? this.state.chosenTreeOptionsChecked.includes(treeItem.id)
            : this.state.availableTreeOptionsChecked.includes(treeItem.id);
        this.areAllDescendantsChecked = (treeItem, isChosen) => treeItem.children
            ? treeItem.children.every(child => this.areAllDescendantsChecked(child, isChosen))
            : this.isChecked(treeItem, isChosen);
        this.areSomeDescendantsChecked = (treeItem, isChosen) => treeItem.children
            ? treeItem.children.some(child => this.areSomeDescendantsChecked(child, isChosen))
            : this.isChecked(treeItem, isChosen);
        this.mapChecked = (item, isChosen) => {
            const hasCheck = this.areAllDescendantsChecked(item, isChosen);
            item.isChecked = false;
            if (hasCheck) {
                item.isChecked = true;
            }
            else {
                const hasPartialCheck = this.areSomeDescendantsChecked(item, isChosen);
                if (hasPartialCheck) {
                    item.isChecked = null;
                }
            }
            if (item.children) {
                return Object.assign(Object.assign({}, item), { children: item.children.map(child => this.mapChecked(child, isChosen)) });
            }
            return item;
        };
        this.onTreeOptionCheck = (evt, isChecked, itemData, isChosen) => {
            const { availableOptions, availableTreeFilteredOptions, chosenOptions, chosenTreeFilteredOptions } = this.state;
            let panelOptions;
            if (isChosen) {
                if (chosenTreeFilteredOptions) {
                    panelOptions = chosenOptions
                        .map(opt => Object.assign({}, opt))
                        .filter(item => (0,_treeUtils__WEBPACK_IMPORTED_MODULE_1__.filterTreeItemsWithoutFolders)(item, chosenTreeFilteredOptions));
                }
                else {
                    panelOptions = chosenOptions;
                }
            }
            else {
                if (availableTreeFilteredOptions) {
                    panelOptions = availableOptions
                        .map(opt => Object.assign({}, opt))
                        .filter(item => (0,_treeUtils__WEBPACK_IMPORTED_MODULE_1__.filterTreeItemsWithoutFolders)(item, availableTreeFilteredOptions));
                }
                else {
                    panelOptions = availableOptions;
                }
            }
            const checkedOptionTree = panelOptions
                .map(opt => Object.assign({}, opt))
                .filter(item => (0,_treeUtils__WEBPACK_IMPORTED_MODULE_1__.filterTreeItems)(item, [itemData.id]));
            const flatTree = (0,_treeUtils__WEBPACK_IMPORTED_MODULE_1__.flattenTreeWithFolders)(checkedOptionTree);
            const prevChecked = isChosen ? this.state.chosenTreeOptionsChecked : this.state.availableTreeOptionsChecked;
            let updatedChecked = [];
            if (isChecked) {
                updatedChecked = prevChecked.concat(flatTree.filter(id => !prevChecked.includes(id)));
            }
            else {
                updatedChecked = prevChecked.filter(id => !flatTree.includes(id));
            }
            this.setState(prevState => ({
                availableTreeOptionsChecked: isChosen ? prevState.availableTreeOptionsChecked : updatedChecked,
                chosenTreeOptionsChecked: isChosen ? updatedChecked : prevState.chosenTreeOptionsChecked
            }), () => {
                this.props.onOptionCheck && this.props.onOptionCheck(evt, isChecked, itemData.id, updatedChecked);
            });
        };
        this.state = {
            availableOptions: [...this.props.availableOptions],
            availableOptionsSelected: [],
            availableFilteredOptions: null,
            availableTreeFilteredOptions: null,
            chosenOptions: [...this.props.chosenOptions],
            chosenOptionsSelected: [],
            chosenFilteredOptions: null,
            chosenTreeFilteredOptions: null,
            availableTreeOptionsChecked: [],
            chosenTreeOptionsChecked: []
        };
    }
    componentDidUpdate() {
        if (JSON.stringify(this.props.availableOptions) !== JSON.stringify(this.state.availableOptions) ||
            JSON.stringify(this.props.chosenOptions) !== JSON.stringify(this.state.chosenOptions)) {
            this.setState({
                availableOptions: [...this.props.availableOptions],
                chosenOptions: [...this.props.chosenOptions]
            });
        }
    }
    render() {
        const _a = this.props, { availableOptionsTitle, availableOptionsActions, availableOptionsSearchAriaLabel, className, children, chosenOptionsTitle, chosenOptionsActions, chosenOptionsSearchAriaLabel, filterOption, isSearchable, chosenOptionsStatus, availableOptionsStatus, controlsAriaLabel, addAllAriaLabel, addSelectedAriaLabel, removeSelectedAriaLabel, removeAllAriaLabel, 
        /* eslint-disable @typescript-eslint/no-unused-vars */
        availableOptions: consumerPassedAvailableOptions, chosenOptions: consumerPassedChosenOptions, removeSelected, addAll, removeAll, addSelected, onListChange, onAvailableOptionsSearchInputChanged, onChosenOptionsSearchInputChanged, onOptionSelect, onOptionCheck, id, isTree, isDisabled, addAllTooltip, addAllTooltipProps, addSelectedTooltip, addSelectedTooltipProps, removeAllTooltip, removeAllTooltipProps, removeSelectedTooltip, removeSelectedTooltipProps } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["availableOptionsTitle", "availableOptionsActions", "availableOptionsSearchAriaLabel", "className", "children", "chosenOptionsTitle", "chosenOptionsActions", "chosenOptionsSearchAriaLabel", "filterOption", "isSearchable", "chosenOptionsStatus", "availableOptionsStatus", "controlsAriaLabel", "addAllAriaLabel", "addSelectedAriaLabel", "removeSelectedAriaLabel", "removeAllAriaLabel", "availableOptions", "chosenOptions", "removeSelected", "addAll", "removeAll", "addSelected", "onListChange", "onAvailableOptionsSearchInputChanged", "onChosenOptionsSearchInputChanged", "onOptionSelect", "onOptionCheck", "id", "isTree", "isDisabled", "addAllTooltip", "addAllTooltipProps", "addSelectedTooltip", "addSelectedTooltipProps", "removeAllTooltip", "removeAllTooltipProps", "removeSelectedTooltip", "removeSelectedTooltipProps"]);
        const { availableOptions, chosenOptions, chosenOptionsSelected, availableOptionsSelected, chosenTreeOptionsChecked, availableTreeOptionsChecked } = this.state;
        const availableOptionsStatusToDisplay = availableOptionsStatus ||
            (isTree
                ? `${(0,_treeUtils__WEBPACK_IMPORTED_MODULE_1__.filterFolders)(availableOptions, availableTreeOptionsChecked).length} of ${(0,_treeUtils__WEBPACK_IMPORTED_MODULE_1__.flattenTree)(availableOptions).length} items selected`
                : `${availableOptionsSelected.length} of ${availableOptions.length} items selected`);
        const chosenOptionsStatusToDisplay = chosenOptionsStatus ||
            (isTree
                ? `${(0,_treeUtils__WEBPACK_IMPORTED_MODULE_1__.filterFolders)(chosenOptions, chosenTreeOptionsChecked).length} of ${(0,_treeUtils__WEBPACK_IMPORTED_MODULE_1__.flattenTree)(chosenOptions).length} items selected`
                : `${chosenOptionsSelected.length} of ${chosenOptions.length} items selected`);
        const available = isTree
            ? availableOptions.map(item => this.mapChecked(item, false))
            : availableOptions;
        const chosen = isTree
            ? chosenOptions.map(item => this.mapChecked(item, true))
            : chosenOptions;
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_DualListSelectorContext__WEBPACK_IMPORTED_MODULE_3__.DualListSelectorContext.Provider, { value: { isTree } },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_5__["default"].dualListSelector, className), id: id }, props), children === '' ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_DualListSelectorPane__WEBPACK_IMPORTED_MODULE_6__.DualListSelectorPane, { isSearchable: isSearchable, onFilterUpdate: this.onFilterUpdate, searchInputAriaLabel: availableOptionsSearchAriaLabel, filterOption: filterOption, onSearchInputChanged: onAvailableOptionsSearchInputChanged, status: availableOptionsStatusToDisplay, title: availableOptionsTitle, options: available, selectedOptions: isTree ? availableTreeOptionsChecked : availableOptionsSelected, onOptionSelect: this.onOptionSelect, onOptionCheck: (e, isChecked, itemData) => this.onTreeOptionCheck(e, isChecked, itemData, false), actions: availableOptionsActions, id: `${id}-available-pane`, isDisabled: isDisabled }),
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_DualListSelectorControlsWrapper__WEBPACK_IMPORTED_MODULE_7__.DualListSelectorControlsWrapper, { "aria-label": controlsAriaLabel },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_DualListSelectorControl__WEBPACK_IMPORTED_MODULE_8__.DualListSelectorControl, { isDisabled: (isTree ? availableTreeOptionsChecked.length === 0 : availableOptionsSelected.length === 0) ||
                            isDisabled, onClick: isTree ? this.addTreeSelected : this.addSelected, ref: this.addSelectedButtonRef, "aria-label": addSelectedAriaLabel, tooltipContent: addSelectedTooltip, tooltipProps: addSelectedTooltipProps },
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_9__["default"], null)),
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_DualListSelectorControl__WEBPACK_IMPORTED_MODULE_8__.DualListSelectorControl, { isDisabled: availableOptions.length === 0 || isDisabled, onClick: isTree ? this.addAllTreeVisible : this.addAllVisible, ref: this.addAllButtonRef, "aria-label": addAllAriaLabel, tooltipContent: addAllTooltip, tooltipProps: addAllTooltipProps },
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_double_right_icon__WEBPACK_IMPORTED_MODULE_10__["default"], null)),
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_DualListSelectorControl__WEBPACK_IMPORTED_MODULE_8__.DualListSelectorControl, { isDisabled: chosenOptions.length === 0 || isDisabled, onClick: isTree ? this.removeAllTreeVisible : this.removeAllVisible, "aria-label": removeAllAriaLabel, ref: this.removeAllButtonRef, tooltipContent: removeAllTooltip, tooltipProps: removeAllTooltipProps },
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_double_left_icon__WEBPACK_IMPORTED_MODULE_11__["default"], null)),
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_DualListSelectorControl__WEBPACK_IMPORTED_MODULE_8__.DualListSelectorControl, { onClick: isTree ? this.removeTreeSelected : this.removeSelected, isDisabled: (isTree ? chosenTreeOptionsChecked.length === 0 : chosenOptionsSelected.length === 0) || isDisabled, ref: this.removeSelectedButtonRef, "aria-label": removeSelectedAriaLabel, tooltipContent: removeSelectedTooltip, tooltipProps: removeSelectedTooltipProps },
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_left_icon__WEBPACK_IMPORTED_MODULE_12__["default"], null))),
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_DualListSelectorPane__WEBPACK_IMPORTED_MODULE_6__.DualListSelectorPane, { isChosen: true, isSearchable: isSearchable, onFilterUpdate: this.onFilterUpdate, searchInputAriaLabel: chosenOptionsSearchAriaLabel, filterOption: filterOption, onSearchInputChanged: onChosenOptionsSearchInputChanged, title: chosenOptionsTitle, status: chosenOptionsStatusToDisplay, options: chosen, selectedOptions: isTree ? chosenTreeOptionsChecked : chosenOptionsSelected, onOptionSelect: this.onOptionSelect, onOptionCheck: (e, isChecked, itemData) => this.onTreeOptionCheck(e, isChecked, itemData, true), actions: chosenOptionsActions, id: `${id}-chosen-pane`, isDisabled: isDisabled }))) : (children))));
    }
}
DualListSelector.displayName = 'DualListSelector';
DualListSelector.defaultProps = {
    children: '',
    availableOptions: [],
    availableOptionsTitle: 'Available options',
    availableOptionsSearchAriaLabel: 'Available search input',
    chosenOptions: [],
    chosenOptionsTitle: 'Chosen options',
    chosenOptionsSearchAriaLabel: 'Chosen search input',
    id: (0,_helpers__WEBPACK_IMPORTED_MODULE_13__.getUniqueId)('dual-list-selector'),
    controlsAriaLabel: 'Selector controls',
    addAllAriaLabel: 'Add all',
    addSelectedAriaLabel: 'Add selected',
    removeSelectedAriaLabel: 'Remove selected',
    removeAllAriaLabel: 'Remove all',
    isTree: false,
    isDisabled: false
};
//# sourceMappingURL=DualListSelector.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorContext.js":
/*!*************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorContext.js ***!
  \*************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DualListSelectorContext": () => (/* binding */ DualListSelectorContext),
/* harmony export */   "DualListSelectorListContext": () => (/* binding */ DualListSelectorListContext),
/* harmony export */   "DualListSelectorPaneContext": () => (/* binding */ DualListSelectorPaneContext)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");

const DualListSelectorContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext({ isTree: false });
const DualListSelectorListContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext({});
const DualListSelectorPaneContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext({ isChosen: false });
//# sourceMappingURL=DualListSelectorContext.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorControl.js":
/*!*************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorControl.js ***!
  \*************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DualListSelectorControlBase": () => (/* binding */ DualListSelectorControlBase),
/* harmony export */   "DualListSelectorControl": () => (/* binding */ DualListSelectorControl)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Tooltip */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js");





const DualListSelectorControlBase = (_a) => {
    var { innerRef, children = null, className, 'aria-label': ariaLabel, isDisabled = true, onClick = () => { }, tooltipContent, tooltipProps = {} } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["innerRef", "children", "className", 'aria-label', "isDisabled", "onClick", "tooltipContent", "tooltipProps"]);
    const ref = innerRef || react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)('pf-c-dual-list-selector__controls-item', className) }, props),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__.Button, { isDisabled: isDisabled, "aria-disabled": isDisabled, variant: _Button__WEBPACK_IMPORTED_MODULE_3__.ButtonVariant.plain, onClick: onClick, "aria-label": ariaLabel, tabIndex: -1, ref: ref }, children),
        tooltipContent && react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Tooltip__WEBPACK_IMPORTED_MODULE_4__.Tooltip, Object.assign({ content: tooltipContent, position: "left", reference: ref }, tooltipProps))));
};
DualListSelectorControlBase.displayName = 'DualListSelectorControlBase';
const DualListSelectorControl = react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((props, ref) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(DualListSelectorControlBase, Object.assign({ innerRef: ref }, props))));
DualListSelectorControl.displayName = 'DualListSelectorControl';
//# sourceMappingURL=DualListSelectorControl.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorControlsWrapper.js":
/*!*********************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorControlsWrapper.js ***!
  \*********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DualListSelectorControlsWrapperBase": () => (/* binding */ DualListSelectorControlsWrapperBase),
/* harmony export */   "DualListSelectorControlsWrapper": () => (/* binding */ DualListSelectorControlsWrapper)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/DualListSelector/dual-list-selector */ "./node_modules/@patternfly/react-styles/css/components/DualListSelector/dual-list-selector.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/KeyboardHandler.js");





const DualListSelectorControlsWrapperBase = (_a) => {
    var { innerRef, children = null, className, 'aria-label': ariaLabel = 'Controls for moving options between lists' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["innerRef", "children", "className", 'aria-label']);
    const wrapperRef = innerRef || react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);
    // Adds keyboard navigation to the dynamically built dual list selector controls. Works when controls are dynamically built
    // as well as when they are passed in via children.
    const handleKeys = (event) => {
        if (!wrapperRef.current ||
            (wrapperRef.current !== event.target.closest('.pf-c-dual-list-selector__controls') &&
                !Array.from(wrapperRef.current.getElementsByClassName('pf-c-dual-list-selector__controls')).includes(event.target.closest('.pf-c-dual-list-selector__controls')))) {
            return;
        }
        event.stopImmediatePropagation();
        const controls = Array.from(wrapperRef.current.getElementsByTagName('BUTTON')).filter(el => !el.classList.contains('pf-m-disabled'));
        const activeElement = document.activeElement;
        (0,_helpers__WEBPACK_IMPORTED_MODULE_2__.handleArrows)(event, controls, (element) => activeElement.contains(element), (element) => element, undefined, undefined, true, false);
    };
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        window.addEventListener('keydown', handleKeys);
        return () => {
            window.removeEventListener('keydown', handleKeys);
        };
    }, [wrapperRef.current]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_4__["default"].dualListSelectorControls, className), tabIndex: 0, ref: wrapperRef, "aria-label": ariaLabel }, props), children));
};
DualListSelectorControlsWrapperBase.displayName = 'DualListSelectorControlsWrapperBase';
const DualListSelectorControlsWrapper = react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((props, ref) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(DualListSelectorControlsWrapperBase, Object.assign({ innerRef: ref }, props))));
DualListSelectorControlsWrapper.displayName = 'DualListSelectorControlsWrapper';
//# sourceMappingURL=DualListSelectorControlsWrapper.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorList.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorList.js ***!
  \**********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DualListSelectorList": () => (/* binding */ DualListSelectorList)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/DualListSelector/dual-list-selector */ "./node_modules/@patternfly/react-styles/css/components/DualListSelector/dual-list-selector.js");
/* harmony import */ var _DualListSelectorListItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./DualListSelectorListItem */ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorListItem.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _DualListSelectorContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DualListSelectorContext */ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorContext.js");






const DualListSelectorList = (_a) => {
    var { children } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children"]);
    const { setFocusedOption, isTree, ariaLabelledBy, focusedOption, displayOption, selectedOptions, id, onOptionSelect, options, isDisabled } = react__WEBPACK_IMPORTED_MODULE_0__.useContext(_DualListSelectorContext__WEBPACK_IMPORTED_MODULE_2__.DualListSelectorListContext);
    // only called when options are passed via options prop
    const onOptionClick = (e, index, id) => {
        setFocusedOption(id);
        onOptionSelect(e, index, id);
    };
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("ul", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_4__["default"].dualListSelectorList), role: isTree ? 'tree' : 'listbox', "aria-multiselectable": "true", "aria-labelledby": ariaLabelledBy, "aria-activedescendant": focusedOption, "aria-disabled": isDisabled ? 'true' : undefined }, props), options.length === 0
        ? children
        : options.map((option, index) => {
            if (displayOption(option)) {
                return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_DualListSelectorListItem__WEBPACK_IMPORTED_MODULE_5__.DualListSelectorListItem, { key: index, isSelected: selectedOptions.indexOf(index) !== -1, id: `${id}-option-${index}`, onOptionSelect: (e, id) => onOptionClick(e, index, id), orderIndex: index, isDisabled: isDisabled }, option));
            }
            return;
        })));
};
DualListSelectorList.displayName = 'DualListSelectorList';
//# sourceMappingURL=DualListSelectorList.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorListItem.js":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorListItem.js ***!
  \**************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DualListSelectorListItemBase": () => (/* binding */ DualListSelectorListItemBase),
/* harmony export */   "DualListSelectorListItem": () => (/* binding */ DualListSelectorListItem)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles/css/components/DualListSelector/dual-list-selector */ "./node_modules/@patternfly/react-styles/css/components/DualListSelector/dual-list-selector.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_grip_vertical_icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/grip-vertical-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/grip-vertical-icon.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _DualListSelectorContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DualListSelectorContext */ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorContext.js");








const DualListSelectorListItemBase = (_a) => {
    var { onOptionSelect, orderIndex, children, className, id = (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.getUniqueId)('dual-list-selector-list-item'), isSelected, innerRef, isDraggable = false, draggableButtonAriaLabel = 'Reorder option', isDisabled } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["onOptionSelect", "orderIndex", "children", "className", "id", "isSelected", "innerRef", "isDraggable", "draggableButtonAriaLabel", "isDisabled"]);
    const ref = innerRef || react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);
    const { setFocusedOption } = react__WEBPACK_IMPORTED_MODULE_0__.useContext(_DualListSelectorContext__WEBPACK_IMPORTED_MODULE_3__.DualListSelectorListContext);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_5__["default"].dualListSelectorListItem, className, isDisabled && _patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.disabled), key: orderIndex, onClick: isDisabled
            ? undefined
            : (e) => {
                setFocusedOption(id);
                onOptionSelect(e, id);
            }, onKeyDown: (e) => {
            if (e.key === ' ' || e.key === 'Enter') {
                document.activeElement.click();
                e.preventDefault();
            }
        }, "aria-selected": isSelected, id: id, ref: ref, role: "option", tabIndex: -1 }, props),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_5__["default"].dualListSelectorListItemRow, isSelected && _patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.selected) },
            isDraggable && !isDisabled && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_5__["default"].dualListSelectorDraggable) },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_6__.Button, { variant: _Button__WEBPACK_IMPORTED_MODULE_6__.ButtonVariant.plain, "aria-label": draggableButtonAriaLabel, component: "span" },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_grip_vertical_icon__WEBPACK_IMPORTED_MODULE_7__["default"], { style: { verticalAlign: '-0.3em' } })))),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_5__["default"].dualListSelectorItem) },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_5__["default"].dualListSelectorItemMain) },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_5__["default"].dualListSelectorItemText) }, children))))));
};
DualListSelectorListItemBase.displayName = 'DualListSelectorListItemBase';
const DualListSelectorListItem = react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((props, ref) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(DualListSelectorListItemBase, Object.assign({ innerRef: ref }, props))));
DualListSelectorListItem.displayName = 'DualListSelectorListItem';
//# sourceMappingURL=DualListSelectorListItem.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorListWrapper.js":
/*!*****************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorListWrapper.js ***!
  \*****************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DualListSelectorListWrapperBase": () => (/* binding */ DualListSelectorListWrapperBase),
/* harmony export */   "DualListSelectorListWrapper": () => (/* binding */ DualListSelectorListWrapper)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-styles/css/components/DualListSelector/dual-list-selector */ "./node_modules/@patternfly/react-styles/css/components/DualListSelector/dual-list-selector.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/KeyboardHandler.js");
/* harmony import */ var _DualListSelectorList__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./DualListSelectorList */ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorList.js");
/* harmony import */ var _DualListSelectorContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DualListSelectorContext */ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorContext.js");







const DualListSelectorListWrapperBase = (_a) => {
    var { className, children, 'aria-labelledby': ariaLabelledBy, innerRef, options = [], selectedOptions = [], onOptionSelect, displayOption, id = (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.getUniqueId)('dual-list-selector-list'), isDisabled = false } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["className", "children", 'aria-labelledby', "innerRef", "options", "selectedOptions", "onOptionSelect", "displayOption", "id", "isDisabled"]);
    const [focusedOption, setFocusedOption] = react__WEBPACK_IMPORTED_MODULE_0__.useState('');
    const menuRef = innerRef || react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);
    const { isTree } = react__WEBPACK_IMPORTED_MODULE_0__.useContext(_DualListSelectorContext__WEBPACK_IMPORTED_MODULE_3__.DualListSelectorContext);
    // sets up keyboard focus handling for the dual list selector menu child of the pane. This keyboard
    // handling is applied whether the pane is dynamically built or passed via the children prop.
    const handleKeys = (event) => {
        if (!menuRef.current ||
            (menuRef.current !== event.target.closest('.pf-c-dual-list-selector__menu') &&
                !Array.from(menuRef.current.getElementsByClassName('pf-c-dual-list-selector__menu')).includes(event.target.closest('.pf-c-dual-list-selector__menu')))) {
            return;
        }
        event.stopImmediatePropagation();
        const validOptions = isTree
            ? Array.from(menuRef.current.querySelectorAll('.pf-c-dual-list-selector__item-toggle, .pf-c-dual-list-selector__item-check > input'))
            : Array.from(menuRef.current.getElementsByTagName('LI')).filter(el => !el.classList.contains('pf-m-disabled'));
        const activeElement = document.activeElement;
        (0,_helpers__WEBPACK_IMPORTED_MODULE_4__.handleArrows)(event, validOptions, (element) => activeElement.contains(element), (element) => {
            if (element.classList.contains('.pf-c-dual-list-selector__list-item')) {
                setFocusedOption(element.id);
            }
            else {
                setFocusedOption(element.closest('.pf-c-dual-list-selector__list-item').id);
            }
            return element;
        }, ['.pf-c-dual-list-selector__item-toggle', '.pf-c-dual-list-selector__item-check > input'], undefined, false, false, false);
    };
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        window.addEventListener('keydown', handleKeys);
        return () => {
            window.removeEventListener('keydown', handleKeys);
        };
    }, [menuRef.current]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_6__["default"].dualListSelectorMenu, className), ref: menuRef, tabIndex: 0 }, props),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_DualListSelectorContext__WEBPACK_IMPORTED_MODULE_3__.DualListSelectorListContext.Provider, { value: {
                setFocusedOption,
                isTree,
                focusedOption,
                ariaLabelledBy,
                displayOption,
                selectedOptions,
                id,
                options,
                onOptionSelect,
                isDisabled
            } }, children ? children : react__WEBPACK_IMPORTED_MODULE_0__.createElement(_DualListSelectorList__WEBPACK_IMPORTED_MODULE_7__.DualListSelectorList, null))));
};
DualListSelectorListWrapperBase.displayName = 'DualListSelectorListWrapperBase';
const DualListSelectorListWrapper = react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((props, ref) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(DualListSelectorListWrapperBase, Object.assign({ innerRef: ref }, props))));
DualListSelectorListWrapper.displayName = 'DualListSelectorListWrapper';
//# sourceMappingURL=DualListSelectorListWrapper.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorPane.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorPane.js ***!
  \**********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DualListSelectorPane": () => (/* binding */ DualListSelectorPane)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles/css/components/DualListSelector/dual-list-selector */ "./node_modules/@patternfly/react-styles/css/components/DualListSelector/dual-list-selector.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_FormControl_form_control__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-styles/css/components/FormControl/form-control */ "./node_modules/@patternfly/react-styles/css/components/FormControl/form-control.js");
/* harmony import */ var _DualListSelectorTree__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./DualListSelectorTree */ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorTree.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");
/* harmony import */ var _DualListSelectorListWrapper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./DualListSelectorListWrapper */ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorListWrapper.js");
/* harmony import */ var _DualListSelectorContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DualListSelectorContext */ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorContext.js");
/* harmony import */ var _DualListSelectorList__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./DualListSelectorList */ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorList.js");










const DualListSelectorPane = (_a) => {
    var { isChosen = false, className = '', status = '', actions, searchInput, children, onOptionSelect, onOptionCheck, title = '', options = [], selectedOptions = [], isSearchable = false, searchInputAriaLabel = '', onFilterUpdate, onSearchInputChanged, filterOption, id = (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.getUniqueId)('dual-list-selector-pane'), isDisabled = false } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["isChosen", "className", "status", "actions", "searchInput", "children", "onOptionSelect", "onOptionCheck", "title", "options", "selectedOptions", "isSearchable", "searchInputAriaLabel", "onFilterUpdate", "onSearchInputChanged", "filterOption", "id", "isDisabled"]);
    const [input, setInput] = react__WEBPACK_IMPORTED_MODULE_0__.useState('');
    const { isTree } = react__WEBPACK_IMPORTED_MODULE_0__.useContext(_DualListSelectorContext__WEBPACK_IMPORTED_MODULE_3__.DualListSelectorContext);
    // only called when search input is dynamically built
    const onChange = (e) => {
        const newValue = e.target.value;
        let filtered;
        if (isTree) {
            filtered = options
                .map(opt => Object.assign({}, opt))
                .filter(item => filterInput(item, newValue));
        }
        else {
            filtered = options.filter(option => {
                if (displayOption(option)) {
                    return option;
                }
            });
        }
        onFilterUpdate(filtered, isChosen ? 'chosen' : 'available', newValue === '');
        if (onSearchInputChanged) {
            onSearchInputChanged(newValue, e);
        }
        setInput(newValue);
    };
    // only called when options are passed via options prop and isTree === true
    const filterInput = (item, input) => {
        if (filterOption) {
            return filterOption(item, input);
        }
        else {
            if (item.text.toLowerCase().includes(input.toLowerCase()) || input === '') {
                return true;
            }
        }
        if (item.children) {
            return ((item.children = item.children.map(opt => Object.assign({}, opt)).filter(child => filterInput(child, input)))
                .length > 0);
        }
    };
    // only called when options are passed via options prop and isTree === false
    const displayOption = (option) => {
        if (filterOption) {
            return filterOption(option, input);
        }
        else {
            return option
                .toString()
                .toLowerCase()
                .includes(input.toLowerCase());
        }
    };
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_5__["default"].dualListSelectorPane, isChosen ? _patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.chosen : 'pf-m-available', className) }, props),
        title && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_5__["default"].dualListSelectorHeader) },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: "pf-c-dual-list-selector__title" },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_5__["default"].dualListSelectorTitleText) }, title)))),
        (actions || searchInput || isSearchable) && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_5__["default"].dualListSelectorTools) },
            (isSearchable || searchInput) && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_5__["default"].dualListSelectorToolsFilter) }, searchInput ? (searchInput) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_FormControl_form_control__WEBPACK_IMPORTED_MODULE_6__["default"].formControl, _patternfly_react_styles_css_components_FormControl_form_control__WEBPACK_IMPORTED_MODULE_6__["default"].modifiers.search), type: "search", onChange: isDisabled ? undefined : onChange, "aria-label": searchInputAriaLabel, disabled: isDisabled })))),
            actions && react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_5__["default"].dualListSelectorToolsActions) }, actions))),
        status && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_5__["default"].dualListSelectorStatus) },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_5__["default"].dualListSelectorStatusText), id: `${id}-status` }, status))),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_DualListSelectorContext__WEBPACK_IMPORTED_MODULE_3__.DualListSelectorPaneContext.Provider, { value: { isChosen } },
            !isTree && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_DualListSelectorListWrapper__WEBPACK_IMPORTED_MODULE_7__.DualListSelectorListWrapper, { "aria-labelledby": `${id}-status`, options: options, selectedOptions: selectedOptions, onOptionSelect: (e, index, id) => onOptionSelect(e, index, isChosen, id), displayOption: displayOption, id: `${id}-list`, isDisabled: isDisabled }, children)),
            isTree && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_DualListSelectorListWrapper__WEBPACK_IMPORTED_MODULE_7__.DualListSelectorListWrapper, { "aria-labelledby": `${id}-status`, id: `${id}-list` }, options.length > 0 ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_DualListSelectorList__WEBPACK_IMPORTED_MODULE_8__.DualListSelectorList, null,
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_DualListSelectorTree__WEBPACK_IMPORTED_MODULE_9__.DualListSelectorTree, { data: isSearchable
                        ? options
                            .map(opt => Object.assign({}, opt))
                            .filter(item => filterInput(item, input))
                        : options, onOptionCheck: onOptionCheck, id: `${id}-tree`, isDisabled: isDisabled }))) : (children))))));
};
DualListSelectorPane.displayName = 'DualListSelectorPane';
//# sourceMappingURL=DualListSelectorPane.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorTree.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorTree.js ***!
  \**********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DualListSelectorTree": () => (/* binding */ DualListSelectorTree)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/DualListSelector/dual-list-selector */ "./node_modules/@patternfly/react-styles/css/components/DualListSelector/dual-list-selector.js");
/* harmony import */ var _DualListSelectorTreeItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DualListSelectorTreeItem */ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorTreeItem.js");





const DualListSelectorTree = (_a) => {
    var { data, hasBadges = false, isNested = false, defaultAllExpanded = false, onOptionCheck, isDisabled = false } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["data", "hasBadges", "isNested", "defaultAllExpanded", "onOptionCheck", "isDisabled"]);
    const dataToRender = typeof data === 'function' ? data() : data;
    const tree = dataToRender.map(item => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_DualListSelectorTreeItem__WEBPACK_IMPORTED_MODULE_2__.DualListSelectorTreeItem, Object.assign({ key: item.id, text: item.text, id: item.id, defaultExpanded: item.defaultExpanded !== undefined ? item.defaultExpanded : defaultAllExpanded, onOptionCheck: onOptionCheck, isChecked: item.isChecked, checkProps: item.checkProps, hasBadge: item.hasBadge !== undefined ? item.hasBadge : hasBadges, badgeProps: item.badgeProps, itemData: item, isDisabled: isDisabled, useMemo: true }, (item.children && {
        children: (react__WEBPACK_IMPORTED_MODULE_0__.createElement(DualListSelectorTree, { isNested: true, data: item.children, hasBadges: hasBadges, defaultAllExpanded: defaultAllExpanded, onOptionCheck: onOptionCheck, isDisabled: isDisabled }))
    })))));
    return isNested ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement("ul", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_4__["default"].dualListSelectorList), role: "group" }, props), tree)) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, tree));
};
DualListSelectorTree.displayName = 'DualListSelectorTree';
//# sourceMappingURL=DualListSelectorTree.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorTreeItem.js":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorTreeItem.js ***!
  \**************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DualListSelectorTreeItem": () => (/* binding */ DualListSelectorTreeItem)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/DualListSelector/dual-list-selector */ "./node_modules/@patternfly/react-styles/css/components/DualListSelector/dual-list-selector.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _Badge__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Badge */ "./node_modules/@patternfly/react-core/dist/esm/components/Badge/Badge.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-right-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-right-icon.js");
/* harmony import */ var _treeUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./treeUtils */ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/treeUtils.js");
/* harmony import */ var _DualListSelectorContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DualListSelectorContext */ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelectorContext.js");








const DualListSelectorTreeItemBase = (_a) => {
    var { onOptionCheck, children, className, id, text, defaultExpanded, hasBadge, isChecked, checkProps, badgeProps, itemData, isDisabled = false, 
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    useMemo } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["onOptionCheck", "children", "className", "id", "text", "defaultExpanded", "hasBadge", "isChecked", "checkProps", "badgeProps", "itemData", "isDisabled", "useMemo"]);
    const ref = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);
    const [isExpanded, setIsExpanded] = react__WEBPACK_IMPORTED_MODULE_0__.useState(defaultExpanded || false);
    const { setFocusedOption } = react__WEBPACK_IMPORTED_MODULE_0__.useContext(_DualListSelectorContext__WEBPACK_IMPORTED_MODULE_2__.DualListSelectorListContext);
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        setIsExpanded(defaultExpanded);
    }, [defaultExpanded]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_4__["default"].dualListSelectorListItem, className, children && _patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.expandable, isExpanded && _patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.expanded, isDisabled && _patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.disabled), id: id }, props, { "aria-selected": isChecked, role: "treeitem" }, (isExpanded && { 'aria-expanded': 'true' })),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_4__["default"].dualListSelectorListItemRow, isChecked && _patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.selected, _patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.check) },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_4__["default"].dualListSelectorItem), ref: ref, tabIndex: -1, onClick: isDisabled
                    ? undefined
                    : evt => {
                        onOptionCheck && onOptionCheck(evt, !isChecked, itemData);
                        setFocusedOption(id);
                    } },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_4__["default"].dualListSelectorItemMain) },
                    children && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_4__["default"].dualListSelectorItemToggle), onClick: e => {
                            if (children) {
                                setIsExpanded(!isExpanded);
                            }
                            e.stopPropagation();
                        }, onKeyDown: (e) => {
                            if (e.key === ' ' || e.key === 'Enter') {
                                document.activeElement.click();
                                e.preventDefault();
                            }
                        }, tabIndex: -1 },
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_4__["default"].dualListSelectorItemToggleIcon) },
                            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_5__["default"], { "aria-hidden": true })))),
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_4__["default"].dualListSelectorItemCheck) },
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", Object.assign({ type: "checkbox", onChange: (evt) => {
                                onOptionCheck && onOptionCheck(evt, !isChecked, itemData);
                                setFocusedOption(id);
                            }, onClick: (evt) => evt.stopPropagation(), onKeyDown: (e) => {
                                if (e.key === ' ' || e.key === 'Enter') {
                                    onOptionCheck && onOptionCheck(e, !isChecked, itemData);
                                    setFocusedOption(id);
                                    e.preventDefault();
                                }
                            }, ref: elem => elem && (elem.indeterminate = isChecked === null), checked: isChecked || false, tabIndex: -1 }, checkProps))),
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_4__["default"].dualListSelectorItemText) }, text),
                    hasBadge && children && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_DualListSelector_dual_list_selector__WEBPACK_IMPORTED_MODULE_4__["default"].dualListSelectorItemCount) },
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Badge__WEBPACK_IMPORTED_MODULE_6__.Badge, Object.assign({}, badgeProps), (0,_treeUtils__WEBPACK_IMPORTED_MODULE_7__.flattenTree)(children.props.data).length)))))),
        isExpanded && children));
};
const DualListSelectorTreeItem = react__WEBPACK_IMPORTED_MODULE_0__.memo(DualListSelectorTreeItemBase, (prevProps, nextProps) => {
    if (!nextProps.useMemo) {
        return false;
    }
    if (prevProps.className !== nextProps.className ||
        prevProps.text !== nextProps.text ||
        prevProps.id !== nextProps.id ||
        prevProps.defaultExpanded !== nextProps.defaultExpanded ||
        prevProps.checkProps !== nextProps.checkProps ||
        prevProps.hasBadge !== nextProps.hasBadge ||
        prevProps.badgeProps !== nextProps.badgeProps ||
        prevProps.isChecked !== nextProps.isChecked ||
        prevProps.itemData !== nextProps.itemData) {
        return false;
    }
    return true;
});
DualListSelectorTreeItem.displayName = 'DualListSelectorTreeItem';
//# sourceMappingURL=DualListSelectorTreeItem.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/treeUtils.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/treeUtils.js ***!
  \***********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "flattenTree": () => (/* binding */ flattenTree),
/* harmony export */   "flattenTreeWithFolders": () => (/* binding */ flattenTreeWithFolders),
/* harmony export */   "filterFolders": () => (/* binding */ filterFolders),
/* harmony export */   "filterTreeItems": () => (/* binding */ filterTreeItems),
/* harmony export */   "filterTreeItemsWithoutFolders": () => (/* binding */ filterTreeItemsWithoutFolders),
/* harmony export */   "filterRestTreeItems": () => (/* binding */ filterRestTreeItems)
/* harmony export */ });
function flattenTree(tree) {
    let result = [];
    tree.forEach(item => {
        if (item.children) {
            result = result.concat(flattenTree(item.children));
        }
        else {
            result.push(item.id);
        }
    });
    return result;
}
function flattenTreeWithFolders(tree) {
    let result = [];
    tree.forEach(item => {
        result.push(item.id);
        if (item.children) {
            result = result.concat(flattenTreeWithFolders(item.children));
        }
    });
    return result;
}
function filterFolders(tree, inputList) {
    let result = [];
    tree.forEach(item => {
        if (item.children) {
            result = result.concat(filterFolders(item.children, inputList));
        }
        else {
            if (inputList.includes(item.id)) {
                result.push(item.id);
            }
        }
    });
    return result;
}
function filterTreeItems(item, inputList) {
    if (inputList.includes(item.id)) {
        return true;
    }
    if (item.children) {
        return ((item.children = item.children
            .map(opt => Object.assign({}, opt))
            .filter(child => filterTreeItems(child, inputList))).length > 0);
    }
}
function filterTreeItemsWithoutFolders(item, inputList) {
    if (item.children) {
        return ((item.children = item.children
            .map(opt => Object.assign({}, opt))
            .filter(child => child.children ? filterTreeItemsWithoutFolders(child, inputList) : filterTreeItems(child, inputList))).length > 0);
    }
    if (inputList.includes(item.id)) {
        return true;
    }
}
function filterRestTreeItems(item, inputList) {
    if (item.children) {
        const child = (item.children = item.children
            .map(opt => Object.assign({}, opt))
            .filter(child => filterRestTreeItems(child, inputList))).length > 0;
        return child;
    }
    if (!inputList.includes(item.id)) {
        return true;
    }
}
//# sourceMappingURL=treeUtils.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/EmptyState/EmptyState.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/EmptyState/EmptyState.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "EmptyStateVariant": () => (/* binding */ EmptyStateVariant),
/* harmony export */   "EmptyState": () => (/* binding */ EmptyState)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_EmptyState_empty_state__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/EmptyState/empty-state */ "./node_modules/@patternfly/react-styles/css/components/EmptyState/empty-state.js");




var EmptyStateVariant;
(function (EmptyStateVariant) {
    EmptyStateVariant["xs"] = "xs";
    EmptyStateVariant["small"] = "small";
    EmptyStateVariant["large"] = "large";
    EmptyStateVariant["xl"] = "xl";
    EmptyStateVariant["full"] = "full";
})(EmptyStateVariant || (EmptyStateVariant = {}));
const EmptyState = (_a) => {
    var { children, className = '', variant = EmptyStateVariant.full, isFullHeight } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "variant", "isFullHeight"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_EmptyState_empty_state__WEBPACK_IMPORTED_MODULE_3__["default"].emptyState, variant === 'xs' && _patternfly_react_styles_css_components_EmptyState_empty_state__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.xs, variant === 'small' && _patternfly_react_styles_css_components_EmptyState_empty_state__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.sm, variant === 'large' && _patternfly_react_styles_css_components_EmptyState_empty_state__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.lg, variant === 'xl' && _patternfly_react_styles_css_components_EmptyState_empty_state__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.xl, isFullHeight && _patternfly_react_styles_css_components_EmptyState_empty_state__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.fullHeight, className) }, props),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_EmptyState_empty_state__WEBPACK_IMPORTED_MODULE_3__["default"].emptyStateContent) }, children)));
};
EmptyState.displayName = 'EmptyState';
//# sourceMappingURL=EmptyState.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/EmptyState/EmptyStateBody.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/EmptyState/EmptyStateBody.js ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "EmptyStateBody": () => (/* binding */ EmptyStateBody)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_EmptyState_empty_state__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/EmptyState/empty-state */ "./node_modules/@patternfly/react-styles/css/components/EmptyState/empty-state.js");




const EmptyStateBody = (_a) => {
    var { children, className = '' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_EmptyState_empty_state__WEBPACK_IMPORTED_MODULE_3__["default"].emptyStateBody, className) }, props), children));
};
EmptyStateBody.displayName = 'EmptyStateBody';
//# sourceMappingURL=EmptyStateBody.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/EmptyState/EmptyStateIcon.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/EmptyState/EmptyStateIcon.js ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "EmptyStateIcon": () => (/* binding */ EmptyStateIcon)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_EmptyState_empty_state__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/EmptyState/empty-state */ "./node_modules/@patternfly/react-styles/css/components/EmptyState/empty-state.js");




const EmptyStateIcon = (_a) => {
    var { className = '', icon: IconComponent, component: AnyComponent, variant = 'icon' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "icon", "component", "variant"]);
    const classNames = (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_EmptyState_empty_state__WEBPACK_IMPORTED_MODULE_3__["default"].emptyStateIcon, className);
    return variant === 'icon' ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(IconComponent, Object.assign({ className: classNames }, props, { "aria-hidden": "true" }))) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: classNames },
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(AnyComponent, null)));
};
EmptyStateIcon.displayName = 'EmptyStateIcon';
//# sourceMappingURL=EmptyStateIcon.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/ExpandableSection/ExpandableSection.js":
/*!********************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/ExpandableSection/ExpandableSection.js ***!
  \********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ExpandableSection": () => (/* binding */ ExpandableSection)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_ExpandableSection_expandable_section__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/ExpandableSection/expandable-section */ "./node_modules/@patternfly/react-styles/css/components/ExpandableSection/expandable-section.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-right-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-right-icon.js");





class ExpandableSection extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor(props) {
        super(props);
        this.state = {
            isExpanded: props.isExpanded
        };
    }
    calculateToggleText(toggleText, toggleTextExpanded, toggleTextCollapsed, propOrStateIsExpanded) {
        if (propOrStateIsExpanded && toggleTextExpanded !== '') {
            return toggleTextExpanded;
        }
        if (!propOrStateIsExpanded && toggleTextCollapsed !== '') {
            return toggleTextCollapsed;
        }
        return toggleText;
    }
    render() {
        const _a = this.props, { onToggle: onToggleProp, 
        // eslint-disable-next-line @typescript-eslint/no-unused-vars
        isActive, className, toggleText, toggleTextExpanded, toggleTextCollapsed, children, isExpanded, isDetached, displaySize, isWidthLimited, contentId } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["onToggle", "isActive", "className", "toggleText", "toggleTextExpanded", "toggleTextCollapsed", "children", "isExpanded", "isDetached", "displaySize", "isWidthLimited", "contentId"]);
        let onToggle = onToggleProp;
        let propOrStateIsExpanded = isExpanded;
        // uncontrolled
        if (isExpanded === undefined) {
            propOrStateIsExpanded = this.state.isExpanded;
            onToggle = isOpen => {
                this.setState({ isExpanded: isOpen }, () => onToggleProp(this.state.isExpanded));
            };
        }
        const computedToggleText = this.calculateToggleText(toggleText, toggleTextExpanded, toggleTextCollapsed, propOrStateIsExpanded);
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({}, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ExpandableSection_expandable_section__WEBPACK_IMPORTED_MODULE_3__["default"].expandableSection, propOrStateIsExpanded && _patternfly_react_styles_css_components_ExpandableSection_expandable_section__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.expanded, isActive && _patternfly_react_styles_css_components_ExpandableSection_expandable_section__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.active, isDetached && _patternfly_react_styles_css_components_ExpandableSection_expandable_section__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.detached, displaySize === 'large' && _patternfly_react_styles_css_components_ExpandableSection_expandable_section__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.displayLg, isWidthLimited && _patternfly_react_styles_css_components_ExpandableSection_expandable_section__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.limitWidth, className) }),
            !isDetached && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ExpandableSection_expandable_section__WEBPACK_IMPORTED_MODULE_3__["default"].expandableSectionToggle), type: "button", "aria-expanded": propOrStateIsExpanded, onClick: () => onToggle(!propOrStateIsExpanded) },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ExpandableSection_expandable_section__WEBPACK_IMPORTED_MODULE_3__["default"].expandableSectionToggleIcon) },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_4__["default"], { "aria-hidden": true })),
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ExpandableSection_expandable_section__WEBPACK_IMPORTED_MODULE_3__["default"].expandableSectionToggleText) }, computedToggleText))),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ExpandableSection_expandable_section__WEBPACK_IMPORTED_MODULE_3__["default"].expandableSectionContent), hidden: !propOrStateIsExpanded, id: contentId }, children)));
    }
}
ExpandableSection.displayName = 'ExpandableSection';
ExpandableSection.defaultProps = {
    className: '',
    toggleText: '',
    toggleTextExpanded: '',
    toggleTextCollapsed: '',
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    onToggle: (isExpanded) => undefined,
    isActive: false,
    isDetached: false,
    displaySize: 'default',
    isWidthLimited: false,
    contentId: ''
};
//# sourceMappingURL=ExpandableSection.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/FileUpload/FileUpload.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/FileUpload/FileUpload.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "FileUpload": () => (/* binding */ FileUpload)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react_dropzone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dropzone */ "./node_modules/react-dropzone/dist/es/index.js");
/* harmony import */ var _FileUploadField__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./FileUploadField */ "./node_modules/@patternfly/react-core/dist/esm/components/FileUpload/FileUploadField.js");
/* harmony import */ var _helpers_fileUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/fileUtils */ "./node_modules/@patternfly/react-core/dist/esm/helpers/fileUtils.js");
/* harmony import */ var file_selector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! file-selector */ "./node_modules/file-selector/dist/es5/index.js");






const FileUpload = (_a) => {
    var { id, type, value = type === _helpers_fileUtils__WEBPACK_IMPORTED_MODULE_3__.fileReaderType.text || type === _helpers_fileUtils__WEBPACK_IMPORTED_MODULE_3__.fileReaderType.dataURL ? '' : null, filename = '', children = null, onChange = () => { }, onFileInputChange = null, onReadStarted = () => { }, onReadFinished = () => { }, onReadFailed = () => { }, onClearClick, onClick = event => event.preventDefault(), onTextChange, onDataChange, dropzoneProps = {} } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__rest)(_a, ["id", "type", "value", "filename", "children", "onChange", "onFileInputChange", "onReadStarted", "onReadFinished", "onReadFailed", "onClearClick", "onClick", "onTextChange", "onDataChange", "dropzoneProps"]);
    const onDropAccepted = (acceptedFiles, event) => {
        if (acceptedFiles.length > 0) {
            const fileHandle = acceptedFiles[0];
            if (event.type === 'drop') {
                onFileInputChange === null || onFileInputChange === void 0 ? void 0 : onFileInputChange(event, fileHandle);
            }
            if (type === _helpers_fileUtils__WEBPACK_IMPORTED_MODULE_3__.fileReaderType.text || type === _helpers_fileUtils__WEBPACK_IMPORTED_MODULE_3__.fileReaderType.dataURL) {
                onChange('', fileHandle.name, event); // Show the filename while reading
                onReadStarted(fileHandle);
                (0,_helpers_fileUtils__WEBPACK_IMPORTED_MODULE_3__.readFile)(fileHandle, type)
                    .then(data => {
                    onReadFinished(fileHandle);
                    onChange(data, fileHandle.name, event);
                    onDataChange === null || onDataChange === void 0 ? void 0 : onDataChange(data);
                })
                    .catch((error) => {
                    onReadFailed(error, fileHandle);
                    onReadFinished(fileHandle);
                    onChange('', '', event); // Clear the filename field on a failure
                    onDataChange === null || onDataChange === void 0 ? void 0 : onDataChange('');
                });
            }
            else {
                onChange(fileHandle, fileHandle.name, event);
            }
        }
        dropzoneProps.onDropAccepted && dropzoneProps.onDropAccepted(acceptedFiles, event);
    };
    const onDropRejected = (rejectedFiles, event) => {
        if (rejectedFiles.length > 0) {
            onChange('', rejectedFiles[0].name, event);
        }
        dropzoneProps.onDropRejected && dropzoneProps.onDropRejected(rejectedFiles, event);
    };
    const fileInputRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef();
    const setFileValue = (filename) => {
        fileInputRef.current.value = filename;
    };
    const onClearButtonClick = (event) => {
        onChange('', '', event);
        onClearClick === null || onClearClick === void 0 ? void 0 : onClearClick(event);
        setFileValue(null);
    };
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_dropzone__WEBPACK_IMPORTED_MODULE_1__["default"], Object.assign({ multiple: false }, dropzoneProps, { onDropAccepted: onDropAccepted, onDropRejected: onDropRejected }), ({ getRootProps, getInputProps, isDragActive, open }) => {
        const oldInputProps = getInputProps();
        const inputProps = Object.assign(Object.assign({}, oldInputProps), { onChange: (e) => (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__awaiter)(void 0, void 0, void 0, function* () {
                var _a;
                (_a = oldInputProps.onChange) === null || _a === void 0 ? void 0 : _a.call(oldInputProps, e);
                const files = yield (0,file_selector__WEBPACK_IMPORTED_MODULE_2__.fromEvent)(e.nativeEvent);
                if (files.length === 1) {
                    onFileInputChange === null || onFileInputChange === void 0 ? void 0 : onFileInputChange(e, files[0]);
                }
            }) });
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FileUploadField__WEBPACK_IMPORTED_MODULE_5__.FileUploadField, Object.assign({}, getRootProps(Object.assign(Object.assign({}, props), { refKey: 'containerRef', onClick: event => event.preventDefault() })), { tabIndex: null, id: id, type: type, filename: filename, value: value, onChange: onChange, isDragActive: isDragActive, onBrowseButtonClick: open, onClearButtonClick: onClearButtonClick, onTextAreaClick: onClick, onTextChange: onTextChange }),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", Object.assign({}, inputProps, { ref: input => {
                    fileInputRef.current = input;
                    inputProps.ref(input);
                } })),
            children));
    }));
};
FileUpload.displayName = 'FileUpload';
//# sourceMappingURL=FileUpload.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/FileUpload/FileUploadField.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/FileUpload/FileUploadField.js ***!
  \***********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "FileUploadField": () => (/* binding */ FileUploadField)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_FileUpload_file_upload__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/FileUpload/file-upload */ "./node_modules/@patternfly/react-styles/css/components/FileUpload/file-upload.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _InputGroup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../InputGroup */ "./node_modules/@patternfly/react-core/dist/esm/components/InputGroup/InputGroup.js");
/* harmony import */ var _TextInput__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../TextInput */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _TextArea__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../TextArea */ "./node_modules/@patternfly/react-core/dist/esm/components/TextArea/TextArea.js");
/* harmony import */ var _Spinner__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Spinner */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _helpers_fileUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../helpers/fileUtils */ "./node_modules/@patternfly/react-core/dist/esm/helpers/fileUtils.js");










const FileUploadField = (_a) => {
    var { id, type, value = '', filename = '', onChange = () => { }, onBrowseButtonClick = () => { }, onClearButtonClick = () => { }, onTextAreaClick, onTextChange, className = '', isDisabled = false, isReadOnly = false, isLoading = false, spinnerAriaValueText, isRequired = false, isDragActive = false, validated = 'default', 'aria-label': ariaLabel = 'File upload', filenamePlaceholder = 'Drag a file here or browse to upload', filenameAriaLabel = filename ? 'Read only filename' : filenamePlaceholder, browseButtonText = 'Browse...', clearButtonText = 'Clear', isClearButtonDisabled = !filename && !value, containerRef = null, allowEditingUploadedText = false, hideDefaultPreview = false, children = null } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["id", "type", "value", "filename", "onChange", "onBrowseButtonClick", "onClearButtonClick", "onTextAreaClick", "onTextChange", "className", "isDisabled", "isReadOnly", "isLoading", "spinnerAriaValueText", "isRequired", "isDragActive", "validated", 'aria-label', "filenamePlaceholder", "filenameAriaLabel", "browseButtonText", "clearButtonText", "isClearButtonDisabled", "containerRef", "allowEditingUploadedText", "hideDefaultPreview", "children"]);
    const onTextAreaChange = (newValue, event) => {
        onChange(newValue, filename, event);
        onTextChange === null || onTextChange === void 0 ? void 0 : onTextChange(newValue);
    };
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_FileUpload_file_upload__WEBPACK_IMPORTED_MODULE_3__["default"].fileUpload, isDragActive && _patternfly_react_styles_css_components_FileUpload_file_upload__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.dragHover, isLoading && _patternfly_react_styles_css_components_FileUpload_file_upload__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.loading, className), ref: containerRef }, props),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: _patternfly_react_styles_css_components_FileUpload_file_upload__WEBPACK_IMPORTED_MODULE_3__["default"].fileUploadFileSelect },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_InputGroup__WEBPACK_IMPORTED_MODULE_4__.InputGroup, null,
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TextInput__WEBPACK_IMPORTED_MODULE_5__.TextInput, { isReadOnly // Always read-only regardless of isReadOnly prop (which is just for the TextArea)
                    : true, isDisabled: isDisabled, id: `${id}-filename`, name: `${id}-filename`, "aria-label": filenameAriaLabel, placeholder: filenamePlaceholder, "aria-describedby": `${id}-browse-button`, value: filename }),
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_6__.Button, { id: `${id}-browse-button`, variant: _Button__WEBPACK_IMPORTED_MODULE_6__.ButtonVariant.control, onClick: onBrowseButtonClick, isDisabled: isDisabled }, browseButtonText),
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_6__.Button, { variant: _Button__WEBPACK_IMPORTED_MODULE_6__.ButtonVariant.control, isDisabled: isDisabled || isClearButtonDisabled, onClick: onClearButtonClick }, clearButtonText))),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: _patternfly_react_styles_css_components_FileUpload_file_upload__WEBPACK_IMPORTED_MODULE_3__["default"].fileUploadFileDetails },
            !hideDefaultPreview && type === _helpers_fileUtils__WEBPACK_IMPORTED_MODULE_7__.fileReaderType.text && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TextArea__WEBPACK_IMPORTED_MODULE_8__.TextArea, { readOnly: isReadOnly || (!!filename && !allowEditingUploadedText), disabled: isDisabled, isRequired: isRequired, resizeOrientation: _TextArea__WEBPACK_IMPORTED_MODULE_8__.TextAreResizeOrientation.vertical, validated: validated, id: id, name: id, "aria-label": ariaLabel, value: value, onChange: onTextAreaChange, onClick: onTextAreaClick })),
            isLoading && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: _patternfly_react_styles_css_components_FileUpload_file_upload__WEBPACK_IMPORTED_MODULE_3__["default"].fileUploadFileDetailsSpinner },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Spinner__WEBPACK_IMPORTED_MODULE_9__.Spinner, { size: _Spinner__WEBPACK_IMPORTED_MODULE_9__.spinnerSize.lg, "aria-valuetext": spinnerAriaValueText })))),
        children));
};
FileUploadField.displayName = 'FileUploadField';
//# sourceMappingURL=FileUploadField.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Form/ActionGroup.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Form/ActionGroup.js ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ActionGroup": () => (/* binding */ ActionGroup)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Form/form */ "./node_modules/@patternfly/react-styles/css/components/Form/form.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");




const ActionGroup = (_a) => {
    var { children = null, className = '' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className"]);
    const customClassName = (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].formGroup, _patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.action, className);
    const formActionsComponent = react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].formActions) }, children);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({}, props, { className: customClassName }),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].formGroupControl) }, formActionsComponent)));
};
ActionGroup.displayName = 'ActionGroup';
//# sourceMappingURL=ActionGroup.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js":
/*!******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Form": () => (/* binding */ Form)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Form/form */ "./node_modules/@patternfly/react-styles/css/components/Form/form.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");




const Form = (_a) => {
    var { children = null, className = '', isHorizontal = false, isWidthLimited = false } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "isHorizontal", "isWidthLimited"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("form", Object.assign({ noValidate: true }, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].form, isHorizontal && _patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.horizontal, isWidthLimited && _patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.limitWidth, className) }), children));
};
Form.displayName = 'Form';
//# sourceMappingURL=Form.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormAlert.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Form/FormAlert.js ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "FormAlert": () => (/* binding */ FormAlert)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");



const FormAlert = (_a) => {
    var { children = null, className = '' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className"]);
    return (
    // There are currently no associated styles with the pf-c-form_alert class.
    // Therefore, it does not exist in react-styles
    react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({}, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)('pf-c-form__alert', className) }), children));
};
FormAlert.displayName = 'FormAlert';
//# sourceMappingURL=FormAlert.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormGroup.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Form/FormGroup.js ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "FormGroup": () => (/* binding */ FormGroup)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Form/form */ "./node_modules/@patternfly/react-styles/css/components/Form/form.js");
/* harmony import */ var _helpers_htmlConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers/htmlConstants */ "./node_modules/@patternfly/react-core/dist/esm/helpers/htmlConstants.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _helpers_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/constants */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");






const FormGroup = (_a) => {
    var { children = null, className = '', label, labelInfo, labelIcon, isRequired = false, validated = 'default', isInline = false, hasNoPaddingTop = false, isStack = false, helperText, isHelperTextBeforeField = false, helperTextInvalid, helperTextIcon, helperTextInvalidIcon, fieldId } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "label", "labelInfo", "labelIcon", "isRequired", "validated", "isInline", "hasNoPaddingTop", "isStack", "helperText", "isHelperTextBeforeField", "helperTextInvalid", "helperTextIcon", "helperTextInvalidIcon", "fieldId"]);
    const validHelperText = typeof helperText !== 'string' ? (helperText) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].formHelperText, validated === _helpers_constants__WEBPACK_IMPORTED_MODULE_4__.ValidatedOptions.success && _patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.success, validated === _helpers_constants__WEBPACK_IMPORTED_MODULE_4__.ValidatedOptions.warning && _patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.warning), id: `${fieldId}-helper`, "aria-live": "polite" },
        helperTextIcon && react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].formHelperTextIcon) }, helperTextIcon),
        helperText));
    const inValidHelperText = typeof helperTextInvalid !== 'string' ? (helperTextInvalid) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].formHelperText, _patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.error), id: `${fieldId}-helper`, "aria-live": "polite" },
        helperTextInvalidIcon && react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].formHelperTextIcon) }, helperTextInvalidIcon),
        helperTextInvalid));
    const showValidHelperTxt = (validationType) => validationType !== _helpers_constants__WEBPACK_IMPORTED_MODULE_4__.ValidatedOptions.error && helperText ? validHelperText : '';
    const helperTextToDisplay = validated === _helpers_constants__WEBPACK_IMPORTED_MODULE_4__.ValidatedOptions.error && helperTextInvalid ? inValidHelperText : showValidHelperTxt(validated);
    const labelContent = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("label", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].formLabel), htmlFor: fieldId },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].formLabelText) }, label),
            isRequired && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].formLabelRequired), "aria-hidden": "true" },
                ' ',
                _helpers_htmlConstants__WEBPACK_IMPORTED_MODULE_5__.ASTERISK))),
        ' ',
        react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(labelIcon) && labelIcon));
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({}, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].formGroup, className) }),
        label && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].formGroupLabel, labelInfo && _patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.info, hasNoPaddingTop && _patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.noPaddingTop) },
            labelInfo && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].formGroupLabelMain) }, labelContent),
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].formGroupLabelInfo) }, labelInfo))),
            !labelInfo && labelContent)),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].formGroupControl, isInline && _patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.inline, isStack && _patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.stack) },
            isHelperTextBeforeField && helperTextToDisplay,
            children,
            !isHelperTextBeforeField && helperTextToDisplay)));
};
FormGroup.displayName = 'FormGroup';
//# sourceMappingURL=FormGroup.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormHelperText.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Form/FormHelperText.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "FormHelperText": () => (/* binding */ FormHelperText)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Form/form */ "./node_modules/@patternfly/react-styles/css/components/Form/form.js");




const FormHelperText = (_a) => {
    var { children = null, isError = false, isHidden = true, className = '', icon = null, component = 'p' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "isError", "isHidden", "className", "icon", "component"]);
    const Component = component;
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].formHelperText, isError && _patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.error, isHidden && _patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.hidden, className) }, props),
        icon && react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_3__["default"].formHelperTextIcon) }, icon),
        children));
};
FormHelperText.displayName = 'FormHelperText';
//# sourceMappingURL=FormHelperText.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "FormSelect": () => (/* binding */ FormSelect)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_FormControl_form_control__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/FormControl/form-control */ "./node_modules/@patternfly/react-styles/css/components/FormControl/form-control.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _helpers_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers/constants */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");






class FormSelect extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor(props) {
        super(props);
        this.handleChange = (event) => {
            this.props.onChange(event.currentTarget.value, event);
        };
        if (!props.id && !props['aria-label']) {
            // eslint-disable-next-line no-console
            console.error('FormSelect requires either an id or aria-label to be specified');
        }
        this.state = {
            ouiaStateId: (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.getDefaultOUIAId)(FormSelect.displayName, props.validated)
        };
    }
    render() {
        const _a = this.props, { children, className, value, validated, isDisabled, isRequired, ouiaId, ouiaSafe } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["children", "className", "value", "validated", "isDisabled", "isRequired", "ouiaId", "ouiaSafe"]);
        /* find selected option and get placeholder flag */
        const selectedOption = react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(children).find((option) => option.props.value === value);
        const isSelectedPlaceholder = selectedOption && selectedOption.props.isPlaceholder;
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("select", Object.assign({}, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_FormControl_form_control__WEBPACK_IMPORTED_MODULE_4__["default"].formControl, className, validated === _helpers_constants__WEBPACK_IMPORTED_MODULE_5__.ValidatedOptions.success && _patternfly_react_styles_css_components_FormControl_form_control__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.success, validated === _helpers_constants__WEBPACK_IMPORTED_MODULE_5__.ValidatedOptions.warning && _patternfly_react_styles_css_components_FormControl_form_control__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.warning, isSelectedPlaceholder && _patternfly_react_styles_css_components_FormControl_form_control__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.placeholder), "aria-invalid": validated === _helpers_constants__WEBPACK_IMPORTED_MODULE_5__.ValidatedOptions.error }, (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.getOUIAProps)(FormSelect.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), { onChange: this.handleChange, disabled: isDisabled, required: isRequired, value: value }), children));
    }
}
FormSelect.displayName = 'FormSelect';
FormSelect.defaultProps = {
    className: '',
    value: '',
    validated: 'default',
    isDisabled: false,
    isRequired: false,
    onBlur: () => undefined,
    onFocus: () => undefined,
    onChange: () => undefined,
    ouiaSafe: true
};
//# sourceMappingURL=FormSelect.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js ***!
  \************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "FormSelectOption": () => (/* binding */ FormSelectOption)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");


const FormSelectOption = (_a) => {
    var { className = '', value = '', isDisabled = false, label, 
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    isPlaceholder = false } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "value", "isDisabled", "label", "isPlaceholder"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("option", Object.assign({}, props, { className: className, value: value, disabled: isDisabled }), label));
};
FormSelectOption.displayName = 'FormSelectOption';
//# sourceMappingURL=FormSelectOption.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/HelperText/HelperText.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/HelperText/HelperText.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "HelperText": () => (/* binding */ HelperText)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_HelperText_helper_text__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/HelperText/helper-text */ "./node_modules/@patternfly/react-styles/css/components/HelperText/helper-text.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");




const HelperText = (_a) => {
    var { children, className, component = 'div' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "component"]);
    const Component = component;
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_HelperText_helper_text__WEBPACK_IMPORTED_MODULE_3__["default"].helperText, className) }, props), children));
};
HelperText.displayName = 'HelperText';
//# sourceMappingURL=HelperText.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/HelperText/HelperTextItem.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/HelperText/HelperTextItem.js ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "HelperTextItem": () => (/* binding */ HelperTextItem)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_HelperText_helper_text__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles/css/components/HelperText/helper-text */ "./node_modules/@patternfly/react-styles/css/components/HelperText/helper-text.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_minus_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/minus-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/minus-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_exclamation_triangle_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/exclamation-triangle-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/exclamation-triangle-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_check_circle_icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/check-circle-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/check-circle-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_exclamation_circle_icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/exclamation-circle-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon.js");








const variantStyle = {
    default: '',
    indeterminate: _patternfly_react_styles_css_components_HelperText_helper_text__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.indeterminate,
    warning: _patternfly_react_styles_css_components_HelperText_helper_text__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.warning,
    success: _patternfly_react_styles_css_components_HelperText_helper_text__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.success,
    error: _patternfly_react_styles_css_components_HelperText_helper_text__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.error
};
const HelperTextItem = (_a) => {
    var { children, className, component = 'div', variant = 'default', icon, isDynamic = false, hasIcon = isDynamic } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["children", "className", "component", "variant", "icon", "isDynamic", "hasIcon"]);
    const Component = component;
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_HelperText_helper_text__WEBPACK_IMPORTED_MODULE_1__["default"].helperTextItem, variantStyle[variant], isDynamic && _patternfly_react_styles_css_components_HelperText_helper_text__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.dynamic, className) }, props),
        icon && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_HelperText_helper_text__WEBPACK_IMPORTED_MODULE_1__["default"].helperTextItemIcon), "aria-hidden": true }, icon)),
        hasIcon && !icon && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_HelperText_helper_text__WEBPACK_IMPORTED_MODULE_1__["default"].helperTextItemIcon), "aria-hidden": true },
            (variant === 'default' || variant === 'indeterminate') && react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_minus_icon__WEBPACK_IMPORTED_MODULE_4__["default"], null),
            variant === 'warning' && react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_exclamation_triangle_icon__WEBPACK_IMPORTED_MODULE_5__["default"], null),
            variant === 'success' && react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_check_circle_icon__WEBPACK_IMPORTED_MODULE_6__["default"], null),
            variant === 'error' && react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_exclamation_circle_icon__WEBPACK_IMPORTED_MODULE_7__["default"], null))),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_HelperText_helper_text__WEBPACK_IMPORTED_MODULE_1__["default"].helperTextItemText) }, children)));
};
HelperTextItem.displayName = 'HelperTextItem';
//# sourceMappingURL=HelperTextItem.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/InputGroup/InputGroup.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/InputGroup/InputGroup.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "InputGroup": () => (/* binding */ InputGroup)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_InputGroup_input_group__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-styles/css/components/InputGroup/input-group */ "./node_modules/@patternfly/react-styles/css/components/InputGroup/input-group.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _FormSelect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../FormSelect */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _TextArea__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../TextArea */ "./node_modules/@patternfly/react-core/dist/esm/components/TextArea/TextArea.js");
/* harmony import */ var _TextInput__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../TextInput */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");







const InputGroup = (_a) => {
    var { className = '', children } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "children"]);
    const formCtrls = [_FormSelect__WEBPACK_IMPORTED_MODULE_2__.FormSelect, _TextArea__WEBPACK_IMPORTED_MODULE_3__.TextArea, _TextInput__WEBPACK_IMPORTED_MODULE_4__.TextInput].map(comp => comp.displayName);
    const idItem = react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(children).find((child) => !formCtrls.includes(child.type.displayName) && child.props.id);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__.css)(_patternfly_react_styles_css_components_InputGroup_input_group__WEBPACK_IMPORTED_MODULE_6__["default"].inputGroup, className) }, props), idItem
        ? react__WEBPACK_IMPORTED_MODULE_0__.Children.map(children, (child) => formCtrls.includes(child.type.displayName)
            ? react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(child, { 'aria-describedby': idItem.props.id })
            : child)
        : children));
};
InputGroup.displayName = 'InputGroup';
//# sourceMappingURL=InputGroup.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Label/Label.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Label/Label.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Label": () => (/* binding */ Label)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Label_label__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Label/label */ "./node_modules/@patternfly/react-styles/css/components/Label/label.js");
/* harmony import */ var _patternfly_react_styles_css_components_LabelGroup_label_group__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-styles/css/components/LabelGroup/label-group */ "./node_modules/@patternfly/react-styles/css/components/LabelGroup/label-group.js");
/* harmony import */ var _patternfly_react_styles_css_components_InlineEdit_inline_edit__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-styles/css/components/InlineEdit/inline-edit */ "./node_modules/@patternfly/react-styles/css/components/InlineEdit/inline-edit.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Tooltip */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_times_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/times-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/times-icon.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/useIsomorphicLayout.js");











const colorStyles = {
    blue: _patternfly_react_styles_css_components_Label_label__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.blue,
    cyan: _patternfly_react_styles_css_components_Label_label__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.cyan,
    green: _patternfly_react_styles_css_components_Label_label__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.green,
    orange: _patternfly_react_styles_css_components_Label_label__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.orange,
    purple: _patternfly_react_styles_css_components_Label_label__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.purple,
    red: _patternfly_react_styles_css_components_Label_label__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.red,
    grey: ''
};
const Label = (_a) => {
    var { children, className = '', color = 'grey', variant = 'filled', isCompact = false, isEditable = false, editableProps, isTruncated = false, tooltipPosition, icon, onClose, onEditCancel, onEditComplete, closeBtn, closeBtnAriaLabel, closeBtnProps, href, isOverflowLabel, render } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["children", "className", "color", "variant", "isCompact", "isEditable", "editableProps", "isTruncated", "tooltipPosition", "icon", "onClose", "onEditCancel", "onEditComplete", "closeBtn", "closeBtnAriaLabel", "closeBtnProps", "href", "isOverflowLabel", "render"]);
    const [isEditableActive, setIsEditableActive] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
    const editableDivRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        document.addEventListener('click', onDocClick);
        document.addEventListener('keydown', onKeyDown);
        return () => {
            document.removeEventListener('click', onDocClick);
            document.removeEventListener('keydown', onKeyDown);
        };
    });
    const onDocClick = (event) => {
        if (isEditableActive &&
            editableDivRef &&
            editableDivRef.current &&
            !editableDivRef.current.contains(event.target)) {
            onEditComplete && onEditComplete(editableDivRef.current.textContent);
            setIsEditableActive(false);
        }
    };
    const onKeyDown = (event) => {
        const key = event.key;
        if (!editableDivRef || !editableDivRef.current || !editableDivRef.current.contains(event.target)) {
            return;
        }
        if (isEditableActive && (key === 'Enter' || key === 'Tab')) {
            event.preventDefault();
            event.stopImmediatePropagation();
            onEditComplete && onEditComplete(editableDivRef.current.textContent);
            setIsEditableActive(false);
        }
        if (isEditableActive && key === 'Escape') {
            event.preventDefault();
            event.stopImmediatePropagation();
            // Reset div text to initial children prop - pre-edit
            editableDivRef.current.textContent = children;
            onEditCancel && onEditCancel(children);
            setIsEditableActive(false);
        }
        if (!isEditableActive && key === 'Enter') {
            event.preventDefault();
            event.stopImmediatePropagation();
            setIsEditableActive(true);
            // Set cursor position to end of text
            const el = event.target;
            const range = document.createRange();
            const sel = window.getSelection();
            range.selectNodeContents(el);
            range.collapse(false);
            sel.removeAllRanges();
            sel.addRange(range);
        }
    };
    const LabelComponent = (isOverflowLabel ? 'button' : 'span');
    const Component = href ? 'a' : 'span';
    const button = closeBtn ? (closeBtn) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__.Button, Object.assign({ type: "button", variant: "plain", onClick: onClose, "aria-label": closeBtnAriaLabel || `Close ${children}` }, closeBtnProps),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_times_icon__WEBPACK_IMPORTED_MODULE_4__["default"], null)));
    const textRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
    // ref to apply tooltip when rendered is used
    const componentRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef();
    const [isTooltipVisible, setIsTooltipVisible] = react__WEBPACK_IMPORTED_MODULE_0__.useState(false);
    (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.useIsomorphicLayoutEffect)(() => {
        setIsTooltipVisible(textRef.current && textRef.current.offsetWidth < textRef.current.scrollWidth);
    }, []);
    let content = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
        icon && react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_6__.css)(_patternfly_react_styles_css_components_Label_label__WEBPACK_IMPORTED_MODULE_1__["default"].labelIcon) }, icon),
        isTruncated && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { ref: textRef, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_6__.css)(_patternfly_react_styles_css_components_Label_label__WEBPACK_IMPORTED_MODULE_1__["default"].labelText) }, children)),
        !isTruncated && children));
    if (isEditable) {
        content = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_6__.css)(_patternfly_react_styles_css_components_InlineEdit_inline_edit__WEBPACK_IMPORTED_MODULE_7__["default"].inlineEdit) },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ tabIndex: 0, ref: editableDivRef, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_6__.css)(_patternfly_react_styles_css_components_InlineEdit_inline_edit__WEBPACK_IMPORTED_MODULE_7__["default"].inlineEditEditableText), role: "textbox" }, (isEditableActive && { contentEditable: true }), { suppressContentEditableWarning: true }, editableProps), children))));
    }
    let labelComponentChild = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_6__.css)(_patternfly_react_styles_css_components_Label_label__WEBPACK_IMPORTED_MODULE_1__["default"].labelContent) }, (href && { href })), content));
    if (render) {
        labelComponentChild = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
            isTooltipVisible && react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Tooltip__WEBPACK_IMPORTED_MODULE_8__.Tooltip, { reference: componentRef, content: children, position: tooltipPosition }),
            render({
                className: _patternfly_react_styles_css_components_Label_label__WEBPACK_IMPORTED_MODULE_1__["default"].labelContent,
                content,
                componentRef
            })));
    }
    else if (isTooltipVisible) {
        labelComponentChild = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Tooltip__WEBPACK_IMPORTED_MODULE_8__.Tooltip, { content: children, position: tooltipPosition },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_6__.css)(_patternfly_react_styles_css_components_Label_label__WEBPACK_IMPORTED_MODULE_1__["default"].labelContent) }, (href && { href })), content)));
    }
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(LabelComponent, Object.assign({}, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_6__.css)(_patternfly_react_styles_css_components_Label_label__WEBPACK_IMPORTED_MODULE_1__["default"].label, colorStyles[color], variant === 'outline' && _patternfly_react_styles_css_components_Label_label__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.outline, isOverflowLabel && _patternfly_react_styles_css_components_Label_label__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.overflow, isCompact && _patternfly_react_styles_css_components_Label_label__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.compact, isEditable && _patternfly_react_styles_css_components_LabelGroup_label_group__WEBPACK_IMPORTED_MODULE_9__["default"].modifiers.editable, isEditableActive && _patternfly_react_styles_css_components_Label_label__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.editableActive, className) }, (isEditable && {
        onClick: (evt) => {
            const isEvtFromButton = evt.target.closest('button');
            if (isEvtFromButton !== null) {
                return;
            }
            setIsEditableActive(true);
            editableDivRef.current.focus();
        }
    })),
        labelComponentChild,
        onClose && button));
};
Label.displayName = 'Label';
//# sourceMappingURL=Label.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/LabelGroup/LabelGroup.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/LabelGroup/LabelGroup.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "LabelGroup": () => (/* binding */ LabelGroup)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_LabelGroup_label_group__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/LabelGroup/label-group */ "./node_modules/@patternfly/react-styles/css/components/LabelGroup/label-group.js");
/* harmony import */ var _patternfly_react_styles_css_components_Label_label__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Label/label */ "./node_modules/@patternfly/react-styles/css/components/Label/label.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _Label__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Label */ "./node_modules/@patternfly/react-core/dist/esm/components/Label/Label.js");
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Tooltip */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_times_circle_icon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/times-circle-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/times-circle-icon.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");
/* harmony import */ var _helpers_GenerateId_GenerateId__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../helpers/GenerateId/GenerateId */ "./node_modules/@patternfly/react-core/dist/esm/helpers/GenerateId/GenerateId.js");











class LabelGroup extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor(props) {
        super(props);
        this.headingRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.toggleCollapse = () => {
            this.setState(prevState => ({
                isOpen: !prevState.isOpen,
                isTooltipVisible: Boolean(this.headingRef.current && this.headingRef.current.offsetWidth < this.headingRef.current.scrollWidth)
            }));
        };
        this.state = {
            isOpen: this.props.defaultIsOpen,
            isTooltipVisible: false
        };
    }
    componentDidMount() {
        this.setState({
            isTooltipVisible: Boolean(this.headingRef.current && this.headingRef.current.offsetWidth < this.headingRef.current.scrollWidth)
        });
    }
    renderLabel(id) {
        const { categoryName, tooltipPosition } = this.props;
        const { isTooltipVisible } = this.state;
        return isTooltipVisible ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Tooltip__WEBPACK_IMPORTED_MODULE_1__.Tooltip, { position: tooltipPosition, content: categoryName },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { tabIndex: 0, ref: this.headingRef, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_LabelGroup_label_group__WEBPACK_IMPORTED_MODULE_3__["default"].labelGroupLabel), id: id, "aria-label": categoryName },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { "aria-hidden": "true" }, categoryName)))) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { ref: this.headingRef, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_LabelGroup_label_group__WEBPACK_IMPORTED_MODULE_3__["default"].labelGroupLabel), "aria-hidden": "true", id: id }, categoryName));
    }
    render() {
        const _a = this.props, { categoryName, children, className, isClosable, isCompact, closeBtnAriaLabel, 'aria-label': ariaLabel, onClick, numLabels, expandedText, collapsedText, 
        /* eslint-disable @typescript-eslint/no-unused-vars */
        defaultIsOpen, tooltipPosition, isVertical, isEditable, hasEditableTextArea, editableTextAreaProps } = _a, 
        /* eslint-enable @typescript-eslint/no-unused-vars */
        rest = (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__rest)(_a, ["categoryName", "children", "className", "isClosable", "isCompact", "closeBtnAriaLabel", 'aria-label', "onClick", "numLabels", "expandedText", "collapsedText", "defaultIsOpen", "tooltipPosition", "isVertical", "isEditable", "hasEditableTextArea", "editableTextAreaProps"]);
        const { isOpen } = this.state;
        const numChildren = react__WEBPACK_IMPORTED_MODULE_0__.Children.count(children);
        const collapsedTextResult = (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.fillTemplate)(collapsedText, {
            remaining: react__WEBPACK_IMPORTED_MODULE_0__.Children.count(children) - numLabels
        });
        const renderLabelGroup = (id) => {
            const labelArray = !isOpen
                ? react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(children).slice(0, numLabels)
                : react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(children);
            const content = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
                categoryName && this.renderLabel(id),
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("ul", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_LabelGroup_label_group__WEBPACK_IMPORTED_MODULE_3__["default"].labelGroupList) }, (categoryName && { 'aria-labelledby': id }), (!categoryName && { 'aria-label': ariaLabel }), { role: "list" }, rest),
                    labelArray.map((child, i) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_LabelGroup_label_group__WEBPACK_IMPORTED_MODULE_3__["default"].labelGroupListItem), key: i }, child))),
                    numChildren > numLabels && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_LabelGroup_label_group__WEBPACK_IMPORTED_MODULE_3__["default"].labelGroupListItem) },
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Label__WEBPACK_IMPORTED_MODULE_6__.Label, { isOverflowLabel: true, onClick: this.toggleCollapse, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(isCompact && _patternfly_react_styles_css_components_Label_label__WEBPACK_IMPORTED_MODULE_7__["default"].modifiers.compact) }, isOpen ? expandedText : collapsedTextResult))),
                    isEditable && hasEditableTextArea && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_LabelGroup_label_group__WEBPACK_IMPORTED_MODULE_3__["default"].labelGroupListItem, _patternfly_react_styles_css_components_LabelGroup_label_group__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.textarea) },
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement("textarea", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_LabelGroup_label_group__WEBPACK_IMPORTED_MODULE_3__["default"].labelGroupTextarea), rows: 1, tabIndex: 0 }, editableTextAreaProps)))))));
            const close = (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_LabelGroup_label_group__WEBPACK_IMPORTED_MODULE_3__["default"].labelGroupClose) },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_8__.Button, { variant: "plain", "aria-label": closeBtnAriaLabel, onClick: onClick, id: `remove_group_${id}`, "aria-labelledby": `remove_group_${id} ${id}` },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_times_circle_icon__WEBPACK_IMPORTED_MODULE_9__["default"], { "aria-hidden": "true" }))));
            return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_LabelGroup_label_group__WEBPACK_IMPORTED_MODULE_3__["default"].labelGroup, className, categoryName && _patternfly_react_styles_css_components_LabelGroup_label_group__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.category, isVertical && _patternfly_react_styles_css_components_LabelGroup_label_group__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.vertical, isEditable && _patternfly_react_styles_css_components_LabelGroup_label_group__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.editable) },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_LabelGroup_label_group__WEBPACK_IMPORTED_MODULE_3__["default"].labelGroupMain) }, content),
                isClosable && close));
        };
        return numChildren === 0 ? null : (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_helpers_GenerateId_GenerateId__WEBPACK_IMPORTED_MODULE_10__.GenerateId, null, randomId => renderLabelGroup(this.props.id || randomId)));
    }
}
LabelGroup.displayName = 'LabelGroup';
LabelGroup.defaultProps = {
    expandedText: 'Show Less',
    collapsedText: '${remaining} more',
    categoryName: '',
    defaultIsOpen: false,
    numLabels: 3,
    isClosable: false,
    isCompact: false,
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    onClick: (_e) => undefined,
    closeBtnAriaLabel: 'Close label group',
    tooltipPosition: 'top',
    'aria-label': 'Label group category',
    isVertical: false,
    isEditable: false,
    hasEditableTextArea: false
};
//# sourceMappingURL=LabelGroup.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ModalVariant": () => (/* binding */ ModalVariant),
/* harmony export */   "Modal": () => (/* binding */ Modal)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Backdrop_backdrop__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Backdrop/backdrop */ "./node_modules/@patternfly/react-styles/css/components/Backdrop/backdrop.js");
/* harmony import */ var _ModalContent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ModalContent */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/ModalContent.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");








var ModalVariant;
(function (ModalVariant) {
    ModalVariant["small"] = "small";
    ModalVariant["medium"] = "medium";
    ModalVariant["large"] = "large";
    ModalVariant["default"] = "default";
})(ModalVariant || (ModalVariant = {}));
class Modal extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor(props) {
        super(props);
        this.boxId = '';
        this.labelId = '';
        this.descriptorId = '';
        this.handleEscKeyClick = (event) => {
            const { onEscapePress } = this.props;
            if (event.keyCode === _helpers__WEBPACK_IMPORTED_MODULE_2__.KEY_CODES.ESCAPE_KEY && this.props.isOpen) {
                onEscapePress ? onEscapePress(event) : this.props.onClose();
            }
        };
        this.getElement = (appendTo) => {
            if (typeof appendTo === 'function') {
                return appendTo();
            }
            return appendTo || document.body;
        };
        this.toggleSiblingsFromScreenReaders = (hide) => {
            const { appendTo } = this.props;
            const target = this.getElement(appendTo);
            const bodyChildren = target.children;
            for (const child of Array.from(bodyChildren)) {
                if (child !== this.state.container) {
                    hide ? child.setAttribute('aria-hidden', '' + hide) : child.removeAttribute('aria-hidden');
                }
            }
        };
        this.isEmpty = (value) => value === null || value === undefined || value === '';
        const boxIdNum = Modal.currentId++;
        const labelIdNum = boxIdNum + 1;
        const descriptorIdNum = boxIdNum + 2;
        this.boxId = props.id || `pf-modal-part-${boxIdNum}`;
        this.labelId = `pf-modal-part-${labelIdNum}`;
        this.descriptorId = `pf-modal-part-${descriptorIdNum}`;
        this.state = {
            container: undefined,
            ouiaStateId: (0,_helpers__WEBPACK_IMPORTED_MODULE_3__.getDefaultOUIAId)(Modal.displayName, props.variant)
        };
    }
    componentDidMount() {
        const { appendTo, title, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, hasNoBodyWrapper, header } = this.props;
        const target = this.getElement(appendTo);
        const container = document.createElement('div');
        this.setState({ container });
        target.appendChild(container);
        target.addEventListener('keydown', this.handleEscKeyClick, false);
        if (this.props.isOpen) {
            target.classList.add((0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Backdrop_backdrop__WEBPACK_IMPORTED_MODULE_5__["default"].backdropOpen));
        }
        else {
            target.classList.remove((0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Backdrop_backdrop__WEBPACK_IMPORTED_MODULE_5__["default"].backdropOpen));
        }
        if (this.isEmpty(title) && this.isEmpty(ariaLabel) && this.isEmpty(ariaLabelledby)) {
            // eslint-disable-next-line no-console
            console.error('Modal: Specify at least one of: title, aria-label, aria-labelledby.');
        }
        if (this.isEmpty(ariaLabel) && this.isEmpty(ariaLabelledby) && (hasNoBodyWrapper || header)) {
            // eslint-disable-next-line no-console
            console.error('Modal: When using hasNoBodyWrapper or setting a custom header, ensure you assign an accessible name to the the modal container with aria-label or aria-labelledby.');
        }
    }
    componentDidUpdate() {
        const { appendTo } = this.props;
        const target = this.getElement(appendTo);
        if (this.props.isOpen) {
            target.classList.add((0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Backdrop_backdrop__WEBPACK_IMPORTED_MODULE_5__["default"].backdropOpen));
            this.toggleSiblingsFromScreenReaders(true);
        }
        else {
            target.classList.remove((0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Backdrop_backdrop__WEBPACK_IMPORTED_MODULE_5__["default"].backdropOpen));
            this.toggleSiblingsFromScreenReaders(false);
        }
    }
    componentWillUnmount() {
        const { appendTo } = this.props;
        const target = this.getElement(appendTo);
        if (this.state.container) {
            target.removeChild(this.state.container);
        }
        target.removeEventListener('keydown', this.handleEscKeyClick, false);
        target.classList.remove((0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Backdrop_backdrop__WEBPACK_IMPORTED_MODULE_5__["default"].backdropOpen));
    }
    render() {
        const _a = this.props, { 
        // eslint-disable-next-line @typescript-eslint/no-unused-vars
        appendTo, 
        // eslint-disable-next-line @typescript-eslint/no-unused-vars
        onEscapePress, 'aria-labelledby': ariaLabelledby, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedby, title, titleIconVariant, titleLabel, ouiaId, ouiaSafe } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_6__.__rest)(_a, ["appendTo", "onEscapePress", 'aria-labelledby', 'aria-label', 'aria-describedby', "title", "titleIconVariant", "titleLabel", "ouiaId", "ouiaSafe"]);
        const { container } = this.state;
        if (!_helpers__WEBPACK_IMPORTED_MODULE_7__.canUseDOM || !container) {
            return null;
        }
        return react_dom__WEBPACK_IMPORTED_MODULE_1__.createPortal(react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ModalContent__WEBPACK_IMPORTED_MODULE_8__.ModalContent, Object.assign({}, props, { boxId: this.boxId, labelId: this.labelId, descriptorId: this.descriptorId, title: title, titleIconVariant: titleIconVariant, titleLabel: titleLabel, "aria-label": ariaLabel, "aria-describedby": ariaDescribedby, "aria-labelledby": ariaLabelledby, ouiaId: ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe: ouiaSafe })), container);
    }
}
Modal.displayName = 'Modal';
Modal.currentId = 0;
Modal.defaultProps = {
    className: '',
    isOpen: false,
    title: '',
    titleIconVariant: null,
    titleLabel: '',
    'aria-label': '',
    showClose: true,
    'aria-describedby': '',
    'aria-labelledby': '',
    id: undefined,
    actions: [],
    onClose: () => undefined,
    variant: 'default',
    hasNoBodyWrapper: false,
    appendTo: () => document.body,
    ouiaSafe: true
};
//# sourceMappingURL=Modal.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/ModalBox.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Modal/ModalBox.js ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ModalBox": () => (/* binding */ ModalBox)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_ModalBox_modal_box__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/ModalBox/modal-box */ "./node_modules/@patternfly/react-styles/css/components/ModalBox/modal-box.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_c_modal_box_m_align_top_spacer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/c_modal_box_m_align_top_spacer */ "./node_modules/@patternfly/react-tokens/dist/esm/c_modal_box_m_align_top_spacer.js");





const ModalBox = (_a) => {
    var { children, className = '', variant = 'default', position, positionOffset, 'aria-labelledby': ariaLabelledby, 'aria-label': ariaLabel = '', 'aria-describedby': ariaDescribedby, style } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "variant", "position", "positionOffset", 'aria-labelledby', 'aria-label', 'aria-describedby', "style"]);
    if (positionOffset) {
        style = style || {};
        style[_patternfly_react_tokens_dist_esm_c_modal_box_m_align_top_spacer__WEBPACK_IMPORTED_MODULE_2__["default"].name] = positionOffset;
    }
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({}, props, { role: "dialog", "aria-label": ariaLabel || null, "aria-labelledby": ariaLabelledby || null, "aria-describedby": ariaDescribedby, "aria-modal": "true", className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_ModalBox_modal_box__WEBPACK_IMPORTED_MODULE_4__["default"].modalBox, className, position === 'top' && _patternfly_react_styles_css_components_ModalBox_modal_box__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.alignTop, variant === 'large' && _patternfly_react_styles_css_components_ModalBox_modal_box__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.lg, variant === 'small' && _patternfly_react_styles_css_components_ModalBox_modal_box__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.sm, variant === 'medium' && _patternfly_react_styles_css_components_ModalBox_modal_box__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.md), style: style }), children));
};
ModalBox.displayName = 'ModalBox';
//# sourceMappingURL=ModalBox.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/ModalBoxBody.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Modal/ModalBoxBody.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ModalBoxBody": () => (/* binding */ ModalBoxBody)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_ModalBox_modal_box__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/ModalBox/modal-box */ "./node_modules/@patternfly/react-styles/css/components/ModalBox/modal-box.js");




const ModalBoxBody = (_a) => {
    var { children = null, className = '' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({}, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ModalBox_modal_box__WEBPACK_IMPORTED_MODULE_3__["default"].modalBoxBody, className) }), children));
};
ModalBoxBody.displayName = 'ModalBoxBody';
//# sourceMappingURL=ModalBoxBody.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/ModalBoxCloseButton.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Modal/ModalBoxCloseButton.js ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ModalBoxCloseButton": () => (/* binding */ ModalBoxCloseButton)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_times_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/times-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/times-icon.js");




const ModalBoxCloseButton = (_a) => {
    var { className = '', onClose = () => undefined } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "onClose"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_2__.Button, Object.assign({ className: className, variant: "plain", onClick: onClose, "aria-label": "Close" }, props),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_times_icon__WEBPACK_IMPORTED_MODULE_3__["default"], null)));
};
ModalBoxCloseButton.displayName = 'ModalBoxCloseButton';
//# sourceMappingURL=ModalBoxCloseButton.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/ModalBoxDescription.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Modal/ModalBoxDescription.js ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ModalBoxDescription": () => (/* binding */ ModalBoxDescription)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_ModalBox_modal_box__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/ModalBox/modal-box */ "./node_modules/@patternfly/react-styles/css/components/ModalBox/modal-box.js");




const ModalBoxDescription = (_a) => {
    var { children = null, className = '', id = '' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "id"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({}, props, { id: id, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ModalBox_modal_box__WEBPACK_IMPORTED_MODULE_3__["default"].modalBoxDescription, className) }), children));
};
ModalBoxDescription.displayName = 'ModalBoxDescription';
//# sourceMappingURL=ModalBoxDescription.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/ModalBoxFooter.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Modal/ModalBoxFooter.js ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ModalBoxFooter": () => (/* binding */ ModalBoxFooter)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_ModalBox_modal_box__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/ModalBox/modal-box */ "./node_modules/@patternfly/react-styles/css/components/ModalBox/modal-box.js");




const ModalBoxFooter = (_a) => {
    var { children = null, className = '' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("footer", Object.assign({}, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ModalBox_modal_box__WEBPACK_IMPORTED_MODULE_3__["default"].modalBoxFooter, className) }), children));
};
ModalBoxFooter.displayName = 'ModalBoxFooter';
//# sourceMappingURL=ModalBoxFooter.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/ModalBoxHeader.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Modal/ModalBoxHeader.js ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ModalBoxHeader": () => (/* binding */ ModalBoxHeader)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_ModalBox_modal_box__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/ModalBox/modal-box */ "./node_modules/@patternfly/react-styles/css/components/ModalBox/modal-box.js");




const ModalBoxHeader = (_a) => {
    var { children = null, className = '', help = null } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "help"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("header", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ModalBox_modal_box__WEBPACK_IMPORTED_MODULE_3__["default"].modalBoxHeader, help && _patternfly_react_styles_css_components_ModalBox_modal_box__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.help, className) }, props),
        help && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ModalBox_modal_box__WEBPACK_IMPORTED_MODULE_3__["default"].modalBoxHeaderMain) }, children),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: "pf-c-modal-box__header-help" }, help))),
        !help && children));
};
ModalBoxHeader.displayName = 'ModalBoxHeader';
//# sourceMappingURL=ModalBoxHeader.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/ModalBoxTitle.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Modal/ModalBoxTitle.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "isVariantIcon": () => (/* binding */ isVariantIcon),
/* harmony export */   "ModalBoxTitle": () => (/* binding */ ModalBoxTitle)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_ModalBox_modal_box__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-styles/css/components/ModalBox/modal-box */ "./node_modules/@patternfly/react-styles/css/components/ModalBox/modal-box.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_utilities_Accessibility_accessibility__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-styles/css/utilities/Accessibility/accessibility */ "./node_modules/@patternfly/react-styles/css/utilities/Accessibility/accessibility.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../Tooltip */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_check_circle_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/check-circle-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/check-circle-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_exclamation_circle_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/exclamation-circle-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_exclamation_triangle_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/exclamation-triangle-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/exclamation-triangle-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_info_circle_icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/info-circle-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/info-circle-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_bell_icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/bell-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/bell-icon.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/useIsomorphicLayout.js");













const isVariantIcon = (icon) => ['success', 'danger', 'warning', 'info', 'default'].includes(icon);
const ModalBoxTitle = (_a) => {
    var { className = '', id, title, titleIconVariant, titleLabel = '' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "id", "title", "titleIconVariant", "titleLabel"]);
    const [isTooltipVisible, setIsTooltipVisible] = react__WEBPACK_IMPORTED_MODULE_0__.useState(false);
    const h1 = react__WEBPACK_IMPORTED_MODULE_0__.useRef();
    const label = titleLabel || (isVariantIcon(titleIconVariant) ? `${(0,_helpers__WEBPACK_IMPORTED_MODULE_2__.capitalize)(titleIconVariant)} alert:` : titleLabel);
    const variantIcons = {
        success: react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_check_circle_icon__WEBPACK_IMPORTED_MODULE_3__["default"], null),
        danger: react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_exclamation_circle_icon__WEBPACK_IMPORTED_MODULE_4__["default"], null),
        warning: react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_exclamation_triangle_icon__WEBPACK_IMPORTED_MODULE_5__["default"], null),
        info: react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_info_circle_icon__WEBPACK_IMPORTED_MODULE_6__["default"], null),
        default: react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_bell_icon__WEBPACK_IMPORTED_MODULE_7__["default"], null)
    };
    const CustomIcon = !isVariantIcon(titleIconVariant) && titleIconVariant;
    (0,_helpers__WEBPACK_IMPORTED_MODULE_8__.useIsomorphicLayoutEffect)(() => {
        setIsTooltipVisible(h1.current && h1.current.offsetWidth < h1.current.scrollWidth);
    }, []);
    const content = (react__WEBPACK_IMPORTED_MODULE_0__.createElement("h1", Object.assign({ id: id, ref: h1, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_9__.css)(_patternfly_react_styles_css_components_ModalBox_modal_box__WEBPACK_IMPORTED_MODULE_10__["default"].modalBoxTitle, titleIconVariant && _patternfly_react_styles_css_components_ModalBox_modal_box__WEBPACK_IMPORTED_MODULE_10__["default"].modifiers.icon, className) }, props),
        titleIconVariant && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_9__.css)(_patternfly_react_styles_css_components_ModalBox_modal_box__WEBPACK_IMPORTED_MODULE_10__["default"].modalBoxTitleIcon) }, isVariantIcon(titleIconVariant) ? variantIcons[titleIconVariant] : react__WEBPACK_IMPORTED_MODULE_0__.createElement(CustomIcon, null))),
        label && react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_9__.css)(_patternfly_react_styles_css_utilities_Accessibility_accessibility__WEBPACK_IMPORTED_MODULE_11__["default"].screenReader) }, label),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_9__.css)(_patternfly_react_styles_css_components_ModalBox_modal_box__WEBPACK_IMPORTED_MODULE_10__["default"].modalBoxTitleText) }, title)));
    return isTooltipVisible ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Tooltip__WEBPACK_IMPORTED_MODULE_12__.Tooltip, { content: title, isVisible: true }, content)) : (content);
};
ModalBoxTitle.displayName = 'ModalBoxTitle';
//# sourceMappingURL=ModalBoxTitle.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/ModalContent.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Modal/ModalContent.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ModalContent": () => (/* binding */ ModalContent)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/FocusTrap/FocusTrap.js");
/* harmony import */ var _patternfly_react_styles_css_components_ModalBox_modal_box__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-styles/css/components/ModalBox/modal-box */ "./node_modules/@patternfly/react-styles/css/components/ModalBox/modal-box.js");
/* harmony import */ var _patternfly_react_styles_css_layouts_Bullseye_bullseye__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-styles/css/layouts/Bullseye/bullseye */ "./node_modules/@patternfly/react-styles/css/layouts/Bullseye/bullseye.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");
/* harmony import */ var _Backdrop_Backdrop__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../Backdrop/Backdrop */ "./node_modules/@patternfly/react-core/dist/esm/components/Backdrop/Backdrop.js");
/* harmony import */ var _ModalBoxBody__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ModalBoxBody */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/ModalBoxBody.js");
/* harmony import */ var _ModalBoxCloseButton__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./ModalBoxCloseButton */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/ModalBoxCloseButton.js");
/* harmony import */ var _ModalBox__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ModalBox */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/ModalBox.js");
/* harmony import */ var _ModalBoxFooter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ModalBoxFooter */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/ModalBoxFooter.js");
/* harmony import */ var _ModalBoxDescription__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ModalBoxDescription */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/ModalBoxDescription.js");
/* harmony import */ var _ModalBoxHeader__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ModalBoxHeader */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/ModalBoxHeader.js");
/* harmony import */ var _ModalBoxTitle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ModalBoxTitle */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/ModalBoxTitle.js");















const ModalContent = (_a) => {
    var { children, className = '', isOpen = false, header = null, help = null, description = null, title = '', titleIconVariant = null, titleLabel = '', 'aria-label': ariaLabel = '', 'aria-describedby': ariaDescribedby, 'aria-labelledby': ariaLabelledby, showClose = true, footer = null, actions = [], onClose = () => undefined, variant = 'default', position, positionOffset, width = -1, boxId, labelId, descriptorId, disableFocusTrap = false, hasNoBodyWrapper = false, ouiaId, ouiaSafe = true } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "isOpen", "header", "help", "description", "title", "titleIconVariant", "titleLabel", 'aria-label', 'aria-describedby', 'aria-labelledby', "showClose", "footer", "actions", "onClose", "variant", "position", "positionOffset", "width", "boxId", "labelId", "descriptorId", "disableFocusTrap", "hasNoBodyWrapper", "ouiaId", "ouiaSafe"]);
    if (!isOpen) {
        return null;
    }
    const modalBoxHeader = header ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ModalBoxHeader__WEBPACK_IMPORTED_MODULE_2__.ModalBoxHeader, { help: help }, header)) : (title && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ModalBoxHeader__WEBPACK_IMPORTED_MODULE_2__.ModalBoxHeader, { help: help },
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ModalBoxTitle__WEBPACK_IMPORTED_MODULE_3__.ModalBoxTitle, { title: title, titleIconVariant: titleIconVariant, titleLabel: titleLabel, id: labelId }),
        description && react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ModalBoxDescription__WEBPACK_IMPORTED_MODULE_4__.ModalBoxDescription, { id: descriptorId }, description))));
    const modalBoxFooter = footer ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ModalBoxFooter__WEBPACK_IMPORTED_MODULE_5__.ModalBoxFooter, null, footer)) : (actions.length > 0 && react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ModalBoxFooter__WEBPACK_IMPORTED_MODULE_5__.ModalBoxFooter, null, actions));
    const modalBody = hasNoBodyWrapper ? (children) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ModalBoxBody__WEBPACK_IMPORTED_MODULE_6__.ModalBoxBody, Object.assign({}, props, (!description && !ariaDescribedby && { id: descriptorId })), children));
    const boxStyle = width === -1 ? {} : { width };
    const ariaLabelledbyFormatted = () => {
        if (ariaLabelledby === null) {
            return null;
        }
        const idRefList = [];
        if ((ariaLabel && boxId) !== '') {
            idRefList.push(ariaLabel && boxId);
        }
        if (ariaLabelledby) {
            idRefList.push(ariaLabelledby);
        }
        if (title) {
            idRefList.push(labelId);
        }
        return idRefList.join(' ');
    };
    const modalBox = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ModalBox__WEBPACK_IMPORTED_MODULE_7__.ModalBox, Object.assign({ id: boxId, style: boxStyle, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_8__.css)(className, (0,_ModalBoxTitle__WEBPACK_IMPORTED_MODULE_3__.isVariantIcon)(titleIconVariant) &&
            _patternfly_react_styles_css_components_ModalBox_modal_box__WEBPACK_IMPORTED_MODULE_9__["default"].modifiers[titleIconVariant]), variant: variant, position: position, positionOffset: positionOffset, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledbyFormatted(), "aria-describedby": ariaDescribedby || (hasNoBodyWrapper ? null : descriptorId) }, (0,_helpers__WEBPACK_IMPORTED_MODULE_10__.getOUIAProps)(ModalContent.displayName, ouiaId, ouiaSafe)),
        showClose && react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ModalBoxCloseButton__WEBPACK_IMPORTED_MODULE_11__.ModalBoxCloseButton, { onClose: onClose }),
        modalBoxHeader,
        modalBody,
        modalBoxFooter));
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Backdrop_Backdrop__WEBPACK_IMPORTED_MODULE_12__.Backdrop, null,
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_helpers__WEBPACK_IMPORTED_MODULE_13__.FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true }, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_8__.css)(_patternfly_react_styles_css_layouts_Bullseye_bullseye__WEBPACK_IMPORTED_MODULE_14__["default"].bullseye) }, modalBox)));
};
ModalContent.displayName = 'ModalContent';
//# sourceMappingURL=ModalContent.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Nav/Nav.js":
/*!****************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Nav/Nav.js ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "NavContext": () => (/* binding */ NavContext),
/* harmony export */   "Nav": () => (/* binding */ Nav)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Nav_nav__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Nav/nav */ "./node_modules/@patternfly/react-styles/css/components/Nav/nav.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");





const NavContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext({});
class Nav extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor() {
        super(...arguments);
        this.state = {
            isScrollable: false,
            ouiaStateId: (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.getDefaultOUIAId)(Nav.displayName, this.props.variant),
            flyoutRef: null
        };
    }
    // Callback from NavItem
    onSelect(event, groupId, itemId, to, preventDefault, onClick) {
        if (preventDefault) {
            event.preventDefault();
        }
        this.props.onSelect({ groupId, itemId, event, to });
        if (onClick) {
            onClick(event, itemId, groupId, to);
        }
    }
    // Callback from NavExpandable
    onToggle(event, groupId, toggleValue) {
        this.props.onToggle({
            event,
            groupId,
            isExpanded: toggleValue
        });
    }
    render() {
        const _a = this.props, { 'aria-label': ariaLabel, children, className, 
        // eslint-disable-next-line @typescript-eslint/no-unused-vars
        onSelect, 
        // eslint-disable-next-line @typescript-eslint/no-unused-vars
        onToggle, theme, ouiaId, ouiaSafe, variant } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ['aria-label', "children", "className", "onSelect", "onToggle", "theme", "ouiaId", "ouiaSafe", "variant"]);
        const isHorizontal = ['horizontal', 'tertiary'].includes(variant);
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(NavContext.Provider, { value: {
                onSelect: (event, groupId, itemId, to, preventDefault, onClick) => this.onSelect(event, groupId, itemId, to, preventDefault, onClick),
                onToggle: (event, groupId, expanded) => this.onToggle(event, groupId, expanded),
                updateIsScrollable: (isScrollable) => this.setState({ isScrollable }),
                isHorizontal: ['horizontal', 'tertiary', 'horizontal-subnav'].includes(variant),
                flyoutRef: this.state.flyoutRef,
                setFlyoutRef: flyoutRef => this.setState({ flyoutRef })
            } },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("nav", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Nav_nav__WEBPACK_IMPORTED_MODULE_4__["default"].nav, theme === 'light' && _patternfly_react_styles_css_components_Nav_nav__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.light, isHorizontal && _patternfly_react_styles_css_components_Nav_nav__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.horizontal, variant === 'tertiary' && _patternfly_react_styles_css_components_Nav_nav__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.tertiary, variant === 'horizontal-subnav' && _patternfly_react_styles_css_components_Nav_nav__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.horizontalSubnav, this.state.isScrollable && _patternfly_react_styles_css_components_Nav_nav__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.scrollable, className), "aria-label": ariaLabel || (variant === 'tertiary' ? 'Local' : 'Global') }, (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.getOUIAProps)(Nav.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), props), children)));
    }
}
Nav.displayName = 'Nav';
Nav.defaultProps = {
    onSelect: () => undefined,
    onToggle: () => undefined,
    theme: 'dark',
    ouiaSafe: true
};
//# sourceMappingURL=Nav.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Nav/NavItem.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Nav/NavItem.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "NavItem": () => (/* binding */ NavItem)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Nav_nav__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Nav/nav */ "./node_modules/@patternfly/react-styles/css/components/Nav/nav.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _Nav__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Nav */ "./node_modules/@patternfly/react-core/dist/esm/components/Nav/Nav.js");
/* harmony import */ var _Page_PageSidebar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Page/PageSidebar */ "./node_modules/@patternfly/react-core/dist/esm/components/Page/PageSidebar.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");
/* harmony import */ var _helpers_Popper_Popper__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../helpers/Popper/Popper */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/Popper.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-right-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-right-icon.js");









const NavItem = (_a) => {
    var { children, styleChildren = true, className, to, isActive = false, groupId = null, itemId = null, preventDefault = false, onClick = null, component = 'a', flyout, onShowFlyout, ouiaId, ouiaSafe } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "styleChildren", "className", "to", "isActive", "groupId", "itemId", "preventDefault", "onClick", "component", "flyout", "onShowFlyout", "ouiaId", "ouiaSafe"]);
    const { flyoutRef, setFlyoutRef } = react__WEBPACK_IMPORTED_MODULE_0__.useContext(_Nav__WEBPACK_IMPORTED_MODULE_2__.NavContext);
    const { isNavOpen } = react__WEBPACK_IMPORTED_MODULE_0__.useContext(_Page_PageSidebar__WEBPACK_IMPORTED_MODULE_3__.PageSidebarContext);
    const [flyoutTarget, setFlyoutTarget] = react__WEBPACK_IMPORTED_MODULE_0__.useState(null);
    const [isHovered, setIsHovered] = react__WEBPACK_IMPORTED_MODULE_0__.useState(false);
    const ref = react__WEBPACK_IMPORTED_MODULE_0__.useRef();
    const flyoutVisible = ref === flyoutRef;
    const popperRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef();
    const Component = component;
    const hasFlyout = flyout !== undefined;
    const showFlyout = (show, override) => {
        if ((!flyoutVisible || override) && show) {
            setFlyoutRef(ref);
        }
        else if ((flyoutVisible || override) && !show) {
            setFlyoutRef(null);
        }
        onShowFlyout && show && onShowFlyout();
    };
    const onMouseOver = (event) => {
        const evtContainedInFlyout = event.target.closest('.pf-c-nav__item.pf-m-flyout');
        if (hasFlyout && !flyoutVisible) {
            showFlyout(true);
        }
        else if (flyoutRef !== null && !evtContainedInFlyout) {
            setFlyoutRef(null);
        }
    };
    const onFlyoutClick = (event) => {
        const target = event.target;
        const closestItem = target.closest('.pf-m-flyout');
        if (!closestItem) {
            if (hasFlyout) {
                showFlyout(false, true);
            }
            else if (flyoutRef !== null) {
                setFlyoutRef(null);
            }
        }
    };
    const handleFlyout = (event) => {
        var _a, _b;
        const key = event.key;
        const target = event.target;
        if (!(((_a = popperRef === null || popperRef === void 0 ? void 0 : popperRef.current) === null || _a === void 0 ? void 0 : _a.contains(target)) || (hasFlyout && ((_b = ref === null || ref === void 0 ? void 0 : ref.current) === null || _b === void 0 ? void 0 : _b.contains(target))))) {
            return;
        }
        if (key === ' ' || key === 'ArrowRight') {
            event.stopPropagation();
            event.preventDefault();
            if (!flyoutVisible) {
                showFlyout(true);
                setFlyoutTarget(target);
            }
        }
        if (key === 'Escape' || key === 'ArrowLeft') {
            if (flyoutVisible) {
                event.stopPropagation();
                event.preventDefault();
                showFlyout(false);
            }
        }
    };
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        if (hasFlyout) {
            window.addEventListener('click', onFlyoutClick);
        }
        return () => {
            if (hasFlyout) {
                window.removeEventListener('click', onFlyoutClick);
            }
        };
    }, []);
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        if (flyoutTarget) {
            if (flyoutVisible) {
                const flyoutItems = Array.from(popperRef.current.getElementsByTagName('UL')[0].children).filter(el => !(el.classList.contains('pf-m-disabled') || el.classList.contains('pf-c-divider')));
                flyoutItems[0].firstChild.focus();
            }
            else {
                flyoutTarget.focus();
            }
        }
    }, [flyoutVisible, flyoutTarget]);
    const flyoutButton = (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Nav_nav__WEBPACK_IMPORTED_MODULE_5__["default"].navToggle) },
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Nav_nav__WEBPACK_IMPORTED_MODULE_5__["default"].navToggleIcon) },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_6__["default"], { "aria-hidden": true }))));
    const renderDefaultLink = (context) => {
        const preventLinkDefault = preventDefault || !to;
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({ href: to, onClick: (e) => context.onSelect(e, groupId, itemId, to, preventLinkDefault, onClick), className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Nav_nav__WEBPACK_IMPORTED_MODULE_5__["default"].navLink, isActive && _patternfly_react_styles_css_components_Nav_nav__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.current, isHovered && _patternfly_react_styles_css_components_Nav_nav__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.hover, className), "aria-current": isActive ? 'page' : null, tabIndex: isNavOpen ? null : '-1' }, props),
            children,
            flyout && flyoutButton));
    };
    const renderClonedChild = (context, child) => react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(child, Object.assign(Object.assign({ onClick: (e) => context.onSelect(e, groupId, itemId, to, preventDefault, onClick), 'aria-current': isActive ? 'page' : null }, (styleChildren && {
        className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Nav_nav__WEBPACK_IMPORTED_MODULE_5__["default"].navLink, isActive && _patternfly_react_styles_css_components_Nav_nav__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.current, child.props && child.props.className)
    })), { tabIndex: child.props.tabIndex || isNavOpen ? null : -1, children: hasFlyout ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
            child.props.children,
            flyoutButton)) : (child.props.children) }));
    const ouiaProps = (0,_helpers__WEBPACK_IMPORTED_MODULE_7__.useOUIAProps)(NavItem.displayName, ouiaId, ouiaSafe);
    const handleMouseEnter = () => {
        setIsHovered(true);
    };
    const handleMouseLeave = () => {
        setIsHovered(false);
    };
    const flyoutPopper = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_helpers_Popper_Popper__WEBPACK_IMPORTED_MODULE_8__.Popper, { reference: ref, popper: react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { ref: popperRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave }, flyout), placement: "right-start", isVisible: flyoutVisible, onDocumentKeyDown: handleFlyout }));
    const navItem = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", Object.assign({ onMouseOver: onMouseOver, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Nav_nav__WEBPACK_IMPORTED_MODULE_5__["default"].navItem, hasFlyout && _patternfly_react_styles_css_components_Nav_nav__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.flyout, className), ref: ref }, ouiaProps),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Nav__WEBPACK_IMPORTED_MODULE_2__.NavContext.Consumer, null, context => react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(children)
                ? renderClonedChild(context, children)
                : renderDefaultLink(context))),
        flyout && flyoutPopper));
    return navItem;
};
NavItem.displayName = 'NavItem';
//# sourceMappingURL=NavItem.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Nav/NavList.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Nav/NavList.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "NavList": () => (/* binding */ NavList)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Nav_nav__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Nav/nav */ "./node_modules/@patternfly/react-styles/css/components/Nav/nav.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_left_icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-left-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-left-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-right-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-right-icon.js");
/* harmony import */ var _helpers_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers/util */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");
/* harmony import */ var _Nav__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Nav */ "./node_modules/@patternfly/react-core/dist/esm/components/Nav/Nav.js");
/* harmony import */ var _Page_PageSidebar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Page/PageSidebar */ "./node_modules/@patternfly/react-core/dist/esm/components/Page/PageSidebar.js");










class NavList extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor() {
        super(...arguments);
        this.state = {
            scrollViewAtStart: false,
            scrollViewAtEnd: false
        };
        this.navList = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.handleScrollButtons = () => {
            const container = this.navList.current;
            if (container) {
                // check if it elements are in view
                const scrollViewAtStart = (0,_helpers_util__WEBPACK_IMPORTED_MODULE_1__.isElementInView)(container, container.firstChild, false);
                const scrollViewAtEnd = (0,_helpers_util__WEBPACK_IMPORTED_MODULE_1__.isElementInView)(container, container.lastChild, false);
                this.setState({
                    scrollViewAtStart,
                    scrollViewAtEnd
                });
                this.context.updateIsScrollable(!scrollViewAtStart || !scrollViewAtEnd);
            }
        };
        this.scrollLeft = () => {
            // find first Element that is fully in view on the left, then scroll to the element before it
            const container = this.navList.current;
            if (container) {
                const childrenArr = Array.from(container.children);
                let firstElementInView;
                let lastElementOutOfView;
                for (let i = 0; i < childrenArr.length && !firstElementInView; i++) {
                    if ((0,_helpers_util__WEBPACK_IMPORTED_MODULE_1__.isElementInView)(container, childrenArr[i], false)) {
                        firstElementInView = childrenArr[i];
                        lastElementOutOfView = childrenArr[i - 1];
                    }
                }
                if (lastElementOutOfView) {
                    container.scrollLeft -= lastElementOutOfView.scrollWidth;
                }
                this.handleScrollButtons();
            }
        };
        this.scrollRight = () => {
            // find last Element that is fully in view on the right, then scroll to the element after it
            const container = this.navList.current;
            if (container) {
                const childrenArr = Array.from(container.children);
                let lastElementInView;
                let firstElementOutOfView;
                for (let i = childrenArr.length - 1; i >= 0 && !lastElementInView; i--) {
                    if ((0,_helpers_util__WEBPACK_IMPORTED_MODULE_1__.isElementInView)(container, childrenArr[i], false)) {
                        lastElementInView = childrenArr[i];
                        firstElementOutOfView = childrenArr[i + 1];
                    }
                }
                if (firstElementOutOfView) {
                    container.scrollLeft += firstElementOutOfView.scrollWidth;
                }
                this.handleScrollButtons();
            }
        };
    }
    componentDidMount() {
        if (_helpers_util__WEBPACK_IMPORTED_MODULE_1__.canUseDOM) {
            window.addEventListener('resize', this.handleScrollButtons, false);
        }
        this.handleScrollButtons();
    }
    componentWillUnmount() {
        if (_helpers_util__WEBPACK_IMPORTED_MODULE_1__.canUseDOM) {
            window.removeEventListener('resize', this.handleScrollButtons, false);
        }
    }
    render() {
        const _a = this.props, { children, className, ariaLeftScroll, ariaRightScroll } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["children", "className", "ariaLeftScroll", "ariaRightScroll"]);
        const { scrollViewAtStart, scrollViewAtEnd } = this.state;
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Nav__WEBPACK_IMPORTED_MODULE_3__.NavContext.Consumer, null, ({ isHorizontal }) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Page_PageSidebar__WEBPACK_IMPORTED_MODULE_4__.PageSidebarContext.Consumer, null, ({ isNavOpen }) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
            isHorizontal && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__.css)(_patternfly_react_styles_css_components_Nav_nav__WEBPACK_IMPORTED_MODULE_6__["default"].navScrollButton), "aria-label": ariaLeftScroll, onClick: this.scrollLeft, disabled: scrollViewAtStart, tabIndex: isNavOpen ? null : -1 },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_left_icon__WEBPACK_IMPORTED_MODULE_7__["default"], null))),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("ul", Object.assign({ ref: this.navList, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__.css)(_patternfly_react_styles_css_components_Nav_nav__WEBPACK_IMPORTED_MODULE_6__["default"].navList, className), onScroll: this.handleScrollButtons }, props), children),
            isHorizontal && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__.css)(_patternfly_react_styles_css_components_Nav_nav__WEBPACK_IMPORTED_MODULE_6__["default"].navScrollButton), "aria-label": ariaRightScroll, onClick: this.scrollRight, disabled: scrollViewAtEnd, tabIndex: isNavOpen ? null : -1 },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_8__["default"], null)))))))));
    }
}
NavList.displayName = 'NavList';
NavList.contextType = _Nav__WEBPACK_IMPORTED_MODULE_3__.NavContext;
NavList.defaultProps = {
    ariaLeftScroll: 'Scroll left',
    ariaRightScroll: 'Scroll right'
};
//# sourceMappingURL=NavList.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/NumberInput/NumberInput.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/NumberInput/NumberInput.js ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "NumberInput": () => (/* binding */ NumberInput)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_NumberInput_number_input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/NumberInput/number-input */ "./node_modules/@patternfly/react-styles/css/components/NumberInput/number-input.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_minus_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/minus-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/minus-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_plus_icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/plus-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/plus-icon.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");







const NumberInput = (_a) => {
    var { value = 0, className, widthChars, isDisabled = false, onMinus = () => { }, onChange, onPlus = () => { }, unit, unitPosition = 'after', min, max, inputName, inputAriaLabel = 'Input', minusBtnAriaLabel = 'Minus', plusBtnAriaLabel = 'Plus', inputProps, minusBtnProps, plusBtnProps } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["value", "className", "widthChars", "isDisabled", "onMinus", "onChange", "onPlus", "unit", "unitPosition", "min", "max", "inputName", "inputAriaLabel", "minusBtnAriaLabel", "plusBtnAriaLabel", "inputProps", "minusBtnProps", "plusBtnProps"]);
    const numberInputUnit = react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_NumberInput_number_input__WEBPACK_IMPORTED_MODULE_3__["default"].numberInputUnit) }, unit);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_NumberInput_number_input__WEBPACK_IMPORTED_MODULE_3__["default"].numberInput, className) }, (widthChars && {
        style: Object.assign({ '--pf-c-number-input--c-form-control--width-chars': widthChars }, props.style)
    }), props),
        unit && unitPosition === 'before' && numberInputUnit,
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_NumberInput_number_input__WEBPACK_IMPORTED_MODULE_3__["default"].inputGroup) },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_4__.Button, Object.assign({ variant: "control", "aria-label": minusBtnAriaLabel, isDisabled: isDisabled || value === min, onClick: evt => onMinus(evt, inputName) }, minusBtnProps),
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_NumberInput_number_input__WEBPACK_IMPORTED_MODULE_3__["default"].numberInputIcon) },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_minus_icon__WEBPACK_IMPORTED_MODULE_5__["default"], { "aria-hidden": "true" }))),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_NumberInput_number_input__WEBPACK_IMPORTED_MODULE_3__["default"].formControl), type: "number", value: value, name: inputName, "aria-label": inputAriaLabel }, (isDisabled && { disabled: isDisabled }), (onChange && { onChange }), (!onChange && { readOnly: true }), inputProps)),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_4__.Button, Object.assign({ variant: "control", "aria-label": plusBtnAriaLabel, isDisabled: isDisabled || value === max, onClick: evt => onPlus(evt, inputName) }, plusBtnProps),
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_NumberInput_number_input__WEBPACK_IMPORTED_MODULE_3__["default"].numberInputIcon) },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_plus_icon__WEBPACK_IMPORTED_MODULE_6__["default"], { "aria-hidden": "true" })))),
        unit && unitPosition === 'after' && numberInputUnit));
};
NumberInput.displayName = 'NumberInput';
//# sourceMappingURL=NumberInput.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Page/Page.js":
/*!******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Page/Page.js ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "PageLayouts": () => (/* binding */ PageLayouts),
/* harmony export */   "PageContextProvider": () => (/* binding */ PageContextProvider),
/* harmony export */   "PageContextConsumer": () => (/* binding */ PageContextConsumer),
/* harmony export */   "Page": () => (/* binding */ Page)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Page/page */ "./node_modules/@patternfly/react-styles/css/components/Page/page.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_global_breakpoint_xl__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/global_breakpoint_xl */ "./node_modules/@patternfly/react-tokens/dist/esm/global_breakpoint_xl.js");
/* harmony import */ var _helpers_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers/util */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");
/* harmony import */ var _Drawer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Drawer */ "./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerPanelContent.js");
/* harmony import */ var _Drawer__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Drawer */ "./node_modules/@patternfly/react-core/dist/esm/components/Drawer/Drawer.js");
/* harmony import */ var _Drawer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Drawer */ "./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerContent.js");
/* harmony import */ var _Drawer__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Drawer */ "./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerContentBody.js");
/* harmony import */ var _PageGroup__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./PageGroup */ "./node_modules/@patternfly/react-core/dist/esm/components/Page/PageGroup.js");








var PageLayouts;
(function (PageLayouts) {
    PageLayouts["vertical"] = "vertical";
    PageLayouts["horizontal"] = "horizontal";
})(PageLayouts || (PageLayouts = {}));
const PageContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext({
    isManagedSidebar: false,
    isNavOpen: false,
    onNavToggle: () => null
});
const PageContextProvider = PageContext.Provider;
const PageContextConsumer = PageContext.Consumer;
class Page extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor(props) {
        super(props);
        this.mainRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.getWindowWidth = () => (_helpers_util__WEBPACK_IMPORTED_MODULE_1__.canUseDOM ? window.innerWidth : 1200);
        this.isMobile = () => 
        // eslint-disable-next-line radix
        this.getWindowWidth() < Number.parseInt(_patternfly_react_tokens_dist_esm_global_breakpoint_xl__WEBPACK_IMPORTED_MODULE_2__["default"].value, 10);
        this.resize = () => {
            const { onPageResize } = this.props;
            const mobileView = this.isMobile();
            if (onPageResize) {
                onPageResize({ mobileView, windowSize: this.getWindowWidth() });
            }
            if (mobileView !== this.state.mobileView) {
                this.setState({ mobileView });
            }
        };
        this.handleResize = (0,_helpers_util__WEBPACK_IMPORTED_MODULE_1__.debounce)(this.resize, 250);
        this.handleMainClick = () => {
            if (this.isMobile() && this.state.mobileIsNavOpen && this.mainRef.current) {
                this.setState({ mobileIsNavOpen: false });
            }
        };
        this.onNavToggleMobile = () => {
            this.setState(prevState => ({
                mobileIsNavOpen: !prevState.mobileIsNavOpen
            }));
        };
        this.onNavToggleDesktop = () => {
            this.setState(prevState => ({
                desktopIsNavOpen: !prevState.desktopIsNavOpen
            }));
        };
        const { isManagedSidebar, defaultManagedSidebarIsOpen } = props;
        const managedSidebarOpen = !isManagedSidebar ? true : defaultManagedSidebarIsOpen;
        this.state = {
            desktopIsNavOpen: managedSidebarOpen,
            mobileIsNavOpen: false,
            mobileView: false
        };
    }
    componentDidMount() {
        const { isManagedSidebar, onPageResize } = this.props;
        if (isManagedSidebar || onPageResize) {
            if (_helpers_util__WEBPACK_IMPORTED_MODULE_1__.canUseDOM) {
                window.addEventListener('resize', this.handleResize);
            }
            const currentRef = this.mainRef.current;
            if (currentRef) {
                currentRef.addEventListener('mousedown', this.handleMainClick);
                currentRef.addEventListener('touchstart', this.handleMainClick);
            }
            // Initial check if should be shown
            this.resize();
        }
    }
    componentWillUnmount() {
        const { isManagedSidebar, onPageResize } = this.props;
        if (isManagedSidebar || onPageResize) {
            if (_helpers_util__WEBPACK_IMPORTED_MODULE_1__.canUseDOM) {
                window.removeEventListener('resize', this.handleResize);
            }
            const currentRef = this.mainRef.current;
            if (currentRef) {
                currentRef.removeEventListener('mousedown', this.handleMainClick);
                currentRef.removeEventListener('touchstart', this.handleMainClick);
            }
        }
    }
    render() {
        const _a = this.props, { breadcrumb, isBreadcrumbWidthLimited, className, children, header, sidebar, notificationDrawer, isNotificationDrawerExpanded, onNotificationDrawerExpand, isTertiaryNavWidthLimited, skipToContent, role, mainContainerId, isManagedSidebar, 
        // eslint-disable-next-line @typescript-eslint/no-unused-vars
        defaultManagedSidebarIsOpen, 
        // eslint-disable-next-line @typescript-eslint/no-unused-vars
        onPageResize, mainAriaLabel, mainTabIndex, tertiaryNav, isTertiaryNavGrouped, isBreadcrumbGrouped, additionalGroupedContent, groupProps } = _a, rest = (0,tslib__WEBPACK_IMPORTED_MODULE_3__.__rest)(_a, ["breadcrumb", "isBreadcrumbWidthLimited", "className", "children", "header", "sidebar", "notificationDrawer", "isNotificationDrawerExpanded", "onNotificationDrawerExpand", "isTertiaryNavWidthLimited", "skipToContent", "role", "mainContainerId", "isManagedSidebar", "defaultManagedSidebarIsOpen", "onPageResize", "mainAriaLabel", "mainTabIndex", "tertiaryNav", "isTertiaryNavGrouped", "isBreadcrumbGrouped", "additionalGroupedContent", "groupProps"]);
        const { mobileView, mobileIsNavOpen, desktopIsNavOpen } = this.state;
        const context = {
            isManagedSidebar,
            onNavToggle: mobileView ? this.onNavToggleMobile : this.onNavToggleDesktop,
            isNavOpen: mobileView ? mobileIsNavOpen : desktopIsNavOpen
        };
        let nav = null;
        if (tertiaryNav && isTertiaryNavWidthLimited) {
            nav = (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_5__["default"].pageMainNav, _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.limitWidth) },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_5__["default"].pageMainBody) }, tertiaryNav)));
        }
        else if (tertiaryNav) {
            nav = react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_5__["default"].pageMainNav) }, tertiaryNav);
        }
        let crumb = null;
        if (breadcrumb && isBreadcrumbWidthLimited) {
            crumb = (react__WEBPACK_IMPORTED_MODULE_0__.createElement("section", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_5__["default"].pageMainBreadcrumb, _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.limitWidth) },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_5__["default"].pageMainBody) }, breadcrumb)));
        }
        else if (breadcrumb) {
            crumb = react__WEBPACK_IMPORTED_MODULE_0__.createElement("section", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_5__["default"].pageMainBreadcrumb) }, breadcrumb);
        }
        const isGrouped = isTertiaryNavGrouped || isBreadcrumbGrouped || additionalGroupedContent;
        const group = isGrouped ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_PageGroup__WEBPACK_IMPORTED_MODULE_6__.PageGroup, Object.assign({}, groupProps),
            isTertiaryNavGrouped && nav,
            isBreadcrumbGrouped && crumb,
            additionalGroupedContent)) : null;
        const main = (react__WEBPACK_IMPORTED_MODULE_0__.createElement("main", { ref: this.mainRef, role: role, id: mainContainerId, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_5__["default"].pageMain), tabIndex: mainTabIndex, "aria-label": mainAriaLabel },
            group,
            !isTertiaryNavGrouped && nav,
            !isBreadcrumbGrouped && crumb,
            children));
        const panelContent = react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Drawer__WEBPACK_IMPORTED_MODULE_7__.DrawerPanelContent, null, notificationDrawer);
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(PageContextProvider, { value: context },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({}, rest, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_5__["default"].page, className) }),
                skipToContent,
                header,
                sidebar,
                notificationDrawer && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_5__["default"].pageDrawer) },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Drawer__WEBPACK_IMPORTED_MODULE_8__.Drawer, { isExpanded: isNotificationDrawerExpanded, onExpand: onNotificationDrawerExpand },
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Drawer__WEBPACK_IMPORTED_MODULE_9__.DrawerContent, { panelContent: panelContent },
                            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Drawer__WEBPACK_IMPORTED_MODULE_10__.DrawerContentBody, null, main))))),
                !notificationDrawer && main)));
    }
}
Page.displayName = 'Page';
Page.defaultProps = {
    isManagedSidebar: false,
    isBreadcrumbWidthLimited: false,
    defaultManagedSidebarIsOpen: true,
    onPageResize: () => null,
    mainTabIndex: -1,
    isNotificationDrawerExpanded: false,
    onNotificationDrawerExpand: () => null
};
//# sourceMappingURL=Page.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Page/PageGroup.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Page/PageGroup.js ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "PageGroup": () => (/* binding */ PageGroup)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Page/page */ "./node_modules/@patternfly/react-styles/css/components/Page/page.js");




const PageGroup = (_a) => {
    var { className = '', children, sticky, hasShadowTop = false, hasShadowBottom = false, hasOverflowScroll = false } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "children", "sticky", "hasShadowTop", "hasShadowBottom", "hasOverflowScroll"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({}, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_3__["default"].pageMainGroup, sticky === 'top' && _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.stickyTop, sticky === 'bottom' && _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.stickyBottom, hasShadowTop && _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.shadowTop, hasShadowBottom && _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.shadowBottom, hasOverflowScroll && _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.overflowScroll, className) }), children));
};
PageGroup.displayName = 'PageGroup';
//# sourceMappingURL=PageGroup.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Page/PageSection.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Page/PageSection.js ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "PageSectionVariants": () => (/* binding */ PageSectionVariants),
/* harmony export */   "PageSectionTypes": () => (/* binding */ PageSectionTypes),
/* harmony export */   "PageSection": () => (/* binding */ PageSection)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Page/page */ "./node_modules/@patternfly/react-styles/css/components/Page/page.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _helpers_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/util */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");





var PageSectionVariants;
(function (PageSectionVariants) {
    PageSectionVariants["default"] = "default";
    PageSectionVariants["light"] = "light";
    PageSectionVariants["dark"] = "dark";
    PageSectionVariants["darker"] = "darker";
})(PageSectionVariants || (PageSectionVariants = {}));
var PageSectionTypes;
(function (PageSectionTypes) {
    PageSectionTypes["default"] = "default";
    PageSectionTypes["nav"] = "nav";
    PageSectionTypes["subNav"] = "subnav";
    PageSectionTypes["breadcrumb"] = "breadcrumb";
    PageSectionTypes["tabs"] = "tabs";
    PageSectionTypes["wizard"] = "wizard";
})(PageSectionTypes || (PageSectionTypes = {}));
const variantType = {
    [PageSectionTypes.default]: _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_1__["default"].pageMainSection,
    [PageSectionTypes.nav]: _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_1__["default"].pageMainNav,
    [PageSectionTypes.subNav]: _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_1__["default"].pageMainSubnav,
    [PageSectionTypes.breadcrumb]: _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_1__["default"].pageMainBreadcrumb,
    [PageSectionTypes.tabs]: _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_1__["default"].pageMainTabs,
    [PageSectionTypes.wizard]: _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_1__["default"].pageMainWizard
};
const variantStyle = {
    [PageSectionVariants.default]: '',
    [PageSectionVariants.light]: _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.light,
    [PageSectionVariants.dark]: _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.dark_200,
    [PageSectionVariants.darker]: _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.dark_100
};
const PageSection = (_a) => {
    var { className = '', children, variant = 'default', type = 'default', padding, isFilled, isWidthLimited = false, sticky, hasShadowTop = false, hasShadowBottom = false, hasOverflowScroll = false } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["className", "children", "variant", "type", "padding", "isFilled", "isWidthLimited", "sticky", "hasShadowTop", "hasShadowBottom", "hasOverflowScroll"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("section", Object.assign({}, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(variantType[type], (0,_helpers_util__WEBPACK_IMPORTED_MODULE_4__.formatBreakpointMods)(padding, _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_1__["default"]), variantStyle[variant], isFilled === false && _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.noFill, isFilled === true && _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.fill, isWidthLimited && _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.limitWidth, sticky === 'top' && _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.stickyTop, sticky === 'bottom' && _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.stickyBottom, hasShadowTop && _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.shadowTop, hasShadowBottom && _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.shadowBottom, hasOverflowScroll && _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.overflowScroll, className) }),
        isWidthLimited && react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_1__["default"].pageMainBody) }, children),
        !isWidthLimited && children));
};
PageSection.displayName = 'PageSection';
//# sourceMappingURL=PageSection.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Page/PageSidebar.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Page/PageSidebar.js ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "PageSidebarContext": () => (/* binding */ PageSidebarContext),
/* harmony export */   "PageSidebar": () => (/* binding */ PageSidebar)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Page/page */ "./node_modules/@patternfly/react-styles/css/components/Page/page.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _Page__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Page */ "./node_modules/@patternfly/react-core/dist/esm/components/Page/Page.js");





const PageSidebarContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext({
    isNavOpen: true
});
const PageSidebar = (_a) => {
    var { className = '', nav, isNavOpen = true, theme = 'dark' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "nav", "isNavOpen", "theme"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Page__WEBPACK_IMPORTED_MODULE_2__.PageContextConsumer, null, ({ isManagedSidebar, isNavOpen: managedIsNavOpen }) => {
        const navOpen = isManagedSidebar ? managedIsNavOpen : isNavOpen;
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ id: "page-sidebar", className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_4__["default"].pageSidebar, theme === 'light' && _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.light, navOpen && _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.expanded, !navOpen && _patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.collapsed, className), "aria-hidden": !navOpen }, props),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Page_page__WEBPACK_IMPORTED_MODULE_4__["default"].pageSidebarBody) },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(PageSidebarContext.Provider, { value: { isNavOpen: navOpen } }, nav))));
    }));
};
PageSidebar.displayName = 'PageSidebar';
//# sourceMappingURL=PageSidebar.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Pagination/Navigation.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Pagination/Navigation.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Navigation": () => (/* binding */ Navigation)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Pagination_pagination__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Pagination/pagination */ "./node_modules/@patternfly/react-styles/css/components/Pagination/pagination.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_left_icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-left-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-left-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_double_left_icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-double-left-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-double-left-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-right-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-right-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_double_right_icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-double-right-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-double-right-icon.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");
/* harmony import */ var _helpers_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers/constants */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");











class Navigation extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor(props) {
        super(props);
        this.handleNewPage = (_evt, newPage) => {
            const { perPage, onSetPage } = this.props;
            const startIdx = (newPage - 1) * perPage;
            const endIdx = newPage * perPage;
            return onSetPage(_evt, newPage, perPage, startIdx, endIdx);
        };
        this.state = { userInputPage: this.props.page };
    }
    static parseInteger(input, lastPage) {
        // eslint-disable-next-line radix
        let inputPage = Number.parseInt(input, 10);
        if (!Number.isNaN(inputPage)) {
            inputPage = inputPage > lastPage ? lastPage : inputPage;
            inputPage = inputPage < 1 ? 1 : inputPage;
        }
        return inputPage;
    }
    onChange(event, lastPage) {
        const inputPage = Navigation.parseInteger(event.target.value, lastPage);
        this.setState({ userInputPage: Number.isNaN(inputPage) ? event.target.value : inputPage });
    }
    onKeyDown(event, page, lastPage, onPageInput) {
        if (event.keyCode === _helpers_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_CODES.ENTER) {
            const inputPage = Navigation.parseInteger(this.state.userInputPage, lastPage);
            onPageInput(event, Number.isNaN(inputPage) ? page : inputPage);
            this.handleNewPage(event, Number.isNaN(inputPage) ? page : inputPage);
        }
    }
    componentDidUpdate(lastState) {
        if (this.props.page !== lastState.page &&
            this.props.page <= this.props.lastPage &&
            this.state.userInputPage !== this.props.page) {
            this.setState({ userInputPage: this.props.page });
        }
    }
    render() {
        const _a = this.props, { page, 
        // eslint-disable-next-line @typescript-eslint/no-unused-vars
        perPage, 
        // eslint-disable-next-line @typescript-eslint/no-unused-vars
        onSetPage, isDisabled, itemCount, lastPage, firstPage, pagesTitle, toLastPage, toNextPage, toFirstPage, toPreviousPage, currPage, paginationTitle, ofWord, onNextClick, onPreviousClick, onFirstClick, onLastClick, onPageInput, className, isCompact } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["page", "perPage", "onSetPage", "isDisabled", "itemCount", "lastPage", "firstPage", "pagesTitle", "toLastPage", "toNextPage", "toFirstPage", "toPreviousPage", "currPage", "paginationTitle", "ofWord", "onNextClick", "onPreviousClick", "onFirstClick", "onLastClick", "onPageInput", "className", "isCompact"]);
        const { userInputPage } = this.state;
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("nav", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Pagination_pagination__WEBPACK_IMPORTED_MODULE_4__["default"].paginationNav, className), "aria-label": paginationTitle }, props),
            !isCompact && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Pagination_pagination__WEBPACK_IMPORTED_MODULE_4__["default"].paginationNavControl, _patternfly_react_styles_css_components_Pagination_pagination__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.first) },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_5__.Button, { variant: _Button__WEBPACK_IMPORTED_MODULE_5__.ButtonVariant.plain, isDisabled: isDisabled || page === firstPage || page === 0, "aria-label": toFirstPage, "data-action": "first", onClick: event => {
                        onFirstClick(event, 1);
                        this.handleNewPage(event, 1);
                        this.setState({ userInputPage: 1 });
                    } },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_double_left_icon__WEBPACK_IMPORTED_MODULE_6__["default"], null)))),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: _patternfly_react_styles_css_components_Pagination_pagination__WEBPACK_IMPORTED_MODULE_4__["default"].paginationNavControl },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_5__.Button, { variant: _Button__WEBPACK_IMPORTED_MODULE_5__.ButtonVariant.plain, isDisabled: isDisabled || page === firstPage || page === 0, "data-action": "previous", onClick: event => {
                        const newPage = page - 1 >= 1 ? page - 1 : 1;
                        onPreviousClick(event, newPage);
                        this.handleNewPage(event, newPage);
                        this.setState({ userInputPage: newPage });
                    }, "aria-label": toPreviousPage },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_left_icon__WEBPACK_IMPORTED_MODULE_7__["default"], null))),
            !isCompact && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: _patternfly_react_styles_css_components_Pagination_pagination__WEBPACK_IMPORTED_MODULE_4__["default"].paginationNavPageSelect },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Pagination_pagination__WEBPACK_IMPORTED_MODULE_4__["default"].formControl), "aria-label": currPage, type: "number", disabled: isDisabled || (itemCount && page === firstPage && page === lastPage && itemCount >= 0) || page === 0, min: lastPage <= 0 && firstPage <= 0 ? 0 : 1, max: lastPage, value: userInputPage, onKeyDown: event => this.onKeyDown(event, page, lastPage, onPageInput), onChange: event => this.onChange(event, lastPage) }),
                (itemCount || itemCount === 0) && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { "aria-hidden": "true" },
                    ofWord,
                    " ",
                    pagesTitle ? (0,_helpers__WEBPACK_IMPORTED_MODULE_8__.pluralize)(lastPage, pagesTitle) : lastPage)))),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: _patternfly_react_styles_css_components_Pagination_pagination__WEBPACK_IMPORTED_MODULE_4__["default"].paginationNavControl },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_5__.Button, { variant: _Button__WEBPACK_IMPORTED_MODULE_5__.ButtonVariant.plain, isDisabled: isDisabled || page === lastPage, "aria-label": toNextPage, "data-action": "next", onClick: event => {
                        const newPage = page + 1 <= lastPage ? page + 1 : lastPage;
                        onNextClick(event, newPage);
                        this.handleNewPage(event, newPage);
                        this.setState({ userInputPage: newPage });
                    } },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_9__["default"], null))),
            !isCompact && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Pagination_pagination__WEBPACK_IMPORTED_MODULE_4__["default"].paginationNavControl, _patternfly_react_styles_css_components_Pagination_pagination__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.last) },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_5__.Button, { variant: _Button__WEBPACK_IMPORTED_MODULE_5__.ButtonVariant.plain, isDisabled: isDisabled || page === lastPage, "aria-label": toLastPage, "data-action": "last", onClick: event => {
                        onLastClick(event, lastPage);
                        this.handleNewPage(event, lastPage);
                        this.setState({ userInputPage: lastPage });
                    } },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_double_right_icon__WEBPACK_IMPORTED_MODULE_10__["default"], null))))));
    }
}
Navigation.displayName = 'Navigation';
Navigation.defaultProps = {
    className: '',
    isDisabled: false,
    isCompact: false,
    lastPage: 0,
    firstPage: 0,
    pagesTitle: '',
    toLastPage: 'Go to last page',
    toNextPage: 'Go to next page',
    toFirstPage: 'Go to first page',
    toPreviousPage: 'Go to previous page',
    currPage: 'Current page',
    paginationTitle: 'Pagination',
    ofWord: 'of',
    onNextClick: () => undefined,
    onPreviousClick: () => undefined,
    onFirstClick: () => undefined,
    onLastClick: () => undefined,
    onPageInput: () => undefined
};
//# sourceMappingURL=Navigation.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Pagination/OptionsToggle.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Pagination/OptionsToggle.js ***!
  \*********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "OptionsToggle": () => (/* binding */ OptionsToggle)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_OptionsMenu_options_menu__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles/css/components/OptionsMenu/options-menu */ "./node_modules/@patternfly/react-styles/css/components/OptionsMenu/options-menu.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Dropdown */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownToggle.js");





let toggleId = 0;
const OptionsToggle = ({ itemsTitle = 'items', optionsToggle = 'Items per page', 
// eslint-disable-next-line @typescript-eslint/no-unused-vars
itemsPerPageTitle = 'Items per page', ofWord = 'of', firstIndex = 0, lastIndex = 0, itemCount, widgetId = '', showToggle = true, 
// eslint-disable-next-line @typescript-eslint/no-unused-vars
onToggle = (_isOpen) => undefined, isOpen = false, isDisabled = false, parentRef = null, toggleTemplate: ToggleTemplate, onEnter = null }) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_OptionsMenu_options_menu__WEBPACK_IMPORTED_MODULE_2__["default"].optionsMenuToggle, isDisabled && _patternfly_react_styles_css_components_OptionsMenu_options_menu__WEBPACK_IMPORTED_MODULE_2__["default"].modifiers.disabled, _patternfly_react_styles_css_components_OptionsMenu_options_menu__WEBPACK_IMPORTED_MODULE_2__["default"].modifiers.plain, _patternfly_react_styles_css_components_OptionsMenu_options_menu__WEBPACK_IMPORTED_MODULE_2__["default"].modifiers.text) }, showToggle && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
    react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_OptionsMenu_options_menu__WEBPACK_IMPORTED_MODULE_2__["default"].optionsMenuToggleText) }, typeof ToggleTemplate === 'string' ? ((0,_helpers__WEBPACK_IMPORTED_MODULE_3__.fillTemplate)(ToggleTemplate, { firstIndex, lastIndex, ofWord, itemCount, itemsTitle })) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement(ToggleTemplate, { firstIndex: firstIndex, lastIndex: lastIndex, ofWord: ofWord, itemCount: itemCount, itemsTitle: itemsTitle }))),
    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_4__.DropdownToggle, { onEnter: onEnter, "aria-label": optionsToggle, onToggle: onToggle, isDisabled: isDisabled || (itemCount && itemCount <= 0), isOpen: isOpen, id: `${widgetId}-toggle-${toggleId++}`, className: _patternfly_react_styles_css_components_OptionsMenu_options_menu__WEBPACK_IMPORTED_MODULE_2__["default"].optionsMenuToggleButton, parentRef: parentRef })))));
OptionsToggle.displayName = 'OptionsToggle';
//# sourceMappingURL=OptionsToggle.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Pagination/Pagination.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Pagination/Pagination.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "PaginationVariant": () => (/* binding */ PaginationVariant),
/* harmony export */   "Pagination": () => (/* binding */ Pagination)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _ToggleTemplate__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ToggleTemplate */ "./node_modules/@patternfly/react-core/dist/esm/components/Pagination/ToggleTemplate.js");
/* harmony import */ var _patternfly_react_styles_css_components_Pagination_pagination__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Pagination/pagination */ "./node_modules/@patternfly/react-styles/css/components/Pagination/pagination.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");
/* harmony import */ var _Navigation__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Navigation */ "./node_modules/@patternfly/react-core/dist/esm/components/Pagination/Navigation.js");
/* harmony import */ var _PaginationOptionsMenu__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./PaginationOptionsMenu */ "./node_modules/@patternfly/react-core/dist/esm/components/Pagination/PaginationOptionsMenu.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_c_pagination_nav_page_select_c_form_control_width_chars__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/c_pagination__nav_page_select_c_form_control_width_chars */ "./node_modules/@patternfly/react-tokens/dist/esm/c_pagination__nav_page_select_c_form_control_width_chars.js");










var PaginationVariant;
(function (PaginationVariant) {
    PaginationVariant["top"] = "top";
    PaginationVariant["bottom"] = "bottom";
})(PaginationVariant || (PaginationVariant = {}));
const defaultPerPageOptions = [
    {
        title: '10',
        value: 10
    },
    {
        title: '20',
        value: 20
    },
    {
        title: '50',
        value: 50
    },
    {
        title: '100',
        value: 100
    }
];
const handleInputWidth = (lastPage, node) => {
    if (!node) {
        return;
    }
    const len = String(lastPage).length;
    if (len >= 3) {
        node.style.setProperty(_patternfly_react_tokens_dist_esm_c_pagination_nav_page_select_c_form_control_width_chars__WEBPACK_IMPORTED_MODULE_1__["default"].name, `${len}`);
    }
    else {
        node.style.setProperty(_patternfly_react_tokens_dist_esm_c_pagination_nav_page_select_c_form_control_width_chars__WEBPACK_IMPORTED_MODULE_1__["default"].name, '2');
    }
};
let paginationId = 0;
class Pagination extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor() {
        super(...arguments);
        this.paginationRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.state = {
            ouiaStateId: (0,_helpers__WEBPACK_IMPORTED_MODULE_2__.getDefaultOUIAId)(Pagination.displayName, this.props.variant)
        };
    }
    getLastPage() {
        const { itemCount, perPage, page } = this.props;
        // when itemCount is not known let's set lastPage as page+1 as we don't know the total count
        return itemCount || itemCount === 0 ? Math.ceil(itemCount / perPage) || 0 : page + 1;
    }
    componentDidMount() {
        const node = this.paginationRef.current;
        handleInputWidth(this.getLastPage(), node);
    }
    componentDidUpdate(prevProps) {
        const node = this.paginationRef.current;
        if (prevProps.perPage !== this.props.perPage || prevProps.itemCount !== this.props.itemCount) {
            handleInputWidth(this.getLastPage(), node);
        }
    }
    render() {
        const _a = this.props, { children, className, variant, isDisabled, isCompact, isStatic, isSticky, perPage, titles, firstPage, page: propPage, offset, defaultToFullPage, itemCount, itemsStart, itemsEnd, perPageOptions, dropDirection: dropDirectionProp, widgetId, toggleTemplate, onSetPage, onPerPageSelect, onFirstClick, onPreviousClick, onNextClick, onPageInput, onLastClick, ouiaId, ouiaSafe } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_3__.__rest)(_a, ["children", "className", "variant", "isDisabled", "isCompact", "isStatic", "isSticky", "perPage", "titles", "firstPage", "page", "offset", "defaultToFullPage", "itemCount", "itemsStart", "itemsEnd", "perPageOptions", "dropDirection", "widgetId", "toggleTemplate", "onSetPage", "onPerPageSelect", "onFirstClick", "onPreviousClick", "onNextClick", "onPageInput", "onLastClick", "ouiaId", "ouiaSafe"]);
        const dropDirection = dropDirectionProp || (variant === 'bottom' && !isStatic ? 'up' : 'down');
        let page = propPage;
        if (!page && offset) {
            page = Math.ceil(offset / perPage);
        }
        if (page === 0 && !itemCount) {
            page = 1;
        }
        const lastPage = this.getLastPage();
        let firstIndex = (page - 1) * perPage + 1;
        let lastIndex = page * perPage;
        if (itemCount || itemCount === 0) {
            firstIndex = itemCount <= 0 ? 0 : (page - 1) * perPage + 1;
            if (page < firstPage && itemCount > 0) {
                page = firstPage;
            }
            else if (page > lastPage) {
                page = lastPage;
            }
            if (itemCount >= 0) {
                lastIndex = page === lastPage || itemCount === 0 ? itemCount : page * perPage;
            }
        }
        const toggleTemplateProps = { firstIndex, lastIndex, itemCount, itemsTitle: titles.items, ofWord: titles.ofWord };
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ ref: this.paginationRef, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Pagination_pagination__WEBPACK_IMPORTED_MODULE_5__["default"].pagination, variant === PaginationVariant.bottom && _patternfly_react_styles_css_components_Pagination_pagination__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.bottom, isCompact && _patternfly_react_styles_css_components_Pagination_pagination__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.compact, isStatic && _patternfly_react_styles_css_components_Pagination_pagination__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers["static"], isSticky && _patternfly_react_styles_css_components_Pagination_pagination__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.sticky, className), id: `${widgetId}-${paginationId++}` }, (0,_helpers__WEBPACK_IMPORTED_MODULE_2__.getOUIAProps)(Pagination.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), props),
            variant === PaginationVariant.top && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Pagination_pagination__WEBPACK_IMPORTED_MODULE_5__["default"].paginationTotalItems) },
                toggleTemplate && typeof toggleTemplate === 'string' && (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.fillTemplate)(toggleTemplate, toggleTemplateProps),
                toggleTemplate &&
                    typeof toggleTemplate !== 'string' &&
                    toggleTemplate(toggleTemplateProps),
                !toggleTemplate && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ToggleTemplate__WEBPACK_IMPORTED_MODULE_7__.ToggleTemplate, { firstIndex: firstIndex, lastIndex: lastIndex, itemCount: itemCount, itemsTitle: titles.items, ofWord: titles.ofWord })))),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_PaginationOptionsMenu__WEBPACK_IMPORTED_MODULE_8__.PaginationOptionsMenu, { itemsPerPageTitle: titles.itemsPerPage, perPageSuffix: titles.perPageSuffix, itemsTitle: isCompact ? '' : titles.items, optionsToggle: titles.optionsToggle, perPageOptions: perPageOptions, firstIndex: itemsStart !== null ? itemsStart : firstIndex, lastIndex: itemsEnd !== null ? itemsEnd : lastIndex, ofWord: titles.ofWord, defaultToFullPage: defaultToFullPage, itemCount: itemCount, page: page, perPage: perPage, lastPage: lastPage, onPerPageSelect: onPerPageSelect, dropDirection: dropDirection, widgetId: widgetId, toggleTemplate: toggleTemplate, isDisabled: isDisabled }),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Navigation__WEBPACK_IMPORTED_MODULE_9__.Navigation, { pagesTitle: titles.page, toLastPage: titles.toLastPage, toPreviousPage: titles.toPreviousPage, toNextPage: titles.toNextPage, toFirstPage: titles.toFirstPage, currPage: titles.currPage, paginationTitle: titles.paginationTitle, ofWord: titles.ofWord, page: itemCount && itemCount <= 0 ? 0 : page, perPage: perPage, itemCount: itemCount, firstPage: itemsStart !== null ? itemsStart : 1, lastPage: lastPage, onSetPage: onSetPage, onFirstClick: onFirstClick, onPreviousClick: onPreviousClick, onNextClick: onNextClick, onLastClick: onLastClick, onPageInput: onPageInput, isDisabled: isDisabled, isCompact: isCompact }),
            children));
    }
}
Pagination.displayName = 'Pagination';
Pagination.defaultProps = {
    children: null,
    className: '',
    variant: PaginationVariant.top,
    isDisabled: false,
    isCompact: false,
    isSticky: false,
    perPage: defaultPerPageOptions[0].value,
    titles: {
        items: '',
        page: '',
        itemsPerPage: 'Items per page',
        perPageSuffix: 'per page',
        toFirstPage: 'Go to first page',
        toPreviousPage: 'Go to previous page',
        toLastPage: 'Go to last page',
        toNextPage: 'Go to next page',
        optionsToggle: 'Items per page',
        currPage: 'Current page',
        paginationTitle: 'Pagination',
        ofWord: 'of'
    },
    firstPage: 1,
    page: 0,
    offset: 0,
    defaultToFullPage: false,
    itemsStart: null,
    itemsEnd: null,
    perPageOptions: defaultPerPageOptions,
    widgetId: 'pagination-options-menu',
    onSetPage: () => undefined,
    onPerPageSelect: () => undefined,
    onFirstClick: () => undefined,
    onPreviousClick: () => undefined,
    onNextClick: () => undefined,
    onPageInput: () => undefined,
    onLastClick: () => undefined,
    ouiaSafe: true
};
//# sourceMappingURL=Pagination.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Pagination/PaginationOptionsMenu.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Pagination/PaginationOptionsMenu.js ***!
  \*****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "PaginationOptionsMenu": () => (/* binding */ PaginationOptionsMenu)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_OptionsMenu_options_menu__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/OptionsMenu/options-menu */ "./node_modules/@patternfly/react-styles/css/components/OptionsMenu/options-menu.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Dropdown */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownItem.js");
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Dropdown */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/dropdownConstants.js");
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Dropdown */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownWithContext.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_check_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/check-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/check-icon.js");
/* harmony import */ var _OptionsToggle__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./OptionsToggle */ "./node_modules/@patternfly/react-core/dist/esm/components/Pagination/OptionsToggle.js");
/* harmony import */ var _ToggleTemplate__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ToggleTemplate */ "./node_modules/@patternfly/react-core/dist/esm/components/Pagination/ToggleTemplate.js");







class PaginationOptionsMenu extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor(props) {
        super(props);
        this.parentRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.onToggle = (isOpen) => {
            this.setState({ isOpen });
        };
        this.onSelect = () => {
            this.setState((prevState) => ({ isOpen: !prevState.isOpen }));
        };
        this.handleNewPerPage = (_evt, newPerPage) => {
            const { page, onPerPageSelect, itemCount, defaultToFullPage } = this.props;
            let newPage = page;
            while (Math.ceil(itemCount / newPerPage) < newPage) {
                newPage--;
            }
            if (defaultToFullPage) {
                if (itemCount / newPerPage !== newPage) {
                    while (newPage > 1 && itemCount - newPerPage * newPage < 0) {
                        newPage--;
                    }
                }
            }
            const startIdx = (newPage - 1) * newPerPage;
            const endIdx = newPage * newPerPage;
            return onPerPageSelect(_evt, newPerPage, newPage, startIdx, endIdx);
        };
        this.renderItems = () => {
            const { perPageOptions, perPage, perPageSuffix } = this.props;
            return perPageOptions.map(({ value, title }) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_1__.DropdownItem, { key: value, component: "button", "data-action": `per-page-${value}`, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(perPage === value && 'pf-m-selected'), onClick: event => this.handleNewPerPage(event, value) },
                title,
                ` ${perPageSuffix}`,
                perPage === value && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_OptionsMenu_options_menu__WEBPACK_IMPORTED_MODULE_3__["default"].optionsMenuMenuItemIcon) },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_check_icon__WEBPACK_IMPORTED_MODULE_4__["default"], null))))));
        };
        this.state = {
            isOpen: false
        };
    }
    render() {
        const { widgetId, isDisabled, itemsPerPageTitle, dropDirection, optionsToggle, perPageOptions, toggleTemplate, firstIndex, lastIndex, itemCount, itemsTitle, ofWord } = this.props;
        const { isOpen } = this.state;
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_5__.DropdownContext.Provider, { value: {
                id: widgetId,
                onSelect: this.onSelect,
                toggleIndicatorClass: _patternfly_react_styles_css_components_OptionsMenu_options_menu__WEBPACK_IMPORTED_MODULE_3__["default"].optionsMenuToggleButtonIcon,
                toggleTextClass: _patternfly_react_styles_css_components_OptionsMenu_options_menu__WEBPACK_IMPORTED_MODULE_3__["default"].optionsMenuToggleText,
                menuClass: _patternfly_react_styles_css_components_OptionsMenu_options_menu__WEBPACK_IMPORTED_MODULE_3__["default"].optionsMenuMenu,
                itemClass: _patternfly_react_styles_css_components_OptionsMenu_options_menu__WEBPACK_IMPORTED_MODULE_3__["default"].optionsMenuMenuItem,
                toggleClass: ' ',
                baseClass: _patternfly_react_styles_css_components_OptionsMenu_options_menu__WEBPACK_IMPORTED_MODULE_3__["default"].optionsMenu,
                disabledClass: _patternfly_react_styles_css_components_OptionsMenu_options_menu__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.disabled,
                menuComponent: 'ul',
                baseComponent: 'div',
                ouiaComponentType: PaginationOptionsMenu.displayName
            } },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_6__.DropdownWithContext, { direction: dropDirection, isOpen: isOpen, toggle: react__WEBPACK_IMPORTED_MODULE_0__.createElement(_OptionsToggle__WEBPACK_IMPORTED_MODULE_7__.OptionsToggle, { optionsToggle: optionsToggle, itemsPerPageTitle: itemsPerPageTitle, showToggle: perPageOptions && perPageOptions.length > 0, onToggle: this.onToggle, isOpen: isOpen, widgetId: widgetId, firstIndex: firstIndex, lastIndex: lastIndex, itemCount: itemCount, itemsTitle: itemsTitle, ofWord: ofWord, toggleTemplate: toggleTemplate, parentRef: this.parentRef.current, isDisabled: isDisabled }), dropdownItems: this.renderItems(), isPlain: true })));
    }
}
PaginationOptionsMenu.displayName = 'PaginationOptionsMenu';
PaginationOptionsMenu.defaultProps = {
    className: '',
    widgetId: '',
    isDisabled: false,
    dropDirection: _Dropdown__WEBPACK_IMPORTED_MODULE_5__.DropdownDirection.down,
    perPageOptions: [],
    itemsPerPageTitle: 'Items per page',
    perPageSuffix: 'per page',
    optionsToggle: 'Items per page',
    ofWord: 'of',
    perPage: 0,
    firstIndex: 0,
    lastIndex: 0,
    defaultToFullPage: false,
    itemsTitle: 'items',
    toggleTemplate: _ToggleTemplate__WEBPACK_IMPORTED_MODULE_8__.ToggleTemplate,
    onPerPageSelect: () => null
};
//# sourceMappingURL=PaginationOptionsMenu.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Pagination/ToggleTemplate.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Pagination/ToggleTemplate.js ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ToggleTemplate": () => (/* binding */ ToggleTemplate)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");

const ToggleTemplate = ({ firstIndex = 0, lastIndex = 0, itemCount = 0, itemsTitle = 'items', ofWord = 'of' }) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
    react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null,
        firstIndex,
        " - ",
        lastIndex),
    ' ',
    ofWord,
    " ",
    react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, itemCount),
    " ",
    itemsTitle));
ToggleTemplate.displayName = 'ToggleTemplate';
//# sourceMappingURL=ToggleTemplate.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Popover/Popover.js":
/*!************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Popover/Popover.js ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "PopoverPosition": () => (/* binding */ PopoverPosition),
/* harmony export */   "Popover": () => (/* binding */ Popover)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _helpers_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../helpers/constants */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Popover/popover */ "./node_modules/@patternfly/react-styles/css/components/Popover/popover.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _PopoverContext__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./PopoverContext */ "./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverContext.js");
/* harmony import */ var _PopoverContent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./PopoverContent */ "./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverContent.js");
/* harmony import */ var _PopoverBody__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./PopoverBody */ "./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverBody.js");
/* harmony import */ var _PopoverHeader__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./PopoverHeader */ "./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverHeader.js");
/* harmony import */ var _PopoverFooter__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./PopoverFooter */ "./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverFooter.js");
/* harmony import */ var _PopoverCloseButton__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./PopoverCloseButton */ "./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverCloseButton.js");
/* harmony import */ var _PopoverArrow__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./PopoverArrow */ "./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverArrow.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_c_popover_MaxWidth__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/c_popover_MaxWidth */ "./node_modules/@patternfly/react-tokens/dist/esm/c_popover_MaxWidth.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_c_popover_MinWidth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/c_popover_MinWidth */ "./node_modules/@patternfly/react-tokens/dist/esm/c_popover_MinWidth.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/FocusTrap/FocusTrap.js");
/* harmony import */ var _helpers_Popper_Popper__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../helpers/Popper/Popper */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/Popper.js");
/* harmony import */ var _helpers_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers/util */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");

/* eslint-disable no-console */
















var PopoverPosition;
(function (PopoverPosition) {
    PopoverPosition["auto"] = "auto";
    PopoverPosition["top"] = "top";
    PopoverPosition["bottom"] = "bottom";
    PopoverPosition["left"] = "left";
    PopoverPosition["right"] = "right";
    PopoverPosition["topStart"] = "top-start";
    PopoverPosition["topEnd"] = "top-end";
    PopoverPosition["bottomStart"] = "bottom-start";
    PopoverPosition["bottomEnd"] = "bottom-end";
    PopoverPosition["leftStart"] = "left-start";
    PopoverPosition["leftEnd"] = "left-end";
    PopoverPosition["rightStart"] = "right-start";
    PopoverPosition["rightEnd"] = "right-end";
})(PopoverPosition || (PopoverPosition = {}));
const alertStyle = {
    default: _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers["default"],
    info: _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.info,
    success: _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.success,
    warning: _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.warning,
    danger: _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.danger
};
const Popover = (_a) => {
    var { children, position = 'top', enableFlip = true, className = '', isVisible = null, shouldClose = () => null, shouldOpen = () => null, 'aria-label': ariaLabel = '', bodyContent, headerContent = null, headerComponent = 'h6', headerIcon = null, alertSeverityVariant, alertSeverityScreenReaderText, footerContent = null, appendTo = () => document.body, hideOnOutsideClick = true, onHide = () => null, onHidden = () => null, onShow = () => null, onShown = () => null, onMount = () => null, zIndex = 9999, minWidth = _patternfly_react_tokens_dist_esm_c_popover_MinWidth__WEBPACK_IMPORTED_MODULE_2__["default"] && _patternfly_react_tokens_dist_esm_c_popover_MinWidth__WEBPACK_IMPORTED_MODULE_2__["default"].value, maxWidth = _patternfly_react_tokens_dist_esm_c_popover_MaxWidth__WEBPACK_IMPORTED_MODULE_3__["default"] && _patternfly_react_tokens_dist_esm_c_popover_MaxWidth__WEBPACK_IMPORTED_MODULE_3__["default"].value, closeBtnAriaLabel = 'Close', showClose = true, distance = 25, 
    // For every initial starting position, there are 3 escape positions
    flipBehavior = ['top', 'right', 'bottom', 'left', 'top', 'right', 'bottom'], animationDuration = 300, id, withFocusTrap: propWithFocusTrap, boundary, tippyProps, reference, hasNoPadding = false, hasAutoWidth = false } = _a, rest = (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__rest)(_a, ["children", "position", "enableFlip", "className", "isVisible", "shouldClose", "shouldOpen", 'aria-label', "bodyContent", "headerContent", "headerComponent", "headerIcon", "alertSeverityVariant", "alertSeverityScreenReaderText", "footerContent", "appendTo", "hideOnOutsideClick", "onHide", "onHidden", "onShow", "onShown", "onMount", "zIndex", "minWidth", "maxWidth", "closeBtnAriaLabel", "showClose", "distance", "flipBehavior", "animationDuration", "id", "withFocusTrap", "boundary", "tippyProps", "reference", "hasNoPadding", "hasAutoWidth"]);
    if (true) {
        boundary !== undefined &&
            console.warn('The Popover boundary prop has been deprecated. If you want to constrain the popper to a specific element use the appendTo prop instead.');
        tippyProps !== undefined && console.warn('The Popover tippyProps prop has been deprecated and is no longer used.');
    }
    // could make this a prop in the future (true | false | 'toggle')
    // const hideOnClick = true;
    const uniqueId = id || (0,_helpers_util__WEBPACK_IMPORTED_MODULE_5__.getUniqueId)();
    const triggerManually = isVisible !== null;
    const [visible, setVisible] = react__WEBPACK_IMPORTED_MODULE_0__.useState(false);
    const [opacity, setOpacity] = react__WEBPACK_IMPORTED_MODULE_0__.useState(0);
    const [focusTrapActive, setFocusTrapActive] = react__WEBPACK_IMPORTED_MODULE_0__.useState(Boolean(propWithFocusTrap));
    const transitionTimerRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);
    const showTimerRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);
    const hideTimerRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        onMount();
    }, []);
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        if (triggerManually) {
            if (isVisible) {
                show();
            }
            else {
                hide();
            }
        }
    }, [isVisible, triggerManually]);
    const show = (withFocusTrap) => {
        onShow();
        if (transitionTimerRef.current) {
            clearTimeout(transitionTimerRef.current);
        }
        if (hideTimerRef.current) {
            clearTimeout(hideTimerRef.current);
        }
        showTimerRef.current = setTimeout(() => {
            setVisible(true);
            setOpacity(1);
            propWithFocusTrap !== false && withFocusTrap && setFocusTrapActive(true);
            onShown();
        }, 0);
    };
    const hide = () => {
        onHide();
        if (showTimerRef.current) {
            clearTimeout(showTimerRef.current);
        }
        hideTimerRef.current = setTimeout(() => {
            setVisible(false);
            setOpacity(0);
            setFocusTrapActive(false);
            transitionTimerRef.current = setTimeout(() => {
                onHidden();
            }, animationDuration);
        }, 0);
    };
    const positionModifiers = {
        top: _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.top,
        bottom: _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.bottom,
        left: _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.left,
        right: _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.right,
        'top-start': _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.topLeft,
        'top-end': _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.topRight,
        'bottom-start': _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.bottomLeft,
        'bottom-end': _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.bottomRight,
        'left-start': _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.leftTop,
        'left-end': _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.leftBottom,
        'right-start': _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.rightTop,
        'right-end': _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.rightBottom
    };
    const hasCustomMinWidth = minWidth !== _patternfly_react_tokens_dist_esm_c_popover_MinWidth__WEBPACK_IMPORTED_MODULE_2__["default"].value;
    const hasCustomMaxWidth = maxWidth !== _patternfly_react_tokens_dist_esm_c_popover_MaxWidth__WEBPACK_IMPORTED_MODULE_3__["default"].value;
    const onDocumentKeyDown = (event) => {
        if (event.keyCode === _helpers_constants__WEBPACK_IMPORTED_MODULE_6__.KEY_CODES.ESCAPE_KEY && visible) {
            if (triggerManually) {
                shouldClose(null, hide, event);
            }
            else {
                hide();
            }
        }
    };
    const onDocumentClick = (event, triggerElement, popperElement) => {
        if (hideOnOutsideClick && visible) {
            // check if we clicked within the popper, if so don't do anything
            const isChild = popperElement && popperElement.contains(event.target);
            if (isChild) {
                // clicked within the popper
                return;
            }
            if (triggerManually) {
                shouldClose(null, hide, event);
            }
            else {
                hide();
            }
        }
    };
    const onTriggerClick = (event) => {
        if (triggerManually) {
            if (visible) {
                shouldClose(null, hide, event);
            }
            else {
                shouldOpen(show, event);
            }
        }
        else {
            if (visible) {
                hide();
            }
            else {
                show(true);
            }
        }
    };
    const onContentMouseDown = () => {
        if (focusTrapActive) {
            setFocusTrapActive(false);
        }
    };
    const closePopover = (event) => {
        event.stopPropagation();
        if (triggerManually) {
            shouldClose(null, hide, event);
        }
        else {
            hide();
        }
    };
    const content = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_helpers__WEBPACK_IMPORTED_MODULE_7__.FocusTrap, Object.assign({ active: focusTrapActive, focusTrapOptions: {
            returnFocusOnDeactivate: true,
            clickOutsideDeactivates: true,
            fallbackFocus: () => {
                // If the popover's trigger is focused but scrolled out of view,
                // FocusTrap will throw an error when the Enter button is used on the trigger.
                // That is because the Popover is hidden when its trigger is out of view.
                // Provide a fallback in that case.
                let node = null;
                if (document && document.activeElement) {
                    node = document.activeElement;
                }
                return node;
            }
        }, preventScrollOnDeactivate: true, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_8__.css)(_patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_1__["default"].popover, alertSeverityVariant && alertStyle[alertSeverityVariant], hasNoPadding && _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.noPadding, hasAutoWidth && _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.widthAuto, className), role: "dialog", "aria-modal": "true", "aria-label": headerContent ? undefined : ariaLabel, "aria-labelledby": headerContent ? `popover-${uniqueId}-header` : undefined, "aria-describedby": `popover-${uniqueId}-body`, onMouseDown: onContentMouseDown, style: {
            minWidth: hasCustomMinWidth ? minWidth : null,
            maxWidth: hasCustomMaxWidth ? maxWidth : null,
            opacity,
            transition: (0,_helpers_Popper_Popper__WEBPACK_IMPORTED_MODULE_9__.getOpacityTransition)(animationDuration)
        } }, rest),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_PopoverArrow__WEBPACK_IMPORTED_MODULE_10__.PopoverArrow, null),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_PopoverContent__WEBPACK_IMPORTED_MODULE_11__.PopoverContent, null,
            showClose && react__WEBPACK_IMPORTED_MODULE_0__.createElement(_PopoverCloseButton__WEBPACK_IMPORTED_MODULE_12__.PopoverCloseButton, { onClose: closePopover, "aria-label": closeBtnAriaLabel }),
            headerContent && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_PopoverHeader__WEBPACK_IMPORTED_MODULE_13__.PopoverHeader, { id: `popover-${uniqueId}-header`, icon: headerIcon, alertSeverityVariant: alertSeverityVariant, alertSeverityScreenReaderText: alertSeverityScreenReaderText || `${alertSeverityVariant} alert:`, titleHeadingLevel: headerComponent }, typeof headerContent === 'function' ? headerContent(hide) : headerContent)),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_PopoverBody__WEBPACK_IMPORTED_MODULE_14__.PopoverBody, { id: `popover-${uniqueId}-body` }, typeof bodyContent === 'function' ? bodyContent(hide) : bodyContent),
            footerContent && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_PopoverFooter__WEBPACK_IMPORTED_MODULE_15__.PopoverFooter, { id: `popover-${uniqueId}-footer` }, typeof footerContent === 'function' ? footerContent(hide) : footerContent)))));
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_PopoverContext__WEBPACK_IMPORTED_MODULE_16__.PopoverContext.Provider, { value: { headerComponent } },
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_helpers_Popper_Popper__WEBPACK_IMPORTED_MODULE_9__.Popper, { trigger: children, reference: reference, popper: content, popperMatchesTriggerWidth: false, appendTo: appendTo, isVisible: visible, positionModifiers: positionModifiers, distance: distance, placement: position, onTriggerClick: onTriggerClick, onDocumentClick: onDocumentClick, onDocumentKeyDown: onDocumentKeyDown, enableFlip: enableFlip, zIndex: zIndex, flipBehavior: flipBehavior })));
};
Popover.displayName = 'Popover';
//# sourceMappingURL=Popover.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverArrow.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverArrow.js ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "PopoverArrow": () => (/* binding */ PopoverArrow)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Popover/popover */ "./node_modules/@patternfly/react-styles/css/components/Popover/popover.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");




const PopoverArrow = (_a) => {
    var { className = '' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className"]);
    return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_3__["default"].popoverArrow, className) }, props));
};
PopoverArrow.displayName = 'PopoverArrow';
//# sourceMappingURL=PopoverArrow.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverBody.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverBody.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "PopoverBody": () => (/* binding */ PopoverBody)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Popover/popover */ "./node_modules/@patternfly/react-styles/css/components/Popover/popover.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");




const PopoverBody = (_a) => {
    var { children, id, className } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "id", "className"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_3__["default"].popoverBody, className), id: id }, props), children));
};
PopoverBody.displayName = 'PopoverBody';
//# sourceMappingURL=PopoverBody.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverCloseButton.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverCloseButton.js ***!
  \***********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "PopoverCloseButton": () => (/* binding */ PopoverCloseButton)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_times_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/times-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/times-icon.js");
/* harmony import */ var _helpers_Popper_FindRefWrapper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/Popper/FindRefWrapper */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/FindRefWrapper.js");





const PopoverCloseButton = (_a) => {
    var { onClose = () => undefined } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["onClose"]);
    const [closeButtonElement, setCloseButtonElement] = react__WEBPACK_IMPORTED_MODULE_0__.useState(null);
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        closeButtonElement && closeButtonElement.addEventListener('click', onClose, false);
        return () => {
            closeButtonElement && closeButtonElement.removeEventListener('click', onClose, false);
        };
    }, [closeButtonElement]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_helpers_Popper_FindRefWrapper__WEBPACK_IMPORTED_MODULE_2__.FindRefWrapper, { onFoundRef: (foundRef) => setCloseButtonElement(foundRef) },
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__.Button, Object.assign({ variant: "plain", "aria-label": true }, props, { style: { pointerEvents: 'auto' } }),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_times_icon__WEBPACK_IMPORTED_MODULE_4__["default"], null))));
};
PopoverCloseButton.displayName = 'PopoverCloseButton';
//# sourceMappingURL=PopoverCloseButton.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverContent.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverContent.js ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "PopoverContent": () => (/* binding */ PopoverContent)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Popover/popover */ "./node_modules/@patternfly/react-styles/css/components/Popover/popover.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");




const PopoverContent = (_a) => {
    var { className = null, children } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "children"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_3__["default"].popoverContent, className) }, props), children));
};
PopoverContent.displayName = 'PopoverContent';
//# sourceMappingURL=PopoverContent.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverContext.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverContext.js ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "PopoverContext": () => (/* binding */ PopoverContext)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");

const PopoverContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext({});
//# sourceMappingURL=PopoverContext.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverFooter.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverFooter.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "PopoverFooter": () => (/* binding */ PopoverFooter)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Popover/popover */ "./node_modules/@patternfly/react-styles/css/components/Popover/popover.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");




const PopoverFooter = (_a) => {
    var { children, className = '' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("footer", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_3__["default"].popoverFooter, className) }, props), children));
};
PopoverFooter.displayName = 'PopoverFooter';
//# sourceMappingURL=PopoverFooter.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverHeader.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverHeader.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "PopoverHeader": () => (/* binding */ PopoverHeader)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Popover/popover */ "./node_modules/@patternfly/react-styles/css/components/Popover/popover.js");
/* harmony import */ var _Title__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Title */ "./node_modules/@patternfly/react-core/dist/esm/components/Title/Title.js");
/* harmony import */ var _PopoverHeaderIcon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./PopoverHeaderIcon */ "./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverHeaderIcon.js");
/* harmony import */ var _PopoverHeaderText__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./PopoverHeaderText */ "./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverHeaderText.js");







const PopoverHeader = (_a) => {
    var { children, icon, className, titleHeadingLevel = 'h6', alertSeverityVariant, id, alertSeverityScreenReaderText } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "icon", "className", "titleHeadingLevel", "alertSeverityVariant", "id", "alertSeverityScreenReaderText"]);
    const HeadingLevel = titleHeadingLevel;
    return icon || alertSeverityVariant ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement("header", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)('pf-c-popover__header', className), id: id }, props),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(HeadingLevel, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_3__["default"].popoverTitle, icon && _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.icon) },
            icon && react__WEBPACK_IMPORTED_MODULE_0__.createElement(_PopoverHeaderIcon__WEBPACK_IMPORTED_MODULE_4__.PopoverHeaderIcon, null, icon),
            alertSeverityVariant && alertSeverityScreenReaderText && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: "pf-u-screen-reader" }, alertSeverityScreenReaderText)),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_PopoverHeaderText__WEBPACK_IMPORTED_MODULE_5__.PopoverHeaderText, null, children)))) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Title__WEBPACK_IMPORTED_MODULE_6__.Title, Object.assign({ headingLevel: titleHeadingLevel, size: _Title__WEBPACK_IMPORTED_MODULE_6__.TitleSizes.md, id: id, className: className }, props), children));
};
PopoverHeader.displayName = 'PopoverHeader';
//# sourceMappingURL=PopoverHeader.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverHeaderIcon.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverHeaderIcon.js ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "PopoverHeaderIcon": () => (/* binding */ PopoverHeaderIcon)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Popover/popover */ "./node_modules/@patternfly/react-styles/css/components/Popover/popover.js");




const PopoverHeaderIcon = (_a) => {
    var { children, className } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_3__["default"].popoverTitleIcon, className) }, props), children));
};
PopoverHeaderIcon.displayName = 'PopoverHeaderIcon';
//# sourceMappingURL=PopoverHeaderIcon.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverHeaderText.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Popover/PopoverHeaderText.js ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "PopoverHeaderText": () => (/* binding */ PopoverHeaderText)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Popover/popover */ "./node_modules/@patternfly/react-styles/css/components/Popover/popover.js");




const PopoverHeaderText = (_a) => {
    var { children, className } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Popover_popover__WEBPACK_IMPORTED_MODULE_3__["default"].popoverTitleText, className) }, props), children));
};
PopoverHeaderText.displayName = 'PopoverHeaderText';
//# sourceMappingURL=PopoverHeaderText.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Progress/Progress.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Progress/Progress.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ProgressSize": () => (/* binding */ ProgressSize),
/* harmony export */   "Progress": () => (/* binding */ Progress)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Progress_progress__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Progress/progress */ "./node_modules/@patternfly/react-styles/css/components/Progress/progress.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _ProgressContainer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ProgressContainer */ "./node_modules/@patternfly/react-core/dist/esm/components/Progress/ProgressContainer.js");
/* harmony import */ var _helpers_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers/util */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");






var ProgressSize;
(function (ProgressSize) {
    ProgressSize["sm"] = "sm";
    ProgressSize["md"] = "md";
    ProgressSize["lg"] = "lg";
})(ProgressSize || (ProgressSize = {}));
class Progress extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor() {
        super(...arguments);
        this.id = this.props.id || (0,_helpers_util__WEBPACK_IMPORTED_MODULE_1__.getUniqueId)();
    }
    render() {
        const _a = this.props, { 
        /* eslint-disable @typescript-eslint/no-unused-vars */
        id, size, 
        /* eslint-enable @typescript-eslint/no-unused-vars */
        className, value, title, label, variant, measureLocation, min, max, valueText, isTitleTruncated, tooltipPosition, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["id", "size", "className", "value", "title", "label", "variant", "measureLocation", "min", "max", "valueText", "isTitleTruncated", "tooltipPosition", 'aria-label', 'aria-labelledby']);
        const progressBarAriaProps = {
            'aria-valuemin': min,
            'aria-valuenow': value,
            'aria-valuemax': max
        };
        if (title || ariaLabelledBy) {
            progressBarAriaProps['aria-labelledby'] = title ? `${this.id}-description` : ariaLabelledBy;
        }
        if (ariaLabel) {
            progressBarAriaProps['aria-label'] = ariaLabel;
        }
        if (valueText) {
            progressBarAriaProps['aria-valuetext'] = valueText;
        }
        if (!title && !ariaLabelledBy && !ariaLabel) {
            /* eslint-disable no-console */
            console.warn('One of aria-label or aria-labelledby properties should be passed when using the progress component without a title.');
        }
        const scaledValue = Math.min(100, Math.max(0, Math.floor(((value - min) / (max - min)) * 100)));
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({}, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Progress_progress__WEBPACK_IMPORTED_MODULE_4__["default"].progress, _patternfly_react_styles_css_components_Progress_progress__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers[variant], ['inside', 'outside'].includes(measureLocation) && _patternfly_react_styles_css_components_Progress_progress__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers[measureLocation], measureLocation === 'inside' ? _patternfly_react_styles_css_components_Progress_progress__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers[ProgressSize.lg] : _patternfly_react_styles_css_components_Progress_progress__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers[size], !title && _patternfly_react_styles_css_components_Progress_progress__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.singleline, className), id: this.id }),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ProgressContainer__WEBPACK_IMPORTED_MODULE_5__.ProgressContainer, { parentId: this.id, value: scaledValue, title: title, label: label, variant: variant, measureLocation: measureLocation, progressBarAriaProps: progressBarAriaProps, isTitleTruncated: isTitleTruncated, tooltipPosition: tooltipPosition })));
    }
}
Progress.displayName = 'Progress';
Progress.defaultProps = {
    className: '',
    measureLocation: _ProgressContainer__WEBPACK_IMPORTED_MODULE_5__.ProgressMeasureLocation.top,
    variant: null,
    id: '',
    title: '',
    min: 0,
    max: 100,
    size: null,
    label: null,
    value: 0,
    valueText: null,
    isTitleTruncated: false,
    tooltipPosition: 'top',
    'aria-label': null,
    'aria-labelledby': null
};
//# sourceMappingURL=Progress.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Progress/ProgressBar.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Progress/ProgressBar.js ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ProgressBar": () => (/* binding */ ProgressBar)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Progress_progress__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Progress/progress */ "./node_modules/@patternfly/react-styles/css/components/Progress/progress.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");




const ProgressBar = (_a) => {
    var { progressBarAriaProps, className = '', children = null, value } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["progressBarAriaProps", "className", "children", "value"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({}, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Progress_progress__WEBPACK_IMPORTED_MODULE_3__["default"].progressBar, className) }, progressBarAriaProps),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Progress_progress__WEBPACK_IMPORTED_MODULE_3__["default"].progressIndicator), style: { width: `${value}%` } },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Progress_progress__WEBPACK_IMPORTED_MODULE_3__["default"].progressMeasure) }, children))));
};
ProgressBar.displayName = 'ProgressBar';
//# sourceMappingURL=ProgressBar.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Progress/ProgressContainer.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Progress/ProgressContainer.js ***!
  \***********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ProgressMeasureLocation": () => (/* binding */ ProgressMeasureLocation),
/* harmony export */   "ProgressVariant": () => (/* binding */ ProgressVariant),
/* harmony export */   "ProgressContainer": () => (/* binding */ ProgressContainer)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Progress_progress__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Progress/progress */ "./node_modules/@patternfly/react-styles/css/components/Progress/progress.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Tooltip */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_check_circle_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/check-circle-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/check-circle-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_times_circle_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/times-circle-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/times-circle-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_exclamation_triangle_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/exclamation-triangle-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/exclamation-triangle-icon.js");
/* harmony import */ var _ProgressBar__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ProgressBar */ "./node_modules/@patternfly/react-core/dist/esm/components/Progress/ProgressBar.js");








var ProgressMeasureLocation;
(function (ProgressMeasureLocation) {
    ProgressMeasureLocation["outside"] = "outside";
    ProgressMeasureLocation["inside"] = "inside";
    ProgressMeasureLocation["top"] = "top";
    ProgressMeasureLocation["none"] = "none";
})(ProgressMeasureLocation || (ProgressMeasureLocation = {}));
var ProgressVariant;
(function (ProgressVariant) {
    ProgressVariant["danger"] = "danger";
    ProgressVariant["success"] = "success";
    ProgressVariant["warning"] = "warning";
})(ProgressVariant || (ProgressVariant = {}));
const variantToIcon = {
    danger: _patternfly_react_icons_dist_esm_icons_times_circle_icon__WEBPACK_IMPORTED_MODULE_1__["default"],
    success: _patternfly_react_icons_dist_esm_icons_check_circle_icon__WEBPACK_IMPORTED_MODULE_2__["default"],
    warning: _patternfly_react_icons_dist_esm_icons_exclamation_triangle_icon__WEBPACK_IMPORTED_MODULE_3__["default"]
};
const ProgressContainer = ({ progressBarAriaProps, value, title = '', parentId, label = null, variant = null, measureLocation = ProgressMeasureLocation.top, isTitleTruncated = false, tooltipPosition }) => {
    const StatusIcon = variantToIcon.hasOwnProperty(variant) && variantToIcon[variant];
    const [tooltip, setTooltip] = react__WEBPACK_IMPORTED_MODULE_0__.useState('');
    const onMouseEnter = (event) => {
        if (event.target.offsetWidth < event.target.scrollWidth) {
            setTooltip(title || event.target.innerHTML);
        }
        else {
            setTooltip('');
        }
    };
    const Title = (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Progress_progress__WEBPACK_IMPORTED_MODULE_5__["default"].progressDescription, isTitleTruncated && typeof title === 'string' && _patternfly_react_styles_css_components_Progress_progress__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.truncate), id: `${parentId}-description`, "aria-hidden": "true", onMouseEnter: isTitleTruncated && typeof title === 'string' ? onMouseEnter : null }, title));
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
        tooltip ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Tooltip__WEBPACK_IMPORTED_MODULE_6__.Tooltip, { position: tooltipPosition, content: tooltip, isVisible: true }, Title)) : (Title),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Progress_progress__WEBPACK_IMPORTED_MODULE_5__["default"].progressStatus), "aria-hidden": "true" },
            (measureLocation === ProgressMeasureLocation.top || measureLocation === ProgressMeasureLocation.outside) && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Progress_progress__WEBPACK_IMPORTED_MODULE_5__["default"].progressMeasure) }, label || `${value}%`)),
            variantToIcon.hasOwnProperty(variant) && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Progress_progress__WEBPACK_IMPORTED_MODULE_5__["default"].progressStatusIcon) },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(StatusIcon, null)))),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ProgressBar__WEBPACK_IMPORTED_MODULE_7__.ProgressBar, { role: "progressbar", progressBarAriaProps: progressBarAriaProps, value: value }, measureLocation === ProgressMeasureLocation.inside && `${value}%`)));
};
ProgressContainer.displayName = 'ProgressContainer';
//# sourceMappingURL=ProgressContainer.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Radio/Radio.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Radio/Radio.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Radio": () => (/* binding */ Radio)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Radio_radio__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Radio/radio */ "./node_modules/@patternfly/react-styles/css/components/Radio/radio.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");





class Radio extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor(props) {
        super(props);
        this.handleChange = (event) => {
            this.props.onChange(event.currentTarget.checked, event);
        };
        if (!props.label && !props['aria-label']) {
            // eslint-disable-next-line no-console
            console.error('Radio:', 'Radio requires an aria-label to be specified');
        }
        this.state = {
            ouiaStateId: (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.getDefaultOUIAId)(Radio.displayName)
        };
    }
    render() {
        const _a = this.props, { 'aria-label': ariaLabel, checked, className, defaultChecked, isLabelWrapped, isLabelBeforeButton, isChecked, isDisabled, isValid, label, 
        // eslint-disable-next-line @typescript-eslint/no-unused-vars
        onChange, description, body, ouiaId, ouiaSafe = true } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ['aria-label', "checked", "className", "defaultChecked", "isLabelWrapped", "isLabelBeforeButton", "isChecked", "isDisabled", "isValid", "label", "onChange", "description", "body", "ouiaId", "ouiaSafe"]);
        if (!props.id) {
            // eslint-disable-next-line no-console
            console.error('Radio:', 'id is required to make input accessible');
        }
        const inputRendered = (react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", Object.assign({}, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Radio_radio__WEBPACK_IMPORTED_MODULE_4__["default"].radioInput), type: "radio", onChange: this.handleChange, "aria-invalid": !isValid, disabled: isDisabled, checked: checked || isChecked }, (checked === undefined && { defaultChecked }), (!label && { 'aria-label': ariaLabel }), (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.getOUIAProps)(Radio.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe))));
        let labelRendered = null;
        if (label && isLabelWrapped) {
            labelRendered = react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Radio_radio__WEBPACK_IMPORTED_MODULE_4__["default"].radioLabel, isDisabled && _patternfly_react_styles_css_components_Radio_radio__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.disabled) }, label);
        }
        else if (label) {
            labelRendered = (react__WEBPACK_IMPORTED_MODULE_0__.createElement("label", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Radio_radio__WEBPACK_IMPORTED_MODULE_4__["default"].radioLabel, isDisabled && _patternfly_react_styles_css_components_Radio_radio__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.disabled), htmlFor: props.id }, label));
        }
        const descRender = description ? react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Radio_radio__WEBPACK_IMPORTED_MODULE_4__["default"].radioDescription) }, description) : null;
        const bodyRender = body ? react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Radio_radio__WEBPACK_IMPORTED_MODULE_4__["default"].radioBody) }, body) : null;
        const childrenRendered = isLabelBeforeButton ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
            labelRendered,
            inputRendered,
            descRender,
            bodyRender)) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
            inputRendered,
            labelRendered,
            descRender,
            bodyRender));
        return isLabelWrapped ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement("label", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Radio_radio__WEBPACK_IMPORTED_MODULE_4__["default"].radio, className), htmlFor: props.id }, childrenRendered)) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Radio_radio__WEBPACK_IMPORTED_MODULE_4__["default"].radio, !label && _patternfly_react_styles_css_components_Radio_radio__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.standalone, className) }, childrenRendered));
    }
}
Radio.displayName = 'Radio';
Radio.defaultProps = {
    className: '',
    isDisabled: false,
    isValid: true,
    onChange: () => { }
};
//# sourceMappingURL=Radio.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/SearchInput/AdvancedSearchMenu.js":
/*!***************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/SearchInput/AdvancedSearchMenu.js ***!
  \***************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "AdvancedSearchMenu": () => (/* binding */ AdvancedSearchMenu)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_SearchInput_search_input__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles/css/components/SearchInput/search-input */ "./node_modules/@patternfly/react-styles/css/components/SearchInput/search-input.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Form */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormGroup.js");
/* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Form */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Form */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/ActionGroup.js");
/* harmony import */ var _TextInput__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../TextInput */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/GenerateId/GenerateId.js");






const AdvancedSearchMenu = ({ parentRef, parentInputRef, value = '', attributes = [], formAdditionalItems, hasWordsAttrLabel = 'Has words', advancedSearchDelimiter, getAttrValueMap, onChange, onSearch, onClear, resetButtonLabel = 'Reset', submitSearchButtonLabel = 'Search', isSearchMenuOpen, onToggleAdvancedMenu }) => {
    const firstAttrRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);
    const [putFocusBackOnInput, setPutFocusBackOnInput] = react__WEBPACK_IMPORTED_MODULE_0__.useState(false);
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        if (attributes.length > 0 && !advancedSearchDelimiter) {
            // eslint-disable-next-line no-console
            console.error('AdvancedSearchMenu: An advancedSearchDelimiter prop is required when advanced search attributes are provided using the attributes prop');
        }
    });
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        if (isSearchMenuOpen && firstAttrRef && firstAttrRef.current) {
            firstAttrRef.current.focus();
            setPutFocusBackOnInput(true);
        }
        else if (!isSearchMenuOpen && putFocusBackOnInput && parentInputRef && parentInputRef.current) {
            parentInputRef.current.focus();
        }
    }, [isSearchMenuOpen]);
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        document.addEventListener('mousedown', onDocClick);
        document.addEventListener('touchstart', onDocClick);
        document.addEventListener('keydown', onEscPress);
        return function cleanup() {
            document.removeEventListener('mousedown', onDocClick);
            document.removeEventListener('touchstart', onDocClick);
            document.removeEventListener('keydown', onEscPress);
        };
    });
    const onDocClick = (event) => {
        const clickedWithinSearchInput = parentRef && parentRef.current.contains(event.target);
        if (isSearchMenuOpen && !clickedWithinSearchInput) {
            onToggleAdvancedMenu(event);
        }
    };
    const onEscPress = (event) => {
        const keyCode = event.keyCode || event.which;
        if (isSearchMenuOpen &&
            keyCode === _helpers__WEBPACK_IMPORTED_MODULE_1__.KEY_CODES.ESCAPE_KEY &&
            parentRef &&
            parentRef.current.contains(event.target)) {
            onToggleAdvancedMenu(event);
            if (parentInputRef) {
                parentInputRef.current.focus();
            }
        }
    };
    const onSearchHandler = (event) => {
        event.preventDefault();
        if (onSearch) {
            onSearch(value, event, getAttrValueMap());
        }
        if (isSearchMenuOpen) {
            onToggleAdvancedMenu(event);
        }
    };
    const handleValueChange = (attribute, newValue, event) => {
        const newMap = getAttrValueMap();
        newMap[attribute] = newValue;
        let updatedValue = '';
        Object.entries(newMap).forEach(([k, v]) => {
            if (v.trim() !== '') {
                if (k !== 'haswords') {
                    updatedValue = `${updatedValue} ${k}${advancedSearchDelimiter}${v}`;
                }
                else {
                    updatedValue = `${updatedValue} ${v}`;
                }
            }
        });
        updatedValue = updatedValue.replace(/^\s+/g, '');
        if (onChange) {
            onChange(updatedValue, event);
        }
    };
    const getValue = (attribute) => {
        const map = getAttrValueMap();
        return map.hasOwnProperty(attribute) ? map[attribute] : '';
    };
    const buildFormGroups = () => {
        const formGroups = [];
        attributes.forEach((attribute, index) => {
            const display = typeof attribute === 'string' ? attribute : attribute.display;
            const queryAttr = typeof attribute === 'string' ? attribute : attribute.attr;
            if (index === 0) {
                formGroups.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_2__.FormGroup, { label: display, fieldId: `${queryAttr}_${index}`, key: `${attribute}_${index}` },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TextInput__WEBPACK_IMPORTED_MODULE_3__.TextInput, { ref: firstAttrRef, type: "text", id: `${queryAttr}_${index}`, value: getValue(queryAttr), onChange: (value, evt) => handleValueChange(queryAttr, value, evt) })));
            }
            else {
                formGroups.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_2__.FormGroup, { label: display, fieldId: `${queryAttr}_${index}`, key: `${attribute}_${index}` },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TextInput__WEBPACK_IMPORTED_MODULE_3__.TextInput, { type: "text", id: `${queryAttr}_${index}`, value: getValue(queryAttr), onChange: (value, evt) => handleValueChange(queryAttr, value, evt) })));
            }
        });
        formGroups.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement(_helpers__WEBPACK_IMPORTED_MODULE_4__.GenerateId, { key: 'hasWords' }, randomId => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_2__.FormGroup, { label: hasWordsAttrLabel, fieldId: randomId },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TextInput__WEBPACK_IMPORTED_MODULE_3__.TextInput, { type: "text", id: randomId, value: getValue('haswords'), onChange: (value, evt) => handleValueChange('haswords', value, evt) })))));
        return formGroups;
    };
    return isSearchMenuOpen ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: _patternfly_react_styles_css_components_SearchInput_search_input__WEBPACK_IMPORTED_MODULE_5__["default"].searchInputMenu },
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: _patternfly_react_styles_css_components_SearchInput_search_input__WEBPACK_IMPORTED_MODULE_5__["default"].searchInputMenuBody },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_6__.Form, null,
                buildFormGroups(),
                formAdditionalItems ? formAdditionalItems : null,
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Form__WEBPACK_IMPORTED_MODULE_7__.ActionGroup, null,
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_8__.Button, { variant: "primary", type: "submit", onClick: onSearchHandler }, submitSearchButtonLabel),
                    !!onClear && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_8__.Button, { variant: "link", type: "reset", onClick: onClear }, resetButtonLabel))))))) : null;
};
AdvancedSearchMenu.displayName = 'SearchInput';
//# sourceMappingURL=AdvancedSearchMenu.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/SearchInput/SearchInput.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/SearchInput/SearchInput.js ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SearchInput": () => (/* binding */ SearchInput)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_SearchInput_search_input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/SearchInput/search-input */ "./node_modules/@patternfly/react-styles/css/components/SearchInput/search-input.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _Badge__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Badge */ "./node_modules/@patternfly/react-core/dist/esm/components/Badge/Badge.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_down_icon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-down-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-down-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_up_icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-up-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-up-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_times_icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/times-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/times-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_search_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/search-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/search-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_caret_down_icon__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/caret-down-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/caret-down-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_arrow_right_icon__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/arrow-right-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/arrow-right-icon.js");
/* harmony import */ var _InputGroup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../InputGroup */ "./node_modules/@patternfly/react-core/dist/esm/components/InputGroup/InputGroup.js");
/* harmony import */ var _AdvancedSearchMenu__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./AdvancedSearchMenu */ "./node_modules/@patternfly/react-core/dist/esm/components/SearchInput/AdvancedSearchMenu.js");














const SearchInputBase = (_a) => {
    var { className, value = '', attributes = [], formAdditionalItems, hasWordsAttrLabel = 'Has words', advancedSearchDelimiter, placeholder, hint, onChange, onSearch, onClear, onToggleAdvancedSearch, isAdvancedSearchOpen, resultsCount, onNextClick, onPreviousClick, innerRef, 'aria-label': ariaLabel = 'Search input', resetButtonLabel = 'Reset', openMenuButtonAriaLabel = 'Open advanced search', submitSearchButtonLabel = 'Search', isDisabled = false } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "value", "attributes", "formAdditionalItems", "hasWordsAttrLabel", "advancedSearchDelimiter", "placeholder", "hint", "onChange", "onSearch", "onClear", "onToggleAdvancedSearch", "isAdvancedSearchOpen", "resultsCount", "onNextClick", "onPreviousClick", "innerRef", 'aria-label', "resetButtonLabel", "openMenuButtonAriaLabel", "submitSearchButtonLabel", "isDisabled"]);
    const [isSearchMenuOpen, setIsSearchMenuOpen] = react__WEBPACK_IMPORTED_MODULE_0__.useState(false);
    const [searchValue, setSearchValue] = react__WEBPACK_IMPORTED_MODULE_0__.useState(value);
    const searchInputRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);
    const searchInputInputRef = innerRef || react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        setSearchValue(value);
    }, [value]);
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        if (attributes.length > 0 && !advancedSearchDelimiter) {
            // eslint-disable-next-line no-console
            console.error('An advancedSearchDelimiter prop is required when advanced search attributes are provided using the attributes prop');
        }
    });
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        setIsSearchMenuOpen(isAdvancedSearchOpen);
    }, [isAdvancedSearchOpen]);
    const onChangeHandler = (event) => {
        if (onChange) {
            onChange(event.currentTarget.value, event);
        }
        setSearchValue(event.currentTarget.value);
    };
    const onToggle = (e) => {
        const isOpen = !isSearchMenuOpen;
        setIsSearchMenuOpen(isOpen);
        if (onToggleAdvancedSearch) {
            onToggleAdvancedSearch(e, isOpen);
        }
    };
    const onSearchHandler = (event) => {
        event.preventDefault();
        if (onSearch) {
            onSearch(value, event, getAttrValueMap());
        }
        setIsSearchMenuOpen(false);
    };
    const getAttrValueMap = () => {
        const attrValue = {};
        const pairs = searchValue.split(' ');
        pairs.map(pair => {
            const splitPair = pair.split(advancedSearchDelimiter);
            if (splitPair.length === 2) {
                attrValue[splitPair[0]] = splitPair[1];
            }
            else if (splitPair.length === 1) {
                attrValue.haswords = attrValue.hasOwnProperty('haswords')
                    ? `${attrValue.haswords} ${splitPair[0]}`
                    : splitPair[0];
            }
        });
        return attrValue;
    };
    const onEnter = (event) => {
        if (event.key === 'Enter') {
            onSearchHandler(event);
        }
    };
    const onClearInput = (e) => {
        if (onClear) {
            onClear(e);
        }
        if (searchInputInputRef && searchInputInputRef.current) {
            searchInputInputRef.current.focus();
        }
    };
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(className, _patternfly_react_styles_css_components_SearchInput_search_input__WEBPACK_IMPORTED_MODULE_3__["default"].searchInput), ref: searchInputRef }, props),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_InputGroup__WEBPACK_IMPORTED_MODULE_4__.InputGroup, null,
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_SearchInput_search_input__WEBPACK_IMPORTED_MODULE_3__["default"].searchInputBar) },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_SearchInput_search_input__WEBPACK_IMPORTED_MODULE_3__["default"].searchInputText) },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_SearchInput_search_input__WEBPACK_IMPORTED_MODULE_3__["default"].searchInputIcon) },
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_search_icon__WEBPACK_IMPORTED_MODULE_5__["default"], null)),
                    hint && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_SearchInput_search_input__WEBPACK_IMPORTED_MODULE_3__["default"].searchInputTextInput, _patternfly_react_styles_css_components_SearchInput_search_input__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.hint), type: "text", disabled: true, "aria-hidden": "true", value: hint })),
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { ref: searchInputInputRef, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_SearchInput_search_input__WEBPACK_IMPORTED_MODULE_3__["default"].searchInputTextInput), value: searchValue, placeholder: placeholder, "aria-label": ariaLabel, onKeyDown: onEnter, onChange: onChangeHandler, disabled: isDisabled })),
                value && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_SearchInput_search_input__WEBPACK_IMPORTED_MODULE_3__["default"].searchInputUtilities) },
                    resultsCount && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_SearchInput_search_input__WEBPACK_IMPORTED_MODULE_3__["default"].searchInputCount) },
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Badge__WEBPACK_IMPORTED_MODULE_6__.Badge, { isRead: true }, resultsCount))),
                    !!onNextClick && !!onPreviousClick && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_SearchInput_search_input__WEBPACK_IMPORTED_MODULE_3__["default"].searchInputNav) },
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_7__.Button, { variant: _Button__WEBPACK_IMPORTED_MODULE_7__.ButtonVariant.plain, "aria-label": "Previous", isDisabled: isDisabled, onClick: onPreviousClick },
                            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_up_icon__WEBPACK_IMPORTED_MODULE_8__["default"], null)),
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_7__.Button, { variant: _Button__WEBPACK_IMPORTED_MODULE_7__.ButtonVariant.plain, "aria-label": "Next", isDisabled: isDisabled, onClick: onNextClick },
                            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_down_icon__WEBPACK_IMPORTED_MODULE_9__["default"], null)))),
                    !!onClear && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: "pf-c-search-input__clear" },
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_7__.Button, { variant: _Button__WEBPACK_IMPORTED_MODULE_7__.ButtonVariant.plain, isDisabled: isDisabled, "aria-label": resetButtonLabel, onClick: onClearInput },
                            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_times_icon__WEBPACK_IMPORTED_MODULE_10__["default"], null))))))),
            (attributes.length > 0 || onToggleAdvancedSearch) && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_7__.Button, { className: isSearchMenuOpen && 'pf-m-expanded', variant: _Button__WEBPACK_IMPORTED_MODULE_7__.ButtonVariant.control, "aria-label": openMenuButtonAriaLabel, onClick: onToggle, isDisabled: isDisabled, "aria-expanded": isSearchMenuOpen },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_caret_down_icon__WEBPACK_IMPORTED_MODULE_11__["default"], null))),
            !!onSearch && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_7__.Button, { type: "submit", variant: _Button__WEBPACK_IMPORTED_MODULE_7__.ButtonVariant.control, "aria-label": submitSearchButtonLabel, onClick: onSearchHandler, isDisabled: isDisabled },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_arrow_right_icon__WEBPACK_IMPORTED_MODULE_12__["default"], null)))),
        attributes.length > 0 && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_AdvancedSearchMenu__WEBPACK_IMPORTED_MODULE_13__.AdvancedSearchMenu, { value: value, parentRef: searchInputRef, parentInputRef: searchInputInputRef, onSearch: onSearch, onClear: onClear, onChange: onChange, onToggleAdvancedMenu: onToggle, resetButtonLabel: resetButtonLabel, submitSearchButtonLabel: submitSearchButtonLabel, attributes: attributes, formAdditionalItems: formAdditionalItems, hasWordsAttrLabel: hasWordsAttrLabel, advancedSearchDelimiter: advancedSearchDelimiter, getAttrValueMap: getAttrValueMap, isSearchMenuOpen: isSearchMenuOpen }))));
};
SearchInputBase.displayName = 'SearchInputBase';
const SearchInput = react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((props, ref) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(SearchInputBase, Object.assign({}, props, { innerRef: ref }))));
SearchInput.displayName = 'SearchInput';
//# sourceMappingURL=SearchInput.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Select": () => (/* binding */ Select)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Select/select */ "./node_modules/@patternfly/react-styles/css/components/Select/select.js");
/* harmony import */ var _patternfly_react_styles_css_components_Badge_badge__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Badge/badge */ "./node_modules/@patternfly/react-styles/css/components/Badge/badge.js");
/* harmony import */ var _patternfly_react_styles_css_components_FormControl_form_control__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-styles/css/components/FormControl/form-control */ "./node_modules/@patternfly/react-styles/css/components/FormControl/form-control.js");
/* harmony import */ var _patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Button/button */ "./node_modules/@patternfly/react-styles/css/components/Button/button.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_times_circle_icon__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/times-circle-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/times-circle-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_check_circle_icon__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/check-circle-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/check-circle-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_exclamation_triangle_icon__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/exclamation-triangle-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/exclamation-triangle-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_exclamation_circle_icon__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/exclamation-circle-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon.js");
/* harmony import */ var _SelectMenu__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./SelectMenu */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectMenu.js");
/* harmony import */ var _SelectOption__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SelectOption */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _SelectGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SelectGroup */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectGroup.js");
/* harmony import */ var _SelectToggle__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./SelectToggle */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectToggle.js");
/* harmony import */ var _selectConstants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./selectConstants */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _ChipGroup__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../ChipGroup */ "./node_modules/@patternfly/react-core/dist/esm/components/ChipGroup/ChipGroup.js");
/* harmony import */ var _ChipGroup__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../ChipGroup */ "./node_modules/@patternfly/react-core/dist/esm/components/ChipGroup/Chip.js");
/* harmony import */ var _Spinner__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Spinner */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/GenerateId/GenerateId.js");
/* harmony import */ var _Divider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Divider */ "./node_modules/@patternfly/react-core/dist/esm/components/Divider/Divider.js");
/* harmony import */ var _helpers_Popper_Popper__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../../helpers/Popper/Popper */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/Popper.js");
/* harmony import */ var _helpers_favorites__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/favorites */ "./node_modules/@patternfly/react-core/dist/esm/helpers/favorites.js");
/* harmony import */ var _helpers_constants__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../helpers/constants */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");























// seed for the aria-labelledby ID
let currentId = 0;
class Select extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor() {
        super(...arguments);
        this.parentRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.menuComponentRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.filterRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.clearRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.inputRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.refCollection = [[]];
        this.optionContainerRefCollection = [];
        this.footerRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.state = {
            focusFirstOption: false,
            typeaheadInputValue: null,
            typeaheadFilteredChildren: react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(this.props.children),
            favoritesGroup: [],
            typeaheadCurrIndex: -1,
            typeaheadStoredIndex: -1,
            creatableValue: '',
            tabbedIntoFavoritesMenu: false,
            ouiaStateId: (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.getDefaultOUIAId)(Select.displayName, this.props.variant),
            viewMoreNextIndex: -1
        };
        this.getTypeaheadActiveChild = (typeaheadCurrIndex) => this.refCollection[typeaheadCurrIndex] ? this.refCollection[typeaheadCurrIndex][0] : null;
        this.componentDidUpdate = (prevProps, prevState) => {
            if (this.props.hasInlineFilter) {
                this.refCollection[0][0] = this.filterRef.current;
            }
            // Move focus to top of the menu if state.focusFirstOption was updated to true and the menu does not have custom content
            if (!prevState.focusFirstOption && this.state.focusFirstOption && !this.props.customContent) {
                const firstRef = this.refCollection.find(ref => ref !== null);
                if (firstRef && firstRef[0]) {
                    firstRef[0].focus();
                }
            }
            // if viewMoreNextIndex is not -1, view more was clicked, set focus on first newly loaded item
            if (this.state.viewMoreNextIndex !== -1 &&
                this.refCollection.length > this.state.viewMoreNextIndex &&
                this.props.loadingVariant !== 'spinner') {
                this.refCollection[this.state.viewMoreNextIndex][0].focus();
            }
            // the number or contents of the children has changed, update state.typeaheadFilteredChildren
            if (prevProps.children.length !== this.props.children.length ||
                prevProps.children.some((child, index) => {
                    if (child.props && this.props.children[index].props) {
                        return child.props.value !== this.props.children[index].props.value;
                    }
                    else {
                        return child !== this.props.children[index];
                    }
                })) {
                this.updateTypeAheadFilteredChildren(prevState.typeaheadInputValue || '', null);
            }
            // for menus with favorites,
            // if the number of favorites or typeahead filtered children has changed, the generated
            // list of favorites needs to be updated
            if (this.props.onFavorite &&
                (this.props.favorites.length !== prevProps.favorites.length ||
                    this.state.typeaheadFilteredChildren !== prevState.typeaheadFilteredChildren)) {
                const tempRenderableChildren = this.props.variant === 'typeahead' || this.props.variant === 'typeaheadmulti'
                    ? this.state.typeaheadFilteredChildren
                    : this.props.children;
                const renderableFavorites = (0,_helpers_favorites__WEBPACK_IMPORTED_MODULE_2__.createRenderableFavorites)(tempRenderableChildren, this.props.isGrouped, this.props.favorites);
                const favoritesGroup = renderableFavorites.length
                    ? [
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_SelectGroup__WEBPACK_IMPORTED_MODULE_3__.SelectGroup, { key: "favorites", label: this.props.favoritesLabel }, renderableFavorites),
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Divider__WEBPACK_IMPORTED_MODULE_4__.Divider, { key: "favorites-group-divider" })
                    ]
                    : [];
                this.setState({ favoritesGroup });
            }
        };
        this.onEnter = () => {
            this.setState({ focusFirstOption: true });
        };
        this.onToggle = (isExpanded) => {
            const { isInputValuePersisted, onSelect, onToggle, hasInlineFilter } = this.props;
            if (!isExpanded && isInputValuePersisted && onSelect) {
                onSelect(undefined, this.inputRef.current ? this.inputRef.current.value : '');
            }
            if (isExpanded && hasInlineFilter) {
                this.setState({
                    focusFirstOption: true
                });
            }
            onToggle(isExpanded);
        };
        this.onClose = () => {
            const { isInputFilterPersisted } = this.props;
            this.setState(Object.assign(Object.assign({ focusFirstOption: false, typeaheadInputValue: null }, (!isInputFilterPersisted && {
                typeaheadFilteredChildren: react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(this.props.children)
            })), { typeaheadCurrIndex: -1, tabbedIntoFavoritesMenu: false }));
        };
        this.onChange = (e) => {
            if (e.target.value.toString() !== '' && !this.props.isOpen) {
                this.onToggle(true);
            }
            if (this.props.onTypeaheadInputChanged) {
                this.props.onTypeaheadInputChanged(e.target.value.toString());
            }
            this.setState({
                typeaheadCurrIndex: -1,
                typeaheadInputValue: e.target.value,
                creatableValue: e.target.value
            });
            this.updateTypeAheadFilteredChildren(e.target.value.toString(), e);
            this.refCollection = [[]];
        };
        this.updateTypeAheadFilteredChildren = (typeaheadInputValue, e) => {
            let typeaheadFilteredChildren;
            const { onFilter, isCreatable, onCreateOption, createText, noResultsFoundText, children, isGrouped, isCreateSelectOptionObject } = this.props;
            if (onFilter) {
                /* The updateTypeAheadFilteredChildren callback is not only called on input changes but also when the children change.
                 * In this case the e is null but we can get the typeaheadInputValue from the state.
                 */
                typeaheadFilteredChildren = onFilter(e, e ? e.target.value : typeaheadInputValue) || children;
            }
            else {
                let input;
                try {
                    input = new RegExp(typeaheadInputValue.toString(), 'i');
                }
                catch (err) {
                    input = new RegExp(typeaheadInputValue.toString().replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), 'i');
                }
                const childrenArray = react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(children);
                if (isGrouped) {
                    const childFilter = (child) => child.props.value &&
                        child.props.value.toString &&
                        this.getDisplay(child.props.value.toString(), 'text').search(input) === 0;
                    typeaheadFilteredChildren =
                        typeaheadInputValue.toString() !== ''
                            ? react__WEBPACK_IMPORTED_MODULE_0__.Children.map(children, group => {
                                if (react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(group) && group.type === _SelectGroup__WEBPACK_IMPORTED_MODULE_3__.SelectGroup) {
                                    const filteredGroupChildren = react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(group.props.children).filter(childFilter);
                                    if (filteredGroupChildren.length > 0) {
                                        return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(group, {
                                            titleId: group.props.label && group.props.label.replace(/\W/g, '-'),
                                            children: filteredGroupChildren
                                        });
                                    }
                                }
                                else {
                                    return react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(group).filter(childFilter);
                                }
                            })
                            : childrenArray;
                }
                else {
                    typeaheadFilteredChildren =
                        typeaheadInputValue.toString() !== ''
                            ? childrenArray.filter(child => {
                                const valueToCheck = child.props.value;
                                // Dividers don't have value and should not be filtered
                                if (!valueToCheck) {
                                    return true;
                                }
                                const isSelectOptionObject = typeof valueToCheck !== 'string' &&
                                    valueToCheck.toString &&
                                    valueToCheck.compareTo;
                                if (isSelectOptionObject) {
                                    return valueToCheck.compareTo(typeaheadInputValue);
                                }
                                else {
                                    return this.getDisplay(child.props.value.toString(), 'text').search(input) === 0;
                                }
                            })
                            : childrenArray;
                }
            }
            if (!typeaheadFilteredChildren) {
                typeaheadFilteredChildren = [];
            }
            if (typeaheadFilteredChildren.length === 0) {
                !isCreatable &&
                    typeaheadFilteredChildren.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement(_SelectOption__WEBPACK_IMPORTED_MODULE_5__.SelectOption, { isDisabled: true, key: "no-results", value: noResultsFoundText, isNoResultsOption: true }));
            }
            if (isCreatable && typeaheadInputValue !== '') {
                const newValue = typeaheadInputValue;
                if (!typeaheadFilteredChildren.find((i) => i.props.value && i.props.value.toString().toLowerCase() === newValue.toString().toLowerCase())) {
                    const newOptionValue = isCreateSelectOptionObject
                        ? {
                            toString: () => newValue,
                            compareTo: value => this.toString()
                                .toLowerCase()
                                .includes(value.toString().toLowerCase())
                        }
                        : newValue;
                    typeaheadFilteredChildren.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement(_SelectOption__WEBPACK_IMPORTED_MODULE_5__.SelectOption, { key: `create ${newValue}`, value: newOptionValue, onClick: () => onCreateOption && onCreateOption(newValue) },
                        createText,
                        " \"",
                        newValue,
                        "\""));
                }
            }
            this.setState({
                typeaheadFilteredChildren
            });
        };
        this.onClick = (_e) => {
            if (!this.props.isOpen) {
                this.onToggle(true);
            }
        };
        this.clearSelection = (_e) => {
            this.setState({
                typeaheadInputValue: null,
                typeaheadFilteredChildren: react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(this.props.children),
                typeaheadCurrIndex: -1
            });
        };
        this.sendRef = (optionRef, favoriteRef, optionContainerRef, index) => {
            this.refCollection[index] = [optionRef, favoriteRef];
            this.optionContainerRefCollection[index] = optionContainerRef;
        };
        this.handleMenuKeys = (index, innerIndex, position) => {
            (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.keyHandler)(index, innerIndex, position, this.refCollection, this.refCollection);
            if (this.props.variant === _selectConstants__WEBPACK_IMPORTED_MODULE_7__.SelectVariant.typeahead || this.props.variant === _selectConstants__WEBPACK_IMPORTED_MODULE_7__.SelectVariant.typeaheadMulti) {
                if (position !== 'tab') {
                    this.handleTypeaheadKeys(position);
                }
            }
        };
        this.moveFocus = (nextIndex, updateCurrentIndex = true) => {
            const { isCreatable, createText } = this.props;
            const hasDescriptionElm = Boolean(this.refCollection[nextIndex][0] && this.refCollection[nextIndex][0].classList.contains('pf-m-description'));
            const optionTextElm = hasDescriptionElm
                ? this.refCollection[nextIndex][0].firstElementChild
                : this.refCollection[nextIndex][0];
            let typeaheadInputValue = '';
            if (isCreatable && optionTextElm.innerText.includes(createText)) {
                typeaheadInputValue = this.state.creatableValue;
            }
            else if (optionTextElm) {
                typeaheadInputValue = optionTextElm.innerText;
            }
            this.setState(prevState => ({
                typeaheadCurrIndex: updateCurrentIndex ? nextIndex : prevState.typeaheadCurrIndex,
                typeaheadStoredIndex: nextIndex,
                typeaheadInputValue
            }));
        };
        this.handleTypeaheadKeys = (position) => {
            const { isOpen, onFavorite } = this.props;
            const { typeaheadCurrIndex, tabbedIntoFavoritesMenu, typeaheadStoredIndex } = this.state;
            const typeaheadActiveChild = this.getTypeaheadActiveChild(typeaheadCurrIndex);
            if (isOpen) {
                if (position === 'enter') {
                    if (typeaheadActiveChild || (this.refCollection[0] && this.refCollection[0][0])) {
                        this.setState({
                            typeaheadInputValue: (typeaheadActiveChild && typeaheadActiveChild.innerText) || this.refCollection[0][0].innerText
                        });
                        if (typeaheadActiveChild) {
                            typeaheadActiveChild.click();
                        }
                        else {
                            this.refCollection[0][0].click();
                        }
                    }
                }
                else if (position === 'tab') {
                    if (onFavorite) {
                        if (this.inputRef.current === document.activeElement) {
                            let indexForFocus = 0;
                            if (typeaheadCurrIndex !== -1) {
                                indexForFocus = typeaheadCurrIndex;
                            }
                            else if (typeaheadStoredIndex !== -1) {
                                indexForFocus = typeaheadStoredIndex;
                            }
                            if (this.refCollection[indexForFocus] !== null && this.refCollection[indexForFocus][0] !== null) {
                                this.refCollection[indexForFocus][0].focus();
                            }
                            else {
                                this.clearRef.current.focus();
                            }
                            this.setState({
                                tabbedIntoFavoritesMenu: true,
                                typeaheadCurrIndex: -1
                            });
                        }
                        else {
                            this.inputRef.current.focus();
                            this.setState({ tabbedIntoFavoritesMenu: false });
                        }
                    }
                    else {
                        this.onToggle(false);
                    }
                }
                else if (!tabbedIntoFavoritesMenu) {
                    if (this.refCollection[0][0] === null) {
                        return;
                    }
                    let nextIndex;
                    if (typeaheadCurrIndex === -1 && position === 'down') {
                        nextIndex = 0;
                    }
                    else if (typeaheadCurrIndex === -1 && position === 'up') {
                        nextIndex = this.refCollection.length - 1;
                    }
                    else if (position !== 'left' && position !== 'right') {
                        nextIndex = (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.getNextIndex)(typeaheadCurrIndex, position, this.refCollection);
                    }
                    else {
                        nextIndex = typeaheadCurrIndex;
                    }
                    if (this.refCollection[nextIndex] === null) {
                        return;
                    }
                    this.moveFocus(nextIndex);
                }
                else {
                    const nextIndex = this.refCollection.findIndex(ref => ref !== undefined && (ref[0] === document.activeElement || ref[1] === document.activeElement));
                    this.moveFocus(nextIndex);
                }
            }
        };
        this.onClickTypeaheadToggleButton = () => {
            if (this.inputRef && this.inputRef.current) {
                this.inputRef.current.focus();
            }
        };
        this.getDisplay = (value, type = 'node') => {
            if (!value) {
                return;
            }
            const item = this.props.isGrouped
                ? react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(this.props.children)
                    .reduce((acc, curr) => [...acc, ...react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(curr.props.children)], [])
                    .find(child => child.props.value.toString() === value.toString())
                : react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(this.props.children).find(child => child.props.value &&
                    child.props.value.toString() === value.toString());
            if (item) {
                if (item && item.props.children) {
                    if (type === 'node') {
                        return item.props.children;
                    }
                    return this.findText(item);
                }
                return item.props.value.toString();
            }
            return value.toString();
        };
        this.findText = (item) => {
            if (typeof item === 'string') {
                return item;
            }
            else if (!react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(item)) {
                return '';
            }
            else {
                const multi = [];
                react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(item.props.children).forEach(child => multi.push(this.findText(child)));
                return multi.join('');
            }
        };
        this.generateSelectedBadge = () => {
            const { customBadgeText, selections } = this.props;
            if (customBadgeText !== null) {
                return customBadgeText;
            }
            if (Array.isArray(selections) && selections.length > 0) {
                return selections.length;
            }
            return null;
        };
        this.setVieMoreNextIndex = () => {
            this.setState({ viewMoreNextIndex: this.refCollection.length - 1 });
        };
        this.isLastOptionBeforeFooter = (index) => this.props.footer && index === this.refCollection.length - 1 ? true : false;
    }
    extendTypeaheadChildren(typeaheadCurrIndex, favoritesGroup) {
        const { isGrouped, onFavorite } = this.props;
        const typeaheadChildren = favoritesGroup
            ? favoritesGroup.concat(this.state.typeaheadFilteredChildren)
            : this.state.typeaheadFilteredChildren;
        const activeElement = this.optionContainerRefCollection[typeaheadCurrIndex];
        let typeaheadActiveChild = this.getTypeaheadActiveChild(typeaheadCurrIndex);
        if (typeaheadActiveChild && typeaheadActiveChild.classList.contains('pf-m-description')) {
            typeaheadActiveChild = typeaheadActiveChild.firstElementChild;
        }
        this.refCollection = [[]];
        this.optionContainerRefCollection = [];
        if (isGrouped) {
            return react__WEBPACK_IMPORTED_MODULE_0__.Children.map(typeaheadChildren, (group) => {
                if (group.type === _Divider__WEBPACK_IMPORTED_MODULE_4__.Divider) {
                    return group;
                }
                else if (group.type === _SelectGroup__WEBPACK_IMPORTED_MODULE_3__.SelectGroup && onFavorite) {
                    return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(group, {
                        titleId: group.props.label && group.props.label.replace(/\W/g, '-'),
                        children: react__WEBPACK_IMPORTED_MODULE_0__.Children.map(group.props.children, (child) => child.type === _Divider__WEBPACK_IMPORTED_MODULE_4__.Divider
                            ? child
                            : react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(child, {
                                isFocused: activeElement &&
                                    (activeElement.id === child.props.id ||
                                        (this.props.isCreatable &&
                                            typeaheadActiveChild.innerText ===
                                                `{createText} "${group.props.value}"`))
                            }))
                    });
                }
                else if (group.type === _SelectGroup__WEBPACK_IMPORTED_MODULE_3__.SelectGroup) {
                    return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(group, {
                        titleId: group.props.label && group.props.label.replace(/\W/g, '-'),
                        children: react__WEBPACK_IMPORTED_MODULE_0__.Children.map(group.props.children, (child) => child.type === _Divider__WEBPACK_IMPORTED_MODULE_4__.Divider
                            ? child
                            : react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(child, {
                                isFocused: typeaheadActiveChild &&
                                    (typeaheadActiveChild.innerText === child.props.value.toString() ||
                                        (this.props.isCreatable &&
                                            typeaheadActiveChild.innerText ===
                                                `{createText} "${child.props.value}"`))
                            }))
                    });
                }
                else {
                    // group has been filtered down to SelectOption
                    return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(group, {
                        isFocused: typeaheadActiveChild &&
                            (typeaheadActiveChild.innerText === group.props.value.toString() ||
                                (this.props.isCreatable && typeaheadActiveChild.innerText === `{createText} "${group.props.value}"`))
                    });
                }
            });
        }
        return typeaheadChildren.map((child) => {
            const childElement = child;
            return childElement.type.displayName === 'Divider'
                ? child
                : react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(child, {
                    isFocused: typeaheadActiveChild &&
                        (typeaheadActiveChild.innerText === child.props.value.toString() ||
                            (this.props.isCreatable &&
                                typeaheadActiveChild.innerText === `{createText} "${child.props.value}"`))
                });
        });
    }
    render() {
        const _a = this.props, { children, chipGroupProps, chipGroupComponent, className, customContent, variant, direction, onSelect, onClear, toggleId, isOpen, isGrouped, isPlain, isDisabled, hasPlaceholderStyle, validated, selections: selectionsProp, typeAheadAriaLabel, clearSelectionsAriaLabel, toggleAriaLabel, removeSelectionAriaLabel, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedby, 'aria-invalid': ariaInvalid, placeholderText, width, maxHeight, toggleIcon, ouiaId, ouiaSafe, hasInlineFilter, isCheckboxSelectionBadgeHidden, inlineFilterPlaceholderText, 
        /* eslint-disable @typescript-eslint/no-unused-vars */
        onFilter, 
        /* eslint-disable @typescript-eslint/no-unused-vars */
        onTypeaheadInputChanged, onCreateOption, isCreatable, onToggle, createText, noResultsFoundText, customBadgeText, inputIdPrefix, 
        /* eslint-disable @typescript-eslint/no-unused-vars */
        isInputValuePersisted, isInputFilterPersisted, 
        /* eslint-enable @typescript-eslint/no-unused-vars */
        menuAppendTo, favorites, onFavorite, 
        /* eslint-disable @typescript-eslint/no-unused-vars */
        favoritesLabel, footer, loadingVariant, isCreateSelectOptionObject } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_8__.__rest)(_a, ["children", "chipGroupProps", "chipGroupComponent", "className", "customContent", "variant", "direction", "onSelect", "onClear", "toggleId", "isOpen", "isGrouped", "isPlain", "isDisabled", "hasPlaceholderStyle", "validated", "selections", "typeAheadAriaLabel", "clearSelectionsAriaLabel", "toggleAriaLabel", "removeSelectionAriaLabel", 'aria-label', 'aria-labelledby', 'aria-describedby', 'aria-invalid', "placeholderText", "width", "maxHeight", "toggleIcon", "ouiaId", "ouiaSafe", "hasInlineFilter", "isCheckboxSelectionBadgeHidden", "inlineFilterPlaceholderText", "onFilter", "onTypeaheadInputChanged", "onCreateOption", "isCreatable", "onToggle", "createText", "noResultsFoundText", "customBadgeText", "inputIdPrefix", "isInputValuePersisted", "isInputFilterPersisted", "menuAppendTo", "favorites", "onFavorite", "favoritesLabel", "footer", "loadingVariant", "isCreateSelectOptionObject"]);
        const { focusFirstOption: openedOnEnter, typeaheadCurrIndex, typeaheadInputValue, typeaheadFilteredChildren, favoritesGroup } = this.state;
        const selectToggleId = toggleId || `pf-select-toggle-id-${currentId++}`;
        const selections = Array.isArray(selectionsProp) ? selectionsProp : [selectionsProp];
        // Find out if the selected option is a placeholder
        const selectedOption = react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(children).find((option) => option.props.value === selections[0]);
        const isSelectedPlaceholder = selectedOption && selectedOption.props.isPlaceholder;
        const hasAnySelections = Boolean(selections[0] && selections[0] !== '');
        const typeaheadActiveChild = this.getTypeaheadActiveChild(typeaheadCurrIndex);
        let childPlaceholderText = null;
        // If onFavorites is set,  add isFavorite prop to children and add a Favorites group to the SelectMenu
        let renderableItems = [];
        if (onFavorite) {
            // if variant is type-ahead call the extendTypeaheadChildren before adding favorites
            let tempExtendedChildren = children;
            if (variant === 'typeahead' || variant === 'typeaheadmulti') {
                tempExtendedChildren = this.extendTypeaheadChildren(typeaheadCurrIndex, favoritesGroup);
            }
            else if (onFavorite) {
                tempExtendedChildren = favoritesGroup.concat(children);
            }
            // mark items that are favorited with isFavorite
            renderableItems = (0,_helpers_favorites__WEBPACK_IMPORTED_MODULE_2__.extendItemsWithFavorite)(tempExtendedChildren, isGrouped, favorites);
        }
        else {
            renderableItems = children;
        }
        if (!customContent) {
            if (!hasAnySelections && !placeholderText) {
                const childPlaceholder = react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(children).filter((child) => child.props.isPlaceholder === true);
                childPlaceholderText =
                    (childPlaceholder[0] && this.getDisplay(childPlaceholder[0].props.value, 'node')) ||
                        (children[0] && this.getDisplay(children[0].props.value, 'node'));
            }
        }
        if (isOpen) {
            if (renderableItems.find(item => { var _a; return ((_a = item) === null || _a === void 0 ? void 0 : _a.key) === 'loading'; }) === undefined) {
                if (loadingVariant === 'spinner') {
                    renderableItems.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement(_SelectOption__WEBPACK_IMPORTED_MODULE_5__.SelectOption, { isLoading: true, key: "loading", value: "loading" },
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Spinner__WEBPACK_IMPORTED_MODULE_9__.Spinner, { size: "lg" })));
                }
                else if (loadingVariant === null || loadingVariant === void 0 ? void 0 : loadingVariant.text) {
                    renderableItems.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement(_SelectOption__WEBPACK_IMPORTED_MODULE_5__.SelectOption, { isLoad: true, key: "loading", value: loadingVariant.text, setViewMoreNextIndex: this.setVieMoreNextIndex, onClick: loadingVariant === null || loadingVariant === void 0 ? void 0 : loadingVariant.onClick }));
                }
            }
        }
        const hasOnClear = onClear !== Select.defaultProps.onClear;
        const clearBtn = (react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__.css)(_patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_11__["default"].button, _patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_11__["default"].modifiers.plain, _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].selectToggleClear), onClick: e => {
                this.clearSelection(e);
                onClear(e);
            }, "aria-label": clearSelectionsAriaLabel, type: "button", disabled: isDisabled, ref: this.clearRef, onKeyDown: event => {
                if (event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_7__.KeyTypes.Enter) {
                    this.clearRef.current.click();
                }
            } },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_times_circle_icon__WEBPACK_IMPORTED_MODULE_13__["default"], { "aria-hidden": true })));
        let selectedChips = null;
        if (variant === _selectConstants__WEBPACK_IMPORTED_MODULE_7__.SelectVariant.typeaheadMulti) {
            selectedChips = chipGroupComponent ? (chipGroupComponent) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ChipGroup__WEBPACK_IMPORTED_MODULE_14__.ChipGroup, Object.assign({}, chipGroupProps), selections &&
                selections.map(item => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ChipGroup__WEBPACK_IMPORTED_MODULE_15__.Chip, { key: item, onClick: (e) => onSelect(e, item), closeBtnAriaLabel: removeSelectionAriaLabel }, this.getDisplay(item, 'node'))))));
        }
        if (hasInlineFilter) {
            const filterBox = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { key: "inline-filter", className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].selectMenuSearch) },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { key: "inline-filter-input", type: "search", className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__.css)(_patternfly_react_styles_css_components_FormControl_form_control__WEBPACK_IMPORTED_MODULE_16__["default"].formControl, _patternfly_react_styles_css_components_FormControl_form_control__WEBPACK_IMPORTED_MODULE_16__["default"].modifiers.search), onChange: this.onChange, placeholder: inlineFilterPlaceholderText, onKeyDown: event => {
                            if (event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_7__.KeyTypes.ArrowUp) {
                                this.handleMenuKeys(0, 0, 'up');
                                event.preventDefault();
                            }
                            else if (event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_7__.KeyTypes.ArrowDown) {
                                this.handleMenuKeys(0, 0, 'down');
                                event.preventDefault();
                            }
                            else if (event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_7__.KeyTypes.ArrowLeft) {
                                this.handleMenuKeys(0, 0, 'left');
                                event.preventDefault();
                            }
                            else if (event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_7__.KeyTypes.ArrowRight) {
                                this.handleMenuKeys(0, 0, 'right');
                                event.preventDefault();
                            }
                            else if (event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_7__.KeyTypes.Tab && variant === _selectConstants__WEBPACK_IMPORTED_MODULE_7__.SelectVariant.checkbox) {
                                // More modal-like experience for checkboxes
                                // Let SelectOption handle this
                                if (event.shiftKey) {
                                    this.handleMenuKeys(0, 0, 'up');
                                }
                                else {
                                    this.handleMenuKeys(0, 0, 'down');
                                }
                                event.stopPropagation();
                                event.preventDefault();
                            }
                        }, ref: this.filterRef, autoComplete: "never" })),
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Divider__WEBPACK_IMPORTED_MODULE_4__.Divider, { key: "inline-filter-divider" })));
            renderableItems = [filterBox, ...typeaheadFilteredChildren].map((option, index) => react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(option, { key: index }));
        }
        let variantProps;
        let variantChildren;
        if (customContent) {
            variantProps = {
                selected: selections,
                openedOnEnter,
                isCustomContent: true
            };
            variantChildren = customContent;
        }
        else {
            switch (variant) {
                case 'single':
                    variantProps = {
                        selected: selections[0],
                        hasInlineFilter,
                        openedOnEnter
                    };
                    variantChildren = renderableItems;
                    break;
                case 'checkbox':
                    variantProps = {
                        checked: selections,
                        isGrouped,
                        hasInlineFilter,
                        openedOnEnter
                    };
                    variantChildren = renderableItems;
                    break;
                case 'typeahead':
                    variantProps = {
                        selected: selections[0],
                        openedOnEnter
                    };
                    variantChildren = onFavorite ? renderableItems : this.extendTypeaheadChildren(typeaheadCurrIndex);
                    if (variantChildren.length === 0) {
                        variantChildren.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement(_SelectOption__WEBPACK_IMPORTED_MODULE_5__.SelectOption, { isDisabled: true, key: 0, value: noResultsFoundText, isNoResultsOption: true }));
                    }
                    break;
                case 'typeaheadmulti':
                    variantProps = {
                        selected: selections,
                        openedOnEnter
                    };
                    variantChildren = onFavorite ? renderableItems : this.extendTypeaheadChildren(typeaheadCurrIndex);
                    if (variantChildren.length === 0) {
                        variantChildren.push(react__WEBPACK_IMPORTED_MODULE_0__.createElement(_SelectOption__WEBPACK_IMPORTED_MODULE_5__.SelectOption, { isDisabled: true, key: 0, value: noResultsFoundText, isNoResultsOption: true }));
                    }
                    break;
            }
        }
        const innerMenu = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_SelectMenu__WEBPACK_IMPORTED_MODULE_17__.SelectMenu, Object.assign({}, props, { isGrouped: isGrouped, selected: selections }, variantProps, { openedOnEnter: openedOnEnter, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, sendRef: this.sendRef, keyHandler: this.handleMenuKeys, maxHeight: maxHeight, ref: this.menuComponentRef, footer: footer, footerRef: this.footerRef, isLastOptionBeforeFooter: this.isLastOptionBeforeFooter }), variantChildren));
        const menuContainer = footer ? react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].selectMenu) },
            " ",
            innerMenu,
            " ") : innerMenu;
        const popperContainer = (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].select, isOpen && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].modifiers.expanded, validated === _helpers_constants__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions.success && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].modifiers.success, validated === _helpers_constants__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions.warning && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].modifiers.warning, validated === _helpers_constants__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions.error && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].modifiers.invalid, direction === _selectConstants__WEBPACK_IMPORTED_MODULE_7__.SelectDirection.up && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].modifiers.top, className) }, (width && { style: { width } }), (validated !== _helpers_constants__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions["default"] && { 'aria-describedby': ariaDescribedby }), (validated !== _helpers_constants__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions["default"] && { 'aria-invalid': ariaInvalid })), isOpen && menuContainer));
        const mainContainer = (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].select, isOpen && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].modifiers.expanded, validated === _helpers_constants__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions.success && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].modifiers.success, validated === _helpers_constants__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions.warning && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].modifiers.warning, validated === _helpers_constants__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions.error && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].modifiers.invalid, direction === _selectConstants__WEBPACK_IMPORTED_MODULE_7__.SelectDirection.up && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].modifiers.top, className), ref: this.parentRef }, (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.getOUIAProps)(Select.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), (width && { style: { width } }), (validated !== _helpers_constants__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions["default"] && { 'aria-describedby': ariaDescribedby }), (validated !== _helpers_constants__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions["default"] && { 'aria-invalid': ariaInvalid })),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_SelectToggle__WEBPACK_IMPORTED_MODULE_19__.SelectToggle, Object.assign({ id: selectToggleId, parentRef: this.parentRef, menuRef: this.menuComponentRef }, (footer && { footerRef: this.footerRef }), { isOpen: isOpen, isPlain: isPlain, hasPlaceholderStyle: hasPlaceholderStyle && (!selections.length || selections[0] === null || isSelectedPlaceholder), onToggle: this.onToggle, onEnter: this.onEnter, onClose: this.onClose, variant: variant, "aria-labelledby": `${ariaLabelledBy || ''} ${selectToggleId}`, "aria-label": toggleAriaLabel, handleTypeaheadKeys: this.handleTypeaheadKeys, isDisabled: isDisabled, hasClearButton: hasOnClear, hasFooter: footer !== undefined, onClickTypeaheadToggleButton: this.onClickTypeaheadToggleButton }),
                customContent && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].selectToggleWrapper) },
                    toggleIcon && react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].selectToggleIcon) }, toggleIcon),
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].selectToggleText) }, placeholderText))),
                variant === _selectConstants__WEBPACK_IMPORTED_MODULE_7__.SelectVariant.single && !customContent && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].selectToggleWrapper) },
                        toggleIcon && react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].selectToggleIcon) }, toggleIcon),
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].selectToggleText) }, this.getDisplay(selections[0], 'node') || placeholderText || childPlaceholderText)),
                    hasOnClear && hasAnySelections && clearBtn)),
                variant === _selectConstants__WEBPACK_IMPORTED_MODULE_7__.SelectVariant.checkbox && !customContent && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].selectToggleWrapper) },
                        toggleIcon && react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].selectToggleIcon) }, toggleIcon),
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].selectToggleText) }, placeholderText),
                        !isCheckboxSelectionBadgeHidden && hasAnySelections && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].selectToggleBadge) },
                            react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__.css)(_patternfly_react_styles_css_components_Badge_badge__WEBPACK_IMPORTED_MODULE_20__["default"].badge, _patternfly_react_styles_css_components_Badge_badge__WEBPACK_IMPORTED_MODULE_20__["default"].modifiers.read) }, this.generateSelectedBadge())))),
                    hasOnClear && hasAnySelections && clearBtn)),
                variant === _selectConstants__WEBPACK_IMPORTED_MODULE_7__.SelectVariant.typeahead && !customContent && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].selectToggleWrapper) },
                        toggleIcon && react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].selectToggleIcon) }, toggleIcon),
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__.css)(_patternfly_react_styles_css_components_FormControl_form_control__WEBPACK_IMPORTED_MODULE_16__["default"].formControl, _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].selectToggleTypeahead), "aria-activedescendant": typeaheadActiveChild && typeaheadActiveChild.id, id: `${selectToggleId}-select-typeahead`, "aria-label": typeAheadAriaLabel, placeholder: placeholderText, value: typeaheadInputValue !== null
                                ? typeaheadInputValue
                                : this.getDisplay(selections[0], 'text') || '', type: "text", onClick: this.onClick, onChange: this.onChange, autoComplete: "never", disabled: isDisabled, ref: this.inputRef })),
                    hasOnClear && (selections[0] || typeaheadInputValue) && clearBtn)),
                variant === _selectConstants__WEBPACK_IMPORTED_MODULE_7__.SelectVariant.typeaheadMulti && !customContent && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].selectToggleWrapper) },
                        toggleIcon && react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].selectToggleIcon) }, toggleIcon),
                        selections && Array.isArray(selections) && selections.length > 0 && selectedChips,
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__.css)(_patternfly_react_styles_css_components_FormControl_form_control__WEBPACK_IMPORTED_MODULE_16__["default"].formControl, _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].selectToggleTypeahead), "aria-activedescendant": typeaheadActiveChild && typeaheadActiveChild.id, id: `${selectToggleId}-select-multi-typeahead-typeahead`, "aria-label": typeAheadAriaLabel, "aria-invalid": validated === _helpers_constants__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions.error, placeholder: placeholderText, value: typeaheadInputValue !== null ? typeaheadInputValue : '', type: "text", onChange: this.onChange, onClick: this.onClick, autoComplete: "never", disabled: isDisabled, ref: this.inputRef })),
                    hasOnClear && ((selections && selections.length > 0) || typeaheadInputValue) && clearBtn)),
                validated === _helpers_constants__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions.success && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].selectToggleStatusIcon) },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_check_circle_icon__WEBPACK_IMPORTED_MODULE_21__["default"], { "aria-hidden": "true" }))),
                validated === _helpers_constants__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions.error && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].selectToggleStatusIcon) },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_exclamation_circle_icon__WEBPACK_IMPORTED_MODULE_22__["default"], { "aria-hidden": "true" }))),
                validated === _helpers_constants__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions.warning && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_10__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_12__["default"].selectToggleStatusIcon) },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_exclamation_triangle_icon__WEBPACK_IMPORTED_MODULE_23__["default"], { "aria-hidden": "true" })))),
            isOpen && menuAppendTo === 'inline' && menuContainer));
        const getParentElement = () => {
            if (this.parentRef && this.parentRef.current) {
                return this.parentRef.current.parentElement;
            }
            return null;
        };
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_helpers__WEBPACK_IMPORTED_MODULE_24__.GenerateId, null, randomId => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_selectConstants__WEBPACK_IMPORTED_MODULE_7__.SelectContext.Provider, { value: { onSelect, onFavorite, onClose: this.onClose, variant, inputIdPrefix: inputIdPrefix || randomId } }, menuAppendTo === 'inline' ? (mainContainer) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_helpers_Popper_Popper__WEBPACK_IMPORTED_MODULE_25__.Popper, { trigger: mainContainer, popper: popperContainer, direction: direction, appendTo: menuAppendTo === 'parent' ? getParentElement() : menuAppendTo, isVisible: isOpen }))))));
    }
}
Select.displayName = 'Select';
Select.defaultProps = {
    children: [],
    className: '',
    position: _selectConstants__WEBPACK_IMPORTED_MODULE_7__.SelectPosition.left,
    direction: _selectConstants__WEBPACK_IMPORTED_MODULE_7__.SelectDirection.down,
    toggleId: null,
    isOpen: false,
    isGrouped: false,
    isPlain: false,
    isDisabled: false,
    hasPlaceholderStyle: false,
    isCreatable: false,
    validated: 'default',
    'aria-label': '',
    'aria-labelledby': '',
    'aria-describedby': '',
    'aria-invalid': false,
    typeAheadAriaLabel: '',
    clearSelectionsAriaLabel: 'Clear all',
    toggleAriaLabel: 'Options menu',
    removeSelectionAriaLabel: 'Remove',
    selections: [],
    createText: 'Create',
    placeholderText: '',
    noResultsFoundText: 'No results found',
    variant: _selectConstants__WEBPACK_IMPORTED_MODULE_7__.SelectVariant.single,
    width: '',
    onClear: () => undefined,
    onCreateOption: () => undefined,
    toggleIcon: null,
    onFilter: null,
    onTypeaheadInputChanged: null,
    customContent: null,
    hasInlineFilter: false,
    inlineFilterPlaceholderText: null,
    customBadgeText: null,
    inputIdPrefix: '',
    menuAppendTo: 'inline',
    favorites: [],
    favoritesLabel: 'Favorites',
    ouiaSafe: true,
    chipGroupComponent: null,
    isInputValuePersisted: false,
    isInputFilterPersisted: false,
    isCreateSelectOptionObject: false
};
//# sourceMappingURL=Select.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectGroup.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectGroup.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SelectGroup": () => (/* binding */ SelectGroup)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Select/select */ "./node_modules/@patternfly/react-styles/css/components/Select/select.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _selectConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./selectConstants */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");





const SelectGroup = (_a) => {
    var { children = [], className = '', label = '', titleId = '' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "label", "titleId"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_selectConstants__WEBPACK_IMPORTED_MODULE_2__.SelectConsumer, null, ({ variant }) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({}, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_4__["default"].selectMenuGroup, className) }),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_4__["default"].selectMenuGroupTitle), id: titleId, "aria-hidden": true }, label),
        variant === _selectConstants__WEBPACK_IMPORTED_MODULE_2__.SelectVariant.checkbox ? children : react__WEBPACK_IMPORTED_MODULE_0__.createElement("ul", { role: "listbox" }, children)))));
};
SelectGroup.displayName = 'SelectGroup';
//# sourceMappingURL=SelectGroup.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectMenu.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectMenu.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SelectMenu": () => (/* binding */ SelectMenu)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Select/select */ "./node_modules/@patternfly/react-styles/css/components/Select/select.js");
/* harmony import */ var _patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Form/form */ "./node_modules/@patternfly/react-styles/css/components/Form/form.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _SelectOption__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SelectOption */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _selectConstants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./selectConstants */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _SelectGroup__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SelectGroup */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectGroup.js");
/* harmony import */ var _Divider_Divider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Divider/Divider */ "./node_modules/@patternfly/react-core/dist/esm/components/Divider/Divider.js");









class SelectMenuWithRef extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    extendChildren(randomId) {
        const { children, hasInlineFilter, isGrouped } = this.props;
        const childrenArray = children;
        let index = hasInlineFilter ? 1 : 0;
        if (isGrouped) {
            return react__WEBPACK_IMPORTED_MODULE_0__.Children.map(childrenArray, (group) => {
                if (group.type === _SelectGroup__WEBPACK_IMPORTED_MODULE_1__.SelectGroup) {
                    return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(group, {
                        titleId: group.props.label && group.props.label.replace(/\W/g, '-'),
                        children: react__WEBPACK_IMPORTED_MODULE_0__.Children.map(group.props.children, (option) => this.cloneOption(option, index++, randomId))
                    });
                }
                else {
                    return this.cloneOption(group, index++, randomId);
                }
            });
        }
        return react__WEBPACK_IMPORTED_MODULE_0__.Children.map(childrenArray, (child) => this.cloneOption(child, index++, randomId));
    }
    cloneOption(child, index, randomId) {
        const { selected, sendRef, keyHandler } = this.props;
        const isSelected = this.checkForValue(child.props.value, selected);
        if (child.type === _Divider_Divider__WEBPACK_IMPORTED_MODULE_2__.Divider) {
            return child;
        }
        return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(child, {
            inputId: `${randomId}-${index}`,
            isSelected,
            sendRef,
            keyHandler,
            index
        });
    }
    checkForValue(valueToCheck, options) {
        if (!options || !valueToCheck) {
            return false;
        }
        const isSelectOptionObject = typeof valueToCheck !== 'string' &&
            valueToCheck.toString &&
            valueToCheck.compareTo;
        if (Array.isArray(options)) {
            if (isSelectOptionObject) {
                return options.some(option => option.compareTo(valueToCheck));
            }
            else {
                return options.includes(valueToCheck);
            }
        }
        else {
            if (isSelectOptionObject) {
                return options.compareTo(valueToCheck);
            }
            else {
                return options === valueToCheck;
            }
        }
    }
    extendCheckboxChildren(children) {
        const { isGrouped, checked, sendRef, keyHandler, hasInlineFilter, isLastOptionBeforeFooter } = this.props;
        let index = hasInlineFilter ? 1 : 0;
        if (isGrouped) {
            return react__WEBPACK_IMPORTED_MODULE_0__.Children.map(children, (group) => {
                if (group.type === _SelectOption__WEBPACK_IMPORTED_MODULE_3__.SelectOption || group.type === _Divider_Divider__WEBPACK_IMPORTED_MODULE_2__.Divider) {
                    return group;
                }
                return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(group, {
                    titleId: group.props.label && group.props.label.replace(/\W/g, '-'),
                    children: group.props.children ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement("fieldset", { "aria-labelledby": group.props.label && group.props.label.replace(/\W/g, '-'), className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].selectMenuFieldset) }, react__WEBPACK_IMPORTED_MODULE_0__.Children.map(group.props.children, (option) => option.type === _Divider_Divider__WEBPACK_IMPORTED_MODULE_2__.Divider
                        ? option
                        : react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(option, {
                            isChecked: this.checkForValue(option.props.value, checked),
                            sendRef,
                            keyHandler,
                            index: index++
                        })))) : null
                });
            });
        }
        return react__WEBPACK_IMPORTED_MODULE_0__.Children.map(children, (child) => child.type === _Divider_Divider__WEBPACK_IMPORTED_MODULE_2__.Divider
            ? child
            : react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(child, {
                isChecked: this.checkForValue(child.props.value, checked),
                sendRef,
                keyHandler,
                index: index++,
                isLastOptionBeforeFooter
            }));
    }
    renderSelectMenu({ variant, inputIdPrefix }) {
        /* eslint-disable @typescript-eslint/no-unused-vars */
        const _a = this.props, { children, isCustomContent, className, isExpanded, openedOnEnter, selected, checked, isGrouped, position, sendRef, keyHandler, maxHeight, noResultsFoundText, createText, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, hasInlineFilter, innerRef, footer, footerRef, isLastOptionBeforeFooter } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_6__.__rest)(_a, ["children", "isCustomContent", "className", "isExpanded", "openedOnEnter", "selected", "checked", "isGrouped", "position", "sendRef", "keyHandler", "maxHeight", "noResultsFoundText", "createText", 'aria-label', 'aria-labelledby', "hasInlineFilter", "innerRef", "footer", "footerRef", "isLastOptionBeforeFooter"]);
        /* eslint-enable @typescript-eslint/no-unused-vars */
        let Component = 'div';
        const variantProps = Object.assign({ ref: innerRef, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(!footer ? _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].selectMenu : 'pf-c-select__menu-list', position === _selectConstants__WEBPACK_IMPORTED_MODULE_7__.SelectPosition.right && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.alignRight, className) }, (maxHeight && { style: { maxHeight, overflow: 'auto' } }));
        const extendedChildren = () => variant === _selectConstants__WEBPACK_IMPORTED_MODULE_7__.SelectVariant.checkbox
            ? this.extendCheckboxChildren(children)
            : this.extendChildren(inputIdPrefix);
        if (isCustomContent) {
            variantProps.children = children;
        }
        else if (hasInlineFilter) {
            if (react__WEBPACK_IMPORTED_MODULE_0__.Children.count(children) === 0) {
                variantProps.children = react__WEBPACK_IMPORTED_MODULE_0__.createElement("fieldset", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].selectMenuFieldset) });
            }
            else {
                variantProps.children = (react__WEBPACK_IMPORTED_MODULE_0__.createElement("fieldset", { "aria-label": ariaLabel, "aria-labelledby": (!ariaLabel && ariaLabelledBy) || null, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_8__["default"].formFieldset) },
                    children.shift(),
                    extendedChildren()));
            }
        }
        else {
            variantProps.children = extendedChildren();
            if (!isGrouped) {
                Component = 'ul';
                variantProps.role = 'listbox';
                variantProps['aria-label'] = ariaLabel;
                variantProps['aria-labelledby'] = (!ariaLabel && ariaLabelledBy) || null;
            }
        }
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({}, variantProps, props)),
            footer && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].selectMenuFooter), ref: footerRef }, footer))));
    }
    render() {
        return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_selectConstants__WEBPACK_IMPORTED_MODULE_7__.SelectConsumer, null, context => this.renderSelectMenu(context));
    }
}
SelectMenuWithRef.displayName = 'SelectMenu';
SelectMenuWithRef.defaultProps = {
    className: '',
    isExpanded: false,
    isGrouped: false,
    openedOnEnter: false,
    selected: '',
    maxHeight: '',
    position: _selectConstants__WEBPACK_IMPORTED_MODULE_7__.SelectPosition.left,
    sendRef: () => { },
    keyHandler: () => { },
    isCustomContent: false,
    hasInlineFilter: false,
    isLastOptionBeforeFooter: () => { }
};
const SelectMenu = react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((props, ref) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(SelectMenuWithRef, Object.assign({ innerRef: ref }, props), props.children)));
//# sourceMappingURL=SelectMenu.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SelectOption": () => (/* binding */ SelectOption)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Select/select */ "./node_modules/@patternfly/react-styles/css/components/Select/select.js");
/* harmony import */ var _patternfly_react_styles_css_components_Check_check__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Check/check */ "./node_modules/@patternfly/react-styles/css/components/Check/check.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_check_icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/check-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/check-icon.js");
/* harmony import */ var _selectConstants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./selectConstants */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_star_icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/star-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/star-icon.js");
/* harmony import */ var _helpers_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/util */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");









class SelectOption extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor() {
        super(...arguments);
        this.ref = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.liRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.favoriteRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.onKeyDown = (event, innerIndex, onEnter, isCheckbox) => {
            const { index, keyHandler, isLastOptionBeforeFooter } = this.props;
            let isLastItemBeforeFooter = false;
            if (isLastOptionBeforeFooter !== undefined) {
                isLastItemBeforeFooter = isLastOptionBeforeFooter(index);
            }
            if (event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.Tab) {
                // More modal-like experience for checkboxes
                if (isCheckbox && !isLastItemBeforeFooter) {
                    if (event.shiftKey) {
                        keyHandler(index, innerIndex, 'up');
                    }
                    else {
                        keyHandler(index, innerIndex, 'down');
                    }
                    event.stopPropagation();
                }
                else {
                    keyHandler(index, innerIndex, 'tab');
                }
            }
            event.preventDefault();
            if (event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.ArrowUp) {
                keyHandler(index, innerIndex, 'up');
            }
            else if (event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.ArrowDown) {
                keyHandler(index, innerIndex, 'down');
            }
            else if (event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.ArrowLeft) {
                keyHandler(index, innerIndex, 'left');
            }
            else if (event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.ArrowRight) {
                keyHandler(index, innerIndex, 'right');
            }
            else if (event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.Enter) {
                if (onEnter !== undefined) {
                    onEnter();
                }
                else {
                    this.ref.current.click();
                }
            }
        };
    }
    componentDidMount() {
        this.props.sendRef(this.props.isDisabled ? null : this.ref.current, this.props.isDisabled ? null : this.favoriteRef.current, this.props.isDisabled ? null : this.liRef.current, this.props.index);
    }
    componentDidUpdate() {
        this.props.sendRef(this.props.isDisabled ? null : this.ref.current, this.props.isDisabled ? null : this.favoriteRef.current, this.props.isDisabled ? null : this.liRef.current, this.props.index);
    }
    render() {
        /* eslint-disable @typescript-eslint/no-unused-vars */
        const _a = this.props, { children, className, id, description, itemCount, value, onClick, isDisabled, isPlaceholder, isNoResultsOption, isSelected, isChecked, isFocused, sendRef, keyHandler, index, component, inputId, isFavorite, ariaIsFavoriteLabel = 'starred', ariaIsNotFavoriteLabel = 'not starred', isLoad, isLoading, setViewMoreNextIndex, 
        // eslint-disable-next-line no-console
        isLastOptionBeforeFooter } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["children", "className", "id", "description", "itemCount", "value", "onClick", "isDisabled", "isPlaceholder", "isNoResultsOption", "isSelected", "isChecked", "isFocused", "sendRef", "keyHandler", "index", "component", "inputId", "isFavorite", "ariaIsFavoriteLabel", "ariaIsNotFavoriteLabel", "isLoad", "isLoading", "setViewMoreNextIndex", "isLastOptionBeforeFooter"]);
        /* eslint-enable @typescript-eslint/no-unused-vars */
        const Component = component;
        if (!id && isFavorite !== null) {
            // eslint-disable-next-line no-console
            console.error('Please provide an id to use the favorites feature.');
        }
        const generatedId = id || (0,_helpers_util__WEBPACK_IMPORTED_MODULE_3__.getUniqueId)('select-option');
        const favoriteButton = (onFavorite) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].selectMenuItem, _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.action, _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.favoriteAction), "aria-label": isFavorite ? ariaIsFavoriteLabel : ariaIsNotFavoriteLabel, onClick: () => {
                onFavorite(generatedId.replace('favorite-', ''), isFavorite);
            }, onKeyDown: event => {
                this.onKeyDown(event, 1, () => onFavorite(generatedId.replace('favorite-', '')));
            }, ref: this.favoriteRef },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].selectMenuItemActionIcon) },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_star_icon__WEBPACK_IMPORTED_MODULE_6__["default"], null))));
        const itemDisplay = itemCount ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].selectMenuItemRow) },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].selectMenuItemText) }, children || (value && value.toString && value.toString())),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].selectMenuItemCount) }, itemCount))) : (children || value.toString());
        const onViewMoreClick = (event) => {
            // Set the index for the next item to focus after view more clicked, then call view more callback
            setViewMoreNextIndex();
            onClick(event);
        };
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_selectConstants__WEBPACK_IMPORTED_MODULE_1__.SelectConsumer, null, ({ onSelect, onClose, variant, inputIdPrefix, onFavorite }) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
            variant !== _selectConstants__WEBPACK_IMPORTED_MODULE_1__.SelectVariant.checkbox && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", { id: generatedId, role: "presentation", className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(isLoading && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].selectListItem, !isLoad && !isLoading && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].selectMenuWrapper, isFavorite && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.favorite, isFocused && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.focus, isLoading && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.loading), ref: this.liRef },
                isLoading && children,
                !isLoading && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({}, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].selectMenuItem, isLoad && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.load, isSelected && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.selected, isDisabled && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.disabled, description && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.description, isFavorite !== null && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.link, className), onClick: (event) => {
                            if (isLoad) {
                                onViewMoreClick(event);
                                event.stopPropagation();
                            }
                            else if (!isDisabled && !isLoading) {
                                onClick(event);
                                onSelect(event, value, isPlaceholder);
                                onClose();
                            }
                        }, role: "option", "aria-selected": isSelected || null, ref: this.ref, onKeyDown: (event) => {
                            this.onKeyDown(event, 0);
                        }, type: "button" }),
                        description && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
                            react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].selectMenuItemMain) },
                                itemDisplay,
                                isSelected && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].selectMenuItemIcon) },
                                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_check_icon__WEBPACK_IMPORTED_MODULE_7__["default"], { "aria-hidden": true })))),
                            react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].selectMenuItemDescription) }, description))),
                        !description && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
                            itemDisplay,
                            isSelected && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].selectMenuItemIcon) },
                                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_check_icon__WEBPACK_IMPORTED_MODULE_7__["default"], { "aria-hidden": true })))))),
                    isFavorite !== null && id && favoriteButton(onFavorite))))),
            variant === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.SelectVariant.checkbox && isLoad && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].selectMenuItem, _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.load, isFocused && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.focus, className), onKeyDown: (event) => {
                    this.onKeyDown(event, 0, undefined, true);
                }, onClick: (event) => {
                    onViewMoreClick(event);
                    event.stopPropagation();
                }, ref: this.ref }, children || (value && value.toString && value.toString()))),
            variant === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.SelectVariant.checkbox && isLoading && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].selectListItem, isLoading && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.loading, className) }, children)),
            variant === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.SelectVariant.checkbox && !isNoResultsOption && !isLoading && !isLoad && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("label", Object.assign({}, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Check_check__WEBPACK_IMPORTED_MODULE_8__["default"].check, _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].selectMenuItem, isDisabled && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.disabled, description && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.description, className), onKeyDown: (event) => {
                    this.onKeyDown(event, 0, undefined, true);
                } }),
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { id: inputId || `${inputIdPrefix}-${value.toString()}`, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Check_check__WEBPACK_IMPORTED_MODULE_8__["default"].checkInput), type: "checkbox", onChange: event => {
                        if (!isDisabled) {
                            onClick(event);
                            onSelect(event, value);
                        }
                    }, ref: this.ref, checked: isChecked || false, disabled: isDisabled }),
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Check_check__WEBPACK_IMPORTED_MODULE_8__["default"].checkLabel, isDisabled && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.disabled) }, itemDisplay),
                description && react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Check_check__WEBPACK_IMPORTED_MODULE_8__["default"].checkDescription) }, description))),
            variant === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.SelectVariant.checkbox && isNoResultsOption && !isLoading && !isLoad && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null,
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({}, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].selectMenuItem, isSelected && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.selected, isDisabled && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.disabled, className), role: "option", "aria-selected": isSelected || null, ref: this.ref, onKeyDown: (event) => {
                        this.onKeyDown(event, 0, undefined, true);
                    }, type: "button" }), itemDisplay)))))));
    }
}
SelectOption.displayName = 'SelectOption';
SelectOption.defaultProps = {
    className: '',
    value: '',
    index: 0,
    isDisabled: false,
    isPlaceholder: false,
    isSelected: false,
    isChecked: false,
    isNoResultsOption: false,
    component: 'button',
    onClick: () => { },
    sendRef: () => { },
    keyHandler: () => { },
    inputId: '',
    isFavorite: null,
    isLoad: false,
    isLoading: false,
    setViewMoreNextIndex: () => { },
    isLastOptionBeforeFooter: () => false
};
//# sourceMappingURL=SelectOption.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectToggle.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectToggle.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SelectToggle": () => (/* binding */ SelectToggle)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Select/select */ "./node_modules/@patternfly/react-styles/css/components/Select/select.js");
/* harmony import */ var _patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Button/button */ "./node_modules/@patternfly/react-styles/css/components/Button/button.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_caret_down_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/caret-down-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/caret-down-icon.js");
/* harmony import */ var _selectConstants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./selectConstants */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");







class SelectToggle extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor(props) {
        super(props);
        this.onDocClick = (event) => {
            const { parentRef, menuRef, isOpen, onToggle, onClose } = this.props;
            const clickedOnToggle = parentRef && parentRef.current && parentRef.current.contains(event.target);
            const clickedWithinMenu = menuRef && menuRef.current && menuRef.current.contains && menuRef.current.contains(event.target);
            if (isOpen && !(clickedOnToggle || clickedWithinMenu)) {
                onToggle(false);
                onClose();
            }
        };
        this.findTabbableFooterElements = () => {
            const tabbable = this.props.footerRef.current.querySelectorAll('input, button, select, textarea, a[href]');
            const list = Array.prototype.filter.call(tabbable, function (item) {
                return item.tabIndex >= '0';
            });
            return list;
        };
        this.handleGlobalKeys = (event) => {
            const { parentRef, menuRef, hasFooter, isOpen, variant, onToggle, onClose } = this.props;
            const escFromToggle = parentRef && parentRef.current && parentRef.current.contains(event.target);
            const escFromWithinMenu = menuRef && menuRef.current && menuRef.current.contains && menuRef.current.contains(event.target);
            if (isOpen &&
                event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.Tab &&
                (variant === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.SelectVariant.typeahead || variant === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.SelectVariant.typeaheadMulti)) {
                this.props.handleTypeaheadKeys('tab');
                event.preventDefault();
                return;
            }
            if (isOpen && event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.Tab && hasFooter) {
                const tabbableItems = this.findTabbableFooterElements();
                // If no tabbable item in footer close select
                if (tabbableItems.length <= 0) {
                    onToggle(false);
                    onClose();
                    this.toggle.current.focus();
                    return;
                }
                else {
                    // if current element is not in footer, tab to first tabbable element in footer
                    const currentElementIndex = tabbableItems.findIndex(item => item === document.activeElement);
                    if (currentElementIndex === -1) {
                        tabbableItems[0].focus();
                        return;
                    }
                    // Current element is in footer.
                    if (event.shiftKey) {
                        return;
                    }
                    // Tab to next element in footer or close if there are none
                    if (currentElementIndex + 1 < tabbableItems.length) {
                        tabbableItems[currentElementIndex + 1].focus();
                    }
                    else {
                        // no more footer items close menu
                        onToggle(false);
                        onClose();
                        this.toggle.current.focus();
                    }
                    event.preventDefault();
                    return;
                }
            }
            if (isOpen &&
                (event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.Escape || event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.Tab) &&
                (escFromToggle || escFromWithinMenu)) {
                onToggle(false);
                onClose();
                this.toggle.current.focus();
            }
        };
        this.onKeyDown = (event) => {
            const { isOpen, onToggle, variant, onClose, onEnter, handleTypeaheadKeys } = this.props;
            if (variant === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.SelectVariant.typeahead || variant === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.SelectVariant.typeaheadMulti) {
                if (event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.ArrowDown || event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.ArrowUp) {
                    handleTypeaheadKeys((event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.ArrowDown && 'down') || (event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.ArrowUp && 'up'));
                    event.preventDefault();
                }
                else if (event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.Enter) {
                    if (isOpen) {
                        handleTypeaheadKeys('enter');
                    }
                    else {
                        onToggle(!isOpen);
                    }
                }
            }
            if (variant === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.SelectVariant.typeahead ||
                variant === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.SelectVariant.typeaheadMulti ||
                (event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.Tab && !isOpen) ||
                (event.key !== _selectConstants__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.Enter && event.key !== _selectConstants__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.Space)) {
                return;
            }
            event.preventDefault();
            if ((event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.Tab || event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.Enter || event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.Space) && isOpen) {
                onToggle(!isOpen);
                onClose();
                this.toggle.current.focus();
            }
            else if ((event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.Enter || event.key === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.Space) && !isOpen) {
                onToggle(!isOpen);
                onEnter();
            }
        };
        const { variant } = props;
        const isTypeahead = variant === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.SelectVariant.typeahead || variant === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.SelectVariant.typeaheadMulti;
        this.toggle = isTypeahead ? react__WEBPACK_IMPORTED_MODULE_0__.createRef() : react__WEBPACK_IMPORTED_MODULE_0__.createRef();
    }
    componentDidMount() {
        document.addEventListener('click', this.onDocClick);
        document.addEventListener('touchstart', this.onDocClick);
        document.addEventListener('keydown', this.handleGlobalKeys);
    }
    componentWillUnmount() {
        document.removeEventListener('click', this.onDocClick);
        document.removeEventListener('touchstart', this.onDocClick);
        document.removeEventListener('keydown', this.handleGlobalKeys);
    }
    render() {
        /* eslint-disable @typescript-eslint/no-unused-vars */
        const _a = this.props, { className, children, isOpen, isActive, isPlain, isDisabled, hasPlaceholderStyle, variant, onToggle, onEnter, onClose, onClickTypeaheadToggleButton, handleTypeaheadKeys, parentRef, menuRef, id, type, hasClearButton, 'aria-labelledby': ariaLabelledBy, 'aria-label': ariaLabel, hasFooter, footerRef } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["className", "children", "isOpen", "isActive", "isPlain", "isDisabled", "hasPlaceholderStyle", "variant", "onToggle", "onEnter", "onClose", "onClickTypeaheadToggleButton", "handleTypeaheadKeys", "parentRef", "menuRef", "id", "type", "hasClearButton", 'aria-labelledby', 'aria-label', "hasFooter", "footerRef"]);
        /* eslint-enable @typescript-eslint/no-unused-vars */
        const isTypeahead = variant === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.SelectVariant.typeahead || variant === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.SelectVariant.typeaheadMulti || hasClearButton;
        const toggleProps = {
            id,
            'aria-labelledby': ariaLabelledBy,
            'aria-expanded': isOpen,
            'aria-haspopup': (variant !== _selectConstants__WEBPACK_IMPORTED_MODULE_1__.SelectVariant.checkbox && 'listbox') || null
        };
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
            !isTypeahead && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", Object.assign({}, props, toggleProps, { ref: this.toggle, type: type, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_4__["default"].selectToggle, hasPlaceholderStyle && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.placeholder, isDisabled && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.disabled, isPlain && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.plain, isActive && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.active, className), "aria-label": ariaLabel, 
                // eslint-disable-next-line @typescript-eslint/no-unused-vars
                onClick: _event => {
                    onToggle(!isOpen);
                    if (isOpen) {
                        onClose();
                    }
                }, onKeyDown: this.onKeyDown, disabled: isDisabled }),
                children,
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_4__["default"].selectToggleArrow) },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_caret_down_icon__WEBPACK_IMPORTED_MODULE_5__["default"], null)))),
            isTypeahead && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({}, props, { ref: this.toggle, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_4__["default"].selectToggle, hasPlaceholderStyle && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.placeholder, isDisabled && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.disabled, isPlain && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.plain, isTypeahead && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.typeahead, className), 
                // eslint-disable-next-line @typescript-eslint/no-unused-vars
                onClick: _event => {
                    if (!isDisabled) {
                        onToggle(!isOpen);
                    }
                }, onKeyDown: this.onKeyDown }),
                children,
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", Object.assign({}, toggleProps, { type: type, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_6__["default"].button, _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_4__["default"].selectToggleButton, _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.plain), "aria-label": ariaLabel, onClick: _event => {
                        onToggle(!isOpen);
                        if (isOpen) {
                            onClose();
                        }
                        onClickTypeaheadToggleButton();
                    } }, ((variant === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.SelectVariant.typeahead || variant === _selectConstants__WEBPACK_IMPORTED_MODULE_1__.SelectVariant.typeaheadMulti) && {
                    tabIndex: -1
                }), { disabled: isDisabled }),
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_caret_down_icon__WEBPACK_IMPORTED_MODULE_5__["default"], { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_4__["default"].selectToggleArrow) }))))));
    }
}
SelectToggle.displayName = 'SelectToggle';
SelectToggle.defaultProps = {
    className: '',
    isOpen: false,
    isActive: false,
    isPlain: false,
    isDisabled: false,
    hasPlaceholderStyle: false,
    hasClearButton: false,
    hasFooter: false,
    variant: 'single',
    'aria-labelledby': '',
    'aria-label': '',
    type: 'button',
    onToggle: () => { },
    onEnter: () => { },
    onClose: () => { },
    onClickTypeaheadToggleButton: () => { }
};
//# sourceMappingURL=SelectToggle.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SelectContext": () => (/* binding */ SelectContext),
/* harmony export */   "SelectProvider": () => (/* binding */ SelectProvider),
/* harmony export */   "SelectConsumer": () => (/* binding */ SelectConsumer),
/* harmony export */   "SelectVariant": () => (/* binding */ SelectVariant),
/* harmony export */   "SelectPosition": () => (/* binding */ SelectPosition),
/* harmony export */   "SelectDirection": () => (/* binding */ SelectDirection),
/* harmony export */   "KeyTypes": () => (/* binding */ KeyTypes)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");

const SelectContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext(null);
const SelectProvider = SelectContext.Provider;
const SelectConsumer = SelectContext.Consumer;
var SelectVariant;
(function (SelectVariant) {
    SelectVariant["single"] = "single";
    SelectVariant["checkbox"] = "checkbox";
    SelectVariant["typeahead"] = "typeahead";
    SelectVariant["typeaheadMulti"] = "typeaheadmulti";
})(SelectVariant || (SelectVariant = {}));
var SelectPosition;
(function (SelectPosition) {
    SelectPosition["right"] = "right";
    SelectPosition["left"] = "left";
})(SelectPosition || (SelectPosition = {}));
var SelectDirection;
(function (SelectDirection) {
    SelectDirection["up"] = "up";
    SelectDirection["down"] = "down";
})(SelectDirection || (SelectDirection = {}));
const KeyTypes = {
    Tab: 'Tab',
    Space: ' ',
    Escape: 'Escape',
    Enter: 'Enter',
    ArrowUp: 'ArrowUp',
    ArrowDown: 'ArrowDown',
    ArrowLeft: 'ArrowLeft',
    ArrowRight: 'ArrowRight'
};
//# sourceMappingURL=selectConstants.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleList.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleList.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SimpleListContext": () => (/* binding */ SimpleListContext),
/* harmony export */   "SimpleList": () => (/* binding */ SimpleList)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_SimpleList_simple_list__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/SimpleList/simple-list */ "./node_modules/@patternfly/react-styles/css/components/SimpleList/simple-list.js");
/* harmony import */ var _SimpleListGroup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SimpleListGroup */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleListGroup.js");





const SimpleListContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext({});
class SimpleList extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor() {
        super(...arguments);
        this.state = {
            currentRef: null
        };
        this.handleCurrentUpdate = (newCurrentRef, itemProps) => {
            this.setState({ currentRef: newCurrentRef });
            const { onSelect } = this.props;
            onSelect && onSelect(newCurrentRef, itemProps);
        };
    }
    render() {
        // eslint-disable-next-line @typescript-eslint/no-unused-vars
        const _a = this.props, { children, className, onSelect, isControlled } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "onSelect", "isControlled"]);
        let isGrouped = false;
        if (children) {
            isGrouped = react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(children)[0].type === _SimpleListGroup__WEBPACK_IMPORTED_MODULE_2__.SimpleListGroup;
        }
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(SimpleListContext.Provider, { value: {
                currentRef: this.state.currentRef,
                updateCurrentRef: this.handleCurrentUpdate,
                isControlled
            } },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_SimpleList_simple_list__WEBPACK_IMPORTED_MODULE_4__["default"].simpleList, className) }, props, (isGrouped && { role: 'list' })),
                isGrouped && children,
                !isGrouped && react__WEBPACK_IMPORTED_MODULE_0__.createElement("ul", null, children))));
    }
}
SimpleList.displayName = 'SimpleList';
SimpleList.defaultProps = {
    children: null,
    className: '',
    isControlled: true
};
//# sourceMappingURL=SimpleList.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleListGroup.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleListGroup.js ***!
  \***********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SimpleListGroup": () => (/* binding */ SimpleListGroup)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_SimpleList_simple_list__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/SimpleList/simple-list */ "./node_modules/@patternfly/react-styles/css/components/SimpleList/simple-list.js");




const SimpleListGroup = (_a) => {
    var { children = null, className = '', title = '', titleClassName = '', id = '' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "title", "titleClassName", "id"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("section", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_SimpleList_simple_list__WEBPACK_IMPORTED_MODULE_3__["default"].simpleListSection) }, props),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("h2", { id: id, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_SimpleList_simple_list__WEBPACK_IMPORTED_MODULE_3__["default"].simpleListTitle, titleClassName), "aria-hidden": "true" }, title),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("ul", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(className), "aria-labelledby": id }, children)));
};
SimpleListGroup.displayName = 'SimpleListGroup';
//# sourceMappingURL=SimpleListGroup.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleListItem.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleListItem.js ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SimpleListItem": () => (/* binding */ SimpleListItem)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_SimpleList_simple_list__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/SimpleList/simple-list */ "./node_modules/@patternfly/react-styles/css/components/SimpleList/simple-list.js");
/* harmony import */ var _SimpleList__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SimpleList */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleList.js");





class SimpleListItem extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor() {
        super(...arguments);
        this.ref = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
    }
    render() {
        const _a = this.props, { children, isCurrent, isActive, className, component: Component, componentClassName, componentProps, onClick, type, href, 
        // eslint-disable-next-line @typescript-eslint/no-unused-vars
        itemId } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "isCurrent", "isActive", "className", "component", "componentClassName", "componentProps", "onClick", "type", "href", "itemId"]);
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_SimpleList__WEBPACK_IMPORTED_MODULE_2__.SimpleListContext.Consumer, null, ({ currentRef, updateCurrentRef, isControlled }) => {
            const isButton = Component === 'button';
            const isCurrentItem = this.ref && currentRef && isControlled ? currentRef.current === this.ref.current : isActive || isCurrent;
            const additionalComponentProps = isButton
                ? {
                    type
                }
                : {
                    tabIndex: 0,
                    href
                };
            return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(className) }, props),
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_SimpleList_simple_list__WEBPACK_IMPORTED_MODULE_4__["default"].simpleListItemLink, isCurrentItem && _patternfly_react_styles_css_components_SimpleList_simple_list__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.current, componentClassName), onClick: (evt) => {
                        onClick(evt);
                        updateCurrentRef(this.ref, this.props);
                    }, ref: this.ref }, componentProps, additionalComponentProps), children)));
        }));
    }
}
SimpleListItem.displayName = 'SimpleListItem';
SimpleListItem.defaultProps = {
    children: null,
    className: '',
    isActive: false,
    isCurrent: false,
    component: 'button',
    componentClassName: '',
    type: 'button',
    href: '',
    onClick: () => { }
};
//# sourceMappingURL=SimpleListItem.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js":
/*!************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "spinnerSize": () => (/* binding */ spinnerSize),
/* harmony export */   "Spinner": () => (/* binding */ Spinner)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Spinner_spinner__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Spinner/spinner */ "./node_modules/@patternfly/react-styles/css/components/Spinner/spinner.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");




var spinnerSize;
(function (spinnerSize) {
    spinnerSize["sm"] = "sm";
    spinnerSize["md"] = "md";
    spinnerSize["lg"] = "lg";
    spinnerSize["xl"] = "xl";
})(spinnerSize || (spinnerSize = {}));
const Spinner = (_a) => {
    var { 
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    className = '', size = 'xl', 'aria-valuetext': ariaValueText = 'Loading...', isSVG = false, diameter } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "size", 'aria-valuetext', "isSVG", "diameter"]);
    const Component = isSVG ? 'svg' : 'span';
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Spinner_spinner__WEBPACK_IMPORTED_MODULE_3__["default"].spinner, _patternfly_react_styles_css_components_Spinner_spinner__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers[size], className), role: "progressbar", "aria-valuetext": ariaValueText }, (isSVG && { viewBox: '0 0 100 100' }), (diameter && { style: { '--pf-c-spinner--diameter': diameter } }), props), isSVG ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement("circle", { className: _patternfly_react_styles_css_components_Spinner_spinner__WEBPACK_IMPORTED_MODULE_3__["default"].spinnerPath, cx: "50", cy: "50", r: "45", fill: "none" })) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Spinner_spinner__WEBPACK_IMPORTED_MODULE_3__["default"].spinnerClipper) }),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Spinner_spinner__WEBPACK_IMPORTED_MODULE_3__["default"].spinnerLeadBall) }),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Spinner_spinner__WEBPACK_IMPORTED_MODULE_3__["default"].spinnerTailBall) })))));
};
Spinner.displayName = 'Spinner';
//# sourceMappingURL=Spinner.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Switch/Switch.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Switch/Switch.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Switch": () => (/* binding */ Switch)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Switch_switch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Switch/switch */ "./node_modules/@patternfly/react-styles/css/components/Switch/switch.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_check_icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/check-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/check-icon.js");
/* harmony import */ var _helpers_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers/util */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");







class Switch extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor(props) {
        super(props);
        if (!props.label && !props['aria-label']) {
            // eslint-disable-next-line no-console
            console.error('Switch: Switch requires either a label or an aria-label to be specified');
        }
        this.id = props.id || (0,_helpers_util__WEBPACK_IMPORTED_MODULE_1__.getUniqueId)();
        this.state = {
            ouiaStateId: (0,_helpers__WEBPACK_IMPORTED_MODULE_2__.getDefaultOUIAId)(Switch.displayName)
        };
    }
    render() {
        const _a = this.props, { 
        // eslint-disable-next-line @typescript-eslint/no-unused-vars
        id, className, label, labelOff, isChecked, isDisabled, onChange, isReversed, ouiaId, ouiaSafe } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_3__.__rest)(_a, ["id", "className", "label", "labelOff", "isChecked", "isDisabled", "onChange", "isReversed", "ouiaId", "ouiaSafe"]);
        const isAriaLabelledBy = props['aria-label'] === '';
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("label", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Switch_switch__WEBPACK_IMPORTED_MODULE_5__["default"]["switch"], isReversed && _patternfly_react_styles_css_components_Switch_switch__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.reverse, className), htmlFor: this.id }, (0,_helpers__WEBPACK_IMPORTED_MODULE_2__.getOUIAProps)(Switch.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe)),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", Object.assign({ id: this.id, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Switch_switch__WEBPACK_IMPORTED_MODULE_5__["default"].switchInput), type: "checkbox", onChange: event => onChange(event.target.checked, event), checked: isChecked, disabled: isDisabled, "aria-labelledby": isAriaLabelledBy ? `${this.id}-on` : null }, props)),
            label !== undefined ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Switch_switch__WEBPACK_IMPORTED_MODULE_5__["default"].switchToggle) }),
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Switch_switch__WEBPACK_IMPORTED_MODULE_5__["default"].switchLabel, _patternfly_react_styles_css_components_Switch_switch__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.on), id: isAriaLabelledBy ? `${this.id}-on` : null, "aria-hidden": "true" }, label),
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Switch_switch__WEBPACK_IMPORTED_MODULE_5__["default"].switchLabel, _patternfly_react_styles_css_components_Switch_switch__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.off), id: isAriaLabelledBy ? `${this.id}-off` : null, "aria-hidden": "true" }, labelOff !== undefined ? labelOff : label))) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Switch_switch__WEBPACK_IMPORTED_MODULE_5__["default"].switchToggle) },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Switch_switch__WEBPACK_IMPORTED_MODULE_5__["default"].switchToggleIcon), "aria-hidden": "true" },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_check_icon__WEBPACK_IMPORTED_MODULE_6__["default"], { noVerticalAlign: true }))))));
    }
}
Switch.displayName = 'Switch';
Switch.defaultProps = {
    isChecked: true,
    isDisabled: false,
    isReversed: false,
    'aria-label': '',
    onChange: () => undefined
};
//# sourceMappingURL=Switch.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Tab": () => (/* binding */ Tab)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Tabs/tabs */ "./node_modules/@patternfly/react-styles/css/components/Tabs/tabs.js");
/* harmony import */ var _TabButton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TabButton */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabButton.js");
/* harmony import */ var _TabsContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TabsContext */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabsContext.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");






const TabBase = (_a) => {
    var { title, eventKey, tabContentRef, id: childId, tabContentId, className: childClassName = '', ouiaId: childOuiaId, isDisabled, isAriaDisabled, inoperableEvents = ['onClick', 'onKeyPress'], href, innerRef } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["title", "eventKey", "tabContentRef", "id", "tabContentId", "className", "ouiaId", "isDisabled", "isAriaDisabled", "inoperableEvents", "href", "innerRef"]);
    const preventedEvents = inoperableEvents.reduce((handlers, eventToPrevent) => (Object.assign(Object.assign({}, handlers), { [eventToPrevent]: (event) => {
            event.preventDefault();
        } })), {});
    const { mountOnEnter, localActiveKey, unmountOnExit, uniqueId, handleTabClick } = react__WEBPACK_IMPORTED_MODULE_0__.useContext(_TabsContext__WEBPACK_IMPORTED_MODULE_2__.TabsContext);
    let ariaControls = tabContentId ? `${tabContentId}` : `pf-tab-section-${eventKey}-${childId || uniqueId}`;
    if ((mountOnEnter || unmountOnExit) && eventKey !== localActiveKey) {
        ariaControls = undefined;
    }
    const isButtonElement = Boolean(!href);
    const getDefaultTabIdx = () => {
        if (isDisabled) {
            return isButtonElement ? null : -1;
        }
        else if (isAriaDisabled) {
            return null;
        }
    };
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_4__["default"].tabsItem, eventKey === localActiveKey && _patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.current, childClassName), ref: innerRef },
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TabButton__WEBPACK_IMPORTED_MODULE_5__.TabButton, Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_4__["default"].tabsLink, isDisabled && href && _patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.disabled, isAriaDisabled && _patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.ariaDisabled), disabled: isButtonElement ? isDisabled : null, "aria-disabled": isDisabled || isAriaDisabled, tabIndex: getDefaultTabIdx(), onClick: (event) => handleTabClick(event, eventKey, tabContentRef) }, (isAriaDisabled ? preventedEvents : null), { id: `pf-tab-${eventKey}-${childId || uniqueId}`, "aria-controls": ariaControls, tabContentRef: tabContentRef, ouiaId: childOuiaId, href: href }, props), title)));
};
const Tab = react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((props, ref) => react__WEBPACK_IMPORTED_MODULE_0__.createElement(TabBase, Object.assign({ innerRef: ref }, props)));
Tab.displayName = 'Tab';
//# sourceMappingURL=Tab.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabButton.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabButton.js ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TabButton": () => (/* binding */ TabButton)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");



const TabButton = (_a) => {
    var { children, 
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    tabContentRef, ouiaId, ouiaSafe } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "tabContentRef", "ouiaId", "ouiaSafe"]);
    const Component = (props.href ? 'a' : 'button');
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({}, (0,_helpers__WEBPACK_IMPORTED_MODULE_2__.getOUIAProps)(TabButton.displayName, ouiaId, ouiaSafe), props), children));
};
TabButton.displayName = 'TabButton';
//# sourceMappingURL=TabButton.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabContent.js":
/*!************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabContent.js ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TabContent": () => (/* binding */ TabContent)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_TabContent_tab_content__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles/css/components/TabContent/tab-content */ "./node_modules/@patternfly/react-styles/css/components/TabContent/tab-content.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");
/* harmony import */ var _TabsContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TabsContext */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabsContext.js");






const variantStyle = {
    default: '',
    light300: _patternfly_react_styles_css_components_TabContent_tab_content__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.light_300
};
const TabContentBase = (_a) => {
    var { id, activeKey, 'aria-label': ariaLabel, child, children, className, eventKey, innerRef, ouiaId, ouiaSafe } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["id", "activeKey", 'aria-label', "child", "children", "className", "eventKey", "innerRef", "ouiaId", "ouiaSafe"]);
    if (children || child) {
        let labelledBy;
        if (ariaLabel) {
            labelledBy = null;
        }
        else {
            labelledBy = children ? `pf-tab-${eventKey}-${id}` : `pf-tab-${child.props.eventKey}-${id}`;
        }
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TabsContext__WEBPACK_IMPORTED_MODULE_3__.TabsContextConsumer, null, ({ variant }) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement("section", Object.assign({ ref: innerRef, hidden: children ? null : child.props.eventKey !== activeKey, className: children
                ? (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)('pf-c-tab-content', className, variantStyle[variant])
                : (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)('pf-c-tab-content', child.props.className, variantStyle[variant]), id: children ? id : `pf-tab-section-${child.props.eventKey}-${id}`, "aria-label": ariaLabel, "aria-labelledby": labelledBy, role: "tabpanel", tabIndex: 0 }, (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.getOUIAProps)('TabContent', ouiaId, ouiaSafe), props), children || child.props.children))));
    }
    return null;
};
const TabContent = react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((props, ref) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(TabContentBase, Object.assign({}, props, { innerRef: ref }))));
//# sourceMappingURL=TabContent.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleIcon.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleIcon.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TabTitleIcon": () => (/* binding */ TabTitleIcon)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Tabs/tabs */ "./node_modules/@patternfly/react-styles/css/components/Tabs/tabs.js");




const TabTitleIcon = (_a) => {
    var { children, className = '' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_3__["default"].tabsItemIcon, className) }, props), children));
};
TabTitleIcon.displayName = 'TabTitleIcon';
//# sourceMappingURL=TabTitleIcon.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TabTitleText": () => (/* binding */ TabTitleText)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Tabs/tabs */ "./node_modules/@patternfly/react-styles/css/components/Tabs/tabs.js");




const TabTitleText = (_a) => {
    var { children, className = '' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_3__["default"].tabsItemText, className) }, props), children));
};
TabTitleText.displayName = 'TabTitleText';
//# sourceMappingURL=TabTitleText.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js":
/*!******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TabsComponent": () => (/* binding */ TabsComponent),
/* harmony export */   "Tabs": () => (/* binding */ Tabs)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Tabs/tabs */ "./node_modules/@patternfly/react-styles/css/components/Tabs/tabs.js");
/* harmony import */ var _patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Button/button */ "./node_modules/@patternfly/react-styles/css/components/Button/button.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_left_icon__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-left-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-left-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-right-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-right-icon.js");
/* harmony import */ var _helpers_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");
/* harmony import */ var _TabContent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./TabContent */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabContent.js");
/* harmony import */ var _TabsContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TabsContext */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabsContext.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");
/* harmony import */ var _helpers_GenerateId_GenerateId__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../helpers/GenerateId/GenerateId */ "./node_modules/@patternfly/react-core/dist/esm/helpers/GenerateId/GenerateId.js");













var TabsComponent;
(function (TabsComponent) {
    TabsComponent["div"] = "div";
    TabsComponent["nav"] = "nav";
})(TabsComponent || (TabsComponent = {}));
const variantStyle = {
    default: '',
    light300: _patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.colorSchemeLight_300
};
class Tabs extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor(props) {
        super(props);
        this.tabList = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.handleScrollButtons = () => {
            const container = this.tabList.current;
            let disableLeftScrollButton = true;
            let disableRightScrollButton = true;
            let showScrollButtons = false;
            if (container && !this.props.isVertical) {
                // get first element and check if it is in view
                const overflowOnLeft = !(0,_helpers_util__WEBPACK_IMPORTED_MODULE_2__.isElementInView)(container, container.firstChild, false);
                // get last element and check if it is in view
                const overflowOnRight = !(0,_helpers_util__WEBPACK_IMPORTED_MODULE_2__.isElementInView)(container, container.lastChild, false);
                showScrollButtons = overflowOnLeft || overflowOnRight;
                disableLeftScrollButton = !overflowOnLeft;
                disableRightScrollButton = !overflowOnRight;
            }
            this.setState({
                showScrollButtons,
                disableLeftScrollButton,
                disableRightScrollButton
            });
        };
        this.scrollLeft = () => {
            // find first Element that is fully in view on the left, then scroll to the element before it
            if (this.tabList.current) {
                const container = this.tabList.current;
                const childrenArr = Array.from(container.children);
                let firstElementInView;
                let lastElementOutOfView;
                let i;
                for (i = 0; i < childrenArr.length && !firstElementInView; i++) {
                    if ((0,_helpers_util__WEBPACK_IMPORTED_MODULE_2__.isElementInView)(container, childrenArr[i], false)) {
                        firstElementInView = childrenArr[i];
                        lastElementOutOfView = childrenArr[i - 1];
                    }
                }
                if (lastElementOutOfView) {
                    container.scrollLeft -= lastElementOutOfView.scrollWidth;
                }
            }
        };
        this.scrollRight = () => {
            // find last Element that is fully in view on the right, then scroll to the element after it
            if (this.tabList.current) {
                const container = this.tabList.current;
                const childrenArr = Array.from(container.children);
                let lastElementInView;
                let firstElementOutOfView;
                for (let i = childrenArr.length - 1; i >= 0 && !lastElementInView; i--) {
                    if ((0,_helpers_util__WEBPACK_IMPORTED_MODULE_2__.isElementInView)(container, childrenArr[i], false)) {
                        lastElementInView = childrenArr[i];
                        firstElementOutOfView = childrenArr[i + 1];
                    }
                }
                if (firstElementOutOfView) {
                    container.scrollLeft += firstElementOutOfView.scrollWidth;
                }
            }
        };
        this.state = {
            showScrollButtons: false,
            disableLeftScrollButton: true,
            disableRightScrollButton: true,
            shownKeys: this.props.defaultActiveKey !== undefined ? [this.props.defaultActiveKey] : [this.props.activeKey],
            uncontrolledActiveKey: this.props.defaultActiveKey,
            uncontrolledIsExpandedLocal: this.props.defaultIsExpanded,
            ouiaStateId: (0,_helpers__WEBPACK_IMPORTED_MODULE_3__.getDefaultOUIAId)(Tabs.displayName)
        };
        if (this.props.isVertical && this.props.expandable !== undefined) {
            if (!this.props.toggleAriaLabel && !this.props.toggleText) {
                // eslint-disable-next-line no-console
                console.error('Tabs:', 'toggleAriaLabel or the toggleText prop is required to make the toggle button accessible');
            }
        }
    }
    handleTabClick(event, eventKey, tabContentRef) {
        // When tab is an achor tag with href, cancel navigation event
        event.preventDefault();
        const { shownKeys } = this.state;
        const { onSelect, defaultActiveKey } = this.props;
        // if defaultActiveKey Tabs are uncontrolled, set new active key internally
        if (defaultActiveKey !== undefined) {
            this.setState({
                uncontrolledActiveKey: eventKey
            });
        }
        else {
            onSelect(event, eventKey);
        }
        // process any tab content sections outside of the component
        if (tabContentRef) {
            react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(this.props.children)
                .map(child => child)
                .filter(child => child.props && child.props.tabContentRef && child.props.tabContentRef.current)
                .forEach(child => (child.props.tabContentRef.current.hidden = true));
            // most recently selected tabContent
            if (tabContentRef.current) {
                tabContentRef.current.hidden = false;
            }
        }
        if (this.props.mountOnEnter) {
            this.setState({
                shownKeys: shownKeys.concat(eventKey)
            });
        }
    }
    componentDidMount() {
        if (!this.props.isVertical) {
            if (_helpers_util__WEBPACK_IMPORTED_MODULE_2__.canUseDOM) {
                window.addEventListener('resize', this.handleScrollButtons, false);
            }
            // call the handle resize function to check if scroll buttons should be shown
            this.handleScrollButtons();
        }
    }
    componentWillUnmount() {
        if (!this.props.isVertical) {
            if (_helpers_util__WEBPACK_IMPORTED_MODULE_2__.canUseDOM) {
                window.removeEventListener('resize', this.handleScrollButtons, false);
            }
        }
    }
    componentDidUpdate(prevProps) {
        const { activeKey, mountOnEnter } = this.props;
        const { shownKeys } = this.state;
        if (prevProps.activeKey !== activeKey && mountOnEnter && shownKeys.indexOf(activeKey) < 0) {
            this.setState({
                shownKeys: shownKeys.concat(activeKey)
            });
        }
    }
    render() {
        const _a = this.props, { className, children, activeKey, defaultActiveKey, id, isFilled, isSecondary, isVertical, isBox, leftScrollAriaLabel, rightScrollAriaLabel, 'aria-label': ariaLabel, component, ouiaId, ouiaSafe, mountOnEnter, unmountOnExit, usePageInsets, inset, variant, expandable, isExpanded, defaultIsExpanded, toggleText, toggleAriaLabel, onToggle } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__rest)(_a, ["className", "children", "activeKey", "defaultActiveKey", "id", "isFilled", "isSecondary", "isVertical", "isBox", "leftScrollAriaLabel", "rightScrollAriaLabel", 'aria-label', "component", "ouiaId", "ouiaSafe", "mountOnEnter", "unmountOnExit", "usePageInsets", "inset", "variant", "expandable", "isExpanded", "defaultIsExpanded", "toggleText", "toggleAriaLabel", "onToggle"]);
        const { showScrollButtons, disableLeftScrollButton, disableRightScrollButton, shownKeys, uncontrolledActiveKey, uncontrolledIsExpandedLocal } = this.state;
        const filteredChildren = react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(children)
            .filter(Boolean)
            .filter(child => !child.props.isHidden);
        const uniqueId = id || (0,_helpers_util__WEBPACK_IMPORTED_MODULE_2__.getUniqueId)();
        const Component = component === TabsComponent.nav ? 'nav' : 'div';
        const localActiveKey = defaultActiveKey !== undefined ? uncontrolledActiveKey : activeKey;
        const isExpandedLocal = defaultIsExpanded !== undefined ? uncontrolledIsExpandedLocal : isExpanded;
        /*  Uncontrolled expandable tabs */
        const toggleTabs = (newValue) => {
            if (isExpanded === undefined) {
                this.setState({ uncontrolledIsExpandedLocal: newValue });
            }
            else {
                onToggle(newValue);
            }
        };
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TabsContext__WEBPACK_IMPORTED_MODULE_5__.TabsContextProvider, { value: {
                variant,
                mountOnEnter,
                unmountOnExit,
                localActiveKey,
                uniqueId,
                handleTabClick: (...args) => this.handleTabClick(...args)
            } },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({ "aria-label": ariaLabel, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_6__.css)(_patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_1__["default"].tabs, isFilled && _patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.fill, isSecondary && _patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.secondary, isVertical && _patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.vertical, isVertical && expandable && (0,_helpers_util__WEBPACK_IMPORTED_MODULE_2__.formatBreakpointMods)(expandable, _patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_1__["default"]), isVertical && expandable && isExpandedLocal && _patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.expanded, isBox && _patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.box, showScrollButtons && !isVertical && _patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.scrollable, usePageInsets && _patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.pageInsets, (0,_helpers_util__WEBPACK_IMPORTED_MODULE_2__.formatBreakpointMods)(inset, _patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_1__["default"]), variantStyle[variant], className) }, (0,_helpers__WEBPACK_IMPORTED_MODULE_3__.getOUIAProps)(Tabs.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), { id: id && id }, props),
                expandable && isVertical && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_helpers_GenerateId_GenerateId__WEBPACK_IMPORTED_MODULE_7__.GenerateId, null, randomId => (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_6__.css)(_patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_1__["default"].tabsToggle) },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_6__.css)(_patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_1__["default"].tabsToggleButton) },
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_8__.Button, { onClick: () => toggleTabs(!isExpandedLocal), variant: "plain", "aria-label": toggleAriaLabel, "aria-expanded": isExpandedLocal, id: `${randomId}-button`, "aria-labelledby": `${randomId}-text ${randomId}-button` },
                            react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_6__.css)(_patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_1__["default"].tabsToggleIcon) },
                                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_9__["default"], { "arian-hidden": "true" })),
                            toggleText && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_6__.css)('pf-c-tabs__toggle-text'), id: `${randomId}-text` }, toggleText)))))))),
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_6__.css)(_patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_1__["default"].tabsScrollButton, isSecondary && _patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_10__["default"].modifiers.secondary), "aria-label": leftScrollAriaLabel, onClick: this.scrollLeft, disabled: disableLeftScrollButton, "aria-hidden": disableLeftScrollButton },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_left_icon__WEBPACK_IMPORTED_MODULE_11__["default"], null)),
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("ul", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_6__.css)(_patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_1__["default"].tabsList), ref: this.tabList, onScroll: this.handleScrollButtons }, filteredChildren),
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_6__.css)(_patternfly_react_styles_css_components_Tabs_tabs__WEBPACK_IMPORTED_MODULE_1__["default"].tabsScrollButton, isSecondary && _patternfly_react_styles_css_components_Button_button__WEBPACK_IMPORTED_MODULE_10__["default"].modifiers.secondary), "aria-label": rightScrollAriaLabel, onClick: this.scrollRight, disabled: disableRightScrollButton, "aria-hidden": disableRightScrollButton },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_9__["default"], null))),
            filteredChildren
                .filter(child => child.props.children &&
                !(unmountOnExit && child.props.eventKey !== localActiveKey) &&
                !(mountOnEnter && shownKeys.indexOf(child.props.eventKey) === -1))
                .map((child, index) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TabContent__WEBPACK_IMPORTED_MODULE_12__.TabContent, { key: index, activeKey: localActiveKey, child: child, id: child.props.id || uniqueId, ouiaId: child.props.ouiaId })))));
    }
}
Tabs.displayName = 'Tabs';
Tabs.defaultProps = {
    activeKey: 0,
    onSelect: () => undefined,
    isFilled: false,
    isSecondary: false,
    isVertical: false,
    isBox: false,
    leftScrollAriaLabel: 'Scroll left',
    rightScrollAriaLabel: 'Scroll right',
    component: TabsComponent.div,
    mountOnEnter: false,
    unmountOnExit: false,
    ouiaSafe: true,
    variant: 'default',
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    onToggle: (isExpanded) => undefined
};
//# sourceMappingURL=Tabs.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabsContext.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabsContext.js ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TabsContext": () => (/* binding */ TabsContext),
/* harmony export */   "TabsContextProvider": () => (/* binding */ TabsContextProvider),
/* harmony export */   "TabsContextConsumer": () => (/* binding */ TabsContextConsumer)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");

const TabsContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext({
    variant: 'default',
    mountOnEnter: false,
    unmountOnExit: false,
    localActiveKey: '',
    uniqueId: '',
    handleTabClick: () => null
});
const TabsContextProvider = TabsContext.Provider;
const TabsContextConsumer = TabsContext.Consumer;
//# sourceMappingURL=TabsContext.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js":
/*!******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TextVariants": () => (/* binding */ TextVariants),
/* harmony export */   "Text": () => (/* binding */ Text)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Content_content__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Content/content */ "./node_modules/@patternfly/react-styles/css/components/Content/content.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");





var TextVariants;
(function (TextVariants) {
    TextVariants["h1"] = "h1";
    TextVariants["h2"] = "h2";
    TextVariants["h3"] = "h3";
    TextVariants["h4"] = "h4";
    TextVariants["h5"] = "h5";
    TextVariants["h6"] = "h6";
    TextVariants["p"] = "p";
    TextVariants["a"] = "a";
    TextVariants["small"] = "small";
    TextVariants["blockquote"] = "blockquote";
    TextVariants["pre"] = "pre";
})(TextVariants || (TextVariants = {}));
const Text = (_a) => {
    var { children = null, className = '', component = TextVariants.p, isVisitedLink = false, ouiaId, ouiaSafe = true } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "component", "isVisitedLink", "ouiaId", "ouiaSafe"]);
    const Component = component;
    const ouiaProps = (0,_helpers__WEBPACK_IMPORTED_MODULE_2__.useOUIAProps)(Text.displayName, ouiaId, ouiaSafe);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({}, ouiaProps, props, { "data-pf-content": true, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(isVisitedLink && component === TextVariants.a && _patternfly_react_styles_css_components_Content_content__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.visited, className) }), children));
};
Text.displayName = 'Text';
//# sourceMappingURL=Text.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TextContent": () => (/* binding */ TextContent)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Content_content__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Content/content */ "./node_modules/@patternfly/react-styles/css/components/Content/content.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");




const TextContent = (_a) => {
    var { children = null, className = '', isVisited = false } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "isVisited"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({}, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Content_content__WEBPACK_IMPORTED_MODULE_3__["default"].content, isVisited && _patternfly_react_styles_css_components_Content_content__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.visited, className) }), children));
};
TextContent.displayName = 'TextContent';
//# sourceMappingURL=TextContent.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextList.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Text/TextList.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TextListVariants": () => (/* binding */ TextListVariants),
/* harmony export */   "TextList": () => (/* binding */ TextList)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");



var TextListVariants;
(function (TextListVariants) {
    TextListVariants["ul"] = "ul";
    TextListVariants["ol"] = "ol";
    TextListVariants["dl"] = "dl";
})(TextListVariants || (TextListVariants = {}));
const TextList = (_a) => {
    var { children = null, className = '', component = TextListVariants.ul } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "component"]);
    const Component = component;
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({}, props, { "data-pf-content": true, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(className) }), children));
};
TextList.displayName = 'TextList';
//# sourceMappingURL=TextList.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextListItem.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Text/TextListItem.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TextListItemVariants": () => (/* binding */ TextListItemVariants),
/* harmony export */   "TextListItem": () => (/* binding */ TextListItem)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");



var TextListItemVariants;
(function (TextListItemVariants) {
    TextListItemVariants["li"] = "li";
    TextListItemVariants["dt"] = "dt";
    TextListItemVariants["dd"] = "dd";
})(TextListItemVariants || (TextListItemVariants = {}));
const TextListItem = (_a) => {
    var { children = null, className = '', component = TextListItemVariants.li } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "component"]);
    const Component = component;
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({}, props, { "data-pf-content": true, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(className) }), children));
};
TextListItem.displayName = 'TextListItem';
//# sourceMappingURL=TextListItem.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/TextArea/TextArea.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/TextArea/TextArea.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TextAreResizeOrientation": () => (/* binding */ TextAreResizeOrientation),
/* harmony export */   "TextAreaBase": () => (/* binding */ TextAreaBase),
/* harmony export */   "TextArea": () => (/* binding */ TextArea)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_FormControl_form_control__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles/css/components/FormControl/form-control */ "./node_modules/@patternfly/react-styles/css/components/FormControl/form-control.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_c_form_control_textarea_Height__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/c_form_control_textarea_Height */ "./node_modules/@patternfly/react-tokens/dist/esm/c_form_control_textarea_Height.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");






var TextAreResizeOrientation;
(function (TextAreResizeOrientation) {
    TextAreResizeOrientation["horizontal"] = "horizontal";
    TextAreResizeOrientation["vertical"] = "vertical";
    TextAreResizeOrientation["both"] = "both";
})(TextAreResizeOrientation || (TextAreResizeOrientation = {}));
class TextAreaBase extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor(props) {
        super(props);
        this.handleChange = (event) => {
            // https://gomakethings.com/automatically-expand-a-textarea-as-the-user-types-using-vanilla-javascript/
            const field = event.currentTarget;
            if (this.props.autoResize && _helpers__WEBPACK_IMPORTED_MODULE_1__.canUseDOM) {
                field.style.setProperty(_patternfly_react_tokens_dist_esm_c_form_control_textarea_Height__WEBPACK_IMPORTED_MODULE_2__["default"].name, 'inherit');
                const computed = window.getComputedStyle(field);
                // Calculate the height
                const height = parseInt(computed.getPropertyValue('border-top-width')) +
                    parseInt(computed.getPropertyValue('padding-top')) +
                    field.scrollHeight +
                    parseInt(computed.getPropertyValue('padding-bottom')) +
                    parseInt(computed.getPropertyValue('border-bottom-width'));
                field.style.setProperty(_patternfly_react_tokens_dist_esm_c_form_control_textarea_Height__WEBPACK_IMPORTED_MODULE_2__["default"].name, `${height}px`);
            }
            if (this.props.onChange) {
                this.props.onChange(field.value, event);
            }
        };
        if (!props.id && !props['aria-label']) {
            // eslint-disable-next-line no-console
            console.error('TextArea: TextArea requires either an id or aria-label to be specified');
        }
    }
    render() {
        const _a = this.props, { className, value, validated, isRequired, isDisabled, isReadOnly, resizeOrientation, innerRef, readOnly, disabled, 
        /* eslint-disable @typescript-eslint/no-unused-vars */
        autoResize, onChange } = _a, 
        /* eslint-enable @typescript-eslint/no-unused-vars */
        props = (0,tslib__WEBPACK_IMPORTED_MODULE_3__.__rest)(_a, ["className", "value", "validated", "isRequired", "isDisabled", "isReadOnly", "resizeOrientation", "innerRef", "readOnly", "disabled", "autoResize", "onChange"]);
        const orientation = `resize${(0,_helpers__WEBPACK_IMPORTED_MODULE_1__.capitalize)(resizeOrientation)}`;
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("textarea", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_FormControl_form_control__WEBPACK_IMPORTED_MODULE_5__["default"].formControl, className, resizeOrientation !== TextAreResizeOrientation.both && _patternfly_react_styles_css_components_FormControl_form_control__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers[orientation], validated === _helpers__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions.success && _patternfly_react_styles_css_components_FormControl_form_control__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.success, validated === _helpers__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions.warning && _patternfly_react_styles_css_components_FormControl_form_control__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.warning), onChange: this.handleChange }, (typeof this.props.defaultValue !== 'string' && { value }), { "aria-invalid": validated === _helpers__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions.error, required: isRequired, disabled: isDisabled || disabled, readOnly: isReadOnly || readOnly, ref: innerRef }, props)));
    }
}
TextAreaBase.displayName = 'TextArea';
TextAreaBase.defaultProps = {
    innerRef: react__WEBPACK_IMPORTED_MODULE_0__.createRef(),
    className: '',
    isRequired: false,
    isDisabled: false,
    validated: 'default',
    resizeOrientation: 'both',
    'aria-label': null
};
const TextArea = react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((props, ref) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(TextAreaBase, Object.assign({}, props, { innerRef: ref }))));
TextArea.displayName = 'TextArea';
//# sourceMappingURL=TextArea.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TextInputTypes": () => (/* binding */ TextInputTypes),
/* harmony export */   "TextInputBase": () => (/* binding */ TextInputBase),
/* harmony export */   "TextInput": () => (/* binding */ TextInput)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_FormControl_form_control__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-styles/css/components/FormControl/form-control */ "./node_modules/@patternfly/react-styles/css/components/FormControl/form-control.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _helpers_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../helpers/constants */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _helpers_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers/util */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");
/* harmony import */ var _helpers_resizeObserver__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/resizeObserver */ "./node_modules/@patternfly/react-core/dist/esm/helpers/resizeObserver.js");








var TextInputTypes;
(function (TextInputTypes) {
    TextInputTypes["text"] = "text";
    TextInputTypes["date"] = "date";
    TextInputTypes["datetimeLocal"] = "datetime-local";
    TextInputTypes["email"] = "email";
    TextInputTypes["month"] = "month";
    TextInputTypes["number"] = "number";
    TextInputTypes["password"] = "password";
    TextInputTypes["search"] = "search";
    TextInputTypes["tel"] = "tel";
    TextInputTypes["time"] = "time";
    TextInputTypes["url"] = "url";
})(TextInputTypes || (TextInputTypes = {}));
class TextInputBase extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor(props) {
        super(props);
        this.inputRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.observer = () => { };
        this.handleChange = (event) => {
            if (this.props.onChange) {
                this.props.onChange(event.currentTarget.value, event);
            }
        };
        this.handleResize = () => {
            const inputRef = this.props.innerRef || this.inputRef;
            if (inputRef && inputRef.current) {
                (0,_helpers_util__WEBPACK_IMPORTED_MODULE_1__.trimLeft)(inputRef.current, String(this.props.value));
            }
        };
        this.restoreText = () => {
            const inputRef = this.props.innerRef || this.inputRef;
            // restore the value
            inputRef.current.value = String(this.props.value);
            // make sure we still see the rightmost value to preserve cursor click position
            inputRef.current.scrollLeft = inputRef.current.scrollWidth;
        };
        this.onFocus = (event) => {
            const { isLeftTruncated, onFocus } = this.props;
            if (isLeftTruncated) {
                this.restoreText();
            }
            onFocus && onFocus(event);
        };
        this.onBlur = (event) => {
            const { isLeftTruncated, onBlur } = this.props;
            if (isLeftTruncated) {
                this.handleResize();
            }
            onBlur && onBlur(event);
        };
        if (!props.id && !props['aria-label'] && !props['aria-labelledby']) {
            // eslint-disable-next-line no-console
            console.error('Text input:', 'Text input requires either an id or aria-label to be specified');
        }
        this.state = {
            ouiaStateId: (0,_helpers__WEBPACK_IMPORTED_MODULE_2__.getDefaultOUIAId)(TextInputBase.displayName)
        };
    }
    componentDidMount() {
        if (this.props.isLeftTruncated) {
            const inputRef = this.props.innerRef || this.inputRef;
            this.observer = (0,_helpers_resizeObserver__WEBPACK_IMPORTED_MODULE_3__.getResizeObserver)(inputRef.current, this.handleResize);
            this.handleResize();
        }
    }
    componentWillUnmount() {
        if (this.props.isLeftTruncated) {
            this.observer();
        }
    }
    render() {
        const _a = this.props, { innerRef, className, type, value, validated, 
        /* eslint-disable @typescript-eslint/no-unused-vars */
        onChange, onFocus, onBlur, isLeftTruncated, 
        /* eslint-enable @typescript-eslint/no-unused-vars */
        isReadOnly, isRequired, isDisabled, iconVariant, customIconUrl, customIconDimensions, ouiaId, ouiaSafe } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__rest)(_a, ["innerRef", "className", "type", "value", "validated", "onChange", "onFocus", "onBlur", "isLeftTruncated", "isReadOnly", "isRequired", "isDisabled", "iconVariant", "customIconUrl", "customIconDimensions", "ouiaId", "ouiaSafe"]);
        const customIconStyle = {};
        if (customIconUrl) {
            customIconStyle.backgroundImage = `url('${customIconUrl}')`;
        }
        if (customIconDimensions) {
            customIconStyle.backgroundSize = customIconDimensions;
        }
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", Object.assign({}, props, { onFocus: this.onFocus, onBlur: this.onBlur, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__.css)(_patternfly_react_styles_css_components_FormControl_form_control__WEBPACK_IMPORTED_MODULE_6__["default"].formControl, validated === _helpers_constants__WEBPACK_IMPORTED_MODULE_7__.ValidatedOptions.success && _patternfly_react_styles_css_components_FormControl_form_control__WEBPACK_IMPORTED_MODULE_6__["default"].modifiers.success, validated === _helpers_constants__WEBPACK_IMPORTED_MODULE_7__.ValidatedOptions.warning && _patternfly_react_styles_css_components_FormControl_form_control__WEBPACK_IMPORTED_MODULE_6__["default"].modifiers.warning, ((iconVariant && iconVariant !== 'search') || customIconUrl) && _patternfly_react_styles_css_components_FormControl_form_control__WEBPACK_IMPORTED_MODULE_6__["default"].modifiers.icon, iconVariant && _patternfly_react_styles_css_components_FormControl_form_control__WEBPACK_IMPORTED_MODULE_6__["default"].modifiers[iconVariant], className), onChange: this.handleChange, type: type, value: value, "aria-invalid": props['aria-invalid'] ? props['aria-invalid'] : validated === _helpers_constants__WEBPACK_IMPORTED_MODULE_7__.ValidatedOptions.error, required: isRequired, disabled: isDisabled, readOnly: isReadOnly, ref: innerRef || this.inputRef }, ((customIconUrl || customIconDimensions) && { style: customIconStyle }), (0,_helpers__WEBPACK_IMPORTED_MODULE_2__.getOUIAProps)(TextInput.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe))));
    }
}
TextInputBase.displayName = 'TextInputBase';
TextInputBase.defaultProps = {
    'aria-label': null,
    className: '',
    isRequired: false,
    validated: 'default',
    isDisabled: false,
    isReadOnly: false,
    type: TextInputTypes.text,
    isLeftTruncated: false,
    onChange: () => undefined,
    ouiaSafe: true
};
const TextInput = react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((props, ref) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(TextInputBase, Object.assign({}, props, { innerRef: ref }))));
TextInput.displayName = 'TextInput';
//# sourceMappingURL=TextInput.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/TimePicker/TimeOption.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/TimePicker/TimeOption.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TimeOption": () => (/* binding */ TimeOption)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Select/select */ "./node_modules/@patternfly/react-styles/css/components/Select/select.js");




const TimeOption = (_a) => {
    var { className = '', value = '', onSelect = () => { }, children, id, isFocused } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "value", "onSelect", "children", "id", "isFocused"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", Object.assign({ role: "presentation", className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_3__["default"].selectMenuWrapper, isFocused && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.focus, className) }, props),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_3__["default"].selectMenuItem), onClick: event => {
                onSelect(value, event);
            }, role: "option", type: "button", id: id }, children || value.toString())));
};
TimeOption.displayName = 'TimeOption';
//# sourceMappingURL=TimeOption.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/TimePicker/TimePicker.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/TimePicker/TimePicker.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TimePicker": () => (/* binding */ TimePicker)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Select/select */ "./node_modules/@patternfly/react-styles/css/components/Select/select.js");
/* harmony import */ var _patternfly_react_styles_css_components_DatePicker_date_picker__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-styles/css/components/DatePicker/date-picker */ "./node_modules/@patternfly/react-styles/css/components/DatePicker/date-picker.js");
/* harmony import */ var _patternfly_react_styles_css_components_FormControl_form_control__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-styles/css/components/FormControl/form-control */ "./node_modules/@patternfly/react-styles/css/components/FormControl/form-control.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");
/* harmony import */ var _helpers_Popper_Popper__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../helpers/Popper/Popper */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/Popper.js");
/* harmony import */ var _TimeOption__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./TimeOption */ "./node_modules/@patternfly/react-core/dist/esm/components/TimePicker/TimeOption.js");
/* harmony import */ var _Select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Select */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _InputGroup__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../InputGroup */ "./node_modules/@patternfly/react-core/dist/esm/components/InputGroup/InputGroup.js");
/* harmony import */ var _TextInput__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../TextInput */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _TimePickerUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TimePickerUtils */ "./node_modules/@patternfly/react-core/dist/esm/components/TimePicker/TimePickerUtils.js");













class TimePicker extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor(props) {
        super(props);
        this.parentRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.toggleRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.inputRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.menuRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.onDocClick = (event) => {
            const clickedOnToggle = this.parentRef && this.parentRef.current && this.parentRef.current.contains(event.target);
            const clickedWithinMenu = this.menuRef &&
                this.menuRef.current &&
                this.menuRef.current.contains &&
                this.menuRef.current.contains(event.target);
            if (this.state.isOpen && !(clickedOnToggle || clickedWithinMenu)) {
                this.onToggle(false);
            }
        };
        this.handleGlobalKeys = (event) => {
            const { isOpen, focusedIndex } = this.state;
            // keyboard pressed while focus on toggle
            if (this.inputRef && this.inputRef.current && this.inputRef.current.contains(event.target)) {
                if (!isOpen && event.key !== _Select__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.Tab) {
                    this.onToggle(true);
                }
                else if (isOpen) {
                    if (event.key === _Select__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.Escape) {
                        this.onToggle(false);
                    }
                    else if (event.key === _Select__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.Tab) {
                        this.onToggle(false);
                    }
                    else if (event.key === _Select__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.Enter) {
                        if (focusedIndex !== null) {
                            this.onSelect(this.getOptions()[focusedIndex].innerText);
                            event.stopPropagation();
                        }
                        else {
                            this.onToggle(false);
                        }
                    }
                    else if (event.key === _Select__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.ArrowDown) {
                        this.updateFocusedIndex(1);
                        event.preventDefault();
                    }
                    else if (event.key === _Select__WEBPACK_IMPORTED_MODULE_1__.KeyTypes.ArrowUp) {
                        this.updateFocusedIndex(-1);
                        event.preventDefault();
                    }
                }
            }
        };
        this.updateFocusedIndex = (increment) => {
            this.setState(prevState => {
                const maxIndex = this.getOptions().length - 1;
                let nextIndex = prevState.focusedIndex !== null ? prevState.focusedIndex + increment : prevState.scrollIndex;
                if (nextIndex < 0) {
                    nextIndex = maxIndex;
                }
                else if (nextIndex > maxIndex) {
                    nextIndex = 0;
                }
                this.scrollToIndex(nextIndex);
                return {
                    focusedIndex: nextIndex
                };
            });
        };
        this.scrollToIndex = (index) => {
            this.getOptions()[index].offsetParent.scrollTop = this.getOptions()[index].offsetTop;
        };
        this.scrollToSelection = (time) => {
            const { delimiter, is24Hour } = this.props;
            let splitTime = time.split(this.props.delimiter);
            let focusedIndex = null;
            // build out the rest of the time assuming hh:00 if it's a partial time
            if (splitTime.length < 2) {
                time = `${time}${delimiter}00`;
                splitTime = time.split(delimiter);
            }
            // for 12hr variant, autoscroll to pm if it's currently the afternoon, otherwise autoscroll to am
            if (!is24Hour && splitTime.length > 1 && splitTime[1].length < 2) {
                const minutes = splitTime[1].length === 0 ? '00' : splitTime[1] + '0';
                time = `${splitTime[0]}${delimiter}${minutes}${new Date().getHours() > 11 ? _TimePickerUtils__WEBPACK_IMPORTED_MODULE_2__.pmSuffix : _TimePickerUtils__WEBPACK_IMPORTED_MODULE_2__.amSuffix}`;
            }
            else if (!is24Hour &&
                splitTime.length > 1 &&
                splitTime[1].length === 2 &&
                !time.toUpperCase().includes(_TimePickerUtils__WEBPACK_IMPORTED_MODULE_2__.amSuffix.toUpperCase().trim()) &&
                !time.toUpperCase().includes(_TimePickerUtils__WEBPACK_IMPORTED_MODULE_2__.pmSuffix.toUpperCase().trim())) {
                time = `${time}${new Date().getHours() > 11 ? _TimePickerUtils__WEBPACK_IMPORTED_MODULE_2__.pmSuffix : _TimePickerUtils__WEBPACK_IMPORTED_MODULE_2__.amSuffix}`;
            }
            let scrollIndex = this.getOptions().findIndex(option => option.innerText === time);
            // if we found an exact match, scroll to match and return index of match for focus
            if (scrollIndex !== -1) {
                this.scrollToIndex(scrollIndex);
                focusedIndex = scrollIndex;
            }
            else if (splitTime.length === 2) {
                // no exact match, scroll to closest hour but don't return index for focus
                let amPm = '';
                if (!is24Hour) {
                    if (splitTime[1].toUpperCase().includes('P')) {
                        amPm = _TimePickerUtils__WEBPACK_IMPORTED_MODULE_2__.pmSuffix;
                    }
                    else if (splitTime[1].toUpperCase().includes('A')) {
                        amPm = _TimePickerUtils__WEBPACK_IMPORTED_MODULE_2__.amSuffix;
                    }
                }
                time = `${splitTime[0]}${delimiter}00${amPm}`;
                scrollIndex = this.getOptions().findIndex(option => option.innerText === time);
                if (scrollIndex !== -1) {
                    this.scrollToIndex(scrollIndex);
                }
            }
            this.setState({
                focusedIndex,
                scrollIndex
            });
        };
        this.getRegExp = () => this.props.is24Hour
            ? new RegExp(`^\\s*(\\d\\d?)${this.props.delimiter}([0-5]\\d)\\s*$`)
            : new RegExp(`^\\s*(\\d\\d?)${this.props.delimiter}([0-5]\\d)\\s*([AaPp][Mm])?\\s*$`);
        this.getOptions = () => (this.menuRef && this.menuRef.current ? Array.from(this.menuRef.current.children) : []);
        this.isValid = (time) => {
            if (this.props.validateTime) {
                return this.props.validateTime(time);
            }
            const { delimiter, is24Hour } = this.props;
            return (0,_TimePickerUtils__WEBPACK_IMPORTED_MODULE_2__.validateTime)(time, this.state.timeRegex, delimiter, !is24Hour);
        };
        this.onToggle = (isOpen) => {
            // on close, parse and validate input
            this.setState(prevState => {
                const { timeRegex, isInvalid } = prevState;
                const { delimiter, is24Hour } = this.props;
                const time = (0,_TimePickerUtils__WEBPACK_IMPORTED_MODULE_2__.parseTime)(prevState.timeState, timeRegex, delimiter, !is24Hour);
                return {
                    isOpen,
                    timeState: time,
                    isInvalid: isOpen ? isInvalid : !this.isValid(time)
                };
            });
        };
        this.onSelect = (selection) => {
            const { timeRegex, timeState } = this.state;
            const { delimiter, is24Hour } = this.props;
            const time = (0,_TimePickerUtils__WEBPACK_IMPORTED_MODULE_2__.parseTime)(selection, timeRegex, delimiter, !is24Hour);
            if (time !== timeState) {
                this.onInputChange(time);
            }
            this.setState({
                isOpen: false
            });
        };
        this.onInputFocus = (e) => {
            if (!this.state.isOpen) {
                this.onToggle(true);
            }
            e.stopPropagation();
        };
        this.onInputChange = (newTime) => {
            if (this.props.onChange) {
                this.props.onChange(newTime, (0,_TimePickerUtils__WEBPACK_IMPORTED_MODULE_2__.getHours)(newTime, this.state.timeRegex), (0,_TimePickerUtils__WEBPACK_IMPORTED_MODULE_2__.getMinutes)(newTime, this.state.timeRegex), this.isValid(newTime));
            }
            this.scrollToSelection(newTime);
            this.setState({
                timeState: newTime,
                isInvalid: !this.isValid(newTime)
            });
        };
        this.onBlur = (event) => {
            const { timeRegex } = this.state;
            const { delimiter, is24Hour } = this.props;
            const time = (0,_TimePickerUtils__WEBPACK_IMPORTED_MODULE_2__.parseTime)(event.currentTarget.value, timeRegex, delimiter, !is24Hour);
            this.setState({
                isInvalid: !this.isValid(time)
            });
        };
        const { is24Hour, delimiter, time } = this.props;
        const timeRegex = this.getRegExp();
        this.state = {
            isInvalid: false,
            isOpen: false,
            timeState: (0,_TimePickerUtils__WEBPACK_IMPORTED_MODULE_2__.parseTime)(time, timeRegex, delimiter, !is24Hour),
            focusedIndex: null,
            scrollIndex: 0,
            timeRegex
        };
    }
    componentDidMount() {
        document.addEventListener('mousedown', this.onDocClick);
        document.addEventListener('touchstart', this.onDocClick);
        document.addEventListener('keydown', this.handleGlobalKeys);
    }
    componentWillUnmount() {
        document.removeEventListener('mousedown', this.onDocClick);
        document.removeEventListener('touchstart', this.onDocClick);
        document.removeEventListener('keydown', this.handleGlobalKeys);
    }
    componentDidUpdate(prevProps, prevState) {
        const { timeState, isOpen, isInvalid, timeRegex } = this.state;
        const { time, is24Hour, delimiter } = this.props;
        if (isOpen && !prevState.isOpen && timeState && !isInvalid) {
            this.scrollToSelection(timeState);
        }
        if (delimiter !== prevProps.delimiter) {
            this.setState({
                timeRegex: this.getRegExp()
            });
        }
        if (time !== '' && time !== prevProps.time) {
            this.setState({
                timeState: (0,_TimePickerUtils__WEBPACK_IMPORTED_MODULE_2__.parseTime)(time, timeRegex, delimiter, !is24Hour)
            });
        }
    }
    render() {
        const _a = this.props, { 'aria-label': ariaLabel, isDisabled, className, placeholder, id, menuAppendTo, is24Hour, invalidFormatErrorMessage, direction, stepMinutes, width, delimiter, 
        /* eslint-disable @typescript-eslint/no-unused-vars */
        onChange, time, validateTime, inputProps } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_3__.__rest)(_a, ['aria-label', "isDisabled", "className", "placeholder", "id", "menuAppendTo", "is24Hour", "invalidFormatErrorMessage", "direction", "stepMinutes", "width", "delimiter", "onChange", "time", "validateTime", "inputProps"]);
        const { timeState, isOpen, isInvalid, focusedIndex } = this.state;
        const style = { '--pf-c-date-picker__input--c-form-control--Width': width };
        const options = (0,_TimePickerUtils__WEBPACK_IMPORTED_MODULE_2__.makeTimeOptions)(stepMinutes, !is24Hour, delimiter);
        const randomId = id || (0,_helpers__WEBPACK_IMPORTED_MODULE_4__.getUniqueId)('time-picker');
        const menuContainer = (react__WEBPACK_IMPORTED_MODULE_0__.createElement("ul", { ref: this.menuRef, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_6__["default"].selectMenu), role: "listbox", "aria-labelledby": `${id}-input`, style: { maxHeight: '200px', overflowY: 'auto' } }, options.map((option, index) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TimeOption__WEBPACK_IMPORTED_MODULE_7__.TimeOption, { key: index, value: option, index: index, onSelect: this.onSelect, isFocused: index === focusedIndex, id: `${id}-option-${index}` })))));
        const inputAndToggle = (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__.css)(_patternfly_react_styles_css_components_DatePicker_date_picker__WEBPACK_IMPORTED_MODULE_8__["default"].datePickerInput), style: style }, props),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_InputGroup__WEBPACK_IMPORTED_MODULE_9__.InputGroup, null,
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_6__["default"].select, isOpen && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_6__["default"].modifiers.expanded, direction === _Select__WEBPACK_IMPORTED_MODULE_1__.SelectDirection.up && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_6__["default"].modifiers.top, className), id: randomId, ref: this.parentRef },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { ref: this.toggleRef, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_6__["default"].selectToggle, isDisabled && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_6__["default"].modifiers.disabled, _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_6__["default"].modifiers.typeahead), style: { paddingLeft: '0' } },
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TextInput__WEBPACK_IMPORTED_MODULE_10__.TextInput, Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__.css)(_patternfly_react_styles_css_components_FormControl_form_control__WEBPACK_IMPORTED_MODULE_11__["default"].formControl, _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_6__["default"].selectToggleTypeahead), id: `${randomId}-input`, "aria-label": ariaLabel, validated: isInvalid ? 'error' : 'default', placeholder: placeholder, value: timeState || '', type: "text", iconVariant: "clock", onClick: this.onInputFocus, onFocus: this.onInputFocus, onChange: this.onInputChange, onBlur: this.onBlur, autoComplete: "off", isDisabled: isDisabled, ref: this.inputRef }, inputProps))),
                    isOpen && menuAppendTo === 'inline' && menuContainer)),
            isInvalid && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__.css)(_patternfly_react_styles_css_components_DatePicker_date_picker__WEBPACK_IMPORTED_MODULE_8__["default"].datePickerHelperText, _patternfly_react_styles_css_components_DatePicker_date_picker__WEBPACK_IMPORTED_MODULE_8__["default"].modifiers.error) }, invalidFormatErrorMessage))));
        const popperContainer = (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__.css)(_patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_6__["default"].select, isOpen && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_6__["default"].modifiers.expanded, direction === _Select__WEBPACK_IMPORTED_MODULE_1__.SelectDirection.up && _patternfly_react_styles_css_components_Select_select__WEBPACK_IMPORTED_MODULE_6__["default"].modifiers.top, className) }, isOpen && menuContainer));
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__.css)(_patternfly_react_styles_css_components_DatePicker_date_picker__WEBPACK_IMPORTED_MODULE_8__["default"].datePicker, className) }, menuAppendTo === 'inline' ? (inputAndToggle) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_helpers_Popper_Popper__WEBPACK_IMPORTED_MODULE_12__.Popper, { trigger: inputAndToggle, popper: popperContainer, direction: direction, appendTo: menuAppendTo, isVisible: isOpen }))));
    }
}
TimePicker.displayName = 'TimePicker';
TimePicker.defaultProps = {
    className: '',
    isDisabled: false,
    time: '',
    is24Hour: false,
    invalidFormatErrorMessage: 'Invalid time format',
    placeholder: 'hh:mm',
    delimiter: ':',
    'aria-label': 'Time picker',
    menuAppendTo: 'inline',
    direction: 'down',
    width: 150,
    stepMinutes: 30,
    inputProps: {}
};
//# sourceMappingURL=TimePicker.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/TimePicker/TimePickerUtils.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/TimePicker/TimePickerUtils.js ***!
  \***********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "amSuffix": () => (/* binding */ amSuffix),
/* harmony export */   "pmSuffix": () => (/* binding */ pmSuffix),
/* harmony export */   "makeTimeOptions": () => (/* binding */ makeTimeOptions),
/* harmony export */   "parseTime": () => (/* binding */ parseTime),
/* harmony export */   "validateTime": () => (/* binding */ validateTime),
/* harmony export */   "getHours": () => (/* binding */ getHours),
/* harmony export */   "getMinutes": () => (/* binding */ getMinutes)
/* harmony export */ });
const amSuffix = ' AM';
const pmSuffix = ' PM';
const makeTimeOptions = (stepMinutes, hour12, delimiter) => {
    const res = [];
    const iter = new Date(new Date().setHours(0, 0, 0, 0));
    const iterDay = iter.getDay();
    while (iter.getDay() === iterDay) {
        let hour = iter.getHours();
        let suffix = amSuffix;
        if (hour12) {
            if (hour === 0) {
                hour = 12; // 12am
            }
            else if (hour >= 12) {
                suffix = pmSuffix;
            }
            if (hour > 12) {
                hour %= 12;
            }
        }
        res.push((hour12 ? hour.toString() : hour.toString().padStart(2, '0')) +
            delimiter +
            iter
                .getMinutes()
                .toString()
                .padStart(2, '0') +
            (hour12 ? suffix : ''));
        iter.setMinutes(iter.getMinutes() + stepMinutes);
    }
    return res;
};
const parseTime = (time, timeRegex, delimiter, is12Hour) => {
    const date = new Date(time);
    // if default time is a ISO 8601 formatted date string, we parse it to hh:mm(am/pm) format
    if (!isNaN(date.getDate()) && (time instanceof Date || time.includes('T'))) {
        const hours = is12Hour
            ? `${date.getHours() > 12 ? date.getHours() - 12 : date.getHours()}`
            : `${date.getHours()}`.padStart(2, '0');
        const minutes = `${date.getMinutes()}`.padStart(2, '0');
        let ampm = '';
        if (is12Hour && date.getHours() > 11) {
            ampm = pmSuffix;
        }
        else if (is12Hour) {
            ampm = amSuffix;
        }
        return `${hours}${delimiter}${minutes}${ampm}`;
    }
    else if (typeof time === 'string') {
        time = time.trim();
        if (is12Hour && time !== '' && validateTime(time, timeRegex, delimiter, is12Hour)) {
            // Format AM/PM according to design
            let ampm = '';
            if (time.toUpperCase().includes(amSuffix.toUpperCase().trim())) {
                time = time
                    .toUpperCase()
                    .replace(amSuffix.toUpperCase().trim(), '')
                    .trim();
                ampm = amSuffix;
            }
            else if (time.toUpperCase().includes(pmSuffix.toUpperCase().trim())) {
                time = time
                    .toUpperCase()
                    .replace(pmSuffix.toUpperCase().trim(), '')
                    .trim();
                ampm = pmSuffix;
            }
            else {
                // if this 12 hour time is missing am/pm but otherwise valid,
                // append am/pm depending on time of day
                ampm = new Date().getHours() > 11 ? pmSuffix : amSuffix;
            }
            return `${time}${ampm}`;
        }
    }
    return time.toString();
};
const validateTime = (time, timeRegex, delimiter, is12Hour) => {
    // ISO 8601 format is valid
    const date = new Date(time);
    if (!isNaN(date.getDate()) && time.includes('T')) {
        return true;
    }
    // hours only valid if they are [0-23] or [1-12]
    const hours = parseInt(time.split(delimiter)[0]);
    const validHours = hours >= (is12Hour ? 1 : 0) && hours <= (is12Hour ? 12 : 23);
    // minutes verified by timeRegex
    // empty string is valid
    return time === '' || (timeRegex.test(time) && validHours);
};
const getHours = (time, timeRegex) => {
    const parts = time.match(timeRegex);
    if (parts && parts.length) {
        if (/pm/i.test(parts[3])) {
            return parseInt(parts[1]) === 12 ? parseInt(parts[1]) : parseInt(parts[1]) + 12;
        }
        if (/am/i.test(parts[3])) {
            return parseInt(parts[1]) === 12 ? 0 : parseInt(parts[1]);
        }
        return parseInt(parts[1]);
    }
    return null;
};
const getMinutes = (time, timeRegex) => {
    const parts = time.match(timeRegex);
    return parts && parts.length ? parseInt(parts[2]) : null;
};
//# sourceMappingURL=TimePickerUtils.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Title/Title.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Title/Title.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TitleSizes": () => (/* binding */ TitleSizes),
/* harmony export */   "Title": () => (/* binding */ Title)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Title_title__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Title/title */ "./node_modules/@patternfly/react-styles/css/components/Title/title.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");





var TitleSizes;
(function (TitleSizes) {
    TitleSizes["md"] = "md";
    TitleSizes["lg"] = "lg";
    TitleSizes["xl"] = "xl";
    TitleSizes["2xl"] = "2xl";
    TitleSizes["3xl"] = "3xl";
    TitleSizes["4xl"] = "4xl";
})(TitleSizes || (TitleSizes = {}));
var headingLevelSizeMap;
(function (headingLevelSizeMap) {
    headingLevelSizeMap["h1"] = "2xl";
    headingLevelSizeMap["h2"] = "xl";
    headingLevelSizeMap["h3"] = "lg";
    headingLevelSizeMap["h4"] = "md";
    headingLevelSizeMap["h5"] = "md";
    headingLevelSizeMap["h6"] = "md";
})(headingLevelSizeMap || (headingLevelSizeMap = {}));
const Title = (_a) => {
    var { className = '', children = '', headingLevel: HeadingLevel, size = headingLevelSizeMap[HeadingLevel], ouiaId, ouiaSafe = true } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "children", "headingLevel", "size", "ouiaId", "ouiaSafe"]);
    const ouiaProps = (0,_helpers__WEBPACK_IMPORTED_MODULE_2__.useOUIAProps)(Title.displayName, ouiaId, ouiaSafe);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(HeadingLevel, Object.assign({}, ouiaProps, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Title_title__WEBPACK_IMPORTED_MODULE_4__["default"].title, size && _patternfly_react_styles_css_components_Title_title__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers[size], className) }), children));
};
Title.displayName = 'Title';
//# sourceMappingURL=Title.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/ToggleGroup/ToggleGroup.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/ToggleGroup/ToggleGroup.js ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ToggleGroup": () => (/* binding */ ToggleGroup)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_ToggleGroup_toggle_group__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/ToggleGroup/toggle-group */ "./node_modules/@patternfly/react-styles/css/components/ToggleGroup/toggle-group.js");




const ToggleGroup = (_a) => {
    var { className, children, isCompact = false, 'aria-label': ariaLabel } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "children", "isCompact", 'aria-label']);
    const toggleGroupItemList = [];
    react__WEBPACK_IMPORTED_MODULE_0__.Children.forEach(children, child => {
        toggleGroupItemList.push(child);
    });
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ToggleGroup_toggle_group__WEBPACK_IMPORTED_MODULE_3__["default"].toggleGroup, isCompact && _patternfly_react_styles_css_components_ToggleGroup_toggle_group__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.compact, className), role: "group", "aria-label": ariaLabel }, props), toggleGroupItemList));
};
ToggleGroup.displayName = 'ToggleGroup';
//# sourceMappingURL=ToggleGroup.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/ToggleGroup/ToggleGroupItem.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/ToggleGroup/ToggleGroupItem.js ***!
  \************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ToggleGroupItem": () => (/* binding */ ToggleGroupItem)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_ToggleGroup_toggle_group__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/ToggleGroup/toggle-group */ "./node_modules/@patternfly/react-styles/css/components/ToggleGroup/toggle-group.js");
/* harmony import */ var _ToggleGroupItemElement__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ToggleGroupItemElement */ "./node_modules/@patternfly/react-core/dist/esm/components/ToggleGroup/ToggleGroupItemElement.js");





const ToggleGroupItem = (_a) => {
    var { text, icon, className, isDisabled = false, isSelected = false, 'aria-label': ariaLabel = '', onChange = () => { }, buttonId = '' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["text", "icon", "className", "isDisabled", "isSelected", 'aria-label', "onChange", "buttonId"]);
    const handleChange = (event) => {
        onChange(!isSelected, event);
    };
    if (!ariaLabel && icon && !text) {
        /* eslint-disable no-console */
        console.warn('An accessible aria-label is required when using the toggle group item icon variant.');
    }
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ToggleGroup_toggle_group__WEBPACK_IMPORTED_MODULE_3__["default"].toggleGroupItem, className) }, props),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", Object.assign({ type: "button", className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_ToggleGroup_toggle_group__WEBPACK_IMPORTED_MODULE_3__["default"].toggleGroupButton, isSelected && _patternfly_react_styles_css_components_ToggleGroup_toggle_group__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.selected), "aria-pressed": isSelected, onClick: handleChange }, (ariaLabel && { 'aria-label': ariaLabel }), (isDisabled && { disabled: true }), (buttonId && { id: buttonId })),
            icon ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ToggleGroupItemElement__WEBPACK_IMPORTED_MODULE_4__.ToggleGroupItemElement, { variant: _ToggleGroupItemElement__WEBPACK_IMPORTED_MODULE_4__.ToggleGroupItemVariant.icon }, icon) : null,
            text ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ToggleGroupItemElement__WEBPACK_IMPORTED_MODULE_4__.ToggleGroupItemElement, { variant: _ToggleGroupItemElement__WEBPACK_IMPORTED_MODULE_4__.ToggleGroupItemVariant.text }, text) : null)));
};
ToggleGroupItem.displayName = 'ToggleGroupItem';
//# sourceMappingURL=ToggleGroupItem.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/ToggleGroup/ToggleGroupItemElement.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/ToggleGroup/ToggleGroupItemElement.js ***!
  \*******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ToggleGroupItemVariant": () => (/* binding */ ToggleGroupItemVariant),
/* harmony export */   "ToggleGroupItemElement": () => (/* binding */ ToggleGroupItemElement)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_ToggleGroup_toggle_group__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles/css/components/ToggleGroup/toggle-group */ "./node_modules/@patternfly/react-styles/css/components/ToggleGroup/toggle-group.js");



var ToggleGroupItemVariant;
(function (ToggleGroupItemVariant) {
    ToggleGroupItemVariant["icon"] = "icon";
    ToggleGroupItemVariant["text"] = "text";
})(ToggleGroupItemVariant || (ToggleGroupItemVariant = {}));
const ToggleGroupItemElement = ({ variant, children }) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(variant === 'icon' && _patternfly_react_styles_css_components_ToggleGroup_toggle_group__WEBPACK_IMPORTED_MODULE_2__["default"].toggleGroupIcon, variant === 'text' && _patternfly_react_styles_css_components_ToggleGroup_toggle_group__WEBPACK_IMPORTED_MODULE_2__["default"].toggleGroupText) }, children));
ToggleGroupItemElement.displayName = 'ToggleGroupItemElement';
//# sourceMappingURL=ToggleGroupItemElement.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js":
/*!************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TooltipPosition": () => (/* binding */ TooltipPosition),
/* harmony export */   "Tooltip": () => (/* binding */ Tooltip)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Tooltip_tooltip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Tooltip/tooltip */ "./node_modules/@patternfly/react-styles/css/components/Tooltip/tooltip.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _TooltipContent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./TooltipContent */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/TooltipContent.js");
/* harmony import */ var _TooltipArrow__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./TooltipArrow */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/TooltipArrow.js");
/* harmony import */ var _helpers_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/constants */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_c_tooltip_MaxWidth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/c_tooltip_MaxWidth */ "./node_modules/@patternfly/react-tokens/dist/esm/c_tooltip_MaxWidth.js");
/* harmony import */ var _helpers_Popper_Popper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../helpers/Popper/Popper */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/Popper.js");

/* eslint-disable no-console */








var TooltipPosition;
(function (TooltipPosition) {
    TooltipPosition["auto"] = "auto";
    TooltipPosition["top"] = "top";
    TooltipPosition["bottom"] = "bottom";
    TooltipPosition["left"] = "left";
    TooltipPosition["right"] = "right";
})(TooltipPosition || (TooltipPosition = {}));
// id for associating trigger with the content aria-describedby or aria-labelledby
let pfTooltipIdCounter = 1;
const Tooltip = (_a) => {
    var { content: bodyContent, position = 'top', trigger = 'mouseenter focus', isVisible = false, isContentLeftAligned = false, enableFlip = true, className = '', entryDelay = 300, exitDelay = 0, appendTo = () => document.body, zIndex = 9999, maxWidth = _patternfly_react_tokens_dist_esm_c_tooltip_MaxWidth__WEBPACK_IMPORTED_MODULE_1__["default"].value, distance = 15, aria = 'describedby', 
    // For every initial starting position, there are 3 escape positions
    flipBehavior = ['top', 'right', 'bottom', 'left', 'top', 'right', 'bottom'], id = `pf-tooltip-${pfTooltipIdCounter++}`, children, animationDuration = 300, reference, boundary, isAppLauncher, tippyProps } = _a, rest = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["content", "position", "trigger", "isVisible", "isContentLeftAligned", "enableFlip", "className", "entryDelay", "exitDelay", "appendTo", "zIndex", "maxWidth", "distance", "aria", "flipBehavior", "id", "children", "animationDuration", "reference", "boundary", "isAppLauncher", "tippyProps"]);
    if (true) {
        boundary !== undefined &&
            console.warn('The Tooltip boundary prop has been deprecated. If you want to constrain the popper to a specific element use the appendTo prop instead.');
        isAppLauncher !== undefined &&
            console.warn('The Tooltip isAppLauncher prop has been deprecated and is no longer used.');
        tippyProps !== undefined && console.warn('The Tooltip tippyProps prop has been deprecated and is no longer used.');
    }
    // could make this a prop in the future (true | false | 'toggle')
    const hideOnClick = true;
    const triggerOnMouseenter = trigger.includes('mouseenter');
    const triggerOnFocus = trigger.includes('focus');
    const triggerOnClick = trigger.includes('click');
    const triggerManually = trigger === 'manual';
    const [visible, setVisible] = react__WEBPACK_IMPORTED_MODULE_0__.useState(false);
    const [opacity, setOpacity] = react__WEBPACK_IMPORTED_MODULE_0__.useState(0);
    const transitionTimerRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);
    const showTimerRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);
    const hideTimerRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);
    const clearTimeouts = (timeoutRefs) => {
        timeoutRefs.forEach(ref => {
            if (ref.current) {
                clearTimeout(ref.current);
            }
        });
    };
    // Cancel all timers on unmount
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => () => {
        clearTimeouts([transitionTimerRef, hideTimerRef, showTimerRef]);
    }, []);
    const onDocumentKeyDown = (event) => {
        if (!triggerManually) {
            if (event.keyCode === _helpers_constants__WEBPACK_IMPORTED_MODULE_3__.KEY_CODES.ESCAPE_KEY && visible) {
                hide();
            }
        }
    };
    const onTriggerEnter = (event) => {
        if (event.keyCode === _helpers_constants__WEBPACK_IMPORTED_MODULE_3__.KEY_CODES.ENTER) {
            if (!visible) {
                show();
            }
            else {
                hide();
            }
        }
    };
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        if (isVisible) {
            show();
        }
        else {
            hide();
        }
    }, [isVisible]);
    const show = () => {
        clearTimeouts([transitionTimerRef, hideTimerRef]);
        showTimerRef.current = setTimeout(() => {
            setVisible(true);
            setOpacity(1);
        }, entryDelay);
    };
    const hide = () => {
        clearTimeouts([showTimerRef]);
        hideTimerRef.current = setTimeout(() => {
            setOpacity(0);
            transitionTimerRef.current = setTimeout(() => setVisible(false), animationDuration);
        }, exitDelay);
    };
    const positionModifiers = {
        top: _patternfly_react_styles_css_components_Tooltip_tooltip__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.top,
        bottom: _patternfly_react_styles_css_components_Tooltip_tooltip__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.bottom,
        left: _patternfly_react_styles_css_components_Tooltip_tooltip__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.left,
        right: _patternfly_react_styles_css_components_Tooltip_tooltip__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.right
    };
    const hasCustomMaxWidth = maxWidth !== _patternfly_react_tokens_dist_esm_c_tooltip_MaxWidth__WEBPACK_IMPORTED_MODULE_1__["default"].value;
    const content = (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__.css)(_patternfly_react_styles_css_components_Tooltip_tooltip__WEBPACK_IMPORTED_MODULE_4__["default"].tooltip, className), role: "tooltip", id: id, style: {
            maxWidth: hasCustomMaxWidth ? maxWidth : null,
            opacity,
            transition: (0,_helpers_Popper_Popper__WEBPACK_IMPORTED_MODULE_6__.getOpacityTransition)(animationDuration)
        } }, rest),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TooltipArrow__WEBPACK_IMPORTED_MODULE_7__.TooltipArrow, null),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TooltipContent__WEBPACK_IMPORTED_MODULE_8__.TooltipContent, { isLeftAligned: isContentLeftAligned }, bodyContent)));
    const onDocumentClick = (event, triggerElement) => {
        // event.currentTarget = document
        // event.target could be triggerElement or something else
        if (hideOnClick === true) {
            // hide on inside the toggle as well as on outside clicks
            if (visible) {
                hide();
            }
            else if (event.target === triggerElement) {
                show();
            }
        }
        else if (hideOnClick === 'toggle' && event.target === triggerElement) {
            // prevent outside clicks from hiding but allow it to still be toggled on toggle click
            if (visible) {
                hide();
            }
            else {
                show();
            }
        }
        else if (hideOnClick === false && !visible && event.target === triggerElement) {
            show();
        }
    };
    const addAriaToTrigger = () => {
        if (aria === 'describedby' && children && children.props && !children.props['aria-describedby']) {
            return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(children, { 'aria-describedby': id });
        }
        else if (aria === 'labelledby' && children.props && !children.props['aria-labelledby']) {
            return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(children, { 'aria-labelledby': id });
        }
        return children;
    };
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_helpers_Popper_Popper__WEBPACK_IMPORTED_MODULE_6__.Popper, { trigger: aria !== 'none' && visible ? addAriaToTrigger() : children, reference: reference, popper: content, popperMatchesTriggerWidth: false, appendTo: appendTo, isVisible: visible, positionModifiers: positionModifiers, distance: distance, placement: position, onMouseEnter: triggerOnMouseenter && show, onMouseLeave: triggerOnMouseenter && hide, onFocus: triggerOnFocus && show, onBlur: triggerOnFocus && hide, onDocumentClick: triggerOnClick && onDocumentClick, onDocumentKeyDown: triggerManually ? null : onDocumentKeyDown, onTriggerEnter: triggerManually ? null : onTriggerEnter, enableFlip: enableFlip, zIndex: zIndex, flipBehavior: flipBehavior }));
};
Tooltip.displayName = 'Tooltip';
//# sourceMappingURL=Tooltip.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/TooltipArrow.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/TooltipArrow.js ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TooltipArrow": () => (/* binding */ TooltipArrow)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Tooltip_tooltip__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Tooltip/tooltip */ "./node_modules/@patternfly/react-styles/css/components/Tooltip/tooltip.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");




const TooltipArrow = (_a) => {
    var { className } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className"]);
    return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Tooltip_tooltip__WEBPACK_IMPORTED_MODULE_3__["default"].tooltipArrow, className) }, props));
};
TooltipArrow.displayName = 'TooltipArrow';
//# sourceMappingURL=TooltipArrow.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/TooltipContent.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/TooltipContent.js ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TooltipContent": () => (/* binding */ TooltipContent)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Tooltip_tooltip__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Tooltip/tooltip */ "./node_modules/@patternfly/react-styles/css/components/Tooltip/tooltip.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");




const TooltipContent = (_a) => {
    var { className, children, isLeftAligned } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "children", "isLeftAligned"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Tooltip_tooltip__WEBPACK_IMPORTED_MODULE_3__["default"].tooltipContent, isLeftAligned && _patternfly_react_styles_css_components_Tooltip_tooltip__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.textAlignLeft, className) }, props), children));
};
TooltipContent.displayName = 'TooltipContent';
//# sourceMappingURL=TooltipContent.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/TreeView/TreeView.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/TreeView/TreeView.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TreeView": () => (/* binding */ TreeView)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _TreeViewList__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TreeViewList */ "./node_modules/@patternfly/react-core/dist/esm/components/TreeView/TreeViewList.js");
/* harmony import */ var _TreeViewListItem__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TreeViewListItem */ "./node_modules/@patternfly/react-core/dist/esm/components/TreeView/TreeViewListItem.js");
/* harmony import */ var _TreeViewRoot__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TreeViewRoot */ "./node_modules/@patternfly/react-core/dist/esm/components/TreeView/TreeViewRoot.js");





const TreeView = (_a) => {
    var { data, isNested = false, hasChecks = false, hasBadges = false, hasGuides = false, variant = 'default', defaultAllExpanded = false, allExpanded, icon, expandedIcon, parentItem, onSelect, onCheck, toolbar, activeItems, compareItems = (item, itemToCheck) => item.id === itemToCheck.id, className, useMemo } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["data", "isNested", "hasChecks", "hasBadges", "hasGuides", "variant", "defaultAllExpanded", "allExpanded", "icon", "expandedIcon", "parentItem", "onSelect", "onCheck", "toolbar", "activeItems", "compareItems", "className", "useMemo"]);
    const treeViewList = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TreeViewList__WEBPACK_IMPORTED_MODULE_2__.TreeViewList, { isNested: isNested, toolbar: toolbar }, data.map(item => {
        var _a;
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TreeViewListItem__WEBPACK_IMPORTED_MODULE_3__.TreeViewListItem, Object.assign({ key: ((_a = item.id) === null || _a === void 0 ? void 0 : _a.toString()) || item.name.toString(), name: item.name, title: item.title, id: item.id, isExpanded: allExpanded, defaultExpanded: item.defaultExpanded !== undefined ? item.defaultExpanded : defaultAllExpanded, onSelect: onSelect, onCheck: onCheck, hasCheck: item.hasCheck !== undefined ? item.hasCheck : hasChecks, checkProps: item.checkProps, hasBadge: item.hasBadge !== undefined ? item.hasBadge : hasBadges, customBadgeContent: item.customBadgeContent, badgeProps: item.badgeProps, activeItems: activeItems, parentItem: parentItem, itemData: item, icon: item.icon !== undefined ? item.icon : icon, expandedIcon: item.expandedIcon !== undefined ? item.expandedIcon : expandedIcon, action: item.action, compareItems: compareItems, isCompact: variant === 'compact' || variant === 'compactNoBackground', useMemo: useMemo }, (item.children && {
            children: (react__WEBPACK_IMPORTED_MODULE_0__.createElement(TreeView, { data: item.children, isNested: true, parentItem: item, hasChecks: hasChecks, hasBadges: hasBadges, hasGuides: hasGuides, variant: variant, allExpanded: allExpanded, defaultAllExpanded: defaultAllExpanded, onSelect: onSelect, onCheck: onCheck, activeItems: activeItems, icon: icon, expandedIcon: expandedIcon }))
        }))));
    })));
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, parentItem ? (treeViewList) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TreeViewRoot__WEBPACK_IMPORTED_MODULE_4__.TreeViewRoot, Object.assign({ hasChecks: hasChecks, hasGuides: hasGuides, variant: variant, className: className }, props), treeViewList))));
};
TreeView.displayName = 'TreeView';
//# sourceMappingURL=TreeView.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/TreeView/TreeViewList.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/TreeView/TreeViewList.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TreeViewList": () => (/* binding */ TreeViewList)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _Divider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Divider */ "./node_modules/@patternfly/react-core/dist/esm/components/Divider/Divider.js");




const TreeViewList = (_a) => {
    var { isNested = false, toolbar, children } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["isNested", "toolbar", "children"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
        toolbar && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
            toolbar,
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Divider__WEBPACK_IMPORTED_MODULE_2__.Divider, null))),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("ul", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)('pf-c-tree-view__list'), role: isNested ? 'group' : 'tree' }, props), children)));
};
TreeViewList.displayName = 'TreeViewList';
//# sourceMappingURL=TreeViewList.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/TreeView/TreeViewListItem.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/TreeView/TreeViewListItem.js ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TreeViewListItem": () => (/* binding */ TreeViewListItem)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_TreeView_tree_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles/css/components/TreeView/tree-view */ "./node_modules/@patternfly/react-styles/css/components/TreeView/tree-view.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-right-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-right-icon.js");
/* harmony import */ var _Badge__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Badge */ "./node_modules/@patternfly/react-core/dist/esm/components/Badge/Badge.js");
/* harmony import */ var _helpers_GenerateId_GenerateId__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers/GenerateId/GenerateId */ "./node_modules/@patternfly/react-core/dist/esm/helpers/GenerateId/GenerateId.js");






const TreeViewListItemBase = ({ name, title, id, isExpanded, defaultExpanded = false, children = null, onSelect, onCheck, hasCheck = false, checkProps = {
    checked: false
}, hasBadge = false, customBadgeContent, badgeProps = { isRead: true }, isCompact, activeItems = [], itemData, parentItem, icon, expandedIcon, action, compareItems, 
// eslint-disable-next-line @typescript-eslint/no-unused-vars
useMemo }) => {
    const [internalIsExpanded, setIsExpanded] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(defaultExpanded);
    (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
        if (isExpanded !== undefined && isExpanded !== null) {
            setIsExpanded(isExpanded);
        }
        else if (defaultExpanded !== undefined && defaultExpanded !== null) {
            setIsExpanded(internalIsExpanded || defaultExpanded);
        }
    }, [isExpanded, defaultExpanded]);
    const Component = hasCheck ? 'div' : 'button';
    const ToggleComponent = hasCheck ? 'button' : 'div';
    const renderToggle = (randomId) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(ToggleComponent, Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_TreeView_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].treeViewNodeToggle), onClick: () => {
            if (hasCheck) {
                setIsExpanded(!internalIsExpanded);
            }
        } }, (hasCheck && { 'aria-labelledby': `label-${randomId}` }), { tabIndex: -1 }),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_TreeView_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].treeViewNodeToggleIcon) },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_3__["default"], { "aria-hidden": "true" }))));
    const renderCheck = (randomId) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_TreeView_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].treeViewNodeCheck) },
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", Object.assign({ type: "checkbox", onChange: (evt) => onCheck && onCheck(evt, itemData, parentItem), onClick: (evt) => evt.stopPropagation(), ref: elem => elem && (elem.indeterminate = checkProps.checked === null) }, checkProps, { checked: checkProps.checked === null ? false : checkProps.checked, id: randomId, tabIndex: -1 }))));
    const iconRendered = (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_TreeView_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].treeViewNodeIcon) },
        !internalIsExpanded && icon,
        internalIsExpanded && (expandedIcon || icon)));
    const renderNodeContent = (randomId) => {
        const content = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
            isCompact && title && react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_TreeView_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].treeViewNodeTitle) }, title),
            hasCheck ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement("label", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_TreeView_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].treeViewNodeText), htmlFor: randomId, id: `label-${randomId}` }, name)) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_TreeView_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].treeViewNodeText) }, name))));
        return isCompact ? react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_TreeView_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].treeViewNodeContent) }, content) : content;
    };
    const badgeRendered = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
        hasBadge && children && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_TreeView_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].treeViewNodeCount) },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Badge__WEBPACK_IMPORTED_MODULE_4__.Badge, Object.assign({}, badgeProps), customBadgeContent ? customBadgeContent : children.props.data.length))),
        hasBadge && !children && customBadgeContent !== undefined && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_TreeView_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].treeViewNodeCount) },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Badge__WEBPACK_IMPORTED_MODULE_4__.Badge, Object.assign({}, badgeProps), customBadgeContent)))));
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", Object.assign({ id: id, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_TreeView_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].treeViewListItem, internalIsExpanded && _patternfly_react_styles_css_components_TreeView_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].modifiers.expanded) }, (internalIsExpanded && { 'aria-expanded': 'true' }), { role: children ? 'treeitem' : 'none', tabIndex: -1 }),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_TreeView_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].treeViewContent) },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_helpers_GenerateId_GenerateId__WEBPACK_IMPORTED_MODULE_5__.GenerateId, { prefix: "checkbox-id" }, randomId => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_TreeView_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].treeViewNode, !children &&
                    activeItems &&
                    activeItems.length > 0 &&
                    activeItems.some(item => compareItems && item && compareItems(item, itemData))
                    ? _patternfly_react_styles_css_components_TreeView_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].modifiers.current
                    : ''), onClick: (evt) => {
                    if (!hasCheck) {
                        onSelect && onSelect(evt, itemData, parentItem);
                        if (children && evt.isDefaultPrevented() !== true) {
                            setIsExpanded(!internalIsExpanded);
                        }
                    }
                } }, (!children && { role: 'treeitem' }), { tabIndex: -1 }),
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_TreeView_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].treeViewNodeContainer) },
                    children && renderToggle(randomId),
                    hasCheck && renderCheck(randomId),
                    icon && iconRendered,
                    renderNodeContent(randomId),
                    badgeRendered)))),
            action && react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_TreeView_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].treeViewAction) }, action)),
        internalIsExpanded && children));
};
const TreeViewListItem = react__WEBPACK_IMPORTED_MODULE_0__.memo(TreeViewListItemBase, (prevProps, nextProps) => {
    if (!nextProps.useMemo) {
        return false;
    }
    const prevIncludes = prevProps.activeItems &&
        prevProps.activeItems.length > 0 &&
        prevProps.activeItems.some(item => prevProps.compareItems && item && prevProps.compareItems(item, prevProps.itemData));
    const nextIncludes = nextProps.activeItems &&
        nextProps.activeItems.length > 0 &&
        nextProps.activeItems.some(item => nextProps.compareItems && item && nextProps.compareItems(item, nextProps.itemData));
    if (prevIncludes || nextIncludes) {
        return false;
    }
    if (prevProps.name !== nextProps.name ||
        prevProps.title !== nextProps.title ||
        prevProps.id !== nextProps.id ||
        prevProps.isExpanded !== nextProps.isExpanded ||
        prevProps.defaultExpanded !== nextProps.defaultExpanded ||
        prevProps.onSelect !== nextProps.onSelect ||
        prevProps.onCheck !== nextProps.onCheck ||
        prevProps.hasCheck !== nextProps.hasCheck ||
        prevProps.checkProps !== nextProps.checkProps ||
        prevProps.hasBadge !== nextProps.hasBadge ||
        prevProps.customBadgeContent !== nextProps.customBadgeContent ||
        prevProps.badgeProps !== nextProps.badgeProps ||
        prevProps.isCompact !== nextProps.isCompact ||
        prevProps.icon !== nextProps.icon ||
        prevProps.expandedIcon !== nextProps.expandedIcon ||
        prevProps.action !== nextProps.action ||
        prevProps.parentItem !== nextProps.parentItem ||
        prevProps.itemData !== nextProps.itemData) {
        return false;
    }
    return true;
});
TreeViewListItem.displayName = 'TreeViewListItem';
//# sourceMappingURL=TreeViewListItem.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/TreeView/TreeViewRoot.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/TreeView/TreeViewRoot.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TreeViewRoot": () => (/* binding */ TreeViewRoot)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_TreeView_tree_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles/css/components/TreeView/tree-view */ "./node_modules/@patternfly/react-styles/css/components/TreeView/tree-view.js");
/* harmony import */ var _helpers_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/util */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/KeyboardHandler.js");






class TreeViewRoot extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor() {
        super(...arguments);
        this.displayName = 'TreeViewRoot';
        this.treeRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.handleKeys = (event) => {
            if (this.treeRef.current !== event.target.closest('.pf-c-tree-view')) {
                return;
            }
            const activeElement = document.activeElement;
            const key = event.key;
            const treeItems = Array.from(this.treeRef.current.getElementsByClassName('pf-c-tree-view__node')).filter(el => !el.classList.contains('pf-m-disabled'));
            if (key === 'Space') {
                document.activeElement.click();
                event.preventDefault();
            }
            (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.handleArrows)(event, treeItems, (element) => activeElement === element, undefined, [], undefined, true, true);
            if (['ArrowLeft', 'ArrowRight'].includes(key)) {
                const isExpandable = activeElement.firstElementChild.firstElementChild.classList.contains('pf-c-tree-view__node-toggle');
                const isExpanded = activeElement.closest('li').classList.contains('pf-m-expanded');
                if (key === 'ArrowLeft') {
                    if (isExpandable && isExpanded) {
                        activeElement.click();
                    }
                    else {
                        const parentList = activeElement.closest('ul').parentElement;
                        if (parentList.tagName !== 'DIV') {
                            const parentButton = parentList.querySelector('button');
                            activeElement.tabIndex = -1;
                            parentButton.tabIndex = 0;
                            parentButton.focus();
                        }
                    }
                }
                else {
                    if (isExpandable && !isExpanded) {
                        activeElement.tabIndex = -1;
                        activeElement.click();
                        const childElement = activeElement
                            .closest('li')
                            .querySelector('ul > li')
                            .querySelector('button');
                        childElement.tabIndex = 0;
                        childElement.focus();
                    }
                }
                event.preventDefault();
            }
        };
        this.handleKeysCheckbox = (event) => {
            if (this.treeRef.current !== event.target.closest('.pf-c-tree-view')) {
                return;
            }
            const activeElement = document.activeElement;
            const key = event.key;
            if (key === 'Space') {
                document.activeElement.click();
                event.preventDefault();
            }
            const treeNodes = Array.from(this.treeRef.current.getElementsByClassName('pf-c-tree-view__node'));
            (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.handleArrows)(event, treeNodes, (element) => element.contains(activeElement), (element) => element.querySelector('BUTTON,INPUT'), [], undefined, true, true);
            if (['ArrowLeft', 'ArrowRight'].includes(key)) {
                if (key === 'ArrowLeft') {
                    if (activeElement.tagName === 'INPUT') {
                        activeElement.parentElement.previousSibling &&
                            activeElement.parentElement.previousSibling.focus();
                    }
                    else if (activeElement.previousSibling) {
                        if (activeElement.previousElementSibling.tagName === 'SPAN') {
                            activeElement.previousSibling.firstChild.focus();
                        }
                        else {
                            activeElement.previousSibling.focus();
                        }
                    }
                }
                else {
                    if (activeElement.tagName === 'INPUT') {
                        activeElement.parentElement.nextSibling && activeElement.parentElement.nextSibling.focus();
                    }
                    else if (activeElement.nextSibling) {
                        if (activeElement.nextElementSibling.tagName === 'SPAN') {
                            activeElement.nextSibling.firstChild.focus();
                        }
                        else {
                            activeElement.nextSibling.focus();
                        }
                    }
                }
                event.preventDefault();
            }
        };
        this.variantStyleModifiers = {
            default: '',
            compact: _patternfly_react_styles_css_components_TreeView_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].modifiers.compact,
            compactNoBackground: [_patternfly_react_styles_css_components_TreeView_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].modifiers.compact, _patternfly_react_styles_css_components_TreeView_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].modifiers.noBackground]
        };
    }
    componentDidMount() {
        if (_helpers_util__WEBPACK_IMPORTED_MODULE_3__.canUseDOM) {
            window.addEventListener('keydown', this.props.hasChecks ? this.handleKeysCheckbox : this.handleKeys);
        }
        if (this.props.hasChecks) {
            const firstToggle = this.treeRef.current.getElementsByClassName('pf-c-tree-view__node-toggle')[0];
            if (firstToggle) {
                firstToggle.tabIndex = 0;
            }
            const firstInput = this.treeRef.current.getElementsByTagName('INPUT')[0];
            if (firstInput) {
                firstInput.tabIndex = 0;
            }
        }
        else {
            this.treeRef.current.getElementsByClassName('pf-c-tree-view__node')[0].tabIndex = 0;
        }
    }
    componentWillUnmount() {
        if (_helpers_util__WEBPACK_IMPORTED_MODULE_3__.canUseDOM) {
            window.removeEventListener('keydown', this.props.hasChecks ? this.handleKeysCheckbox : this.handleKeys);
        }
    }
    render() {
        // eslint-disable-next-line @typescript-eslint/no-unused-vars
        const _a = this.props, { children, hasChecks, hasGuides, variant, className } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__rest)(_a, ["children", "hasChecks", "hasGuides", "variant", "className"]);
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__.css)(_patternfly_react_styles_css_components_TreeView_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].treeView, hasGuides && _patternfly_react_styles_css_components_TreeView_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].modifiers.guides, this.variantStyleModifiers[variant], className), ref: this.treeRef }, props), children));
    }
}
//# sourceMappingURL=TreeViewRoot.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Wizard/Wizard.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Wizard/Wizard.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Wizard": () => (/* binding */ Wizard)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _helpers_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers/constants */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Wizard/wizard */ "./node_modules/@patternfly/react-styles/css/components/Wizard/wizard.js");
/* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Modal */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _WizardFooterInternal__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./WizardFooterInternal */ "./node_modules/@patternfly/react-core/dist/esm/components/Wizard/WizardFooterInternal.js");
/* harmony import */ var _WizardToggle__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./WizardToggle */ "./node_modules/@patternfly/react-core/dist/esm/components/Wizard/WizardToggle.js");
/* harmony import */ var _WizardNav__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./WizardNav */ "./node_modules/@patternfly/react-core/dist/esm/components/Wizard/WizardNav.js");
/* harmony import */ var _WizardNavItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./WizardNavItem */ "./node_modules/@patternfly/react-core/dist/esm/components/Wizard/WizardNavItem.js");
/* harmony import */ var _WizardContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./WizardContext */ "./node_modules/@patternfly/react-core/dist/esm/components/Wizard/WizardContext.js");
/* harmony import */ var _WizardHeader__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./WizardHeader */ "./node_modules/@patternfly/react-core/dist/esm/components/Wizard/WizardHeader.js");












class Wizard extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor(props) {
        super(props);
        this.handleKeyClicks = (event) => {
            if (event.keyCode === _helpers_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_CODES.ESCAPE_KEY) {
                if (this.state.isNavOpen) {
                    this.setState({ isNavOpen: !this.state.isNavOpen });
                }
                else if (this.props.isOpen) {
                    this.props.onClose();
                }
            }
        };
        this.onNext = () => {
            const { onNext, onClose, onSave } = this.props;
            const { currentStep } = this.state;
            const flattenedSteps = this.getFlattenedSteps();
            const maxSteps = flattenedSteps.length;
            if (currentStep >= maxSteps) {
                // Hit the save button at the end of the wizard
                if (onSave) {
                    return onSave();
                }
                return onClose();
            }
            else {
                const newStep = currentStep + 1;
                this.setState({
                    currentStep: newStep
                });
                const { id: prevId, name: prevName } = flattenedSteps[currentStep - 1];
                const { id, name } = flattenedSteps[newStep - 1];
                return onNext && onNext({ id, name }, { prevId, prevName });
            }
        };
        this.onBack = () => {
            const { onBack } = this.props;
            const { currentStep } = this.state;
            const flattenedSteps = this.getFlattenedSteps();
            if (flattenedSteps.length < currentStep) {
                // Previous step was removed, just update the currentStep state
                const adjustedStep = flattenedSteps.length;
                this.setState({
                    currentStep: adjustedStep
                });
            }
            else {
                const newStep = currentStep - 1 <= 0 ? 0 : currentStep - 1;
                this.setState({
                    currentStep: newStep
                });
                const { id: prevId, name: prevName } = flattenedSteps[newStep];
                const { id, name } = flattenedSteps[newStep - 1];
                return onBack && onBack({ id, name }, { prevId, prevName });
            }
        };
        this.goToStep = (step) => {
            const { onGoToStep } = this.props;
            const { currentStep } = this.state;
            const flattenedSteps = this.getFlattenedSteps();
            const maxSteps = flattenedSteps.length;
            if (step < 1) {
                step = 1;
            }
            else if (step > maxSteps) {
                step = maxSteps;
            }
            this.setState({ currentStep: step, isNavOpen: false });
            const { id: prevId, name: prevName } = flattenedSteps[currentStep - 1];
            const { id, name } = flattenedSteps[step - 1];
            return onGoToStep && onGoToStep({ id, name }, { prevId, prevName });
        };
        this.goToStepById = (stepId) => {
            const flattenedSteps = this.getFlattenedSteps();
            let step;
            for (let i = 0; i < flattenedSteps.length; i++) {
                if (flattenedSteps[i].id === stepId) {
                    step = i + 1;
                    break;
                }
            }
            if (step) {
                this.setState({ currentStep: step });
            }
        };
        this.goToStepByName = (stepName) => {
            const flattenedSteps = this.getFlattenedSteps();
            let step;
            for (let i = 0; i < flattenedSteps.length; i++) {
                if (flattenedSteps[i].name === stepName) {
                    step = i + 1;
                    break;
                }
            }
            if (step) {
                this.setState({ currentStep: step });
            }
        };
        this.getFlattenedSteps = () => {
            const { steps } = this.props;
            const flattenedSteps = [];
            for (const step of steps) {
                if (step.steps) {
                    for (const childStep of step.steps) {
                        flattenedSteps.push(childStep);
                    }
                }
                else {
                    flattenedSteps.push(step);
                }
            }
            return flattenedSteps;
        };
        this.getFlattenedStepsIndex = (flattenedSteps, stepName) => {
            for (let i = 0; i < flattenedSteps.length; i++) {
                if (flattenedSteps[i].name === stepName) {
                    return i + 1;
                }
            }
            return 0;
        };
        this.initSteps = (steps) => {
            // Set default Step values
            for (let i = 0; i < steps.length; i++) {
                if (steps[i].steps) {
                    for (let j = 0; j < steps[i].steps.length; j++) {
                        steps[i].steps[j] = Object.assign({ canJumpTo: true }, steps[i].steps[j]);
                    }
                }
                steps[i] = Object.assign({ canJumpTo: true }, steps[i]);
            }
            return steps;
        };
        this.getElement = (appendTo) => {
            if (typeof appendTo === 'function') {
                return appendTo();
            }
            return appendTo || document.body;
        };
        const newId = Wizard.currentId++;
        this.titleId = props.titleId || `pf-wizard-title-${newId}`;
        this.descriptionId = props.descriptionId || `pf-wizard-description-${newId}`;
        this.state = {
            currentStep: this.props.startAtStep && Number.isInteger(this.props.startAtStep) ? this.props.startAtStep : 1,
            isNavOpen: false
        };
    }
    componentDidMount() {
        const target = typeof document !== 'undefined' ? document.body : null;
        if (target) {
            target.addEventListener('keydown', this.handleKeyClicks, false);
        }
    }
    componentWillUnmount() {
        const target = (typeof document !== 'undefined' && document.body) || null;
        if (target) {
            target.removeEventListener('keydown', this.handleKeyClicks, false);
        }
    }
    render() {
        const _a = this.props, { 
        /* eslint-disable @typescript-eslint/no-unused-vars */
        width, height, title, description, onClose, onSave, onBack, onNext, onGoToStep, className, steps, startAtStep, nextButtonText = 'Next', backButtonText = 'Back', cancelButtonText = 'Cancel', hideClose, closeButtonAriaLabel = 'Close', navAriaLabel, navAriaLabelledBy, mainAriaLabel, mainAriaLabelledBy, hasNoBodyPadding, footer, appendTo, isOpen, titleId, descriptionId, isNavExpandable } = _a, rest = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["width", "height", "title", "description", "onClose", "onSave", "onBack", "onNext", "onGoToStep", "className", "steps", "startAtStep", "nextButtonText", "backButtonText", "cancelButtonText", "hideClose", "closeButtonAriaLabel", "navAriaLabel", "navAriaLabelledBy", "mainAriaLabel", "mainAriaLabelledBy", "hasNoBodyPadding", "footer", "appendTo", "isOpen", "titleId", "descriptionId", "isNavExpandable"])
        /* eslint-enable @typescript-eslint/no-unused-vars */
        ;
        const { currentStep } = this.state;
        const flattenedSteps = this.getFlattenedSteps();
        const adjustedStep = flattenedSteps.length < currentStep ? flattenedSteps.length : currentStep;
        const activeStep = flattenedSteps[adjustedStep - 1];
        const computedSteps = this.initSteps(steps);
        const firstStep = activeStep === flattenedSteps[0];
        const isValid = activeStep && activeStep.enableNext !== undefined ? activeStep.enableNext : true;
        const nav = (isWizardNavOpen) => {
            const wizNavAProps = {
                isOpen: isWizardNavOpen,
                'aria-label': navAriaLabel,
                'aria-labelledby': (title || navAriaLabelledBy) && (navAriaLabelledBy || this.titleId)
            };
            return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_WizardNav__WEBPACK_IMPORTED_MODULE_3__.WizardNav, Object.assign({}, wizNavAProps), computedSteps.map((step, index) => {
                if (step.isFinishedStep) {
                    // Don't show finished step in the side nav
                    return;
                }
                let enabled;
                let navItemStep;
                if (step.steps) {
                    let hasActiveChild = false;
                    let canJumpToParent = false;
                    for (const subStep of step.steps) {
                        if (activeStep.name === subStep.name) {
                            // one of the children matches
                            hasActiveChild = true;
                        }
                        if (subStep.canJumpTo) {
                            canJumpToParent = true;
                        }
                    }
                    navItemStep = this.getFlattenedStepsIndex(flattenedSteps, step.steps[0].name);
                    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_WizardNavItem__WEBPACK_IMPORTED_MODULE_4__.WizardNavItem, { key: index, content: step.name, isExpandable: isNavExpandable, isCurrent: hasActiveChild, isDisabled: !canJumpToParent, step: navItemStep, onNavItemClick: this.goToStep },
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_WizardNav__WEBPACK_IMPORTED_MODULE_3__.WizardNav, Object.assign({}, wizNavAProps, { returnList: true }), step.steps.map((childStep, indexChild) => {
                            if (childStep.isFinishedStep) {
                                // Don't show finished step in the side nav
                                return;
                            }
                            navItemStep = this.getFlattenedStepsIndex(flattenedSteps, childStep.name);
                            enabled = childStep.canJumpTo;
                            return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_WizardNavItem__WEBPACK_IMPORTED_MODULE_4__.WizardNavItem, { key: `child_${indexChild}`, content: childStep.name, isCurrent: activeStep.name === childStep.name, isDisabled: !enabled, step: navItemStep, onNavItemClick: this.goToStep }));
                        }))));
                }
                navItemStep = this.getFlattenedStepsIndex(flattenedSteps, step.name);
                enabled = step.canJumpTo;
                return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_WizardNavItem__WEBPACK_IMPORTED_MODULE_4__.WizardNavItem, Object.assign({}, step.stepNavItemProps, { key: index, content: step.name, isCurrent: activeStep.name === step.name, isDisabled: !enabled, step: navItemStep, onNavItemClick: this.goToStep })));
            })));
        };
        const context = {
            goToStepById: this.goToStepById,
            goToStepByName: this.goToStepByName,
            onNext: this.onNext,
            onBack: this.onBack,
            onClose,
            activeStep
        };
        const divStyles = Object.assign(Object.assign({}, (height ? { height } : {})), (width ? { width } : {}));
        const wizard = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_WizardContext__WEBPACK_IMPORTED_MODULE_5__.WizardContextProvider, { value: context },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({}, rest, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_6__.css)(_patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_7__["default"].wizard, activeStep && activeStep.isFinishedStep && 'pf-m-finished', className), style: Object.keys(divStyles).length ? divStyles : undefined }),
                title && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_WizardHeader__WEBPACK_IMPORTED_MODULE_8__.WizardHeader, { titleId: this.titleId, descriptionId: this.descriptionId, onClose: onClose, title: title, description: description, closeButtonAriaLabel: closeButtonAriaLabel, hideClose: hideClose })),
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_WizardToggle__WEBPACK_IMPORTED_MODULE_9__.WizardToggle, { mainAriaLabel: mainAriaLabel, isInPage: isOpen === undefined, mainAriaLabelledBy: (title || mainAriaLabelledBy) && (mainAriaLabelledBy || this.titleId), isNavOpen: this.state.isNavOpen, onNavToggle: isNavOpen => this.setState({ isNavOpen }), nav: nav, steps: steps, activeStep: activeStep, hasNoBodyPadding: hasNoBodyPadding }, footer || (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_WizardFooterInternal__WEBPACK_IMPORTED_MODULE_10__.WizardFooterInternal, { onNext: this.onNext, onBack: this.onBack, onClose: onClose, isValid: isValid, firstStep: firstStep, activeStep: activeStep, nextButtonText: (activeStep && activeStep.nextButtonText) || nextButtonText, backButtonText: backButtonText, cancelButtonText: cancelButtonText }))))));
        if (isOpen !== undefined) {
            return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Modal__WEBPACK_IMPORTED_MODULE_11__.Modal, { width: width !== null ? width : undefined, isOpen: isOpen, variant: _Modal__WEBPACK_IMPORTED_MODULE_11__.ModalVariant.large, "aria-labelledby": this.titleId, "aria-describedby": this.descriptionId, showClose: false, hasNoBodyWrapper: true }, wizard));
        }
        return wizard;
    }
}
Wizard.displayName = 'Wizard';
Wizard.currentId = 0;
Wizard.defaultProps = {
    title: null,
    description: '',
    className: '',
    startAtStep: 1,
    nextButtonText: 'Next',
    backButtonText: 'Back',
    cancelButtonText: 'Cancel',
    hideClose: false,
    closeButtonAriaLabel: 'Close',
    navAriaLabel: null,
    navAriaLabelledBy: null,
    mainAriaLabel: null,
    mainAriaLabelledBy: null,
    hasNoBodyPadding: false,
    onBack: null,
    onNext: null,
    onGoToStep: null,
    width: null,
    height: null,
    footer: null,
    onClose: () => undefined,
    appendTo: null,
    isOpen: undefined,
    isNavExpandable: false
};
//# sourceMappingURL=Wizard.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Wizard/WizardBody.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Wizard/WizardBody.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "WizardBody": () => (/* binding */ WizardBody)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Wizard/wizard */ "./node_modules/@patternfly/react-styles/css/components/Wizard/wizard.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");



const WizardBody = ({ children, hasNoBodyPadding = false, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, mainComponent = 'div' }) => {
    const MainComponent = mainComponent;
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(MainComponent, { "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__["default"].wizardMain) },
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__["default"].wizardMainBody, hasNoBodyPadding && _patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__["default"].modifiers.noPadding) }, children)));
};
WizardBody.displayName = 'WizardBody';
//# sourceMappingURL=WizardBody.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Wizard/WizardContext.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Wizard/WizardContext.js ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "WizardContext": () => (/* binding */ WizardContext),
/* harmony export */   "WizardContextProvider": () => (/* binding */ WizardContextProvider),
/* harmony export */   "WizardContextConsumer": () => (/* binding */ WizardContextConsumer)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");

const WizardContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext({
    goToStepById: () => null,
    goToStepByName: () => null,
    onNext: () => null,
    onBack: () => null,
    onClose: () => null,
    activeStep: { name: null }
});
const WizardContextProvider = WizardContext.Provider;
const WizardContextConsumer = WizardContext.Consumer;
//# sourceMappingURL=WizardContext.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Wizard/WizardFooterInternal.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Wizard/WizardFooterInternal.js ***!
  \************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "WizardFooterInternal": () => (/* binding */ WizardFooterInternal)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Wizard/wizard */ "./node_modules/@patternfly/react-styles/css/components/Wizard/wizard.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");




const WizardFooterInternal = ({ onNext, onBack, onClose, isValid, firstStep, activeStep, nextButtonText, backButtonText, cancelButtonText }) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement("footer", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__["default"].wizardFooter) },
    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__.Button, { variant: _Button__WEBPACK_IMPORTED_MODULE_3__.ButtonVariant.primary, type: "submit", onClick: onNext, isDisabled: !isValid }, nextButtonText),
    !activeStep.hideBackButton && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__.Button, { variant: _Button__WEBPACK_IMPORTED_MODULE_3__.ButtonVariant.secondary, onClick: onBack, isDisabled: firstStep }, backButtonText)),
    !activeStep.hideCancelButton && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: _patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__["default"].wizardFooterCancel },
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__.Button, { variant: _Button__WEBPACK_IMPORTED_MODULE_3__.ButtonVariant.link, onClick: onClose }, cancelButtonText)))));
WizardFooterInternal.displayName = 'WizardFooterInternal';
//# sourceMappingURL=WizardFooterInternal.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Wizard/WizardHeader.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Wizard/WizardHeader.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "WizardHeader": () => (/* binding */ WizardHeader)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Wizard/wizard */ "./node_modules/@patternfly/react-styles/css/components/Wizard/wizard.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _Title__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Title */ "./node_modules/@patternfly/react-core/dist/esm/components/Title/Title.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_times_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/times-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/times-icon.js");






const WizardHeader = ({ onClose = () => undefined, title, description, hideClose, closeButtonAriaLabel, titleId, descriptionId }) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__["default"].wizardHeader) },
    !hideClose && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Button__WEBPACK_IMPORTED_MODULE_3__.Button, { variant: "plain", className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__["default"].wizardClose), "aria-label": closeButtonAriaLabel, onClick: onClose },
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_times_icon__WEBPACK_IMPORTED_MODULE_4__["default"], { "aria-hidden": "true" }))),
    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Title__WEBPACK_IMPORTED_MODULE_5__.Title, { headingLevel: "h2", size: "3xl", className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__["default"].wizardTitle), "aria-label": title, id: titleId }, title || react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, "\u00A0")),
    description && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("p", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__["default"].wizardDescription), id: descriptionId }, description))));
WizardHeader.displayName = 'WizardHeader';
//# sourceMappingURL=WizardHeader.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Wizard/WizardNav.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Wizard/WizardNav.js ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "WizardNav": () => (/* binding */ WizardNav)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Wizard/wizard */ "./node_modules/@patternfly/react-styles/css/components/Wizard/wizard.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");



const WizardNav = ({ children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, isOpen = false, returnList = false }) => {
    const innerList = react__WEBPACK_IMPORTED_MODULE_0__.createElement("ol", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__["default"].wizardNavList) }, children);
    if (returnList) {
        return innerList;
    }
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("nav", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__["default"].wizardNav, isOpen && _patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__["default"].modifiers.expanded), "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy },
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("ol", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__["default"].wizardNavList) }, children)));
};
WizardNav.displayName = 'WizardNav';
//# sourceMappingURL=WizardNav.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Wizard/WizardNavItem.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Wizard/WizardNavItem.js ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "WizardNavItem": () => (/* binding */ WizardNavItem)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Wizard/wizard */ "./node_modules/@patternfly/react-styles/css/components/Wizard/wizard.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-right-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-right-icon.js");





const WizardNavItem = (_a) => {
    var { children = null, content = '', isCurrent = false, isDisabled = false, step, onNavItemClick = () => undefined, navItemComponent = 'button', href = null, isExpandable = false } = _a, rest = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "content", "isCurrent", "isDisabled", "step", "onNavItemClick", "navItemComponent", "href", "isExpandable"]);
    const NavItemComponent = navItemComponent;
    const [isExpanded, setIsExpanded] = react__WEBPACK_IMPORTED_MODULE_0__.useState(false);
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        setIsExpanded(isCurrent);
    }, [isCurrent]);
    if (navItemComponent === 'a' && !href && "development" !== 'production') {
        // eslint-disable-next-line no-console
        console.error('WizardNavItem: When using an anchor, please provide an href');
    }
    const btnProps = {
        disabled: isDisabled
    };
    const linkProps = {
        tabIndex: isDisabled ? -1 : undefined,
        href
    };
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_3__["default"].wizardNavItem, isExpandable && _patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.expandable, isExpandable && isExpanded && _patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.expanded) },
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(NavItemComponent, Object.assign({}, rest, (navItemComponent === 'a' ? Object.assign({}, linkProps) : Object.assign({}, btnProps)), { onClick: () => (isExpandable ? setIsExpanded(!isExpanded || isCurrent) : onNavItemClick(step)), className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_3__["default"].wizardNavLink, isCurrent && _patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.current, isDisabled && _patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.disabled), "aria-disabled": isDisabled ? true : null, "aria-current": isCurrent && !children ? 'step' : false }, (isExpandable && { 'aria-expanded': isExpanded })), isExpandable ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_3__["default"].wizardNavLinkText) }, content),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_3__["default"].wizardNavLinkToggle) },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_3__["default"].wizardNavLinkToggleIcon) },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_4__["default"], null))))) : (content)),
        children));
};
WizardNavItem.displayName = 'WizardNavItem';
//# sourceMappingURL=WizardNavItem.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/components/Wizard/WizardToggle.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/components/Wizard/WizardToggle.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "WizardToggle": () => (/* binding */ WizardToggle)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Wizard/wizard */ "./node_modules/@patternfly/react-styles/css/components/Wizard/wizard.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-right-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-right-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_caret_down_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/caret-down-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/caret-down-icon.js");
/* harmony import */ var _WizardBody__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./WizardBody */ "./node_modules/@patternfly/react-core/dist/esm/components/Wizard/WizardBody.js");






const WizardToggle = ({ isNavOpen, onNavToggle, nav, steps, activeStep, children, hasNoBodyPadding = false, 'aria-label': ariaLabel = 'Wizard Toggle', mainAriaLabelledBy = null, mainAriaLabel = null, isInPage = true }) => {
    let activeStepIndex;
    let activeStepName;
    let activeStepSubName;
    for (let i = 0; i < steps.length; i++) {
        if ((activeStep.id && steps[i].id === activeStep.id) || steps[i].name === activeStep.name) {
            activeStepIndex = i + 1;
            activeStepName = steps[i].name;
            break;
        }
        else if (steps[i].steps) {
            for (const step of steps[i].steps) {
                if ((activeStep.id && step.id === activeStep.id) || step.name === activeStep.name) {
                    activeStepIndex = i + 1;
                    activeStepName = steps[i].name;
                    activeStepSubName = step.name;
                    break;
                }
            }
        }
    }
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", { onClick: () => onNavToggle(!isNavOpen), className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__["default"].wizardToggle, isNavOpen && 'pf-m-expanded'), "aria-label": ariaLabel, "aria-expanded": isNavOpen },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__["default"].wizardToggleList) },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__["default"].wizardToggleListItem) },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__["default"].wizardToggleNum) }, activeStepIndex),
                    " ",
                    activeStepName,
                    activeStepSubName && react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_right_icon__WEBPACK_IMPORTED_MODULE_3__["default"], { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__["default"].wizardToggleSeparator), "aria-hidden": "true" })),
                activeStepSubName && react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__["default"].wizardToggleListItem) }, activeStepSubName)),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__["default"].wizardToggleIcon) },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_caret_down_icon__WEBPACK_IMPORTED_MODULE_4__["default"], { "aria-hidden": "true" }))),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__["default"].wizardOuterWrap) },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Wizard_wizard__WEBPACK_IMPORTED_MODULE_2__["default"].wizardInnerWrap) },
                nav(isNavOpen),
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_WizardBody__WEBPACK_IMPORTED_MODULE_5__.WizardBody, { mainComponent: isInPage ? 'div' : 'main', "aria-label": mainAriaLabel, "aria-labelledby": mainAriaLabelledBy, hasNoBodyPadding: hasNoBodyPadding }, activeStep.component)),
            children)));
};
WizardToggle.displayName = 'WizardToggle';
//# sourceMappingURL=WizardToggle.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/FocusTrap/FocusTrap.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/FocusTrap/FocusTrap.js ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "FocusTrap": () => (/* binding */ FocusTrap)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var focus_trap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! focus-trap */ "./node_modules/focus-trap/dist/focus-trap.esm.js");



class FocusTrap extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor(props) {
        super(props);
        this.divRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        if (typeof document !== 'undefined') {
            this.previouslyFocusedElement = document.activeElement;
        }
    }
    componentDidMount() {
        // We need to hijack the returnFocusOnDeactivate option,
        // because React can move focus into the element before we arrived at
        // this lifecycle hook (e.g. with autoFocus inputs). So the component
        // captures the previouslyFocusedElement in componentWillMount,
        // then (optionally) returns focus to it in componentWillUnmount.
        this.focusTrap = (0,focus_trap__WEBPACK_IMPORTED_MODULE_1__.createFocusTrap)(this.divRef.current, Object.assign(Object.assign({}, this.props.focusTrapOptions), { returnFocusOnDeactivate: false }));
        if (this.props.active) {
            this.focusTrap.activate();
        }
        if (this.props.paused) {
            this.focusTrap.pause();
        }
    }
    componentDidUpdate(prevProps) {
        if (prevProps.active && !this.props.active) {
            this.focusTrap.deactivate();
        }
        else if (!prevProps.active && this.props.active) {
            this.focusTrap.activate();
        }
        if (prevProps.paused && !this.props.paused) {
            this.focusTrap.unpause();
        }
        else if (!prevProps.paused && this.props.paused) {
            this.focusTrap.pause();
        }
    }
    componentWillUnmount() {
        this.focusTrap.deactivate();
        if (this.props.focusTrapOptions.returnFocusOnDeactivate !== false &&
            this.previouslyFocusedElement &&
            this.previouslyFocusedElement.focus) {
            this.previouslyFocusedElement.focus({ preventScroll: this.props.preventScrollOnDeactivate });
        }
    }
    render() {
        // eslint-disable-next-line @typescript-eslint/no-unused-vars
        const _a = this.props, { children, className, focusTrapOptions, active, paused, preventScrollOnDeactivate } = _a, rest = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["children", "className", "focusTrapOptions", "active", "paused", "preventScrollOnDeactivate"]);
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({ ref: this.divRef, className: className }, rest), children));
    }
}
FocusTrap.displayName = 'FocusTrap';
FocusTrap.defaultProps = {
    active: true,
    paused: false,
    focusTrapOptions: {},
    preventScrollOnDeactivate: false
};
//# sourceMappingURL=FocusTrap.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/GenerateId/GenerateId.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/GenerateId/GenerateId.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "GenerateId": () => (/* binding */ GenerateId)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/** This Component can be used to wrap a functional component in order to generate a random ID
 * Example of how to use this component
 *
 * const Component = ({id}: {id: string}) => (
 *  <GenerateId>{randomId => (
 *     <div id={id || randomId}>
 *       div with random ID
 *     </div>
 *   )}
 *  </GenerateId>
 *  );
 */

let currentId = 0;
class GenerateId extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor() {
        super(...arguments);
        this.id = `${this.props.prefix}${currentId++}`;
    }
    render() {
        return this.props.children(this.id);
    }
}
GenerateId.displayName = 'GenerateId';
GenerateId.defaultProps = {
    prefix: 'pf-random-id-'
};
//# sourceMappingURL=GenerateId.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/KeyboardHandler.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/KeyboardHandler.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "handleArrows": () => (/* binding */ handleArrows),
/* harmony export */   "setTabIndex": () => (/* binding */ setTabIndex),
/* harmony export */   "KeyboardHandler": () => (/* binding */ KeyboardHandler)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./util */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");


/**
 * This function is a helper for handling basic arrow keyboard interactions. If a component already has its own key handler and event start up/tear down, this function may be easier to integrate in over the full component.
 *
 * @param {event} event Event triggered by the keyboard
 * @param {element[]} navigableElements Valid traversable elements of the container
 * @param {function} isActiveElement Callback to determine if a given element from the navigable elements array is the active element of the page
 * @param {function} getFocusableElement Callback returning the focusable element of a given element from the navigable elements array
 * @param {string[]} validSiblingTags Valid sibling tags that horizontal arrow handling will focus
 * @param {boolean} noVerticalArrowHandling Flag indicating that the included vertical arrow key handling should be ignored
 * @param {boolean} noHorizontalArrowHandling Flag indicating that the included horizontal arrow key handling should be ignored
 * @param {boolean} updateTabIndex Flag indicating that the tabIndex of the currently focused element and next focused element should be updated, in the case of using a roving tabIndex
 * @param {boolean} onlyTraverseSiblings Flag indicating that next focusable element of a horizontal movement will be this element's sibling
 */
const handleArrows = (event, navigableElements, isActiveElement = element => document.activeElement.contains(element), getFocusableElement = element => element, validSiblingTags = ['A', 'BUTTON', 'INPUT'], noVerticalArrowHandling = false, noHorizontalArrowHandling = false, updateTabIndex = true, onlyTraverseSiblings = true) => {
    const activeElement = document.activeElement;
    const key = event.key;
    let moveTarget = null;
    // Handle vertical arrow keys. If noVerticalArrowHandling is passed, skip this block
    if (!noVerticalArrowHandling) {
        if (['ArrowUp', 'ArrowDown'].includes(key)) {
            event.preventDefault();
            event.stopImmediatePropagation(); // For menus in menus
            // Traverse navigableElements to find the element which is currently active
            let currentIndex = -1;
            // while (currentIndex === -1) {
            navigableElements.forEach((element, index) => {
                if (isActiveElement(element)) {
                    // Once found, move up or down the array by 1. Determined by the vertical arrow key direction
                    let increment = 0;
                    // keep increasing the increment until you've tried the whole navigableElement
                    while (!moveTarget && increment < navigableElements.length && increment * -1 < navigableElements.length) {
                        key === 'ArrowUp' ? increment-- : increment++;
                        currentIndex = index + increment;
                        if (currentIndex >= navigableElements.length) {
                            currentIndex = 0;
                        }
                        if (currentIndex < 0) {
                            currentIndex = navigableElements.length - 1;
                        }
                        // Set the next target element (undefined if none found)
                        moveTarget = getFocusableElement(navigableElements[currentIndex]);
                    }
                }
            });
            // }
        }
    }
    // Handle horizontal arrow keys. If noHorizontalArrowHandling is passed, skip this block
    if (!noHorizontalArrowHandling) {
        if (['ArrowLeft', 'ArrowRight'].includes(key)) {
            event.preventDefault();
            event.stopImmediatePropagation(); // For menus in menus
            let currentIndex = -1;
            navigableElements.forEach((element, index) => {
                if (isActiveElement(element)) {
                    const activeRow = navigableElements[index].querySelectorAll(validSiblingTags.join(',')); // all focusable elements in my row
                    if (!activeRow.length || onlyTraverseSiblings) {
                        let nextSibling = activeElement;
                        // While a sibling exists, check each sibling to determine if it should be focussed
                        while (nextSibling) {
                            // Set the next checked sibling, determined by the horizontal arrow key direction
                            nextSibling = key === 'ArrowLeft' ? nextSibling.previousElementSibling : nextSibling.nextElementSibling;
                            if (nextSibling) {
                                if (validSiblingTags.includes(nextSibling.tagName)) {
                                    // If the sibling's tag is included in validSiblingTags, set the next target element and break the loop
                                    moveTarget = nextSibling;
                                    break;
                                }
                                // If the sibling's tag is not valid, skip to the next sibling if possible
                            }
                        }
                    }
                    else {
                        activeRow.forEach((focusableElement, index) => {
                            if (event.target === focusableElement) {
                                // Once found, move up or down the array by 1. Determined by the vertical arrow key direction
                                const increment = key === 'ArrowLeft' ? -1 : 1;
                                currentIndex = index + increment;
                                if (currentIndex >= activeRow.length) {
                                    currentIndex = 0;
                                }
                                if (currentIndex < 0) {
                                    currentIndex = activeRow.length - 1;
                                }
                                // Set the next target element
                                moveTarget = activeRow[currentIndex];
                            }
                        });
                    }
                }
            });
        }
    }
    if (moveTarget) {
        // If updateTabIndex is true, set the previously focussed element's tabIndex to -1 and the next focussed element's tabIndex to 0
        // This updates the tabIndex for a roving tabIndex
        if (updateTabIndex) {
            activeElement.tabIndex = -1;
            moveTarget.tabIndex = 0;
        }
        // If a move target has been set by either arrow handler, focus that target
        moveTarget.focus();
    }
};
/**
 * This function is a helper for setting the initial tabIndexes in a roving tabIndex
 *
 * @param {HTMLElement[]} options Array of elements which should have a tabIndex of -1, except for the first element which will have a tabIndex of 0
 */
const setTabIndex = (options) => {
    if (options && options.length > 0) {
        // Iterate the options and set the tabIndex to -1 on every option
        options.forEach((option) => {
            option.tabIndex = -1;
        });
        // Manually set the tabIndex of the first option to 0
        options[0].tabIndex = 0;
    }
};
class KeyboardHandler extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor() {
        super(...arguments);
        this.keyHandler = (event) => {
            const { isEventFromContainer } = this.props;
            // If the passed keyboard event is not from the container, ignore the event by returning
            if (isEventFromContainer ? !isEventFromContainer(event) : !this._isEventFromContainer(event)) {
                return;
            }
            const { isActiveElement, getFocusableElement, noVerticalArrowHandling, noHorizontalArrowHandling, noEnterHandling, noSpaceHandling, updateTabIndex, validSiblingTags, additionalKeyHandler, createNavigableElements } = this.props;
            // Pass the event off to be handled by any custom handler
            additionalKeyHandler && additionalKeyHandler(event);
            // Initalize navigableElements from the createNavigableElements callback
            const navigableElements = createNavigableElements();
            if (!navigableElements) {
                // eslint-disable-next-line no-console
                console.warn('No navigable elements have been passed to the KeyboardHandler. Keyboard navigation provided by this component will be ignored.');
                return;
            }
            const key = event.key;
            // Handle enter key. If noEnterHandling is passed, skip this block
            if (!noEnterHandling) {
                if (key === 'Enter') {
                    event.preventDefault();
                    event.stopImmediatePropagation(); // For menus in menus
                    document.activeElement.click();
                }
            }
            // Handle space key. If noSpaceHandling is passed, skip this block
            if (!noSpaceHandling) {
                if (key === ' ') {
                    event.preventDefault();
                    event.stopImmediatePropagation(); // For menus in menus
                    document.activeElement.click();
                }
            }
            // Inject helper handler for arrow navigation
            handleArrows(event, navigableElements, isActiveElement, getFocusableElement, validSiblingTags, noVerticalArrowHandling, noHorizontalArrowHandling, updateTabIndex);
        };
        this._isEventFromContainer = (event) => {
            const { containerRef } = this.props;
            return containerRef.current && containerRef.current.contains(event.target);
        };
    }
    componentDidMount() {
        if (_util__WEBPACK_IMPORTED_MODULE_1__.canUseDOM) {
            window.addEventListener('keydown', this.keyHandler);
        }
    }
    componentWillUnmount() {
        if (_util__WEBPACK_IMPORTED_MODULE_1__.canUseDOM) {
            window.removeEventListener('keydown', this.keyHandler);
        }
    }
    render() {
        return null;
    }
}
KeyboardHandler.displayName = 'KeyboardHandler';
KeyboardHandler.defaultProps = {
    containerRef: null,
    createNavigableElements: () => null,
    isActiveElement: (navigableElement) => document.activeElement === navigableElement,
    getFocusableElement: (navigableElement) => navigableElement,
    validSiblingTags: ['BUTTON', 'A'],
    updateTabIndex: true,
    noHorizontalArrowHandling: false,
    noVerticalArrowHandling: false,
    noEnterHandling: false,
    noSpaceHandling: false
};
//# sourceMappingURL=KeyboardHandler.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js":
/*!***************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getOUIAProps": () => (/* binding */ getOUIAProps),
/* harmony export */   "useOUIAProps": () => (/* binding */ useOUIAProps),
/* harmony export */   "useOUIAId": () => (/* binding */ useOUIAId),
/* harmony export */   "getDefaultOUIAId": () => (/* binding */ getDefaultOUIAId)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");

let uid = 0;
const ouiaPrefix = 'OUIA-Generated-';
const ouiaIdByRoute = {};
/** Get props to conform to OUIA spec
 *
 * For functional components, use the useOUIAProps function instead
 *
 * In class based components, create a state variable ouiaStateId to create a static generated ID:
 * state = {
 *  ouiaStateId: getDefaultOUIAId(Chip.displayName)
 * }
 * This generated ID should remain alive as long as the component is not unmounted.
 *
 * Then add the attributes to the component
 * {...getOUIAProps('OverflowChip', this.props.ouiaId !== undefined ? this.props.ouiaId : this.state.ouiaStateId)}
 *
 * @param {string} componentType OUIA component type
 * @param {number|string} id OUIA component id
 * @param {boolean} ouiaSafe false if in animation
 */
function getOUIAProps(componentType, id, ouiaSafe = true) {
    return {
        'data-ouia-component-type': `PF4/${componentType}`,
        'data-ouia-safe': ouiaSafe,
        'data-ouia-component-id': id
    };
}
/**
 * Hooks version of the getOUIAProps function that also memoizes the generated ID
 * Can only be used in functional components
 *
 * @param {string} componentType OUIA component type
 * @param {number|string} id OUIA component id
 * @param {boolean} ouiaSafe false if in animation
 * @param {string} variant Optional variant to add to the generated ID
 */
const useOUIAProps = (componentType, id, ouiaSafe = true, variant) => ({
    'data-ouia-component-type': `PF4/${componentType}`,
    'data-ouia-safe': ouiaSafe,
    'data-ouia-component-id': useOUIAId(componentType, id, variant)
});
/**
 * Returns the ID or the memoized generated ID
 *
 * @param {string} componentType OUIA component type
 * @param {number|string} id OUIA component id
 * @param {string} variant Optional variant to add to the generated ID
 */
const useOUIAId = (componentType, id, variant) => {
    if (id !== undefined) {
        return id;
    }
    return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => getDefaultOUIAId(componentType, variant), [componentType, variant]);
};
/**
 * Returns a generated id based on the URL location
 *
 * @param {string} componentType OUIA component type
 * @param {string} variant Optional variant to add to the generated ID
 */
function getDefaultOUIAId(componentType, variant) {
    /*
    ouiaIdByRoute = {
      [route+componentType]: [number]
    }
    */
    try {
        let key;
        if (typeof window !== 'undefined') {
            // browser environments
            key = `${window.location.href}-${componentType}-${variant || ''}`;
        }
        else {
            // node/SSR environments
            key = `${componentType}-${variant || ''}`;
        }
        if (!ouiaIdByRoute[key]) {
            ouiaIdByRoute[key] = 0;
        }
        return `${ouiaPrefix}${componentType}-${variant ? `${variant}-` : ''}${++ouiaIdByRoute[key]}`;
    }
    catch (exception) {
        return `${ouiaPrefix}${componentType}-${variant ? `${variant}-` : ''}${++uid}`;
    }
}
//# sourceMappingURL=ouia.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/FindRefWrapper.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/FindRefWrapper.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "FindRefWrapper": () => (/* binding */ FindRefWrapper)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");


/**
 * This component wraps any ReactNode and finds its ref
 * It has to be a class for findDOMNode to work
 * Ideally, all components used as triggers/toggles are either:
 * - class based components we can assign our own ref to
 * - functional components that have forwardRef implemented
 * However, there is no guarantee that is what will get passed in as trigger/toggle in the case of tooltips and popovers
 */
class FindRefWrapper extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    componentDidMount() {
        // eslint-disable-next-line react/no-find-dom-node
        const root = react_dom__WEBPACK_IMPORTED_MODULE_1__.findDOMNode(this);
        this.props.onFoundRef(root);
    }
    render() {
        return this.props.children || null;
    }
}
FindRefWrapper.displayName = 'FindRefWrapper';
//# sourceMappingURL=FindRefWrapper.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/Popper.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/Popper.js ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getOpacityTransition": () => (/* binding */ getOpacityTransition),
/* harmony export */   "Popper": () => (/* binding */ Popper)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var _FindRefWrapper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./FindRefWrapper */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/FindRefWrapper.js");
/* harmony import */ var _thirdparty_react_popper_usePopper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./thirdparty/react-popper/usePopper */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/react-popper/usePopper.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Popper_Popper_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Popper/Popper.css */ "./node_modules/@patternfly/react-styles/css/components/Popper/Popper.css");






const hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' };
const getOppositePlacement = (placement) => placement.replace(/left|right|bottom|top/g, (matched) => hash[matched]);
const getOpacityTransition = (animationDuration) => `opacity ${animationDuration}ms cubic-bezier(.54, 1.5, .38, 1.11)`;
const Popper = ({ trigger, popper, popperMatchesTriggerWidth = true, direction = 'down', position = 'left', placement, appendTo = () => document.body, zIndex = 9999, isVisible = true, positionModifiers, distance = 0, onMouseEnter, onMouseLeave, onFocus, onBlur, onDocumentClick, onTriggerClick, onTriggerEnter, onPopperClick, onDocumentKeyDown, enableFlip = true, flipBehavior = 'flip', reference }) => {
    const [triggerElement, setTriggerElement] = react__WEBPACK_IMPORTED_MODULE_0__.useState(null);
    const [refElement, setRefElement] = react__WEBPACK_IMPORTED_MODULE_0__.useState(null);
    const [popperElement, setPopperElement] = react__WEBPACK_IMPORTED_MODULE_0__.useState(null);
    const [ready, setReady] = react__WEBPACK_IMPORTED_MODULE_0__.useState(false);
    const refOrTrigger = refElement || triggerElement;
    const onDocumentClickCallback = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(event => onDocumentClick(event, refOrTrigger, popperElement), [
        isVisible,
        triggerElement,
        refElement,
        popperElement,
        onDocumentClick
    ]);
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        setReady(true);
    }, []);
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        if (reference) {
            if (reference.current) {
                setRefElement(reference.current);
            }
            else if (typeof reference === 'function') {
                setRefElement(reference());
            }
        }
    }, [reference]);
    const addEventListener = (listener, element, event) => {
        if (listener && element) {
            element.addEventListener(event, listener);
        }
    };
    const removeEventListener = (listener, element, event) => {
        if (listener && element) {
            element.removeEventListener(event, listener);
        }
    };
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        addEventListener(onMouseEnter, refOrTrigger, 'mouseenter');
        addEventListener(onMouseLeave, refOrTrigger, 'mouseleave');
        addEventListener(onFocus, refOrTrigger, 'focus');
        addEventListener(onBlur, refOrTrigger, 'blur');
        addEventListener(onTriggerClick, refOrTrigger, 'click');
        addEventListener(onTriggerEnter, refOrTrigger, 'keydown');
        addEventListener(onPopperClick, popperElement, 'click');
        onDocumentClick && addEventListener(onDocumentClickCallback, document, 'click');
        addEventListener(onDocumentKeyDown, document, 'keydown');
        return () => {
            removeEventListener(onMouseEnter, refOrTrigger, 'mouseenter');
            removeEventListener(onMouseLeave, refOrTrigger, 'mouseleave');
            removeEventListener(onFocus, refOrTrigger, 'focus');
            removeEventListener(onBlur, refOrTrigger, 'blur');
            removeEventListener(onTriggerClick, refOrTrigger, 'click');
            removeEventListener(onTriggerEnter, refOrTrigger, 'keydown');
            removeEventListener(onPopperClick, popperElement, 'click');
            onDocumentClick && removeEventListener(onDocumentClickCallback, document, 'click');
            removeEventListener(onDocumentKeyDown, document, 'keydown');
        };
    }, [
        triggerElement,
        popperElement,
        onMouseEnter,
        onMouseLeave,
        onFocus,
        onBlur,
        onTriggerClick,
        onTriggerEnter,
        onPopperClick,
        onDocumentClick,
        onDocumentKeyDown,
        refElement
    ]);
    const getPlacement = () => {
        if (placement) {
            return placement;
        }
        let convertedPlacement = direction === 'up' ? 'top' : 'bottom';
        if (position !== 'center') {
            convertedPlacement = `${convertedPlacement}-${position === 'right' ? 'end' : 'start'}`;
        }
        return convertedPlacement;
    };
    const getPlacementMemo = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(getPlacement, [direction, position, placement]);
    const getOppositePlacementMemo = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => getOppositePlacement(getPlacement()), [
        direction,
        position,
        placement
    ]);
    const sameWidthMod = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => ({
        name: 'sameWidth',
        enabled: popperMatchesTriggerWidth,
        phase: 'beforeWrite',
        requires: ['computeStyles'],
        fn: ({ state }) => {
            state.styles.popper.width = `${state.rects.reference.width}px`;
        },
        effect: ({ state }) => {
            state.elements.popper.style.width = `${state.elements.reference.offsetWidth}px`;
            return () => { };
        }
    }), [popperMatchesTriggerWidth]);
    const { styles: popperStyles, attributes, forceUpdate } = (0,_thirdparty_react_popper_usePopper__WEBPACK_IMPORTED_MODULE_3__.usePopper)(refOrTrigger, popperElement, {
        placement: getPlacementMemo,
        modifiers: [
            {
                name: 'offset',
                options: {
                    offset: [0, distance]
                }
            },
            {
                name: 'preventOverflow',
                enabled: false
            },
            {
                // adds attribute [data-popper-reference-hidden] to the popper element which can be used to hide it using CSS
                name: 'hide',
                enabled: true
            },
            {
                name: 'flip',
                enabled: getPlacementMemo.startsWith('auto') || enableFlip,
                options: {
                    fallbackPlacements: flipBehavior === 'flip' ? [getOppositePlacementMemo] : flipBehavior
                }
            },
            sameWidthMod
        ]
    });
    // force update when content changes
    // https://github.com/patternfly/patternfly-react/issues/5620
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        forceUpdate && forceUpdate();
    }, [popper]);
    // Returns the CSS modifier class in order to place the Popper's arrow properly
    // Depends on the position of the Popper relative to the reference element
    const modifierFromPopperPosition = () => {
        if (attributes && attributes.popper && attributes.popper['data-popper-placement']) {
            const popperPlacement = attributes.popper['data-popper-placement'];
            return positionModifiers[popperPlacement];
        }
        return positionModifiers.top;
    };
    const menuWithPopper = react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(popper, Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(popper.props && popper.props.className, positionModifiers && modifierFromPopperPosition()), style: Object.assign(Object.assign(Object.assign({}, ((popper.props && popper.props.style) || {})), popperStyles.popper), { zIndex }) }, attributes.popper));
    const getTarget = () => {
        if (typeof appendTo === 'function') {
            return appendTo();
        }
        return appendTo;
    };
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
        !reference && trigger && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FindRefWrapper__WEBPACK_IMPORTED_MODULE_5__.FindRefWrapper, { onFoundRef: (foundRef) => setTriggerElement(foundRef) }, trigger)),
        ready &&
            isVisible &&
            react_dom__WEBPACK_IMPORTED_MODULE_1__.createPortal(react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FindRefWrapper__WEBPACK_IMPORTED_MODULE_5__.FindRefWrapper, { onFoundRef: (foundRef) => setPopperElement(foundRef) }, menuWithPopper), getTarget())));
};
Popper.displayName = 'Popper';
//# sourceMappingURL=Popper.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/contains.js":
/*!******************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/contains.js ***!
  \******************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ contains)
/* harmony export */ });
// @ts-nocheck
/**
 * @param parent
 * @param child
 */
function contains(parent, child) {
    // $FlowFixMe: hasOwnProperty doesn't seem to work in tests
    const isShadow = Boolean(child.getRootNode && child.getRootNode().host);
    // First, attempt with faster native method
    if (parent.contains(child)) {
        return true;
    } // then fallback to custom implementation with Shadow DOM support
    else if (isShadow) {
        let next = child;
        do {
            if (next && parent.isSameNode(next)) {
                return true;
            }
            // $FlowFixMe: need a better way to handle this...
            next = next.parentNode || next.host;
        } while (next);
    }
    // Give up, the result is false
    return false;
}
//# sourceMappingURL=contains.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getBoundingClientRect.js":
/*!*******************************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getBoundingClientRect.js ***!
  \*******************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ getBoundingClientRect)
/* harmony export */ });
/**
 * @param element
 */
function getBoundingClientRect(element) {
    const rect = element.getBoundingClientRect();
    return {
        width: rect.width,
        height: rect.height,
        top: rect.top,
        right: rect.right,
        bottom: rect.bottom,
        left: rect.left,
        x: rect.left,
        y: rect.top
    };
}
//# sourceMappingURL=getBoundingClientRect.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getClippingRect.js":
/*!*************************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getClippingRect.js ***!
  \*************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ getClippingRect)
/* harmony export */ });
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../enums */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/enums.js");
/* harmony import */ var _getViewportRect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getViewportRect */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getViewportRect.js");
/* harmony import */ var _getDocumentRect__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./getDocumentRect */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getDocumentRect.js");
/* harmony import */ var _listScrollParents__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./listScrollParents */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/listScrollParents.js");
/* harmony import */ var _getOffsetParent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./getOffsetParent */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getOffsetParent.js");
/* harmony import */ var _getDocumentElement__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./getDocumentElement */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getDocumentElement.js");
/* harmony import */ var _getComputedStyle__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./getComputedStyle */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getComputedStyle.js");
/* harmony import */ var _instanceOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./instanceOf */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/instanceOf.js");
/* harmony import */ var _getBoundingClientRect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getBoundingClientRect */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getBoundingClientRect.js");
/* harmony import */ var _getParentNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./getParentNode */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getParentNode.js");
/* harmony import */ var _contains__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./contains */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/contains.js");
/* harmony import */ var _getNodeName__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./getNodeName */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getNodeName.js");
/* harmony import */ var _utils_rectToClientRect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/rectToClientRect */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/rectToClientRect.js");













/**
 * @param element
 */
function getInnerBoundingClientRect(element) {
    const rect = (0,_getBoundingClientRect__WEBPACK_IMPORTED_MODULE_0__["default"])(element);
    rect.top = rect.top + element.clientTop;
    rect.left = rect.left + element.clientLeft;
    rect.bottom = rect.top + element.clientHeight;
    rect.right = rect.left + element.clientWidth;
    rect.width = element.clientWidth;
    rect.height = element.clientHeight;
    rect.x = rect.left;
    rect.y = rect.top;
    return rect;
}
/**
 * @param element
 * @param clippingParent
 */
function getClientRectFromMixedType(element, clippingParent) {
    return clippingParent === _enums__WEBPACK_IMPORTED_MODULE_1__.viewport
        ? (0,_utils_rectToClientRect__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_getViewportRect__WEBPACK_IMPORTED_MODULE_3__["default"])(element))
        : (0,_instanceOf__WEBPACK_IMPORTED_MODULE_4__.isHTMLElement)(clippingParent)
            ? getInnerBoundingClientRect(clippingParent)
            : (0,_utils_rectToClientRect__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_getDocumentRect__WEBPACK_IMPORTED_MODULE_5__["default"])((0,_getDocumentElement__WEBPACK_IMPORTED_MODULE_6__["default"])(element)));
}
// A "clipping parent" is an overflowable container with the characteristic of
// clipping (or hiding) overflowing elements with a position different from
// `initial`
/**
 * @param element
 */
function getClippingParents(element) {
    const clippingParents = (0,_listScrollParents__WEBPACK_IMPORTED_MODULE_7__["default"])((0,_getParentNode__WEBPACK_IMPORTED_MODULE_8__["default"])(element));
    const canEscapeClipping = ['absolute', 'fixed'].indexOf((0,_getComputedStyle__WEBPACK_IMPORTED_MODULE_9__["default"])(element).position) >= 0;
    const clipperElement = canEscapeClipping && (0,_instanceOf__WEBPACK_IMPORTED_MODULE_4__.isHTMLElement)(element) ? (0,_getOffsetParent__WEBPACK_IMPORTED_MODULE_10__["default"])(element) : element;
    if (!(0,_instanceOf__WEBPACK_IMPORTED_MODULE_4__.isElement)(clipperElement)) {
        return [];
    }
    // $FlowFixMe: https://github.com/facebook/flow/issues/1414
    return clippingParents.filter(clippingParent => (0,_instanceOf__WEBPACK_IMPORTED_MODULE_4__.isElement)(clippingParent) && (0,_contains__WEBPACK_IMPORTED_MODULE_11__["default"])(clippingParent, clipperElement) && (0,_getNodeName__WEBPACK_IMPORTED_MODULE_12__["default"])(clippingParent) !== 'body');
}
// Gets the maximum area that the element is visible in due to any number of
// clipping parents
/**
 * @param element
 * @param boundary
 * @param rootBoundary
 */
function getClippingRect(element, boundary, rootBoundary) {
    const mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
    const clippingParents = [...mainClippingParents, rootBoundary];
    const firstClippingParent = clippingParents[0];
    const clippingRect = clippingParents.reduce((accRect, clippingParent) => {
        const rect = getClientRectFromMixedType(element, clippingParent);
        accRect.top = Math.max(rect.top, accRect.top);
        accRect.right = Math.min(rect.right, accRect.right);
        accRect.bottom = Math.min(rect.bottom, accRect.bottom);
        accRect.left = Math.max(rect.left, accRect.left);
        return accRect;
    }, getClientRectFromMixedType(element, firstClippingParent));
    clippingRect.width = clippingRect.right - clippingRect.left;
    clippingRect.height = clippingRect.bottom - clippingRect.top;
    clippingRect.x = clippingRect.left;
    clippingRect.y = clippingRect.top;
    return clippingRect;
}
//# sourceMappingURL=getClippingRect.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getCompositeRect.js":
/*!**************************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getCompositeRect.js ***!
  \**************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ getCompositeRect)
/* harmony export */ });
/* harmony import */ var _getBoundingClientRect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getBoundingClientRect */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getBoundingClientRect.js");
/* harmony import */ var _getNodeScroll__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./getNodeScroll */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getNodeScroll.js");
/* harmony import */ var _getNodeName__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getNodeName */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getNodeName.js");
/* harmony import */ var _instanceOf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./instanceOf */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/instanceOf.js");
/* harmony import */ var _getWindowScrollBarX__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./getWindowScrollBarX */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getWindowScrollBarX.js");
/* harmony import */ var _getDocumentElement__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getDocumentElement */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getDocumentElement.js");
/* harmony import */ var _isScrollParent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./isScrollParent */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/isScrollParent.js");







// Returns the composite rect of an element relative to its offsetParent.
// Composite means it takes into account transforms as well as layout.
/**
 * @param elementOrVirtualElement
 * @param offsetParent
 * @param isFixed
 */
function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed = false) {
    const documentElement = (0,_getDocumentElement__WEBPACK_IMPORTED_MODULE_0__["default"])(offsetParent);
    const rect = (0,_getBoundingClientRect__WEBPACK_IMPORTED_MODULE_1__["default"])(elementOrVirtualElement);
    const isOffsetParentAnElement = (0,_instanceOf__WEBPACK_IMPORTED_MODULE_2__.isHTMLElement)(offsetParent);
    let scroll = { scrollLeft: 0, scrollTop: 0 };
    let offsets = { x: 0, y: 0 };
    if (isOffsetParentAnElement || (!isOffsetParentAnElement && !isFixed)) {
        if ((0,_getNodeName__WEBPACK_IMPORTED_MODULE_3__["default"])(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078
            (0,_isScrollParent__WEBPACK_IMPORTED_MODULE_4__["default"])(documentElement)) {
            scroll = (0,_getNodeScroll__WEBPACK_IMPORTED_MODULE_5__["default"])(offsetParent);
        }
        if ((0,_instanceOf__WEBPACK_IMPORTED_MODULE_2__.isHTMLElement)(offsetParent)) {
            offsets = (0,_getBoundingClientRect__WEBPACK_IMPORTED_MODULE_1__["default"])(offsetParent);
            offsets.x += offsetParent.clientLeft;
            offsets.y += offsetParent.clientTop;
        }
        else if (documentElement) {
            offsets.x = (0,_getWindowScrollBarX__WEBPACK_IMPORTED_MODULE_6__["default"])(documentElement);
        }
    }
    return {
        x: rect.left + scroll.scrollLeft - offsets.x,
        y: rect.top + scroll.scrollTop - offsets.y,
        width: rect.width,
        height: rect.height
    };
}
//# sourceMappingURL=getCompositeRect.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getComputedStyle.js":
/*!**************************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getComputedStyle.js ***!
  \**************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ getComputedStyle)
/* harmony export */ });
/* harmony import */ var _getWindow__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindow */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getWindow.js");
// @ts-nocheck

/**
 * @param element
 */
function getComputedStyle(element) {
    return (0,_getWindow__WEBPACK_IMPORTED_MODULE_0__["default"])(element).getComputedStyle(element);
}
//# sourceMappingURL=getComputedStyle.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getDocumentElement.js":
/*!****************************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getDocumentElement.js ***!
  \****************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ getDocumentElement)
/* harmony export */ });
/* harmony import */ var _instanceOf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./instanceOf */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/instanceOf.js");
// @ts-nocheck

/**
 * @param element
 */
function getDocumentElement(element) {
    // $FlowFixMe: assume body is always available
    return ((0,_instanceOf__WEBPACK_IMPORTED_MODULE_0__.isElement)(element) ? element.ownerDocument : element.document).documentElement;
}
//# sourceMappingURL=getDocumentElement.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getDocumentRect.js":
/*!*************************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getDocumentRect.js ***!
  \*************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ getDocumentRect)
/* harmony export */ });
/* harmony import */ var _getDocumentElement__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getDocumentElement */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getDocumentElement.js");
/* harmony import */ var _getComputedStyle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getComputedStyle */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getComputedStyle.js");
/* harmony import */ var _getWindowScrollBarX__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getWindowScrollBarX */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getWindowScrollBarX.js");
/* harmony import */ var _getWindowScroll__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getWindowScroll */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getWindowScroll.js");




// Gets the entire size of the scrollable document area, even extending outside
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
/**
 * @param element
 */
function getDocumentRect(element) {
    const html = (0,_getDocumentElement__WEBPACK_IMPORTED_MODULE_0__["default"])(element);
    const winScroll = (0,_getWindowScroll__WEBPACK_IMPORTED_MODULE_1__["default"])(element);
    const body = element.ownerDocument.body;
    const width = Math.max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
    const height = Math.max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
    let x = -winScroll.scrollLeft + (0,_getWindowScrollBarX__WEBPACK_IMPORTED_MODULE_2__["default"])(element);
    const y = -winScroll.scrollTop;
    if ((0,_getComputedStyle__WEBPACK_IMPORTED_MODULE_3__["default"])(body || html).direction === 'rtl') {
        x += Math.max(html.clientWidth, body ? body.clientWidth : 0) - width;
    }
    return { width, height, x, y };
}
//# sourceMappingURL=getDocumentRect.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getHTMLElementScroll.js":
/*!******************************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getHTMLElementScroll.js ***!
  \******************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ getHTMLElementScroll)
/* harmony export */ });
// @ts-nocheck
/**
 * @param element
 */
function getHTMLElementScroll(element) {
    return {
        scrollLeft: element.scrollLeft,
        scrollTop: element.scrollTop
    };
}
//# sourceMappingURL=getHTMLElementScroll.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getLayoutRect.js":
/*!***********************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getLayoutRect.js ***!
  \***********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ getLayoutRect)
/* harmony export */ });
// Returns the layout rect of an element relative to its offsetParent. Layout
// means it doesn't take into account transforms.
/**
 * @param element
 */
function getLayoutRect(element) {
    return {
        x: element.offsetLeft,
        y: element.offsetTop,
        width: element.offsetWidth,
        height: element.offsetHeight
    };
}
//# sourceMappingURL=getLayoutRect.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getNodeName.js":
/*!*********************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getNodeName.js ***!
  \*********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ getNodeName)
/* harmony export */ });
/**
 * @param element
 */
function getNodeName(element) {
    return element ? (element.nodeName || '').toLowerCase() : null;
}
//# sourceMappingURL=getNodeName.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getNodeScroll.js":
/*!***********************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getNodeScroll.js ***!
  \***********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ getNodeScroll)
/* harmony export */ });
/* harmony import */ var _getWindowScroll__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getWindowScroll */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getWindowScroll.js");
/* harmony import */ var _getWindow__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindow */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getWindow.js");
/* harmony import */ var _instanceOf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./instanceOf */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/instanceOf.js");
/* harmony import */ var _getHTMLElementScroll__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getHTMLElementScroll */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getHTMLElementScroll.js");
// @ts-nocheck




/**
 * @param node
 */
function getNodeScroll(node) {
    if (node === (0,_getWindow__WEBPACK_IMPORTED_MODULE_0__["default"])(node) || !(0,_instanceOf__WEBPACK_IMPORTED_MODULE_1__.isHTMLElement)(node)) {
        return (0,_getWindowScroll__WEBPACK_IMPORTED_MODULE_2__["default"])(node);
    }
    else {
        return (0,_getHTMLElementScroll__WEBPACK_IMPORTED_MODULE_3__["default"])(node);
    }
}
//# sourceMappingURL=getNodeScroll.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getOffsetParent.js":
/*!*************************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getOffsetParent.js ***!
  \*************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ getOffsetParent)
/* harmony export */ });
/* harmony import */ var _getWindow__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./getWindow */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getWindow.js");
/* harmony import */ var _getNodeName__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getNodeName */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getNodeName.js");
/* harmony import */ var _getComputedStyle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getComputedStyle */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getComputedStyle.js");
/* harmony import */ var _instanceOf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./instanceOf */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/instanceOf.js");
/* harmony import */ var _isTableElement__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./isTableElement */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/isTableElement.js");
/* harmony import */ var _getParentNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./getParentNode */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getParentNode.js");
/* harmony import */ var _getDocumentElement__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getDocumentElement */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getDocumentElement.js");
// @ts-nocheck







/**
 * @param element
 */
function getTrueOffsetParent(element) {
    if (!(0,_instanceOf__WEBPACK_IMPORTED_MODULE_0__.isHTMLElement)(element) || // https://github.com/popperjs/popper-core/issues/837
        (0,_getComputedStyle__WEBPACK_IMPORTED_MODULE_1__["default"])(element).position === 'fixed') {
        return null;
    }
    const offsetParent = element.offsetParent;
    if (offsetParent) {
        const html = (0,_getDocumentElement__WEBPACK_IMPORTED_MODULE_2__["default"])(offsetParent);
        if ((0,_getNodeName__WEBPACK_IMPORTED_MODULE_3__["default"])(offsetParent) === 'body' &&
            (0,_getComputedStyle__WEBPACK_IMPORTED_MODULE_1__["default"])(offsetParent).position === 'static' &&
            (0,_getComputedStyle__WEBPACK_IMPORTED_MODULE_1__["default"])(html).position !== 'static') {
            return html;
        }
    }
    return offsetParent;
}
// `.offsetParent` reports `null` for fixed elements, while absolute elements
// return the containing block
/**
 * @param element
 */
function getContainingBlock(element) {
    let currentNode = (0,_getParentNode__WEBPACK_IMPORTED_MODULE_4__["default"])(element);
    while ((0,_instanceOf__WEBPACK_IMPORTED_MODULE_0__.isHTMLElement)(currentNode) && ['html', 'body'].indexOf((0,_getNodeName__WEBPACK_IMPORTED_MODULE_3__["default"])(currentNode)) < 0) {
        const css = (0,_getComputedStyle__WEBPACK_IMPORTED_MODULE_1__["default"])(currentNode);
        // This is non-exhaustive but covers the most common CSS properties that
        // create a containing block.
        if (css.transform !== 'none' || css.perspective !== 'none' || (css.willChange && css.willChange !== 'auto')) {
            return currentNode;
        }
        else {
            currentNode = currentNode.parentNode;
        }
    }
    return null;
}
// Gets the closest ancestor positioned element. Handles some edge cases,
// such as table ancestors and cross browser bugs.
/**
 * @param element
 */
function getOffsetParent(element) {
    const window = (0,_getWindow__WEBPACK_IMPORTED_MODULE_5__["default"])(element);
    let offsetParent = getTrueOffsetParent(element);
    while (offsetParent && (0,_isTableElement__WEBPACK_IMPORTED_MODULE_6__["default"])(offsetParent) && (0,_getComputedStyle__WEBPACK_IMPORTED_MODULE_1__["default"])(offsetParent).position === 'static') {
        offsetParent = getTrueOffsetParent(offsetParent);
    }
    if (offsetParent && (0,_getNodeName__WEBPACK_IMPORTED_MODULE_3__["default"])(offsetParent) === 'body' && (0,_getComputedStyle__WEBPACK_IMPORTED_MODULE_1__["default"])(offsetParent).position === 'static') {
        return window;
    }
    return offsetParent || getContainingBlock(element) || window;
}
//# sourceMappingURL=getOffsetParent.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getParentNode.js":
/*!***********************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getParentNode.js ***!
  \***********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ getParentNode)
/* harmony export */ });
/* harmony import */ var _getNodeName__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getNodeName */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getNodeName.js");
/* harmony import */ var _getDocumentElement__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getDocumentElement */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getDocumentElement.js");
// @ts-nocheck


/**
 * @param element
 */
function getParentNode(element) {
    if ((0,_getNodeName__WEBPACK_IMPORTED_MODULE_0__["default"])(element) === 'html') {
        return element;
    }
    return (
    // $FlowFixMe: this is a quicker (but less type safe) way to save quite some bytes from the bundle
    element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
        element.parentNode || // DOM Element detected
        // $FlowFixMe: need a better way to handle this...
        element.host || // ShadowRoot detected
        // $FlowFixMe: HTMLElement is a Node
        (0,_getDocumentElement__WEBPACK_IMPORTED_MODULE_1__["default"])(element) // fallback
    );
}
//# sourceMappingURL=getParentNode.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getScrollParent.js":
/*!*************************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getScrollParent.js ***!
  \*************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ getScrollParent)
/* harmony export */ });
/* harmony import */ var _getParentNode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getParentNode */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getParentNode.js");
/* harmony import */ var _isScrollParent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./isScrollParent */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/isScrollParent.js");
/* harmony import */ var _getNodeName__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getNodeName */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getNodeName.js");
/* harmony import */ var _instanceOf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./instanceOf */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/instanceOf.js");
// @ts-nocheck




/**
 * @param node
 */
function getScrollParent(node) {
    if (['html', 'body', '#document'].indexOf((0,_getNodeName__WEBPACK_IMPORTED_MODULE_0__["default"])(node)) >= 0) {
        // $FlowFixMe: assume body is always available
        return node.ownerDocument.body;
    }
    if ((0,_instanceOf__WEBPACK_IMPORTED_MODULE_1__.isHTMLElement)(node) && (0,_isScrollParent__WEBPACK_IMPORTED_MODULE_2__["default"])(node)) {
        return node;
    }
    return getScrollParent((0,_getParentNode__WEBPACK_IMPORTED_MODULE_3__["default"])(node));
}
//# sourceMappingURL=getScrollParent.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getViewportRect.js":
/*!*************************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getViewportRect.js ***!
  \*************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ getViewportRect)
/* harmony export */ });
/* harmony import */ var _getWindow__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindow */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getWindow.js");
/* harmony import */ var _getDocumentElement__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getDocumentElement */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getDocumentElement.js");
/* harmony import */ var _getWindowScrollBarX__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getWindowScrollBarX */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getWindowScrollBarX.js");
// @ts-nocheck



/**
 * @param element
 */
function getViewportRect(element) {
    const win = (0,_getWindow__WEBPACK_IMPORTED_MODULE_0__["default"])(element);
    const html = (0,_getDocumentElement__WEBPACK_IMPORTED_MODULE_1__["default"])(element);
    const visualViewport = win.visualViewport;
    let width = html.clientWidth;
    let height = html.clientHeight;
    let x = 0;
    let y = 0;
    // NB: This isn't supported on iOS <= 12. If the keyboard is open, the popper
    // can be obscured underneath it.
    // Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even
    // if it isn't open, so if this isn't available, the popper will be detected
    // to overflow the bottom of the screen too early.
    if (visualViewport) {
        width = visualViewport.width;
        height = visualViewport.height;
        // Uses Layout Viewport (like Chrome; Safari does not currently)
        // In Chrome, it returns a value very close to 0 (+/-) but contains rounding
        // errors due to floating point numbers, so we need to check precision.
        // Safari returns a number <= 0, usually < -1 when pinch-zoomed
        // Feature detection fails in mobile emulation mode in Chrome.
        // Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <
        // 0.001
        // Fallback here: "Not Safari" userAgent
        if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
            x = visualViewport.offsetLeft;
            y = visualViewport.offsetTop;
        }
    }
    return {
        width,
        height,
        x: x + (0,_getWindowScrollBarX__WEBPACK_IMPORTED_MODULE_2__["default"])(element),
        y
    };
}
//# sourceMappingURL=getViewportRect.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getWindow.js":
/*!*******************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getWindow.js ***!
  \*******************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ getWindow)
/* harmony export */ });
// @ts-nocheck
/* :: import type { Window } from '../types'; */
/* :: declare function getWindow(node: Node | Window): Window; */
/**
 * @param node
 */
function getWindow(node) {
    if (node.toString() !== '[object Window]') {
        const ownerDocument = node.ownerDocument;
        return ownerDocument ? ownerDocument.defaultView : window;
    }
    return node;
}
//# sourceMappingURL=getWindow.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getWindowScroll.js":
/*!*************************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getWindowScroll.js ***!
  \*************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ getWindowScroll)
/* harmony export */ });
/* harmony import */ var _getWindow__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindow */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getWindow.js");
// @ts-nocheck

/**
 * @param node
 */
function getWindowScroll(node) {
    const win = (0,_getWindow__WEBPACK_IMPORTED_MODULE_0__["default"])(node);
    const scrollLeft = win.pageXOffset;
    const scrollTop = win.pageYOffset;
    return {
        scrollLeft,
        scrollTop
    };
}
//# sourceMappingURL=getWindowScroll.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getWindowScrollBarX.js":
/*!*****************************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getWindowScrollBarX.js ***!
  \*****************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ getWindowScrollBarX)
/* harmony export */ });
/* harmony import */ var _getBoundingClientRect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getBoundingClientRect */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getBoundingClientRect.js");
/* harmony import */ var _getDocumentElement__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getDocumentElement */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getDocumentElement.js");
/* harmony import */ var _getWindowScroll__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getWindowScroll */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getWindowScroll.js");
// @ts-nocheck



/**
 * @param element
 */
function getWindowScrollBarX(element) {
    // If <html> has a CSS width greater than the viewport, then this will be
    // incorrect for RTL.
    // Popper 1 is broken in this case and never had a bug report so let's assume
    // it's not an issue. I don't think anyone ever specifies width on <html>
    // anyway.
    // Browsers where the left scrollbar doesn't cause an issue report `0` for
    // this (e.g. Edge 2019, IE11, Safari)
    return (0,_getBoundingClientRect__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_getDocumentElement__WEBPACK_IMPORTED_MODULE_1__["default"])(element)).left + (0,_getWindowScroll__WEBPACK_IMPORTED_MODULE_2__["default"])(element).scrollLeft;
}
//# sourceMappingURL=getWindowScrollBarX.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/instanceOf.js":
/*!********************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/instanceOf.js ***!
  \********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "isElement": () => (/* binding */ isElement),
/* harmony export */   "isHTMLElement": () => (/* binding */ isHTMLElement)
/* harmony export */ });
/* harmony import */ var _getWindow__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindow */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getWindow.js");
// @ts-nocheck

/* :: declare function isElement(node: mixed): boolean %checks(node instanceof
  Element); */
/**
 * @param node
 */
function isElement(node) {
    const OwnElement = (0,_getWindow__WEBPACK_IMPORTED_MODULE_0__["default"])(node).Element;
    return node instanceof OwnElement || node instanceof Element;
}
/* :: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
  HTMLElement); */
/**
 * @param node
 */
function isHTMLElement(node) {
    const OwnElement = (0,_getWindow__WEBPACK_IMPORTED_MODULE_0__["default"])(node).HTMLElement;
    return node instanceof OwnElement || node instanceof HTMLElement;
}

//# sourceMappingURL=instanceOf.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/isScrollParent.js":
/*!************************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/isScrollParent.js ***!
  \************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ isScrollParent)
/* harmony export */ });
/* harmony import */ var _getComputedStyle__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getComputedStyle */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getComputedStyle.js");
// @ts-nocheck

/**
 * @param element
 */
function isScrollParent(element) {
    // Firefox wants us to check `-x` and `-y` variations as well
    const { overflow, overflowX, overflowY } = (0,_getComputedStyle__WEBPACK_IMPORTED_MODULE_0__["default"])(element);
    return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
}
//# sourceMappingURL=isScrollParent.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/isTableElement.js":
/*!************************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/isTableElement.js ***!
  \************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ isTableElement)
/* harmony export */ });
/* harmony import */ var _getNodeName__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getNodeName */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getNodeName.js");
// @ts-nocheck

/**
 * @param element
 */
function isTableElement(element) {
    return ['table', 'td', 'th'].indexOf((0,_getNodeName__WEBPACK_IMPORTED_MODULE_0__["default"])(element)) >= 0;
}
//# sourceMappingURL=isTableElement.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/listScrollParents.js":
/*!***************************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/listScrollParents.js ***!
  \***************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ listScrollParents)
/* harmony export */ });
/* harmony import */ var _getScrollParent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getScrollParent */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getScrollParent.js");
/* harmony import */ var _getParentNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./getParentNode */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getParentNode.js");
/* harmony import */ var _getNodeName__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getNodeName */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getNodeName.js");
/* harmony import */ var _getWindow__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getWindow */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getWindow.js");
/* harmony import */ var _isScrollParent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./isScrollParent */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/isScrollParent.js");
// @ts-nocheck





/*
given a DOM element, return the list of all scroll parents, up the list of ancesors
until we get to the top window object. This list is what we attach scroll listeners
to, because if any of these parent elements scroll, we'll need to re-calculate the
reference element's position.
*/
/**
 * @param element
 * @param list
 */
function listScrollParents(element, list = []) {
    const scrollParent = (0,_getScrollParent__WEBPACK_IMPORTED_MODULE_0__["default"])(element);
    const isBody = (0,_getNodeName__WEBPACK_IMPORTED_MODULE_1__["default"])(scrollParent) === 'body';
    const win = (0,_getWindow__WEBPACK_IMPORTED_MODULE_2__["default"])(scrollParent);
    const target = isBody
        ? [win].concat(win.visualViewport || [], (0,_isScrollParent__WEBPACK_IMPORTED_MODULE_3__["default"])(scrollParent) ? scrollParent : [])
        : scrollParent;
    const updatedList = list.concat(target);
    return isBody
        ? updatedList // $FlowFixMe: isBody tells us target will be an HTMLElement here
        : updatedList.concat(listScrollParents((0,_getParentNode__WEBPACK_IMPORTED_MODULE_4__["default"])(target)));
}
//# sourceMappingURL=listScrollParents.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/enums.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/enums.js ***!
  \*****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "top": () => (/* binding */ top),
/* harmony export */   "bottom": () => (/* binding */ bottom),
/* harmony export */   "right": () => (/* binding */ right),
/* harmony export */   "left": () => (/* binding */ left),
/* harmony export */   "auto": () => (/* binding */ auto),
/* harmony export */   "basePlacements": () => (/* binding */ basePlacements),
/* harmony export */   "start": () => (/* binding */ start),
/* harmony export */   "end": () => (/* binding */ end),
/* harmony export */   "clippingParents": () => (/* binding */ clippingParents),
/* harmony export */   "viewport": () => (/* binding */ viewport),
/* harmony export */   "popper": () => (/* binding */ popper),
/* harmony export */   "reference": () => (/* binding */ reference),
/* harmony export */   "variationPlacements": () => (/* binding */ variationPlacements),
/* harmony export */   "placements": () => (/* binding */ placements),
/* harmony export */   "beforeRead": () => (/* binding */ beforeRead),
/* harmony export */   "read": () => (/* binding */ read),
/* harmony export */   "afterRead": () => (/* binding */ afterRead),
/* harmony export */   "beforeMain": () => (/* binding */ beforeMain),
/* harmony export */   "main": () => (/* binding */ main),
/* harmony export */   "afterMain": () => (/* binding */ afterMain),
/* harmony export */   "beforeWrite": () => (/* binding */ beforeWrite),
/* harmony export */   "write": () => (/* binding */ write),
/* harmony export */   "afterWrite": () => (/* binding */ afterWrite),
/* harmony export */   "modifierPhases": () => (/* binding */ modifierPhases)
/* harmony export */ });
// @ts-nocheck
const top = 'top';
const bottom = 'bottom';
const right = 'right';
const left = 'left';
const auto = 'auto';
const basePlacements = [top, bottom, right, left];
const start = 'start';
const end = 'end';
const clippingParents = 'clippingParents';
const viewport = 'viewport';
const popper = 'popper';
const reference = 'reference';
const variationPlacements = basePlacements.reduce((acc, placement) => acc.concat([`${placement}-${start}`, `${placement}-${end}`]), []);
const placements = [...basePlacements, auto].reduce((acc, placement) => acc.concat([placement, `${placement}-${start}`, `${placement}-${end}`]), []);
// modifiers that need to read the DOM
const beforeRead = 'beforeRead';
const read = 'read';
const afterRead = 'afterRead';
// pure-logic modifiers
const beforeMain = 'beforeMain';
const main = 'main';
const afterMain = 'afterMain';
// modifier with the purpose to write to the DOM (or write into a framework state)
const beforeWrite = 'beforeWrite';
const write = 'write';
const afterWrite = 'afterWrite';
const modifierPhases = [
    beforeRead,
    read,
    afterRead,
    beforeMain,
    main,
    afterMain,
    beforeWrite,
    write,
    afterWrite
];
//# sourceMappingURL=enums.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/index.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/index.js ***!
  \*****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "afterMain": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_0__.afterMain),
/* harmony export */   "afterRead": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_0__.afterRead),
/* harmony export */   "afterWrite": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_0__.afterWrite),
/* harmony export */   "auto": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_0__.auto),
/* harmony export */   "basePlacements": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_0__.basePlacements),
/* harmony export */   "beforeMain": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_0__.beforeMain),
/* harmony export */   "beforeRead": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_0__.beforeRead),
/* harmony export */   "beforeWrite": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_0__.beforeWrite),
/* harmony export */   "bottom": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_0__.bottom),
/* harmony export */   "clippingParents": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_0__.clippingParents),
/* harmony export */   "end": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_0__.end),
/* harmony export */   "left": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_0__.left),
/* harmony export */   "main": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_0__.main),
/* harmony export */   "modifierPhases": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_0__.modifierPhases),
/* harmony export */   "placements": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_0__.placements),
/* harmony export */   "popper": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_0__.popper),
/* harmony export */   "read": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_0__.read),
/* harmony export */   "reference": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_0__.reference),
/* harmony export */   "right": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_0__.right),
/* harmony export */   "start": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_0__.start),
/* harmony export */   "top": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_0__.top),
/* harmony export */   "variationPlacements": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_0__.variationPlacements),
/* harmony export */   "viewport": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_0__.viewport),
/* harmony export */   "write": () => (/* reexport safe */ _enums__WEBPACK_IMPORTED_MODULE_0__.write),
/* harmony export */   "popperGenerator": () => (/* binding */ popperGenerator),
/* harmony export */   "createPopper": () => (/* binding */ createPopper),
/* harmony export */   "detectOverflow": () => (/* reexport safe */ _utils_detectOverflow__WEBPACK_IMPORTED_MODULE_9__["default"])
/* harmony export */ });
/* harmony import */ var _dom_utils_getCompositeRect__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./dom-utils/getCompositeRect */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getCompositeRect.js");
/* harmony import */ var _dom_utils_getLayoutRect__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./dom-utils/getLayoutRect */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getLayoutRect.js");
/* harmony import */ var _dom_utils_listScrollParents__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dom-utils/listScrollParents */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/listScrollParents.js");
/* harmony import */ var _dom_utils_getOffsetParent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./dom-utils/getOffsetParent */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getOffsetParent.js");
/* harmony import */ var _utils_orderModifiers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils/orderModifiers */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/orderModifiers.js");
/* harmony import */ var _utils_debounce__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/debounce */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/debounce.js");
/* harmony import */ var _utils_mergeByName__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils/mergeByName */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/mergeByName.js");
/* harmony import */ var _utils_detectOverflow__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/detectOverflow */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/detectOverflow.js");
/* harmony import */ var _dom_utils_instanceOf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dom-utils/instanceOf */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/instanceOf.js");
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./enums */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/enums.js");
















const INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';
const INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';
const DEFAULT_OPTIONS = {
    placement: 'bottom',
    modifiers: [],
    strategy: 'absolute'
};
/**
 * @param args
 */
function areValidElements(...args) {
    return !args.some(element => !(element && typeof element.getBoundingClientRect === 'function'));
}
/**
 * @param generatorOptions
 */
function popperGenerator(generatorOptions = {}) {
    const { defaultModifiers = [], defaultOptions = DEFAULT_OPTIONS } = generatorOptions;
    return function createPopper(reference, popper, options = defaultOptions) {
        let state = {
            placement: 'bottom',
            orderedModifiers: [],
            options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions),
            modifiersData: {},
            elements: {
                reference,
                popper
            },
            attributes: {},
            styles: {}
        };
        let effectCleanupFns = [];
        let isDestroyed = false;
        const instance = {
            state,
            setOptions(options) {
                cleanupModifierEffects();
                state.options = Object.assign(Object.assign(Object.assign({}, defaultOptions), state.options), options);
                state.scrollParents = {
                    reference: (0,_dom_utils_instanceOf__WEBPACK_IMPORTED_MODULE_1__.isElement)(reference)
                        ? (0,_dom_utils_listScrollParents__WEBPACK_IMPORTED_MODULE_2__["default"])(reference)
                        : reference.contextElement
                            ? (0,_dom_utils_listScrollParents__WEBPACK_IMPORTED_MODULE_2__["default"])(reference.contextElement)
                            : [],
                    popper: (0,_dom_utils_listScrollParents__WEBPACK_IMPORTED_MODULE_2__["default"])(popper)
                };
                // Orders the modifiers based on their dependencies and `phase`
                // properties
                const orderedModifiers = (0,_utils_orderModifiers__WEBPACK_IMPORTED_MODULE_3__["default"])((0,_utils_mergeByName__WEBPACK_IMPORTED_MODULE_4__["default"])([...defaultModifiers, ...state.options.modifiers]));
                // Strip out disabled modifiers
                state.orderedModifiers = orderedModifiers.filter(m => m.enabled);
                // Validate the provided modifiers so that the consumer will get warned
                // if one of the modifiers is invalid for any reason
                if (false /* __DEV__*/) {}
                runModifierEffects();
                return instance.update();
            },
            // Sync update – it will always be executed, even if not necessary. This
            // is useful for low frequency updates where sync behavior simplifies the
            // logic.
            // For high frequency updates (e.g. `resize` and `scroll` events), always
            // prefer the async Popper#update method
            forceUpdate() {
                if (isDestroyed) {
                    return;
                }
                const { reference, popper } = state.elements;
                // Don't proceed if `reference` or `popper` are not valid elements
                // anymore
                if (!areValidElements(reference, popper)) {
                    if (false /* __DEV__*/) {}
                    return;
                }
                // Store the reference and popper rects to be read by modifiers
                state.rects = {
                    reference: (0,_dom_utils_getCompositeRect__WEBPACK_IMPORTED_MODULE_5__["default"])(reference, (0,_dom_utils_getOffsetParent__WEBPACK_IMPORTED_MODULE_6__["default"])(popper), state.options.strategy === 'fixed'),
                    popper: (0,_dom_utils_getLayoutRect__WEBPACK_IMPORTED_MODULE_7__["default"])(popper)
                };
                // Modifiers have the ability to reset the current update cycle. The
                // most common use case for this is the `flip` modifier changing the
                // placement, which then needs to re-run all the modifiers, because the
                // logic was previously ran for the previous placement and is therefore
                // stale/incorrect
                state.reset = false;
                state.placement = state.options.placement;
                // On each update cycle, the `modifiersData` property for each modifier
                // is filled with the initial data specified by the modifier. This means
                // it doesn't persist and is fresh on each update.
                // To ensure persistent data, use `${name}#persistent`
                state.orderedModifiers.forEach(modifier => (state.modifiersData[modifier.name] = Object.assign({}, modifier.data)));
                let __debug_loops__ = 0;
                for (let index = 0; index < state.orderedModifiers.length; index++) {
                    if (false /* __DEV__*/) {}
                    if (state.reset === true) {
                        state.reset = false;
                        index = -1;
                        continue;
                    }
                    const { fn, options = {}, name } = state.orderedModifiers[index];
                    if (typeof fn === 'function') {
                        state = fn({ state, options, name, instance }) || state;
                    }
                }
            },
            // Async and optimistically optimized update – it will not be executed if
            // not necessary (debounced to run at most once-per-tick)
            update: (0,_utils_debounce__WEBPACK_IMPORTED_MODULE_8__["default"])(() => new Promise(resolve => {
                instance.forceUpdate();
                resolve(state);
            })),
            destroy() {
                cleanupModifierEffects();
                isDestroyed = true;
            }
        };
        if (!areValidElements(reference, popper)) {
            if (false /* __DEV__*/) {}
            return instance;
        }
        instance.setOptions(options).then(state => {
            if (!isDestroyed && options.onFirstUpdate) {
                options.onFirstUpdate(state);
            }
        });
        // Modifiers have the ability to execute arbitrary code before the first
        // update cycle runs. They will be executed in the same order as the update
        // cycle. This is useful when a modifier adds some persistent data that
        // other modifiers need to use, but the modifier is run after the dependent
        // one.
        /**
         *
         */
        function runModifierEffects() {
            state.orderedModifiers.forEach(({ name, options = {}, effect }) => {
                if (typeof effect === 'function') {
                    const cleanupFn = effect({ state, name, instance, options });
                    const noopFn = () => { };
                    effectCleanupFns.push(cleanupFn || noopFn);
                }
            });
        }
        /**
         *
         */
        function cleanupModifierEffects() {
            effectCleanupFns.forEach(fn => fn());
            effectCleanupFns = [];
        }
        return instance;
    };
}
const createPopper = popperGenerator();
// eslint-disable-next-line import/no-unused-modules

//# sourceMappingURL=index.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/applyStyles.js":
/*!*********************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/applyStyles.js ***!
  \*********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _dom_utils_getNodeName__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dom-utils/getNodeName */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getNodeName.js");
/* harmony import */ var _dom_utils_instanceOf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dom-utils/instanceOf */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/instanceOf.js");


// This modifier takes the styles prepared by the `computeStyles` modifier
// and applies them to the HTMLElements such as popper and arrow
/**
 *
 */
function applyStyles({ state }) {
    Object.keys(state.elements).forEach(name => {
        const style = state.styles[name] || {};
        const attributes = state.attributes[name] || {};
        const element = state.elements[name];
        // arrow is optional + virtual elements
        if (!(0,_dom_utils_instanceOf__WEBPACK_IMPORTED_MODULE_0__.isHTMLElement)(element) || !(0,_dom_utils_getNodeName__WEBPACK_IMPORTED_MODULE_1__["default"])(element)) {
            return;
        }
        // Flow doesn't support to extend this property, but it's the most
        // effective way to apply styles to an HTMLElement
        // $FlowFixMe
        Object.assign(element.style, style);
        Object.keys(attributes).forEach(name => {
            const value = attributes[name];
            if (value === false) {
                element.removeAttribute(name);
            }
            else {
                element.setAttribute(name, value === true ? '' : value);
            }
        });
    });
}
/**
 *
 */
function effect({ state }) {
    const initialStyles = {
        popper: {
            position: state.options.strategy,
            left: '0',
            top: '0',
            margin: '0'
        },
        arrow: {
            position: 'absolute'
        },
        reference: {}
    };
    Object.assign(state.elements.popper.style, initialStyles.popper);
    if (state.elements.arrow) {
        Object.assign(state.elements.arrow.style, initialStyles.arrow);
    }
    return () => {
        Object.keys(state.elements).forEach(name => {
            const element = state.elements[name];
            const attributes = state.attributes[name] || {};
            const styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]);
            // Set all values to an empty string to unset them
            const style = styleProperties.reduce((style, property) => {
                style[property] = '';
                return style;
            }, {});
            // arrow is optional + virtual elements
            if (!(0,_dom_utils_instanceOf__WEBPACK_IMPORTED_MODULE_0__.isHTMLElement)(element) || !(0,_dom_utils_getNodeName__WEBPACK_IMPORTED_MODULE_1__["default"])(element)) {
                return;
            }
            // Flow doesn't support to extend this property, but it's the most
            // effective way to apply styles to an HTMLElement
            // $FlowFixMe
            Object.assign(element.style, style);
            Object.keys(attributes).forEach(attribute => {
                element.removeAttribute(attribute);
            });
        });
    };
}
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
    name: 'applyStyles',
    enabled: true,
    phase: 'write',
    fn: applyStyles,
    effect,
    requires: ['computeStyles']
});
//# sourceMappingURL=applyStyles.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/arrow.js":
/*!***************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/arrow.js ***!
  \***************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _utils_getBasePlacement__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/getBasePlacement */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getBasePlacement.js");
/* harmony import */ var _dom_utils_getLayoutRect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../dom-utils/getLayoutRect */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getLayoutRect.js");
/* harmony import */ var _dom_utils_contains__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../dom-utils/contains */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/contains.js");
/* harmony import */ var _dom_utils_getOffsetParent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../dom-utils/getOffsetParent */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getOffsetParent.js");
/* harmony import */ var _utils_getMainAxisFromPlacement__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/getMainAxisFromPlacement */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getMainAxisFromPlacement.js");
/* harmony import */ var _utils_within__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/within */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/within.js");
/* harmony import */ var _utils_mergePaddingObject__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/mergePaddingObject */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/mergePaddingObject.js");
/* harmony import */ var _utils_expandToHashMap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/expandToHashMap */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/expandToHashMap.js");
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enums */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/enums.js");










/**
 *
 */
function arrow({ state, name }) {
    const arrowElement = state.elements.arrow;
    const popperOffsets = state.modifiersData.popperOffsets;
    const basePlacement = (0,_utils_getBasePlacement__WEBPACK_IMPORTED_MODULE_0__["default"])(state.placement);
    const axis = (0,_utils_getMainAxisFromPlacement__WEBPACK_IMPORTED_MODULE_1__["default"])(basePlacement);
    const isVertical = [_enums__WEBPACK_IMPORTED_MODULE_2__.left, _enums__WEBPACK_IMPORTED_MODULE_2__.right].indexOf(basePlacement) >= 0;
    const len = isVertical ? 'height' : 'width';
    if (!arrowElement || !popperOffsets) {
        return;
    }
    const paddingObject = state.modifiersData[`${name}#persistent`].padding;
    const arrowRect = (0,_dom_utils_getLayoutRect__WEBPACK_IMPORTED_MODULE_3__["default"])(arrowElement);
    const minProp = axis === 'y' ? _enums__WEBPACK_IMPORTED_MODULE_2__.top : _enums__WEBPACK_IMPORTED_MODULE_2__.left;
    const maxProp = axis === 'y' ? _enums__WEBPACK_IMPORTED_MODULE_2__.bottom : _enums__WEBPACK_IMPORTED_MODULE_2__.right;
    const endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];
    const startDiff = popperOffsets[axis] - state.rects.reference[axis];
    const arrowOffsetParent = (0,_dom_utils_getOffsetParent__WEBPACK_IMPORTED_MODULE_4__["default"])(arrowElement);
    const clientSize = arrowOffsetParent
        ? axis === 'y'
            ? arrowOffsetParent.clientHeight || 0
            : arrowOffsetParent.clientWidth || 0
        : 0;
    const centerToReference = endDiff / 2 - startDiff / 2;
    // Make sure the arrow doesn't overflow the popper if the center point is
    // outside of the popper bounds
    const min = paddingObject[minProp];
    const max = clientSize - arrowRect[len] - paddingObject[maxProp];
    const center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;
    const offset = (0,_utils_within__WEBPACK_IMPORTED_MODULE_5__["default"])(min, center, max);
    // Prevents breaking syntax highlighting...
    const axisProp = axis;
    state.modifiersData[name] = {
        [axisProp]: offset,
        centerOffset: offset - center
    };
}
/**
 *
 */
function effect({ state, options, name }) {
    let { element: arrowElement = '[data-popper-arrow]', padding = 0 } = options;
    if (arrowElement == null) {
        return;
    }
    // CSS selector
    if (typeof arrowElement === 'string') {
        arrowElement = state.elements.popper.querySelector(arrowElement);
        if (!arrowElement) {
            return;
        }
    }
    if (false /* __DEV__*/) {}
    if (!(0,_dom_utils_contains__WEBPACK_IMPORTED_MODULE_6__["default"])(state.elements.popper, arrowElement)) {
        if (false /* __DEV__*/) {}
        return;
    }
    state.elements.arrow = arrowElement;
    state.modifiersData[`${name}#persistent`] = {
        padding: (0,_utils_mergePaddingObject__WEBPACK_IMPORTED_MODULE_7__["default"])(typeof padding !== 'number' ? padding : (0,_utils_expandToHashMap__WEBPACK_IMPORTED_MODULE_8__["default"])(padding, _enums__WEBPACK_IMPORTED_MODULE_2__.basePlacements))
    };
}
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
    name: 'arrow',
    enabled: true,
    phase: 'main',
    fn: arrow,
    effect,
    requires: ['popperOffsets'],
    requiresIfExists: ['preventOverflow']
});
//# sourceMappingURL=arrow.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/computeStyles.js":
/*!***********************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/computeStyles.js ***!
  \***********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "mapToStyles": () => (/* binding */ mapToStyles),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../enums */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/enums.js");
/* harmony import */ var _dom_utils_getOffsetParent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dom-utils/getOffsetParent */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getOffsetParent.js");
/* harmony import */ var _dom_utils_getWindow__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dom-utils/getWindow */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getWindow.js");
/* harmony import */ var _dom_utils_getDocumentElement__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../dom-utils/getDocumentElement */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getDocumentElement.js");
/* harmony import */ var _utils_getBasePlacement__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/getBasePlacement */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getBasePlacement.js");






const unsetSides = {
    top: 'auto',
    right: 'auto',
    bottom: 'auto',
    left: 'auto'
};
// Round the offsets to the nearest suitable subpixel based on the DPR.
// Zooming can change the DPR, but it seems to report a value that will
// cleanly divide the values into the appropriate subpixels.
/**
 *
 */
function roundOffsets({ x, y }) {
    const win = window;
    const dpr = win.devicePixelRatio || 1;
    return {
        x: Math.round(x * dpr) / dpr || 0,
        y: Math.round(y * dpr) / dpr || 0
    };
}
/**
 *
 */
function mapToStyles({ popper, popperRect, placement, offsets, position, gpuAcceleration, adaptive }) {
    let { x, y } = roundOffsets(offsets);
    const hasX = offsets.hasOwnProperty('x');
    const hasY = offsets.hasOwnProperty('y');
    let sideX = _enums__WEBPACK_IMPORTED_MODULE_0__.left;
    let sideY = _enums__WEBPACK_IMPORTED_MODULE_0__.top;
    const win = window;
    if (adaptive) {
        let offsetParent = (0,_dom_utils_getOffsetParent__WEBPACK_IMPORTED_MODULE_1__["default"])(popper);
        if (offsetParent === (0,_dom_utils_getWindow__WEBPACK_IMPORTED_MODULE_2__["default"])(popper)) {
            offsetParent = (0,_dom_utils_getDocumentElement__WEBPACK_IMPORTED_MODULE_3__["default"])(popper);
        }
        // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
        /* :: offsetParent = (offsetParent: Element); */
        if (placement === _enums__WEBPACK_IMPORTED_MODULE_0__.top) {
            sideY = _enums__WEBPACK_IMPORTED_MODULE_0__.bottom;
            y -= offsetParent.clientHeight - popperRect.height;
            y *= gpuAcceleration ? 1 : -1;
        }
        if (placement === _enums__WEBPACK_IMPORTED_MODULE_0__.left) {
            sideX = _enums__WEBPACK_IMPORTED_MODULE_0__.right;
            x -= offsetParent.clientWidth - popperRect.width;
            x *= gpuAcceleration ? 1 : -1;
        }
    }
    const commonStyles = Object.assign({ position }, (adaptive && unsetSides));
    if (gpuAcceleration) {
        return Object.assign(Object.assign({}, commonStyles), { [sideY]: hasY ? '0' : '', [sideX]: hasX ? '0' : '', 
            // Layer acceleration can disable subpixel rendering which causes slightly
            // blurry text on low PPI displays, so we want to use 2D transforms
            // instead
            transform: (win.devicePixelRatio || 1) < 2 ? `translate(${x}px, ${y}px)` : `translate3d(${x}px, ${y}px, 0)` });
    }
    return Object.assign(Object.assign({}, commonStyles), { [sideY]: hasY ? `${y}px` : '', [sideX]: hasX ? `${x}px` : '', transform: '' });
}
/**
 *
 */
function computeStyles({ state, options }) {
    const { gpuAcceleration = true, adaptive = true } = options;
    if (false /* __DEV__*/) {}
    const commonStyles = {
        placement: (0,_utils_getBasePlacement__WEBPACK_IMPORTED_MODULE_4__["default"])(state.placement),
        popper: state.elements.popper,
        popperRect: state.rects.popper,
        gpuAcceleration
    };
    if (state.modifiersData.popperOffsets != null) {
        state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), { offsets: state.modifiersData.popperOffsets, position: state.options.strategy, adaptive })));
    }
    if (state.modifiersData.arrow != null) {
        state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), { offsets: state.modifiersData.arrow, position: 'absolute', adaptive: false })));
    }
    state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), { 'data-popper-placement': state.placement });
}
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
    name: 'computeStyles',
    enabled: true,
    phase: 'beforeWrite',
    fn: computeStyles,
    data: {}
});
//# sourceMappingURL=computeStyles.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/eventListeners.js":
/*!************************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/eventListeners.js ***!
  \************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _dom_utils_getWindow__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dom-utils/getWindow */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getWindow.js");

const passive = { passive: true };
/**
 *
 */
function effect({ state, instance, options }) {
    const { scroll = true, resize = true } = options;
    const window = (0,_dom_utils_getWindow__WEBPACK_IMPORTED_MODULE_0__["default"])(state.elements.popper);
    const scrollParents = [...state.scrollParents.reference, ...state.scrollParents.popper];
    if (scroll) {
        scrollParents.forEach(scrollParent => {
            scrollParent.addEventListener('scroll', instance.update, passive);
        });
    }
    if (resize) {
        window.addEventListener('resize', instance.update, passive);
    }
    return () => {
        if (scroll) {
            scrollParents.forEach(scrollParent => {
                scrollParent.removeEventListener('scroll', instance.update, passive);
            });
        }
        if (resize) {
            window.removeEventListener('resize', instance.update, passive);
        }
    };
}
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
    name: 'eventListeners',
    enabled: true,
    phase: 'write',
    fn: () => { },
    effect,
    data: {}
});
//# sourceMappingURL=eventListeners.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/flip.js":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/flip.js ***!
  \**************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _utils_getOppositePlacement__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/getOppositePlacement */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getOppositePlacement.js");
/* harmony import */ var _utils_getBasePlacement__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/getBasePlacement */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getBasePlacement.js");
/* harmony import */ var _utils_getOppositeVariationPlacement__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/getOppositeVariationPlacement */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getOppositeVariationPlacement.js");
/* harmony import */ var _utils_detectOverflow__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/detectOverflow */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/detectOverflow.js");
/* harmony import */ var _utils_computeAutoPlacement__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/computeAutoPlacement */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/computeAutoPlacement.js");
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../enums */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/enums.js");
/* harmony import */ var _utils_getVariation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/getVariation */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getVariation.js");







/**
 * @param placement
 */
function getExpandedFallbackPlacements(placement) {
    if ((0,_utils_getBasePlacement__WEBPACK_IMPORTED_MODULE_0__["default"])(placement) === _enums__WEBPACK_IMPORTED_MODULE_1__.auto) {
        return [];
    }
    const oppositePlacement = (0,_utils_getOppositePlacement__WEBPACK_IMPORTED_MODULE_2__["default"])(placement);
    return [
        (0,_utils_getOppositeVariationPlacement__WEBPACK_IMPORTED_MODULE_3__["default"])(placement),
        oppositePlacement,
        (0,_utils_getOppositeVariationPlacement__WEBPACK_IMPORTED_MODULE_3__["default"])(oppositePlacement)
    ];
}
/**
 *
 */
function flip({ state, options, name }) {
    if (state.modifiersData[name]._skip) {
        return;
    }
    const { mainAxis: checkMainAxis = true, altAxis: checkAltAxis = true, fallbackPlacements: specifiedFallbackPlacements, padding, boundary, rootBoundary, altBoundary, flipVariations = true, allowedAutoPlacements } = options;
    const preferredPlacement = state.options.placement;
    const basePlacement = (0,_utils_getBasePlacement__WEBPACK_IMPORTED_MODULE_0__["default"])(preferredPlacement);
    const isBasePlacement = basePlacement === preferredPlacement;
    const fallbackPlacements = specifiedFallbackPlacements ||
        (isBasePlacement || !flipVariations
            ? [(0,_utils_getOppositePlacement__WEBPACK_IMPORTED_MODULE_2__["default"])(preferredPlacement)]
            : getExpandedFallbackPlacements(preferredPlacement));
    const placements = [preferredPlacement, ...fallbackPlacements].reduce((acc, placement) => acc.concat((0,_utils_getBasePlacement__WEBPACK_IMPORTED_MODULE_0__["default"])(placement) === _enums__WEBPACK_IMPORTED_MODULE_1__.auto
        ? (0,_utils_computeAutoPlacement__WEBPACK_IMPORTED_MODULE_4__["default"])(state, {
            placement,
            boundary,
            rootBoundary,
            padding,
            flipVariations,
            allowedAutoPlacements
        })
        : placement), []);
    const referenceRect = state.rects.reference;
    const popperRect = state.rects.popper;
    const checksMap = new Map();
    let makeFallbackChecks = true;
    let firstFittingPlacement = placements[0];
    for (let i = 0; i < placements.length; i++) {
        const placement = placements[i];
        const basePlacement = (0,_utils_getBasePlacement__WEBPACK_IMPORTED_MODULE_0__["default"])(placement);
        const isStartVariation = (0,_utils_getVariation__WEBPACK_IMPORTED_MODULE_5__["default"])(placement) === _enums__WEBPACK_IMPORTED_MODULE_1__.start;
        const isVertical = [_enums__WEBPACK_IMPORTED_MODULE_1__.top, _enums__WEBPACK_IMPORTED_MODULE_1__.bottom].indexOf(basePlacement) >= 0;
        const len = isVertical ? 'width' : 'height';
        const overflow = (0,_utils_detectOverflow__WEBPACK_IMPORTED_MODULE_6__["default"])(state, {
            placement,
            boundary,
            rootBoundary,
            altBoundary,
            padding
        });
        let mainVariationSide = isVertical ? (isStartVariation ? _enums__WEBPACK_IMPORTED_MODULE_1__.right : _enums__WEBPACK_IMPORTED_MODULE_1__.left) : isStartVariation ? _enums__WEBPACK_IMPORTED_MODULE_1__.bottom : _enums__WEBPACK_IMPORTED_MODULE_1__.top;
        if (referenceRect[len] > popperRect[len]) {
            mainVariationSide = (0,_utils_getOppositePlacement__WEBPACK_IMPORTED_MODULE_2__["default"])(mainVariationSide);
        }
        const altVariationSide = (0,_utils_getOppositePlacement__WEBPACK_IMPORTED_MODULE_2__["default"])(mainVariationSide);
        const checks = [];
        if (checkMainAxis) {
            checks.push(overflow[basePlacement] <= 0);
        }
        if (checkAltAxis) {
            checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);
        }
        if (checks.every(check => check)) {
            firstFittingPlacement = placement;
            makeFallbackChecks = false;
            break;
        }
        checksMap.set(placement, checks);
    }
    if (makeFallbackChecks) {
        // `2` may be desired in some cases – research later
        const numberOfChecks = flipVariations ? 3 : 1;
        for (let i = numberOfChecks; i > 0; i--) {
            const fittingPlacement = placements.find(placement => {
                const checks = checksMap.get(placement);
                if (checks) {
                    return checks.slice(0, i).every(check => check);
                }
            });
            if (fittingPlacement) {
                firstFittingPlacement = fittingPlacement;
                break;
            }
        }
    }
    if (state.placement !== firstFittingPlacement) {
        state.modifiersData[name]._skip = true;
        state.placement = firstFittingPlacement;
        state.reset = true;
    }
}
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
    name: 'flip',
    enabled: true,
    phase: 'main',
    fn: flip,
    requiresIfExists: ['offset'],
    data: { _skip: false }
});
//# sourceMappingURL=flip.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/hide.js":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/hide.js ***!
  \**************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../enums */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/enums.js");
/* harmony import */ var _utils_detectOverflow__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/detectOverflow */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/detectOverflow.js");


/**
 * @param overflow
 * @param rect
 * @param preventedOffsets
 */
function getSideOffsets(overflow, rect, preventedOffsets = { x: 0, y: 0 }) {
    return {
        top: overflow.top - rect.height - preventedOffsets.y,
        right: overflow.right - rect.width + preventedOffsets.x,
        bottom: overflow.bottom - rect.height + preventedOffsets.y,
        left: overflow.left - rect.width - preventedOffsets.x
    };
}
/**
 * @param overflow
 */
function isAnySideFullyClipped(overflow) {
    return [_enums__WEBPACK_IMPORTED_MODULE_0__.top, _enums__WEBPACK_IMPORTED_MODULE_0__.right, _enums__WEBPACK_IMPORTED_MODULE_0__.bottom, _enums__WEBPACK_IMPORTED_MODULE_0__.left].some(side => overflow[side] >= 0);
}
/**
 *
 */
function hide({ state, name }) {
    const referenceRect = state.rects.reference;
    const popperRect = state.rects.popper;
    const preventedOffsets = state.modifiersData.preventOverflow;
    const referenceOverflow = (0,_utils_detectOverflow__WEBPACK_IMPORTED_MODULE_1__["default"])(state, {
        elementContext: 'reference'
    });
    const popperAltOverflow = (0,_utils_detectOverflow__WEBPACK_IMPORTED_MODULE_1__["default"])(state, {
        altBoundary: true
    });
    const referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);
    const popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);
    const isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);
    const hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
    state.modifiersData[name] = {
        referenceClippingOffsets,
        popperEscapeOffsets,
        isReferenceHidden,
        hasPopperEscaped
    };
    state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), { 'data-popper-reference-hidden': isReferenceHidden, 'data-popper-escaped': hasPopperEscaped });
}
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
    name: 'hide',
    enabled: true,
    phase: 'main',
    requiresIfExists: ['preventOverflow'],
    fn: hide
});
//# sourceMappingURL=hide.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/offset.js":
/*!****************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/offset.js ***!
  \****************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "distanceAndSkiddingToXY": () => (/* binding */ distanceAndSkiddingToXY),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _utils_getBasePlacement__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/getBasePlacement */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getBasePlacement.js");
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../enums */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/enums.js");


/**
 * @param placement
 * @param rects
 * @param offset
 */
function distanceAndSkiddingToXY(placement, rects, offset) {
    const basePlacement = (0,_utils_getBasePlacement__WEBPACK_IMPORTED_MODULE_0__["default"])(placement);
    const invertDistance = [_enums__WEBPACK_IMPORTED_MODULE_1__.left, _enums__WEBPACK_IMPORTED_MODULE_1__.top].indexOf(basePlacement) >= 0 ? -1 : 1;
    let [skidding, distance] = typeof offset === 'function'
        ? offset(Object.assign(Object.assign({}, rects), { placement }))
        : offset;
    skidding = skidding || 0;
    distance = (distance || 0) * invertDistance;
    return [_enums__WEBPACK_IMPORTED_MODULE_1__.left, _enums__WEBPACK_IMPORTED_MODULE_1__.right].indexOf(basePlacement) >= 0 ? { x: distance, y: skidding } : { x: skidding, y: distance };
}
/**
 *
 */
function offset({ state, options, name }) {
    const { offset = [0, 0] } = options;
    const data = _enums__WEBPACK_IMPORTED_MODULE_1__.placements.reduce((acc, placement) => {
        acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);
        return acc;
    }, {});
    const { x, y } = data[state.placement];
    if (state.modifiersData.popperOffsets != null) {
        state.modifiersData.popperOffsets.x += x;
        state.modifiersData.popperOffsets.y += y;
    }
    state.modifiersData[name] = data;
}
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
    name: 'offset',
    enabled: true,
    phase: 'main',
    requires: ['popperOffsets'],
    fn: offset
});
//# sourceMappingURL=offset.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/popperOffsets.js":
/*!***********************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/popperOffsets.js ***!
  \***********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _utils_computeOffsets__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/computeOffsets */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/computeOffsets.js");

/**
 *
 */
function popperOffsets({ state, name }) {
    // Offsets are the actual position the popper needs to have to be
    // properly positioned near its reference element
    // This is the most basic placement, and will be adjusted by
    // the modifiers in the next step
    state.modifiersData[name] = (0,_utils_computeOffsets__WEBPACK_IMPORTED_MODULE_0__["default"])({
        reference: state.rects.reference,
        element: state.rects.popper,
        strategy: 'absolute',
        placement: state.placement
    });
}
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
    name: 'popperOffsets',
    enabled: true,
    phase: 'read',
    fn: popperOffsets,
    data: {}
});
//# sourceMappingURL=popperOffsets.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/preventOverflow.js":
/*!*************************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/preventOverflow.js ***!
  \*************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../enums */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/enums.js");
/* harmony import */ var _utils_getBasePlacement__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/getBasePlacement */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getBasePlacement.js");
/* harmony import */ var _utils_getMainAxisFromPlacement__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/getMainAxisFromPlacement */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getMainAxisFromPlacement.js");
/* harmony import */ var _utils_getAltAxis__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/getAltAxis */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getAltAxis.js");
/* harmony import */ var _utils_within__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/within */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/within.js");
/* harmony import */ var _dom_utils_getLayoutRect__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../dom-utils/getLayoutRect */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getLayoutRect.js");
/* harmony import */ var _dom_utils_getOffsetParent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../dom-utils/getOffsetParent */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getOffsetParent.js");
/* harmony import */ var _utils_detectOverflow__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/detectOverflow */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/detectOverflow.js");
/* harmony import */ var _utils_getVariation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/getVariation */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getVariation.js");
/* harmony import */ var _utils_getFreshSideObject__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/getFreshSideObject */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getFreshSideObject.js");
// @ts-nocheck










/**
 *
 */
function preventOverflow({ state, options, name }) {
    const { mainAxis: checkMainAxis = true, altAxis: checkAltAxis = false, boundary, rootBoundary, altBoundary, padding, tether = true, tetherOffset = 0 } = options;
    const overflow = (0,_utils_detectOverflow__WEBPACK_IMPORTED_MODULE_0__["default"])(state, {
        boundary,
        rootBoundary,
        padding,
        altBoundary
    });
    const basePlacement = (0,_utils_getBasePlacement__WEBPACK_IMPORTED_MODULE_1__["default"])(state.placement);
    const variation = (0,_utils_getVariation__WEBPACK_IMPORTED_MODULE_2__["default"])(state.placement);
    const isBasePlacement = !variation;
    const mainAxis = (0,_utils_getMainAxisFromPlacement__WEBPACK_IMPORTED_MODULE_3__["default"])(basePlacement);
    const altAxis = (0,_utils_getAltAxis__WEBPACK_IMPORTED_MODULE_4__["default"])(mainAxis);
    const popperOffsets = state.modifiersData.popperOffsets;
    const referenceRect = state.rects.reference;
    const popperRect = state.rects.popper;
    const tetherOffsetValue = typeof tetherOffset === 'function'
        ? tetherOffset(Object.assign(Object.assign({}, state.rects), { placement: state.placement }))
        : tetherOffset;
    const data = { x: 0, y: 0 };
    if (!popperOffsets) {
        return;
    }
    if (checkMainAxis) {
        const mainSide = mainAxis === 'y' ? _enums__WEBPACK_IMPORTED_MODULE_5__.top : _enums__WEBPACK_IMPORTED_MODULE_5__.left;
        const altSide = mainAxis === 'y' ? _enums__WEBPACK_IMPORTED_MODULE_5__.bottom : _enums__WEBPACK_IMPORTED_MODULE_5__.right;
        const len = mainAxis === 'y' ? 'height' : 'width';
        const offset = popperOffsets[mainAxis];
        const min = popperOffsets[mainAxis] + overflow[mainSide];
        const max = popperOffsets[mainAxis] - overflow[altSide];
        const additive = tether ? -popperRect[len] / 2 : 0;
        const minLen = variation === _enums__WEBPACK_IMPORTED_MODULE_5__.start ? referenceRect[len] : popperRect[len];
        const maxLen = variation === _enums__WEBPACK_IMPORTED_MODULE_5__.start ? -popperRect[len] : -referenceRect[len];
        // We need to include the arrow in the calculation so the arrow doesn't go
        // outside the reference bounds
        const arrowElement = state.elements.arrow;
        const arrowRect = tether && arrowElement ? (0,_dom_utils_getLayoutRect__WEBPACK_IMPORTED_MODULE_6__["default"])(arrowElement) : { width: 0, height: 0 };
        const arrowPaddingObject = state.modifiersData['arrow#persistent']
            ? state.modifiersData['arrow#persistent'].padding
            : (0,_utils_getFreshSideObject__WEBPACK_IMPORTED_MODULE_7__["default"])();
        const arrowPaddingMin = arrowPaddingObject[mainSide];
        const arrowPaddingMax = arrowPaddingObject[altSide];
        // If the reference length is smaller than the arrow length, we don't want
        // to include its full size in the calculation. If the reference is small
        // and near the edge of a boundary, the popper can overflow even if the
        // reference is not overflowing as well (e.g. virtual elements with no
        // width or height)
        const arrowLen = (0,_utils_within__WEBPACK_IMPORTED_MODULE_8__["default"])(0, referenceRect[len], arrowRect[len]);
        const minOffset = isBasePlacement
            ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - tetherOffsetValue
            : minLen - arrowLen - arrowPaddingMin - tetherOffsetValue;
        const maxOffset = isBasePlacement
            ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + tetherOffsetValue
            : maxLen + arrowLen + arrowPaddingMax + tetherOffsetValue;
        const arrowOffsetParent = state.elements.arrow && (0,_dom_utils_getOffsetParent__WEBPACK_IMPORTED_MODULE_9__["default"])(state.elements.arrow);
        const clientOffset = arrowOffsetParent
            ? mainAxis === 'y'
                ? arrowOffsetParent.clientTop || 0
                : arrowOffsetParent.clientLeft || 0
            : 0;
        const offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
        const tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
        const tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
        const preventedOffset = (0,_utils_within__WEBPACK_IMPORTED_MODULE_8__["default"])(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
        popperOffsets[mainAxis] = preventedOffset;
        data[mainAxis] = preventedOffset - offset;
    }
    if (checkAltAxis) {
        const mainSide = mainAxis === 'x' ? _enums__WEBPACK_IMPORTED_MODULE_5__.top : _enums__WEBPACK_IMPORTED_MODULE_5__.left;
        const altSide = mainAxis === 'x' ? _enums__WEBPACK_IMPORTED_MODULE_5__.bottom : _enums__WEBPACK_IMPORTED_MODULE_5__.right;
        const offset = popperOffsets[altAxis];
        const min = offset + overflow[mainSide];
        const max = offset - overflow[altSide];
        const preventedOffset = (0,_utils_within__WEBPACK_IMPORTED_MODULE_8__["default"])(min, offset, max);
        popperOffsets[altAxis] = preventedOffset;
        data[altAxis] = preventedOffset - offset;
    }
    state.modifiersData[name] = data;
}
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
    name: 'preventOverflow',
    enabled: true,
    phase: 'main',
    fn: preventOverflow,
    requiresIfExists: ['offset']
});
//# sourceMappingURL=preventOverflow.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/popper.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/popper.js ***!
  \******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "createPopper": () => (/* binding */ createPopper),
/* harmony export */   "popperGenerator": () => (/* reexport safe */ ___WEBPACK_IMPORTED_MODULE_9__.popperGenerator),
/* harmony export */   "defaultModifiers": () => (/* binding */ defaultModifiers),
/* harmony export */   "detectOverflow": () => (/* reexport safe */ ___WEBPACK_IMPORTED_MODULE_10__["default"])
/* harmony export */ });
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! . */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/index.js");
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! . */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/detectOverflow.js");
/* harmony import */ var _modifiers_eventListeners__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./modifiers/eventListeners */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/eventListeners.js");
/* harmony import */ var _modifiers_popperOffsets__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modifiers/popperOffsets */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/popperOffsets.js");
/* harmony import */ var _modifiers_computeStyles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./modifiers/computeStyles */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/computeStyles.js");
/* harmony import */ var _modifiers_applyStyles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./modifiers/applyStyles */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/applyStyles.js");
/* harmony import */ var _modifiers_offset__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./modifiers/offset */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/offset.js");
/* harmony import */ var _modifiers_flip__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./modifiers/flip */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/flip.js");
/* harmony import */ var _modifiers_preventOverflow__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./modifiers/preventOverflow */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/preventOverflow.js");
/* harmony import */ var _modifiers_arrow__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./modifiers/arrow */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/arrow.js");
/* harmony import */ var _modifiers_hide__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./modifiers/hide */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/modifiers/hide.js");
// @ts-nocheck











const defaultModifiers = [
    _modifiers_eventListeners__WEBPACK_IMPORTED_MODULE_0__["default"],
    _modifiers_popperOffsets__WEBPACK_IMPORTED_MODULE_1__["default"],
    _modifiers_computeStyles__WEBPACK_IMPORTED_MODULE_2__["default"],
    _modifiers_applyStyles__WEBPACK_IMPORTED_MODULE_3__["default"],
    _modifiers_offset__WEBPACK_IMPORTED_MODULE_4__["default"],
    _modifiers_flip__WEBPACK_IMPORTED_MODULE_5__["default"],
    _modifiers_preventOverflow__WEBPACK_IMPORTED_MODULE_6__["default"],
    _modifiers_arrow__WEBPACK_IMPORTED_MODULE_7__["default"],
    _modifiers_hide__WEBPACK_IMPORTED_MODULE_8__["default"]
];
const createPopper = (0,___WEBPACK_IMPORTED_MODULE_9__.popperGenerator)({ defaultModifiers });
// eslint-disable-next-line import/no-unused-modules

//# sourceMappingURL=popper.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/computeAutoPlacement.js":
/*!**************************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/computeAutoPlacement.js ***!
  \**************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ computeAutoPlacement)
/* harmony export */ });
/* harmony import */ var _getVariation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getVariation */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getVariation.js");
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../enums */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/enums.js");
/* harmony import */ var _detectOverflow__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./detectOverflow */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/detectOverflow.js");
/* harmony import */ var _getBasePlacement__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getBasePlacement */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getBasePlacement.js");




/* :: type OverflowsMap = { [ComputedPlacement]: number }; */
/* ;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
/**
 * @param state
 * @param options
 */
function computeAutoPlacement(state, options = {}) {
    const { placement, boundary, rootBoundary, padding, flipVariations, allowedAutoPlacements = _enums__WEBPACK_IMPORTED_MODULE_0__.placements } = options;
    const variation = (0,_getVariation__WEBPACK_IMPORTED_MODULE_1__["default"])(placement);
    const placements = variation
        ? flipVariations
            ? _enums__WEBPACK_IMPORTED_MODULE_0__.variationPlacements
            : _enums__WEBPACK_IMPORTED_MODULE_0__.variationPlacements.filter(placement => (0,_getVariation__WEBPACK_IMPORTED_MODULE_1__["default"])(placement) === variation)
        : _enums__WEBPACK_IMPORTED_MODULE_0__.basePlacements;
    // $FlowFixMe
    let allowedPlacements = placements.filter(placement => allowedAutoPlacements.indexOf(placement) >= 0);
    if (allowedPlacements.length === 0) {
        allowedPlacements = placements;
        if (false /* __DEV__*/) {}
    }
    // $FlowFixMe: Flow seems to have problems with two array unions...
    const overflows = allowedPlacements.reduce((acc, placement) => {
        acc[placement] = (0,_detectOverflow__WEBPACK_IMPORTED_MODULE_2__["default"])(state, {
            placement,
            boundary,
            rootBoundary,
            padding
        })[(0,_getBasePlacement__WEBPACK_IMPORTED_MODULE_3__["default"])(placement)];
        return acc;
    }, {});
    return Object.keys(overflows).sort((a, b) => overflows[a] - overflows[b]);
}
//# sourceMappingURL=computeAutoPlacement.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/computeOffsets.js":
/*!********************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/computeOffsets.js ***!
  \********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ computeOffsets)
/* harmony export */ });
/* harmony import */ var _getBasePlacement__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getBasePlacement */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getBasePlacement.js");
/* harmony import */ var _getVariation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getVariation */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getVariation.js");
/* harmony import */ var _getMainAxisFromPlacement__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getMainAxisFromPlacement */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getMainAxisFromPlacement.js");
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enums */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/enums.js");
// @ts-nocheck




/**
 *
 */
function computeOffsets({ reference, element, placement }) {
    const basePlacement = placement ? (0,_getBasePlacement__WEBPACK_IMPORTED_MODULE_0__["default"])(placement) : null;
    const variation = placement ? (0,_getVariation__WEBPACK_IMPORTED_MODULE_1__["default"])(placement) : null;
    const commonX = reference.x + reference.width / 2 - element.width / 2;
    const commonY = reference.y + reference.height / 2 - element.height / 2;
    let offsets;
    switch (basePlacement) {
        case _enums__WEBPACK_IMPORTED_MODULE_2__.top:
            offsets = {
                x: commonX,
                y: reference.y - element.height
            };
            break;
        case _enums__WEBPACK_IMPORTED_MODULE_2__.bottom:
            offsets = {
                x: commonX,
                y: reference.y + reference.height
            };
            break;
        case _enums__WEBPACK_IMPORTED_MODULE_2__.right:
            offsets = {
                x: reference.x + reference.width,
                y: commonY
            };
            break;
        case _enums__WEBPACK_IMPORTED_MODULE_2__.left:
            offsets = {
                x: reference.x - element.width,
                y: commonY
            };
            break;
        default:
            offsets = {
                x: reference.x,
                y: reference.y
            };
    }
    const mainAxis = basePlacement ? (0,_getMainAxisFromPlacement__WEBPACK_IMPORTED_MODULE_3__["default"])(basePlacement) : null;
    if (mainAxis != null) {
        const len = mainAxis === 'y' ? 'height' : 'width';
        switch (variation) {
            case _enums__WEBPACK_IMPORTED_MODULE_2__.start:
                offsets[mainAxis] = Math.floor(offsets[mainAxis]) - Math.floor(reference[len] / 2 - element[len] / 2);
                break;
            case _enums__WEBPACK_IMPORTED_MODULE_2__.end:
                offsets[mainAxis] = Math.floor(offsets[mainAxis]) + Math.ceil(reference[len] / 2 - element[len] / 2);
                break;
            default:
        }
    }
    return offsets;
}
//# sourceMappingURL=computeOffsets.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/debounce.js":
/*!**************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/debounce.js ***!
  \**************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ debounce)
/* harmony export */ });
// @ts-nocheck
/**
 * @param fn
 */
function debounce(fn) {
    let pending;
    return () => {
        if (!pending) {
            pending = new Promise(resolve => {
                Promise.resolve().then(() => {
                    pending = undefined;
                    resolve(fn());
                });
            });
        }
        return pending;
    };
}
//# sourceMappingURL=debounce.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/detectOverflow.js":
/*!********************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/detectOverflow.js ***!
  \********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ detectOverflow)
/* harmony export */ });
/* harmony import */ var _dom_utils_getBoundingClientRect__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../dom-utils/getBoundingClientRect */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getBoundingClientRect.js");
/* harmony import */ var _dom_utils_getClippingRect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../dom-utils/getClippingRect */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getClippingRect.js");
/* harmony import */ var _dom_utils_getDocumentElement__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../dom-utils/getDocumentElement */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/getDocumentElement.js");
/* harmony import */ var _computeOffsets__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./computeOffsets */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/computeOffsets.js");
/* harmony import */ var _rectToClientRect__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./rectToClientRect */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/rectToClientRect.js");
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../enums */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/enums.js");
/* harmony import */ var _dom_utils_instanceOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../dom-utils/instanceOf */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/dom-utils/instanceOf.js");
/* harmony import */ var _mergePaddingObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mergePaddingObject */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/mergePaddingObject.js");
/* harmony import */ var _expandToHashMap__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./expandToHashMap */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/expandToHashMap.js");









/**
 * @param state
 * @param options
 */
function detectOverflow(state, options = {}) {
    const { placement = state.placement, boundary = _enums__WEBPACK_IMPORTED_MODULE_0__.clippingParents, rootBoundary = _enums__WEBPACK_IMPORTED_MODULE_0__.viewport, elementContext = _enums__WEBPACK_IMPORTED_MODULE_0__.popper, altBoundary = false, padding = 0 } = options;
    const paddingObject = (0,_mergePaddingObject__WEBPACK_IMPORTED_MODULE_1__["default"])(typeof padding !== 'number' ? padding : (0,_expandToHashMap__WEBPACK_IMPORTED_MODULE_2__["default"])(padding, _enums__WEBPACK_IMPORTED_MODULE_0__.basePlacements));
    const altContext = elementContext === _enums__WEBPACK_IMPORTED_MODULE_0__.popper ? _enums__WEBPACK_IMPORTED_MODULE_0__.reference : _enums__WEBPACK_IMPORTED_MODULE_0__.popper;
    const referenceElement = state.elements.reference;
    const popperRect = state.rects.popper;
    const element = state.elements[altBoundary ? altContext : elementContext];
    const clippingClientRect = (0,_dom_utils_getClippingRect__WEBPACK_IMPORTED_MODULE_3__["default"])((0,_dom_utils_instanceOf__WEBPACK_IMPORTED_MODULE_4__.isElement)(element) ? element : element.contextElement || (0,_dom_utils_getDocumentElement__WEBPACK_IMPORTED_MODULE_5__["default"])(state.elements.popper), boundary, rootBoundary);
    const referenceClientRect = (0,_dom_utils_getBoundingClientRect__WEBPACK_IMPORTED_MODULE_6__["default"])(referenceElement);
    const popperOffsets = (0,_computeOffsets__WEBPACK_IMPORTED_MODULE_7__["default"])({
        reference: referenceClientRect,
        element: popperRect,
        strategy: 'absolute',
        placement
    });
    const popperClientRect = (0,_rectToClientRect__WEBPACK_IMPORTED_MODULE_8__["default"])(Object.assign(Object.assign({}, popperRect), popperOffsets));
    const elementClientRect = elementContext === _enums__WEBPACK_IMPORTED_MODULE_0__.popper ? popperClientRect : referenceClientRect;
    // positive = overflowing the clipping rect
    // 0 or negative = within the clipping rect
    const overflowOffsets = {
        top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
        bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
        left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
        right: elementClientRect.right - clippingClientRect.right + paddingObject.right
    };
    const offsetData = state.modifiersData.offset;
    // Offsets can be applied only to the popper element
    if (elementContext === _enums__WEBPACK_IMPORTED_MODULE_0__.popper && offsetData) {
        const offset = offsetData[placement];
        Object.keys(overflowOffsets).forEach(key => {
            const multiply = [_enums__WEBPACK_IMPORTED_MODULE_0__.right, _enums__WEBPACK_IMPORTED_MODULE_0__.bottom].indexOf(key) >= 0 ? 1 : -1;
            const axis = [_enums__WEBPACK_IMPORTED_MODULE_0__.top, _enums__WEBPACK_IMPORTED_MODULE_0__.bottom].indexOf(key) >= 0 ? 'y' : 'x';
            overflowOffsets[key] += offset[axis] * multiply;
        });
    }
    return overflowOffsets;
}
//# sourceMappingURL=detectOverflow.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/expandToHashMap.js":
/*!*********************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/expandToHashMap.js ***!
  \*********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ expandToHashMap)
/* harmony export */ });
// @ts-nocheck
/**
 * @param value
 * @param keys
 */
function expandToHashMap(value, keys) {
    return keys.reduce((hashMap, key) => {
        hashMap[key] = value;
        return hashMap;
    }, {});
}
//# sourceMappingURL=expandToHashMap.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getAltAxis.js":
/*!****************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getAltAxis.js ***!
  \****************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ getAltAxis)
/* harmony export */ });
// @ts-nocheck
/**
 * @param axis
 */
function getAltAxis(axis) {
    return axis === 'x' ? 'y' : 'x';
}
//# sourceMappingURL=getAltAxis.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getBasePlacement.js":
/*!**********************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getBasePlacement.js ***!
  \**********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ getBasePlacement)
/* harmony export */ });
/**
 * @param placement
 */
function getBasePlacement(placement) {
    return placement.split('-')[0];
}
//# sourceMappingURL=getBasePlacement.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getFreshSideObject.js":
/*!************************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getFreshSideObject.js ***!
  \************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ getFreshSideObject)
/* harmony export */ });
/**
 *
 */
function getFreshSideObject() {
    return {
        top: 0,
        right: 0,
        bottom: 0,
        left: 0
    };
}
//# sourceMappingURL=getFreshSideObject.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getMainAxisFromPlacement.js":
/*!******************************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getMainAxisFromPlacement.js ***!
  \******************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ getMainAxisFromPlacement)
/* harmony export */ });
/**
 * @param placement
 */
function getMainAxisFromPlacement(placement) {
    return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
}
//# sourceMappingURL=getMainAxisFromPlacement.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getOppositePlacement.js":
/*!**************************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getOppositePlacement.js ***!
  \**************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ getOppositePlacement)
/* harmony export */ });
const hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' };
/**
 * @param placement
 */
function getOppositePlacement(placement) {
    return placement.replace(/left|right|bottom|top/g, matched => hash[matched]);
}
//# sourceMappingURL=getOppositePlacement.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getOppositeVariationPlacement.js":
/*!***********************************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getOppositeVariationPlacement.js ***!
  \***********************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ getOppositeVariationPlacement)
/* harmony export */ });
const hash = { start: 'end', end: 'start' };
/**
 * @param placement
 */
function getOppositeVariationPlacement(placement) {
    return placement.replace(/start|end/g, matched => hash[matched]);
}
//# sourceMappingURL=getOppositeVariationPlacement.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getVariation.js":
/*!******************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getVariation.js ***!
  \******************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ getVariation)
/* harmony export */ });
/**
 * @param placement
 */
function getVariation(placement) {
    return placement.split('-')[1];
}
//# sourceMappingURL=getVariation.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/mergeByName.js":
/*!*****************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/mergeByName.js ***!
  \*****************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ mergeByName)
/* harmony export */ });
/**
 * @param modifiers
 */
function mergeByName(modifiers) {
    const merged = modifiers.reduce((merged, current) => {
        const existing = merged[current.name];
        merged[current.name] = existing
            ? Object.assign(Object.assign(Object.assign({}, existing), current), { options: Object.assign(Object.assign({}, existing.options), current.options), data: Object.assign(Object.assign({}, existing.data), current.data) }) : current;
        return merged;
    }, {});
    // IE11 does not support Object.values
    return Object.keys(merged).map(key => merged[key]);
}
//# sourceMappingURL=mergeByName.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/mergePaddingObject.js":
/*!************************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/mergePaddingObject.js ***!
  \************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ mergePaddingObject)
/* harmony export */ });
/* harmony import */ var _getFreshSideObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getFreshSideObject */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/getFreshSideObject.js");

/**
 * @param paddingObject
 */
function mergePaddingObject(paddingObject) {
    return Object.assign(Object.assign({}, (0,_getFreshSideObject__WEBPACK_IMPORTED_MODULE_0__["default"])()), paddingObject);
}
//# sourceMappingURL=mergePaddingObject.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/orderModifiers.js":
/*!********************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/orderModifiers.js ***!
  \********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ orderModifiers)
/* harmony export */ });
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../enums */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/enums.js");

// source: https://stackoverflow.com/questions/49875255
/**
 * @param modifiers
 */
function order(modifiers) {
    const map = new Map();
    const visited = new Set();
    const result = [];
    modifiers.forEach(modifier => {
        map.set(modifier.name, modifier);
    });
    // On visiting object, check for its dependencies and visit them recursively
    /**
     * @param modifier
     */
    function sort(modifier) {
        visited.add(modifier.name);
        const requires = [...(modifier.requires || []), ...(modifier.requiresIfExists || [])];
        requires.forEach(dep => {
            if (!visited.has(dep)) {
                const depModifier = map.get(dep);
                if (depModifier) {
                    sort(depModifier);
                }
            }
        });
        result.push(modifier);
    }
    modifiers.forEach(modifier => {
        if (!visited.has(modifier.name)) {
            // check for visited object
            sort(modifier);
        }
    });
    return result;
}
/**
 * @param modifiers
 */
function orderModifiers(modifiers) {
    // order based on dependencies
    const orderedModifiers = order(modifiers);
    // order based on phase
    return _enums__WEBPACK_IMPORTED_MODULE_0__.modifierPhases.reduce((acc, phase) => acc.concat(orderedModifiers.filter(modifier => modifier.phase === phase)), []);
}
//# sourceMappingURL=orderModifiers.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/rectToClientRect.js":
/*!**********************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/rectToClientRect.js ***!
  \**********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ rectToClientRect)
/* harmony export */ });
/**
 * @param rect
 */
function rectToClientRect(rect) {
    return Object.assign(Object.assign({}, rect), { left: rect.x, top: rect.y, right: rect.x + rect.width, bottom: rect.y + rect.height });
}
//# sourceMappingURL=rectToClientRect.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/within.js":
/*!************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/utils/within.js ***!
  \************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ within)
/* harmony export */ });
// @ts-nocheck
/**
 * @param min
 * @param value
 * @param max
 */
function within(min, value, max) {
    return Math.max(min, Math.min(value, max));
}
//# sourceMappingURL=within.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/react-popper/usePopper.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/react-popper/usePopper.js ***!
  \**********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "usePopper": () => (/* binding */ usePopper)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _popper_core_popper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../popper-core/popper */ "./node_modules/@patternfly/react-core/dist/esm/helpers/Popper/thirdparty/popper-core/popper.js");
/* harmony import */ var _helpers_useIsomorphicLayout__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../helpers/useIsomorphicLayout */ "./node_modules/@patternfly/react-core/dist/esm/helpers/useIsomorphicLayout.js");
/* eslint-disable @typescript-eslint/consistent-type-definitions */



const isEqual = (a, b) => JSON.stringify(a) === JSON.stringify(b);
/**
 * Simple ponyfill for Object.fromEntries
 */
const fromEntries = (entries) => entries.reduce((acc, [key, value]) => {
    acc[key] = value;
    return acc;
}, {});
const EMPTY_MODIFIERS = [];
const usePopper = (referenceElement, popperElement, options = {}) => {
    const prevOptions = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);
    const optionsWithDefaults = {
        onFirstUpdate: options.onFirstUpdate,
        placement: options.placement || 'bottom',
        strategy: options.strategy || 'absolute',
        modifiers: options.modifiers || EMPTY_MODIFIERS
    };
    const [state, setState] = react__WEBPACK_IMPORTED_MODULE_0__.useState({
        styles: {
            popper: {
                position: optionsWithDefaults.strategy,
                left: '0',
                top: '0'
            }
        },
        attributes: {}
    });
    const updateStateModifier = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => ({
        name: 'updateState',
        enabled: true,
        phase: 'write',
        // eslint-disable-next-line no-shadow
        fn: ({ state }) => {
            const elements = Object.keys(state.elements);
            setState({
                styles: fromEntries(elements.map(element => [element, state.styles[element] || {}])),
                attributes: fromEntries(elements.map(element => [element, state.attributes[element]]))
            });
        },
        requires: ['computeStyles']
    }), []);
    const popperOptions = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => {
        const newOptions = {
            onFirstUpdate: optionsWithDefaults.onFirstUpdate,
            placement: optionsWithDefaults.placement,
            strategy: optionsWithDefaults.strategy,
            modifiers: [...optionsWithDefaults.modifiers, updateStateModifier, { name: 'applyStyles', enabled: false }]
        };
        if (isEqual(prevOptions.current, newOptions)) {
            return prevOptions.current || newOptions;
        }
        else {
            prevOptions.current = newOptions;
            return newOptions;
        }
    }, [
        optionsWithDefaults.onFirstUpdate,
        optionsWithDefaults.placement,
        optionsWithDefaults.strategy,
        optionsWithDefaults.modifiers,
        updateStateModifier
    ]);
    const popperInstanceRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef();
    (0,_helpers_useIsomorphicLayout__WEBPACK_IMPORTED_MODULE_1__.useIsomorphicLayoutEffect)(() => {
        if (popperInstanceRef && popperInstanceRef.current) {
            popperInstanceRef.current.setOptions(popperOptions);
        }
    }, [popperOptions]);
    (0,_helpers_useIsomorphicLayout__WEBPACK_IMPORTED_MODULE_1__.useIsomorphicLayoutEffect)(() => {
        if (referenceElement == null || popperElement == null) {
            return;
        }
        const createPopper = options.createPopper || _popper_core_popper__WEBPACK_IMPORTED_MODULE_2__.createPopper;
        const popperInstance = createPopper(referenceElement, popperElement, popperOptions);
        popperInstanceRef.current = popperInstance;
        return () => {
            popperInstance.destroy();
            popperInstanceRef.current = null;
        };
    }, [referenceElement, popperElement, options.createPopper]);
    return {
        state: popperInstanceRef.current ? popperInstanceRef.current.state : null,
        styles: state.styles,
        attributes: state.attributes,
        update: popperInstanceRef.current ? popperInstanceRef.current.update : null,
        forceUpdate: popperInstanceRef.current ? popperInstanceRef.current.forceUpdate : null
    };
};
//# sourceMappingURL=usePopper.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js":
/*!***************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "KEY_CODES": () => (/* binding */ KEY_CODES),
/* harmony export */   "SIDE": () => (/* binding */ SIDE),
/* harmony export */   "KEYHANDLER_DIRECTION": () => (/* binding */ KEYHANDLER_DIRECTION),
/* harmony export */   "ValidatedOptions": () => (/* binding */ ValidatedOptions)
/* harmony export */ });
const KEY_CODES = { ARROW_UP: 38, ARROW_DOWN: 40, ESCAPE_KEY: 27, TAB: 9, ENTER: 13, SPACE: 32 };
const SIDE = { RIGHT: 'right', LEFT: 'left', BOTH: 'both', NONE: 'none' };
const KEYHANDLER_DIRECTION = { UP: 'up', DOWN: 'down', RIGHT: 'right', LEFT: 'left' };
var ValidatedOptions;
(function (ValidatedOptions) {
    ValidatedOptions["success"] = "success";
    ValidatedOptions["error"] = "error";
    ValidatedOptions["warning"] = "warning";
    ValidatedOptions["default"] = "default";
})(ValidatedOptions || (ValidatedOptions = {}));
//# sourceMappingURL=constants.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/favorites.js":
/*!***************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/favorites.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "createRenderableFavorites": () => (/* binding */ createRenderableFavorites),
/* harmony export */   "extendItemsWithFavorite": () => (/* binding */ extendItemsWithFavorite)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _components_ApplicationLauncher_ApplicationLauncherSeparator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/ApplicationLauncher/ApplicationLauncherSeparator */ "./node_modules/@patternfly/react-core/dist/esm/components/ApplicationLauncher/ApplicationLauncherSeparator.js");
/* harmony import */ var _components_Divider_Divider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/Divider/Divider */ "./node_modules/@patternfly/react-core/dist/esm/components/Divider/Divider.js");



/**
 * This function is a helper for creating an array of renderable favorite items for the Application launcher or Select
 *
 * @param {object} items The items rendered in Select or Application aLauncher
 * @param {boolean} isGrouped Flag indicating if items are grouped
 * @param {any[]} favorites Array of ids of favorited items
 * @param {boolean} isEnterTriggersArrowDown Flag indicating if we should add isEnterTriggersArrowDown to favorited item
 */
const createRenderableFavorites = (items, isGrouped, favorites, isEnterTriggersArrowDown) => {
    if (isGrouped) {
        const favoriteItems = [];
        items.forEach(group => {
            if (favorites.length > 0) {
                return (group.props.children &&
                    group.props.children
                        .filter(item => favorites.includes(item.props.id))
                        .map(item => {
                        if (isEnterTriggersArrowDown) {
                            return favoriteItems.push(react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(item, {
                                isFavorite: true,
                                enterTriggersArrowDown: isEnterTriggersArrowDown,
                                id: `favorite-${item.props.id}`
                            }));
                        }
                        else {
                            return favoriteItems.push(react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(item, { isFavorite: true, id: `favorite-${item.props.id}` }));
                        }
                    }));
            }
        });
        return favoriteItems;
    }
    return items
        .filter(item => favorites.includes(item.props.id))
        .map(item => react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(item, { isFavorite: true, enterTriggersArrowDown: isEnterTriggersArrowDown }));
};
/**
 * This function is a helper for extending the array of renderable favorite with the select/application launcher items to  render in the Application launcher or Select
 *
 * @param {object} items The items rendered in Select or Application aLauncher
 * @param {boolean} isGrouped Flag indicating if items are grouped
 * @param {any[]} favorites Array of ids of favorited items
 */
const extendItemsWithFavorite = (items, isGrouped, favorites) => {
    if (isGrouped) {
        return items.map(group => react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(group, {
            children: react__WEBPACK_IMPORTED_MODULE_0__.Children.map(group.props.children, item => {
                if (item.type === _components_ApplicationLauncher_ApplicationLauncherSeparator__WEBPACK_IMPORTED_MODULE_1__.ApplicationLauncherSeparator || item.type === _components_Divider_Divider__WEBPACK_IMPORTED_MODULE_2__.Divider) {
                    return item;
                }
                return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(item, {
                    isFavorite: favorites.some(favoriteId => favoriteId === item.props.id || `favorite-${favoriteId}` === item.props.id)
                });
            })
        }));
    }
    return items.map(item => react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(item, {
        isFavorite: favorites.some(favoriteId => favoriteId === item.props.id)
    }));
};
//# sourceMappingURL=favorites.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/fileUtils.js":
/*!***************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/fileUtils.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "fileReaderType": () => (/* binding */ fileReaderType),
/* harmony export */   "readFile": () => (/* binding */ readFile)
/* harmony export */ });
var fileReaderType;
(function (fileReaderType) {
    fileReaderType["text"] = "text";
    fileReaderType["dataURL"] = "dataURL";
})(fileReaderType || (fileReaderType = {}));
/**
 * Read a file using the FileReader API, either as a plain text string or as a DataURL string.
 * Returns a promise which will resolve with the file contents as a string or reject with a DOMException.
 *
 * @param {File} fileHandle - File object to read
 * @param {fileReaderType} type - How to read it
 */
function readFile(fileHandle, type) {
    return new Promise((resolve, reject) => {
        const reader = new FileReader();
        reader.onload = () => resolve(reader.result);
        reader.onerror = () => reject(reader.error);
        if (type === fileReaderType.text) {
            reader.readAsText(fileHandle);
        }
        else if (type === fileReaderType.dataURL) {
            reader.readAsDataURL(fileHandle);
        }
        else {
            reject('unknown type');
        }
    });
}
//# sourceMappingURL=fileUtils.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/htmlConstants.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/htmlConstants.js ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ASTERISK": () => (/* binding */ ASTERISK)
/* harmony export */ });
const ASTERISK = '*';
//# sourceMappingURL=htmlConstants.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/resizeObserver.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/resizeObserver.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getResizeObserver": () => (/* binding */ getResizeObserver)
/* harmony export */ });
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./util */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");

/**
 * This function creates a ResizeObserver used to handle resize events for the given containerRef. If ResizeObserver
 * or the given containerRef are not available, a window resize event listener is used by default.
 *
 * Example 1:
 *
 * private containerRef = React.createRef<HTMLDivElement>();
 * private observer: any = () => {};
 *
 * public componentDidMount() {
 *   this.observer = getResizeObserver(this.containerRef.current, this.handleResize);
 * }
 *
 * public componentWillUnmount() {
 *   this.observer();
 * }
 *
 * private handleResize = () => {
 *   if (this.containerRef.current && this.containerRef.current.clientWidth) {
 *     this.setState({ width: this.containerRef.current.clientWidth });
 *   }
 * };
 *
 * public render() {
 *   return (
 *     <div ref={this.containerRef} >
 *       <Chart width={this.state.width} ... />
 *     </div>
 *   );
 * }
 *
 * Example 2:
 *
 * private inputRef = React.createRef<HTMLInputElement>();
 * private observer: any = () => {};
 *
 * public componentDidMount() {
 *   this.observer = getResizeObserver(this.inputRef.current, this.handleResize);
 * }
 *
 * public componentWillUnmount() {
 *   this.observer();
 * }
 *
 * private handleResize = () => {
 *   if (this.inputRef.current) {
 *     trimLeft(inputRef.current, String(this.props.value));
 *   }
 * };
 *
 * public render() {
 *   return (
 *     <input ref={this.inputRef} ... />
 *   );
 * }
 *
 * @param {Element} containerRefElement The container reference to observe
 * @param {Function} handleResize The function to call for resize events
 * @return {Function} The function used to unobserve resize events
 */
const getResizeObserver = (containerRefElement, handleResize) => {
    let unobserve;
    if (_util__WEBPACK_IMPORTED_MODULE_0__.canUseDOM) {
        const { ResizeObserver } = window;
        if (containerRefElement && ResizeObserver) {
            const resizeObserver = new ResizeObserver((entries) => {
                // Wrap resize function in requestAnimationFrame to avoid "ResizeObserver loop limit exceeded" errors
                window.requestAnimationFrame(() => {
                    if (Array.isArray(entries) && entries.length > 0) {
                        handleResize();
                    }
                });
            });
            resizeObserver.observe(containerRefElement);
            unobserve = () => resizeObserver.unobserve(containerRefElement);
        }
        else {
            window.addEventListener('resize', handleResize);
            unobserve = () => window.removeEventListener('resize', handleResize);
        }
    }
    return () => {
        if (unobserve) {
            unobserve();
        }
    };
};
//# sourceMappingURL=resizeObserver.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/useIsomorphicLayout.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/useIsomorphicLayout.js ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "useIsomorphicLayoutEffect": () => (/* binding */ useIsomorphicLayoutEffect)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./util */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");


/**
 * Small wrapper around `useLayoutEffect` to get rid of the warning on SSR envs
 */
const useIsomorphicLayoutEffect = _util__WEBPACK_IMPORTED_MODULE_1__.canUseDOM ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_0__.useEffect;
//# sourceMappingURL=useIsomorphicLayout.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js":
/*!**********************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/helpers/util.js ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "capitalize": () => (/* binding */ capitalize),
/* harmony export */   "getUniqueId": () => (/* binding */ getUniqueId),
/* harmony export */   "debounce": () => (/* binding */ debounce),
/* harmony export */   "isElementInView": () => (/* binding */ isElementInView),
/* harmony export */   "sideElementIsOutOfView": () => (/* binding */ sideElementIsOutOfView),
/* harmony export */   "fillTemplate": () => (/* binding */ fillTemplate),
/* harmony export */   "keyHandler": () => (/* binding */ keyHandler),
/* harmony export */   "getNextIndex": () => (/* binding */ getNextIndex),
/* harmony export */   "pluralize": () => (/* binding */ pluralize),
/* harmony export */   "setBreakpointCssVars": () => (/* binding */ setBreakpointCssVars),
/* harmony export */   "formatBreakpointMods": () => (/* binding */ formatBreakpointMods),
/* harmony export */   "toCamel": () => (/* binding */ toCamel),
/* harmony export */   "canUseDOM": () => (/* binding */ canUseDOM),
/* harmony export */   "getTextWidth": () => (/* binding */ getTextWidth),
/* harmony export */   "innerDimensions": () => (/* binding */ innerDimensions),
/* harmony export */   "trimLeft": () => (/* binding */ trimLeft),
/* harmony export */   "preventedEvents": () => (/* binding */ preventedEvents)
/* harmony export */ });
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");


/**
 * @param {string} input - String to capitalize first letter
 */
function capitalize(input) {
    return input[0].toUpperCase() + input.substring(1);
}
/**
 * @param {string} prefix - String to prefix ID with
 */
function getUniqueId(prefix = 'pf') {
    const uid = new Date().getTime() +
        Math.random()
            .toString(36)
            .slice(2);
    return `${prefix}-${uid}`;
}
/**
 * @param { any } this - "This" reference
 * @param { Function } func - Function to debounce
 * @param { number } wait - Debounce amount
 */
function debounce(func, wait) {
    let timeout;
    return (...args) => {
        clearTimeout(timeout);
        timeout = setTimeout(() => func.apply(this, args), wait);
    };
}
/** This function returns whether or not an element is within the viewable area of a container. If partial is true,
 * then this function will return true even if only part of the element is in view.
 *
 * @param {HTMLElement} container  The container to check if the element is in view of.
 * @param {HTMLElement} element    The element to check if it is view
 * @param {boolean} partial   true if partial view is allowed
 *
 * @returns { boolean } True if the component is in View.
 */
function isElementInView(container, element, partial) {
    if (!container || !element) {
        return false;
    }
    const containerBounds = container.getBoundingClientRect();
    const elementBounds = element.getBoundingClientRect();
    const containerBoundsLeft = Math.floor(containerBounds.left);
    const containerBoundsRight = Math.floor(containerBounds.right);
    const elementBoundsLeft = Math.floor(elementBounds.left);
    const elementBoundsRight = Math.floor(elementBounds.right);
    // Check if in view
    const isTotallyInView = elementBoundsLeft >= containerBoundsLeft && elementBoundsRight <= containerBoundsRight;
    const isPartiallyInView = partial &&
        ((elementBoundsLeft < containerBoundsLeft && elementBoundsRight > containerBoundsLeft) ||
            (elementBoundsRight > containerBoundsRight && elementBoundsLeft < containerBoundsRight));
    // Return outcome
    return isTotallyInView || isPartiallyInView;
}
/** This function returns the side the element is out of view on (right, left or both)
 *
 * @param {HTMLElement} container    The container to check if the element is in view of.
 * @param {HTMLElement} element      The element to check if it is view
 *
 * @returns {string} right if the element is of the right, left if element is off the left or both if it is off on both sides.
 */
function sideElementIsOutOfView(container, element) {
    const containerBounds = container.getBoundingClientRect();
    const elementBounds = element.getBoundingClientRect();
    const containerBoundsLeft = Math.floor(containerBounds.left);
    const containerBoundsRight = Math.floor(containerBounds.right);
    const elementBoundsLeft = Math.floor(elementBounds.left);
    const elementBoundsRight = Math.floor(elementBounds.right);
    // Check if in view
    const isOffLeft = elementBoundsLeft < containerBoundsLeft;
    const isOffRight = elementBoundsRight > containerBoundsRight;
    let side = _constants__WEBPACK_IMPORTED_MODULE_1__.SIDE.NONE;
    if (isOffRight && isOffLeft) {
        side = _constants__WEBPACK_IMPORTED_MODULE_1__.SIDE.BOTH;
    }
    else if (isOffRight) {
        side = _constants__WEBPACK_IMPORTED_MODULE_1__.SIDE.RIGHT;
    }
    else if (isOffLeft) {
        side = _constants__WEBPACK_IMPORTED_MODULE_1__.SIDE.LEFT;
    }
    // Return outcome
    return side;
}
/** Interpolates a parameterized templateString using values from a templateVars object.
 * The templateVars object should have keys and values which match the templateString's parameters.
 * Example:
 *    const templateString: 'My name is ${firstName} ${lastName}';
 *    const templateVars: {
 *      firstName: 'Jon'
 *      lastName: 'Dough'
 *    };
 *    const result = fillTemplate(templateString, templateVars);
 *    // "My name is Jon Dough"
 *
 * @param {string} templateString  The string passed by the consumer
 * @param {object} templateVars The variables passed to the string
 *
 * @returns {string} The template string literal result
 */
function fillTemplate(templateString, templateVars) {
    return templateString.replace(/\${(.*?)}/g, (_, match) => templateVars[match] || '');
}
/**
 * This function allows for keyboard navigation through dropdowns. The custom argument is optional.
 *
 * @param {number} index The index of the element you're on
 * @param {number} innerIndex Inner index number
 * @param {string} position The orientation of the dropdown
 * @param {string[]} refsCollection Array of refs to the items in the dropdown
 * @param {object[]} kids Array of items in the dropdown
 * @param {boolean} [custom] Allows for handling of flexible content
 */
function keyHandler(index, innerIndex, position, refsCollection, kids, custom = false) {
    if (!Array.isArray(kids)) {
        return;
    }
    const isMultiDimensional = refsCollection.filter(ref => ref)[0].constructor === Array;
    let nextIndex = index;
    let nextInnerIndex = innerIndex;
    if (position === 'up') {
        if (index === 0) {
            // loop back to end
            nextIndex = kids.length - 1;
        }
        else {
            nextIndex = index - 1;
        }
    }
    else if (position === 'down') {
        if (index === kids.length - 1) {
            // loop back to beginning
            nextIndex = 0;
        }
        else {
            nextIndex = index + 1;
        }
    }
    else if (position === 'left') {
        if (innerIndex === 0) {
            nextInnerIndex = refsCollection[index].length - 1;
        }
        else {
            nextInnerIndex = innerIndex - 1;
        }
    }
    else if (position === 'right') {
        if (innerIndex === refsCollection[index].length - 1) {
            nextInnerIndex = 0;
        }
        else {
            nextInnerIndex = innerIndex + 1;
        }
    }
    if (refsCollection[nextIndex] === null ||
        refsCollection[nextIndex] === undefined ||
        (isMultiDimensional &&
            (refsCollection[nextIndex][nextInnerIndex] === null || refsCollection[nextIndex][nextInnerIndex] === undefined))) {
        keyHandler(nextIndex, nextInnerIndex, position, refsCollection, kids, custom);
    }
    else if (custom) {
        if (refsCollection[nextIndex].focus) {
            refsCollection[nextIndex].focus();
        }
        // eslint-disable-next-line react/no-find-dom-node
        const element = react_dom__WEBPACK_IMPORTED_MODULE_0__.findDOMNode(refsCollection[nextIndex]);
        element.focus();
    }
    else if (position !== 'tab') {
        if (isMultiDimensional) {
            refsCollection[nextIndex][nextInnerIndex].focus();
        }
        else {
            refsCollection[nextIndex].focus();
        }
    }
}
/** This function is a helper for keyboard navigation through dropdowns.
 *
 * @param {number} index The index of the element you're on
 * @param {string} position The orientation of the dropdown
 * @param {string[]} collection Array of refs to the items in the dropdown
 */
function getNextIndex(index, position, collection) {
    let nextIndex;
    if (position === 'up') {
        if (index === 0) {
            // loop back to end
            nextIndex = collection.length - 1;
        }
        else {
            nextIndex = index - 1;
        }
    }
    else if (index === collection.length - 1) {
        // loop back to beginning
        nextIndex = 0;
    }
    else {
        nextIndex = index + 1;
    }
    if (collection[nextIndex] === undefined || collection[nextIndex][0] === null) {
        return getNextIndex(nextIndex, position, collection);
    }
    else {
        return nextIndex;
    }
}
/** This function is a helper for pluralizing strings.
 *
 * @param {number} i The quantity of the string you want to pluralize
 * @param {string} singular The singular version of the string
 * @param {string} plural The change to the string that should occur if the quantity is not equal to 1.
 *                 Defaults to adding an 's'.
 */
function pluralize(i, singular, plural) {
    if (!plural) {
        plural = `${singular}s`;
    }
    return `${i || 0} ${i === 1 ? singular : plural}`;
}
/**
 * This function is a helper for turning arrays of breakpointMod objects for flex and grid into style object
 *
 * @param {object} mods The modifiers object
 * @param {string} css-variable The appropriate css variable for the component
 */
const setBreakpointCssVars = (mods, cssVar) => Object.entries(mods || {}).reduce((acc, [breakpoint, value]) => breakpoint === 'default' ? Object.assign(Object.assign({}, acc), { [cssVar]: value }) : Object.assign(Object.assign({}, acc), { [`${cssVar}-on-${breakpoint}`]: value }), {});
/**
 * This function is a helper for turning arrays of breakpointMod objects for data toolbar and flex into classes
 *
 * @param {object} mods The modifiers object
 * @param {any} styles The appropriate styles object for the component
 */
const formatBreakpointMods = (mods, styles, stylePrefix = '') => Object.entries(mods || {})
    .map(([breakpoint, mod]) => `${stylePrefix}${mod}${breakpoint !== 'default' ? `-on-${breakpoint}` : ''}`)
    .map(toCamel)
    .map(mod => mod.replace(/-?(\dxl)/gi, (_res, group) => `_${group}`))
    .map(modifierKey => styles.modifiers[modifierKey])
    .filter(Boolean)
    .join(' ');
const camelize = (s) => s
    .toUpperCase()
    .replace('-', '')
    .replace('_', '');
/**
 *
 * @param {string} s string to make camelCased
 */
const toCamel = (s) => s.replace(/([-_][a-z])/gi, camelize);
/**
 * Copied from exenv
 */
const canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
/**
 * Calculate the width of the text
 * Example:
 * getTextWidth('my text', node)
 *
 * @param {string} text The text to calculate the width for
 * @param {HTMLElement} node The HTML element
 */
const getTextWidth = (text, node) => {
    const computedStyle = getComputedStyle(node);
    // Firefox returns the empty string for .font, so this function creates the .font property manually
    const getFontFromComputedStyle = () => {
        let computedFont = '';
        // Firefox uses percentages for font-stretch, but Canvas does not accept percentages
        // so convert to keywords, as listed at:
        // https://developer.mozilla.org/en-US/docs/Web/CSS/font-stretch
        const fontStretchLookupTable = {
            '50%': 'ultra-condensed',
            '62.5%': 'extra-condensed',
            '75%': 'condensed',
            '87.5%': 'semi-condensed',
            '100%': 'normal',
            '112.5%': 'semi-expanded',
            '125%': 'expanded',
            '150%': 'extra-expanded',
            '200%': 'ultra-expanded'
        };
        // If the retrieved font-stretch percentage isn't found in the lookup table, use
        // 'normal' as a last resort.
        let fontStretch;
        if (computedStyle.fontStretch in fontStretchLookupTable) {
            fontStretch = fontStretchLookupTable[computedStyle.fontStretch];
        }
        else {
            fontStretch = 'normal';
        }
        computedFont =
            computedStyle.fontStyle +
                ' ' +
                computedStyle.fontVariant +
                ' ' +
                computedStyle.fontWeight +
                ' ' +
                fontStretch +
                ' ' +
                computedStyle.fontSize +
                '/' +
                computedStyle.lineHeight +
                ' ' +
                computedStyle.fontFamily;
        return computedFont;
    };
    const canvas = document.createElement('canvas');
    const context = canvas.getContext('2d');
    context.font = computedStyle.font || getFontFromComputedStyle();
    return context.measureText(text).width;
};
/**
 * Get the inner dimensions of an element
 *
 * @param {HTMLElement} node HTML element to calculate the inner dimensions for
 */
const innerDimensions = (node) => {
    const computedStyle = getComputedStyle(node);
    let width = node.clientWidth; // width with padding
    let height = node.clientHeight; // height with padding
    height -= parseFloat(computedStyle.paddingTop) + parseFloat(computedStyle.paddingBottom);
    width -= parseFloat(computedStyle.paddingLeft) + parseFloat(computedStyle.paddingRight);
    return { height, width };
};
/**
 * This function is a helper for truncating text content on the left, leaving the right side of the content in view
 *
 * @param {HTMLElement} node HTML element
 * @param {string} value The original text value
 */
const trimLeft = (node, value) => {
    const availableWidth = innerDimensions(node).width;
    let newValue = value;
    if (getTextWidth(value, node) > availableWidth) {
        // we have text overflow, trim the text to the left and add ... in the front until it fits
        while (getTextWidth(`...${newValue}`, node) > availableWidth) {
            newValue = newValue.substring(1);
        }
        // replace text with our truncated text
        if (node.value) {
            node.value = `...${newValue}`;
        }
        else {
            node.innerText = `...${newValue}`;
        }
    }
    else {
        if (node.value) {
            node.value = value;
        }
        else {
            node.innerText = value;
        }
    }
};
/**
 * @param {string[]} events - Operations to prevent when disabled
 */
const preventedEvents = (events) => events.reduce((handlers, eventToPrevent) => (Object.assign(Object.assign({}, handlers), { [eventToPrevent]: (event) => {
        event.preventDefault();
    } })), {});
//# sourceMappingURL=util.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/layouts/Bullseye/Bullseye.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/layouts/Bullseye/Bullseye.js ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Bullseye": () => (/* binding */ Bullseye)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_layouts_Bullseye_bullseye__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/layouts/Bullseye/bullseye */ "./node_modules/@patternfly/react-styles/css/layouts/Bullseye/bullseye.js");




const Bullseye = (_a) => {
    var { children = null, className = '', component = 'div' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "component"]);
    const Component = component;
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_layouts_Bullseye_bullseye__WEBPACK_IMPORTED_MODULE_3__["default"].bullseye, className) }, props), children));
};
Bullseye.displayName = 'Bullseye';
//# sourceMappingURL=Bullseye.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js":
/*!***************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Grid": () => (/* binding */ Grid)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_layouts_Grid_grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles/css/layouts/Grid/grid */ "./node_modules/@patternfly/react-styles/css/layouts/Grid/grid.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _styles_sizes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../styles/sizes */ "./node_modules/@patternfly/react-core/dist/esm/styles/sizes.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_l_grid_item_Order__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/l_grid_item_Order */ "./node_modules/@patternfly/react-tokens/dist/esm/l_grid_item_Order.js");
/* harmony import */ var _helpers_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers/util */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");







const Grid = (_a) => {
    var { children = null, className = '', component = 'div', hasGutter, span = null, order, style } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "component", "hasGutter", "span", "order", "style"]);
    const classes = [_patternfly_react_styles_css_layouts_Grid_grid__WEBPACK_IMPORTED_MODULE_2__["default"].grid, span && _patternfly_react_styles_css_layouts_Grid_grid__WEBPACK_IMPORTED_MODULE_2__["default"].modifiers[`all_${span}Col`]];
    const Component = component;
    Object.entries(_styles_sizes__WEBPACK_IMPORTED_MODULE_3__.DeviceSizes).forEach(([propKey, gridSpanModifier]) => {
        const key = propKey;
        const propValue = props[key];
        if (propValue) {
            classes.push(_patternfly_react_styles_css_layouts_Grid_grid__WEBPACK_IMPORTED_MODULE_2__["default"].modifiers[`all_${propValue}ColOn${gridSpanModifier}`]);
        }
        delete props[key];
    });
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(...classes, hasGutter && _patternfly_react_styles_css_layouts_Grid_grid__WEBPACK_IMPORTED_MODULE_2__["default"].modifiers.gutter, className), style: style || order ? Object.assign(Object.assign({}, style), (0,_helpers_util__WEBPACK_IMPORTED_MODULE_5__.setBreakpointCssVars)(order, _patternfly_react_tokens_dist_esm_l_grid_item_Order__WEBPACK_IMPORTED_MODULE_6__.l_grid_item_Order.name)) : undefined }, props), children));
};
Grid.displayName = 'Grid';
//# sourceMappingURL=Grid.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "GridItem": () => (/* binding */ GridItem)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_layouts_Grid_grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles/css/layouts/Grid/grid */ "./node_modules/@patternfly/react-styles/css/layouts/Grid/grid.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _styles_sizes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../styles/sizes */ "./node_modules/@patternfly/react-core/dist/esm/styles/sizes.js");
/* harmony import */ var _patternfly_react_tokens_dist_esm_l_grid_item_Order__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-tokens/dist/esm/l_grid_item_Order */ "./node_modules/@patternfly/react-tokens/dist/esm/l_grid_item_Order.js");
/* harmony import */ var _helpers_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../helpers/util */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");







const GridItem = (_a) => {
    var { children = null, className = '', component = 'div', span = null, rowSpan = null, offset = null, order, style } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "component", "span", "rowSpan", "offset", "order", "style"]);
    const classes = [
        _patternfly_react_styles_css_layouts_Grid_grid__WEBPACK_IMPORTED_MODULE_2__["default"].gridItem,
        span && _patternfly_react_styles_css_layouts_Grid_grid__WEBPACK_IMPORTED_MODULE_2__["default"].modifiers[`${span}Col`],
        rowSpan && _patternfly_react_styles_css_layouts_Grid_grid__WEBPACK_IMPORTED_MODULE_2__["default"].modifiers[`${rowSpan}Row`],
        offset && _patternfly_react_styles_css_layouts_Grid_grid__WEBPACK_IMPORTED_MODULE_2__["default"].modifiers[`offset_${offset}Col`]
    ];
    const Component = component;
    Object.entries(_styles_sizes__WEBPACK_IMPORTED_MODULE_3__.DeviceSizes).forEach(([propKey, classModifier]) => {
        const key = propKey;
        const rowSpanKey = `${key}RowSpan`;
        const offsetKey = `${key}Offset`;
        const spanValue = props[key];
        const rowSpanValue = props[rowSpanKey];
        const offsetValue = props[offsetKey];
        if (spanValue) {
            classes.push(_patternfly_react_styles_css_layouts_Grid_grid__WEBPACK_IMPORTED_MODULE_2__["default"].modifiers[`${spanValue}ColOn${classModifier}`]);
        }
        if (rowSpanValue) {
            classes.push(_patternfly_react_styles_css_layouts_Grid_grid__WEBPACK_IMPORTED_MODULE_2__["default"].modifiers[`${rowSpanValue}RowOn${classModifier}`]);
        }
        if (offsetValue) {
            classes.push(_patternfly_react_styles_css_layouts_Grid_grid__WEBPACK_IMPORTED_MODULE_2__["default"].modifiers[`offset_${offsetValue}ColOn${classModifier}`]);
        }
        delete props[key];
        delete props[rowSpanKey];
        delete props[offsetKey];
    });
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(...classes, className), style: style || order ? Object.assign(Object.assign({}, style), (0,_helpers_util__WEBPACK_IMPORTED_MODULE_5__.setBreakpointCssVars)(order, _patternfly_react_tokens_dist_esm_l_grid_item_Order__WEBPACK_IMPORTED_MODULE_6__.l_grid_item_Order.name)) : undefined }, props), children));
};
GridItem.displayName = 'GridItem';
//# sourceMappingURL=GridItem.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-core/dist/esm/styles/sizes.js":
/*!**********************************************************************!*\
  !*** ./node_modules/@patternfly/react-core/dist/esm/styles/sizes.js ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "BaseSizes": () => (/* binding */ BaseSizes),
/* harmony export */   "DeviceSizes": () => (/* binding */ DeviceSizes)
/* harmony export */ });
var BaseSizes;
(function (BaseSizes) {
    BaseSizes["xs"] = "xs";
    BaseSizes["sm"] = "sm";
    BaseSizes["md"] = "md";
    BaseSizes["lg"] = "lg";
    BaseSizes["xl"] = "xl";
    BaseSizes["2xl"] = "2xl";
    BaseSizes["3xl"] = "3xl";
    BaseSizes["4xl"] = "4xl";
})(BaseSizes || (BaseSizes = {}));
var DeviceSizes;
(function (DeviceSizes) {
    DeviceSizes["sm"] = "Sm";
    DeviceSizes["md"] = "Md";
    DeviceSizes["lg"] = "Lg";
    DeviceSizes["xl"] = "Xl";
    DeviceSizes["xl2"] = "_2xl";
})(DeviceSizes || (DeviceSizes = {}));
//# sourceMappingURL=sizes.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js":
/*!*********************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/createIcon.js ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "IconSize": () => (/* binding */ IconSize),
/* harmony export */   "getSize": () => (/* binding */ getSize),
/* harmony export */   "createIcon": () => (/* binding */ createIcon)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");


var IconSize;
(function (IconSize) {
    IconSize["sm"] = "sm";
    IconSize["md"] = "md";
    IconSize["lg"] = "lg";
    IconSize["xl"] = "xl";
})(IconSize || (IconSize = {}));
const getSize = (size) => {
    switch (size) {
        case IconSize.sm:
            return '1em';
        case IconSize.md:
            return '1.5em';
        case IconSize.lg:
            return '2em';
        case IconSize.xl:
            return '3em';
        default:
            return '1em';
    }
};
let currentId = 0;
/**
 * Factory to create Icon class components for consumers
 */
function createIcon({ name, xOffset = 0, yOffset = 0, width, height, svgPath }) {
    var _a;
    return _a = class SVGIcon extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
            constructor() {
                super(...arguments);
                this.id = `icon-title-${currentId++}`;
            }
            render() {
                const _a = this.props, { size, color, title, noVerticalAlign } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["size", "color", "title", "noVerticalAlign"]);
                const hasTitle = Boolean(title);
                const heightWidth = getSize(size);
                const baseAlign = -0.125 * Number.parseFloat(heightWidth);
                const style = noVerticalAlign ? null : { verticalAlign: `${baseAlign}em` };
                const viewBox = [xOffset, yOffset, width, height].join(' ');
                return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", Object.assign({ style: style, fill: color, height: heightWidth, width: heightWidth, viewBox: viewBox, "aria-labelledby": hasTitle ? this.id : null, "aria-hidden": hasTitle ? null : true, role: "img" }, props),
                    hasTitle && react__WEBPACK_IMPORTED_MODULE_0__.createElement("title", { id: this.id }, title),
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", { d: svgPath })));
            }
        },
        _a.displayName = name,
        _a.defaultProps = {
            color: 'currentColor',
            size: IconSize.sm,
            noVerticalAlign: false
        },
        _a;
}
//# sourceMappingURL=createIcon.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-double-left-icon.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/angle-double-left-icon.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "AngleDoubleLeftIconConfig": () => (/* binding */ AngleDoubleLeftIconConfig),
/* harmony export */   "AngleDoubleLeftIcon": () => (/* binding */ AngleDoubleLeftIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const AngleDoubleLeftIconConfig = {
  name: 'AngleDoubleLeftIcon',
  height: 512,
  width: 448,
  svgPath: 'M223.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L319.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L393.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34zm-192 34l136 136c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9L127.9 256l96.4-96.4c9.4-9.4 9.4-24.6 0-33.9L201.7 103c-9.4-9.4-24.6-9.4-33.9 0l-136 136c-9.5 9.4-9.5 24.6-.1 34z',
  yOffset: 0,
  xOffset: 0,
};

const AngleDoubleLeftIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(AngleDoubleLeftIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AngleDoubleLeftIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-double-right-icon.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/angle-double-right-icon.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "AngleDoubleRightIconConfig": () => (/* binding */ AngleDoubleRightIconConfig),
/* harmony export */   "AngleDoubleRightIcon": () => (/* binding */ AngleDoubleRightIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const AngleDoubleRightIconConfig = {
  name: 'AngleDoubleRightIcon',
  height: 512,
  width: 448,
  svgPath: 'M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34zm192-34l-136-136c-9.4-9.4-24.6-9.4-33.9 0l-22.6 22.6c-9.4 9.4-9.4 24.6 0 33.9l96.4 96.4-96.4 96.4c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l136-136c9.4-9.2 9.4-24.4 0-33.8z',
  yOffset: 0,
  xOffset: 0,
};

const AngleDoubleRightIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(AngleDoubleRightIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AngleDoubleRightIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-down-icon.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/angle-down-icon.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "AngleDownIconConfig": () => (/* binding */ AngleDownIconConfig),
/* harmony export */   "AngleDownIcon": () => (/* binding */ AngleDownIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const AngleDownIconConfig = {
  name: 'AngleDownIcon',
  height: 512,
  width: 320,
  svgPath: 'M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z',
  yOffset: 0,
  xOffset: 0,
};

const AngleDownIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(AngleDownIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AngleDownIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-left-icon.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/angle-left-icon.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "AngleLeftIconConfig": () => (/* binding */ AngleLeftIconConfig),
/* harmony export */   "AngleLeftIcon": () => (/* binding */ AngleLeftIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const AngleLeftIconConfig = {
  name: 'AngleLeftIcon',
  height: 512,
  width: 256,
  svgPath: 'M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z',
  yOffset: 0,
  xOffset: 0,
};

const AngleLeftIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(AngleLeftIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AngleLeftIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-right-icon.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/angle-right-icon.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "AngleRightIconConfig": () => (/* binding */ AngleRightIconConfig),
/* harmony export */   "AngleRightIcon": () => (/* binding */ AngleRightIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const AngleRightIconConfig = {
  name: 'AngleRightIcon',
  height: 512,
  width: 256,
  svgPath: 'M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z',
  yOffset: 0,
  xOffset: 0,
};

const AngleRightIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(AngleRightIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AngleRightIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-up-icon.js":
/*!******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/angle-up-icon.js ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "AngleUpIconConfig": () => (/* binding */ AngleUpIconConfig),
/* harmony export */   "AngleUpIcon": () => (/* binding */ AngleUpIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const AngleUpIconConfig = {
  name: 'AngleUpIcon',
  height: 512,
  width: 320,
  svgPath: 'M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z',
  yOffset: 0,
  xOffset: 0,
};

const AngleUpIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(AngleUpIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AngleUpIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/arrow-right-icon.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/arrow-right-icon.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ArrowRightIconConfig": () => (/* binding */ ArrowRightIconConfig),
/* harmony export */   "ArrowRightIcon": () => (/* binding */ ArrowRightIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const ArrowRightIconConfig = {
  name: 'ArrowRightIcon',
  height: 512,
  width: 448,
  svgPath: 'M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z',
  yOffset: 0,
  xOffset: 0,
};

const ArrowRightIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(ArrowRightIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ArrowRightIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/arrows-alt-v-icon.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/arrows-alt-v-icon.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ArrowsAltVIconConfig": () => (/* binding */ ArrowsAltVIconConfig),
/* harmony export */   "ArrowsAltVIcon": () => (/* binding */ ArrowsAltVIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const ArrowsAltVIconConfig = {
  name: 'ArrowsAltVIcon',
  height: 512,
  width: 256,
  svgPath: 'M214.059 377.941H168V134.059h46.059c21.382 0 32.09-25.851 16.971-40.971L144.971 7.029c-9.373-9.373-24.568-9.373-33.941 0L24.971 93.088c-15.119 15.119-4.411 40.971 16.971 40.971H88v243.882H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.568 9.373 33.941 0l86.059-86.059c15.12-15.119 4.412-40.971-16.97-40.971z',
  yOffset: 0,
  xOffset: 0,
};

const ArrowsAltVIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(ArrowsAltVIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ArrowsAltVIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/ban-icon.js":
/*!*************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/ban-icon.js ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "BanIconConfig": () => (/* binding */ BanIconConfig),
/* harmony export */   "BanIcon": () => (/* binding */ BanIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const BanIconConfig = {
  name: 'BanIcon',
  height: 512,
  width: 512,
  svgPath: 'M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z',
  yOffset: 0,
  xOffset: 0,
};

const BanIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(BanIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (BanIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/bell-icon.js":
/*!**************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/bell-icon.js ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "BellIconConfig": () => (/* binding */ BellIconConfig),
/* harmony export */   "BellIcon": () => (/* binding */ BellIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const BellIconConfig = {
  name: 'BellIcon',
  height: 1024,
  width: 896,
  svgPath: 'M448,0 C465.333333,0 480.333333,6.33333333 493,19 C505.666667,31.6666667 512,46.6666667 512,64 L512,106 L514.23,106.45 C587.89,121.39 648.48,157.24 696,214 C744,271.333333 768,338.666667 768,416 C768,500 780,568.666667 804,622 C818.666667,652.666667 841.333333,684 872,716 C873.773676,718.829136 875.780658,721.505113 878,724 C890,737.333333 896,752.333333 896,769 C896,785.666667 890,800.333333 878,813 C866,825.666667 850.666667,832 832,832 L63.3,832 C44.9533333,831.84 29.8533333,825.506667 18,813 C6,800.333333 0,785.666667 0,769 C0,752.333333 6,737.333333 18,724 L24,716 L25.06,714.9 C55.1933333,683.28 77.5066667,652.313333 92,622 C116,568.666667 128,500 128,416 C128,338.666667 152,271.333333 200,214 C248,156.666667 309.333333,120.666667 384,106 L384,63.31 C384.166667,46.27 390.5,31.5 403,19 C415.666667,6.33333333 430.666667,0 448,0 Z M576,896 L576,897.08 C575.74,932.6 563.073333,962.573333 538,987 C512.666667,1011.66667 482.666667,1024 448,1024 C413.333333,1024 383.333333,1011.66667 358,987 C332.666667,962.333333 320,932 320,896 L576,896 Z',
  yOffset: 0,
  xOffset: 0,
};

const BellIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(BellIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (BellIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/caret-down-icon.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/caret-down-icon.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CaretDownIconConfig": () => (/* binding */ CaretDownIconConfig),
/* harmony export */   "CaretDownIcon": () => (/* binding */ CaretDownIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const CaretDownIconConfig = {
  name: 'CaretDownIcon',
  height: 512,
  width: 320,
  svgPath: 'M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z',
  yOffset: 0,
  xOffset: 0,
};

const CaretDownIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(CaretDownIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CaretDownIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/catalog-icon.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/catalog-icon.js ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CatalogIconConfig": () => (/* binding */ CatalogIconConfig),
/* harmony export */   "CatalogIcon": () => (/* binding */ CatalogIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const CatalogIconConfig = {
  name: 'CatalogIcon',
  height: 1024,
  width: 1088,
  svgPath: 'M576,160 C687.3,88.6 874.6,32 960,32 L960,800 C898.8,783.1 738,760.5 576,864 L576,160 Z M1024,96 C1088,96 1088,162.8 1088,162.8 L1088,928 C1088,992 985.7,989.9 985.7,989.9 C863.1,804.7 576,992 576,992 L576,925.4 C863,728.7 1024,928 1024,928 L1024,96 Z M128,800 L128,32 C212.9,32 400.6,88.3 512,160 L512,864 C352,760.5 189.3,783.2 128,800 Z M512,925.4 L512,992 C512,992 227.9,805.8 102.5,989.9 C102.5,989.9 0,992 0,928 L0,162.8 C0,162.8 0,96 64,96 L64,928 C64,927.9 226,728.7 512,925.4 Z',
  yOffset: 0,
  xOffset: 0,
};

const CatalogIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(CatalogIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CatalogIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/check-circle-icon.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/check-circle-icon.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CheckCircleIconConfig": () => (/* binding */ CheckCircleIconConfig),
/* harmony export */   "CheckCircleIcon": () => (/* binding */ CheckCircleIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const CheckCircleIconConfig = {
  name: 'CheckCircleIcon',
  height: 512,
  width: 512,
  svgPath: 'M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z',
  yOffset: 0,
  xOffset: 0,
};

const CheckCircleIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(CheckCircleIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CheckCircleIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/check-icon.js":
/*!***************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/check-icon.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CheckIconConfig": () => (/* binding */ CheckIconConfig),
/* harmony export */   "CheckIcon": () => (/* binding */ CheckIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const CheckIconConfig = {
  name: 'CheckIcon',
  height: 512,
  width: 512,
  svgPath: 'M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z',
  yOffset: 0,
  xOffset: 0,
};

const CheckIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(CheckIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CheckIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/cluster-icon.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/cluster-icon.js ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ClusterIconConfig": () => (/* binding */ ClusterIconConfig),
/* harmony export */   "ClusterIcon": () => (/* binding */ ClusterIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const ClusterIconConfig = {
  name: 'ClusterIcon',
  height: 1024,
  width: 1024,
  svgPath: 'M1013.1,330.877049 C1005.8,323.577049 997.2,319.977049 987.4,319.977049 L36.6,319.977049 C26.6,319.977049 18.2,323.577049 10.9,330.877049 C3.6,338.177049 0,346.777049 0,356.577049 L0,475.277049 C0,485.277049 3.6,493.677049 10.7,501.077049 C18,508.377049 26.4,511.977049 36.4,511.977049 L987.4,511.977049 C997.4,511.977049 1005.8,508.377049 1013.1,501.077049 C1020.4,493.777049 1024,485.377049 1024,475.377049 L1024,356.577049 C1024,346.577049 1020.4,338.177049 1013.1,330.877049 Z M128,447.977049 L64,447.977049 L64,383.977049 L128,383.977049 L128,447.977049 Z M256,447.977049 L192,447.977049 L192,383.977049 L256,383.977049 L256,447.977049 Z M384,447.977049 L320,447.977049 L320,383.977049 L384,383.977049 L384,447.977049 Z M512,447.977049 L448,447.977049 L448,383.977049 L512,383.977049 L512,447.977049 Z M960,447.977049 L896,447.977049 L896,383.977049 L960,383.977049 L960,447.977049 Z M0,245.177049 C0,235.977049 1.2,234.677049 9.6,226.477049 C9.6,226.477049 151.09,86.2970491 161.6,74.0070491 C172.11,61.7170491 185.5,64.2070491 185.5,64.2070491 L840.62,64.2070491 C840.62,64.2070491 852.42,62.8070491 863.11,74.4070491 C873.61,85.9970491 1013.5,226.407049 1013.5,226.407049 C1021.9,234.807049 1024,236.107049 1024,245.207049 C1024,254.807049 1012.3,256.007049 1000.7,256.007049 L22.1,256.007049 C10.8,256.077049 0,254.377049 0,245.177049 Z M1013.1,842.877049 C1005.8,835.577049 997.2,831.977049 987.4,831.977049 L36.6,831.977049 C26.6,831.977049 18.2,835.577049 10.9,842.877049 C3.6,850.177049 0,858.777049 0,868.577049 L0,987.277049 C0,997.277049 3.6,1005.67705 10.7,1013.07705 C18,1020.37705 26.4,1023.97705 36.4,1023.97705 L987.4,1023.97705 C997.4,1023.97705 1005.8,1020.37705 1013.1,1013.07705 C1020.4,1005.77705 1024,997.377049 1024,987.377049 L1024,868.577049 C1024,858.577049 1020.4,850.177049 1013.1,842.877049 Z M128,959.977049 L64,959.977049 L64,895.977049 L128,895.977049 L128,959.977049 Z M256,959.977049 L192,959.977049 L192,895.977049 L256,895.977049 L256,959.977049 Z M384,959.977049 L320,959.977049 L320,895.977049 L384,895.977049 L384,959.977049 Z M512,959.977049 L448,959.977049 L448,895.977049 L512,895.977049 L512,959.977049 Z M960,959.977049 L896,959.977049 L896,895.977049 L960,895.977049 L960,959.977049 Z M1013.1,586.877049 C1005.8,579.577049 997.2,575.977049 987.4,575.977049 L36.6,575.977049 C26.6,575.977049 18.2,579.577049 10.9,586.877049 C3.6,594.177049 0,602.777049 0,612.577049 L0,731.277049 C0,741.277049 3.6,749.677049 10.7,757.077049 C18,764.377049 26.4,767.977049 36.4,767.977049 L987.4,767.977049 C997.4,767.977049 1005.8,764.377049 1013.1,757.077049 C1020.4,749.777049 1024,741.377049 1024,731.377049 L1024,612.577049 C1024,602.577049 1020.4,594.177049 1013.1,586.877049 Z M128,703.977049 L64,703.977049 L64,639.977049 L128,639.977049 L128,703.977049 Z M256,703.977049 L192,703.977049 L192,639.977049 L256,639.977049 L256,703.977049 Z M384,703.977049 L320,703.977049 L320,639.977049 L384,639.977049 L384,703.977049 Z M512,703.977049 L448,703.977049 L448,639.977049 L512,639.977049 L512,703.977049 Z M960,703.977049 L896,703.977049 L896,639.977049 L960,639.977049 L960,703.977049 Z',
  yOffset: 0,
  xOffset: 0,
};

const ClusterIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(ClusterIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ClusterIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/cog-icon.js":
/*!*************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/cog-icon.js ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CogIconConfig": () => (/* binding */ CogIconConfig),
/* harmony export */   "CogIcon": () => (/* binding */ CogIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const CogIconConfig = {
  name: 'CogIcon',
  height: 512,
  width: 512,
  svgPath: 'M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z',
  yOffset: 0,
  xOffset: 0,
};

const CogIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(CogIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CogIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/copy-icon.js":
/*!**************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/copy-icon.js ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CopyIconConfig": () => (/* binding */ CopyIconConfig),
/* harmony export */   "CopyIcon": () => (/* binding */ CopyIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const CopyIconConfig = {
  name: 'CopyIcon',
  height: 512,
  width: 448,
  svgPath: 'M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z',
  yOffset: 0,
  xOffset: 0,
};

const CopyIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(CopyIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CopyIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/cube-icon.js":
/*!**************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/cube-icon.js ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CubeIconConfig": () => (/* binding */ CubeIconConfig),
/* harmony export */   "CubeIcon": () => (/* binding */ CubeIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const CubeIconConfig = {
  name: 'CubeIcon',
  height: 512,
  width: 512,
  svgPath: 'M239.1 6.3l-208 78c-18.7 7-31.1 25-31.1 45v225.1c0 18.2 10.3 34.8 26.5 42.9l208 104c13.5 6.8 29.4 6.8 42.9 0l208-104c16.3-8.1 26.5-24.8 26.5-42.9V129.3c0-20-12.4-37.9-31.1-44.9l-208-78C262 2.2 250 2.2 239.1 6.3zM256 68.4l192 72v1.1l-192 78-192-78v-1.1l192-72zm32 356V275.5l160-65v133.9l-160 80z',
  yOffset: 0,
  xOffset: 0,
};

const CubeIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(CubeIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CubeIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/database-icon.js":
/*!******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/database-icon.js ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DatabaseIconConfig": () => (/* binding */ DatabaseIconConfig),
/* harmony export */   "DatabaseIcon": () => (/* binding */ DatabaseIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const DatabaseIconConfig = {
  name: 'DatabaseIcon',
  height: 512,
  width: 448,
  svgPath: 'M448 73.143v45.714C448 159.143 347.667 192 224 192S0 159.143 0 118.857V73.143C0 32.857 100.333 0 224 0s224 32.857 224 73.143zM448 176v102.857C448 319.143 347.667 352 224 352S0 319.143 0 278.857V176c48.125 33.143 136.208 48.572 224 48.572S399.874 209.143 448 176zm0 160v102.857C448 479.143 347.667 512 224 512S0 479.143 0 438.857V336c48.125 33.143 136.208 48.572 224 48.572S399.874 369.143 448 336z',
  yOffset: 0,
  xOffset: 0,
};

const DatabaseIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(DatabaseIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DatabaseIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/domain-icon.js":
/*!****************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/domain-icon.js ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DomainIconConfig": () => (/* binding */ DomainIconConfig),
/* harmony export */   "DomainIcon": () => (/* binding */ DomainIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const DomainIconConfig = {
  name: 'DomainIcon',
  height: 1024,
  width: 1024,
  svgPath: 'M544,511.9 C561.476067,511.948945 575.664266,525.962873 575.994253,543.371439 L576,543.9 L576,991.9 C575.951055,1009.37607 561.937127,1023.56427 544.528561,1023.89425 L544,1023.9 L352,1023.9 C334.523933,1023.85105 320.335734,1009.83713 320.005747,992.428561 L320,991.9 L320,543.9 C320.048945,526.423933 334.062873,512.235734 351.471439,511.905747 L352,511.9 L544,511.9 Z M704,576 L704,960 L640,960 L640,576 L704,576 Z M512,896 L384,896 L384,960 L512,960 L512,896 Z M960,513.1 L960,513.2 C960,665.4 884.1,799.9 768,880.9 L768,880.9 L768,799.4 C773.3,794.6 778.4,789.8 783.5,784.7 C855.624209,712.728348 896.108133,614.991161 896,513.1 L896,513.1 L960,513.1 Z M149.8,385 C100.714385,524.561202 135.973879,679.905126 240.5,784.6 C245.5,789.7 250.7,794.6 256,799.3 L256,799.3 L256,880.8 C139.9,799.8 63.9999013,665.3 63.9999013,513.1 C63.9712238,469.725105 70.236499,426.575548 82.6,385 L82.6,385 Z M512.1,704 L384,704 L384,832 L512.1,832 L512.1,704 Z M512,576 L448,576 L448,640 L512,640 L512,576 Z M864,-1.13686838e-13 C881.496381,-1.13686838e-13 895.713128,14.0417829 895.995713,31.4708215 L896,32 L896,406 C896,423.496381 881.958217,437.713128 864.529179,437.995713 L864,438 L608,438 C590.503619,438 576.286872,423.958217 576.004287,406.529179 L576,406 L576,32 C576,14.5036191 590.041783,0.286872383 607.470821,0.00428708574 L608,-1.13686838e-13 L864,-1.13686838e-13 Z M1024,64 L1024,384 L960,384 L960,64 L1024,64 Z M832,256 L640,256 L640,352 L832,352 L832,256 Z M224,-5.68434189e-14 C241.476067,0.0489452394 255.664266,14.0628726 255.994253,31.4714395 L256,32 L256,288 C255.951055,305.476067 241.937127,319.664266 224.528561,319.994253 L224,320 L32,320 C14.5239331,319.951055 0.335734448,305.937127 0.00574685353,288.528561 L0,288 L0,32 C0.0489452394,14.5239331 14.0628726,0.335734448 31.4714395,0.00574685353 L32,-5.68434189e-14 L224,-5.68434189e-14 Z M192,192 L64,192 L64,256 L192,256 L192,192 Z M512,65 L512,129 C460.642759,128.90985 409.795141,139.181409 362.5,159.2 C347.917219,165.399771 333.724426,172.47947 320,180.4 L320,180.4 L320,108.2 C380.012207,79.7623165 445.590913,65.0071076 512,65 L512,65 Z M832,64 L736,64 L736,160 L832,160 L832,64 Z M192,64 L128,64 L128,128 L192,128 L192,64 Z',
  yOffset: 0,
  xOffset: 0,
};

const DomainIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(DomainIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DomainIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/ellipsis-h-icon.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/ellipsis-h-icon.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "EllipsisHIconConfig": () => (/* binding */ EllipsisHIconConfig),
/* harmony export */   "EllipsisHIcon": () => (/* binding */ EllipsisHIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const EllipsisHIconConfig = {
  name: 'EllipsisHIcon',
  height: 512,
  width: 512,
  svgPath: 'M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z',
  yOffset: 0,
  xOffset: 0,
};

const EllipsisHIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(EllipsisHIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (EllipsisHIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "EllipsisVIconConfig": () => (/* binding */ EllipsisVIconConfig),
/* harmony export */   "EllipsisVIcon": () => (/* binding */ EllipsisVIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const EllipsisVIconConfig = {
  name: 'EllipsisVIcon',
  height: 512,
  width: 192,
  svgPath: 'M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z',
  yOffset: 0,
  xOffset: 0,
};

const EllipsisVIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(EllipsisVIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (EllipsisVIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ExclamationCircleIconConfig": () => (/* binding */ ExclamationCircleIconConfig),
/* harmony export */   "ExclamationCircleIcon": () => (/* binding */ ExclamationCircleIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const ExclamationCircleIconConfig = {
  name: 'ExclamationCircleIcon',
  height: 512,
  width: 512,
  svgPath: 'M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z',
  yOffset: 0,
  xOffset: 0,
};

const ExclamationCircleIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(ExclamationCircleIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ExclamationCircleIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/exclamation-triangle-icon.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/exclamation-triangle-icon.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ExclamationTriangleIconConfig": () => (/* binding */ ExclamationTriangleIconConfig),
/* harmony export */   "ExclamationTriangleIcon": () => (/* binding */ ExclamationTriangleIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const ExclamationTriangleIconConfig = {
  name: 'ExclamationTriangleIcon',
  height: 512,
  width: 576,
  svgPath: 'M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z',
  yOffset: 0,
  xOffset: 0,
};

const ExclamationTriangleIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(ExclamationTriangleIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ExclamationTriangleIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/external-link-alt-icon.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/external-link-alt-icon.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ExternalLinkAltIconConfig": () => (/* binding */ ExternalLinkAltIconConfig),
/* harmony export */   "ExternalLinkAltIcon": () => (/* binding */ ExternalLinkAltIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const ExternalLinkAltIconConfig = {
  name: 'ExternalLinkAltIcon',
  height: 512,
  width: 512,
  svgPath: 'M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z',
  yOffset: 0,
  xOffset: 0,
};

const ExternalLinkAltIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(ExternalLinkAltIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ExternalLinkAltIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/eye-icon.js":
/*!*************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/eye-icon.js ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "EyeIconConfig": () => (/* binding */ EyeIconConfig),
/* harmony export */   "EyeIcon": () => (/* binding */ EyeIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const EyeIconConfig = {
  name: 'EyeIcon',
  height: 512,
  width: 576,
  svgPath: 'M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z',
  yOffset: 0,
  xOffset: 0,
};

const EyeIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(EyeIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (EyeIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/eye-slash-icon.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/eye-slash-icon.js ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "EyeSlashIconConfig": () => (/* binding */ EyeSlashIconConfig),
/* harmony export */   "EyeSlashIcon": () => (/* binding */ EyeSlashIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const EyeSlashIconConfig = {
  name: 'EyeSlashIcon',
  height: 512,
  width: 640,
  svgPath: 'M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z',
  yOffset: 0,
  xOffset: 0,
};

const EyeSlashIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(EyeSlashIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (EyeSlashIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/folder-icon.js":
/*!****************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/folder-icon.js ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "FolderIconConfig": () => (/* binding */ FolderIconConfig),
/* harmony export */   "FolderIcon": () => (/* binding */ FolderIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const FolderIconConfig = {
  name: 'FolderIcon',
  height: 512,
  width: 512,
  svgPath: 'M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z',
  yOffset: 0,
  xOffset: 0,
};

const FolderIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(FolderIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FolderIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/folder-open-icon.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/folder-open-icon.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "FolderOpenIconConfig": () => (/* binding */ FolderOpenIconConfig),
/* harmony export */   "FolderOpenIcon": () => (/* binding */ FolderOpenIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const FolderOpenIconConfig = {
  name: 'FolderOpenIcon',
  height: 512,
  width: 576,
  svgPath: 'M572.694 292.093L500.27 416.248A63.997 63.997 0 0 1 444.989 448H45.025c-18.523 0-30.064-20.093-20.731-36.093l72.424-124.155A64 64 0 0 1 152 256h399.964c18.523 0 30.064 20.093 20.73 36.093zM152 224h328v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49 64 0 85.49 0 112v278.046l69.077-118.418C86.214 242.25 117.989 224 152 224z',
  yOffset: 0,
  xOffset: 0,
};

const FolderOpenIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(FolderOpenIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FolderOpenIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/grip-vertical-icon.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/grip-vertical-icon.js ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "GripVerticalIconConfig": () => (/* binding */ GripVerticalIconConfig),
/* harmony export */   "GripVerticalIcon": () => (/* binding */ GripVerticalIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const GripVerticalIconConfig = {
  name: 'GripVerticalIcon',
  height: 512,
  width: 320,
  svgPath: 'M96 32H32C14.33 32 0 46.33 0 64v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zM288 32h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z',
  yOffset: 0,
  xOffset: 0,
};

const GripVerticalIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(GripVerticalIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (GripVerticalIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/help-icon.js":
/*!**************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/help-icon.js ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "HelpIconConfig": () => (/* binding */ HelpIconConfig),
/* harmony export */   "HelpIcon": () => (/* binding */ HelpIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const HelpIconConfig = {
  name: 'HelpIcon',
  height: 1024,
  width: 1024,
  svgPath: 'M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0',
  yOffset: 0,
  xOffset: 0,
};

const HelpIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(HelpIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (HelpIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/home-icon.js":
/*!**************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/home-icon.js ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "HomeIconConfig": () => (/* binding */ HomeIconConfig),
/* harmony export */   "HomeIcon": () => (/* binding */ HomeIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const HomeIconConfig = {
  name: 'HomeIcon',
  height: 512,
  width: 576,
  svgPath: 'M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z',
  yOffset: 0,
  xOffset: 0,
};

const HomeIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(HomeIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (HomeIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/info-circle-icon.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/info-circle-icon.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "InfoCircleIconConfig": () => (/* binding */ InfoCircleIconConfig),
/* harmony export */   "InfoCircleIcon": () => (/* binding */ InfoCircleIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const InfoCircleIconConfig = {
  name: 'InfoCircleIcon',
  height: 512,
  width: 512,
  svgPath: 'M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z',
  yOffset: 0,
  xOffset: 0,
};

const InfoCircleIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(InfoCircleIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (InfoCircleIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/key-icon.js":
/*!*************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/key-icon.js ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "KeyIconConfig": () => (/* binding */ KeyIconConfig),
/* harmony export */   "KeyIcon": () => (/* binding */ KeyIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const KeyIconConfig = {
  name: 'KeyIcon',
  height: 1024,
  width: 1024,
  svgPath: 'M802,320 C748.980664,320 706,277.019336 706,224 C706,170.980664 748.980664,128 802,128 C855.019336,128 898,170.980664 898,224 C898,277.019336 855.019336,320 802,320 M704,0 C527.3,0 384,143.3 384,320 C383.937788,357.490503 390.505571,394.696657 403.4,429.9 L0,824.1 L0,1024 L192,1024 L192,896 L320,896 L320,768 L448,768 L597,622 C596.906403,621.881923 596.838304,621.745723 596.8,621.6 C631.220126,633.811107 667.47802,640.034477 704,640 C880.7,640 1024,496.7 1024,320 C1024,143.3 880.7,0 704,0',
  yOffset: 0,
  xOffset: 0,
};

const KeyIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(KeyIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (KeyIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/list-icon.js":
/*!**************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/list-icon.js ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ListIconConfig": () => (/* binding */ ListIconConfig),
/* harmony export */   "ListIcon": () => (/* binding */ ListIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const ListIconConfig = {
  name: 'ListIcon',
  height: 512,
  width: 512,
  svgPath: 'M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z',
  yOffset: 0,
  xOffset: 0,
};

const ListIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(ListIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ListIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/lock-icon.js":
/*!**************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/lock-icon.js ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "LockIconConfig": () => (/* binding */ LockIconConfig),
/* harmony export */   "LockIcon": () => (/* binding */ LockIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const LockIconConfig = {
  name: 'LockIcon',
  height: 512,
  width: 448,
  svgPath: 'M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z',
  yOffset: 0,
  xOffset: 0,
};

const LockIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(LockIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (LockIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/long-arrow-alt-down-icon.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/long-arrow-alt-down-icon.js ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "LongArrowAltDownIconConfig": () => (/* binding */ LongArrowAltDownIconConfig),
/* harmony export */   "LongArrowAltDownIcon": () => (/* binding */ LongArrowAltDownIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const LongArrowAltDownIconConfig = {
  name: 'LongArrowAltDownIcon',
  height: 512,
  width: 256,
  svgPath: 'M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z',
  yOffset: 0,
  xOffset: 0,
};

const LongArrowAltDownIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(LongArrowAltDownIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (LongArrowAltDownIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/long-arrow-alt-up-icon.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/long-arrow-alt-up-icon.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "LongArrowAltUpIconConfig": () => (/* binding */ LongArrowAltUpIconConfig),
/* harmony export */   "LongArrowAltUpIcon": () => (/* binding */ LongArrowAltUpIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const LongArrowAltUpIconConfig = {
  name: 'LongArrowAltUpIcon',
  height: 512,
  width: 256,
  svgPath: 'M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z',
  yOffset: 0,
  xOffset: 0,
};

const LongArrowAltUpIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(LongArrowAltUpIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (LongArrowAltUpIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/minus-icon.js":
/*!***************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/minus-icon.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "MinusIconConfig": () => (/* binding */ MinusIconConfig),
/* harmony export */   "MinusIcon": () => (/* binding */ MinusIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const MinusIconConfig = {
  name: 'MinusIcon',
  height: 512,
  width: 448,
  svgPath: 'M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z',
  yOffset: 0,
  xOffset: 0,
};

const MinusIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(MinusIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MinusIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/pencil-alt-icon.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/pencil-alt-icon.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "PencilAltIconConfig": () => (/* binding */ PencilAltIconConfig),
/* harmony export */   "PencilAltIcon": () => (/* binding */ PencilAltIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const PencilAltIconConfig = {
  name: 'PencilAltIcon',
  height: 512,
  width: 512,
  svgPath: 'M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z',
  yOffset: 0,
  xOffset: 0,
};

const PencilAltIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(PencilAltIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PencilAltIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/plus-icon.js":
/*!**************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/plus-icon.js ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "PlusIconConfig": () => (/* binding */ PlusIconConfig),
/* harmony export */   "PlusIcon": () => (/* binding */ PlusIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const PlusIconConfig = {
  name: 'PlusIcon',
  height: 512,
  width: 448,
  svgPath: 'M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z',
  yOffset: 0,
  xOffset: 0,
};

const PlusIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(PlusIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PlusIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/resources-empty-icon.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/resources-empty-icon.js ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ResourcesEmptyIconConfig": () => (/* binding */ ResourcesEmptyIconConfig),
/* harmony export */   "ResourcesEmptyIcon": () => (/* binding */ ResourcesEmptyIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const ResourcesEmptyIconConfig = {
  name: 'ResourcesEmptyIcon',
  height: 1024,
  width: 1024,
  svgPath: 'M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.7,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 L512,896 Z M512.1,0 C229.7,0 0,229.8 0,512 C0,794.3 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0 L512.1,0 Z',
  yOffset: 0,
  xOffset: 0,
};

const ResourcesEmptyIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(ResourcesEmptyIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ResourcesEmptyIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/route-icon.js":
/*!***************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/route-icon.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "RouteIconConfig": () => (/* binding */ RouteIconConfig),
/* harmony export */   "RouteIcon": () => (/* binding */ RouteIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const RouteIconConfig = {
  name: 'RouteIcon',
  height: 512,
  width: 512,
  svgPath: 'M416 320h-96c-17.6 0-32-14.4-32-32s14.4-32 32-32h96s96-107 96-160-43-96-96-96-96 43-96 96c0 25.5 22.2 63.4 45.3 96H320c-52.9 0-96 43.1-96 96s43.1 96 96 96h96c17.6 0 32 14.4 32 32s-14.4 32-32 32H185.5c-16 24.8-33.8 47.7-47.3 64H416c52.9 0 96-43.1 96-96s-43.1-96-96-96zm0-256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM96 256c-53 0-96 43-96 96s96 160 96 160 96-107 96-160-43-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z',
  yOffset: 0,
  xOffset: 0,
};

const RouteIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(RouteIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RouteIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/search-icon.js":
/*!****************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/search-icon.js ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SearchIconConfig": () => (/* binding */ SearchIconConfig),
/* harmony export */   "SearchIcon": () => (/* binding */ SearchIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const SearchIconConfig = {
  name: 'SearchIcon',
  height: 512,
  width: 512,
  svgPath: 'M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z',
  yOffset: 0,
  xOffset: 0,
};

const SearchIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(SearchIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SearchIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/star-icon.js":
/*!**************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/star-icon.js ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "StarIconConfig": () => (/* binding */ StarIconConfig),
/* harmony export */   "StarIcon": () => (/* binding */ StarIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const StarIconConfig = {
  name: 'StarIcon',
  height: 512,
  width: 576,
  svgPath: 'M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z',
  yOffset: 0,
  xOffset: 0,
};

const StarIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(StarIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StarIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/sync-alt-icon.js":
/*!******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/sync-alt-icon.js ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SyncAltIconConfig": () => (/* binding */ SyncAltIconConfig),
/* harmony export */   "SyncAltIcon": () => (/* binding */ SyncAltIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const SyncAltIconConfig = {
  name: 'SyncAltIcon',
  height: 512,
  width: 512,
  svgPath: 'M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z',
  yOffset: 0,
  xOffset: 0,
};

const SyncAltIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(SyncAltIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SyncAltIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/tachometer-alt-icon.js":
/*!************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/tachometer-alt-icon.js ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TachometerAltIconConfig": () => (/* binding */ TachometerAltIconConfig),
/* harmony export */   "TachometerAltIcon": () => (/* binding */ TachometerAltIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const TachometerAltIconConfig = {
  name: 'TachometerAltIcon',
  height: 512,
  width: 576,
  svgPath: 'M288 32C128.94 32 0 160.94 0 320c0 52.8 14.25 102.26 39.06 144.8 5.61 9.62 16.3 15.2 27.44 15.2h443c11.14 0 21.83-5.58 27.44-15.2C561.75 422.26 576 372.8 576 320c0-159.06-128.94-288-288-288zm0 64c14.71 0 26.58 10.13 30.32 23.65-1.11 2.26-2.64 4.23-3.45 6.67l-9.22 27.67c-5.13 3.49-10.97 6.01-17.64 6.01-17.67 0-32-14.33-32-32S270.33 96 288 96zM96 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm48-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm246.77-72.41l-61.33 184C343.13 347.33 352 364.54 352 384c0 11.72-3.38 22.55-8.88 32H232.88c-5.5-9.45-8.88-20.28-8.88-32 0-33.94 26.5-61.43 59.9-63.59l61.34-184.01c4.17-12.56 17.73-19.45 30.36-15.17 12.57 4.19 19.35 17.79 15.17 30.36zm14.66 57.2l15.52-46.55c3.47-1.29 7.13-2.23 11.05-2.23 17.67 0 32 14.33 32 32s-14.33 32-32 32c-11.38-.01-20.89-6.28-26.57-15.22zM480 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z',
  yOffset: 0,
  xOffset: 0,
};

const TachometerAltIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(TachometerAltIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TachometerAltIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/times-circle-icon.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/times-circle-icon.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TimesCircleIconConfig": () => (/* binding */ TimesCircleIconConfig),
/* harmony export */   "TimesCircleIcon": () => (/* binding */ TimesCircleIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const TimesCircleIconConfig = {
  name: 'TimesCircleIcon',
  height: 512,
  width: 512,
  svgPath: 'M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z',
  yOffset: 0,
  xOffset: 0,
};

const TimesCircleIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(TimesCircleIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimesCircleIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/times-icon.js":
/*!***************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/times-icon.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TimesIconConfig": () => (/* binding */ TimesIconConfig),
/* harmony export */   "TimesIcon": () => (/* binding */ TimesIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const TimesIconConfig = {
  name: 'TimesIcon',
  height: 512,
  width: 352,
  svgPath: 'M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z',
  yOffset: 0,
  xOffset: 0,
};

const TimesIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(TimesIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimesIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/topology-icon.js":
/*!******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/topology-icon.js ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TopologyIconConfig": () => (/* binding */ TopologyIconConfig),
/* harmony export */   "TopologyIcon": () => (/* binding */ TopologyIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const TopologyIconConfig = {
  name: 'TopologyIcon',
  height: 1024,
  width: 1088,
  svgPath: 'M877.8,0 C797.1,0 731.5,65.6 731.5,146.3 C731.5,175.1 739.7,201.8 754.1,224.5 L670,310.5 C626.5,276.4 571.7,256 512,256 C477.8,256 445.1,262.7 415.3,274.9 L388.6,239.6 C375.1,221.3 350.9,216.1 334.9,228.2 C318.7,240.1 316.4,264.8 329.6,283.1 L351.9,312.3 C293.4,359.2 256,431.2 256,512 C256,534.7 259,556.7 264.5,577.7 L239,590.9 C219.8,600.3 210.7,622.9 218.4,641.2 C226.1,659.5 248.3,666.8 267.3,657.7 L292.9,644.4 C329.1,704.2 389.1,748 459.8,762.6 L453.8,835.6 C413.5,847.1 384,884.1 384,928 C384,981 427,1024 480,1024 C533,1024 576,981 576,928 C576,888.3 551.9,854.3 517.6,839.7 L523.5,767.8 C605.3,764.2 677.2,722.1 721.4,659.2 L789.8,705.8 C808.1,718.4 832.1,714.9 842.8,698 C853.5,680.9 847.3,656.9 828.8,644.6 L754.6,594.1 C763.3,568.3 768,540.7 768,512 C768,456.6 750.4,405.3 720.5,363.5 L807.4,274.8 C828.2,286.2 852.2,292.9 877.8,292.9 C958.5,292.9 1024.1,227.3 1024.1,146.6 C1024.1,65.9 958.5,0 877.8,0 Z M528,928 C528,954.5 506.5,976 480,976 C453.5,976 432,954.5 432,928 C432,901.5 453.5,880 480,880 C506.5,880 528,901.5 528,928 Z M512,640 C441.3,640 384,582.7 384,512 C384,441.3 441.3,384 512,384 C582.7,384 640,441.3 640,512 C640,582.7 582.8,640 512,640 Z M877.8,224 C834.8,224 800.1,189.3 800.1,146.3 C800.1,103.3 834.8,68.6 877.8,68.6 C920.8,68.6 955.5,103.3 955.5,146.3 C955.5,189.3 920.8,224 877.8,224 Z M900.8,712.3 C943.6,669.5 1013.1,669.5 1055.9,712.3 C1077.3,733.7 1088,761.8 1088,789.9 C1088,818 1077.3,846 1055.9,867.5 C1013.1,910.3 943.6,910.3 900.8,867.5 C858,824.6 858,755.2 900.8,712.3 M256,2.3 C316.6,2.3 365.7,51.4 365.7,112 C365.7,172.6 316.6,221.7 256,221.7 C195.4,221.7 146.3,172.6 146.3,112 C146.3,51.4 195.4,2.3 256,2.3 M96,608 C149,608 192,651 192,704 C192,757 149,800 96,800 C43,800 0,757 0,704 C0,651 43,608 96,608',
  yOffset: 0,
  xOffset: 0,
};

const TopologyIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(TopologyIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TopologyIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/user-icon.js":
/*!**************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/user-icon.js ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "UserIconConfig": () => (/* binding */ UserIconConfig),
/* harmony export */   "UserIcon": () => (/* binding */ UserIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const UserIconConfig = {
  name: 'UserIcon',
  height: 512,
  width: 448,
  svgPath: 'M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z',
  yOffset: 0,
  xOffset: 0,
};

const UserIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(UserIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (UserIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/users-icon.js":
/*!***************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/users-icon.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "UsersIconConfig": () => (/* binding */ UsersIconConfig),
/* harmony export */   "UsersIcon": () => (/* binding */ UsersIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const UsersIconConfig = {
  name: 'UsersIcon',
  height: 512,
  width: 640,
  svgPath: 'M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z',
  yOffset: 0,
  xOffset: 0,
};

const UsersIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(UsersIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (UsersIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/esm/icons/wrench-icon.js":
/*!****************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/esm/icons/wrench-icon.js ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "WrenchIconConfig": () => (/* binding */ WrenchIconConfig),
/* harmony export */   "WrenchIcon": () => (/* binding */ WrenchIcon),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _createIcon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/esm/createIcon.js");


const WrenchIconConfig = {
  name: 'WrenchIcon',
  height: 512,
  width: 512,
  svgPath: 'M507.73 109.1c-2.24-9.03-13.54-12.09-20.12-5.51l-74.36 74.36-67.88-11.31-11.31-67.88 74.36-74.36c6.62-6.62 3.43-17.9-5.66-20.16-47.38-11.74-99.55.91-136.58 37.93-39.64 39.64-50.55 97.1-34.05 147.2L18.74 402.76c-24.99 24.99-24.99 65.51 0 90.5 24.99 24.99 65.51 24.99 90.5 0l213.21-213.21c50.12 16.71 107.47 5.68 147.37-34.22 37.07-37.07 49.7-89.32 37.91-136.73zM64 472c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z',
  yOffset: 0,
  xOffset: 0,
};

const WrenchIcon = (0,_createIcon__WEBPACK_IMPORTED_MODULE_0__.createIcon)(WrenchIconConfig);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (WrenchIcon);

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/js/createIcon.js":
/*!********************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/js/createIcon.js ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.createIcon = exports.getSize = exports.IconSize = void 0;
const tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
const React = tslib_1.__importStar(__webpack_require__(/*! react */ "./node_modules/react/index.js"));
var IconSize;
(function (IconSize) {
    IconSize["sm"] = "sm";
    IconSize["md"] = "md";
    IconSize["lg"] = "lg";
    IconSize["xl"] = "xl";
})(IconSize = exports.IconSize || (exports.IconSize = {}));
const getSize = (size) => {
    switch (size) {
        case IconSize.sm:
            return '1em';
        case IconSize.md:
            return '1.5em';
        case IconSize.lg:
            return '2em';
        case IconSize.xl:
            return '3em';
        default:
            return '1em';
    }
};
exports.getSize = getSize;
let currentId = 0;
/**
 * Factory to create Icon class components for consumers
 */
function createIcon({ name, xOffset = 0, yOffset = 0, width, height, svgPath }) {
    var _a;
    return _a = class SVGIcon extends React.Component {
            constructor() {
                super(...arguments);
                this.id = `icon-title-${currentId++}`;
            }
            render() {
                const _a = this.props, { size, color, title, noVerticalAlign } = _a, props = tslib_1.__rest(_a, ["size", "color", "title", "noVerticalAlign"]);
                const hasTitle = Boolean(title);
                const heightWidth = exports.getSize(size);
                const baseAlign = -0.125 * Number.parseFloat(heightWidth);
                const style = noVerticalAlign ? null : { verticalAlign: `${baseAlign}em` };
                const viewBox = [xOffset, yOffset, width, height].join(' ');
                return (React.createElement("svg", Object.assign({ style: style, fill: color, height: heightWidth, width: heightWidth, viewBox: viewBox, "aria-labelledby": hasTitle ? this.id : null, "aria-hidden": hasTitle ? null : true, role: "img" }, props),
                    hasTitle && React.createElement("title", { id: this.id }, title),
                    React.createElement("path", { d: svgPath })));
            }
        },
        _a.displayName = name,
        _a.defaultProps = {
            color: 'currentColor',
            size: IconSize.sm,
            noVerticalAlign: false
        },
        _a;
}
exports.createIcon = createIcon;
//# sourceMappingURL=createIcon.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/js/icons/arrow-right-icon.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/js/icons/arrow-right-icon.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
exports.ArrowRightIconConfig = {
  name: 'ArrowRightIcon',
  height: 512,
  width: 448,
  svgPath: 'M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z',
  yOffset: 0,
  xOffset: 0,
};
exports.ArrowRightIcon = (__webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/js/createIcon.js").createIcon)(exports.ArrowRightIconConfig);
exports["default"] = exports.ArrowRightIcon;

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/js/icons/exclamation-circle-icon.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/js/icons/exclamation-circle-icon.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
exports.ExclamationCircleIconConfig = {
  name: 'ExclamationCircleIcon',
  height: 512,
  width: 512,
  svgPath: 'M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z',
  yOffset: 0,
  xOffset: 0,
};
exports.ExclamationCircleIcon = (__webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/js/createIcon.js").createIcon)(exports.ExclamationCircleIconConfig);
exports["default"] = exports.ExclamationCircleIcon;

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon.js ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
exports.ExclamationTriangleIconConfig = {
  name: 'ExclamationTriangleIcon',
  height: 512,
  width: 576,
  svgPath: 'M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z',
  yOffset: 0,
  xOffset: 0,
};
exports.ExclamationTriangleIcon = (__webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/js/createIcon.js").createIcon)(exports.ExclamationTriangleIconConfig);
exports["default"] = exports.ExclamationTriangleIcon;

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/js/icons/info-circle-icon.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/js/icons/info-circle-icon.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
exports.InfoCircleIconConfig = {
  name: 'InfoCircleIcon',
  height: 512,
  width: 512,
  svgPath: 'M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z',
  yOffset: 0,
  xOffset: 0,
};
exports.InfoCircleIcon = (__webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/js/createIcon.js").createIcon)(exports.InfoCircleIconConfig);
exports["default"] = exports.InfoCircleIcon;

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/js/icons/outlined-question-circle-icon.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/js/icons/outlined-question-circle-icon.js ***!
  \*********************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
exports.OutlinedQuestionCircleIconConfig = {
  name: 'OutlinedQuestionCircleIcon',
  height: 512,
  width: 512,
  svgPath: 'M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z',
  yOffset: 0,
  xOffset: 0,
};
exports.OutlinedQuestionCircleIcon = (__webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/js/createIcon.js").createIcon)(exports.OutlinedQuestionCircleIconConfig);
exports["default"] = exports.OutlinedQuestionCircleIcon;

/***/ }),

/***/ "./node_modules/@patternfly/react-icons/dist/js/icons/trash-alt-icon.js":
/*!******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-icons/dist/js/icons/trash-alt-icon.js ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
exports.TrashAltIconConfig = {
  name: 'TrashAltIcon',
  height: 512,
  width: 448,
  svgPath: 'M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z',
  yOffset: 0,
  xOffset: 0,
};
exports.TrashAltIcon = (__webpack_require__(/*! ../createIcon */ "./node_modules/@patternfly/react-icons/dist/js/createIcon.js").createIcon)(exports.TrashAltIconConfig);
exports["default"] = exports.TrashAltIcon;

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Alert/alert.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Alert/alert.js ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./alert.css */ "./node_modules/@patternfly/react-styles/css/components/Alert/alert.css");
exports["default"] = {
  "alert": "pf-c-alert",
  "alertAction": "pf-c-alert__action",
  "alertActionGroup": "pf-c-alert__action-group",
  "alertDescription": "pf-c-alert__description",
  "alertIcon": "pf-c-alert__icon",
  "alertTitle": "pf-c-alert__title",
  "alertToggle": "pf-c-alert__toggle",
  "alertToggleIcon": "pf-c-alert__toggle-icon",
  "button": "pf-c-button",
  "modifiers": {
    "success": "pf-m-success",
    "danger": "pf-m-danger",
    "warning": "pf-m-warning",
    "info": "pf-m-info",
    "inline": "pf-m-inline",
    "plain": "pf-m-plain",
    "expandable": "pf-m-expandable",
    "expanded": "pf-m-expanded",
    "truncate": "pf-m-truncate",
    "overpassFont": "pf-m-overpass-font"
  }
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/AlertGroup/alert-group.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/AlertGroup/alert-group.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./alert-group.css */ "./node_modules/@patternfly/react-styles/css/components/AlertGroup/alert-group.css");
exports["default"] = {
  "alertGroup": "pf-c-alert-group",
  "modifiers": {
    "toast": "pf-m-toast"
  }
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Backdrop/backdrop.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Backdrop/backdrop.js ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./backdrop.css */ "./node_modules/@patternfly/react-styles/css/components/Backdrop/backdrop.css");
exports["default"] = {
  "backdrop": "pf-c-backdrop",
  "backdropOpen": "pf-c-backdrop__open"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Badge/badge.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Badge/badge.js ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./badge.css */ "./node_modules/@patternfly/react-styles/css/components/Badge/badge.css");
exports["default"] = {
  "badge": "pf-c-badge",
  "modifiers": {
    "read": "pf-m-read",
    "unread": "pf-m-unread"
  }
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Breadcrumb/breadcrumb.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Breadcrumb/breadcrumb.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./breadcrumb.css */ "./node_modules/@patternfly/react-styles/css/components/Breadcrumb/breadcrumb.css");
exports["default"] = {
  "breadcrumb": "pf-c-breadcrumb",
  "breadcrumbDropdown": "pf-c-breadcrumb__dropdown",
  "breadcrumbHeading": "pf-c-breadcrumb__heading",
  "breadcrumbItem": "pf-c-breadcrumb__item",
  "breadcrumbItemDivider": "pf-c-breadcrumb__item-divider",
  "breadcrumbLink": "pf-c-breadcrumb__link",
  "breadcrumbList": "pf-c-breadcrumb__list",
  "dropdownToggle": "pf-c-dropdown__toggle",
  "modifiers": {
    "current": "pf-m-current",
    "overpassFont": "pf-m-overpass-font"
  }
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Button/button.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Button/button.js ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./button.css */ "./node_modules/@patternfly/react-styles/css/components/Button/button.css");
exports["default"] = {
  "button": "pf-c-button",
  "buttonIcon": "pf-c-button__icon",
  "buttonProgress": "pf-c-button__progress",
  "modifiers": {
    "active": "pf-m-active",
    "block": "pf-m-block",
    "small": "pf-m-small",
    "primary": "pf-m-primary",
    "displayLg": "pf-m-display-lg",
    "secondary": "pf-m-secondary",
    "tertiary": "pf-m-tertiary",
    "link": "pf-m-link",
    "inline": "pf-m-inline",
    "danger": "pf-m-danger",
    "warning": "pf-m-warning",
    "control": "pf-m-control",
    "expanded": "pf-m-expanded",
    "plain": "pf-m-plain",
    "disabled": "pf-m-disabled",
    "ariaDisabled": "pf-m-aria-disabled",
    "progress": "pf-m-progress",
    "inProgress": "pf-m-in-progress",
    "start": "pf-m-start",
    "end": "pf-m-end",
    "overpassFont": "pf-m-overpass-font"
  },
  "spinner": "pf-c-spinner"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Card/card.js":
/*!***************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Card/card.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./card.css */ "./node_modules/@patternfly/react-styles/css/components/Card/card.css");
exports["default"] = {
  "card": "pf-c-card",
  "cardActions": "pf-c-card__actions",
  "cardBody": "pf-c-card__body",
  "cardExpandableContent": "pf-c-card__expandable-content",
  "cardFooter": "pf-c-card__footer",
  "cardHeader": "pf-c-card__header",
  "cardHeaderToggle": "pf-c-card__header-toggle",
  "cardHeaderToggleIcon": "pf-c-card__header-toggle-icon",
  "cardTitle": "pf-c-card__title",
  "divider": "pf-c-divider",
  "modifiers": {
    "hoverable": "pf-m-hoverable",
    "selectable": "pf-m-selectable",
    "selected": "pf-m-selected",
    "hoverableRaised": "pf-m-hoverable-raised",
    "selectableRaised": "pf-m-selectable-raised",
    "nonSelectableRaised": "pf-m-non-selectable-raised",
    "selectedRaised": "pf-m-selected-raised",
    "compact": "pf-m-compact",
    "displayLg": "pf-m-display-lg",
    "flat": "pf-m-flat",
    "plain": "pf-m-plain",
    "rounded": "pf-m-rounded",
    "expanded": "pf-m-expanded",
    "fullHeight": "pf-m-full-height",
    "toggleRight": "pf-m-toggle-right",
    "noOffset": "pf-m-no-offset",
    "noFill": "pf-m-no-fill",
    "overpassFont": "pf-m-overpass-font"
  }
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Check/check.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Check/check.js ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./check.css */ "./node_modules/@patternfly/react-styles/css/components/Check/check.css");
exports["default"] = {
  "check": "pf-c-check",
  "checkBody": "pf-c-check__body",
  "checkDescription": "pf-c-check__description",
  "checkInput": "pf-c-check__input",
  "checkLabel": "pf-c-check__label",
  "modifiers": {
    "standalone": "pf-m-standalone",
    "disabled": "pf-m-disabled"
  }
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Chip/chip.js":
/*!***************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Chip/chip.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./chip.css */ "./node_modules/@patternfly/react-styles/css/components/Chip/chip.css");
exports["default"] = {
  "badge": "pf-c-badge",
  "button": "pf-c-button",
  "chip": "pf-c-chip",
  "chipIcon": "pf-c-chip__icon",
  "chipText": "pf-c-chip__text",
  "modifiers": {
    "overflow": "pf-m-overflow",
    "draggable": "pf-m-draggable"
  }
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/ChipGroup/chip-group.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/ChipGroup/chip-group.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./chip-group.css */ "./node_modules/@patternfly/react-styles/css/components/ChipGroup/chip-group.css");
exports["default"] = {
  "chipGroup": "pf-c-chip-group",
  "chipGroupClose": "pf-c-chip-group__close",
  "chipGroupLabel": "pf-c-chip-group__label",
  "chipGroupList": "pf-c-chip-group__list",
  "chipGroupListItem": "pf-c-chip-group__list-item",
  "chipGroupMain": "pf-c-chip-group__main",
  "modifiers": {
    "category": "pf-m-category"
  }
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/ClipboardCopy/clipboard-copy.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/ClipboardCopy/clipboard-copy.js ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./clipboard-copy.css */ "./node_modules/@patternfly/react-styles/css/components/ClipboardCopy/clipboard-copy.css");
exports["default"] = {
  "button": "pf-c-button",
  "clipboardCopy": "pf-c-clipboard-copy",
  "clipboardCopyActions": "pf-c-clipboard-copy__actions",
  "clipboardCopyActionsItem": "pf-c-clipboard-copy__actions-item",
  "clipboardCopyExpandableContent": "pf-c-clipboard-copy__expandable-content",
  "clipboardCopyGroup": "pf-c-clipboard-copy__group",
  "clipboardCopyText": "pf-c-clipboard-copy__text",
  "clipboardCopyToggleIcon": "pf-c-clipboard-copy__toggle-icon",
  "modifiers": {
    "expanded": "pf-m-expanded",
    "inline": "pf-m-inline",
    "block": "pf-m-block",
    "code": "pf-m-code"
  }
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Content/content.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Content/content.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./content.css */ "./node_modules/@patternfly/react-styles/css/components/Content/content.css");
exports["default"] = {
  "content": "pf-c-content",
  "modifiers": {
    "visited": "pf-m-visited",
    "overpassFont": "pf-m-overpass-font"
  }
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/DatePicker/date-picker.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/DatePicker/date-picker.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./date-picker.css */ "./node_modules/@patternfly/react-styles/css/components/DatePicker/date-picker.css");
exports["default"] = {
  "datePicker": "pf-c-date-picker",
  "datePickerCalendar": "pf-c-date-picker__calendar",
  "datePickerHelperText": "pf-c-date-picker__helper-text",
  "datePickerInput": "pf-c-date-picker__input",
  "formControl": "pf-c-form-control",
  "modifiers": {
    "error": "pf-m-error",
    "alignRight": "pf-m-align-right",
    "top": "pf-m-top"
  }
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Divider/divider.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Divider/divider.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./divider.css */ "./node_modules/@patternfly/react-styles/css/components/Divider/divider.css");
exports["default"] = {
  "divider": "pf-c-divider",
  "modifiers": {
    "hidden": "pf-m-hidden",
    "hiddenOnSm": "pf-m-hidden-on-sm",
    "visibleOnSm": "pf-m-visible-on-sm",
    "hiddenOnMd": "pf-m-hidden-on-md",
    "visibleOnMd": "pf-m-visible-on-md",
    "hiddenOnLg": "pf-m-hidden-on-lg",
    "visibleOnLg": "pf-m-visible-on-lg",
    "hiddenOnXl": "pf-m-hidden-on-xl",
    "visibleOnXl": "pf-m-visible-on-xl",
    "hiddenOn_2xl": "pf-m-hidden-on-2xl",
    "visibleOn_2xl": "pf-m-visible-on-2xl",
    "vertical": "pf-m-vertical",
    "insetNone": "pf-m-inset-none",
    "insetXs": "pf-m-inset-xs",
    "insetSm": "pf-m-inset-sm",
    "insetMd": "pf-m-inset-md",
    "insetLg": "pf-m-inset-lg",
    "insetXl": "pf-m-inset-xl",
    "inset_2xl": "pf-m-inset-2xl",
    "inset_3xl": "pf-m-inset-3xl",
    "insetNoneOnSm": "pf-m-inset-none-on-sm",
    "insetXsOnSm": "pf-m-inset-xs-on-sm",
    "insetSmOnSm": "pf-m-inset-sm-on-sm",
    "insetMdOnSm": "pf-m-inset-md-on-sm",
    "insetLgOnSm": "pf-m-inset-lg-on-sm",
    "insetXlOnSm": "pf-m-inset-xl-on-sm",
    "inset_2xlOnSm": "pf-m-inset-2xl-on-sm",
    "inset_3xlOnSm": "pf-m-inset-3xl-on-sm",
    "insetNoneOnMd": "pf-m-inset-none-on-md",
    "insetXsOnMd": "pf-m-inset-xs-on-md",
    "insetSmOnMd": "pf-m-inset-sm-on-md",
    "insetMdOnMd": "pf-m-inset-md-on-md",
    "insetLgOnMd": "pf-m-inset-lg-on-md",
    "insetXlOnMd": "pf-m-inset-xl-on-md",
    "inset_2xlOnMd": "pf-m-inset-2xl-on-md",
    "inset_3xlOnMd": "pf-m-inset-3xl-on-md",
    "insetNoneOnLg": "pf-m-inset-none-on-lg",
    "insetXsOnLg": "pf-m-inset-xs-on-lg",
    "insetSmOnLg": "pf-m-inset-sm-on-lg",
    "insetMdOnLg": "pf-m-inset-md-on-lg",
    "insetLgOnLg": "pf-m-inset-lg-on-lg",
    "insetXlOnLg": "pf-m-inset-xl-on-lg",
    "inset_2xlOnLg": "pf-m-inset-2xl-on-lg",
    "inset_3xlOnLg": "pf-m-inset-3xl-on-lg",
    "insetNoneOnXl": "pf-m-inset-none-on-xl",
    "insetXsOnXl": "pf-m-inset-xs-on-xl",
    "insetSmOnXl": "pf-m-inset-sm-on-xl",
    "insetMdOnXl": "pf-m-inset-md-on-xl",
    "insetLgOnXl": "pf-m-inset-lg-on-xl",
    "insetXlOnXl": "pf-m-inset-xl-on-xl",
    "inset_2xlOnXl": "pf-m-inset-2xl-on-xl",
    "inset_3xlOnXl": "pf-m-inset-3xl-on-xl",
    "insetNoneOn_2xl": "pf-m-inset-none-on-2xl",
    "insetXsOn_2xl": "pf-m-inset-xs-on-2xl",
    "insetSmOn_2xl": "pf-m-inset-sm-on-2xl",
    "insetMdOn_2xl": "pf-m-inset-md-on-2xl",
    "insetLgOn_2xl": "pf-m-inset-lg-on-2xl",
    "insetXlOn_2xl": "pf-m-inset-xl-on-2xl",
    "inset_2xlOn_2xl": "pf-m-inset-2xl-on-2xl",
    "inset_3xlOn_2xl": "pf-m-inset-3xl-on-2xl"
  }
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Drawer/drawer.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Drawer/drawer.js ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./drawer.css */ "./node_modules/@patternfly/react-styles/css/components/Drawer/drawer.css");
exports["default"] = {
  "drawer": "pf-c-drawer",
  "drawerActions": "pf-c-drawer__actions",
  "drawerBody": "pf-c-drawer__body",
  "drawerClose": "pf-c-drawer__close",
  "drawerContent": "pf-c-drawer__content",
  "drawerHead": "pf-c-drawer__head",
  "drawerMain": "pf-c-drawer__main",
  "drawerPanel": "pf-c-drawer__panel",
  "drawerPanelMain": "pf-c-drawer__panel-main",
  "drawerSection": "pf-c-drawer__section",
  "drawerSplitter": "pf-c-drawer__splitter",
  "drawerSplitterHandle": "pf-c-drawer__splitter-handle",
  "modifiers": {
    "panelBottom": "pf-m-panel-bottom",
    "inline": "pf-m-inline",
    "noBorder": "pf-m-no-border",
    "resizable": "pf-m-resizable",
    "static": "pf-m-static",
    "panelLeft": "pf-m-panel-left",
    "expanded": "pf-m-expanded",
    "resizing": "pf-m-resizing",
    "noBackground": "pf-m-no-background",
    "light_200": "pf-m-light-200",
    "noPadding": "pf-m-no-padding",
    "padding": "pf-m-padding",
    "vertical": "pf-m-vertical",
    "width_25": "pf-m-width-25",
    "width_33": "pf-m-width-33",
    "width_50": "pf-m-width-50",
    "width_66": "pf-m-width-66",
    "width_75": "pf-m-width-75",
    "width_100": "pf-m-width-100",
    "width_25OnLg": "pf-m-width-25-on-lg",
    "width_33OnLg": "pf-m-width-33-on-lg",
    "width_50OnLg": "pf-m-width-50-on-lg",
    "width_66OnLg": "pf-m-width-66-on-lg",
    "width_75OnLg": "pf-m-width-75-on-lg",
    "width_100OnLg": "pf-m-width-100-on-lg",
    "width_25OnXl": "pf-m-width-25-on-xl",
    "width_33OnXl": "pf-m-width-33-on-xl",
    "width_50OnXl": "pf-m-width-50-on-xl",
    "width_66OnXl": "pf-m-width-66-on-xl",
    "width_75OnXl": "pf-m-width-75-on-xl",
    "width_100OnXl": "pf-m-width-100-on-xl",
    "width_25On_2xl": "pf-m-width-25-on-2xl",
    "width_33On_2xl": "pf-m-width-33-on-2xl",
    "width_50On_2xl": "pf-m-width-50-on-2xl",
    "width_66On_2xl": "pf-m-width-66-on-2xl",
    "width_75On_2xl": "pf-m-width-75-on-2xl",
    "width_100On_2xl": "pf-m-width-100-on-2xl",
    "inlineOnLg": "pf-m-inline-on-lg",
    "staticOnLg": "pf-m-static-on-lg",
    "inlineOnXl": "pf-m-inline-on-xl",
    "staticOnXl": "pf-m-static-on-xl",
    "inlineOn_2xl": "pf-m-inline-on-2xl",
    "staticOn_2xl": "pf-m-static-on-2xl"
  },
  "pageMain": "pf-c-page__main"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Dropdown/dropdown.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Dropdown/dropdown.js ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./dropdown.css */ "./node_modules/@patternfly/react-styles/css/components/Dropdown/dropdown.css");
exports["default"] = {
  "badge": "pf-c-badge",
  "check": "pf-c-check",
  "divider": "pf-c-divider",
  "dropdown": "pf-c-dropdown",
  "dropdownGroup": "pf-c-dropdown__group",
  "dropdownGroupTitle": "pf-c-dropdown__group-title",
  "dropdownMenu": "pf-c-dropdown__menu",
  "dropdownMenuItem": "pf-c-dropdown__menu-item",
  "dropdownMenuItemDescription": "pf-c-dropdown__menu-item-description",
  "dropdownMenuItemIcon": "pf-c-dropdown__menu-item-icon",
  "dropdownMenuItemMain": "pf-c-dropdown__menu-item-main",
  "dropdownToggle": "pf-c-dropdown__toggle",
  "dropdownToggleButton": "pf-c-dropdown__toggle-button",
  "dropdownToggleCheck": "pf-c-dropdown__toggle-check",
  "dropdownToggleIcon": "pf-c-dropdown__toggle-icon",
  "dropdownToggleImage": "pf-c-dropdown__toggle-image",
  "dropdownToggleText": "pf-c-dropdown__toggle-text",
  "menu": "pf-c-menu",
  "modifiers": {
    "fullHeight": "pf-m-full-height",
    "expanded": "pf-m-expanded",
    "action": "pf-m-action",
    "disabled": "pf-m-disabled",
    "plain": "pf-m-plain",
    "text": "pf-m-text",
    "splitButton": "pf-m-split-button",
    "primary": "pf-m-primary",
    "active": "pf-m-active",
    "secondary": "pf-m-secondary",
    "top": "pf-m-top",
    "alignRight": "pf-m-align-right",
    "alignLeft": "pf-m-align-left",
    "alignRightOnSm": "pf-m-align-right-on-sm",
    "alignLeftOnSm": "pf-m-align-left-on-sm",
    "alignRightOnMd": "pf-m-align-right-on-md",
    "alignLeftOnMd": "pf-m-align-left-on-md",
    "alignRightOnLg": "pf-m-align-right-on-lg",
    "alignLeftOnLg": "pf-m-align-left-on-lg",
    "alignRightOnXl": "pf-m-align-right-on-xl",
    "alignLeftOnXl": "pf-m-align-left-on-xl",
    "alignRightOn_2xl": "pf-m-align-right-on-2xl",
    "alignLeftOn_2xl": "pf-m-align-left-on-2xl",
    "ariaDisabled": "pf-m-aria-disabled",
    "icon": "pf-m-icon",
    "description": "pf-m-description"
  }
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/DualListSelector/dual-list-selector.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/DualListSelector/dual-list-selector.js ***!
  \*****************************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./dual-list-selector.css */ "./node_modules/@patternfly/react-styles/css/components/DualListSelector/dual-list-selector.css");
exports["default"] = {
  "badge": "pf-c-badge",
  "button": "pf-c-button",
  "dualListSelector": "pf-c-dual-list-selector",
  "dualListSelectorControls": "pf-c-dual-list-selector__controls",
  "dualListSelectorDraggable": "pf-c-dual-list-selector__draggable",
  "dualListSelectorHeader": "pf-c-dual-list-selector__header",
  "dualListSelectorItem": "pf-c-dual-list-selector__item",
  "dualListSelectorItemCheck": "pf-c-dual-list-selector__item-check",
  "dualListSelectorItemCount": "pf-c-dual-list-selector__item-count",
  "dualListSelectorItemMain": "pf-c-dual-list-selector__item-main",
  "dualListSelectorItemText": "pf-c-dual-list-selector__item-text",
  "dualListSelectorItemToggle": "pf-c-dual-list-selector__item-toggle",
  "dualListSelectorItemToggleIcon": "pf-c-dual-list-selector__item-toggle-icon",
  "dualListSelectorList": "pf-c-dual-list-selector__list",
  "dualListSelectorListItem": "pf-c-dual-list-selector__list-item",
  "dualListSelectorListItemRow": "pf-c-dual-list-selector__list-item-row",
  "dualListSelectorMain": "pf-c-dual-list-selector__main",
  "dualListSelectorMenu": "pf-c-dual-list-selector__menu",
  "dualListSelectorPane": "pf-c-dual-list-selector__pane",
  "dualListSelectorStatus": "pf-c-dual-list-selector__status",
  "dualListSelectorStatusText": "pf-c-dual-list-selector__status-text",
  "dualListSelectorTitleText": "pf-c-dual-list-selector__title-text",
  "dualListSelectorTools": "pf-c-dual-list-selector__tools",
  "dualListSelectorToolsActions": "pf-c-dual-list-selector__tools-actions",
  "dualListSelectorToolsFilter": "pf-c-dual-list-selector__tools-filter",
  "modifiers": {
    "chosen": "pf-m-chosen",
    "dragOver": "pf-m-drag-over",
    "expandable": "pf-m-expandable",
    "expanded": "pf-m-expanded",
    "disabled": "pf-m-disabled",
    "selected": "pf-m-selected",
    "check": "pf-m-check",
    "ghostRow": "pf-m-ghost-row",
    "read": "pf-m-read"
  }
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/EmptyState/empty-state.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/EmptyState/empty-state.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./empty-state.css */ "./node_modules/@patternfly/react-styles/css/components/EmptyState/empty-state.css");
exports["default"] = {
  "button": "pf-c-button",
  "emptyState": "pf-c-empty-state",
  "emptyStateBody": "pf-c-empty-state__body",
  "emptyStateContent": "pf-c-empty-state__content",
  "emptyStateIcon": "pf-c-empty-state__icon",
  "emptyStatePrimary": "pf-c-empty-state__primary",
  "emptyStateSecondary": "pf-c-empty-state__secondary",
  "modifiers": {
    "xs": "pf-m-xs",
    "sm": "pf-m-sm",
    "lg": "pf-m-lg",
    "xl": "pf-m-xl",
    "fullHeight": "pf-m-full-height",
    "primary": "pf-m-primary",
    "overpassFont": "pf-m-overpass-font"
  },
  "title": "pf-c-title"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/ExpandableSection/expandable-section.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/ExpandableSection/expandable-section.js ***!
  \******************************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./expandable-section.css */ "./node_modules/@patternfly/react-styles/css/components/ExpandableSection/expandable-section.css");
exports["default"] = {
  "expandableSection": "pf-c-expandable-section",
  "expandableSectionContent": "pf-c-expandable-section__content",
  "expandableSectionToggle": "pf-c-expandable-section__toggle",
  "expandableSectionToggleIcon": "pf-c-expandable-section__toggle-icon",
  "expandableSectionToggleText": "pf-c-expandable-section__toggle-text",
  "modifiers": {
    "expanded": "pf-m-expanded",
    "detached": "pf-m-detached",
    "limitWidth": "pf-m-limit-width",
    "displayLg": "pf-m-display-lg",
    "active": "pf-m-active",
    "expandTop": "pf-m-expand-top",
    "overpassFont": "pf-m-overpass-font"
  }
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/FileUpload/file-upload.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/FileUpload/file-upload.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./file-upload.css */ "./node_modules/@patternfly/react-styles/css/components/FileUpload/file-upload.css");
exports["default"] = {
  "button": "pf-c-button",
  "fileUpload": "pf-c-file-upload",
  "fileUploadFileDetails": "pf-c-file-upload__file-details",
  "fileUploadFileDetailsSpinner": "pf-c-file-upload__file-details-spinner",
  "fileUploadFileSelect": "pf-c-file-upload__file-select",
  "formControl": "pf-c-form-control",
  "modifiers": {
    "dragHover": "pf-m-drag-hover",
    "loading": "pf-m-loading",
    "control": "pf-m-control"
  }
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Form/form.js":
/*!***************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Form/form.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./form.css */ "./node_modules/@patternfly/react-styles/css/components/Form/form.css");
exports["default"] = {
  "form": "pf-c-form",
  "formActions": "pf-c-form__actions",
  "formFieldGroup": "pf-c-form__field-group",
  "formFieldGroupBody": "pf-c-form__field-group-body",
  "formFieldGroupHeader": "pf-c-form__field-group-header",
  "formFieldGroupHeaderActions": "pf-c-form__field-group-header-actions",
  "formFieldGroupHeaderDescription": "pf-c-form__field-group-header-description",
  "formFieldGroupHeaderMain": "pf-c-form__field-group-header-main",
  "formFieldGroupHeaderTitle": "pf-c-form__field-group-header-title",
  "formFieldGroupHeaderTitleText": "pf-c-form__field-group-header-title-text",
  "formFieldGroupToggle": "pf-c-form__field-group-toggle",
  "formFieldGroupToggleButton": "pf-c-form__field-group-toggle-button",
  "formFieldGroupToggleIcon": "pf-c-form__field-group-toggle-icon",
  "formFieldset": "pf-c-form__fieldset",
  "formGroup": "pf-c-form__group",
  "formGroupControl": "pf-c-form__group-control",
  "formGroupLabel": "pf-c-form__group-label",
  "formGroupLabelHelp": "pf-c-form__group-label-help",
  "formGroupLabelInfo": "pf-c-form__group-label-info",
  "formGroupLabelMain": "pf-c-form__group-label-main",
  "formHelperText": "pf-c-form__helper-text",
  "formHelperTextIcon": "pf-c-form__helper-text-icon",
  "formLabel": "pf-c-form__label",
  "formLabelRequired": "pf-c-form__label-required",
  "formLabelText": "pf-c-form__label-text",
  "formSection": "pf-c-form__section",
  "formSectionTitle": "pf-c-form__section-title",
  "modifiers": {
    "horizontal": "pf-m-horizontal",
    "alignRight": "pf-m-align-right",
    "noPaddingTop": "pf-m-no-padding-top",
    "horizontalOnXs": "pf-m-horizontal-on-xs",
    "horizontalOnSm": "pf-m-horizontal-on-sm",
    "horizontalOnMd": "pf-m-horizontal-on-md",
    "horizontalOnLg": "pf-m-horizontal-on-lg",
    "horizontalOnXl": "pf-m-horizontal-on-xl",
    "horizontalOn_2xl": "pf-m-horizontal-on-2xl",
    "limitWidth": "pf-m-limit-width",
    "action": "pf-m-action",
    "info": "pf-m-info",
    "disabled": "pf-m-disabled",
    "inline": "pf-m-inline",
    "stack": "pf-m-stack",
    "error": "pf-m-error",
    "success": "pf-m-success",
    "warning": "pf-m-warning",
    "inactive": "pf-m-inactive",
    "hidden": "pf-m-hidden",
    "expanded": "pf-m-expanded"
  }
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/FormControl/form-control.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/FormControl/form-control.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./form-control.css */ "./node_modules/@patternfly/react-styles/css/components/FormControl/form-control.css");
exports["default"] = {
  "formControl": "pf-c-form-control",
  "modifiers": {
    "success": "pf-m-success",
    "expanded": "pf-m-expanded",
    "icon": "pf-m-icon",
    "warning": "pf-m-warning",
    "search": "pf-m-search",
    "calendar": "pf-m-calendar",
    "clock": "pf-m-clock",
    "placeholder": "pf-m-placeholder",
    "resizeVertical": "pf-m-resize-vertical",
    "resizeHorizontal": "pf-m-resize-horizontal"
  }
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/HelperText/helper-text.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/HelperText/helper-text.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./helper-text.css */ "./node_modules/@patternfly/react-styles/css/components/HelperText/helper-text.css");
exports["default"] = {
  "helperText": "pf-c-helper-text",
  "helperTextItem": "pf-c-helper-text__item",
  "helperTextItemIcon": "pf-c-helper-text__item-icon",
  "helperTextItemText": "pf-c-helper-text__item-text",
  "modifiers": {
    "indeterminate": "pf-m-indeterminate",
    "warning": "pf-m-warning",
    "success": "pf-m-success",
    "error": "pf-m-error",
    "dynamic": "pf-m-dynamic"
  }
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/InlineEdit/inline-edit.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/InlineEdit/inline-edit.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./inline-edit.css */ "./node_modules/@patternfly/react-styles/css/components/InlineEdit/inline-edit.css");
exports["default"] = {
  "button": "pf-c-button",
  "inlineEdit": "pf-c-inline-edit",
  "inlineEditAction": "pf-c-inline-edit__action",
  "inlineEditEditableText": "pf-c-inline-edit__editable-text",
  "inlineEditGroup": "pf-c-inline-edit__group",
  "inlineEditInput": "pf-c-inline-edit__input",
  "inlineEditLabel": "pf-c-inline-edit__label",
  "inlineEditValue": "pf-c-inline-edit__value",
  "modifiers": {
    "iconGroup": "pf-m-icon-group",
    "footer": "pf-m-footer",
    "column": "pf-m-column",
    "valid": "pf-m-valid",
    "plain": "pf-m-plain",
    "actionGroup": "pf-m-action-group",
    "enableEditable": "pf-m-enable-editable",
    "inlineEditable": "pf-m-inline-editable",
    "enable": "pf-m-enable",
    "bold": "pf-m-bold"
  }
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/InputGroup/input-group.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/InputGroup/input-group.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./input-group.css */ "./node_modules/@patternfly/react-styles/css/components/InputGroup/input-group.css");
exports["default"] = {
  "formControl": "pf-c-form-control",
  "inputGroup": "pf-c-input-group",
  "inputGroupText": "pf-c-input-group__text",
  "modifiers": {
    "plain": "pf-m-plain"
  }
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Label/label.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Label/label.js ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./label.css */ "./node_modules/@patternfly/react-styles/css/components/Label/label.css");
exports["default"] = {
  "button": "pf-c-button",
  "label": "pf-c-label",
  "labelContent": "pf-c-label__content",
  "labelIcon": "pf-c-label__icon",
  "labelText": "pf-c-label__text",
  "modifiers": {
    "compact": "pf-m-compact",
    "blue": "pf-m-blue",
    "green": "pf-m-green",
    "orange": "pf-m-orange",
    "red": "pf-m-red",
    "purple": "pf-m-purple",
    "cyan": "pf-m-cyan",
    "outline": "pf-m-outline",
    "overflow": "pf-m-overflow",
    "editableActive": "pf-m-editable-active"
  }
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/LabelGroup/label-group.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/LabelGroup/label-group.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./label-group.css */ "./node_modules/@patternfly/react-styles/css/components/LabelGroup/label-group.css");
exports["default"] = {
  "button": "pf-c-button",
  "labelGroup": "pf-c-label-group",
  "labelGroupClose": "pf-c-label-group__close",
  "labelGroupLabel": "pf-c-label-group__label",
  "labelGroupList": "pf-c-label-group__list",
  "labelGroupListItem": "pf-c-label-group__list-item",
  "labelGroupMain": "pf-c-label-group__main",
  "labelGroupTextarea": "pf-c-label-group__textarea",
  "modifiers": {
    "category": "pf-m-category",
    "vertical": "pf-m-vertical",
    "editable": "pf-m-editable",
    "textarea": "pf-m-textarea"
  }
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/ModalBox/modal-box.js":
/*!************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/ModalBox/modal-box.js ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./modal-box.css */ "./node_modules/@patternfly/react-styles/css/components/ModalBox/modal-box.css");
exports["default"] = {
  "button": "pf-c-button",
  "modalBox": "pf-c-modal-box",
  "modalBoxBody": "pf-c-modal-box__body",
  "modalBoxDescription": "pf-c-modal-box__description",
  "modalBoxFooter": "pf-c-modal-box__footer",
  "modalBoxHeader": "pf-c-modal-box__header",
  "modalBoxHeaderMain": "pf-c-modal-box__header-main",
  "modalBoxTitle": "pf-c-modal-box__title",
  "modalBoxTitleIcon": "pf-c-modal-box__title-icon",
  "modalBoxTitleText": "pf-c-modal-box__title-text",
  "modifiers": {
    "sm": "pf-m-sm",
    "md": "pf-m-md",
    "lg": "pf-m-lg",
    "alignTop": "pf-m-align-top",
    "danger": "pf-m-danger",
    "warning": "pf-m-warning",
    "success": "pf-m-success",
    "default": "pf-m-default",
    "info": "pf-m-info",
    "help": "pf-m-help",
    "icon": "pf-m-icon"
  }
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Nav/nav.js":
/*!*************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Nav/nav.js ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./nav.css */ "./node_modules/@patternfly/react-styles/css/components/Nav/nav.css");
exports["default"] = {
  "divider": "pf-c-divider",
  "menu": "pf-c-menu",
  "menuContent": "pf-c-menu__content",
  "menuItem": "pf-c-menu__item",
  "menuListItem": "pf-c-menu__list-item",
  "modifiers": {
    "flyout": "pf-m-flyout",
    "top": "pf-m-top",
    "left": "pf-m-left",
    "current": "pf-m-current",
    "horizontal": "pf-m-horizontal",
    "tertiary": "pf-m-tertiary",
    "horizontalSubnav": "pf-m-horizontal-subnav",
    "light": "pf-m-light",
    "scrollable": "pf-m-scrollable",
    "overflowHidden": "pf-m-overflow-hidden",
    "expandable": "pf-m-expandable",
    "expanded": "pf-m-expanded",
    "drilldown": "pf-m-drilldown",
    "hover": "pf-m-hover",
    "start": "pf-m-start"
  },
  "nav": "pf-c-nav",
  "navItem": "pf-c-nav__item",
  "navLink": "pf-c-nav__link",
  "navList": "pf-c-nav__list",
  "navScrollButton": "pf-c-nav__scroll-button",
  "navSection": "pf-c-nav__section",
  "navSectionTitle": "pf-c-nav__section-title",
  "navSubnav": "pf-c-nav__subnav",
  "navToggle": "pf-c-nav__toggle",
  "navToggleIcon": "pf-c-nav__toggle-icon"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/NumberInput/number-input.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/NumberInput/number-input.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./number-input.css */ "./node_modules/@patternfly/react-styles/css/components/NumberInput/number-input.css");
exports["default"] = {
  "formControl": "pf-c-form-control",
  "inputGroup": "pf-c-input-group",
  "numberInput": "pf-c-number-input",
  "numberInputIcon": "pf-c-number-input__icon",
  "numberInputUnit": "pf-c-number-input__unit"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/OptionsMenu/options-menu.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/OptionsMenu/options-menu.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./options-menu.css */ "./node_modules/@patternfly/react-styles/css/components/OptionsMenu/options-menu.css");
exports["default"] = {
  "divider": "pf-c-divider",
  "modifiers": {
    "plain": "pf-m-plain",
    "text": "pf-m-text",
    "active": "pf-m-active",
    "expanded": "pf-m-expanded",
    "disabled": "pf-m-disabled",
    "top": "pf-m-top",
    "alignRight": "pf-m-align-right"
  },
  "optionsMenu": "pf-c-options-menu",
  "optionsMenuGroup": "pf-c-options-menu__group",
  "optionsMenuGroupTitle": "pf-c-options-menu__group-title",
  "optionsMenuMenu": "pf-c-options-menu__menu",
  "optionsMenuMenuItem": "pf-c-options-menu__menu-item",
  "optionsMenuMenuItemIcon": "pf-c-options-menu__menu-item-icon",
  "optionsMenuToggle": "pf-c-options-menu__toggle",
  "optionsMenuToggleButton": "pf-c-options-menu__toggle-button",
  "optionsMenuToggleButtonIcon": "pf-c-options-menu__toggle-button-icon",
  "optionsMenuToggleIcon": "pf-c-options-menu__toggle-icon",
  "optionsMenuToggleText": "pf-c-options-menu__toggle-text"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Page/page.js":
/*!***************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Page/page.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./page.css */ "./node_modules/@patternfly/react-styles/css/components/Page/page.css");
exports["default"] = {
  "avatar": "pf-c-avatar",
  "brand": "pf-c-brand",
  "button": "pf-c-button",
  "card": "pf-c-card",
  "contextSelector": "pf-c-context-selector",
  "drawer": "pf-c-drawer",
  "masthead": "pf-c-masthead",
  "modifiers": {
    "light": "pf-m-light",
    "menu": "pf-m-menu",
    "hidden": "pf-m-hidden",
    "hiddenOnSm": "pf-m-hidden-on-sm",
    "visibleOnSm": "pf-m-visible-on-sm",
    "hiddenOnMd": "pf-m-hidden-on-md",
    "visibleOnMd": "pf-m-visible-on-md",
    "hiddenOnLg": "pf-m-hidden-on-lg",
    "visibleOnLg": "pf-m-visible-on-lg",
    "hiddenOnXl": "pf-m-hidden-on-xl",
    "visibleOnXl": "pf-m-visible-on-xl",
    "hiddenOn_2xl": "pf-m-hidden-on-2xl",
    "visibleOn_2xl": "pf-m-visible-on-2xl",
    "read": "pf-m-read",
    "selected": "pf-m-selected",
    "unread": "pf-m-unread",
    "attention": "pf-m-attention",
    "expanded": "pf-m-expanded",
    "collapsed": "pf-m-collapsed",
    "limitWidth": "pf-m-limit-width",
    "alignCenter": "pf-m-align-center",
    "stickyTop": "pf-m-sticky-top",
    "stickyBottom": "pf-m-sticky-bottom",
    "overflowScroll": "pf-m-overflow-scroll",
    "shadowBottom": "pf-m-shadow-bottom",
    "shadowTop": "pf-m-shadow-top",
    "fill": "pf-m-fill",
    "noFill": "pf-m-no-fill",
    "dark_100": "pf-m-dark-100",
    "dark_200": "pf-m-dark-200",
    "padding": "pf-m-padding",
    "noPadding": "pf-m-no-padding",
    "paddingOnSm": "pf-m-padding-on-sm",
    "noPaddingOnSm": "pf-m-no-padding-on-sm",
    "paddingOnMd": "pf-m-padding-on-md",
    "noPaddingOnMd": "pf-m-no-padding-on-md",
    "paddingOnLg": "pf-m-padding-on-lg",
    "noPaddingOnLg": "pf-m-no-padding-on-lg",
    "paddingOnXl": "pf-m-padding-on-xl",
    "noPaddingOnXl": "pf-m-no-padding-on-xl",
    "paddingOn_2xl": "pf-m-padding-on-2xl",
    "noPaddingOn_2xl": "pf-m-no-padding-on-2xl"
  },
  "nav": "pf-c-nav",
  "notificationBadge": "pf-c-notification-badge",
  "page": "pf-c-page",
  "pageDrawer": "pf-c-page__drawer",
  "pageHeader": "pf-c-page__header",
  "pageHeaderBrand": "pf-c-page__header-brand",
  "pageHeaderBrandLink": "pf-c-page__header-brand-link",
  "pageHeaderBrandToggle": "pf-c-page__header-brand-toggle",
  "pageHeaderNav": "pf-c-page__header-nav",
  "pageHeaderTools": "pf-c-page__header-tools",
  "pageHeaderToolsGroup": "pf-c-page__header-tools-group",
  "pageHeaderToolsItem": "pf-c-page__header-tools-item",
  "pageMain": "pf-c-page__main",
  "pageMainBody": "pf-c-page__main-body",
  "pageMainBreadcrumb": "pf-c-page__main-breadcrumb",
  "pageMainDrawer": "pf-c-page__main-drawer",
  "pageMainGroup": "pf-c-page__main-group",
  "pageMainNav": "pf-c-page__main-nav",
  "pageMainSection": "pf-c-page__main-section",
  "pageMainSubnav": "pf-c-page__main-subnav",
  "pageMainTabs": "pf-c-page__main-tabs",
  "pageMainWizard": "pf-c-page__main-wizard",
  "pageSidebar": "pf-c-page__sidebar",
  "pageSidebarBody": "pf-c-page__sidebar-body"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Pagination/pagination.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Pagination/pagination.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./pagination.css */ "./node_modules/@patternfly/react-styles/css/components/Pagination/pagination.css");
exports["default"] = {
  "button": "pf-c-button",
  "formControl": "pf-c-form-control",
  "modifiers": {
    "bottom": "pf-m-bottom",
    "static": "pf-m-static",
    "first": "pf-m-first",
    "last": "pf-m-last",
    "sticky": "pf-m-sticky",
    "compact": "pf-m-compact",
    "displaySummary": "pf-m-display-summary",
    "displayFull": "pf-m-display-full",
    "displaySummaryOnSm": "pf-m-display-summary-on-sm",
    "displayFullOnSm": "pf-m-display-full-on-sm",
    "displaySummaryOnMd": "pf-m-display-summary-on-md",
    "displayFullOnMd": "pf-m-display-full-on-md",
    "displaySummaryOnLg": "pf-m-display-summary-on-lg",
    "displayFullOnLg": "pf-m-display-full-on-lg",
    "displaySummaryOnXl": "pf-m-display-summary-on-xl",
    "displayFullOnXl": "pf-m-display-full-on-xl",
    "displaySummaryOn_2xl": "pf-m-display-summary-on-2xl",
    "displayFullOn_2xl": "pf-m-display-full-on-2xl"
  },
  "optionsMenu": "pf-c-options-menu",
  "optionsMenuToggle": "pf-c-options-menu__toggle",
  "pagination": "pf-c-pagination",
  "paginationNav": "pf-c-pagination__nav",
  "paginationNavControl": "pf-c-pagination__nav-control",
  "paginationNavPageSelect": "pf-c-pagination__nav-page-select",
  "paginationTotalItems": "pf-c-pagination__total-items"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Popover/popover.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Popover/popover.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./popover.css */ "./node_modules/@patternfly/react-styles/css/components/Popover/popover.css");
exports["default"] = {
  "button": "pf-c-button",
  "modifiers": {
    "noPadding": "pf-m-no-padding",
    "widthAuto": "pf-m-width-auto",
    "top": "pf-m-top",
    "topLeft": "pf-m-top-left",
    "topRight": "pf-m-top-right",
    "bottom": "pf-m-bottom",
    "bottomLeft": "pf-m-bottom-left",
    "bottomRight": "pf-m-bottom-right",
    "left": "pf-m-left",
    "leftTop": "pf-m-left-top",
    "leftBottom": "pf-m-left-bottom",
    "right": "pf-m-right",
    "rightTop": "pf-m-right-top",
    "rightBottom": "pf-m-right-bottom",
    "danger": "pf-m-danger",
    "warning": "pf-m-warning",
    "success": "pf-m-success",
    "default": "pf-m-default",
    "info": "pf-m-info",
    "icon": "pf-m-icon"
  },
  "popover": "pf-c-popover",
  "popoverArrow": "pf-c-popover__arrow",
  "popoverBody": "pf-c-popover__body",
  "popoverContent": "pf-c-popover__content",
  "popoverFooter": "pf-c-popover__footer",
  "popoverTitle": "pf-c-popover__title",
  "popoverTitleIcon": "pf-c-popover__title-icon",
  "popoverTitleText": "pf-c-popover__title-text",
  "title": "pf-c-title"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Progress/progress.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Progress/progress.js ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./progress.css */ "./node_modules/@patternfly/react-styles/css/components/Progress/progress.css");
exports["default"] = {
  "modifiers": {
    "sm": "pf-m-sm",
    "lg": "pf-m-lg",
    "inside": "pf-m-inside",
    "outside": "pf-m-outside",
    "staticWidth": "pf-m-static-width",
    "singleline": "pf-m-singleline",
    "success": "pf-m-success",
    "warning": "pf-m-warning",
    "danger": "pf-m-danger",
    "truncate": "pf-m-truncate"
  },
  "progress": "pf-c-progress",
  "progressBar": "pf-c-progress__bar",
  "progressDescription": "pf-c-progress__description",
  "progressIndicator": "pf-c-progress__indicator",
  "progressMeasure": "pf-c-progress__measure",
  "progressStatus": "pf-c-progress__status",
  "progressStatusIcon": "pf-c-progress__status-icon"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Radio/radio.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Radio/radio.js ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./radio.css */ "./node_modules/@patternfly/react-styles/css/components/Radio/radio.css");
exports["default"] = {
  "modifiers": {
    "standalone": "pf-m-standalone",
    "disabled": "pf-m-disabled"
  },
  "radio": "pf-c-radio",
  "radioBody": "pf-c-radio__body",
  "radioDescription": "pf-c-radio__description",
  "radioInput": "pf-c-radio__input",
  "radioLabel": "pf-c-radio__label"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/SearchInput/search-input.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/SearchInput/search-input.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./search-input.css */ "./node_modules/@patternfly/react-styles/css/components/SearchInput/search-input.css");
exports["default"] = {
  "button": "pf-c-button",
  "modifiers": {
    "hint": "pf-m-hint",
    "top": "pf-m-top"
  },
  "searchInput": "pf-c-search-input",
  "searchInputBar": "pf-c-search-input__bar",
  "searchInputCount": "pf-c-search-input__count",
  "searchInputIcon": "pf-c-search-input__icon",
  "searchInputMenu": "pf-c-search-input__menu",
  "searchInputMenuBody": "pf-c-search-input__menu-body",
  "searchInputMenuItem": "pf-c-search-input__menu-item",
  "searchInputMenuItemText": "pf-c-search-input__menu-item-text",
  "searchInputMenuList": "pf-c-search-input__menu-list",
  "searchInputNav": "pf-c-search-input__nav",
  "searchInputText": "pf-c-search-input__text",
  "searchInputTextInput": "pf-c-search-input__text-input",
  "searchInputUtilities": "pf-c-search-input__utilities"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Select/select.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Select/select.js ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./select.css */ "./node_modules/@patternfly/react-styles/css/components/Select/select.css");
exports["default"] = {
  "check": "pf-c-check",
  "checkLabel": "pf-c-check__label",
  "chipGroup": "pf-c-chip-group",
  "divider": "pf-c-divider",
  "formControl": "pf-c-form-control",
  "modifiers": {
    "invalid": "pf-m-invalid",
    "success": "pf-m-success",
    "warning": "pf-m-warning",
    "disabled": "pf-m-disabled",
    "active": "pf-m-active",
    "expanded": "pf-m-expanded",
    "plain": "pf-m-plain",
    "typeahead": "pf-m-typeahead",
    "placeholder": "pf-m-placeholder",
    "top": "pf-m-top",
    "alignRight": "pf-m-align-right",
    "favorite": "pf-m-favorite",
    "favoriteAction": "pf-m-favorite-action",
    "focus": "pf-m-focus",
    "link": "pf-m-link",
    "action": "pf-m-action",
    "selected": "pf-m-selected",
    "description": "pf-m-description",
    "load": "pf-m-load",
    "loading": "pf-m-loading"
  },
  "select": "pf-c-select",
  "selectListItem": "pf-c-select__list-item",
  "selectMenu": "pf-c-select__menu",
  "selectMenuFieldset": "pf-c-select__menu-fieldset",
  "selectMenuFooter": "pf-c-select__menu-footer",
  "selectMenuGroup": "pf-c-select__menu-group",
  "selectMenuGroupTitle": "pf-c-select__menu-group-title",
  "selectMenuItem": "pf-c-select__menu-item",
  "selectMenuItemActionIcon": "pf-c-select__menu-item-action-icon",
  "selectMenuItemCount": "pf-c-select__menu-item-count",
  "selectMenuItemDescription": "pf-c-select__menu-item-description",
  "selectMenuItemIcon": "pf-c-select__menu-item-icon",
  "selectMenuItemMain": "pf-c-select__menu-item-main",
  "selectMenuItemMatch": "pf-c-select__menu-item--match",
  "selectMenuItemRow": "pf-c-select__menu-item-row",
  "selectMenuItemText": "pf-c-select__menu-item-text",
  "selectMenuSearch": "pf-c-select__menu-search",
  "selectMenuWrapper": "pf-c-select__menu-wrapper",
  "selectToggle": "pf-c-select__toggle",
  "selectToggleArrow": "pf-c-select__toggle-arrow",
  "selectToggleBadge": "pf-c-select__toggle-badge",
  "selectToggleButton": "pf-c-select__toggle-button",
  "selectToggleClear": "pf-c-select__toggle-clear",
  "selectToggleIcon": "pf-c-select__toggle-icon",
  "selectToggleStatusIcon": "pf-c-select__toggle-status-icon",
  "selectToggleText": "pf-c-select__toggle-text",
  "selectToggleTypeahead": "pf-c-select__toggle-typeahead",
  "selectToggleWrapper": "pf-c-select__toggle-wrapper"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/SimpleList/simple-list.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/SimpleList/simple-list.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./simple-list.css */ "./node_modules/@patternfly/react-styles/css/components/SimpleList/simple-list.css");
exports["default"] = {
  "modifiers": {
    "current": "pf-m-current"
  },
  "simpleList": "pf-c-simple-list",
  "simpleListItemLink": "pf-c-simple-list__item-link",
  "simpleListSection": "pf-c-simple-list__section",
  "simpleListTitle": "pf-c-simple-list__title"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Spinner/spinner.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Spinner/spinner.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./spinner.css */ "./node_modules/@patternfly/react-styles/css/components/Spinner/spinner.css");
exports["default"] = {
  "modifiers": {
    "sm": "pf-m-sm",
    "md": "pf-m-md",
    "lg": "pf-m-lg",
    "xl": "pf-m-xl"
  },
  "spinner": "pf-c-spinner",
  "spinnerClipper": "pf-c-spinner__clipper",
  "spinnerLeadBall": "pf-c-spinner__lead-ball",
  "spinnerPath": "pf-c-spinner__path",
  "spinnerTailBall": "pf-c-spinner__tail-ball"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Switch/switch.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Switch/switch.js ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./switch.css */ "./node_modules/@patternfly/react-styles/css/components/Switch/switch.css");
exports["default"] = {
  "modifiers": {
    "reverse": "pf-m-reverse",
    "off": "pf-m-off",
    "on": "pf-m-on"
  },
  "switch": "pf-c-switch",
  "switchInput": "pf-c-switch__input",
  "switchLabel": "pf-c-switch__label",
  "switchToggle": "pf-c-switch__toggle",
  "switchToggleIcon": "pf-c-switch__toggle-icon"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/TabContent/tab-content.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/TabContent/tab-content.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./tab-content.css */ "./node_modules/@patternfly/react-styles/css/components/TabContent/tab-content.css");
exports["default"] = {
  "modifiers": {
    "light_300": "pf-m-light-300",
    "padding": "pf-m-padding"
  },
  "tabContent": "pf-c-tab-content",
  "tabContentBody": "pf-c-tab-content__body"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Table/table-grid.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Table/table-grid.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./table-grid.css */ "./node_modules/@patternfly/react-styles/css/components/Table/table-grid.css");
exports["default"] = {
  "button": "pf-c-button",
  "modifiers": {
    "grid": "pf-m-grid",
    "compact": "pf-m-compact",
    "expanded": "pf-m-expanded",
    "selected": "pf-m-selected",
    "noPadding": "pf-m-no-padding",
    "hoverable": "pf-m-hoverable",
    "nowrap": "pf-m-nowrap",
    "fitContent": "pf-m-fit-content",
    "truncate": "pf-m-truncate",
    "gridMd": "pf-m-grid-md",
    "gridLg": "pf-m-grid-lg",
    "gridXl": "pf-m-grid-xl",
    "grid_2xl": "pf-m-grid-2xl"
  },
  "table": "pf-c-table",
  "tableAction": "pf-c-table__action",
  "tableButton": "pf-c-table__button",
  "tableCheck": "pf-c-table__check",
  "tableCompoundExpansionToggle": "pf-c-table__compound-expansion-toggle",
  "tableExpandableRow": "pf-c-table__expandable-row",
  "tableExpandableRowContent": "pf-c-table__expandable-row-content",
  "tableFavorite": "pf-c-table__favorite",
  "tableIcon": "pf-c-table__icon",
  "tableInlineEditAction": "pf-c-table__inline-edit-action",
  "tableText": "pf-c-table__text",
  "tableToggle": "pf-c-table__toggle",
  "tableToggleIcon": "pf-c-table__toggle-icon"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Table/table-scrollable.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Table/table-scrollable.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./table-scrollable.css */ "./node_modules/@patternfly/react-styles/css/components/Table/table-scrollable.css");
exports["default"] = {
  "modifiers": {
    "borderRight": "pf-m-border-right",
    "borderLeft": "pf-m-border-left",
    "stickyHeader": "pf-m-sticky-header"
  },
  "scrollInnerWrapper": "pf-c-scroll-inner-wrapper",
  "scrollOuterWrapper": "pf-c-scroll-outer-wrapper",
  "table": "pf-c-table",
  "tableStickyColumn": "pf-c-table__sticky-column"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Table/table-tree-view.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Table/table-tree-view.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./table-tree-view.css */ "./node_modules/@patternfly/react-styles/css/components/Table/table-tree-view.css");
exports["default"] = {
  "dropdown": "pf-c-dropdown",
  "modifiers": {
    "treeView": "pf-m-tree-view",
    "treeViewGrid": "pf-m-tree-view-grid",
    "treeViewDetailsExpanded": "pf-m-tree-view-details-expanded",
    "treeViewGridMd": "pf-m-tree-view-grid-md",
    "treeViewGridLg": "pf-m-tree-view-grid-lg",
    "treeViewGridXl": "pf-m-tree-view-grid-xl",
    "treeViewGrid_2xl": "pf-m-tree-view-grid-2xl"
  },
  "table": "pf-c-table",
  "tableAction": "pf-c-table__action",
  "tableCheck": "pf-c-table__check",
  "tableToggle": "pf-c-table__toggle",
  "tableToggleIcon": "pf-c-table__toggle-icon",
  "tableTreeViewDetailsToggle": "pf-c-table__tree-view-details-toggle",
  "tableTreeViewIcon": "pf-c-table__tree-view-icon",
  "tableTreeViewMain": "pf-c-table__tree-view-main",
  "tableTreeViewText": "pf-c-table__tree-view-text",
  "tableTreeViewTitleCell": "pf-c-table__tree-view-title-cell",
  "tableTreeViewTitleHeaderCell": "pf-c-table__tree-view-title-header-cell"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Table/table.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Table/table.js ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./table.css */ "./node_modules/@patternfly/react-styles/css/components/Table/table.css");
exports["default"] = {
  "button": "pf-c-button",
  "modifiers": {
    "hidden": "pf-m-hidden",
    "hiddenOnSm": "pf-m-hidden-on-sm",
    "visibleOnSm": "pf-m-visible-on-sm",
    "hiddenOnMd": "pf-m-hidden-on-md",
    "visibleOnMd": "pf-m-visible-on-md",
    "hiddenOnLg": "pf-m-hidden-on-lg",
    "visibleOnLg": "pf-m-visible-on-lg",
    "hiddenOnXl": "pf-m-hidden-on-xl",
    "visibleOnXl": "pf-m-visible-on-xl",
    "hiddenOn_2xl": "pf-m-hidden-on-2xl",
    "visibleOn_2xl": "pf-m-visible-on-2xl",
    "fixed": "pf-m-fixed",
    "stickyHeader": "pf-m-sticky-header",
    "ghostRow": "pf-m-ghost-row",
    "center": "pf-m-center",
    "help": "pf-m-help",
    "favorite": "pf-m-favorite",
    "borderRight": "pf-m-border-right",
    "borderLeft": "pf-m-border-left",
    "nestedColumnHeader": "pf-m-nested-column-header",
    "truncate": "pf-m-truncate",
    "wrap": "pf-m-wrap",
    "nowrap": "pf-m-nowrap",
    "fitContent": "pf-m-fit-content",
    "breakWord": "pf-m-break-word",
    "noBorderRows": "pf-m-no-border-rows",
    "expanded": "pf-m-expanded",
    "hoverable": "pf-m-hoverable",
    "selected": "pf-m-selected",
    "firstCellOffsetReset": "pf-m-first-cell-offset-reset",
    "dragOver": "pf-m-drag-over",
    "favorited": "pf-m-favorited",
    "noPadding": "pf-m-no-padding",
    "compact": "pf-m-compact",
    "width_10": "pf-m-width-10",
    "width_15": "pf-m-width-15",
    "width_20": "pf-m-width-20",
    "width_25": "pf-m-width-25",
    "width_30": "pf-m-width-30",
    "width_35": "pf-m-width-35",
    "width_40": "pf-m-width-40",
    "width_45": "pf-m-width-45",
    "width_50": "pf-m-width-50",
    "width_60": "pf-m-width-60",
    "width_70": "pf-m-width-70",
    "width_80": "pf-m-width-80",
    "width_90": "pf-m-width-90",
    "width_100": "pf-m-width-100"
  },
  "table": "pf-c-table",
  "tableAction": "pf-c-table__action",
  "tableButton": "pf-c-table__button",
  "tableButtonContent": "pf-c-table__button-content",
  "tableCheck": "pf-c-table__check",
  "tableColumnHelp": "pf-c-table__column-help",
  "tableColumnHelpAction": "pf-c-table__column-help-action",
  "tableCompoundExpansionToggle": "pf-c-table__compound-expansion-toggle",
  "tableControlRow": "pf-c-table__control-row",
  "tableDraggable": "pf-c-table__draggable",
  "tableExpandableRow": "pf-c-table__expandable-row",
  "tableExpandableRowContent": "pf-c-table__expandable-row-content",
  "tableFavorite": "pf-c-table__favorite",
  "tableIcon": "pf-c-table__icon",
  "tableIconInline": "pf-c-table__icon-inline",
  "tableInlineEditAction": "pf-c-table__inline-edit-action",
  "tableSort": "pf-c-table__sort",
  "tableSortIndicator": "pf-c-table__sort-indicator",
  "tableSubhead": "pf-c-table__subhead",
  "tableText": "pf-c-table__text",
  "tableToggle": "pf-c-table__toggle",
  "tableToggleIcon": "pf-c-table__toggle-icon"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Tabs/tabs.js":
/*!***************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Tabs/tabs.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./tabs.css */ "./node_modules/@patternfly/react-styles/css/components/Tabs/tabs.css");
exports["default"] = {
  "button": "pf-c-button",
  "modifiers": {
    "fill": "pf-m-fill",
    "scrollable": "pf-m-scrollable",
    "secondary": "pf-m-secondary",
    "noBorderBottom": "pf-m-no-border-bottom",
    "box": "pf-m-box",
    "vertical": "pf-m-vertical",
    "current": "pf-m-current",
    "colorSchemeLight_300": "pf-m-color-scheme--light-300",
    "expandable": "pf-m-expandable",
    "nonExpandable": "pf-m-non-expandable",
    "expandableOnSm": "pf-m-expandable-on-sm",
    "nonExpandableOnSm": "pf-m-non-expandable-on-sm",
    "expandableOnMd": "pf-m-expandable-on-md",
    "nonExpandableOnMd": "pf-m-non-expandable-on-md",
    "expandableOnLg": "pf-m-expandable-on-lg",
    "nonExpandableOnLg": "pf-m-non-expandable-on-lg",
    "expandableOnXl": "pf-m-expandable-on-xl",
    "nonExpandableOnXl": "pf-m-non-expandable-on-xl",
    "expandableOn_2xl": "pf-m-expandable-on-2xl",
    "nonExpandableOn_2xl": "pf-m-non-expandable-on-2xl",
    "expanded": "pf-m-expanded",
    "pageInsets": "pf-m-page-insets",
    "disabled": "pf-m-disabled",
    "ariaDisabled": "pf-m-aria-disabled",
    "insetNone": "pf-m-inset-none",
    "insetSm": "pf-m-inset-sm",
    "insetMd": "pf-m-inset-md",
    "insetLg": "pf-m-inset-lg",
    "insetXl": "pf-m-inset-xl",
    "inset_2xl": "pf-m-inset-2xl",
    "insetNoneOnSm": "pf-m-inset-none-on-sm",
    "insetSmOnSm": "pf-m-inset-sm-on-sm",
    "insetMdOnSm": "pf-m-inset-md-on-sm",
    "insetLgOnSm": "pf-m-inset-lg-on-sm",
    "insetXlOnSm": "pf-m-inset-xl-on-sm",
    "inset_2xlOnSm": "pf-m-inset-2xl-on-sm",
    "insetNoneOnMd": "pf-m-inset-none-on-md",
    "insetSmOnMd": "pf-m-inset-sm-on-md",
    "insetMdOnMd": "pf-m-inset-md-on-md",
    "insetLgOnMd": "pf-m-inset-lg-on-md",
    "insetXlOnMd": "pf-m-inset-xl-on-md",
    "inset_2xlOnMd": "pf-m-inset-2xl-on-md",
    "insetNoneOnLg": "pf-m-inset-none-on-lg",
    "insetSmOnLg": "pf-m-inset-sm-on-lg",
    "insetMdOnLg": "pf-m-inset-md-on-lg",
    "insetLgOnLg": "pf-m-inset-lg-on-lg",
    "insetXlOnLg": "pf-m-inset-xl-on-lg",
    "inset_2xlOnLg": "pf-m-inset-2xl-on-lg",
    "insetNoneOnXl": "pf-m-inset-none-on-xl",
    "insetSmOnXl": "pf-m-inset-sm-on-xl",
    "insetMdOnXl": "pf-m-inset-md-on-xl",
    "insetLgOnXl": "pf-m-inset-lg-on-xl",
    "insetXlOnXl": "pf-m-inset-xl-on-xl",
    "inset_2xlOnXl": "pf-m-inset-2xl-on-xl",
    "insetNoneOn_2xl": "pf-m-inset-none-on-2xl",
    "insetSmOn_2xl": "pf-m-inset-sm-on-2xl",
    "insetMdOn_2xl": "pf-m-inset-md-on-2xl",
    "insetLgOn_2xl": "pf-m-inset-lg-on-2xl",
    "insetXlOn_2xl": "pf-m-inset-xl-on-2xl",
    "inset_2xlOn_2xl": "pf-m-inset-2xl-on-2xl"
  },
  "tabs": "pf-c-tabs",
  "tabsItem": "pf-c-tabs__item",
  "tabsItemIcon": "pf-c-tabs__item-icon",
  "tabsItemText": "pf-c-tabs__item-text",
  "tabsLink": "pf-c-tabs__link",
  "tabsList": "pf-c-tabs__list",
  "tabsScrollButton": "pf-c-tabs__scroll-button",
  "tabsToggle": "pf-c-tabs__toggle",
  "tabsToggleButton": "pf-c-tabs__toggle-button",
  "tabsToggleIcon": "pf-c-tabs__toggle-icon",
  "tabsToggleText": "pf-c-tabs__toggle-text"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Title/title.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Title/title.js ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./title.css */ "./node_modules/@patternfly/react-styles/css/components/Title/title.css");
exports["default"] = {
  "modifiers": {
    "4xl": "pf-m-4xl",
    "3xl": "pf-m-3xl",
    "2xl": "pf-m-2xl",
    "xl": "pf-m-xl",
    "lg": "pf-m-lg",
    "md": "pf-m-md",
    "overpassFont": "pf-m-overpass-font"
  },
  "title": "pf-c-title"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/ToggleGroup/toggle-group.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/ToggleGroup/toggle-group.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./toggle-group.css */ "./node_modules/@patternfly/react-styles/css/components/ToggleGroup/toggle-group.css");
exports["default"] = {
  "modifiers": {
    "compact": "pf-m-compact",
    "selected": "pf-m-selected",
    "disabled": "pf-m-disabled"
  },
  "toggleGroup": "pf-c-toggle-group",
  "toggleGroupButton": "pf-c-toggle-group__button",
  "toggleGroupIcon": "pf-c-toggle-group__icon",
  "toggleGroupItem": "pf-c-toggle-group__item",
  "toggleGroupText": "pf-c-toggle-group__text"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Tooltip/tooltip.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Tooltip/tooltip.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./tooltip.css */ "./node_modules/@patternfly/react-styles/css/components/Tooltip/tooltip.css");
exports["default"] = {
  "modifiers": {
    "top": "pf-m-top",
    "topLeft": "pf-m-top-left",
    "topRight": "pf-m-top-right",
    "bottom": "pf-m-bottom",
    "bottomLeft": "pf-m-bottom-left",
    "bottomRight": "pf-m-bottom-right",
    "left": "pf-m-left",
    "leftTop": "pf-m-left-top",
    "leftBottom": "pf-m-left-bottom",
    "right": "pf-m-right",
    "rightTop": "pf-m-right-top",
    "rightBottom": "pf-m-right-bottom",
    "textAlignLeft": "pf-m-text-align-left"
  },
  "tooltip": "pf-c-tooltip",
  "tooltipArrow": "pf-c-tooltip__arrow",
  "tooltipContent": "pf-c-tooltip__content"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/TreeView/tree-view.js":
/*!************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/TreeView/tree-view.js ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./tree-view.css */ "./node_modules/@patternfly/react-styles/css/components/TreeView/tree-view.css");
exports["default"] = {
  "badge": "pf-c-badge",
  "modifiers": {
    "compact": "pf-m-compact",
    "guides": "pf-m-guides",
    "expanded": "pf-m-expanded",
    "noBackground": "pf-m-no-background",
    "current": "pf-m-current",
    "read": "pf-m-read",
    "truncate": "pf-m-truncate"
  },
  "treeView": "pf-c-tree-view",
  "treeViewAction": "pf-c-tree-view__action",
  "treeViewContent": "pf-c-tree-view__content",
  "treeViewListItem": "pf-c-tree-view__list-item",
  "treeViewNode": "pf-c-tree-view__node",
  "treeViewNodeCheck": "pf-c-tree-view__node-check",
  "treeViewNodeContainer": "pf-c-tree-view__node-container",
  "treeViewNodeContent": "pf-c-tree-view__node-content",
  "treeViewNodeCount": "pf-c-tree-view__node-count",
  "treeViewNodeIcon": "pf-c-tree-view__node-icon",
  "treeViewNodeText": "pf-c-tree-view__node-text",
  "treeViewNodeTitle": "pf-c-tree-view__node-title",
  "treeViewNodeToggle": "pf-c-tree-view__node-toggle",
  "treeViewNodeToggleIcon": "pf-c-tree-view__node-toggle-icon",
  "treeViewSearch": "pf-c-tree-view__search"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Wizard/wizard.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Wizard/wizard.js ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./wizard.css */ "./node_modules/@patternfly/react-styles/css/components/Wizard/wizard.css");
exports["default"] = {
  "button": "pf-c-button",
  "card": "pf-c-card",
  "modalBox": "pf-c-modal-box",
  "modifiers": {
    "finished": "pf-m-finished",
    "expanded": "pf-m-expanded",
    "current": "pf-m-current",
    "expandable": "pf-m-expandable",
    "disabled": "pf-m-disabled",
    "noPadding": "pf-m-no-padding"
  },
  "pageMainWizard": "pf-c-page__main-wizard",
  "wizard": "pf-c-wizard",
  "wizardClose": "pf-c-wizard__close",
  "wizardDescription": "pf-c-wizard__description",
  "wizardFooter": "pf-c-wizard__footer",
  "wizardFooterCancel": "pf-c-wizard__footer-cancel",
  "wizardHeader": "pf-c-wizard__header",
  "wizardInnerWrap": "pf-c-wizard__inner-wrap",
  "wizardMain": "pf-c-wizard__main",
  "wizardMainBody": "pf-c-wizard__main-body",
  "wizardNav": "pf-c-wizard__nav",
  "wizardNavItem": "pf-c-wizard__nav-item",
  "wizardNavLink": "pf-c-wizard__nav-link",
  "wizardNavLinkText": "pf-c-wizard__nav-link-text",
  "wizardNavLinkToggle": "pf-c-wizard__nav-link-toggle",
  "wizardNavLinkToggleIcon": "pf-c-wizard__nav-link-toggle-icon",
  "wizardNavList": "pf-c-wizard__nav-list",
  "wizardOuterWrap": "pf-c-wizard__outer-wrap",
  "wizardTitle": "pf-c-wizard__title",
  "wizardToggle": "pf-c-wizard__toggle",
  "wizardToggleIcon": "pf-c-wizard__toggle-icon",
  "wizardToggleList": "pf-c-wizard__toggle-list",
  "wizardToggleListItem": "pf-c-wizard__toggle-list-item",
  "wizardToggleNum": "pf-c-wizard__toggle-num",
  "wizardToggleSeparator": "pf-c-wizard__toggle-separator"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/layouts/Bullseye/bullseye.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/layouts/Bullseye/bullseye.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./bullseye.css */ "./node_modules/@patternfly/react-styles/css/layouts/Bullseye/bullseye.css");
exports["default"] = {
  "bullseye": "pf-l-bullseye"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/layouts/Grid/grid.js":
/*!************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/layouts/Grid/grid.js ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./grid.css */ "./node_modules/@patternfly/react-styles/css/layouts/Grid/grid.css");
exports["default"] = {
  "grid": "pf-l-grid",
  "gridItem": "pf-l-grid__item",
  "modifiers": {
    "all_1Col": "pf-m-all-1-col",
    "all_2Col": "pf-m-all-2-col",
    "all_3Col": "pf-m-all-3-col",
    "all_4Col": "pf-m-all-4-col",
    "all_5Col": "pf-m-all-5-col",
    "all_6Col": "pf-m-all-6-col",
    "all_7Col": "pf-m-all-7-col",
    "all_8Col": "pf-m-all-8-col",
    "all_9Col": "pf-m-all-9-col",
    "all_10Col": "pf-m-all-10-col",
    "all_11Col": "pf-m-all-11-col",
    "all_12Col": "pf-m-all-12-col",
    "all_1ColOnSm": "pf-m-all-1-col-on-sm",
    "all_2ColOnSm": "pf-m-all-2-col-on-sm",
    "all_3ColOnSm": "pf-m-all-3-col-on-sm",
    "all_4ColOnSm": "pf-m-all-4-col-on-sm",
    "all_5ColOnSm": "pf-m-all-5-col-on-sm",
    "all_6ColOnSm": "pf-m-all-6-col-on-sm",
    "all_7ColOnSm": "pf-m-all-7-col-on-sm",
    "all_8ColOnSm": "pf-m-all-8-col-on-sm",
    "all_9ColOnSm": "pf-m-all-9-col-on-sm",
    "all_10ColOnSm": "pf-m-all-10-col-on-sm",
    "all_11ColOnSm": "pf-m-all-11-col-on-sm",
    "all_12ColOnSm": "pf-m-all-12-col-on-sm",
    "all_1ColOnMd": "pf-m-all-1-col-on-md",
    "all_2ColOnMd": "pf-m-all-2-col-on-md",
    "all_3ColOnMd": "pf-m-all-3-col-on-md",
    "all_4ColOnMd": "pf-m-all-4-col-on-md",
    "all_5ColOnMd": "pf-m-all-5-col-on-md",
    "all_6ColOnMd": "pf-m-all-6-col-on-md",
    "all_7ColOnMd": "pf-m-all-7-col-on-md",
    "all_8ColOnMd": "pf-m-all-8-col-on-md",
    "all_9ColOnMd": "pf-m-all-9-col-on-md",
    "all_10ColOnMd": "pf-m-all-10-col-on-md",
    "all_11ColOnMd": "pf-m-all-11-col-on-md",
    "all_12ColOnMd": "pf-m-all-12-col-on-md",
    "all_1ColOnLg": "pf-m-all-1-col-on-lg",
    "all_2ColOnLg": "pf-m-all-2-col-on-lg",
    "all_3ColOnLg": "pf-m-all-3-col-on-lg",
    "all_4ColOnLg": "pf-m-all-4-col-on-lg",
    "all_5ColOnLg": "pf-m-all-5-col-on-lg",
    "all_6ColOnLg": "pf-m-all-6-col-on-lg",
    "all_7ColOnLg": "pf-m-all-7-col-on-lg",
    "all_8ColOnLg": "pf-m-all-8-col-on-lg",
    "all_9ColOnLg": "pf-m-all-9-col-on-lg",
    "all_10ColOnLg": "pf-m-all-10-col-on-lg",
    "all_11ColOnLg": "pf-m-all-11-col-on-lg",
    "all_12ColOnLg": "pf-m-all-12-col-on-lg",
    "all_1ColOnXl": "pf-m-all-1-col-on-xl",
    "all_2ColOnXl": "pf-m-all-2-col-on-xl",
    "all_3ColOnXl": "pf-m-all-3-col-on-xl",
    "all_4ColOnXl": "pf-m-all-4-col-on-xl",
    "all_5ColOnXl": "pf-m-all-5-col-on-xl",
    "all_6ColOnXl": "pf-m-all-6-col-on-xl",
    "all_7ColOnXl": "pf-m-all-7-col-on-xl",
    "all_8ColOnXl": "pf-m-all-8-col-on-xl",
    "all_9ColOnXl": "pf-m-all-9-col-on-xl",
    "all_10ColOnXl": "pf-m-all-10-col-on-xl",
    "all_11ColOnXl": "pf-m-all-11-col-on-xl",
    "all_12ColOnXl": "pf-m-all-12-col-on-xl",
    "all_1ColOn_2xl": "pf-m-all-1-col-on-2xl",
    "all_2ColOn_2xl": "pf-m-all-2-col-on-2xl",
    "all_3ColOn_2xl": "pf-m-all-3-col-on-2xl",
    "all_4ColOn_2xl": "pf-m-all-4-col-on-2xl",
    "all_5ColOn_2xl": "pf-m-all-5-col-on-2xl",
    "all_6ColOn_2xl": "pf-m-all-6-col-on-2xl",
    "all_7ColOn_2xl": "pf-m-all-7-col-on-2xl",
    "all_8ColOn_2xl": "pf-m-all-8-col-on-2xl",
    "all_9ColOn_2xl": "pf-m-all-9-col-on-2xl",
    "all_10ColOn_2xl": "pf-m-all-10-col-on-2xl",
    "all_11ColOn_2xl": "pf-m-all-11-col-on-2xl",
    "all_12ColOn_2xl": "pf-m-all-12-col-on-2xl",
    "1Col": "pf-m-1-col",
    "2Col": "pf-m-2-col",
    "3Col": "pf-m-3-col",
    "4Col": "pf-m-4-col",
    "5Col": "pf-m-5-col",
    "6Col": "pf-m-6-col",
    "7Col": "pf-m-7-col",
    "8Col": "pf-m-8-col",
    "9Col": "pf-m-9-col",
    "10Col": "pf-m-10-col",
    "11Col": "pf-m-11-col",
    "12Col": "pf-m-12-col",
    "offset_1Col": "pf-m-offset-1-col",
    "offset_2Col": "pf-m-offset-2-col",
    "offset_3Col": "pf-m-offset-3-col",
    "offset_4Col": "pf-m-offset-4-col",
    "offset_5Col": "pf-m-offset-5-col",
    "offset_6Col": "pf-m-offset-6-col",
    "offset_7Col": "pf-m-offset-7-col",
    "offset_8Col": "pf-m-offset-8-col",
    "offset_9Col": "pf-m-offset-9-col",
    "offset_10Col": "pf-m-offset-10-col",
    "offset_11Col": "pf-m-offset-11-col",
    "offset_12Col": "pf-m-offset-12-col",
    "1Row": "pf-m-1-row",
    "2Row": "pf-m-2-row",
    "3Row": "pf-m-3-row",
    "4Row": "pf-m-4-row",
    "5Row": "pf-m-5-row",
    "6Row": "pf-m-6-row",
    "7Row": "pf-m-7-row",
    "8Row": "pf-m-8-row",
    "9Row": "pf-m-9-row",
    "10Row": "pf-m-10-row",
    "11Row": "pf-m-11-row",
    "12Row": "pf-m-12-row",
    "1ColOnSm": "pf-m-1-col-on-sm",
    "2ColOnSm": "pf-m-2-col-on-sm",
    "3ColOnSm": "pf-m-3-col-on-sm",
    "4ColOnSm": "pf-m-4-col-on-sm",
    "5ColOnSm": "pf-m-5-col-on-sm",
    "6ColOnSm": "pf-m-6-col-on-sm",
    "7ColOnSm": "pf-m-7-col-on-sm",
    "8ColOnSm": "pf-m-8-col-on-sm",
    "9ColOnSm": "pf-m-9-col-on-sm",
    "10ColOnSm": "pf-m-10-col-on-sm",
    "11ColOnSm": "pf-m-11-col-on-sm",
    "12ColOnSm": "pf-m-12-col-on-sm",
    "offset_1ColOnSm": "pf-m-offset-1-col-on-sm",
    "offset_2ColOnSm": "pf-m-offset-2-col-on-sm",
    "offset_3ColOnSm": "pf-m-offset-3-col-on-sm",
    "offset_4ColOnSm": "pf-m-offset-4-col-on-sm",
    "offset_5ColOnSm": "pf-m-offset-5-col-on-sm",
    "offset_6ColOnSm": "pf-m-offset-6-col-on-sm",
    "offset_7ColOnSm": "pf-m-offset-7-col-on-sm",
    "offset_8ColOnSm": "pf-m-offset-8-col-on-sm",
    "offset_9ColOnSm": "pf-m-offset-9-col-on-sm",
    "offset_10ColOnSm": "pf-m-offset-10-col-on-sm",
    "offset_11ColOnSm": "pf-m-offset-11-col-on-sm",
    "offset_12ColOnSm": "pf-m-offset-12-col-on-sm",
    "1RowOnSm": "pf-m-1-row-on-sm",
    "2RowOnSm": "pf-m-2-row-on-sm",
    "3RowOnSm": "pf-m-3-row-on-sm",
    "4RowOnSm": "pf-m-4-row-on-sm",
    "5RowOnSm": "pf-m-5-row-on-sm",
    "6RowOnSm": "pf-m-6-row-on-sm",
    "7RowOnSm": "pf-m-7-row-on-sm",
    "8RowOnSm": "pf-m-8-row-on-sm",
    "9RowOnSm": "pf-m-9-row-on-sm",
    "10RowOnSm": "pf-m-10-row-on-sm",
    "11RowOnSm": "pf-m-11-row-on-sm",
    "12RowOnSm": "pf-m-12-row-on-sm",
    "1ColOnMd": "pf-m-1-col-on-md",
    "2ColOnMd": "pf-m-2-col-on-md",
    "3ColOnMd": "pf-m-3-col-on-md",
    "4ColOnMd": "pf-m-4-col-on-md",
    "5ColOnMd": "pf-m-5-col-on-md",
    "6ColOnMd": "pf-m-6-col-on-md",
    "7ColOnMd": "pf-m-7-col-on-md",
    "8ColOnMd": "pf-m-8-col-on-md",
    "9ColOnMd": "pf-m-9-col-on-md",
    "10ColOnMd": "pf-m-10-col-on-md",
    "11ColOnMd": "pf-m-11-col-on-md",
    "12ColOnMd": "pf-m-12-col-on-md",
    "offset_1ColOnMd": "pf-m-offset-1-col-on-md",
    "offset_2ColOnMd": "pf-m-offset-2-col-on-md",
    "offset_3ColOnMd": "pf-m-offset-3-col-on-md",
    "offset_4ColOnMd": "pf-m-offset-4-col-on-md",
    "offset_5ColOnMd": "pf-m-offset-5-col-on-md",
    "offset_6ColOnMd": "pf-m-offset-6-col-on-md",
    "offset_7ColOnMd": "pf-m-offset-7-col-on-md",
    "offset_8ColOnMd": "pf-m-offset-8-col-on-md",
    "offset_9ColOnMd": "pf-m-offset-9-col-on-md",
    "offset_10ColOnMd": "pf-m-offset-10-col-on-md",
    "offset_11ColOnMd": "pf-m-offset-11-col-on-md",
    "offset_12ColOnMd": "pf-m-offset-12-col-on-md",
    "1RowOnMd": "pf-m-1-row-on-md",
    "2RowOnMd": "pf-m-2-row-on-md",
    "3RowOnMd": "pf-m-3-row-on-md",
    "4RowOnMd": "pf-m-4-row-on-md",
    "5RowOnMd": "pf-m-5-row-on-md",
    "6RowOnMd": "pf-m-6-row-on-md",
    "7RowOnMd": "pf-m-7-row-on-md",
    "8RowOnMd": "pf-m-8-row-on-md",
    "9RowOnMd": "pf-m-9-row-on-md",
    "10RowOnMd": "pf-m-10-row-on-md",
    "11RowOnMd": "pf-m-11-row-on-md",
    "12RowOnMd": "pf-m-12-row-on-md",
    "1ColOnLg": "pf-m-1-col-on-lg",
    "2ColOnLg": "pf-m-2-col-on-lg",
    "3ColOnLg": "pf-m-3-col-on-lg",
    "4ColOnLg": "pf-m-4-col-on-lg",
    "5ColOnLg": "pf-m-5-col-on-lg",
    "6ColOnLg": "pf-m-6-col-on-lg",
    "7ColOnLg": "pf-m-7-col-on-lg",
    "8ColOnLg": "pf-m-8-col-on-lg",
    "9ColOnLg": "pf-m-9-col-on-lg",
    "10ColOnLg": "pf-m-10-col-on-lg",
    "11ColOnLg": "pf-m-11-col-on-lg",
    "12ColOnLg": "pf-m-12-col-on-lg",
    "offset_1ColOnLg": "pf-m-offset-1-col-on-lg",
    "offset_2ColOnLg": "pf-m-offset-2-col-on-lg",
    "offset_3ColOnLg": "pf-m-offset-3-col-on-lg",
    "offset_4ColOnLg": "pf-m-offset-4-col-on-lg",
    "offset_5ColOnLg": "pf-m-offset-5-col-on-lg",
    "offset_6ColOnLg": "pf-m-offset-6-col-on-lg",
    "offset_7ColOnLg": "pf-m-offset-7-col-on-lg",
    "offset_8ColOnLg": "pf-m-offset-8-col-on-lg",
    "offset_9ColOnLg": "pf-m-offset-9-col-on-lg",
    "offset_10ColOnLg": "pf-m-offset-10-col-on-lg",
    "offset_11ColOnLg": "pf-m-offset-11-col-on-lg",
    "offset_12ColOnLg": "pf-m-offset-12-col-on-lg",
    "1RowOnLg": "pf-m-1-row-on-lg",
    "2RowOnLg": "pf-m-2-row-on-lg",
    "3RowOnLg": "pf-m-3-row-on-lg",
    "4RowOnLg": "pf-m-4-row-on-lg",
    "5RowOnLg": "pf-m-5-row-on-lg",
    "6RowOnLg": "pf-m-6-row-on-lg",
    "7RowOnLg": "pf-m-7-row-on-lg",
    "8RowOnLg": "pf-m-8-row-on-lg",
    "9RowOnLg": "pf-m-9-row-on-lg",
    "10RowOnLg": "pf-m-10-row-on-lg",
    "11RowOnLg": "pf-m-11-row-on-lg",
    "12RowOnLg": "pf-m-12-row-on-lg",
    "1ColOnXl": "pf-m-1-col-on-xl",
    "2ColOnXl": "pf-m-2-col-on-xl",
    "3ColOnXl": "pf-m-3-col-on-xl",
    "4ColOnXl": "pf-m-4-col-on-xl",
    "5ColOnXl": "pf-m-5-col-on-xl",
    "6ColOnXl": "pf-m-6-col-on-xl",
    "7ColOnXl": "pf-m-7-col-on-xl",
    "8ColOnXl": "pf-m-8-col-on-xl",
    "9ColOnXl": "pf-m-9-col-on-xl",
    "10ColOnXl": "pf-m-10-col-on-xl",
    "11ColOnXl": "pf-m-11-col-on-xl",
    "12ColOnXl": "pf-m-12-col-on-xl",
    "offset_1ColOnXl": "pf-m-offset-1-col-on-xl",
    "offset_2ColOnXl": "pf-m-offset-2-col-on-xl",
    "offset_3ColOnXl": "pf-m-offset-3-col-on-xl",
    "offset_4ColOnXl": "pf-m-offset-4-col-on-xl",
    "offset_5ColOnXl": "pf-m-offset-5-col-on-xl",
    "offset_6ColOnXl": "pf-m-offset-6-col-on-xl",
    "offset_7ColOnXl": "pf-m-offset-7-col-on-xl",
    "offset_8ColOnXl": "pf-m-offset-8-col-on-xl",
    "offset_9ColOnXl": "pf-m-offset-9-col-on-xl",
    "offset_10ColOnXl": "pf-m-offset-10-col-on-xl",
    "offset_11ColOnXl": "pf-m-offset-11-col-on-xl",
    "offset_12ColOnXl": "pf-m-offset-12-col-on-xl",
    "1RowOnXl": "pf-m-1-row-on-xl",
    "2RowOnXl": "pf-m-2-row-on-xl",
    "3RowOnXl": "pf-m-3-row-on-xl",
    "4RowOnXl": "pf-m-4-row-on-xl",
    "5RowOnXl": "pf-m-5-row-on-xl",
    "6RowOnXl": "pf-m-6-row-on-xl",
    "7RowOnXl": "pf-m-7-row-on-xl",
    "8RowOnXl": "pf-m-8-row-on-xl",
    "9RowOnXl": "pf-m-9-row-on-xl",
    "10RowOnXl": "pf-m-10-row-on-xl",
    "11RowOnXl": "pf-m-11-row-on-xl",
    "12RowOnXl": "pf-m-12-row-on-xl",
    "1ColOn_2xl": "pf-m-1-col-on-2xl",
    "2ColOn_2xl": "pf-m-2-col-on-2xl",
    "3ColOn_2xl": "pf-m-3-col-on-2xl",
    "4ColOn_2xl": "pf-m-4-col-on-2xl",
    "5ColOn_2xl": "pf-m-5-col-on-2xl",
    "6ColOn_2xl": "pf-m-6-col-on-2xl",
    "7ColOn_2xl": "pf-m-7-col-on-2xl",
    "8ColOn_2xl": "pf-m-8-col-on-2xl",
    "9ColOn_2xl": "pf-m-9-col-on-2xl",
    "10ColOn_2xl": "pf-m-10-col-on-2xl",
    "11ColOn_2xl": "pf-m-11-col-on-2xl",
    "12ColOn_2xl": "pf-m-12-col-on-2xl",
    "offset_1ColOn_2xl": "pf-m-offset-1-col-on-2xl",
    "offset_2ColOn_2xl": "pf-m-offset-2-col-on-2xl",
    "offset_3ColOn_2xl": "pf-m-offset-3-col-on-2xl",
    "offset_4ColOn_2xl": "pf-m-offset-4-col-on-2xl",
    "offset_5ColOn_2xl": "pf-m-offset-5-col-on-2xl",
    "offset_6ColOn_2xl": "pf-m-offset-6-col-on-2xl",
    "offset_7ColOn_2xl": "pf-m-offset-7-col-on-2xl",
    "offset_8ColOn_2xl": "pf-m-offset-8-col-on-2xl",
    "offset_9ColOn_2xl": "pf-m-offset-9-col-on-2xl",
    "offset_10ColOn_2xl": "pf-m-offset-10-col-on-2xl",
    "offset_11ColOn_2xl": "pf-m-offset-11-col-on-2xl",
    "offset_12ColOn_2xl": "pf-m-offset-12-col-on-2xl",
    "1RowOn_2xl": "pf-m-1-row-on-2xl",
    "2RowOn_2xl": "pf-m-2-row-on-2xl",
    "3RowOn_2xl": "pf-m-3-row-on-2xl",
    "4RowOn_2xl": "pf-m-4-row-on-2xl",
    "5RowOn_2xl": "pf-m-5-row-on-2xl",
    "6RowOn_2xl": "pf-m-6-row-on-2xl",
    "7RowOn_2xl": "pf-m-7-row-on-2xl",
    "8RowOn_2xl": "pf-m-8-row-on-2xl",
    "9RowOn_2xl": "pf-m-9-row-on-2xl",
    "10RowOn_2xl": "pf-m-10-row-on-2xl",
    "11RowOn_2xl": "pf-m-11-row-on-2xl",
    "12RowOn_2xl": "pf-m-12-row-on-2xl",
    "gutter": "pf-m-gutter"
  }
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/utilities/Accessibility/accessibility.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/utilities/Accessibility/accessibility.js ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";

exports.__esModule = true;
__webpack_require__(/*! ./accessibility.css */ "./node_modules/@patternfly/react-styles/css/utilities/Accessibility/accessibility.css");
exports["default"] = {
  "hidden": "pf-u-hidden",
  "hiddenOnLg": "pf-u-hidden-on-lg",
  "hiddenOnMd": "pf-u-hidden-on-md",
  "hiddenOnSm": "pf-u-hidden-on-sm",
  "hiddenOnXl": "pf-u-hidden-on-xl",
  "hiddenOn_2xl": "pf-u-hidden-on-2xl",
  "screenReader": "pf-u-screen-reader",
  "screenReaderOnLg": "pf-u-screen-reader-on-lg",
  "screenReaderOnMd": "pf-u-screen-reader-on-md",
  "screenReaderOnSm": "pf-u-screen-reader-on-sm",
  "screenReaderOnXl": "pf-u-screen-reader-on-xl",
  "screenReaderOn_2xl": "pf-u-screen-reader-on-2xl",
  "visible": "pf-u-visible",
  "visibleOnLg": "pf-u-visible-on-lg",
  "visibleOnMd": "pf-u-visible-on-md",
  "visibleOnSm": "pf-u-visible-on-sm",
  "visibleOnXl": "pf-u-visible-on-xl",
  "visibleOn_2xl": "pf-u-visible-on-2xl"
};

/***/ }),

/***/ "./node_modules/@patternfly/react-styles/dist/esm/index.js":
/*!*****************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/dist/esm/index.js ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "css": () => (/* binding */ css)
/* harmony export */ });
/** Joins args into a className string
 *
 * @param {any} args list of objects, string, or arrays to reduce
 */
function css(...args) {
    // Adapted from https://github.com/JedWatson/classnames/blob/master/index.js
    const classes = [];
    const hasOwn = {}.hasOwnProperty;
    args.filter(Boolean).forEach((arg) => {
        const argType = typeof arg;
        if (argType === 'string' || argType === 'number') {
            classes.push(arg);
        }
        else if (Array.isArray(arg) && arg.length) {
            const inner = css(...arg);
            if (inner) {
                classes.push(inner);
            }
        }
        else if (argType === 'object') {
            for (const key in arg) {
                if (hasOwn.call(arg, key) && arg[key]) {
                    classes.push(key);
                }
            }
        }
    });
    return classes.join(' ');
}
//# sourceMappingURL=index.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/ActionsColumn.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/ActionsColumn.js ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ActionsColumn": () => (/* binding */ ActionsColumn)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core_dist_esm_components_Dropdown__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core/dist/esm/components/Dropdown */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/Dropdown.js");
/* harmony import */ var _patternfly_react_core_dist_esm_components_Dropdown_KebabToggle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-core/dist/esm/components/Dropdown/KebabToggle */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/KebabToggle.js");
/* harmony import */ var _patternfly_react_core_dist_esm_components_Dropdown_DropdownItem__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core/dist/esm/components/Dropdown/DropdownItem */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownItem.js");
/* harmony import */ var _patternfly_react_core_dist_esm_components_Dropdown_DropdownSeparator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core/dist/esm/components/Dropdown/DropdownSeparator */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownSeparator.js");
/* harmony import */ var _patternfly_react_core_dist_esm_components_Button_Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-core/dist/esm/components/Button/Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core_dist_esm_components_Dropdown_dropdownConstants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core/dist/esm/components/Dropdown/dropdownConstants */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/dropdownConstants.js");








class ActionsColumn extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor(props) {
        super(props);
        this.toggleRef = react__WEBPACK_IMPORTED_MODULE_0__.createRef();
        this.onToggle = (isOpen) => {
            this.setState({
                isOpen
            });
        };
        this.onClick = (event, onClick) => {
            const { rowData, extraData } = this.props;
            // Only prevent default if onClick is provided.  This allows href support.
            if (onClick) {
                event.preventDefault();
                // tslint:disable-next-line:no-unused-expression
                onClick(event, extraData && extraData.rowIndex, rowData, extraData);
            }
        };
        this.state = {
            isOpen: false
        };
    }
    render() {
        const { isOpen } = this.state;
        const { items, children, dropdownPosition, dropdownDirection, isDisabled, rowData, actionsToggle } = this.props;
        const actionsToggleClone = actionsToggle ? (actionsToggle({ onToggle: this.onToggle, isOpen, isDisabled })) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core_dist_esm_components_Dropdown_KebabToggle__WEBPACK_IMPORTED_MODULE_1__.KebabToggle, { isDisabled: isDisabled, onToggle: this.onToggle }));
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
            items
                .filter(item => item.isOutsideDropdown)
                // eslint-disable-next-line @typescript-eslint/no-unused-vars
                .map((_a, key) => {
                var { title, itemKey, onClick, isOutsideDropdown } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["title", "itemKey", "onClick", "isOutsideDropdown"]);
                return typeof title === 'string' ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core_dist_esm_components_Button_Button__WEBPACK_IMPORTED_MODULE_3__.Button, Object.assign({ onClick: event => this.onClick(event, onClick) }, props, { isDisabled: isDisabled, key: itemKey || `outside_dropdown_${key}`, "data-key": itemKey || `outside_dropdown_${key}` }), title)) : (react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(title, Object.assign({ onClick, isDisabled }, props)));
            }),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core_dist_esm_components_Dropdown__WEBPACK_IMPORTED_MODULE_4__.Dropdown, Object.assign({ toggle: actionsToggleClone, position: dropdownPosition, direction: dropdownDirection, isOpen: isOpen, dropdownItems: items
                    .filter(item => !item.isOutsideDropdown)
                    .map((_a, key) => {
                    var { title, itemKey, onClick, isSeparator } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["title", "itemKey", "onClick", "isSeparator"]);
                    return isSeparator ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core_dist_esm_components_Dropdown_DropdownSeparator__WEBPACK_IMPORTED_MODULE_5__.DropdownSeparator, Object.assign({}, props, { key: itemKey || key, "data-key": itemKey || key }))) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core_dist_esm_components_Dropdown_DropdownItem__WEBPACK_IMPORTED_MODULE_6__.DropdownItem, Object.assign({ component: "button", onClick: event => {
                            this.onClick(event, onClick);
                            this.onToggle(!isOpen);
                        } }, props, { key: itemKey || key, "data-key": itemKey || key }), title));
                }), isPlain: true }, (rowData && rowData.actionProps))),
            children));
    }
}
ActionsColumn.displayName = 'ActionsColumn';
ActionsColumn.defaultProps = {
    children: null,
    items: [],
    dropdownPosition: _patternfly_react_core_dist_esm_components_Dropdown_dropdownConstants__WEBPACK_IMPORTED_MODULE_7__.DropdownPosition.right,
    dropdownDirection: _patternfly_react_core_dist_esm_components_Dropdown_dropdownConstants__WEBPACK_IMPORTED_MODULE_7__.DropdownDirection.down,
    rowData: {},
    extraData: {}
};
//# sourceMappingURL=ActionsColumn.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Body.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/Body.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TableBody": () => (/* binding */ TableBody)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./base */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/body.js");
/* harmony import */ var _TableContext__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TableContext */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableContext.js");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/utils.js");





const flagVisibility = (rows) => {
    const visibleRows = rows.filter((oneRow) => !oneRow.parent || oneRow.isExpanded);
    if (visibleRows.length > 0) {
        visibleRows[0].isFirstVisible = true;
        visibleRows[visibleRows.length - 1].isLastVisible = true;
    }
};
class ContextBody extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor() {
        super(...arguments);
        this.onRow = (row, rowProps) => {
            const { onRowClick, onRow } = this.props;
            const extendedRowProps = Object.assign(Object.assign({}, rowProps), (onRow ? onRow(row, rowProps) : {}));
            return {
                row,
                rowProps: extendedRowProps,
                onClick: (event) => {
                    const computedData = {
                        isInput: event.target.tagName === 'INPUT',
                        isButton: event.target.tagName === 'BUTTON'
                    };
                    onRowClick(event, row, rowProps, computedData);
                },
                onKeyDown: (event) => {
                    if (event.key === 'Enter' || event.key === ' ') {
                        const computedData = {
                            isInput: event.target.tagName === 'INPUT',
                            isButton: event.target.tagName === 'BUTTON'
                        };
                        onRowClick(event, row, rowProps, computedData);
                        if (!computedData.isInput) {
                            event.preventDefault();
                        }
                    }
                }
            };
        };
        this.mapCells = (headerData, row, rowKey) => {
            // column indexes start after generated optional columns like collapsible or select column(s)
            const { firstUserColumnIndex } = headerData[0].extraParams;
            const isFullWidth = row && row.fullWidth;
            // typically you'd want to map each cell to its column header, but in the case of fullWidth
            // the first column could be the Select and/or Expandable column
            let additionalColsIndexShift = isFullWidth ? 0 : firstUserColumnIndex;
            return Object.assign({}, (row &&
                (row.cells || row).reduce((acc, cell, cellIndex) => {
                    const isCellObject = cell === Object(cell);
                    const isCellFunction = cell && typeof cell.title === 'function';
                    let formatters = [];
                    if (isCellObject && cell.formatters) {
                        // give priority to formatters specified on the cell object
                        // expandable example:
                        // rows: [{ parent: 0, fullWidth: true, cells: [{ title: 'fullWidth, child - a', formatters: [expandable]}] }]
                        formatters = cell.formatters;
                    }
                    else if (isFullWidth && cellIndex < firstUserColumnIndex) {
                        // for backwards compatibility, map the cells that are not under user columns (like Select/Expandable)
                        // to the first user column's header formatters
                        formatters = headerData[firstUserColumnIndex].cell.formatters;
                    }
                    let mappedCellTitle = cell;
                    if (isCellObject && isCellFunction) {
                        mappedCellTitle = cell.title(cell.props.value, rowKey, cellIndex, cell.props);
                    }
                    else if (isCellObject) {
                        mappedCellTitle = cell.title;
                    }
                    const mappedCell = {
                        [headerData[cellIndex + additionalColsIndexShift].property]: {
                            title: mappedCellTitle,
                            formatters,
                            props: Object.assign({ isVisible: true }, (isCellObject ? cell.props : null))
                        }
                    };
                    // increment the shift index when a cell spans multiple columns
                    if (isCellObject && cell.props && cell.props.colSpan) {
                        additionalColsIndexShift += cell.props.colSpan - 1;
                    }
                    return Object.assign(Object.assign({}, acc), mappedCell);
                }, { secretTableRowKeyId: row.id !== undefined ? row.id : rowKey })));
        };
    }
    render() {
        // eslint-disable-next-line @typescript-eslint/no-unused-vars
        const _a = this.props, { className, headerData, rows, rowKey, children, onRowClick } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "headerData", "rows", "rowKey", "children", "onRowClick"]);
        let mappedRows;
        if (headerData.length > 0) {
            mappedRows = rows.map((oneRow, oneRowKey) => (Object.assign(Object.assign(Object.assign({}, oneRow), this.mapCells(headerData, oneRow, oneRowKey)), { isExpanded: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.isRowExpanded)(oneRow, rows), isHeightAuto: oneRow.heightAuto || false, isFirst: oneRowKey === 0, isLast: oneRowKey === rows.length - 1, isFirstVisible: false, isLastVisible: false })));
            flagVisibility(mappedRows);
        }
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, mappedRows && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_base__WEBPACK_IMPORTED_MODULE_3__.Body, Object.assign({}, props, { mappedRows: mappedRows, rows: mappedRows, onRow: this.onRow, rowKey: rowKey, className: className })))));
    }
}
const TableBody = (_a) => {
    var { className = '', children = null, rowKey = 'secretTableRowKeyId', 
    /* eslint-disable @typescript-eslint/no-unused-vars */
    onRow = (...args) => ({}), onRowClick = (event, row, rowProps, computedData) => 
    /* eslint-enable @typescript-eslint/no-unused-vars */
    undefined } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "children", "rowKey", "onRow", "onRowClick"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TableContext__WEBPACK_IMPORTED_MODULE_4__.TableContext.Consumer, null, (_a) => {
        var { headerData = [], rows = [] } = _a, rest = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["headerData", "rows"]);
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(ContextBody, Object.assign({ headerData: headerData, rows: rows, onRow: onRow, className: className, rowKey: rowKey, onRowClick: onRowClick }, props, rest), children));
    }));
};
//# sourceMappingURL=Body.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/BodyCell.js":
/*!************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/BodyCell.js ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "BodyCell": () => (/* binding */ BodyCell)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core_dist_esm_components_Tooltip_Tooltip__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core/dist/esm/components/Tooltip/Tooltip */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Bullseye/Bullseye.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/EmptyState/EmptyState.js");
/* harmony import */ var _TableComposable_Td__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../TableComposable/Td */ "./node_modules/@patternfly/react-table/dist/esm/components/TableComposable/Td.js");





const BodyCell = (_a) => {
    var { 'data-label': dataLabel = '', className = '', colSpan, component = 'td', isVisible, parentId, textCenter = false, tooltip: tooltipProp = '', onMouseEnter: onMouseEnterProp = () => { }, children, 
    /* eslint-disable @typescript-eslint/no-unused-vars */
    errorText, isValid, isOpen, ariaControls, editableValue, editableSelectProps, options, isSelectOpen, value, name } = _a, 
    /* eslint-enable @typescript-eslint/no-unused-vars */
    props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ['data-label', "className", "colSpan", "component", "isVisible", "parentId", "textCenter", "tooltip", "onMouseEnter", "children", "errorText", "isValid", "isOpen", "ariaControls", "editableValue", "editableSelectProps", "options", "isSelectOpen", "value", "name"]);
    const [tooltip, setTooltip] = react__WEBPACK_IMPORTED_MODULE_0__.useState('');
    const onMouseEnter = (event) => {
        if (event.target.offsetWidth < event.target.scrollWidth) {
            if (tooltipProp) {
                setTooltip(tooltipProp);
            }
            else if (typeof children === 'string') {
                setTooltip(children);
            }
        }
        else {
            setTooltip('');
        }
        onMouseEnterProp(event);
    };
    let isEmptyStateCell = false;
    if (children) {
        isEmptyStateCell =
            (children.type === _patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Bullseye &&
                children.props.children &&
                children.props.children.type === _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.EmptyState) ||
                children.type === _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.EmptyState;
    }
    const cell = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TableComposable_Td__WEBPACK_IMPORTED_MODULE_4__.Td, Object.assign({ className: className, component: component, dataLabel: dataLabel && parentId == null && !isEmptyStateCell ? dataLabel : null, onMouseEnter: onMouseEnter, textCenter: textCenter, colSpan: colSpan }, props), children));
    const bodyCell = tooltip !== '' ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core_dist_esm_components_Tooltip_Tooltip__WEBPACK_IMPORTED_MODULE_5__.Tooltip, { content: tooltip, isVisible: true }, cell)) : (cell);
    return (parentId !== undefined && colSpan === undefined) || !isVisible ? null : bodyCell;
};
BodyCell.displayName = 'BodyCell';
//# sourceMappingURL=BodyCell.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/BodyWrapper.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/BodyWrapper.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "BodyWrapper": () => (/* binding */ BodyWrapper)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _utils_headerUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils/headerUtils */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/headerUtils.js");
/* harmony import */ var _TableComposable_Tbody__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../TableComposable/Tbody */ "./node_modules/@patternfly/react-table/dist/esm/components/TableComposable/Tbody.js");




const BodyWrapper = (_a) => {
    var { mappedRows, tbodyRef, 
    /* eslint-disable @typescript-eslint/no-unused-vars */
    rows = [], onCollapse, headerRows } = _a, 
    /* eslint-enable @typescript-eslint/no-unused-vars */
    props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["mappedRows", "tbodyRef", "rows", "onCollapse", "headerRows"]);
    if (mappedRows && mappedRows.some(row => row.hasOwnProperty('parent'))) {
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_utils_headerUtils__WEBPACK_IMPORTED_MODULE_2__.mapOpenedRows)(mappedRows, props.children).map((oneRow, key) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TableComposable_Tbody__WEBPACK_IMPORTED_MODULE_3__.Tbody, Object.assign({}, props, { isExpanded: oneRow.isOpen, key: `tbody-${key}`, ref: tbodyRef }), oneRow.rows)))));
    }
    return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TableComposable_Tbody__WEBPACK_IMPORTED_MODULE_3__.Tbody, Object.assign({}, props, { ref: tbodyRef }));
};
BodyWrapper.displayName = 'BodyWrapper';
//# sourceMappingURL=BodyWrapper.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/CollapseColumn.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/CollapseColumn.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CollapseColumn": () => (/* binding */ CollapseColumn)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_down_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-down-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-down-icon.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_core_dist_esm_components_Button_Button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-core/dist/esm/components/Button/Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table */ "./node_modules/@patternfly/react-styles/css/components/Table/table.js");






const CollapseColumn = (_a) => {
    var { className = '', children = null, isOpen, onToggle } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "children", "isOpen", "onToggle"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
        isOpen !== undefined && (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core_dist_esm_components_Button_Button__WEBPACK_IMPORTED_MODULE_2__.Button, Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(className, isOpen && _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.expanded) }, props, { variant: "plain", "aria-label": "Details", onClick: onToggle, "aria-expanded": isOpen }),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_4__["default"].tableToggleIcon) },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_down_icon__WEBPACK_IMPORTED_MODULE_5__["default"], null)))),
        children));
};
CollapseColumn.displayName = 'CollapseColumn';
//# sourceMappingURL=CollapseColumn.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/DraggableCell.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/DraggableCell.js ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DraggableCell": () => (/* binding */ DraggableCell)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_grip_vertical_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/grip-vertical-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/grip-vertical-icon.js");
/* harmony import */ var _patternfly_react_core_dist_esm_components_Button_Button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-core/dist/esm/components/Button/Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");




const DraggableCell = (_a) => {
    var { className, onClick, 'aria-label': ariaLabel, id } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "onClick", 'aria-label', "id"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core_dist_esm_components_Button_Button__WEBPACK_IMPORTED_MODULE_2__.Button, Object.assign({ id: id, variant: "plain", className: className, type: "button", "aria-label": ariaLabel || `Draggable row draggable button`, onClick: onClick }, props),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_grip_vertical_icon__WEBPACK_IMPORTED_MODULE_3__["default"], { "aria-hidden": true })));
};
DraggableCell.displayName = 'DraggableCell';
//# sourceMappingURL=DraggableCell.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/EditColumn.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/EditColumn.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "EditColumn": () => (/* binding */ EditColumn)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core_dist_esm_components_Button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core/dist/esm/components/Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_pencil_alt_icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/pencil-alt-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/pencil-alt-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_check_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/check-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/check-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_times_icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/times-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/times-icon.js");
/* harmony import */ var _patternfly_react_styles_css_components_InlineEdit_inline_edit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/InlineEdit/inline-edit */ "./node_modules/@patternfly/react-styles/css/components/InlineEdit/inline-edit.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");








const EditColumn = (_a) => {
    var { onClick = null, 
    /* eslint-disable @typescript-eslint/no-unused-vars */
    className = '', editing, valid, 
    /* eslint-enable @typescript-eslint/no-unused-vars */
    saveAriaLabel, cancelAriaLabel, editAriaLabel } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["onClick", "className", "editing", "valid", "saveAriaLabel", "cancelAriaLabel", "editAriaLabel"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_InlineEdit_inline_edit__WEBPACK_IMPORTED_MODULE_3__["default"].inlineEditGroup, _patternfly_react_styles_css_components_InlineEdit_inline_edit__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.iconGroup, 'pf-m-action-group') },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_InlineEdit_inline_edit__WEBPACK_IMPORTED_MODULE_3__["default"].inlineEditAction) },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core_dist_esm_components_Button__WEBPACK_IMPORTED_MODULE_4__.Button, Object.assign({ "aria-label": saveAriaLabel }, props, { onClick: e => onClick(e, 'save'), variant: "plain" }),
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_check_icon__WEBPACK_IMPORTED_MODULE_5__["default"], null))),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_InlineEdit_inline_edit__WEBPACK_IMPORTED_MODULE_3__["default"].inlineEditAction) },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core_dist_esm_components_Button__WEBPACK_IMPORTED_MODULE_4__.Button, Object.assign({ "aria-label": cancelAriaLabel }, props, { onClick: e => onClick(e, 'cancel'), variant: "plain" }),
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_times_icon__WEBPACK_IMPORTED_MODULE_6__["default"], null)))),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_InlineEdit_inline_edit__WEBPACK_IMPORTED_MODULE_3__["default"].inlineEditAction, _patternfly_react_styles_css_components_InlineEdit_inline_edit__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.enableEditable) },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core_dist_esm_components_Button__WEBPACK_IMPORTED_MODULE_4__.Button, Object.assign({ "aria-label": editAriaLabel }, props, { onClick: e => onClick(e, 'edit'), variant: "plain" }),
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_pencil_alt_icon__WEBPACK_IMPORTED_MODULE_7__["default"], null)))));
};
EditColumn.displayName = 'EditColumn';
//# sourceMappingURL=EditColumn.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/EditableTextCell.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/EditableTextCell.js ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "EditableTextCell": () => (/* binding */ EditableTextCell)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core_dist_esm_components_TextInput__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-core/dist/esm/components/TextInput */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_styles_css_components_InlineEdit_inline_edit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles/css/components/InlineEdit/inline-edit */ "./node_modules/@patternfly/react-styles/css/components/InlineEdit/inline-edit.js");
/* harmony import */ var _patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Form/form */ "./node_modules/@patternfly/react-styles/css/components/Form/form.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");





const EditableTextCell = ({ value, rowIndex, cellIndex, props, handleTextInputChange, inputAriaLabel, isDisabled = false }) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
    react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: _patternfly_react_styles_css_components_InlineEdit_inline_edit__WEBPACK_IMPORTED_MODULE_1__["default"].inlineEditValue }, value),
    react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: _patternfly_react_styles_css_components_InlineEdit_inline_edit__WEBPACK_IMPORTED_MODULE_1__["default"].inlineEditInput },
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core_dist_esm_components_TextInput__WEBPACK_IMPORTED_MODULE_2__.TextInput, { isDisabled: isDisabled, value: props.editableValue !== undefined ? props.editableValue : value, validated: props.isValid !== false ? 'default' : 'error', type: "text", onChange: (newValue, event) => {
                handleTextInputChange(newValue, event, rowIndex, cellIndex);
            }, "aria-label": inputAriaLabel }),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_4__["default"].formHelperText, _patternfly_react_styles_css_components_Form_form__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.error), "aria-live": "polite" }, props.errorText))));
EditableTextCell.displayName = 'EditableTextCell';
//# sourceMappingURL=EditableTextCell.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/ExpandableRowContent.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/ExpandableRowContent.js ***!
  \************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ExpandableRowContent": () => (/* binding */ ExpandableRowContent)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table */ "./node_modules/@patternfly/react-styles/css/components/Table/table.js");




const ExpandableRowContent = (_a) => {
    var { children = null } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", Object.assign({}, props, { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_3__["default"].tableExpandableRowContent) }), children));
};
ExpandableRowContent.displayName = 'ExpandableRowContent';
//# sourceMappingURL=ExpandableRowContent.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/FavoritesCell.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/FavoritesCell.js ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "FavoritesCell": () => (/* binding */ FavoritesCell)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_star_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/star-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/star-icon.js");
/* harmony import */ var _patternfly_react_core_dist_esm_components_Button_Button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-core/dist/esm/components/Button/Button */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");




const FavoritesCell = (_a) => {
    var { className = '', onFavorite, isFavorited, rowIndex } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "onFavorite", "isFavorited", "rowIndex"]);
    const ariaProps = rowIndex === undefined
        ? {}
        : {
            id: `favorites-button-${rowIndex}`,
            'aria-labelledby': `favorites-button-${rowIndex}`
        };
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core_dist_esm_components_Button_Button__WEBPACK_IMPORTED_MODULE_2__.Button, Object.assign({ variant: "plain", className: className, type: "button", "aria-label": isFavorited ? 'Starred' : 'Not starred', onClick: onFavorite }, ariaProps, props),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_star_icon__WEBPACK_IMPORTED_MODULE_3__["default"], { "aria-hidden": true })));
};
FavoritesCell.displayName = 'FavoritesCell';
//# sourceMappingURL=FavoritesCell.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Header.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/Header.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TableHeader": () => (/* binding */ TableHeader)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./base */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/header.js");
/* harmony import */ var _TableContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TableContext */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableContext.js");




const ContextHeader = (_a) => {
    var { className = '', headerRows = undefined } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "headerRows"]);
    return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_base__WEBPACK_IMPORTED_MODULE_2__.Header, Object.assign({}, props, { headerRows: headerRows, className: className }));
};
const TableHeader = (_a) => {
    var props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, []);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TableContext__WEBPACK_IMPORTED_MODULE_3__.TableContext.Consumer, null, ({ headerRows }) => react__WEBPACK_IMPORTED_MODULE_0__.createElement(ContextHeader, Object.assign({}, props, { headerRows: headerRows }))));
};
TableHeader.displayName = 'TableHeader';
//# sourceMappingURL=Header.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/HeaderCell.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/HeaderCell.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "HeaderCell": () => (/* binding */ HeaderCell)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _TableComposable_Th__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../TableComposable/Th */ "./node_modules/@patternfly/react-table/dist/esm/components/TableComposable/Th.js");



const HeaderCell = (_a) => {
    var { className = '', component = 'th', scope = '', textCenter = false, tooltip = '', onMouseEnter = () => { }, children, 
    /* eslint-disable @typescript-eslint/no-unused-vars */
    isVisible, dataLabel = '' } = _a, 
    /* eslint-enable @typescript-eslint/no-unused-vars */
    props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "component", "scope", "textCenter", "tooltip", "onMouseEnter", "children", "isVisible", "dataLabel"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TableComposable_Th__WEBPACK_IMPORTED_MODULE_2__.Th, Object.assign({}, props, { scope: scope, tooltip: tooltip, onMouseEnter: onMouseEnter, textCenter: textCenter, component: component, className: className }), children));
};
HeaderCell.displayName = 'HeaderCell';
//# sourceMappingURL=HeaderCell.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/HeaderCellInfoWrapper.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/HeaderCellInfoWrapper.js ***!
  \*************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "HeaderCellInfoWrapper": () => (/* binding */ HeaderCellInfoWrapper)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_help_icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/help-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/help-icon.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table */ "./node_modules/@patternfly/react-styles/css/components/Table/table.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Popover/Popover.js");
/* harmony import */ var _TableText__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TableText */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableText.js");






const HeaderCellInfoWrapper = ({ children, info, className, variant = 'tooltip', popoverProps, tooltipProps, ariaLabel }) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_2__["default"].tableColumnHelp, className) },
    typeof children === 'string' ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TableText__WEBPACK_IMPORTED_MODULE_3__.TableText, null, children) : children,
    react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_2__["default"].tableColumnHelpAction) }, variant === 'tooltip' ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Tooltip, Object.assign({ content: info }, tooltipProps),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, { variant: "plain", "aria-label": ariaLabel || (typeof info === 'string' && info) || 'More info' },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_help_icon__WEBPACK_IMPORTED_MODULE_6__["default"], { noVerticalAlign: true })))) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Popover, Object.assign({ bodyContent: info }, popoverProps),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, { variant: "plain", "aria-label": ariaLabel || (typeof info === 'string' && info) || 'More info' },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_help_icon__WEBPACK_IMPORTED_MODULE_6__["default"], { noVerticalAlign: true })))))));
HeaderCellInfoWrapper.displayName = 'HeaderCellInfoWrapper';
//# sourceMappingURL=HeaderCellInfoWrapper.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/RowWrapper.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/RowWrapper.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "RowWrapper": () => (/* binding */ RowWrapper)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core_dist_esm_helpers_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-core/dist/esm/helpers/util */ "./node_modules/@patternfly/react-core/dist/esm/helpers/util.js");
/* harmony import */ var _TableComposable_Tr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../TableComposable/Tr */ "./node_modules/@patternfly/react-table/dist/esm/components/TableComposable/Tr.js");




class RowWrapper extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor(props) {
        super(props);
        this.handleScroll = (event) => {
            if (!this._unmounted) {
                this.props.onScroll(event);
            }
        };
        this.handleResize = (event) => {
            if (!this._unmounted) {
                this.props.onResize(event);
            }
        };
        if (props.onScroll) {
            this.handleScroll = (0,_patternfly_react_core_dist_esm_helpers_util__WEBPACK_IMPORTED_MODULE_1__.debounce)(this.handleScroll, 100);
        }
        if (props.onResize) {
            this.handleResize = (0,_patternfly_react_core_dist_esm_helpers_util__WEBPACK_IMPORTED_MODULE_1__.debounce)(this.handleResize, 100);
        }
    }
    componentDidMount() {
        this._unmounted = false;
        if (_patternfly_react_core_dist_esm_helpers_util__WEBPACK_IMPORTED_MODULE_1__.canUseDOM) {
            if (this.props.onScroll) {
                window.addEventListener('scroll', this.handleScroll);
            }
            if (this.props.onResize) {
                window.addEventListener('resize', this.handleResize);
            }
        }
    }
    componentWillUnmount() {
        this._unmounted = true;
        if (_patternfly_react_core_dist_esm_helpers_util__WEBPACK_IMPORTED_MODULE_1__.canUseDOM) {
            if (this.props.onScroll) {
                window.removeEventListener('scroll', this.handleScroll);
            }
            if (this.props.onResize) {
                window.removeEventListener('resize', this.handleResize);
            }
        }
    }
    render() {
        const _a = this.props, { 
        /* eslint-disable @typescript-eslint/no-unused-vars */
        onScroll, onResize, row: { isExpanded, isEditable, isHoverable, isRowSelected }, rowProps, 
        /* eslint-enable @typescript-eslint/no-unused-vars */
        trRef, className, ouiaId } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["onScroll", "onResize", "row", "rowProps", "trRef", "className", "ouiaId"]);
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TableComposable_Tr__WEBPACK_IMPORTED_MODULE_3__.Tr, Object.assign({}, props, { ref: trRef, isExpanded: isExpanded, isEditable: isEditable, className: className, ouiaId: ouiaId, isHoverable: isHoverable, isRowSelected: isRowSelected })));
    }
}
RowWrapper.displayName = 'RowWrapper';
RowWrapper.defaultProps = {
    className: '',
    row: {
        isOpen: undefined,
        isExpanded: undefined,
        isHeightAuto: undefined,
        isEditable: undefined
    },
    rowProps: null
};
//# sourceMappingURL=RowWrapper.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/SelectColumn.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/SelectColumn.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "RowSelectVariant": () => (/* binding */ RowSelectVariant),
/* harmony export */   "SelectColumn": () => (/* binding */ SelectColumn)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");


var RowSelectVariant;
(function (RowSelectVariant) {
    RowSelectVariant["radio"] = "radio";
    RowSelectVariant["checkbox"] = "checkbox";
})(RowSelectVariant || (RowSelectVariant = {}));
const SelectColumn = (_a) => {
    var { children = null, 
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    className, onSelect = null, selectVariant } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "onSelect", "selectVariant"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", Object.assign({}, props, { type: selectVariant, onChange: onSelect })),
        children));
};
SelectColumn.displayName = 'SelectColumn';
//# sourceMappingURL=SelectColumn.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/SortColumn.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/SortColumn.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SortByDirection": () => (/* binding */ SortByDirection),
/* harmony export */   "SortColumn": () => (/* binding */ SortColumn)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_long_arrow_alt_up_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/long-arrow-alt-up-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/long-arrow-alt-up-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_long_arrow_alt_down_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/long-arrow-alt-down-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/long-arrow-alt-down-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_arrows_alt_v_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/arrows-alt-v-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/arrows-alt-v-icon.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table */ "./node_modules/@patternfly/react-styles/css/components/Table/table.js");
/* harmony import */ var _TableText__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./TableText */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableText.js");








var SortByDirection;
(function (SortByDirection) {
    SortByDirection["asc"] = "asc";
    SortByDirection["desc"] = "desc";
})(SortByDirection || (SortByDirection = {}));
const SortColumn = (_a) => {
    var { children = null, className = '', isSortedBy = false, onSort = null, sortDirection = '', type = 'button' } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "isSortedBy", "onSort", "sortDirection", "type"]);
    let SortedByIcon;
    if (isSortedBy) {
        SortedByIcon = sortDirection === SortByDirection.asc ? _patternfly_react_icons_dist_esm_icons_long_arrow_alt_up_icon__WEBPACK_IMPORTED_MODULE_2__["default"] : _patternfly_react_icons_dist_esm_icons_long_arrow_alt_down_icon__WEBPACK_IMPORTED_MODULE_3__["default"];
    }
    else {
        SortedByIcon = _patternfly_react_icons_dist_esm_icons_arrows_alt_v_icon__WEBPACK_IMPORTED_MODULE_4__["default"];
    }
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", Object.assign({}, props, { type: type, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__.css)(className, _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_6__["default"].tableButton), onClick: event => onSort && onSort(event) }),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__.css)(className, _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_6__["default"].tableButtonContent) },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TableText__WEBPACK_IMPORTED_MODULE_7__.TableText, null, children),
            react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_5__.css)(_patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_6__["default"].tableSortIndicator) },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(SortedByIcon, null)))));
};
SortColumn.displayName = 'SortColumn';
//# sourceMappingURL=SortColumn.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Table.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/Table.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Table": () => (/* binding */ Table)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");
/* harmony import */ var _patternfly_react_core_dist_esm_components_Dropdown_dropdownConstants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core/dist/esm/components/Dropdown/dropdownConstants */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/dropdownConstants.js");
/* harmony import */ var _patternfly_react_styles_css_components_InlineEdit_inline_edit__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-styles/css/components/InlineEdit/inline-edit */ "./node_modules/@patternfly/react-styles/css/components/InlineEdit/inline-edit.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./base */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/provider.js");
/* harmony import */ var _BodyCell__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./BodyCell */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/BodyCell.js");
/* harmony import */ var _HeaderCell__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./HeaderCell */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/HeaderCell.js");
/* harmony import */ var _RowWrapper__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./RowWrapper */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/RowWrapper.js");
/* harmony import */ var _BodyWrapper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./BodyWrapper */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/BodyWrapper.js");
/* harmony import */ var _utils_headerUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils/headerUtils */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/headerUtils.js");
/* harmony import */ var _SelectColumn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SelectColumn */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/SelectColumn.js");
/* harmony import */ var _TableContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TableContext */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableContext.js");
/* harmony import */ var _TableTypes__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./TableTypes */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableTypes.js");
/* harmony import */ var _TreeRowWrapper__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./TreeRowWrapper */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TreeRowWrapper.js");
















class Table extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor() {
        super(...arguments);
        this.state = {
            ouiaStateId: (0,_patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.getDefaultOUIAId)(Table.displayName)
        };
        this.isSelected = (row) => row.selected === true;
        this.areAllRowsSelected = (rows) => {
            if (rows === undefined || rows.length === 0) {
                return false;
            }
            return rows.every(row => this.isSelected(row) || row.disableSelection || (row.hasOwnProperty('parent') && !row.showSelect));
        };
    }
    render() {
        const _a = this.props, { 'aria-label': ariaLabel, caption, header, onSort, onSelect, canSelectAll, isHeaderSelectDisabled, selectVariant, sortBy, children, actions, actionResolver, areActionsDisabled, onCollapse, onExpand, onRowEdit, rowLabeledBy, dropdownPosition, dropdownDirection, actionsToggle, contentId, expandId, variant, rows, cells, bodyWrapper, rowWrapper, role, borders, onFavorite, canSortFavorites } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ['aria-label', "caption", "header", "onSort", "onSelect", "canSelectAll", "isHeaderSelectDisabled", "selectVariant", "sortBy", "children", "actions", "actionResolver", "areActionsDisabled", "onCollapse", "onExpand", "onRowEdit", "rowLabeledBy", "dropdownPosition", "dropdownDirection", "actionsToggle", "contentId", "expandId", "variant", "rows", "cells", "bodyWrapper", "rowWrapper", "role", "borders", "onFavorite", "canSortFavorites"]);
        if (!ariaLabel && !caption && !header && role !== 'presentation') {
            // eslint-disable-next-line no-console
            console.error('Table: Specify at least one of: header, caption, aria-label');
        }
        const headerData = (0,_utils_headerUtils__WEBPACK_IMPORTED_MODULE_3__.calculateColumns)(cells, {
            sortBy,
            onSort,
            onSelect,
            canSelectAll: selectVariant === _SelectColumn__WEBPACK_IMPORTED_MODULE_4__.RowSelectVariant.radio ? false : canSelectAll,
            isHeaderSelectDisabled,
            selectVariant,
            allRowsSelected: onSelect ? this.areAllRowsSelected(rows) : false,
            actions,
            actionResolver,
            areActionsDisabled,
            onCollapse,
            onRowEdit,
            onExpand,
            rowLabeledBy,
            expandId,
            contentId,
            dropdownPosition,
            dropdownDirection,
            actionsToggle,
            onFavorite,
            canSortFavorites,
            // order of columns: Collapsible | Selectable | Favoritable
            firstUserColumnIndex: [onCollapse, onSelect, onFavorite].filter(callback => callback).length
        });
        const table = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TableContext__WEBPACK_IMPORTED_MODULE_5__.TableContext.Provider, { value: {
                headerData,
                headerRows: null,
                rows
            } },
            header,
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_base__WEBPACK_IMPORTED_MODULE_6__.Provider, Object.assign({}, props, { "aria-label": ariaLabel, renderers: {
                    body: {
                        wrapper: bodyWrapper || _BodyWrapper__WEBPACK_IMPORTED_MODULE_7__.BodyWrapper,
                        row: rowWrapper || (this.props.isTreeTable ? _TreeRowWrapper__WEBPACK_IMPORTED_MODULE_8__.TreeRowWrapper : _RowWrapper__WEBPACK_IMPORTED_MODULE_9__.RowWrapper),
                        cell: _BodyCell__WEBPACK_IMPORTED_MODULE_10__.BodyCell
                    },
                    header: {
                        cell: _HeaderCell__WEBPACK_IMPORTED_MODULE_11__.HeaderCell
                    }
                }, columns: headerData, role: role, variant: variant, borders: borders }),
                caption && react__WEBPACK_IMPORTED_MODULE_0__.createElement("caption", null, caption),
                children)));
        if (onRowEdit) {
            return react__WEBPACK_IMPORTED_MODULE_0__.createElement("form", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_12__.css)(_patternfly_react_styles_css_components_InlineEdit_inline_edit__WEBPACK_IMPORTED_MODULE_13__["default"].inlineEdit) }, table);
        }
        return table;
    }
}
Table.displayName = 'Table';
Table.hasWarnBeta = false;
Table.defaultProps = {
    children: null,
    className: '',
    variant: null,
    borders: true,
    rowLabeledBy: 'simple-node',
    expandId: 'expandable-toggle',
    contentId: 'expanded-content',
    dropdownPosition: _patternfly_react_core_dist_esm_components_Dropdown_dropdownConstants__WEBPACK_IMPORTED_MODULE_14__.DropdownPosition.right,
    dropdownDirection: _patternfly_react_core_dist_esm_components_Dropdown_dropdownConstants__WEBPACK_IMPORTED_MODULE_14__.DropdownDirection.down,
    header: undefined,
    caption: undefined,
    'aria-label': undefined,
    gridBreakPoint: _TableTypes__WEBPACK_IMPORTED_MODULE_15__.TableGridBreakpoint.gridMd,
    role: 'grid',
    canSelectAll: true,
    isHeaderSelectDisabled: false,
    selectVariant: 'checkbox',
    ouiaSafe: true,
    isStickyHeader: false,
    canSortFavorites: true,
    isTreeTable: false,
    isNested: false
};
//# sourceMappingURL=Table.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableContext.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/TableContext.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TableContext": () => (/* binding */ TableContext)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");

const TableContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext({
    headerData: null,
    headerRows: null,
    rows: []
});
//# sourceMappingURL=TableContext.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableText.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/TableText.js ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TableTextVariant": () => (/* binding */ TableTextVariant),
/* harmony export */   "WrapModifier": () => (/* binding */ WrapModifier),
/* harmony export */   "TableText": () => (/* binding */ TableText)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table */ "./node_modules/@patternfly/react-styles/css/components/Table/table.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_core_dist_esm_components_Tooltip_Tooltip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core/dist/esm/components/Tooltip/Tooltip */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js");





var TableTextVariant;
(function (TableTextVariant) {
    TableTextVariant["div"] = "div";
    TableTextVariant["nav"] = "nav";
})(TableTextVariant || (TableTextVariant = {}));
var WrapModifier;
(function (WrapModifier) {
    WrapModifier["wrap"] = "wrap";
    WrapModifier["nowrap"] = "nowrap";
    WrapModifier["truncate"] = "truncate";
    WrapModifier["breakWord"] = "breakWord";
    WrapModifier["fitContent"] = "fitContent";
})(WrapModifier || (WrapModifier = {}));
const TableText = (_a) => {
    var { children = null, className = '', variant = 'span', wrapModifier = null, tooltip: tooltipProp = '', tooltipProps = {}, onMouseEnter: onMouseEnterProp = () => { } } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "variant", "wrapModifier", "tooltip", "tooltipProps", "onMouseEnter"]);
    const Component = variant;
    const [tooltip, setTooltip] = react__WEBPACK_IMPORTED_MODULE_0__.useState('');
    const onMouseEnter = (event) => {
        if (event.target.offsetWidth < event.target.scrollWidth) {
            setTooltip(tooltipProp || event.target.innerText);
        }
        else {
            setTooltip('');
        }
        onMouseEnterProp(event);
    };
    const text = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, Object.assign({ onMouseEnter: onMouseEnter, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(className, wrapModifier && _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers[wrapModifier], _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_3__["default"].tableText) }, props), children));
    return tooltip !== '' ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core_dist_esm_components_Tooltip_Tooltip__WEBPACK_IMPORTED_MODULE_4__.Tooltip, Object.assign({ content: tooltip, isVisible: true }, tooltipProps), text)) : (text);
};
TableText.displayName = 'TableText';
//# sourceMappingURL=TableText.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableTypes.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/TableTypes.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TableGridBreakpoint": () => (/* binding */ TableGridBreakpoint),
/* harmony export */   "TableVariant": () => (/* binding */ TableVariant)
/* harmony export */ });
var TableGridBreakpoint;
(function (TableGridBreakpoint) {
    TableGridBreakpoint["none"] = "";
    TableGridBreakpoint["grid"] = "grid";
    TableGridBreakpoint["gridMd"] = "grid-md";
    TableGridBreakpoint["gridLg"] = "grid-lg";
    TableGridBreakpoint["gridXl"] = "grid-xl";
    TableGridBreakpoint["grid2xl"] = "grid-2xl";
})(TableGridBreakpoint || (TableGridBreakpoint = {}));
var TableVariant;
(function (TableVariant) {
    TableVariant["compact"] = "compact";
})(TableVariant || (TableVariant = {}));
//# sourceMappingURL=TableTypes.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TreeRowWrapper.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/TreeRowWrapper.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TreeRowWrapper": () => (/* binding */ TreeRowWrapper)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table */ "./node_modules/@patternfly/react-styles/css/components/Table/table.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table_tree_view__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table-tree-view */ "./node_modules/@patternfly/react-styles/css/components/Table/table-tree-view.js");
/* harmony import */ var _TableComposable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../TableComposable */ "./node_modules/@patternfly/react-table/dist/esm/components/TableComposable/Tr.js");






const TreeRowWrapper = (_a) => {
    var { className, 
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    rowProps, row } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["className", "rowProps", "row"]);
    const { 'aria-level': level, 'aria-posinset': posinset, 'aria-setsize': setsize, isExpanded, isDetailsExpanded, isHidden } = row.props;
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TableComposable__WEBPACK_IMPORTED_MODULE_2__.Tr, Object.assign({ "aria-level": level, "aria-posinset": posinset, "aria-setsize": setsize, "aria-expanded": !!isExpanded, isHidden: isHidden, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(className, isExpanded && _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.expanded, isDetailsExpanded && _patternfly_react_styles_css_components_Table_table_tree_view__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.treeViewDetailsExpanded) }, props)));
};
TreeRowWrapper.displayName = 'TreeRowWrapper';
//# sourceMappingURL=TreeRowWrapper.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/body-row.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/base/body-row.js ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "BodyRow": () => (/* binding */ BodyRow)
/* harmony export */ });
/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEqual */ "./node_modules/lodash/isEqual.js");
/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _columns_are_equal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./columns-are-equal */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/columns-are-equal.js");
/* harmony import */ var _evaluate_formatters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./evaluate-formatters */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/evaluate-formatters.js");
/* harmony import */ var _evaluate_transforms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./evaluate-transforms */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/evaluate-transforms.js");
/* harmony import */ var _merge_props__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./merge-props */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/merge-props.js");
/**
 * body-row.tsx
 *
 * Forked from reactabular-table version 8.14.0
 * https://github.com/reactabular/reactabular/tree/v8.14.0/packages/reactabular-table/src
 */






class BodyRow extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
    shouldComponentUpdate(nextProps) {
        const { columns, rowData } = this.props;
        // Check for row based override.
        const { renderers } = nextProps;
        if (renderers && renderers.row && renderers.row.shouldComponentUpdate) {
            if (typeof renderers.row.shouldComponentUpdate === 'function') {
                return renderers.row.shouldComponentUpdate.call(this, nextProps, {}, {});
            }
            return true;
        }
        return !((0,_columns_are_equal__WEBPACK_IMPORTED_MODULE_2__.columnsAreEqual)(columns, nextProps.columns) && lodash_isEqual__WEBPACK_IMPORTED_MODULE_0___default()(rowData, nextProps.rowData));
    }
    render() {
        const { columns, renderers, onRow, rowKey, rowIndex, rowData } = this.props;
        return react__WEBPACK_IMPORTED_MODULE_1__.createElement(renderers.row, onRow(rowData, { rowIndex, rowKey }), columns.map((column, columnIndex) => {
            const { property, cell, props } = column;
            const evaluatedProperty = (property || (cell && cell.property));
            const { transforms = [], formatters = [] } = cell || {};
            const extraParameters = {
                columnIndex,
                property: evaluatedProperty,
                column,
                rowData,
                rowIndex,
                rowKey
            };
            const transformed = (0,_evaluate_transforms__WEBPACK_IMPORTED_MODULE_3__.evaluateTransforms)(transforms, rowData[evaluatedProperty], extraParameters);
            if (!transformed) {
                // eslint-disable-next-line no-console
                console.warn('Table.Body - Failed to receive a transformed result');
            }
            let additionalFormaters = [];
            if (rowData[evaluatedProperty]) {
                additionalFormaters = rowData[evaluatedProperty].formatters;
            }
            return react__WEBPACK_IMPORTED_MODULE_1__.createElement(renderers.cell, Object.assign({ key: `col-${columnIndex}-row-${rowIndex}` }, (0,_merge_props__WEBPACK_IMPORTED_MODULE_4__.mergeProps)(props, cell && cell.props, transformed)), (!rowData.fullWidth && transformed.children) ||
                (0,_evaluate_formatters__WEBPACK_IMPORTED_MODULE_5__.evaluateFormatters)([...formatters, ...additionalFormaters])(rowData[`_${evaluatedProperty}`] || rowData[evaluatedProperty], extraParameters));
        }));
    }
}
BodyRow.displayName = 'BodyRow';
BodyRow.defaultProps = {
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    onRow: (...args) => ({})
};
//# sourceMappingURL=body-row.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/body.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/base/body.js ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Body": () => (/* binding */ Body)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isEqual */ "./node_modules/lodash/isEqual.js");
/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _resolve_row_key__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./resolve-row-key */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/resolve-row-key.js");
/* harmony import */ var _body_row__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./body-row */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/body-row.js");
/* harmony import */ var _provider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./provider */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/provider.js");

/**
 * body.tsx
 *
 * Forked from reactabular-table version 8.14.0
 * https://github.com/reactabular/reactabular/tree/v8.14.0/packages/reactabular-table/src
 */





class BaseBody extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    constructor() {
        super(...arguments);
        this.omitOnRow = (props) => {
            // eslint-disable-next-line @typescript-eslint/no-unused-vars
            const { onRow } = props, ret = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(props, ["onRow"]);
            return ret;
        };
    }
    shouldComponentUpdate(nextProps) {
        // Skip checking props against `onRow` since that can be bound at render().
        // That's not particularly good practice but you never know how the users
        // prefer to define the handler.
        // Check for wrapper based override.
        const { renderers } = nextProps;
        if (renderers &&
            renderers.body &&
            renderers.body.wrapper &&
            renderers.body.wrapper.shouldComponentUpdate) {
            if (typeof renderers.body.wrapper.shouldComponentUpdate === 'function') {
                return renderers.body.wrapper.shouldComponentUpdate.call(this, nextProps, {}, {});
            }
            return true;
        }
        return !lodash_isEqual__WEBPACK_IMPORTED_MODULE_1___default()(this.omitOnRow(this.props), this.omitOnRow(nextProps));
    }
    render() {
        const _a = this.props, { onRow, rows, rowKey, columns, renderers } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["onRow", "rows", "rowKey", "columns", "renderers"]);
        const children = rows.map((rowData, index) => {
            const key = (0,_resolve_row_key__WEBPACK_IMPORTED_MODULE_3__.resolveRowKey)({ rowData, rowIndex: index, rowKey });
            return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_body_row__WEBPACK_IMPORTED_MODULE_4__.BodyRow, {
                key,
                renderers: renderers.body,
                onRow,
                rowKey: key,
                rowIndex: index,
                rowData,
                columns
            });
        });
        return react__WEBPACK_IMPORTED_MODULE_0__.createElement(renderers.body.wrapper, props, children);
    }
}
BaseBody.defaultProps = {
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    onRow: (...args) => ({})
};
const Body = (props) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_provider__WEBPACK_IMPORTED_MODULE_5__.ProviderContext.Consumer, null, ({ columns, renderers }) => react__WEBPACK_IMPORTED_MODULE_0__.createElement(BaseBody, Object.assign({ columns: columns, renderers: renderers }, props))));
//# sourceMappingURL=body.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/columns-are-equal.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/base/columns-are-equal.js ***!
  \**************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "columnsAreEqual": () => (/* binding */ columnsAreEqual)
/* harmony export */ });
/* harmony import */ var lodash_isEqualWith__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEqualWith */ "./node_modules/lodash/isEqualWith.js");
/* harmony import */ var lodash_isEqualWith__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEqualWith__WEBPACK_IMPORTED_MODULE_0__);
/**
 * columns-are-equal.ts
 *
 * Forked from reactabular-table version 8.14.0
 * https://github.com/reactabular/reactabular/tree/v8.14.0/packages/reactabular-table/src
 */

/**
 * @param {ColumnsType} oldColumns - previous columns
 * @param {ColumnsType} newColumns - new columns
 */
function columnsAreEqual(oldColumns, newColumns) {
    return lodash_isEqualWith__WEBPACK_IMPORTED_MODULE_0___default()(oldColumns, newColumns, (a, b) => {
        if (typeof a === 'function' && typeof b === 'function') {
            return a === b;
        }
        return undefined;
    });
}
//# sourceMappingURL=columns-are-equal.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/evaluate-formatters.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/base/evaluate-formatters.js ***!
  \****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "evaluateFormatters": () => (/* binding */ evaluateFormatters)
/* harmony export */ });
/**
 * @param {formattersType} formatters - formatters type
 */
function evaluateFormatters(formatters) {
    return (value, extra) => formatters.reduce((parameters, formatter) => ({
        value: formatter(parameters.value, parameters.extra),
        extra
    }), { value, extra }).value;
}
//# sourceMappingURL=evaluate-formatters.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/evaluate-transforms.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/base/evaluate-transforms.js ***!
  \****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "evaluateTransforms": () => (/* binding */ evaluateTransforms)
/* harmony export */ });
/* harmony import */ var _merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./merge-props */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/merge-props.js");
/**
 * evaluate-transforms.ts
 *
 * Forked from reactabular-table version 8.14.0
 * https://github.com/reactabular/reactabular/tree/v8.14.0/packages/reactabular-table/src
 */

/**
 * @param {transformsType} transforms - transforms type
 * @param {string | object} value - value
 * @param {ExtraParamsType} extraParameters - extra params type
 */
function evaluateTransforms(transforms = [], value, extraParameters = {}) {
    if (true) {
        if (!transforms.every(f => typeof f === 'function')) {
            throw new Error("All transforms weren't functions!");
        }
    }
    if (transforms.length === 0) {
        return {};
    }
    return (0,_merge_props__WEBPACK_IMPORTED_MODULE_0__.mergeProps)(...transforms.map(transform => transform(value, extraParameters)));
}
//# sourceMappingURL=evaluate-transforms.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/header-row.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/base/header-row.js ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "HeaderRow": () => (/* binding */ HeaderRow)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _evaluate_formatters__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./evaluate-formatters */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/evaluate-formatters.js");
/* harmony import */ var _evaluate_transforms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./evaluate-transforms */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/evaluate-transforms.js");
/* harmony import */ var _merge_props__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./merge-props */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/merge-props.js");
/* harmony import */ var _HeaderCellInfoWrapper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../HeaderCellInfoWrapper */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/HeaderCellInfoWrapper.js");
/**
 * header-row.tsx
 *
 * Forked from reactabular-table version 8.14.0
 * https://github.com/reactabular/reactabular/tree/v8.14.0/packages/reactabular-table/src
 */





const HeaderRow = ({ rowData, rowIndex, renderers, onRow = () => ({}) }) => react__WEBPACK_IMPORTED_MODULE_0__.createElement(renderers.row, onRow(rowData, { rowIndex }), rowData.map((column, columnIndex) => {
    const { property, header = {}, props = {} } = column;
    const evaluatedProperty = property || (header && header.property);
    const { label, transforms = [], formatters = [], info = {} } = header;
    const extraParameters = {
        columnIndex,
        property: evaluatedProperty,
        column
    };
    const transformedProps = (0,_evaluate_transforms__WEBPACK_IMPORTED_MODULE_1__.evaluateTransforms)(transforms, label, extraParameters);
    if (!transformedProps) {
        // tslint:disable-next-line:no-console
        console.warn('Table.Header - Failed to receive a transformed result'); // eslint-disable-line max-len, no-console
    }
    let cellNode;
    const { tooltip, tooltipProps, popover, popoverProps, ariaLabel, className } = info;
    // consumer can specify header cell tooltip/popover in two ways, but the transforms approach is preferred,
    // especially for sorting tables that use `transforms: [sortable]`
    // {
    //   title: 'Repositories',
    //   header: {
    //     info: {
    //       tooltip: 'More information about repositories',
    //       className: 'repositories-info-tip',
    //       tooltipProps: {
    //         isContentLeftAligned: true
    //       }
    //     }
    //   }
    // }
    //
    // {
    //   title: 'Repositories',
    //   transforms: [
    //     info({
    //       tooltip: 'More information about repositories',
    //       className: 'repositories-info-tip',
    //       tooltipProps: {
    //         isContentLeftAligned: true
    //       }
    //     }),
    //     sortable
    //   ]
    // },
    if (tooltip) {
        cellNode = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_HeaderCellInfoWrapper__WEBPACK_IMPORTED_MODULE_2__.HeaderCellInfoWrapper, { variant: "tooltip", info: tooltip, tooltipProps: tooltipProps, ariaLabel: ariaLabel, className: className }, transformedProps.children || (0,_evaluate_formatters__WEBPACK_IMPORTED_MODULE_3__.evaluateFormatters)(formatters)(label, extraParameters)));
    }
    else if (popover) {
        cellNode = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_HeaderCellInfoWrapper__WEBPACK_IMPORTED_MODULE_2__.HeaderCellInfoWrapper, { variant: "popover", info: popover, popoverProps: popoverProps, ariaLabel: ariaLabel, className: className }, transformedProps.children || (0,_evaluate_formatters__WEBPACK_IMPORTED_MODULE_3__.evaluateFormatters)(formatters)(label, extraParameters)));
    }
    else {
        cellNode = transformedProps.children || (0,_evaluate_formatters__WEBPACK_IMPORTED_MODULE_3__.evaluateFormatters)(formatters)(label, extraParameters);
    }
    return react__WEBPACK_IMPORTED_MODULE_0__.createElement(renderers.cell, Object.assign({ key: `${columnIndex}-header` }, (0,_merge_props__WEBPACK_IMPORTED_MODULE_4__.mergeProps)(props, header && header.props, transformedProps)), cellNode);
}));
HeaderRow.displayName = 'HeaderRow';
//# sourceMappingURL=header-row.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/header.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/base/header.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Header": () => (/* binding */ Header)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./provider */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/provider.js");
/* harmony import */ var _header_row__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./header-row */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/header-row.js");

/**
 * header.tsx
 *
 * Forked from reactabular-table version 8.14.0
 * https://github.com/reactabular/reactabular/tree/v8.14.0/packages/reactabular-table/src
 */



class BaseHeader extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    render() {
        const _a = this.props, { children, headerRows, onRow, renderers, columns } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "headerRows", "onRow", "renderers", "columns"]);
        // If headerRows aren't passed, default to bodyColumns as header rows
        return react__WEBPACK_IMPORTED_MODULE_0__.createElement(renderers.header.wrapper, props, [
            (headerRows || [columns]).map((rowData, rowIndex) => react__WEBPACK_IMPORTED_MODULE_0__.createElement(_header_row__WEBPACK_IMPORTED_MODULE_2__.HeaderRow, {
                key: `${rowIndex}-header-row`,
                renderers: renderers.header,
                onRow,
                rowData,
                rowIndex
            }))
        ].concat(children));
    }
}
const Header = (props) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_provider__WEBPACK_IMPORTED_MODULE_3__.ProviderContext.Consumer, null, ({ columns, renderers }) => react__WEBPACK_IMPORTED_MODULE_0__.createElement(BaseHeader, Object.assign({ columns: columns, renderers: renderers }, props))));
//# sourceMappingURL=header.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/merge-props.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/base/merge-props.js ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "mergeProps": () => (/* binding */ mergeProps)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var lodash_mergeWith__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/mergeWith */ "./node_modules/lodash/mergeWith.js");
/* harmony import */ var lodash_mergeWith__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_mergeWith__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/**
 * merge-props.js
 *
 * Forked from reactabular-table version 8.14.0
 * https://github.com/reactabular/reactabular/tree/v8.14.0/packages/reactabular-table/src
 */



/**
 * @param {any} props - Props
 */
function mergeProps(...props) {
    const firstProps = props[0];
    const restProps = props.slice(1);
    if (!restProps.length) {
        return lodash_mergeWith__WEBPACK_IMPORTED_MODULE_1___default()({}, firstProps);
    }
    // Avoid mutating the first prop collection
    return lodash_mergeWith__WEBPACK_IMPORTED_MODULE_1___default()(lodash_mergeWith__WEBPACK_IMPORTED_MODULE_1___default()({}, firstProps), ...restProps, (a, b, key) => {
        if (key === 'children') {
            if (a && b) {
                // compose the two
                return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(a, {
                    children: b
                });
            }
            // Children have to be merged in reverse order for Reactabular
            // logic to work.
            return Object.assign(Object.assign({}, b), a);
        }
        if (key === 'className') {
            // Process class names through classNames to merge properly
            // as a string.
            return (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(a, b);
        }
        return undefined;
    });
}
//# sourceMappingURL=merge-props.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/provider.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/base/provider.js ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ProviderContext": () => (/* binding */ ProviderContext),
/* harmony export */   "Provider": () => (/* binding */ Provider)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./types */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/types.js");

/**
 * provider.tsx
 *
 * Forked from reactabular-table version 8.14.0
 * https://github.com/reactabular/reactabular/tree/v8.14.0/packages/reactabular-table/src
 */


const ProviderContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext({
    columns: null,
    renderers: null
});
class Provider extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
    render() {
        const _a = this.props, { columns, renderers, components, children } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["columns", "renderers", "components", "children"]);
        let finalRenderers = renderers;
        if (components) {
            // eslint-disable-next-line no-console
            console.warn('`components` have been deprecated in favor of `renderers` and will be removed in the next major version, please rename!');
            finalRenderers = components;
        }
        const provider = react__WEBPACK_IMPORTED_MODULE_0__.createElement(renderers.table || _types__WEBPACK_IMPORTED_MODULE_2__.TableDefaults.renderers.table, props, children);
        return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(ProviderContext.Provider, { value: {
                columns,
                renderers: {
                    table: finalRenderers.table || _types__WEBPACK_IMPORTED_MODULE_2__.TableDefaults.renderers.table,
                    header: Object.assign(Object.assign({}, _types__WEBPACK_IMPORTED_MODULE_2__.TableDefaults.renderers.header), finalRenderers.header),
                    body: Object.assign(Object.assign({}, _types__WEBPACK_IMPORTED_MODULE_2__.TableDefaults.renderers.body), finalRenderers.body)
                }
            } }, provider));
    }
}
Provider.displayName = 'Provider';
Provider.defaultProps = {
    renderers: _types__WEBPACK_IMPORTED_MODULE_2__.TableDefaults.renderers
};
//# sourceMappingURL=provider.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/resolve-row-key.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/base/resolve-row-key.js ***!
  \************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "resolveRowKey": () => (/* binding */ resolveRowKey)
/* harmony export */ });
/**
 * resolve-row-key.ts
 *
 * Forked from reactabular-table version 8.14.0
 * https://github.com/reactabular/reactabular/tree/v8.14.0/packages/reactabular-table/src
 */
/**
 * @param {{rowData: RowType, rowIndex: number, rowKey: RowKeyType}} rowData - row data
 */
function resolveRowKey({ rowData, rowIndex, rowKey }) {
    if (typeof rowKey === 'function') {
        return `${rowKey({ rowData, rowIndex })}-row`;
    }
    else if (true) {
        // Arrays cannot have rowKeys by definition so we have to go by index there.
        if (!Array.isArray(rowData) && rowData[rowKey] === undefined) {
            // eslint-disable-next-line no-console
            console.warn('Table.Body - Missing valid rowKey!', rowData, rowKey);
        }
    }
    if (rowData[rowKey] === 0) {
        return `${rowData[rowKey]}-row`;
    }
    return `${rowData[rowKey] || rowIndex}-row`;
}
//# sourceMappingURL=resolve-row-key.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/types.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/base/types.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TableDefaults": () => (/* binding */ TableDefaults)
/* harmony export */ });
/* harmony import */ var _TableComposable_TableComposable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../TableComposable/TableComposable */ "./node_modules/@patternfly/react-table/dist/esm/components/TableComposable/TableComposable.js");
/* harmony import */ var _TableComposable_Thead__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../TableComposable/Thead */ "./node_modules/@patternfly/react-table/dist/esm/components/TableComposable/Thead.js");
/* harmony import */ var _TableComposable_Tbody__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../TableComposable/Tbody */ "./node_modules/@patternfly/react-table/dist/esm/components/TableComposable/Tbody.js");
/* harmony import */ var _TableComposable_Tr__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../TableComposable/Tr */ "./node_modules/@patternfly/react-table/dist/esm/components/TableComposable/Tr.js");
/* harmony import */ var _TableComposable_Th__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../TableComposable/Th */ "./node_modules/@patternfly/react-table/dist/esm/components/TableComposable/Th.js");
/* harmony import */ var _TableComposable_Td__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../TableComposable/Td */ "./node_modules/@patternfly/react-table/dist/esm/components/TableComposable/Td.js");
/**
 * types.tsx
 *
 * Forked from reactabular-table version 8.14.0
 * https://github.com/reactabular/reactabular/tree/v8.14.0/packages/reactabular-table/src
 */






// Table Defaults
const TableDefaults = {
    renderers: {
        table: _TableComposable_TableComposable__WEBPACK_IMPORTED_MODULE_0__.TableComposable,
        header: {
            wrapper: _TableComposable_Thead__WEBPACK_IMPORTED_MODULE_1__.Thead,
            row: _TableComposable_Tr__WEBPACK_IMPORTED_MODULE_2__.Tr,
            cell: _TableComposable_Th__WEBPACK_IMPORTED_MODULE_3__.Th
        },
        body: {
            wrapper: _TableComposable_Tbody__WEBPACK_IMPORTED_MODULE_4__.Tbody,
            row: _TableComposable_Tr__WEBPACK_IMPORTED_MODULE_2__.Tr,
            cell: _TableComposable_Td__WEBPACK_IMPORTED_MODULE_5__.Td
        }
    }
};
//# sourceMappingURL=types.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/cellActions.js":
/*!********************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/cellActions.js ***!
  \********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "cellActions": () => (/* binding */ cellActions)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table */ "./node_modules/@patternfly/react-styles/css/components/Table/table.js");
/* harmony import */ var _ActionsColumn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../ActionsColumn */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/ActionsColumn.js");




const resolveOrDefault = (resolver, defaultValue, rowData, extraData) => (typeof resolver === 'function' ? resolver(rowData, extraData) : defaultValue);
const cellActions = (actions, actionResolver, areActionsDisabled) => (label, { rowData, column, rowIndex, columnIndex, column: { extraParams: { dropdownPosition, dropdownDirection, actionsToggle } }, property }) => {
    const extraData = {
        rowIndex,
        columnIndex,
        column,
        property
    };
    const resolvedActions = resolveOrDefault(actionResolver, actions, rowData, extraData);
    const resolvedIsDisabled = resolveOrDefault(areActionsDisabled, rowData && rowData.disableActions, rowData, extraData);
    const renderProps = resolvedActions && resolvedActions.length > 0
        ? {
            children: (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ActionsColumn__WEBPACK_IMPORTED_MODULE_1__.ActionsColumn, { items: resolvedActions, dropdownPosition: dropdownPosition, dropdownDirection: dropdownDirection, isDisabled: resolvedIsDisabled, rowData: rowData, extraData: extraData, actionsToggle: actionsToggle }, label))
        }
        : {};
    return Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(_patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_3__["default"].tableAction), style: { width: 'auto', paddingRight: 0 }, isVisible: true }, renderProps);
};
//# sourceMappingURL=cellActions.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/cellWidth.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/cellWidth.js ***!
  \******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "cellWidth": () => (/* binding */ cellWidth)
/* harmony export */ });
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table */ "./node_modules/@patternfly/react-styles/css/components/Table/table.js");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/utils.js");



const cellWidth = (width) => () => ({
    className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_0__.css)(_patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers[typeof width === 'number' ? `width_${width}` : `width${(0,_utils__WEBPACK_IMPORTED_MODULE_2__.capitalize)(width)}`])
});
//# sourceMappingURL=cellWidth.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/classNames.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/classNames.js ***!
  \*******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Visibility": () => (/* binding */ Visibility),
/* harmony export */   "classNames": () => (/* binding */ classNames)
/* harmony export */ });
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table */ "./node_modules/@patternfly/react-styles/css/components/Table/table.js");


const visibilityModifiers = [
    'hidden',
    'hiddenOnSm',
    'hiddenOnMd',
    'hiddenOnLg',
    'hiddenOnXl',
    'hiddenOn_2xl',
    'visibleOnSm',
    'visibleOnMd',
    'visibleOnLg',
    'visibleOnXl',
    'visibleOn_2xl'
];
const Visibility = visibilityModifiers
    .filter(key => _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_0__["default"].modifiers[key])
    .reduce((acc, curr) => {
    const key2 = curr.replace('_2xl', '2Xl');
    acc[key2] = _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_0__["default"].modifiers[curr];
    return acc;
}, {});
const classNames = (...classes) => () => ({
    className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(...classes)
});
//# sourceMappingURL=classNames.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/collapsible.js":
/*!********************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/collapsible.js ***!
  \********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "collapsible": () => (/* binding */ collapsible),
/* harmony export */   "expandable": () => (/* binding */ expandable),
/* harmony export */   "expandedRow": () => (/* binding */ expandedRow)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table */ "./node_modules/@patternfly/react-styles/css/components/Table/table.js");
/* harmony import */ var _CollapseColumn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../CollapseColumn */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/CollapseColumn.js");
/* harmony import */ var _ExpandableRowContent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../ExpandableRowContent */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/ExpandableRowContent.js");





const collapsible = (value, { rowIndex, columnIndex, rowData, column, property }) => {
    const { extraParams: { onCollapse, rowLabeledBy = 'simple-node', expandId = 'expand-toggle' } } = column;
    const extraData = {
        rowIndex,
        columnIndex,
        column,
        property
    };
    /**
     * @param {React.MouseEvent} event - Mouse event
     */
    function onToggle(event) {
        // tslint:disable-next-line:no-unused-expression
        onCollapse && onCollapse(event, rowIndex, rowData && !rowData.isOpen, rowData, extraData);
    }
    return {
        className: rowData.isOpen !== undefined && (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_2__["default"].tableToggle),
        isVisible: !rowData.fullWidth,
        children: (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_CollapseColumn__WEBPACK_IMPORTED_MODULE_3__.CollapseColumn, { "aria-labelledby": `${rowLabeledBy}${rowIndex} ${expandId}${rowIndex}`, onToggle: onToggle, id: expandId + rowIndex, isOpen: rowData && rowData.isOpen }, value))
    };
};
const expandable = (value, { rowData }) => rowData && rowData.hasOwnProperty('parent') ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ExpandableRowContent__WEBPACK_IMPORTED_MODULE_4__.ExpandableRowContent, null, value) : value;
const expandedRow = (colSpan) => {
    const expandedRowFormatter = (value, { columnIndex, rowIndex, rowData, column: { extraParams: { contentId = 'expanded-content' } } }) => value &&
        rowData.hasOwnProperty('parent') && {
        // todo: rewrite this logic, it is not type safe
        colSpan: !rowData.cells || rowData.cells.length === 1 ? colSpan + !!rowData.fullWidth : 1,
        id: contentId + rowIndex + (columnIndex ? '-' + columnIndex : ''),
        className: rowData.noPadding && (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_2__["default"].modifiers.noPadding)
    };
    return expandedRowFormatter;
};
//# sourceMappingURL=collapsible.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/compoundExpand.js":
/*!***********************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/compoundExpand.js ***!
  \***********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "compoundExpand": () => (/* binding */ compoundExpand)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table */ "./node_modules/@patternfly/react-styles/css/components/Table/table.js");
/* harmony import */ var _TableText__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../TableText */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableText.js");




const compoundExpand = (value, { rowIndex, columnIndex, rowData, column, property }) => {
    if (!value) {
        return null;
    }
    const { title, props } = value;
    const { extraParams: { onExpand } } = column;
    const extraData = {
        rowIndex,
        columnIndex,
        column,
        property
    };
    /**
     * @param {React.MouseEvent} event - Mouse event
     */
    function onToggle(event) {
        // tslint:disable-next-line:no-unused-expression
        onExpand && onExpand(event, rowIndex, columnIndex, props.isOpen, rowData, extraData);
    }
    return {
        className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_2__["default"].tableCompoundExpansionToggle, props.isOpen && _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_2__["default"].modifiers.expanded),
        children: props.isOpen !== undefined && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", { type: "button", className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_2__["default"].tableButton), onClick: onToggle, "aria-expanded": props.isOpen, "aria-controls": props.ariaControls },
            react__WEBPACK_IMPORTED_MODULE_0__.createElement(_TableText__WEBPACK_IMPORTED_MODULE_3__.TableText, null, title)))
    };
};
//# sourceMappingURL=compoundExpand.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/draggable.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/draggable.js ***!
  \******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "draggable": () => (/* binding */ draggable)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _DraggableCell__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../DraggableCell */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/DraggableCell.js");


const draggable = (value, { rowData }) => {
    const { id } = rowData;
    return {
        className: '',
        children: react__WEBPACK_IMPORTED_MODULE_0__.createElement(_DraggableCell__WEBPACK_IMPORTED_MODULE_1__.DraggableCell, { id: id })
    };
};
//# sourceMappingURL=draggable.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/editable.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/editable.js ***!
  \*****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "editable": () => (/* binding */ editable)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _EditColumn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../EditColumn */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/EditColumn.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table */ "./node_modules/@patternfly/react-styles/css/components/Table/table.js");



const editable = (label, { rowIndex, rowData, column }) => {
    const { extraParams: { onRowEdit } } = column;
    const toggleEditMode = (event, type) => {
        let validationErrors = {};
        if (type === 'save') {
            validationErrors =
                rowData.rowEditValidationRules &&
                    rowData.rowEditValidationRules.reduce((acc, rule) => {
                        const invalidCells = rowData.cells.filter(cellData => {
                            const testValue = cellData.props.editableValue === '' ? '' : cellData.props.editableValue || cellData.props.value;
                            let failedValidation = false;
                            if (Array.isArray(testValue) && testValue.length) {
                                // multiple values, like multiselect
                                failedValidation = testValue.reduce((hasInvalidSelection, el) => {
                                    // if one value fails validation, the entire cell is invalid
                                    if (hasInvalidSelection === true) {
                                        return true;
                                    }
                                    return !rule.validator(el);
                                }, failedValidation);
                            }
                            else if (Array.isArray(testValue) && !testValue.length) {
                                // case where all values were dismissed in multiselect
                                failedValidation = !rule.validator('');
                            }
                            else {
                                // simple text fields
                                failedValidation = !rule.validator(testValue);
                            }
                            if (failedValidation) {
                                cellData.props.isValid = false;
                            }
                            return failedValidation;
                        });
                        if (invalidCells.length) {
                            acc[rule.name] = invalidCells.map(cell => cell.props.name);
                        }
                        return acc;
                    }, {});
        }
        // tslint:disable-next-line:no-unused-expression
        onRowEdit(event, type, rowData && rowData.isEditable, rowIndex, validationErrors);
    };
    /**
     * @param {number} identifier identifier used for the row
     * @param {RowEditType} actionType the type of row edit action
     */
    function getAriaLabelTxt(identifier, actionType) {
        let result;
        switch (actionType) {
            case 'cancel':
                result = `Cancel row edits for row ${identifier}`;
                break;
            case 'save':
                result = `Save row edits for row ${identifier}`;
                break;
            default:
                result = `Place row ${identifier} in edit mode`;
        }
        return result;
    }
    return {
        className: _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_1__["default"].tableInlineEditAction,
        component: 'td',
        isVisible: true,
        children: (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_EditColumn__WEBPACK_IMPORTED_MODULE_2__.EditColumn, { saveAriaLabel: (rowData && rowData.rowSaveBtnAriaLabel && rowData.rowSaveBtnAriaLabel(rowIndex)) ||
                getAriaLabelTxt(rowIndex, 'save'), cancelAriaLabel: (rowData && rowData.rowCancelBtnAriaLabel && rowData.rowCancelBtnAriaLabel(rowIndex)) ||
                getAriaLabelTxt(rowIndex, 'cancel'), editAriaLabel: (rowData && rowData.rowEditBtnAriaLabel && rowData.rowEditBtnAriaLabel(rowIndex)) ||
                getAriaLabelTxt(rowIndex, 'edit'), valid: rowData && rowData.isValid, editing: rowData && rowData.isEditable, onClick: toggleEditMode }))
    };
};
//# sourceMappingURL=editable.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/favoritable.js":
/*!********************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/favoritable.js ***!
  \********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "favoritable": () => (/* binding */ favoritable)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table */ "./node_modules/@patternfly/react-styles/css/components/Table/table.js");
/* harmony import */ var _FavoritesCell__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../FavoritesCell */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/FavoritesCell.js");




const favoritable = (value, { rowIndex, columnIndex, rowData, column, property }) => {
    const { extraParams: { onFavorite } } = column;
    const extraData = {
        rowIndex,
        columnIndex,
        column,
        property
    };
    // this is a child row which should not display the favorites icon
    if (rowData && rowData.hasOwnProperty('parent') && !rowData.fullWidth) {
        return {
            component: 'td',
            isVisible: true
        };
    }
    /**
     * @param {React.MouseEvent} event - Mouse event
     */
    function favoritesClick(event) {
        // tslint:disable-next-line:no-unused-expression
        onFavorite && onFavorite(event, rowData && !rowData.favorited, rowIndex, rowData, extraData);
    }
    const additionalProps = rowData.favoritesProps || {};
    return {
        className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_2__["default"].tableFavorite, rowData && rowData.favorited && _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_2__["default"].modifiers.favorited),
        isVisible: !rowData || !rowData.fullWidth,
        children: (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_FavoritesCell__WEBPACK_IMPORTED_MODULE_3__.FavoritesCell, Object.assign({ rowIndex: rowIndex, onFavorite: favoritesClick, isFavorited: rowData && rowData.favorited }, additionalProps)))
    };
};
//# sourceMappingURL=favoritable.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/headerCol.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/headerCol.js ***!
  \******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "headerCol": () => (/* binding */ headerCol)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");

const headerCol = (id = 'simple-node') => {
    const headerColObj = (value, { rowIndex } = {}) => {
        const result = typeof value === 'object' ? value.title : value;
        return {
            component: 'th',
            children: react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { id: `${id}${rowIndex}` }, result)
        };
    };
    return headerColObj;
};
//# sourceMappingURL=headerCol.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/info.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/info.js ***!
  \*************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "info": () => (/* binding */ info)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _HeaderCellInfoWrapper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../HeaderCellInfoWrapper */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/HeaderCellInfoWrapper.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table */ "./node_modules/@patternfly/react-styles/css/components/Table/table.js");



const info = ({ tooltip, tooltipProps, popover, popoverProps, className, ariaLabel }) => {
    const infoObj = (value) => ({
        className: _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_1__["default"].modifiers.help,
        children: tooltip ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_HeaderCellInfoWrapper__WEBPACK_IMPORTED_MODULE_2__.HeaderCellInfoWrapper, { variant: "tooltip", info: tooltip, tooltipProps: tooltipProps, ariaLabel: ariaLabel, className: className }, value)) : (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_HeaderCellInfoWrapper__WEBPACK_IMPORTED_MODULE_2__.HeaderCellInfoWrapper, { variant: "popover", info: popover, popoverProps: popoverProps, ariaLabel: ariaLabel, className: className }, value))
    });
    return infoObj;
};
//# sourceMappingURL=info.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/selectable.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/selectable.js ***!
  \*******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "selectable": () => (/* binding */ selectable)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table */ "./node_modules/@patternfly/react-styles/css/components/Table/table.js");
/* harmony import */ var _SelectColumn__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../SelectColumn */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/SelectColumn.js");
/* harmony import */ var _patternfly_react_styles_css_components_Check_check__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Check/check */ "./node_modules/@patternfly/react-styles/css/components/Check/check.js");





const selectable = (label, { rowIndex, columnIndex, rowData, column, property }) => {
    const { extraParams: { onSelect, selectVariant, allRowsSelected, isHeaderSelectDisabled } } = column;
    const extraData = {
        rowIndex,
        columnIndex,
        column,
        property
    };
    if (rowData && rowData.hasOwnProperty('parent') && !rowData.showSelect && !rowData.fullWidth) {
        return {
            component: 'td',
            isVisible: true
        };
    }
    const rowId = rowIndex !== undefined ? rowIndex : -1;
    /**
     * @param {React.FormEvent} event - React form event
     */
    function selectClick(event) {
        const selected = rowIndex === undefined ? event.currentTarget.checked : rowData && !rowData.selected;
        // tslint:disable-next-line:no-unused-expression
        onSelect && onSelect(event, selected, rowId, rowData, extraData);
    }
    const customProps = Object.assign(Object.assign(Object.assign({}, (rowId !== -1
        ? {
            checked: rowData && !!rowData.selected,
            'aria-label': `Select row ${rowIndex}`
        }
        : {
            checked: allRowsSelected,
            'aria-label': 'Select all rows'
        })), (rowData &&
        (rowData.disableCheckbox || rowData.disableSelection) && {
        disabled: true,
        className: _patternfly_react_styles_css_components_Check_check__WEBPACK_IMPORTED_MODULE_1__["default"].checkInput
    })), (!rowData && isHeaderSelectDisabled && { disabled: true }));
    let selectName = 'check-all';
    if (rowId !== -1 && selectVariant === _SelectColumn__WEBPACK_IMPORTED_MODULE_2__.RowSelectVariant.checkbox) {
        selectName = `checkrow${rowIndex}`;
    }
    else if (rowId !== -1) {
        selectName = 'radioGroup';
    }
    return {
        className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(_patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_4__["default"].tableCheck),
        component: 'td',
        isVisible: !rowData || !rowData.fullWidth,
        children: (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_SelectColumn__WEBPACK_IMPORTED_MODULE_2__.SelectColumn, Object.assign({}, customProps, { selectVariant: selectVariant, onSelect: selectClick, name: selectName }), label))
    };
};
//# sourceMappingURL=selectable.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/sortable.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/sortable.js ***!
  \*****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "sortableFavorites": () => (/* binding */ sortableFavorites),
/* harmony export */   "sortable": () => (/* binding */ sortable)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table */ "./node_modules/@patternfly/react-styles/css/components/Table/table.js");
/* harmony import */ var _SortColumn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../SortColumn */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/SortColumn.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_star_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/star-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/star-icon.js");





const sortableFavorites = (sort) => () => sortable(react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_star_icon__WEBPACK_IMPORTED_MODULE_1__["default"], { "aria-hidden": true }), {
    columnIndex: sort.columnIndex,
    className: _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_2__["default"].modifiers.favorite,
    ariaLabel: 'Sort favorites',
    column: {
        extraParams: {
            sortBy: sort.sortBy,
            onSort: sort === null || sort === void 0 ? void 0 : sort.onSort
        }
    }
});
const sortable = (label, { columnIndex, column, property, className, ariaLabel }) => {
    const { extraParams: { sortBy, onSort } } = column;
    const extraData = {
        columnIndex,
        column,
        property
    };
    const isSortedBy = sortBy && columnIndex === sortBy.index;
    /**
     * @param {React.MouseEvent} event - React mouse event
     */
    function sortClicked(event) {
        let reversedDirection;
        if (!isSortedBy) {
            reversedDirection = sortBy.defaultDirection ? sortBy.defaultDirection : _SortColumn__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc;
        }
        else {
            reversedDirection = sortBy.direction === _SortColumn__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc ? _SortColumn__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.desc : _SortColumn__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc;
        }
        // tslint:disable-next-line:no-unused-expression
        onSort && onSort(event, columnIndex, reversedDirection, extraData);
    }
    return {
        className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_4__.css)(_patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_2__["default"].tableSort, isSortedBy && _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_2__["default"].modifiers.selected, className),
        'aria-sort': isSortedBy ? `${sortBy.direction}ending` : 'none',
        children: (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_SortColumn__WEBPACK_IMPORTED_MODULE_3__.SortColumn, { isSortedBy: isSortedBy, sortDirection: isSortedBy ? sortBy.direction : '', onSort: sortClicked, "aria-label": ariaLabel }, label))
    };
};
//# sourceMappingURL=sortable.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/treeRow.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/treeRow.js ***!
  \****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "treeRow": () => (/* binding */ treeRow)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table */ "./node_modules/@patternfly/react-styles/css/components/Table/table.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table_tree_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table-tree-view */ "./node_modules/@patternfly/react-styles/css/components/Table/table-tree-view.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_angle_down_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/angle-down-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-down-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_ellipsis_h_icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/ellipsis-h-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/ellipsis-h-icon.js");







const treeRow = (onCollapse, onCheckChange, onToggleRowDetails) => (value, { rowIndex, rowData }) => {
    const { isExpanded, isDetailsExpanded, 'aria-level': level, 'aria-setsize': setsize, toggleAriaLabel, checkAriaLabel, showDetailsAriaLabel, isChecked, checkboxId, icon } = rowData.props;
    const content = value.title || value;
    const text = (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Table_table_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].tableTreeViewText), key: "tree-view-text" },
        icon && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Table_table_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].tableTreeViewIcon), key: "tree-view-text-icon" }, icon)),
        react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: "pf-c-table__text", key: "table-text" }, content)));
    const onChange = (isChecked, event) => {
        onCheckChange(event, isChecked, rowIndex, content, rowData);
    };
    return {
        component: 'th',
        className: 'pf-c-table__tree-view-title-cell',
        children: level !== undefined ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Table_table_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].tableTreeViewMain) },
            setsize > 0 && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Table_table_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].tableToggle), key: "table-toggle" },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Button, { variant: "plain", onClick: event => onCollapse && onCollapse(event, rowIndex, content, rowData), className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(isExpanded && _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.expanded), "aria-expanded": isExpanded, "aria-label": toggleAriaLabel || `${isExpanded ? 'Collapse' : 'Expand'} row ${rowIndex}` },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Table_table_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].tableToggleIcon) },
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_angle_down_icon__WEBPACK_IMPORTED_MODULE_5__["default"], { "aria-hidden": "true" }))))),
            !!onCheckChange && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Table_table_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].tableCheck), key: "table-check" },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Checkbox, { id: checkboxId || `checkbox_${rowIndex}`, "aria-label": checkAriaLabel || `Row ${rowIndex} checkbox`, isChecked: isChecked, onChange: onChange }))),
            text,
            !!onToggleRowDetails && (react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_1__.css)(_patternfly_react_styles_css_components_Table_table_tree_view__WEBPACK_IMPORTED_MODULE_2__["default"].tableTreeViewDetailsToggle), key: "view-details-toggle" },
                react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Button, { variant: "plain", "aria-expanded": isDetailsExpanded, "aria-label": showDetailsAriaLabel || 'Show row details', onClick: event => onToggleRowDetails && onToggleRowDetails(event, rowIndex, content, rowData) },
                    react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: "pf-c-table__details-toggle-icon" },
                        react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_esm_icons_ellipsis_h_icon__WEBPACK_IMPORTED_MODULE_7__["default"], { "aria-hidden": true }))))))) : (text)
    };
};
//# sourceMappingURL=treeRow.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/wrappable.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/wrappable.js ***!
  \******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "breakWord": () => (/* binding */ breakWord),
/* harmony export */   "fitContent": () => (/* binding */ fitContent),
/* harmony export */   "nowrap": () => (/* binding */ nowrap),
/* harmony export */   "truncate": () => (/* binding */ truncate),
/* harmony export */   "wrappable": () => (/* binding */ wrappable)
/* harmony export */ });
/* harmony import */ var _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table */ "./node_modules/@patternfly/react-styles/css/components/Table/table.js");

const breakWord = () => ({
    className: _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_0__["default"].modifiers.breakWord
});
const fitContent = () => ({
    className: _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_0__["default"].modifiers.fitContent
});
const nowrap = () => ({
    className: _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_0__["default"].modifiers.nowrap
});
const truncate = () => ({
    className: _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_0__["default"].modifiers.truncate
});
const wrappable = () => ({
    className: _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_0__["default"].modifiers.wrap
});
//# sourceMappingURL=wrappable.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/formatters.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/formatters.js ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "defaultTitle": () => (/* binding */ defaultTitle)
/* harmony export */ });
const defaultTitle = (data) => data && data.hasOwnProperty('title') ? data.title : data;

//# sourceMappingURL=formatters.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/headerUtils.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/headerUtils.js ***!
  \*********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "mapOpenedRows": () => (/* binding */ mapOpenedRows),
/* harmony export */   "calculateColumns": () => (/* binding */ calculateColumns)
/* harmony export */ });
/* harmony import */ var _transformers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./transformers */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/transformers.js");
/* harmony import */ var _decorators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./decorators */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/selectable.js");
/* harmony import */ var _decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./decorators */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/sortable.js");
/* harmony import */ var _decorators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./decorators */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/favoritable.js");
/* harmony import */ var _decorators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./decorators */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/cellActions.js");
/* harmony import */ var _decorators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./decorators */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/collapsible.js");
/* harmony import */ var _decorators__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./decorators */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/editable.js");
/* harmony import */ var _formatters__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./formatters */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/formatters.js");



/**
 * Generate header with transforms and formatters from custom header object.
 *
 * @param {*} header with transforms, formatters, columnTransforms, and rest of header object.
 * @param {*} title to be used as label in header config.
 * @returns {*} header, label, transforms: Array, formatters: Array.
 */
const generateHeader = ({ transforms: origTransforms, formatters: origFormatters, columnTransforms, header }, title) => (Object.assign(Object.assign({}, header), { label: title, transforms: [
        _transformers__WEBPACK_IMPORTED_MODULE_0__.scopeColTransformer,
        _transformers__WEBPACK_IMPORTED_MODULE_0__.emptyCol,
        ...(origTransforms || []),
        ...(columnTransforms || []),
        ...(header && header.hasOwnProperty('transforms') ? header.transforms : [])
    ], formatters: [...(origFormatters || []), ...(header && header.hasOwnProperty('formatters') ? header.formatters : [])] }));
/**
 * Function to generate cell for header config to change look of each cell.
 *
 * @param {*} customCell config with cellFormatters, cellTransforms, columnTransforms and rest of cell config.
 * @param {*} extra - extra
 * @returns {*} cell, transforms: Array, formatters: Array.
 */
const generateCell = ({ cellFormatters, cellTransforms, columnTransforms, cell }, 
// eslint-disable-next-line @typescript-eslint/no-unused-vars
extra) => (Object.assign(Object.assign({}, cell), { transforms: [
        ...(cellTransforms || []),
        ...(columnTransforms || []),
        ...(cell && cell.hasOwnProperty('transforms') ? cell.transforms : []),
        _transformers__WEBPACK_IMPORTED_MODULE_0__.mapProps // This transform should be applied last so that props that are manually defined at the cell level will override all other transforms.
    ], formatters: [
        _formatters__WEBPACK_IMPORTED_MODULE_1__.defaultTitle,
        ...(cellFormatters || []),
        ...(cell && cell.hasOwnProperty('formatters') ? cell.formatters : [])
    ] }));
/**
 * Function to map custom simple object properties to expected format with property, header, cell, extra params
 * and props.
 *
 * @param {*} column to be shown in header - either string or object with title, transformers and formatters (for cells as well).
 * @param {*} extra additional object with callbacks for specific formatters.
 * @param {*} key cell key to be shown in data-key.
 * @param {*} props additional props for each cell.
 * @returns {*} object with property, extraParams, header, cell and props.
 */
const mapHeader = (column, extra, key, ...props) => {
    const title = (column.hasOwnProperty('title') ? column.title : column);
    let dataLabel = `column-${key}`;
    if (column.hasOwnProperty('dataLabel')) {
        dataLabel = column.dataLabel;
    }
    else if (typeof title === 'string') {
        dataLabel = title;
    }
    return {
        property: (typeof title === 'string' &&
            title
                .toLowerCase()
                .trim()
                .replace(/\s/g, '-')) ||
            `column-${key}`,
        extraParams: extra,
        data: column.data,
        header: generateHeader(column, title),
        cell: generateCell(column, extra),
        props: Object.assign(Object.assign({ 'data-label': dataLabel, 'data-key': key }, (column.hasOwnProperty('props') ? column.props : {})), props)
    };
};
/**
 * Function to define select cell in first column.
 *
 * @param {*} extraObject with onSelect callback.
 * @returns {*} object with empty title, tranforms - Array, cellTransforms - Array.
 */
const selectableTransforms = ({ onSelect, canSelectAll }) => [
    ...(onSelect
        ? [
            {
                title: '',
                transforms: (canSelectAll && [_decorators__WEBPACK_IMPORTED_MODULE_2__.selectable]) || null,
                cellTransforms: [_decorators__WEBPACK_IMPORTED_MODULE_2__.selectable]
            }
        ]
        : [])
];
/**
 * Function to define favorites cell in first column (or second column if rows are also selectable).
 *
 * @param {*} extraObject with onFavorite callback.
 * @returns {*} object with empty title, tranforms - Array, cellTransforms - Array.
 */
const favoritesTransforms = ({ onFavorite, onSort, sortBy, canSortFavorites, firstUserColumnIndex }) => [
    ...(onFavorite
        ? [
            {
                title: '',
                transforms: onSort && canSortFavorites
                    ? [
                        (0,_decorators__WEBPACK_IMPORTED_MODULE_3__.sortableFavorites)({
                            onSort,
                            // favorites should be just before the first user-defined column
                            columnIndex: firstUserColumnIndex - 1,
                            sortBy
                        })
                    ]
                    : [_transformers__WEBPACK_IMPORTED_MODULE_0__.emptyTD],
                cellTransforms: [_decorators__WEBPACK_IMPORTED_MODULE_4__.favoritable]
            }
        ]
        : [])
];
/**
 * Function to define actions in last column.
 *
 * @param {*} extraObject with actions array.
 * @returns {*} object with empty title, tranforms - Array, cellTransforms - Array.
 */
const actionsTransforms = ({ actions, actionResolver, areActionsDisabled }) => [
    ...(actionResolver || actions
        ? [
            {
                title: '',
                transforms: [_transformers__WEBPACK_IMPORTED_MODULE_0__.emptyTD],
                cellTransforms: [(0,_decorators__WEBPACK_IMPORTED_MODULE_5__.cellActions)(actions, actionResolver, areActionsDisabled)]
            }
        ]
        : [])
];
/**
 * Function to define collapsible in first column.
 *
 * @param {*} header info with cellTransforms.
 * @param {*}  extraObject with onCollapse callback.
 * @returns {*} object with empty title, tranforms - Array, cellTransforms - Array.
 */
const collapsibleTransforms = (header, { onCollapse }) => [
    ...(onCollapse
        ? [
            {
                title: '',
                transforms: [_transformers__WEBPACK_IMPORTED_MODULE_0__.emptyTD],
                cellTransforms: [_decorators__WEBPACK_IMPORTED_MODULE_6__.collapsible, (0,_decorators__WEBPACK_IMPORTED_MODULE_6__.expandedRow)(header.length)]
            }
        ]
        : [])
];
/**
 * Function to add additional cell transforms to object.
 *
 * @param {*} cell to be expanded.
 * @param {*} additional thing to be added to cellTransforms.
 * @returns {*} object with title from cell and cellTransforms with additional in.
 */
const addAdditionalCellTranforms = (cell, additional) => (Object.assign(Object.assign({}, (cell.hasOwnProperty('title') ? cell : { title: cell })), { cellTransforms: [...(cell.hasOwnProperty('cellTransforms') ? cell.cellTransforms : []), additional] }));
/**
 * Function to change expanded row with additional transforms.
 *
 * @param {*} header info with cellTransforms.
 * @param {*} extra object with onCollapse/onExpand function.
 */
const expandContent = (header, extra) => {
    if (!extra.onCollapse && !extra.onExpand) {
        return header;
    }
    return header.map((cell) => {
        const parentIdCell = addAdditionalCellTranforms(cell, _transformers__WEBPACK_IMPORTED_MODULE_0__.parentId);
        return addAdditionalCellTranforms(parentIdCell, (0,_decorators__WEBPACK_IMPORTED_MODULE_6__.expandedRow)(header.length));
    });
};
/**
 * Function to join parent and their children so they can be rendered in tbody.
 *
 * @param {*} rows raw data to find out if it's child or parent.
 * @param {*} children data to render (array of react children).
 */
const mapOpenedRows = (rows, children) => rows.reduce((acc, curr, key) => {
    if (curr.hasOwnProperty('parent')) {
        const parent = acc.length > 0 && acc[acc.length - 1];
        if (parent) {
            acc[acc.length - 1].rows = [...acc[acc.length - 1].rows, children[key]];
            if (curr.hasOwnProperty('compoundParent')) {
                // if this is compound expand, check for any open child cell
                acc[acc.length - 1].isOpen = acc[acc.length - 1].rows.some((oneRow) => oneRow.props.rowData.cells.some((oneCell) => oneCell.props && oneCell.props.isOpen));
            }
        }
    }
    else {
        acc = [...acc, Object.assign(Object.assign({}, curr), { rows: [children[key]] })];
    }
    return acc;
}, []);
const rowEditTransforms = ({ onRowEdit }) => [
    ...(onRowEdit
        ? [
            {
                title: '',
                cellTransforms: [_decorators__WEBPACK_IMPORTED_MODULE_7__.editable]
            }
        ]
        : [])
];
/**
 * Function to calculate columns based on custom config.
 * It adds some custom cells for collapse, select, if expanded row and actions.
 *
 * @param {*} headerRows custom object with described table header cells.
 * @param {*} extra object with custom callbacks.
 * @returns {*} expected object for react tabular table.
 */
const calculateColumns = (headerRows, extra) => headerRows &&
    [
        ...collapsibleTransforms(headerRows, extra),
        ...selectableTransforms(extra),
        ...favoritesTransforms(extra),
        ...expandContent(headerRows, extra),
        ...rowEditTransforms(extra),
        ...actionsTransforms(extra)
    ].map((oneCol, key) => (Object.assign({}, mapHeader(oneCol, extra, key))));
//# sourceMappingURL=headerUtils.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/transformers.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/transformers.js ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "emptyTD": () => (/* binding */ emptyTD),
/* harmony export */   "scopeColTransformer": () => (/* binding */ scopeColTransformer),
/* harmony export */   "emptyCol": () => (/* binding */ emptyCol),
/* harmony export */   "parentId": () => (/* binding */ parentId),
/* harmony export */   "mapProps": () => (/* binding */ mapProps)
/* harmony export */ });
const emptyTD = () => ({
    component: 'td'
});
const scopeColTransformer = () => ({
    scope: 'col'
});
const emptyCol = (label) => (Object.assign({}, (label ? {} : { scope: '' })));
const parentId = (_value, { rowData }) => ({
    parentId: rowData.parent
});
const mapProps = (_label, { property, rowData }) => (Object.assign({}, (rowData[property] && rowData[property].props)));
//# sourceMappingURL=transformers.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/utils.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/utils.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "isRowExpanded": () => (/* binding */ isRowExpanded),
/* harmony export */   "getErrorTextByValidator": () => (/* binding */ getErrorTextByValidator),
/* harmony export */   "cancelCellEdits": () => (/* binding */ cancelCellEdits),
/* harmony export */   "validateCellEdits": () => (/* binding */ validateCellEdits),
/* harmony export */   "applyCellEdits": () => (/* binding */ applyCellEdits),
/* harmony export */   "toCamel": () => (/* binding */ toCamel),
/* harmony export */   "capitalize": () => (/* binding */ capitalize)
/* harmony export */ });
const hasCompoundParentsExpanded = (parentId, compoundParent, rows) => {
    // max rows.length parents
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    for (const i of rows) {
        if (rows[parentId].hasOwnProperty('parent')) {
            parentId = rows[parentId].parent;
        }
        else {
            return rows[parentId].cells[compoundParent].props.isOpen;
        }
    }
    return false;
};
const hasParentsExpanded = (parentId, rows) => {
    // max rows.length parents
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    for (const i of rows) {
        if (rows[parentId].hasOwnProperty('parent')) {
            parentId = rows[parentId].parent;
        }
        else {
            return rows[parentId].isOpen;
        }
    }
    return false;
};
const isRowExpanded = (row, rows) => {
    if (row.parent !== undefined) {
        if (row.hasOwnProperty('compoundParent')) {
            return hasCompoundParentsExpanded(row.parent, row.compoundParent, rows);
        }
        return hasParentsExpanded(row.parent, rows) && rows[row.parent].isOpen;
    }
    return undefined;
};
const getErrorTextByValidator = (validatorName, validators) => {
    const result = validators.filter(validator => validator.name === validatorName);
    return result[0].errorText;
};
const cancelCellEdits = (row) => {
    row.cells.forEach(cell => {
        delete cell.props.errorText;
        delete cell.props.editableValue;
        cell.props.isValid = true;
        // for editable selects, revert the selected property to its original value
        if (cell.props.selected) {
            cell.props.selected = cell.props.value;
        }
    });
    row.isEditable = !row.isEditable;
    row.isValid = true;
    return row;
};
const validateCellEdits = (row, type, validationErrors, missingPropErrorTxt = 'Validation requires unique name property for row cells') => {
    row.isValid = Object.keys(validationErrors).length ? false : true;
    row.cells.forEach(cell => {
        delete cell.props.errorText;
        const hasValue = cell.props.value !== undefined && cell.props.value !== null;
        const hasEditableValue = cell.props.editableValue !== undefined && cell.props.editableValue !== null;
        if (cell.props && hasValue && hasEditableValue) {
            if (type === 'save') {
                const errorMsg = Object.keys(validationErrors)
                    .filter(validatorName => validationErrors[validatorName].includes(cell.props.name))
                    .map(validatorName => getErrorTextByValidator(validatorName, row.rowEditValidationRules));
                if (errorMsg.length) {
                    cell.props.errorText = cell.props.name ? errorMsg.join(', ') : missingPropErrorTxt;
                    if (cell.props.name === undefined) {
                        // eslint-disable-next-line no-console
                        console.warn('Row edit validation reporting requires cell definitions to have a unique name property.');
                    }
                }
                else {
                    delete cell.props.errorText;
                    cell.props.isValid = true;
                }
            }
        }
    });
    return row;
};
const applyCellEdits = (row, type) => {
    row.cells.forEach(cell => {
        delete cell.props.errorText;
        const hasValue = cell.props.value !== undefined && cell.props.value !== null;
        const hasEditableValue = cell.props.editableValue !== undefined && cell.props.editableValue !== null;
        // sync for validation
        if (hasValue && !hasEditableValue) {
            cell.props.editableValue = cell.props.value;
        }
        if (cell.props && hasValue && hasEditableValue) {
            if (type === 'save') {
                cell.props.value = cell.props.editableValue;
                cell.props.isValid = true;
                delete cell.props.errorText;
            }
            delete cell.props.editableValue;
        }
    });
    row.isEditable = !row.isEditable;
    row.isValid = true;
    return row;
};
const camelize = (s) => s
    .toUpperCase()
    .replace('-', '')
    .replace('_', '');
const toCamel = (s) => s.replace(/([-_][a-z])/gi, camelize);
/**
 * @param {string} input - String to capitalize
 */
function capitalize(input) {
    return input[0].toUpperCase() + input.substring(1);
}
//# sourceMappingURL=utils.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/TableComposable/TableComposable.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/TableComposable/TableComposable.js ***!
  \*****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TableComposable": () => (/* binding */ TableComposable)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table */ "./node_modules/@patternfly/react-styles/css/components/Table/table.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table_grid__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table-grid */ "./node_modules/@patternfly/react-styles/css/components/Table/table-grid.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table_tree_view__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table-tree-view */ "./node_modules/@patternfly/react-styles/css/components/Table/table-tree-view.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _Table_utils_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Table/utils/utils */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/utils.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/KeyboardHandler.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");
/* harmony import */ var _Table_TableTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Table/TableTypes */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableTypes.js");









const TableComposableBase = (_a) => {
    var _b, _c;
    var { children, className, variant, borders = true, isStickyHeader = false, gridBreakPoint = _Table_TableTypes__WEBPACK_IMPORTED_MODULE_1__.TableGridBreakpoint.gridMd, 'aria-label': ariaLabel, role = 'grid', innerRef, ouiaId, ouiaSafe = true, isTreeTable = false, isNested = false, nestedHeaderColumnSpans } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__rest)(_a, ["children", "className", "variant", "borders", "isStickyHeader", "gridBreakPoint", 'aria-label', "role", "innerRef", "ouiaId", "ouiaSafe", "isTreeTable", "isNested", "nestedHeaderColumnSpans"]);
    const tableRef = innerRef || react__WEBPACK_IMPORTED_MODULE_0__.useRef(null);
    react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
        document.addEventListener('keydown', handleKeys);
        // sets up roving tab-index to tree tables only
        if (tableRef && tableRef.current && tableRef.current.classList.contains('pf-m-tree-view')) {
            const tbody = tableRef.current.querySelector('tbody');
            tbody && (0,_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.setTabIndex)(Array.from(tbody.querySelectorAll('button, a, input')));
        }
        return function cleanup() {
            document.removeEventListener('keydown', handleKeys);
        };
    }, [tableRef, tableRef.current]);
    const ouiaProps = (0,_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.useOUIAProps)('Table', ouiaId, ouiaSafe);
    const grid = (_b = _patternfly_react_styles_css_components_Table_table_grid__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers) === null || _b === void 0 ? void 0 : _b[(0,_Table_utils_utils__WEBPACK_IMPORTED_MODULE_6__.toCamel)(gridBreakPoint || '').replace(/-?2xl/, '_2xl')];
    const breakPointPrefix = `treeView${gridBreakPoint.charAt(0).toUpperCase() + gridBreakPoint.slice(1)}`;
    const treeGrid = (_c = _patternfly_react_styles_css_components_Table_table_tree_view__WEBPACK_IMPORTED_MODULE_7__["default"].modifiers) === null || _c === void 0 ? void 0 : _c[(0,_Table_utils_utils__WEBPACK_IMPORTED_MODULE_6__.toCamel)(breakPointPrefix || '').replace(/-?2xl/, '_2xl')];
    const handleKeys = (event) => {
        if (isNested ||
            !(tableRef && tableRef.current && tableRef.current.classList.contains('pf-m-tree-view')) || // implements roving tab-index to tree tables only
            (tableRef && tableRef.current !== event.target.closest('.pf-c-table:not(.pf-m-nested)'))) {
            return;
        }
        const activeElement = document.activeElement;
        const key = event.key;
        const rows = Array.from(tableRef.current.querySelectorAll('tbody tr')).filter(el => !el.classList.contains('pf-m-disabled') && !el.hidden);
        if (key === 'Space' || key === 'Enter') {
            activeElement.click();
            event.preventDefault();
        }
        const getFocusableElement = (element) => element.querySelectorAll('button:not(:disabled), input:not(:disabled), a:not(:disabled)')[0];
        (0,_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.handleArrows)(event, rows, (element) => element === activeElement.closest('tr'), getFocusableElement, ['button', 'input', 'a'], undefined, false, true, false);
    };
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("table", Object.assign({ "aria-label": ariaLabel, role: role, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_8__.css)(className, _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_9__["default"].table, isTreeTable ? treeGrid : grid, _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_9__["default"].modifiers[variant], !borders && _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_9__["default"].modifiers.noBorderRows, isStickyHeader && _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_9__["default"].modifiers.stickyHeader, isTreeTable && _patternfly_react_styles_css_components_Table_table_tree_view__WEBPACK_IMPORTED_MODULE_7__["default"].modifiers.treeView, isNested && 'pf-m-nested'), ref: tableRef }, (isTreeTable && { role: 'treegrid' }), ouiaProps, props),
        nestedHeaderColumnSpans &&
            nestedHeaderColumnSpans.map((span, index) => {
                if (span === 1) {
                    return react__WEBPACK_IMPORTED_MODULE_0__.createElement("col", { key: index });
                }
                else {
                    return react__WEBPACK_IMPORTED_MODULE_0__.createElement("colgroup", { key: index, span: span });
                }
            }),
        children));
};
const TableComposable = react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((props, ref) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(TableComposableBase, Object.assign({}, props, { innerRef: ref }))));
TableComposable.displayName = 'TableComposable';
//# sourceMappingURL=TableComposable.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/TableComposable/Tbody.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/TableComposable/Tbody.js ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Tbody": () => (/* binding */ Tbody)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table */ "./node_modules/@patternfly/react-styles/css/components/Table/table.js");




const TbodyBase = (_a) => {
    var { children, className, isExpanded, innerRef } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "isExpanded", "innerRef"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("tbody", Object.assign({ role: "rowgroup", className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(className, isExpanded && _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.expanded), ref: innerRef }, props), children));
};
const Tbody = react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((props, ref) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(TbodyBase, Object.assign({}, props, { innerRef: ref }))));
Tbody.displayName = 'Tbody';
//# sourceMappingURL=Tbody.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/TableComposable/Td.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/TableComposable/Td.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Td": () => (/* binding */ Td)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table */ "./node_modules/@patternfly/react-styles/css/components/Table/table.js");
/* harmony import */ var _Table_utils_decorators_cellActions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Table/utils/decorators/cellActions */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/cellActions.js");
/* harmony import */ var _Table_utils_decorators_selectable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Table/utils/decorators/selectable */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/selectable.js");
/* harmony import */ var _Table_utils_decorators_collapsible__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Table/utils/decorators/collapsible */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/collapsible.js");
/* harmony import */ var _Table_utils_decorators_compoundExpand__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Table/utils/decorators/compoundExpand */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/compoundExpand.js");
/* harmony import */ var _Table_utils_decorators_cellWidth__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Table/utils/decorators/cellWidth */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/cellWidth.js");
/* harmony import */ var _Table_utils_decorators_classNames__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./../Table/utils/decorators/classNames */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/classNames.js");
/* harmony import */ var _Table_utils_decorators_favoritable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Table/utils/decorators/favoritable */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/favoritable.js");
/* harmony import */ var _Table_utils_decorators_draggable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Table/utils/decorators/draggable */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/draggable.js");
/* harmony import */ var _Table_utils_decorators_treeRow__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Table/utils/decorators/treeRow */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/treeRow.js");
/* harmony import */ var _Table_base_merge_props__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Table/base/merge-props */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/merge-props.js");














const TdBase = (_a) => {
    var { children, className, component = 'td', dataLabel, textCenter = false, modifier, select = null, actions = null, expand = null, treeRow: treeRowProp = null, compoundExpand: compoundExpandProp = null, noPadding, width, visibility, innerRef, favorites = null, draggableRow: draggableRowProp = null } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "component", "dataLabel", "textCenter", "modifier", "select", "actions", "expand", "treeRow", "compoundExpand", "noPadding", "width", "visibility", "innerRef", "favorites", "draggableRow"]);
    const selectParams = select
        ? (0,_Table_utils_decorators_selectable__WEBPACK_IMPORTED_MODULE_2__.selectable)(children, {
            rowIndex: select.rowIndex,
            rowData: {
                selected: select.isSelected,
                disableSelection: select === null || select === void 0 ? void 0 : select.disable,
                props: select === null || select === void 0 ? void 0 : select.props
            },
            column: {
                extraParams: {
                    onSelect: select === null || select === void 0 ? void 0 : select.onSelect,
                    selectVariant: select.variant || 'checkbox'
                }
            }
        })
        : null;
    const favoriteParams = favorites
        ? (0,_Table_utils_decorators_favoritable__WEBPACK_IMPORTED_MODULE_3__.favoritable)(null, {
            rowIndex: favorites === null || favorites === void 0 ? void 0 : favorites.rowIndex,
            rowData: {
                favorited: favorites.isFavorited,
                favoritesProps: favorites === null || favorites === void 0 ? void 0 : favorites.props
            },
            column: {
                extraParams: {
                    onFavorite: favorites === null || favorites === void 0 ? void 0 : favorites.onFavorite
                }
            }
        })
        : null;
    const draggableParams = draggableRowProp !== null
        ? (0,_Table_utils_decorators_draggable__WEBPACK_IMPORTED_MODULE_4__.draggable)(null, {
            rowData: {
                id: draggableRowProp.id
            }
        })
        : null;
    const actionParamsFunc = actions ? (0,_Table_utils_decorators_cellActions__WEBPACK_IMPORTED_MODULE_5__.cellActions)(actions.items, null, null) : null;
    const actionParams = actionParamsFunc
        ? actionParamsFunc(null, {
            rowData: {
                disableActions: actions === null || actions === void 0 ? void 0 : actions.disable
            },
            column: {
                extraParams: {
                    dropdownPosition: actions === null || actions === void 0 ? void 0 : actions.dropdownPosition,
                    dropdownDirection: actions === null || actions === void 0 ? void 0 : actions.dropdownDirection,
                    actionsToggle: actions === null || actions === void 0 ? void 0 : actions.actionsToggle
                }
            }
        })
        : null;
    const expandableParams = expand !== null
        ? (0,_Table_utils_decorators_collapsible__WEBPACK_IMPORTED_MODULE_6__.collapsible)(null, {
            rowIndex: expand.rowIndex,
            columnIndex: expand === null || expand === void 0 ? void 0 : expand.columnIndex,
            rowData: {
                isOpen: expand.isExpanded
            },
            column: {
                extraParams: {
                    onCollapse: expand === null || expand === void 0 ? void 0 : expand.onToggle
                }
            }
        })
        : null;
    const compoundParams = compoundExpandProp !== null
        ? (0,_Table_utils_decorators_compoundExpand__WEBPACK_IMPORTED_MODULE_7__.compoundExpand)({
            title: children,
            props: {
                isOpen: compoundExpandProp.isExpanded
            }
        }, {
            column: {
                extraParams: {
                    onExpand: compoundExpandProp === null || compoundExpandProp === void 0 ? void 0 : compoundExpandProp.onToggle
                }
            }
        })
        : null;
    const widthParams = width ? (0,_Table_utils_decorators_cellWidth__WEBPACK_IMPORTED_MODULE_8__.cellWidth)(width)() : null;
    const visibilityParams = visibility
        ? (0,_Table_utils_decorators_classNames__WEBPACK_IMPORTED_MODULE_9__.classNames)(...visibility.map((vis) => _Table_utils_decorators_classNames__WEBPACK_IMPORTED_MODULE_9__.Visibility[vis]))()
        : null;
    const treeRowParams = treeRowProp !== null
        ? (0,_Table_utils_decorators_treeRow__WEBPACK_IMPORTED_MODULE_10__.treeRow)(treeRowProp.onCollapse, treeRowProp.onCheckChange, treeRowProp.onToggleRowDetails)({
            title: children
        }, {
            rowIndex: treeRowProp.rowIndex,
            rowData: {
                props: treeRowProp.props
            }
        })
        : null;
    const merged = (0,_Table_base_merge_props__WEBPACK_IMPORTED_MODULE_11__.mergeProps)(selectParams, actionParams, expandableParams, compoundParams, widthParams, visibilityParams, favoriteParams, treeRowParams, draggableParams);
    const { 
    // selectable adds this but we don't want it
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    isVisible = null, children: mergedChildren = null, className: mergedClassName = '', component: MergedComponent = component } = merged, mergedProps = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(merged, ["isVisible", "children", "className", "component"]);
    const treeTableTitleCell = (className && className.includes('pf-c-table__tree-view-title-cell')) ||
        (mergedClassName && mergedClassName.includes('pf-c-table__tree-view-title-cell'));
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(MergedComponent, Object.assign({}, (!treeTableTitleCell && { 'data-label': dataLabel }), { className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_12__.css)(className, textCenter && _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_13__["default"].modifiers.center, noPadding && _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_13__["default"].modifiers.noPadding, _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_13__["default"].modifiers[modifier], draggableParams && _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_13__["default"].tableDraggable, mergedClassName), ref: innerRef }, mergedProps, props), mergedChildren || children));
};
const Td = react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((props, ref) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(TdBase, Object.assign({}, props, { innerRef: ref }))));
Td.displayName = 'Td';
//# sourceMappingURL=Td.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/TableComposable/Th.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/TableComposable/Th.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Th": () => (/* binding */ Th)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table */ "./node_modules/@patternfly/react-styles/css/components/Table/table.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table_scrollable__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table-scrollable */ "./node_modules/@patternfly/react-styles/css/components/Table/table-scrollable.js");
/* harmony import */ var _Table_utils_decorators_info__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Table/utils/decorators/info */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/info.js");
/* harmony import */ var _Table_utils_decorators_sortable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Table/utils/decorators/sortable */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/sortable.js");
/* harmony import */ var _Table_utils_decorators_selectable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Table/utils/decorators/selectable */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/selectable.js");
/* harmony import */ var _Table_utils_decorators_cellWidth__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./../Table/utils/decorators/cellWidth */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/cellWidth.js");
/* harmony import */ var _Table_utils_decorators_classNames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../Table/utils/decorators/classNames */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/classNames.js");
/* harmony import */ var _Table_base_merge_props__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Table/base/merge-props */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/base/merge-props.js");
/* harmony import */ var _patternfly_react_core_dist_esm_components_Tooltip_Tooltip__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core/dist/esm/components/Tooltip/Tooltip */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js");












const ThBase = (_a) => {
    var { children, className, component = 'th', dataLabel, scope = 'col', textCenter = false, sort = null, modifier, select = null, tooltip = '', onMouseEnter: onMouseEnterProp = () => { }, width, visibility, innerRef, info: infoProps, isStickyColumn = false, hasRightBorder = false, stickyMinWidth = '120px', stickyLeftOffset, isSubheader = false } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "component", "dataLabel", "scope", "textCenter", "sort", "modifier", "select", "tooltip", "onMouseEnter", "width", "visibility", "innerRef", "info", "isStickyColumn", "hasRightBorder", "stickyMinWidth", "stickyLeftOffset", "isSubheader"]);
    const [showTooltip, setShowTooltip] = react__WEBPACK_IMPORTED_MODULE_0__.useState(false);
    const onMouseEnter = (event) => {
        if (event.target.offsetWidth < event.target.scrollWidth) {
            !showTooltip && setShowTooltip(true);
        }
        else {
            showTooltip && setShowTooltip(false);
        }
        onMouseEnterProp(event);
    };
    let sortParams = null;
    if (sort) {
        if (sort.isFavorites) {
            sortParams = (0,_Table_utils_decorators_sortable__WEBPACK_IMPORTED_MODULE_2__.sortableFavorites)({
                onSort: sort === null || sort === void 0 ? void 0 : sort.onSort,
                columnIndex: sort.columnIndex,
                sortBy: sort.sortBy
            })();
        }
        else {
            sortParams = (0,_Table_utils_decorators_sortable__WEBPACK_IMPORTED_MODULE_2__.sortable)(children, {
                columnIndex: sort.columnIndex,
                column: {
                    extraParams: {
                        sortBy: sort.sortBy,
                        onSort: sort === null || sort === void 0 ? void 0 : sort.onSort
                    }
                }
            });
        }
    }
    const selectParams = select
        ? (0,_Table_utils_decorators_selectable__WEBPACK_IMPORTED_MODULE_3__.selectable)(children, {
            column: {
                extraParams: {
                    onSelect: select === null || select === void 0 ? void 0 : select.onSelect,
                    selectVariant: 'checkbox',
                    allRowsSelected: select.isSelected,
                    isHeaderSelectDisabled: !!select.isHeaderSelectDisabled
                }
            }
        })
        : null;
    const widthParams = width ? (0,_Table_utils_decorators_cellWidth__WEBPACK_IMPORTED_MODULE_4__.cellWidth)(width)() : null;
    const visibilityParams = visibility
        ? (0,_Table_utils_decorators_classNames__WEBPACK_IMPORTED_MODULE_5__.classNames)(...visibility.map((vis) => _Table_utils_decorators_classNames__WEBPACK_IMPORTED_MODULE_5__.Visibility[vis]))()
        : null;
    let transformedChildren = (sortParams === null || sortParams === void 0 ? void 0 : sortParams.children) || (selectParams === null || selectParams === void 0 ? void 0 : selectParams.children) || children;
    // info can wrap other transformedChildren
    let infoParams = null;
    if (infoProps) {
        infoParams = (0,_Table_utils_decorators_info__WEBPACK_IMPORTED_MODULE_6__.info)(infoProps)(transformedChildren);
        transformedChildren = infoParams.children;
    }
    const merged = (0,_Table_base_merge_props__WEBPACK_IMPORTED_MODULE_7__.mergeProps)(sortParams, selectParams, widthParams, visibilityParams, infoParams);
    const { 
    // ignore the merged children since we transform them ourselves so we can wrap it with info
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    children: mergedChildren = null, 
    // selectable adds this but we don't want it
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    isVisible = null, className: mergedClassName = '', component: MergedComponent = component } = merged, mergedProps = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(merged, ["children", "isVisible", "className", "component"]);
    const cell = (react__WEBPACK_IMPORTED_MODULE_0__.createElement(MergedComponent, Object.assign({ "data-label": dataLabel, onMouseEnter: tooltip !== null ? onMouseEnter : onMouseEnterProp, scope: component === 'th' && children ? scope : null, ref: innerRef, className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_8__.css)(className, textCenter && _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_9__["default"].modifiers.center, isSubheader && _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_9__["default"].tableSubhead, isStickyColumn && _patternfly_react_styles_css_components_Table_table_scrollable__WEBPACK_IMPORTED_MODULE_10__["default"].tableStickyColumn, hasRightBorder && _patternfly_react_styles_css_components_Table_table_scrollable__WEBPACK_IMPORTED_MODULE_10__["default"].modifiers.borderRight, modifier && _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_9__["default"].modifiers[modifier], mergedClassName) }, mergedProps, props, (isStickyColumn && {
        style: Object.assign({ '--pf-c-table__sticky-column--MinWidth': stickyMinWidth ? stickyMinWidth : undefined, '--pf-c-table__sticky-column--Left': stickyLeftOffset ? stickyLeftOffset : undefined }, props.style)
    })), transformedChildren));
    const canDefault = tooltip === '' ? typeof children === 'string' : true;
    return tooltip !== null && canDefault && showTooltip ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core_dist_esm_components_Tooltip_Tooltip__WEBPACK_IMPORTED_MODULE_11__.Tooltip, { content: tooltip || (tooltip === '' && children), isVisible: true }, cell)) : (cell);
};
const Th = react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((props, ref) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(ThBase, Object.assign({}, props, { innerRef: ref }))));
Th.displayName = 'Th';
//# sourceMappingURL=Th.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/TableComposable/Thead.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/TableComposable/Thead.js ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Thead": () => (/* binding */ Thead)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table */ "./node_modules/@patternfly/react-styles/css/components/Table/table.js");




const TheadBase = (_a) => {
    var { children, className, noWrap = false, innerRef, hasNestedHeader } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "noWrap", "innerRef", "hasNestedHeader"]);
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("thead", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_2__.css)(className, noWrap && _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.nowrap, hasNestedHeader && _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_3__["default"].modifiers.nestedColumnHeader), ref: innerRef }, props), children));
};
const Thead = react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((props, ref) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(TheadBase, Object.assign({}, props, { innerRef: ref }))));
Thead.displayName = 'Thead';
//# sourceMappingURL=Thead.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-table/dist/esm/components/TableComposable/Tr.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-table/dist/esm/components/TableComposable/Tr.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Tr": () => (/* binding */ Tr)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/OUIA/ouia.js");
/* harmony import */ var _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-styles/css/components/Table/table */ "./node_modules/@patternfly/react-styles/css/components/Table/table.js");
/* harmony import */ var _patternfly_react_styles_css_components_InlineEdit_inline_edit__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-styles/css/components/InlineEdit/inline-edit */ "./node_modules/@patternfly/react-styles/css/components/InlineEdit/inline-edit.js");
/* harmony import */ var _patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-styles */ "./node_modules/@patternfly/react-styles/dist/esm/index.js");






const TrBase = (_a) => {
    var { children, className, isExpanded, isEditable, isHidden = false, isHoverable = false, isRowSelected = false, innerRef, ouiaId, ouiaSafe = true, resetOffset = false, onRowClick } = _a, props = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__rest)(_a, ["children", "className", "isExpanded", "isEditable", "isHidden", "isHoverable", "isRowSelected", "innerRef", "ouiaId", "ouiaSafe", "resetOffset", "onRowClick"]);
    const ouiaProps = (0,_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.useOUIAProps)('TableRow', ouiaId, ouiaSafe);
    let onKeyDown = null;
    if (onRowClick) {
        onKeyDown = (e) => {
            if (e.key === 'Enter' || e.key === ' ') {
                onRowClick(e);
                e.preventDefault();
            }
        };
    }
    return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("tr", Object.assign({ className: (0,_patternfly_react_styles__WEBPACK_IMPORTED_MODULE_3__.css)(className, isExpanded !== undefined && _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_4__["default"].tableExpandableRow, isExpanded && _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.expanded, isEditable && _patternfly_react_styles_css_components_InlineEdit_inline_edit__WEBPACK_IMPORTED_MODULE_5__["default"].modifiers.inlineEditable, isHoverable && _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.hoverable, isRowSelected && _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.selected, resetOffset && _patternfly_react_styles_css_components_Table_table__WEBPACK_IMPORTED_MODULE_4__["default"].modifiers.firstCellOffsetReset), hidden: isHidden || (isExpanded !== undefined && !isExpanded) }, (isHoverable && { tabIndex: 0 }), { ref: innerRef }, (onRowClick && { onClick: onRowClick, onKeyDown }), ouiaProps, props), children));
};
const Tr = react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((props, ref) => (react__WEBPACK_IMPORTED_MODULE_0__.createElement(TrBase, Object.assign({}, props, { innerRef: ref }))));
Tr.displayName = 'Tr';
//# sourceMappingURL=Tr.js.map

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/c_alert__title_max_lines.js":
/*!************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/c_alert__title_max_lines.js ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "c_alert__title_max_lines": () => (/* binding */ c_alert__title_max_lines),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const c_alert__title_max_lines = {
  "name": "--pf-c-alert__title--max-lines",
  "value": "1",
  "var": "var(--pf-c-alert__title--max-lines)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (c_alert__title_max_lines);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/c_form_control_textarea_Height.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/c_form_control_textarea_Height.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "c_form_control_textarea_Height": () => (/* binding */ c_form_control_textarea_Height),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const c_form_control_textarea_Height = {
  "name": "--pf-c-form-control--textarea--Height",
  "value": "auto",
  "var": "var(--pf-c-form-control--textarea--Height)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (c_form_control_textarea_Height);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/c_modal_box_m_align_top_spacer.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/c_modal_box_m_align_top_spacer.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "c_modal_box_m_align_top_spacer": () => (/* binding */ c_modal_box_m_align_top_spacer),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const c_modal_box_m_align_top_spacer = {
  "name": "--pf-c-modal-box--m-align-top--spacer",
  "value": "0.5rem",
  "var": "var(--pf-c-modal-box--m-align-top--spacer)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (c_modal_box_m_align_top_spacer);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/c_pagination__nav_page_select_c_form_control_width_chars.js":
/*!********************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/c_pagination__nav_page_select_c_form_control_width_chars.js ***!
  \********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "c_pagination__nav_page_select_c_form_control_width_chars": () => (/* binding */ c_pagination__nav_page_select_c_form_control_width_chars),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const c_pagination__nav_page_select_c_form_control_width_chars = {
  "name": "--pf-c-pagination__nav-page-select--c-form-control--width-chars",
  "value": "2",
  "var": "var(--pf-c-pagination__nav-page-select--c-form-control--width-chars)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (c_pagination__nav_page_select_c_form_control_width_chars);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/c_popover_MaxWidth.js":
/*!******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/c_popover_MaxWidth.js ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "c_popover_MaxWidth": () => (/* binding */ c_popover_MaxWidth),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const c_popover_MaxWidth = {
  "name": "--pf-c-popover--MaxWidth",
  "value": "none",
  "var": "var(--pf-c-popover--MaxWidth)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (c_popover_MaxWidth);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/c_popover_MinWidth.js":
/*!******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/c_popover_MinWidth.js ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "c_popover_MinWidth": () => (/* binding */ c_popover_MinWidth),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const c_popover_MinWidth = {
  "name": "--pf-c-popover--MinWidth",
  "value": "auto",
  "var": "var(--pf-c-popover--MinWidth)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (c_popover_MinWidth);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/c_tooltip_MaxWidth.js":
/*!******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/c_tooltip_MaxWidth.js ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "c_tooltip_MaxWidth": () => (/* binding */ c_tooltip_MaxWidth),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const c_tooltip_MaxWidth = {
  "name": "--pf-c-tooltip--MaxWidth",
  "value": "18.75rem",
  "var": "var(--pf-c-tooltip--MaxWidth)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (c_tooltip_MaxWidth);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_area_Opacity.js":
/*!******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_area_Opacity.js ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_area_Opacity": () => (/* binding */ chart_area_Opacity),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_area_Opacity = {
  "name": "--pf-chart-area--Opacity",
  "value": 0.3,
  "var": "var(--pf-chart-area--Opacity)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_area_Opacity);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_area_data_Fill.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_area_data_Fill.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_area_data_Fill": () => (/* binding */ chart_area_data_Fill),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_area_data_Fill = {
  "name": "--pf-chart-area--data--Fill",
  "value": "#151515",
  "var": "var(--pf-chart-area--data--Fill)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_area_data_Fill);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_area_stroke_Width.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_area_stroke_Width.js ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_area_stroke_Width": () => (/* binding */ chart_area_stroke_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_area_stroke_Width = {
  "name": "--pf-chart-area--stroke--Width",
  "value": 2,
  "var": "var(--pf-chart-area--stroke--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_area_stroke_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_axis_Fill.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_axis_Fill.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_axis_axis_Fill": () => (/* binding */ chart_axis_axis_Fill),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_axis_axis_Fill = {
  "name": "--pf-chart-axis--axis--Fill",
  "value": "transparent",
  "var": "var(--pf-chart-axis--axis--Fill)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_axis_axis_Fill);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_axis_label_Padding.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_axis_label_Padding.js ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_axis_axis_label_Padding": () => (/* binding */ chart_axis_axis_label_Padding),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_axis_axis_label_Padding = {
  "name": "--pf-chart-axis--axis-label--Padding",
  "value": 40,
  "var": "var(--pf-chart-axis--axis-label--Padding)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_axis_axis_label_Padding);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_axis_label_stroke_Color.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_axis_label_stroke_Color.js ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_axis_axis_label_stroke_Color": () => (/* binding */ chart_axis_axis_label_stroke_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_axis_axis_label_stroke_Color = {
  "name": "--pf-chart-axis--axis-label--stroke--Color",
  "value": "transparent",
  "var": "var(--pf-chart-axis--axis-label--stroke--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_axis_axis_label_stroke_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_axis_stroke_Color.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_axis_stroke_Color.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_axis_axis_stroke_Color": () => (/* binding */ chart_axis_axis_stroke_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_axis_axis_stroke_Color = {
  "name": "--pf-chart-axis--axis--stroke--Color",
  "value": "#d2d2d2",
  "var": "var(--pf-chart-axis--axis--stroke--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_axis_axis_stroke_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_axis_stroke_Width.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_axis_stroke_Width.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_axis_axis_stroke_Width": () => (/* binding */ chart_axis_axis_stroke_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_axis_axis_stroke_Width = {
  "name": "--pf-chart-axis--axis--stroke--Width",
  "value": 1,
  "var": "var(--pf-chart-axis--axis--stroke--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_axis_axis_stroke_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_grid_Fill.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_grid_Fill.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_axis_grid_Fill": () => (/* binding */ chart_axis_grid_Fill),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_axis_grid_Fill = {
  "name": "--pf-chart-axis--grid--Fill",
  "value": "none",
  "var": "var(--pf-chart-axis--grid--Fill)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_axis_grid_Fill);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_grid_PointerEvents.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_grid_PointerEvents.js ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_axis_grid_PointerEvents": () => (/* binding */ chart_axis_grid_PointerEvents),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_axis_grid_PointerEvents = {
  "name": "--pf-chart-axis--grid--PointerEvents",
  "value": "painted",
  "var": "var(--pf-chart-axis--grid--PointerEvents)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_axis_grid_PointerEvents);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_grid_stroke_Color.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_grid_stroke_Color.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_axis_grid_stroke_Color": () => (/* binding */ chart_axis_grid_stroke_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_axis_grid_stroke_Color = {
  "name": "--pf-chart-axis--grid--stroke--Color",
  "value": "#d2d2d2",
  "var": "var(--pf-chart-axis--grid--stroke--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_axis_grid_stroke_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_tick_Fill.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_tick_Fill.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_axis_tick_Fill": () => (/* binding */ chart_axis_tick_Fill),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_axis_tick_Fill = {
  "name": "--pf-chart-axis--tick--Fill",
  "value": "transparent",
  "var": "var(--pf-chart-axis--tick--Fill)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_axis_tick_Fill);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_tick_Size.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_tick_Size.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_axis_tick_Size": () => (/* binding */ chart_axis_tick_Size),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_axis_tick_Size = {
  "name": "--pf-chart-axis--tick--Size",
  "value": 5,
  "var": "var(--pf-chart-axis--tick--Size)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_axis_tick_Size);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_tick_Width.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_tick_Width.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_axis_tick_Width": () => (/* binding */ chart_axis_tick_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_axis_tick_Width = {
  "name": "--pf-chart-axis--tick--Width",
  "value": 1,
  "var": "var(--pf-chart-axis--tick--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_axis_tick_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_tick_label_Fill.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_tick_label_Fill.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_axis_tick_label_Fill": () => (/* binding */ chart_axis_tick_label_Fill),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_axis_tick_label_Fill = {
  "name": "--pf-chart-axis--tick-label--Fill",
  "value": "#4f5255",
  "var": "var(--pf-chart-axis--tick-label--Fill)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_axis_tick_label_Fill);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_tick_stroke_Color.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_axis_tick_stroke_Color.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_axis_tick_stroke_Color": () => (/* binding */ chart_axis_tick_stroke_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_axis_tick_stroke_Color = {
  "name": "--pf-chart-axis--tick--stroke--Color",
  "value": "#d2d2d2",
  "var": "var(--pf-chart-axis--tick--stroke--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_axis_tick_stroke_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bar_Width.js":
/*!***************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_bar_Width.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_bar_Width": () => (/* binding */ chart_bar_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_bar_Width = {
  "name": "--pf-chart-bar--Width",
  "value": 10,
  "var": "var(--pf-chart-bar--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_bar_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bar_data_Fill.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_bar_data_Fill.js ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_bar_data_Fill": () => (/* binding */ chart_bar_data_Fill),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_bar_data_Fill = {
  "name": "--pf-chart-bar--data--Fill",
  "value": "#151515",
  "var": "var(--pf-chart-bar--data--Fill)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_bar_data_Fill);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bar_data_Padding.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_bar_data_Padding.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_bar_data_Padding": () => (/* binding */ chart_bar_data_Padding),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_bar_data_Padding = {
  "name": "--pf-chart-bar--data--Padding",
  "value": 8,
  "var": "var(--pf-chart-bar--data--Padding)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_bar_data_Padding);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bar_data_stroke.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_bar_data_stroke.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_bar_data_stroke": () => (/* binding */ chart_bar_data_stroke),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_bar_data_stroke = {
  "name": "--pf-chart-bar--data--stroke",
  "value": "none",
  "var": "var(--pf-chart-bar--data--stroke)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_bar_data_stroke);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bar_data_stroke_Width.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_bar_data_stroke_Width.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_bar_data_stroke_Width": () => (/* binding */ chart_bar_data_stroke_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_bar_data_stroke_Width = {
  "name": "--pf-chart-bar--data-stroke--Width",
  "value": 0,
  "var": "var(--pf-chart-bar--data-stroke--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_bar_data_stroke_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_box_Width.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_box_Width.js ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_boxplot_box_Width": () => (/* binding */ chart_boxplot_box_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_boxplot_box_Width = {
  "name": "--pf-chart-boxplot--box--Width",
  "value": 20,
  "var": "var(--pf-chart-boxplot--box--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_boxplot_box_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_lower_quartile_Fill.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_lower_quartile_Fill.js ***!
  \*********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_boxplot_lower_quartile_Fill": () => (/* binding */ chart_boxplot_lower_quartile_Fill),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_boxplot_lower_quartile_Fill = {
  "name": "--pf-chart-boxplot--lower-quartile--Fill",
  "value": "#8a8d90",
  "var": "var(--pf-chart-boxplot--lower-quartile--Fill)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_boxplot_lower_quartile_Fill);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_lower_quartile_Padding.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_lower_quartile_Padding.js ***!
  \************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_boxplot_lower_quartile_Padding": () => (/* binding */ chart_boxplot_lower_quartile_Padding),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_boxplot_lower_quartile_Padding = {
  "name": "--pf-chart-boxplot--lower-quartile--Padding",
  "value": 8,
  "var": "var(--pf-chart-boxplot--lower-quartile--Padding)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_boxplot_lower_quartile_Padding);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_max_Padding.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_max_Padding.js ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_boxplot_max_Padding": () => (/* binding */ chart_boxplot_max_Padding),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_boxplot_max_Padding = {
  "name": "--pf-chart-boxplot--max--Padding",
  "value": 8,
  "var": "var(--pf-chart-boxplot--max--Padding)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_boxplot_max_Padding);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_max_stroke_Color.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_max_stroke_Color.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_boxplot_max_stroke_Color": () => (/* binding */ chart_boxplot_max_stroke_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_boxplot_max_stroke_Color = {
  "name": "--pf-chart-boxplot--max--stroke--Color",
  "value": "#151515",
  "var": "var(--pf-chart-boxplot--max--stroke--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_boxplot_max_stroke_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_max_stroke_Width.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_max_stroke_Width.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_boxplot_max_stroke_Width": () => (/* binding */ chart_boxplot_max_stroke_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_boxplot_max_stroke_Width = {
  "name": "--pf-chart-boxplot--max--stroke--Width",
  "value": 1,
  "var": "var(--pf-chart-boxplot--max--stroke--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_boxplot_max_stroke_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_median_Padding.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_median_Padding.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_boxplot_median_Padding": () => (/* binding */ chart_boxplot_median_Padding),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_boxplot_median_Padding = {
  "name": "--pf-chart-boxplot--median--Padding",
  "value": 8,
  "var": "var(--pf-chart-boxplot--median--Padding)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_boxplot_median_Padding);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_median_stroke_Color.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_median_stroke_Color.js ***!
  \*********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_boxplot_median_stroke_Color": () => (/* binding */ chart_boxplot_median_stroke_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_boxplot_median_stroke_Color = {
  "name": "--pf-chart-boxplot--median--stroke--Color",
  "value": "#151515",
  "var": "var(--pf-chart-boxplot--median--stroke--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_boxplot_median_stroke_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_median_stroke_Width.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_median_stroke_Width.js ***!
  \*********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_boxplot_median_stroke_Width": () => (/* binding */ chart_boxplot_median_stroke_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_boxplot_median_stroke_Width = {
  "name": "--pf-chart-boxplot--median--stroke--Width",
  "value": 1,
  "var": "var(--pf-chart-boxplot--median--stroke--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_boxplot_median_stroke_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_min_Padding.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_min_Padding.js ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_boxplot_min_Padding": () => (/* binding */ chart_boxplot_min_Padding),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_boxplot_min_Padding = {
  "name": "--pf-chart-boxplot--min--Padding",
  "value": 8,
  "var": "var(--pf-chart-boxplot--min--Padding)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_boxplot_min_Padding);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_min_stroke_Color.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_min_stroke_Color.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_boxplot_min_stroke_Color": () => (/* binding */ chart_boxplot_min_stroke_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_boxplot_min_stroke_Color = {
  "name": "--pf-chart-boxplot--min--stroke--Color",
  "value": "#151515",
  "var": "var(--pf-chart-boxplot--min--stroke--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_boxplot_min_stroke_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_min_stroke_Width.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_min_stroke_Width.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_boxplot_min_stroke_Width": () => (/* binding */ chart_boxplot_min_stroke_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_boxplot_min_stroke_Width = {
  "name": "--pf-chart-boxplot--min--stroke--Width",
  "value": 1,
  "var": "var(--pf-chart-boxplot--min--stroke--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_boxplot_min_stroke_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_upper_quartile_Fill.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_upper_quartile_Fill.js ***!
  \*********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_boxplot_upper_quartile_Fill": () => (/* binding */ chart_boxplot_upper_quartile_Fill),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_boxplot_upper_quartile_Fill = {
  "name": "--pf-chart-boxplot--upper-quartile--Fill",
  "value": "#8a8d90",
  "var": "var(--pf-chart-boxplot--upper-quartile--Fill)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_boxplot_upper_quartile_Fill);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_upper_quartile_Padding.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_boxplot_upper_quartile_Padding.js ***!
  \************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_boxplot_upper_quartile_Padding": () => (/* binding */ chart_boxplot_upper_quartile_Padding),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_boxplot_upper_quartile_Padding = {
  "name": "--pf-chart-boxplot--upper-quartile--Padding",
  "value": 8,
  "var": "var(--pf-chart-boxplot--upper-quartile--Padding)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_boxplot_upper_quartile_Padding);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_Height.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_Height.js ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_bullet_Height": () => (/* binding */ chart_bullet_Height),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_bullet_Height = {
  "name": "--pf-chart-bullet--Height",
  "value": 140,
  "var": "var(--pf-chart-bullet--Height)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_bullet_Height);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_axis_tick_count.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_axis_tick_count.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_bullet_axis_tick_count": () => (/* binding */ chart_bullet_axis_tick_count),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_bullet_axis_tick_count = {
  "name": "--pf-chart-bullet--axis--tick--count",
  "value": 5,
  "var": "var(--pf-chart-bullet--axis--tick--count)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_bullet_axis_tick_count);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_Fill_Color.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_Fill_Color.js ***!
  \*******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_bullet_comparative_measure_Fill_Color": () => (/* binding */ chart_bullet_comparative_measure_Fill_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_bullet_comparative_measure_Fill_Color = {
  "name": "--pf-chart-bullet--comparative-measure--Fill--Color",
  "value": "#4f5255",
  "var": "var(--pf-chart-bullet--comparative-measure--Fill--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_bullet_comparative_measure_Fill_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_Width.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_Width.js ***!
  \**************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_bullet_comparative_measure_Width": () => (/* binding */ chart_bullet_comparative_measure_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_bullet_comparative_measure_Width = {
  "name": "--pf-chart-bullet--comparative-measure--Width",
  "value": 30,
  "var": "var(--pf-chart-bullet--comparative-measure--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_bullet_comparative_measure_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_error_Fill_Color.js":
/*!*************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_error_Fill_Color.js ***!
  \*************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_bullet_comparative_measure_error_Fill_Color": () => (/* binding */ chart_bullet_comparative_measure_error_Fill_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_bullet_comparative_measure_error_Fill_Color = {
  "name": "--pf-chart-bullet--comparative-measure--error--Fill--Color",
  "value": "#c9190b",
  "var": "var(--pf-chart-bullet--comparative-measure--error--Fill--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_bullet_comparative_measure_error_Fill_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_error_Width.js":
/*!********************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_error_Width.js ***!
  \********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_bullet_comparative_measure_error_Width": () => (/* binding */ chart_bullet_comparative_measure_error_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_bullet_comparative_measure_error_Width = {
  "name": "--pf-chart-bullet--comparative-measure--error--Width",
  "value": 30,
  "var": "var(--pf-chart-bullet--comparative-measure--error--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_bullet_comparative_measure_error_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_error_stroke_Color.js":
/*!***************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_error_stroke_Color.js ***!
  \***************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_bullet_comparative_measure_error_stroke_Color": () => (/* binding */ chart_bullet_comparative_measure_error_stroke_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_bullet_comparative_measure_error_stroke_Color = {
  "name": "--pf-chart-bullet--comparative-measure--error--stroke--Color",
  "value": "#c9190b",
  "var": "var(--pf-chart-bullet--comparative-measure--error--stroke--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_bullet_comparative_measure_error_stroke_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_error_stroke_Width.js":
/*!***************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_error_stroke_Width.js ***!
  \***************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_bullet_comparative_measure_error_stroke_Width": () => (/* binding */ chart_bullet_comparative_measure_error_stroke_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_bullet_comparative_measure_error_stroke_Width = {
  "name": "--pf-chart-bullet--comparative-measure--error--stroke--Width",
  "value": 2,
  "var": "var(--pf-chart-bullet--comparative-measure--error--stroke--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_bullet_comparative_measure_error_stroke_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_stroke_Color.js":
/*!*********************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_stroke_Color.js ***!
  \*********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_bullet_comparative_measure_stroke_Color": () => (/* binding */ chart_bullet_comparative_measure_stroke_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_bullet_comparative_measure_stroke_Color = {
  "name": "--pf-chart-bullet--comparative-measure--stroke--Color",
  "value": "#4f5255",
  "var": "var(--pf-chart-bullet--comparative-measure--stroke--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_bullet_comparative_measure_stroke_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_stroke_Width.js":
/*!*********************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_stroke_Width.js ***!
  \*********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_bullet_comparative_measure_stroke_Width": () => (/* binding */ chart_bullet_comparative_measure_stroke_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_bullet_comparative_measure_stroke_Width = {
  "name": "--pf-chart-bullet--comparative-measure--stroke--Width",
  "value": 1,
  "var": "var(--pf-chart-bullet--comparative-measure--stroke--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_bullet_comparative_measure_stroke_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_warning_Fill_Color.js":
/*!***************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_warning_Fill_Color.js ***!
  \***************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_bullet_comparative_measure_warning_Fill_Color": () => (/* binding */ chart_bullet_comparative_measure_warning_Fill_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_bullet_comparative_measure_warning_Fill_Color = {
  "name": "--pf-chart-bullet--comparative-measure--warning--Fill--Color",
  "value": "#ec7a08",
  "var": "var(--pf-chart-bullet--comparative-measure--warning--Fill--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_bullet_comparative_measure_warning_Fill_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_warning_Width.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_warning_Width.js ***!
  \**********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_bullet_comparative_measure_warning_Width": () => (/* binding */ chart_bullet_comparative_measure_warning_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_bullet_comparative_measure_warning_Width = {
  "name": "--pf-chart-bullet--comparative-measure--warning--Width",
  "value": 30,
  "var": "var(--pf-chart-bullet--comparative-measure--warning--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_bullet_comparative_measure_warning_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_warning_stroke_Color.js":
/*!*****************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_warning_stroke_Color.js ***!
  \*****************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_bullet_comparative_measure_warning_stroke_Color": () => (/* binding */ chart_bullet_comparative_measure_warning_stroke_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_bullet_comparative_measure_warning_stroke_Color = {
  "name": "--pf-chart-bullet--comparative-measure--warning--stroke--Color",
  "value": "#ec7a08",
  "var": "var(--pf-chart-bullet--comparative-measure--warning--stroke--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_bullet_comparative_measure_warning_stroke_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_warning_stroke_Width.js":
/*!*****************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_comparative_measure_warning_stroke_Width.js ***!
  \*****************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_bullet_comparative_measure_warning_stroke_Width": () => (/* binding */ chart_bullet_comparative_measure_warning_stroke_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_bullet_comparative_measure_warning_stroke_Width = {
  "name": "--pf-chart-bullet--comparative-measure--warning--stroke--Width",
  "value": 2,
  "var": "var(--pf-chart-bullet--comparative-measure--warning--stroke--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_bullet_comparative_measure_warning_stroke_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_group_title_divider_Fill_Color.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_group_title_divider_Fill_Color.js ***!
  \*******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_bullet_group_title_divider_Fill_Color": () => (/* binding */ chart_bullet_group_title_divider_Fill_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_bullet_group_title_divider_Fill_Color = {
  "name": "--pf-chart-bullet--group-title--divider--Fill--Color",
  "value": "#f0f0f0",
  "var": "var(--pf-chart-bullet--group-title--divider--Fill--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_bullet_group_title_divider_Fill_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_group_title_divider_stroke_Color.js":
/*!*********************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_group_title_divider_stroke_Color.js ***!
  \*********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_bullet_group_title_divider_stroke_Color": () => (/* binding */ chart_bullet_group_title_divider_stroke_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_bullet_group_title_divider_stroke_Color = {
  "name": "--pf-chart-bullet--group-title--divider--stroke--Color",
  "value": "#f0f0f0",
  "var": "var(--pf-chart-bullet--group-title--divider--stroke--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_bullet_group_title_divider_stroke_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_group_title_divider_stroke_Width.js":
/*!*********************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_group_title_divider_stroke_Width.js ***!
  \*********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_bullet_group_title_divider_stroke_Width": () => (/* binding */ chart_bullet_group_title_divider_stroke_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_bullet_group_title_divider_stroke_Width = {
  "name": "--pf-chart-bullet--group-title--divider--stroke--Width",
  "value": 2,
  "var": "var(--pf-chart-bullet--group-title--divider--stroke--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_bullet_group_title_divider_stroke_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_label_subtitle_Fill.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_label_subtitle_Fill.js ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_bullet_label_subtitle_Fill": () => (/* binding */ chart_bullet_label_subtitle_Fill),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_bullet_label_subtitle_Fill = {
  "name": "--pf-chart-bullet--label--subtitle--Fill",
  "value": "#b8bbbe",
  "var": "var(--pf-chart-bullet--label--subtitle--Fill)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_bullet_label_subtitle_Fill);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_primary_measure_dot_size.js":
/*!*************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_primary_measure_dot_size.js ***!
  \*************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_bullet_primary_measure_dot_size": () => (/* binding */ chart_bullet_primary_measure_dot_size),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_bullet_primary_measure_dot_size = {
  "name": "--pf-chart-bullet--primary-measure--dot--size",
  "value": 6,
  "var": "var(--pf-chart-bullet--primary-measure--dot--size)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_bullet_primary_measure_dot_size);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_primary_measure_segmented_Width.js":
/*!********************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_primary_measure_segmented_Width.js ***!
  \********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_bullet_primary_measure_segmented_Width": () => (/* binding */ chart_bullet_primary_measure_segmented_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_bullet_primary_measure_segmented_Width = {
  "name": "--pf-chart-bullet--primary-measure--segmented--Width",
  "value": 9,
  "var": "var(--pf-chart-bullet--primary-measure--segmented--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_bullet_primary_measure_segmented_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_qualitative_range_Width.js":
/*!************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_bullet_qualitative_range_Width.js ***!
  \************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_bullet_qualitative_range_Width": () => (/* binding */ chart_bullet_qualitative_range_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_bullet_qualitative_range_Width = {
  "name": "--pf-chart-bullet--qualitative-range--Width",
  "value": 30,
  "var": "var(--pf-chart-bullet--qualitative-range--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_bullet_qualitative_range_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_candelstick_candle_negative_Color.js":
/*!***************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_candelstick_candle_negative_Color.js ***!
  \***************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_candelstick_candle_negative_Color": () => (/* binding */ chart_candelstick_candle_negative_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_candelstick_candle_negative_Color = {
  "name": "--pf-chart-candelstick--candle--negative--Color",
  "value": "#151515",
  "var": "var(--pf-chart-candelstick--candle--negative--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_candelstick_candle_negative_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_candelstick_candle_positive_Color.js":
/*!***************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_candelstick_candle_positive_Color.js ***!
  \***************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_candelstick_candle_positive_Color": () => (/* binding */ chart_candelstick_candle_positive_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_candelstick_candle_positive_Color = {
  "name": "--pf-chart-candelstick--candle--positive--Color",
  "value": "#fff",
  "var": "var(--pf-chart-candelstick--candle--positive--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_candelstick_candle_positive_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_candelstick_data_stroke_Color.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_candelstick_data_stroke_Color.js ***!
  \***********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_candelstick_data_stroke_Color": () => (/* binding */ chart_candelstick_data_stroke_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_candelstick_data_stroke_Color = {
  "name": "--pf-chart-candelstick--data--stroke--Color",
  "value": "#151515",
  "var": "var(--pf-chart-candelstick--data--stroke--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_candelstick_data_stroke_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_candelstick_data_stroke_Width.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_candelstick_data_stroke_Width.js ***!
  \***********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_candelstick_data_stroke_Width": () => (/* binding */ chart_candelstick_data_stroke_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_candelstick_data_stroke_Width = {
  "name": "--pf-chart-candelstick--data--stroke--Width",
  "value": 1,
  "var": "var(--pf-chart-candelstick--data--stroke--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_candelstick_data_stroke_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_100.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_100.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_black_100": () => (/* binding */ chart_color_black_100),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_black_100 = {
  "name": "--pf-chart-color-black-100",
  "value": "#f0f0f0",
  "var": "var(--pf-chart-color-black-100)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_black_100);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_200.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_200.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_black_200": () => (/* binding */ chart_color_black_200),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_black_200 = {
  "name": "--pf-chart-color-black-200",
  "value": "#d2d2d2",
  "var": "var(--pf-chart-color-black-200)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_black_200);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_300.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_300.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_black_300": () => (/* binding */ chart_color_black_300),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_black_300 = {
  "name": "--pf-chart-color-black-300",
  "value": "#b8bbbe",
  "var": "var(--pf-chart-color-black-300)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_black_300);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_400.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_400.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_black_400": () => (/* binding */ chart_color_black_400),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_black_400 = {
  "name": "--pf-chart-color-black-400",
  "value": "#8a8d90",
  "var": "var(--pf-chart-color-black-400)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_black_400);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_500.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_black_500.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_black_500": () => (/* binding */ chart_color_black_500),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_black_500 = {
  "name": "--pf-chart-color-black-500",
  "value": "#6a6e73",
  "var": "var(--pf-chart-color-black-500)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_black_500);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_100.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_100.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_blue_100": () => (/* binding */ chart_color_blue_100),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_blue_100 = {
  "name": "--pf-chart-color-blue-100",
  "value": "#8bc1f7",
  "var": "var(--pf-chart-color-blue-100)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_blue_100);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_200.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_200.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_blue_200": () => (/* binding */ chart_color_blue_200),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_blue_200 = {
  "name": "--pf-chart-color-blue-200",
  "value": "#519de9",
  "var": "var(--pf-chart-color-blue-200)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_blue_200);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_300.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_300.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_blue_300": () => (/* binding */ chart_color_blue_300),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_blue_300 = {
  "name": "--pf-chart-color-blue-300",
  "value": "#06c",
  "var": "var(--pf-chart-color-blue-300)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_blue_300);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_400.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_400.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_blue_400": () => (/* binding */ chart_color_blue_400),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_blue_400 = {
  "name": "--pf-chart-color-blue-400",
  "value": "#004b95",
  "var": "var(--pf-chart-color-blue-400)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_blue_400);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_500.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_blue_500.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_blue_500": () => (/* binding */ chart_color_blue_500),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_blue_500 = {
  "name": "--pf-chart-color-blue-500",
  "value": "#002f5d",
  "var": "var(--pf-chart-color-blue-500)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_blue_500);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_100.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_100.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_cyan_100": () => (/* binding */ chart_color_cyan_100),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_cyan_100 = {
  "name": "--pf-chart-color-cyan-100",
  "value": "#a2d9d9",
  "var": "var(--pf-chart-color-cyan-100)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_cyan_100);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_200.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_200.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_cyan_200": () => (/* binding */ chart_color_cyan_200),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_cyan_200 = {
  "name": "--pf-chart-color-cyan-200",
  "value": "#73c5c5",
  "var": "var(--pf-chart-color-cyan-200)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_cyan_200);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_300.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_300.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_cyan_300": () => (/* binding */ chart_color_cyan_300),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_cyan_300 = {
  "name": "--pf-chart-color-cyan-300",
  "value": "#009596",
  "var": "var(--pf-chart-color-cyan-300)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_cyan_300);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_400.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_400.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_cyan_400": () => (/* binding */ chart_color_cyan_400),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_cyan_400 = {
  "name": "--pf-chart-color-cyan-400",
  "value": "#005f60",
  "var": "var(--pf-chart-color-cyan-400)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_cyan_400);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_500.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_cyan_500.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_cyan_500": () => (/* binding */ chart_color_cyan_500),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_cyan_500 = {
  "name": "--pf-chart-color-cyan-500",
  "value": "#003737",
  "var": "var(--pf-chart-color-cyan-500)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_cyan_500);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_100.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_100.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_gold_100": () => (/* binding */ chart_color_gold_100),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_gold_100 = {
  "name": "--pf-chart-color-gold-100",
  "value": "#f9e0a2",
  "var": "var(--pf-chart-color-gold-100)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_gold_100);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_200.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_200.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_gold_200": () => (/* binding */ chart_color_gold_200),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_gold_200 = {
  "name": "--pf-chart-color-gold-200",
  "value": "#f6d173",
  "var": "var(--pf-chart-color-gold-200)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_gold_200);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_300.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_300.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_gold_300": () => (/* binding */ chart_color_gold_300),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_gold_300 = {
  "name": "--pf-chart-color-gold-300",
  "value": "#f4c145",
  "var": "var(--pf-chart-color-gold-300)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_gold_300);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_400.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_400.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_gold_400": () => (/* binding */ chart_color_gold_400),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_gold_400 = {
  "name": "--pf-chart-color-gold-400",
  "value": "#f0ab00",
  "var": "var(--pf-chart-color-gold-400)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_gold_400);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_500.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_gold_500.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_gold_500": () => (/* binding */ chart_color_gold_500),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_gold_500 = {
  "name": "--pf-chart-color-gold-500",
  "value": "#c58c00",
  "var": "var(--pf-chart-color-gold-500)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_gold_500);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_100.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_100.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_green_100": () => (/* binding */ chart_color_green_100),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_green_100 = {
  "name": "--pf-chart-color-green-100",
  "value": "#bde2b9",
  "var": "var(--pf-chart-color-green-100)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_green_100);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_200.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_200.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_green_200": () => (/* binding */ chart_color_green_200),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_green_200 = {
  "name": "--pf-chart-color-green-200",
  "value": "#7cc674",
  "var": "var(--pf-chart-color-green-200)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_green_200);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_300.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_300.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_green_300": () => (/* binding */ chart_color_green_300),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_green_300 = {
  "name": "--pf-chart-color-green-300",
  "value": "#4cb140",
  "var": "var(--pf-chart-color-green-300)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_green_300);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_400.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_400.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_green_400": () => (/* binding */ chart_color_green_400),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_green_400 = {
  "name": "--pf-chart-color-green-400",
  "value": "#38812f",
  "var": "var(--pf-chart-color-green-400)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_green_400);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_500.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_green_500.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_green_500": () => (/* binding */ chart_color_green_500),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_green_500 = {
  "name": "--pf-chart-color-green-500",
  "value": "#23511e",
  "var": "var(--pf-chart-color-green-500)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_green_500);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_100.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_100.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_orange_100": () => (/* binding */ chart_color_orange_100),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_orange_100 = {
  "name": "--pf-chart-color-orange-100",
  "value": "#f4b678",
  "var": "var(--pf-chart-color-orange-100)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_orange_100);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_200.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_200.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_orange_200": () => (/* binding */ chart_color_orange_200),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_orange_200 = {
  "name": "--pf-chart-color-orange-200",
  "value": "#ef9234",
  "var": "var(--pf-chart-color-orange-200)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_orange_200);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_300.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_300.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_orange_300": () => (/* binding */ chart_color_orange_300),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_orange_300 = {
  "name": "--pf-chart-color-orange-300",
  "value": "#ec7a08",
  "var": "var(--pf-chart-color-orange-300)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_orange_300);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_400.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_400.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_orange_400": () => (/* binding */ chart_color_orange_400),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_orange_400 = {
  "name": "--pf-chart-color-orange-400",
  "value": "#c46100",
  "var": "var(--pf-chart-color-orange-400)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_orange_400);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_500.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_orange_500.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_orange_500": () => (/* binding */ chart_color_orange_500),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_orange_500 = {
  "name": "--pf-chart-color-orange-500",
  "value": "#8f4700",
  "var": "var(--pf-chart-color-orange-500)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_orange_500);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_100.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_100.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_purple_100": () => (/* binding */ chart_color_purple_100),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_purple_100 = {
  "name": "--pf-chart-color-purple-100",
  "value": "#b2b0ea",
  "var": "var(--pf-chart-color-purple-100)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_purple_100);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_200.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_200.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_purple_200": () => (/* binding */ chart_color_purple_200),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_purple_200 = {
  "name": "--pf-chart-color-purple-200",
  "value": "#8481dd",
  "var": "var(--pf-chart-color-purple-200)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_purple_200);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_300.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_300.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_purple_300": () => (/* binding */ chart_color_purple_300),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_purple_300 = {
  "name": "--pf-chart-color-purple-300",
  "value": "#5752d1",
  "var": "var(--pf-chart-color-purple-300)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_purple_300);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_400.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_400.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_purple_400": () => (/* binding */ chart_color_purple_400),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_purple_400 = {
  "name": "--pf-chart-color-purple-400",
  "value": "#3c3d99",
  "var": "var(--pf-chart-color-purple-400)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_purple_400);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_500.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_purple_500.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_purple_500": () => (/* binding */ chart_color_purple_500),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_purple_500 = {
  "name": "--pf-chart-color-purple-500",
  "value": "#2a265f",
  "var": "var(--pf-chart-color-purple-500)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_purple_500);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_red_100.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_red_100.js ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_red_100": () => (/* binding */ chart_color_red_100),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_red_100 = {
  "name": "--pf-chart-color-red-100",
  "value": "#c9190b",
  "var": "var(--pf-chart-color-red-100)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_red_100);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_red_200.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_red_200.js ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_red_200": () => (/* binding */ chart_color_red_200),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_red_200 = {
  "name": "--pf-chart-color-red-200",
  "value": "#a30000",
  "var": "var(--pf-chart-color-red-200)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_red_200);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_red_300.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_red_300.js ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_red_300": () => (/* binding */ chart_color_red_300),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_red_300 = {
  "name": "--pf-chart-color-red-300",
  "value": "#7d1007",
  "var": "var(--pf-chart-color-red-300)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_red_300);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_red_400.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_red_400.js ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_red_400": () => (/* binding */ chart_color_red_400),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_red_400 = {
  "name": "--pf-chart-color-red-400",
  "value": "#470000",
  "var": "var(--pf-chart-color-red-400)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_red_400);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_color_red_500.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_color_red_500.js ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_color_red_500": () => (/* binding */ chart_color_red_500),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_color_red_500 = {
  "name": "--pf-chart-color-red-500",
  "value": "#2c0000",
  "var": "var(--pf-chart-color-red-500)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_color_red_500);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_label_subtitle_Fill.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_label_subtitle_Fill.js ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_donut_label_subtitle_Fill": () => (/* binding */ chart_donut_label_subtitle_Fill),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_donut_label_subtitle_Fill = {
  "name": "--pf-chart-donut--label--subtitle--Fill",
  "value": "#b8bbbe",
  "var": "var(--pf-chart-donut--label--subtitle--Fill)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_donut_label_subtitle_Fill);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_label_subtitle_position.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_label_subtitle_position.js ***!
  \***********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_donut_label_subtitle_position": () => (/* binding */ chart_donut_label_subtitle_position),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_donut_label_subtitle_position = {
  "name": "--pf-chart-donut--label--subtitle--position",
  "value": "center",
  "var": "var(--pf-chart-donut--label--subtitle--position)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_donut_label_subtitle_position);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_pie_Height.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_pie_Height.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_donut_pie_Height": () => (/* binding */ chart_donut_pie_Height),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_donut_pie_Height = {
  "name": "--pf-chart-donut--pie--Height",
  "value": 230,
  "var": "var(--pf-chart-donut--pie--Height)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_donut_pie_Height);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_pie_Padding.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_pie_Padding.js ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_donut_pie_Padding": () => (/* binding */ chart_donut_pie_Padding),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_donut_pie_Padding = {
  "name": "--pf-chart-donut--pie--Padding",
  "value": 20,
  "var": "var(--pf-chart-donut--pie--Padding)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_donut_pie_Padding);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_pie_Width.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_pie_Width.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_donut_pie_Width": () => (/* binding */ chart_donut_pie_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_donut_pie_Width = {
  "name": "--pf-chart-donut--pie--Width",
  "value": 230,
  "var": "var(--pf-chart-donut--pie--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_donut_pie_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_pie_angle_Padding.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_pie_angle_Padding.js ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_donut_pie_angle_Padding": () => (/* binding */ chart_donut_pie_angle_Padding),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_donut_pie_angle_Padding = {
  "name": "--pf-chart-donut--pie--angle--Padding",
  "value": 1,
  "var": "var(--pf-chart-donut--pie--angle--Padding)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_donut_pie_angle_Padding);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_danger_Color.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_danger_Color.js ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_donut_threshold_danger_Color": () => (/* binding */ chart_donut_threshold_danger_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_donut_threshold_danger_Color = {
  "name": "--pf-chart-donut--threshold--danger--Color",
  "value": "#c9190b",
  "var": "var(--pf-chart-donut--threshold--danger--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_donut_threshold_danger_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_dynamic_pie_Height.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_dynamic_pie_Height.js ***!
  \****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_donut_threshold_dynamic_pie_Height": () => (/* binding */ chart_donut_threshold_dynamic_pie_Height),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_donut_threshold_dynamic_pie_Height = {
  "name": "--pf-chart-donut--threshold--dynamic--pie--Height",
  "value": 202,
  "var": "var(--pf-chart-donut--threshold--dynamic--pie--Height)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_donut_threshold_dynamic_pie_Height);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_dynamic_pie_Padding.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_dynamic_pie_Padding.js ***!
  \*****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_donut_threshold_dynamic_pie_Padding": () => (/* binding */ chart_donut_threshold_dynamic_pie_Padding),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_donut_threshold_dynamic_pie_Padding = {
  "name": "--pf-chart-donut--threshold--dynamic--pie--Padding",
  "value": 20,
  "var": "var(--pf-chart-donut--threshold--dynamic--pie--Padding)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_donut_threshold_dynamic_pie_Padding);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_dynamic_pie_Width.js":
/*!***************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_dynamic_pie_Width.js ***!
  \***************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_donut_threshold_dynamic_pie_Width": () => (/* binding */ chart_donut_threshold_dynamic_pie_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_donut_threshold_dynamic_pie_Width = {
  "name": "--pf-chart-donut--threshold--dynamic--pie--Width",
  "value": 202,
  "var": "var(--pf-chart-donut--threshold--dynamic--pie--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_donut_threshold_dynamic_pie_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_first_Color.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_first_Color.js ***!
  \*********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_donut_threshold_first_Color": () => (/* binding */ chart_donut_threshold_first_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_donut_threshold_first_Color = {
  "name": "--pf-chart-donut--threshold--first--Color",
  "value": "#f0f0f0",
  "var": "var(--pf-chart-donut--threshold--first--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_donut_threshold_first_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_second_Color.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_second_Color.js ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_donut_threshold_second_Color": () => (/* binding */ chart_donut_threshold_second_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_donut_threshold_second_Color = {
  "name": "--pf-chart-donut--threshold--second--Color",
  "value": "#d2d2d2",
  "var": "var(--pf-chart-donut--threshold--second--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_donut_threshold_second_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_static_pie_Height.js":
/*!***************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_static_pie_Height.js ***!
  \***************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_donut_threshold_static_pie_Height": () => (/* binding */ chart_donut_threshold_static_pie_Height),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_donut_threshold_static_pie_Height = {
  "name": "--pf-chart-donut--threshold--static--pie--Height",
  "value": 230,
  "var": "var(--pf-chart-donut--threshold--static--pie--Height)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_donut_threshold_static_pie_Height);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_static_pie_Padding.js":
/*!****************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_static_pie_Padding.js ***!
  \****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_donut_threshold_static_pie_Padding": () => (/* binding */ chart_donut_threshold_static_pie_Padding),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_donut_threshold_static_pie_Padding = {
  "name": "--pf-chart-donut--threshold--static--pie--Padding",
  "value": 20,
  "var": "var(--pf-chart-donut--threshold--static--pie--Padding)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_donut_threshold_static_pie_Padding);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_static_pie_Width.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_static_pie_Width.js ***!
  \**************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_donut_threshold_static_pie_Width": () => (/* binding */ chart_donut_threshold_static_pie_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_donut_threshold_static_pie_Width = {
  "name": "--pf-chart-donut--threshold--static--pie--Width",
  "value": 230,
  "var": "var(--pf-chart-donut--threshold--static--pie--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_donut_threshold_static_pie_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_static_pie_angle_Padding.js":
/*!**********************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_static_pie_angle_Padding.js ***!
  \**********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_donut_threshold_static_pie_angle_Padding": () => (/* binding */ chart_donut_threshold_static_pie_angle_Padding),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_donut_threshold_static_pie_angle_Padding = {
  "name": "--pf-chart-donut--threshold--static--pie--angle--Padding",
  "value": 1,
  "var": "var(--pf-chart-donut--threshold--static--pie--angle--Padding)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_donut_threshold_static_pie_angle_Padding);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_third_Color.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_third_Color.js ***!
  \*********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_donut_threshold_third_Color": () => (/* binding */ chart_donut_threshold_third_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_donut_threshold_third_Color = {
  "name": "--pf-chart-donut--threshold--third--Color",
  "value": "#b8bbbe",
  "var": "var(--pf-chart-donut--threshold--third--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_donut_threshold_third_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_warning_Color.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_threshold_warning_Color.js ***!
  \***********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_donut_threshold_warning_Color": () => (/* binding */ chart_donut_threshold_warning_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_donut_threshold_warning_Color = {
  "name": "--pf-chart-donut--threshold--warning--Color",
  "value": "#f0ab00",
  "var": "var(--pf-chart-donut--threshold--warning--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_donut_threshold_warning_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_utilization_dynamic_pie_Height.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_utilization_dynamic_pie_Height.js ***!
  \******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_donut_utilization_dynamic_pie_Height": () => (/* binding */ chart_donut_utilization_dynamic_pie_Height),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_donut_utilization_dynamic_pie_Height = {
  "name": "--pf-chart-donut--utilization--dynamic--pie--Height",
  "value": 230,
  "var": "var(--pf-chart-donut--utilization--dynamic--pie--Height)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_donut_utilization_dynamic_pie_Height);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_utilization_dynamic_pie_Padding.js":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_utilization_dynamic_pie_Padding.js ***!
  \*******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_donut_utilization_dynamic_pie_Padding": () => (/* binding */ chart_donut_utilization_dynamic_pie_Padding),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_donut_utilization_dynamic_pie_Padding = {
  "name": "--pf-chart-donut--utilization--dynamic--pie--Padding",
  "value": 20,
  "var": "var(--pf-chart-donut--utilization--dynamic--pie--Padding)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_donut_utilization_dynamic_pie_Padding);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_utilization_dynamic_pie_Width.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_utilization_dynamic_pie_Width.js ***!
  \*****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_donut_utilization_dynamic_pie_Width": () => (/* binding */ chart_donut_utilization_dynamic_pie_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_donut_utilization_dynamic_pie_Width = {
  "name": "--pf-chart-donut--utilization--dynamic--pie--Width",
  "value": 230,
  "var": "var(--pf-chart-donut--utilization--dynamic--pie--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_donut_utilization_dynamic_pie_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_utilization_dynamic_pie_angle_Padding.js":
/*!*************************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_utilization_dynamic_pie_angle_Padding.js ***!
  \*************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_donut_utilization_dynamic_pie_angle_Padding": () => (/* binding */ chart_donut_utilization_dynamic_pie_angle_Padding),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_donut_utilization_dynamic_pie_angle_Padding = {
  "name": "--pf-chart-donut--utilization--dynamic--pie--angle--Padding",
  "value": 1,
  "var": "var(--pf-chart-donut--utilization--dynamic--pie--angle--Padding)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_donut_utilization_dynamic_pie_angle_Padding);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_utilization_static_pie_Padding.js":
/*!******************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_donut_utilization_static_pie_Padding.js ***!
  \******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_donut_utilization_static_pie_Padding": () => (/* binding */ chart_donut_utilization_static_pie_Padding),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_donut_utilization_static_pie_Padding = {
  "name": "--pf-chart-donut--utilization--static--pie--Padding",
  "value": 20,
  "var": "var(--pf-chart-donut--utilization--static--pie--Padding)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_donut_utilization_static_pie_Padding);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_errorbar_BorderWidth.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_errorbar_BorderWidth.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_errorbar_BorderWidth": () => (/* binding */ chart_errorbar_BorderWidth),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_errorbar_BorderWidth = {
  "name": "--pf-chart-errorbar--BorderWidth",
  "value": 8,
  "var": "var(--pf-chart-errorbar--BorderWidth)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_errorbar_BorderWidth);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_errorbar_data_Fill.js":
/*!************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_errorbar_data_Fill.js ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_errorbar_data_Fill": () => (/* binding */ chart_errorbar_data_Fill),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_errorbar_data_Fill = {
  "name": "--pf-chart-errorbar--data--Fill",
  "value": "transparent",
  "var": "var(--pf-chart-errorbar--data--Fill)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_errorbar_data_Fill);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_errorbar_data_Opacity.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_errorbar_data_Opacity.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_errorbar_data_Opacity": () => (/* binding */ chart_errorbar_data_Opacity),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_errorbar_data_Opacity = {
  "name": "--pf-chart-errorbar--data--Opacity",
  "value": 1,
  "var": "var(--pf-chart-errorbar--data--Opacity)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_errorbar_data_Opacity);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_errorbar_data_stroke_Color.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_errorbar_data_stroke_Color.js ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_errorbar_data_stroke_Color": () => (/* binding */ chart_errorbar_data_stroke_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_errorbar_data_stroke_Color = {
  "name": "--pf-chart-errorbar--data-stroke--Color",
  "value": "#151515",
  "var": "var(--pf-chart-errorbar--data-stroke--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_errorbar_data_stroke_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_errorbar_data_stroke_Width.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_errorbar_data_stroke_Width.js ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_errorbar_data_stroke_Width": () => (/* binding */ chart_errorbar_data_stroke_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_errorbar_data_stroke_Width = {
  "name": "--pf-chart-errorbar--data-stroke--Width",
  "value": 2,
  "var": "var(--pf-chart-errorbar--data-stroke--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_errorbar_data_stroke_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_FontFamily.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_global_FontFamily.js ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_global_FontFamily": () => (/* binding */ chart_global_FontFamily),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_global_FontFamily = {
  "name": "--pf-chart-global--FontFamily",
  "value": "\"RedHatText\", \"Overpass\", overpass, helvetica, arial, sans-serif",
  "var": "var(--pf-chart-global--FontFamily)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_global_FontFamily);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_FontSize_2xl.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_global_FontSize_2xl.js ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_global_FontSize_2xl": () => (/* binding */ chart_global_FontSize_2xl),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_global_FontSize_2xl = {
  "name": "--pf-chart-global--FontSize--2xl",
  "value": 24,
  "var": "var(--pf-chart-global--FontSize--2xl)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_global_FontSize_2xl);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_FontSize_lg.js":
/*!************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_global_FontSize_lg.js ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_global_FontSize_lg": () => (/* binding */ chart_global_FontSize_lg),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_global_FontSize_lg = {
  "name": "--pf-chart-global--FontSize--lg",
  "value": 18,
  "var": "var(--pf-chart-global--FontSize--lg)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_global_FontSize_lg);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_FontSize_sm.js":
/*!************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_global_FontSize_sm.js ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_global_FontSize_sm": () => (/* binding */ chart_global_FontSize_sm),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_global_FontSize_sm = {
  "name": "--pf-chart-global--FontSize--sm",
  "value": 14,
  "var": "var(--pf-chart-global--FontSize--sm)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_global_FontSize_sm);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_label_Margin.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_global_label_Margin.js ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_global_label_Margin": () => (/* binding */ chart_global_label_Margin),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_global_label_Margin = {
  "name": "--pf-chart-global--label--Margin",
  "value": 8,
  "var": "var(--pf-chart-global--label--Margin)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_global_label_Margin);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_label_Padding.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_global_label_Padding.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_global_label_Padding": () => (/* binding */ chart_global_label_Padding),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_global_label_Padding = {
  "name": "--pf-chart-global--label--Padding",
  "value": 10,
  "var": "var(--pf-chart-global--label--Padding)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_global_label_Padding);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_label_stroke.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_global_label_stroke.js ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_global_label_stroke": () => (/* binding */ chart_global_label_stroke),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_global_label_stroke = {
  "name": "--pf-chart-global--label--stroke",
  "value": "transparent",
  "var": "var(--pf-chart-global--label--stroke)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_global_label_stroke);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_label_text_anchor.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_global_label_text_anchor.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_global_label_text_anchor": () => (/* binding */ chart_global_label_text_anchor),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_global_label_text_anchor = {
  "name": "--pf-chart-global--label--text-anchor",
  "value": "middle",
  "var": "var(--pf-chart-global--label--text-anchor)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_global_label_text_anchor);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_layout_Height.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_global_layout_Height.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_global_layout_Height": () => (/* binding */ chart_global_layout_Height),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_global_layout_Height = {
  "name": "--pf-chart-global--layout--Height",
  "value": 300,
  "var": "var(--pf-chart-global--layout--Height)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_global_layout_Height);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_layout_Padding.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_global_layout_Padding.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_global_layout_Padding": () => (/* binding */ chart_global_layout_Padding),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_global_layout_Padding = {
  "name": "--pf-chart-global--layout--Padding",
  "value": 50,
  "var": "var(--pf-chart-global--layout--Padding)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_global_layout_Padding);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_layout_Width.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_global_layout_Width.js ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_global_layout_Width": () => (/* binding */ chart_global_layout_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_global_layout_Width = {
  "name": "--pf-chart-global--layout--Width",
  "value": 450,
  "var": "var(--pf-chart-global--layout--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_global_layout_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_letter_spacing.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_global_letter_spacing.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_global_letter_spacing": () => (/* binding */ chart_global_letter_spacing),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_global_letter_spacing = {
  "name": "--pf-chart-global--letter-spacing",
  "value": "normal",
  "var": "var(--pf-chart-global--letter-spacing)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_global_letter_spacing);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_stroke_line_cap.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_global_stroke_line_cap.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_global_stroke_line_cap": () => (/* binding */ chart_global_stroke_line_cap),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_global_stroke_line_cap = {
  "name": "--pf-chart-global--stroke-line-cap",
  "value": "round",
  "var": "var(--pf-chart-global--stroke-line-cap)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_global_stroke_line_cap);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_global_stroke_line_join.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_global_stroke_line_join.js ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_global_stroke_line_join": () => (/* binding */ chart_global_stroke_line_join),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_global_stroke_line_join = {
  "name": "--pf-chart-global--stroke-line-join",
  "value": "round",
  "var": "var(--pf-chart-global--stroke-line-join)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_global_stroke_line_join);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_legend_Margin.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_legend_Margin.js ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_legend_Margin": () => (/* binding */ chart_legend_Margin),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_legend_Margin = {
  "name": "--pf-chart-legend--Margin",
  "value": 16,
  "var": "var(--pf-chart-legend--Margin)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_legend_Margin);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_legend_data_type.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_legend_data_type.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_legend_data_type": () => (/* binding */ chart_legend_data_type),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_legend_data_type = {
  "name": "--pf-chart-legend--data--type",
  "value": "square",
  "var": "var(--pf-chart-legend--data--type)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_legend_data_type);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_legend_gutter_Width.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_legend_gutter_Width.js ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_legend_gutter_Width": () => (/* binding */ chart_legend_gutter_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_legend_gutter_Width = {
  "name": "--pf-chart-legend--gutter--Width",
  "value": 20,
  "var": "var(--pf-chart-legend--gutter--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_legend_gutter_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_legend_orientation.js":
/*!************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_legend_orientation.js ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_legend_orientation": () => (/* binding */ chart_legend_orientation),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_legend_orientation = {
  "name": "--pf-chart-legend--orientation",
  "value": "horizontal",
  "var": "var(--pf-chart-legend--orientation)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_legend_orientation);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_legend_position.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_legend_position.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_legend_position": () => (/* binding */ chart_legend_position),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_legend_position = {
  "name": "--pf-chart-legend--position",
  "value": "right",
  "var": "var(--pf-chart-legend--position)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_legend_position);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_legend_title_Padding.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_legend_title_Padding.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_legend_title_Padding": () => (/* binding */ chart_legend_title_Padding),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_legend_title_Padding = {
  "name": "--pf-chart-legend--title--Padding",
  "value": 2,
  "var": "var(--pf-chart-legend--title--Padding)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_legend_title_Padding);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_legend_title_orientation.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_legend_title_orientation.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_legend_title_orientation": () => (/* binding */ chart_legend_title_orientation),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_legend_title_orientation = {
  "name": "--pf-chart-legend--title--orientation",
  "value": "top",
  "var": "var(--pf-chart-legend--title--orientation)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_legend_title_orientation);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_line_data_Fill.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_line_data_Fill.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_line_data_Fill": () => (/* binding */ chart_line_data_Fill),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_line_data_Fill = {
  "name": "--pf-chart-line--data--Fill",
  "value": "transparent",
  "var": "var(--pf-chart-line--data--Fill)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_line_data_Fill);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_line_data_Opacity.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_line_data_Opacity.js ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_line_data_Opacity": () => (/* binding */ chart_line_data_Opacity),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_line_data_Opacity = {
  "name": "--pf-chart-line--data--Opacity",
  "value": 1,
  "var": "var(--pf-chart-line--data--Opacity)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_line_data_Opacity);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_line_data_stroke_Color.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_line_data_stroke_Color.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_line_data_stroke_Color": () => (/* binding */ chart_line_data_stroke_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_line_data_stroke_Color = {
  "name": "--pf-chart-line--data--stroke--Color",
  "value": "#151515",
  "var": "var(--pf-chart-line--data--stroke--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_line_data_stroke_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_line_data_stroke_Width.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_line_data_stroke_Width.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_line_data_stroke_Width": () => (/* binding */ chart_line_data_stroke_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_line_data_stroke_Width = {
  "name": "--pf-chart-line--data--stroke--Width",
  "value": 2,
  "var": "var(--pf-chart-line--data--stroke--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_line_data_stroke_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_pie_Height.js":
/*!****************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_pie_Height.js ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_pie_Height": () => (/* binding */ chart_pie_Height),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_pie_Height = {
  "name": "--pf-chart-pie--Height",
  "value": 230,
  "var": "var(--pf-chart-pie--Height)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_pie_Height);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_pie_Padding.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_pie_Padding.js ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_pie_Padding": () => (/* binding */ chart_pie_Padding),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_pie_Padding = {
  "name": "--pf-chart-pie--Padding",
  "value": 20,
  "var": "var(--pf-chart-pie--Padding)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_pie_Padding);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_pie_Width.js":
/*!***************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_pie_Width.js ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_pie_Width": () => (/* binding */ chart_pie_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_pie_Width = {
  "name": "--pf-chart-pie--Width",
  "value": 230,
  "var": "var(--pf-chart-pie--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_pie_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_pie_data_Padding.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_pie_data_Padding.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_pie_data_Padding": () => (/* binding */ chart_pie_data_Padding),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_pie_data_Padding = {
  "name": "--pf-chart-pie--data--Padding",
  "value": 8,
  "var": "var(--pf-chart-pie--data--Padding)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_pie_data_Padding);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_pie_data_stroke_Color.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_pie_data_stroke_Color.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_pie_data_stroke_Color": () => (/* binding */ chart_pie_data_stroke_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_pie_data_stroke_Color = {
  "name": "--pf-chart-pie--data--stroke--Color",
  "value": "transparent",
  "var": "var(--pf-chart-pie--data--stroke--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_pie_data_stroke_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_pie_data_stroke_Width.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_pie_data_stroke_Width.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_pie_data_stroke_Width": () => (/* binding */ chart_pie_data_stroke_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_pie_data_stroke_Width = {
  "name": "--pf-chart-pie--data--stroke--Width",
  "value": 1,
  "var": "var(--pf-chart-pie--data--stroke--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_pie_data_stroke_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_pie_labels_Padding.js":
/*!************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_pie_labels_Padding.js ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_pie_labels_Padding": () => (/* binding */ chart_pie_labels_Padding),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_pie_labels_Padding = {
  "name": "--pf-chart-pie--labels--Padding",
  "value": 8,
  "var": "var(--pf-chart-pie--labels--Padding)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_pie_labels_Padding);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_scatter_active_size.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_scatter_active_size.js ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_scatter_active_size": () => (/* binding */ chart_scatter_active_size),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_scatter_active_size = {
  "name": "--pf-chart-scatter--active--size",
  "value": 5,
  "var": "var(--pf-chart-scatter--active--size)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_scatter_active_size);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_scatter_data_Fill.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_scatter_data_Fill.js ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_scatter_data_Fill": () => (/* binding */ chart_scatter_data_Fill),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_scatter_data_Fill = {
  "name": "--pf-chart-scatter--data--Fill",
  "value": "#151515",
  "var": "var(--pf-chart-scatter--data--Fill)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_scatter_data_Fill);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_scatter_data_Opacity.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_scatter_data_Opacity.js ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_scatter_data_Opacity": () => (/* binding */ chart_scatter_data_Opacity),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_scatter_data_Opacity = {
  "name": "--pf-chart-scatter--data--Opacity",
  "value": 1,
  "var": "var(--pf-chart-scatter--data--Opacity)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_scatter_data_Opacity);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_scatter_data_stroke_Color.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_scatter_data_stroke_Color.js ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_scatter_data_stroke_Color": () => (/* binding */ chart_scatter_data_stroke_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_scatter_data_stroke_Color = {
  "name": "--pf-chart-scatter--data--stroke--Color",
  "value": "transparent",
  "var": "var(--pf-chart-scatter--data--stroke--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_scatter_data_stroke_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_scatter_data_stroke_Width.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_scatter_data_stroke_Width.js ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_scatter_data_stroke_Width": () => (/* binding */ chart_scatter_data_stroke_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_scatter_data_stroke_Width = {
  "name": "--pf-chart-scatter--data--stroke--Width",
  "value": 0,
  "var": "var(--pf-chart-scatter--data--stroke--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_scatter_data_stroke_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_scatter_size.js":
/*!******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_scatter_size.js ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_scatter_size": () => (/* binding */ chart_scatter_size),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_scatter_size = {
  "name": "--pf-chart-scatter--size",
  "value": 3,
  "var": "var(--pf-chart-scatter--size)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_scatter_size);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_stack_data_stroke_Width.js":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_stack_data_stroke_Width.js ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_stack_data_stroke_Width": () => (/* binding */ chart_stack_data_stroke_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_stack_data_stroke_Width = {
  "name": "--pf-chart-stack--data--stroke--Width",
  "value": 1,
  "var": "var(--pf-chart-stack--data--stroke--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_stack_data_stroke_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_threshold_stroke_Width.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_threshold_stroke_Width.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_threshold_stroke_Width": () => (/* binding */ chart_threshold_stroke_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_threshold_stroke_Width = {
  "name": "--pf-chart-threshold--stroke--Width",
  "value": 1.5,
  "var": "var(--pf-chart-threshold--stroke--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_threshold_stroke_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_threshold_stroke_dash_array.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_threshold_stroke_dash_array.js ***!
  \*********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_threshold_stroke_dash_array": () => (/* binding */ chart_threshold_stroke_dash_array),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_threshold_stroke_dash_array = {
  "name": "--pf-chart-threshold--stroke-dash-array",
  "value": "4,2",
  "var": "var(--pf-chart-threshold--stroke-dash-array)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_threshold_stroke_dash_array);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_Fill.js":
/*!******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_Fill.js ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_tooltip_Fill": () => (/* binding */ chart_tooltip_Fill),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_tooltip_Fill = {
  "name": "--pf-chart-tooltip--Fill",
  "value": "#f0f0f0",
  "var": "var(--pf-chart-tooltip--Fill)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_tooltip_Fill);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_Padding.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_Padding.js ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_tooltip_Padding": () => (/* binding */ chart_tooltip_Padding),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_tooltip_Padding = {
  "name": "--pf-chart-tooltip--Padding",
  "value": 8,
  "var": "var(--pf-chart-tooltip--Padding)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_tooltip_Padding);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_PointerEvents.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_PointerEvents.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_tooltip_PointerEvents": () => (/* binding */ chart_tooltip_PointerEvents),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_tooltip_PointerEvents = {
  "name": "--pf-chart-tooltip--PointerEvents",
  "value": "none",
  "var": "var(--pf-chart-tooltip--PointerEvents)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_tooltip_PointerEvents);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_corner_radius.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_corner_radius.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_tooltip_corner_radius": () => (/* binding */ chart_tooltip_corner_radius),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_tooltip_corner_radius = {
  "name": "--pf-chart-tooltip--corner-radius",
  "value": 0,
  "var": "var(--pf-chart-tooltip--corner-radius)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_tooltip_corner_radius);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_flyoutStyle_Fill.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_flyoutStyle_Fill.js ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_tooltip_flyoutStyle_Fill": () => (/* binding */ chart_tooltip_flyoutStyle_Fill),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_tooltip_flyoutStyle_Fill = {
  "name": "--pf-chart-tooltip--flyoutStyle--Fill",
  "value": "#151515",
  "var": "var(--pf-chart-tooltip--flyoutStyle--Fill)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_tooltip_flyoutStyle_Fill);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_flyoutStyle_PointerEvents.js":
/*!***************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_flyoutStyle_PointerEvents.js ***!
  \***************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_tooltip_flyoutStyle_PointerEvents": () => (/* binding */ chart_tooltip_flyoutStyle_PointerEvents),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_tooltip_flyoutStyle_PointerEvents = {
  "name": "--pf-chart-tooltip--flyoutStyle--PointerEvents",
  "value": "none",
  "var": "var(--pf-chart-tooltip--flyoutStyle--PointerEvents)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_tooltip_flyoutStyle_PointerEvents);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_flyoutStyle_corner_radius.js":
/*!***************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_flyoutStyle_corner_radius.js ***!
  \***************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_tooltip_flyoutStyle_corner_radius": () => (/* binding */ chart_tooltip_flyoutStyle_corner_radius),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_tooltip_flyoutStyle_corner_radius = {
  "name": "--pf-chart-tooltip--flyoutStyle--corner-radius",
  "value": 0,
  "var": "var(--pf-chart-tooltip--flyoutStyle--corner-radius)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_tooltip_flyoutStyle_corner_radius);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_flyoutStyle_stroke_Color.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_flyoutStyle_stroke_Color.js ***!
  \**************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_tooltip_flyoutStyle_stroke_Color": () => (/* binding */ chart_tooltip_flyoutStyle_stroke_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_tooltip_flyoutStyle_stroke_Color = {
  "name": "--pf-chart-tooltip--flyoutStyle--stroke--Color",
  "value": "#151515",
  "var": "var(--pf-chart-tooltip--flyoutStyle--stroke--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_tooltip_flyoutStyle_stroke_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_flyoutStyle_stroke_Width.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_flyoutStyle_stroke_Width.js ***!
  \**************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_tooltip_flyoutStyle_stroke_Width": () => (/* binding */ chart_tooltip_flyoutStyle_stroke_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_tooltip_flyoutStyle_stroke_Width = {
  "name": "--pf-chart-tooltip--flyoutStyle--stroke--Width",
  "value": 0,
  "var": "var(--pf-chart-tooltip--flyoutStyle--stroke--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_tooltip_flyoutStyle_stroke_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_pointer_Width.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_pointer_Width.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_tooltip_pointer_Width": () => (/* binding */ chart_tooltip_pointer_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_tooltip_pointer_Width = {
  "name": "--pf-chart-tooltip--pointer--Width",
  "value": 20,
  "var": "var(--pf-chart-tooltip--pointer--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_tooltip_pointer_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_pointer_length.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_tooltip_pointer_length.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_tooltip_pointer_length": () => (/* binding */ chart_tooltip_pointer_length),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_tooltip_pointer_length = {
  "name": "--pf-chart-tooltip--pointer-length",
  "value": 10,
  "var": "var(--pf-chart-tooltip--pointer-length)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_tooltip_pointer_length);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_data_Fill.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_data_Fill.js ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_voronoi_data_Fill": () => (/* binding */ chart_voronoi_data_Fill),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_voronoi_data_Fill = {
  "name": "--pf-chart-voronoi--data--Fill",
  "value": "transparent",
  "var": "var(--pf-chart-voronoi--data--Fill)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_voronoi_data_Fill);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_data_stroke_Color.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_data_stroke_Color.js ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_voronoi_data_stroke_Color": () => (/* binding */ chart_voronoi_data_stroke_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_voronoi_data_stroke_Color = {
  "name": "--pf-chart-voronoi--data--stroke--Color",
  "value": "transparent",
  "var": "var(--pf-chart-voronoi--data--stroke--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_voronoi_data_stroke_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_data_stroke_Width.js":
/*!*******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_data_stroke_Width.js ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_voronoi_data_stroke_Width": () => (/* binding */ chart_voronoi_data_stroke_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_voronoi_data_stroke_Width = {
  "name": "--pf-chart-voronoi--data--stroke--Width",
  "value": 0,
  "var": "var(--pf-chart-voronoi--data--stroke--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_voronoi_data_stroke_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_flyout_PointerEvents.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_flyout_PointerEvents.js ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_voronoi_flyout_PointerEvents": () => (/* binding */ chart_voronoi_flyout_PointerEvents),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_voronoi_flyout_PointerEvents = {
  "name": "--pf-chart-voronoi--flyout--PointerEvents",
  "value": "none",
  "var": "var(--pf-chart-voronoi--flyout--PointerEvents)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_voronoi_flyout_PointerEvents);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_flyout_stroke_Color.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_flyout_stroke_Color.js ***!
  \*********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_voronoi_flyout_stroke_Color": () => (/* binding */ chart_voronoi_flyout_stroke_Color),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_voronoi_flyout_stroke_Color = {
  "name": "--pf-chart-voronoi--flyout--stroke--Color",
  "value": "#151515",
  "var": "var(--pf-chart-voronoi--flyout--stroke--Color)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_voronoi_flyout_stroke_Color);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_flyout_stroke_Fill.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_flyout_stroke_Fill.js ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_voronoi_flyout_stroke_Fill": () => (/* binding */ chart_voronoi_flyout_stroke_Fill),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_voronoi_flyout_stroke_Fill = {
  "name": "--pf-chart-voronoi--flyout--stroke--Fill",
  "value": "#151515",
  "var": "var(--pf-chart-voronoi--flyout--stroke--Fill)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_voronoi_flyout_stroke_Fill);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_flyout_stroke_Width.js":
/*!*********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_flyout_stroke_Width.js ***!
  \*********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_voronoi_flyout_stroke_Width": () => (/* binding */ chart_voronoi_flyout_stroke_Width),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_voronoi_flyout_stroke_Width = {
  "name": "--pf-chart-voronoi--flyout--stroke--Width",
  "value": 1,
  "var": "var(--pf-chart-voronoi--flyout--stroke--Width)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_voronoi_flyout_stroke_Width);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_labels_Fill.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_labels_Fill.js ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_voronoi_labels_Fill": () => (/* binding */ chart_voronoi_labels_Fill),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_voronoi_labels_Fill = {
  "name": "--pf-chart-voronoi--labels--Fill",
  "value": "#f0f0f0",
  "var": "var(--pf-chart-voronoi--labels--Fill)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_voronoi_labels_Fill);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_labels_Padding.js":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_labels_Padding.js ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_voronoi_labels_Padding": () => (/* binding */ chart_voronoi_labels_Padding),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_voronoi_labels_Padding = {
  "name": "--pf-chart-voronoi--labels--Padding",
  "value": 8,
  "var": "var(--pf-chart-voronoi--labels--Padding)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_voronoi_labels_Padding);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_labels_PointerEvents.js":
/*!**********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/chart_voronoi_labels_PointerEvents.js ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "chart_voronoi_labels_PointerEvents": () => (/* binding */ chart_voronoi_labels_PointerEvents),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const chart_voronoi_labels_PointerEvents = {
  "name": "--pf-chart-voronoi--labels--PointerEvents",
  "value": "none",
  "var": "var(--pf-chart-voronoi--labels--PointerEvents)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (chart_voronoi_labels_PointerEvents);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/global_FontWeight_bold.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/global_FontWeight_bold.js ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "global_FontWeight_bold": () => (/* binding */ global_FontWeight_bold),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const global_FontWeight_bold = {
  "name": "--pf-global--FontWeight--bold",
  "value": "600",
  "var": "var(--pf-global--FontWeight--bold)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (global_FontWeight_bold);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/global_breakpoint_xl.js":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/global_breakpoint_xl.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "global_breakpoint_xl": () => (/* binding */ global_breakpoint_xl),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const global_breakpoint_xl = {
  "name": "--pf-global--breakpoint--xl",
  "value": "1200px",
  "var": "var(--pf-global--breakpoint--xl)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (global_breakpoint_xl);

/***/ }),

/***/ "./node_modules/@patternfly/react-tokens/dist/esm/l_grid_item_Order.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/@patternfly/react-tokens/dist/esm/l_grid_item_Order.js ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "l_grid_item_Order": () => (/* binding */ l_grid_item_Order),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
const l_grid_item_Order = {
  "name": "--pf-l-grid--item--Order",
  "value": "0",
  "var": "var(--pf-l-grid--item--Order)"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (l_grid_item_Order);

/***/ }),

/***/ "./node_modules/attr-accept/dist/index.js":
/*!************************************************!*\
  !*** ./node_modules/attr-accept/dist/index.js ***!
  \************************************************/
/***/ ((module) => {

module.exports=function(t){function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r={};return n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=13)}([function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n){var r=t.exports={version:"2.5.0"};"number"==typeof __e&&(__e=r)},function(t,n,r){t.exports=!r(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n,r){var e=r(32)("wks"),o=r(9),i=r(0).Symbol,u="function"==typeof i;(t.exports=function(t){return e[t]||(e[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=e},function(t,n,r){var e=r(0),o=r(2),i=r(8),u=r(22),c=r(10),f=function(t,n,r){var a,s,p,l,v=t&f.F,y=t&f.G,h=t&f.S,d=t&f.P,x=t&f.B,g=y?e:h?e[n]||(e[n]={}):(e[n]||{}).prototype,m=y?o:o[n]||(o[n]={}),b=m.prototype||(m.prototype={});y&&(r=n);for(a in r)s=!v&&g&&void 0!==g[a],p=(s?g:r)[a],l=x&&s?c(p,e):d&&"function"==typeof p?c(Function.call,p):p,g&&u(g,a,p,t&f.U),m[a]!=p&&i(m,a,l),d&&b[a]!=p&&(b[a]=p)};e.core=o,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},function(t,n,r){var e=r(16),o=r(21);t.exports=r(3)?function(t,n,r){return e.f(t,n,o(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+e).toString(36))}},function(t,n,r){var e=r(24);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,n,r){var e=r(28),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,n,r){"use strict";n.__esModule=!0,n.default=function(t,n){if(t&&n){var r=Array.isArray(n)?n:n.split(","),e=t.name||"",o=t.type||"",i=o.replace(/\/.*$/,"");return r.some(function(t){var n=t.trim();return"."===n.charAt(0)?e.toLowerCase().endsWith(n.toLowerCase()):n.endsWith("/*")?i===n.replace(/\/.*$/,""):o===n})}return!0},r(14),r(34)},function(t,n,r){r(15),t.exports=r(2).Array.some},function(t,n,r){"use strict";var e=r(7),o=r(25)(3);e(e.P+e.F*!r(33)([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}})},function(t,n,r){var e=r(17),o=r(18),i=r(20),u=Object.defineProperty;n.f=r(3)?Object.defineProperty:function(t,n,r){if(e(t),n=i(n,!0),e(r),o)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},function(t,n,r){var e=r(1);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},function(t,n,r){t.exports=!r(3)&&!r(4)(function(){return 7!=Object.defineProperty(r(19)("div"),"a",{get:function(){return 7}}).a})},function(t,n,r){var e=r(1),o=r(0).document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,r){var e=r(1);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,r){var e=r(0),o=r(8),i=r(23),u=r(9)("src"),c=Function.toString,f=(""+c).split("toString");r(2).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,r,c){var a="function"==typeof r;a&&(i(r,"name")||o(r,"name",n)),t[n]!==r&&(a&&(i(r,u)||o(r,u,t[n]?""+t[n]:f.join(String(n)))),t===e?t[n]=r:c?t[n]?t[n]=r:o(t,n,r):(delete t[n],o(t,n,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||c.call(this)})},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,r){var e=r(10),o=r(26),i=r(27),u=r(12),c=r(29);t.exports=function(t,n){var r=1==t,f=2==t,a=3==t,s=4==t,p=6==t,l=5==t||p,v=n||c;return function(n,c,y){for(var h,d,x=i(n),g=o(x),m=e(c,y,3),b=u(g.length),_=0,w=r?v(n,b):f?v(n,0):void 0;b>_;_++)if((l||_ in g)&&(h=g[_],d=m(h,_,x),t))if(r)w[_]=d;else if(d)switch(t){case 3:return!0;case 5:return h;case 6:return _;case 2:w.push(h)}else if(s)return!1;return p?-1:a||s?s:w}}},function(t,n,r){var e=r(5);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},function(t,n,r){var e=r(11);t.exports=function(t){return Object(e(t))}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){var e=r(30);t.exports=function(t,n){return new(e(t))(n)}},function(t,n,r){var e=r(1),o=r(31),i=r(6)("species");t.exports=function(t){var n;return o(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)||(n=void 0),e(n)&&null===(n=n[i])&&(n=void 0)),void 0===n?Array:n}},function(t,n,r){var e=r(5);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,n,r){var e=r(0),o=e["__core-js_shared__"]||(e["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n,r){"use strict";var e=r(4);t.exports=function(t,n){return!!t&&e(function(){n?t.call(null,function(){},1):t.call(null)})}},function(t,n,r){r(35),t.exports=r(2).String.endsWith},function(t,n,r){"use strict";var e=r(7),o=r(12),i=r(36),u="".endsWith;e(e.P+e.F*r(38)("endsWith"),"String",{endsWith:function(t){var n=i(this,t,"endsWith"),r=arguments.length>1?arguments[1]:void 0,e=o(n.length),c=void 0===r?e:Math.min(o(r),e),f=String(t);return u?u.call(n,f,c):n.slice(c-f.length,c)===f}})},function(t,n,r){var e=r(37),o=r(11);t.exports=function(t,n,r){if(e(n))throw TypeError("String#"+r+" doesn't accept regex!");return String(o(t))}},function(t,n,r){var e=r(1),o=r(5),i=r(6)("match");t.exports=function(t){var n;return e(t)&&(void 0!==(n=t[i])?!!n:"RegExp"==o(t))}},function(t,n,r){var e=r(6)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(r){try{return n[e]=!1,!"/./"[t](n)}catch(t){}}return!0}}]);

/***/ }),

/***/ "./src/LDAPEditor.jsx":
/*!****************************!*\
  !*** ./src/LDAPEditor.jsx ***!
  \****************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "LDAPEditor": () => (/* binding */ LDAPEditor)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/collapsible.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/angle-right-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/info-circle-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/exclamation-triangle-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/resources-empty-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/catalog-icon.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Breadcrumb/Breadcrumb.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Breadcrumb/BreadcrumbItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _lib_ldap_editor_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lib/ldap_editor/lib/utils.jsx */ "./src/lib/ldap_editor/lib/utils.jsx");
/* harmony import */ var _lib_ldap_editor_lib_rootSuffix_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lib/ldap_editor/lib/rootSuffix.jsx */ "./src/lib/ldap_editor/lib/rootSuffix.jsx");
/* harmony import */ var _lib_ldap_editor_lib_constants_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lib/ldap_editor/lib/constants.jsx */ "./src/lib/ldap_editor/lib/constants.jsx");
/* harmony import */ var _lib_ldap_editor_tableView_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lib/ldap_editor/tableView.jsx */ "./src/lib/ldap_editor/tableView.jsx");
/* harmony import */ var _lib_ldap_editor_treeView_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./lib/ldap_editor/treeView.jsx */ "./src/lib/ldap_editor/treeView.jsx");
/* harmony import */ var _lib_ldap_editor_search_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./lib/ldap_editor/search.jsx */ "./src/lib/ldap_editor/search.jsx");
/* harmony import */ var _lib_ldap_editor_wizards_genericWizard_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./lib/ldap_editor/wizards/genericWizard.jsx */ "./src/lib/ldap_editor/wizards/genericWizard.jsx");
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
/* harmony import */ var _fortawesome_fontawesome_svg_core_styles_css__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core/styles.css */ "./node_modules/@fortawesome/fontawesome-svg-core/styles.css");
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./lib/tools.jsx */ "./src/lib/tools.jsx");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

















class LDAPEditor extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "onNavItemClick", (id, active) => {
      if (id === 'home' || active) {
        // Nothing to do.
        return;
      }

      if (id === 'db-suffixes') {
        var navItems = this.state.navItems.slice(0, 2);
        this.setState({
          navItems,
          loading: true,
          baseDN: id
        });
        this.showSuffixes('Database Suffixes', null);
      } else {
        // Find the item position.
        var listOfItems = this.state.navItems;
        var position; // Skip the first two elements ( Home and Database Suffixes )
        // and the last one ( should be inactive ).

        for (position = 2; position < listOfItems.length - 1; position++) {
          if (listOfItems[position].id === id) {
            break;
          }
        }

        var _navItems = this.state.navItems.slice(0, position + 1);

        var len = _navItems.length;
        _navItems[len - 1].active = true;
        this.setState({
          navItems: _navItems,
          baseDN: id,
          searching: true
        });
        var params = {
          serverId: this.props.serverId,
          baseDn: id,
          addNotification: this.props.addNotification
        };
        (0,_lib_ldap_editor_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.getOneLevelEntries)(params, this.processDirectChildren);
      }
    });

    _defineProperty(this, "handleClickNumSubordinates", dn => {
      var listOfItems = this.state.navItems;
      var itemsLength = listOfItems.length;
      var totalParentLength = 0;
      var pos = 0;

      while (pos < itemsLength) {
        listOfItems[pos].active = false;

        if (pos > 1) {
          // The first two elements are not part of the DN.
          totalParentLength += listOfItems[pos].label.length + 1; // Count the separating comma as well.
        }

        pos++;
      } // Remove the parent DN in order to keep only the RDN.
      // TODO: This should be better handled by an LDAP specific function
      // to retrieve the RDN from a full DN!


      var newLabel = dn;

      if (itemsLength > 2) {
        // We're after the "Database Suffixes" link.
        var dnLength = dn.length;
        newLabel = dn.slice(0, dnLength - totalParentLength);
      }

      var newNavItems = [...listOfItems, {
        id: dn,
        to: '#',
        label: newLabel,
        active: true
      }]; // TODO:  Also called from showSuffixes().
      // Use a new fucntion that will called from these two places
      // or use a state info.

      var tableTitle = this.state.columns[0].title; // TODO ==> To optimze!
      // if ((isRootSuff && (tableTitle !== 'Database Suffixes')) ||
      // (!isRootSuff && (tableTitle === 'Database Suffixes'))) {
      // const firstTitle = (label === 'Database Suffixes') ? 'Database Suffixes' : 'Entry DN'

      if (tableTitle === 'Database Suffixes') {
        this.setState(prevState => ({
          columns: [{
            title: 'Entry DN',
            cellFormatters: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_12__.expandable]
          }, ...prevState.columns.slice(1)]
        }));
      }

      this.setState({
        navItems: newNavItems,
        baseDN: dn,
        searching: true
      });
      var params = {
        serverId: this.props.serverId,
        baseDn: dn,
        addNotification: this.props.addNotification
      };
      (0,_lib_ldap_editor_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.getOneLevelEntries)(params, this.processDirectChildren);
    });

    _defineProperty(this, "processDirectChildren", (directChildren, params) => {
      this.setState({
        loading: true
      });
      var childrenRows = [];
      var rowNumber = 0;
      directChildren.map(aChild => {
        var info = JSON.parse(aChild);
        var numSubCellInfo = parseInt(info.numSubordinates) > 0 ? {
          title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("a", {
            href: "#",
            onClick: e => this.handleClickNumSubordinates(info.dn, false, e)
          }, info.numSubordinates, " ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_13__.AngleRightIcon, null))
        } : info.numSubordinates; // TODO Test for a JPEG photo!!!
        // if ( info.fullEntry.contains)

        var dn = info.dn;

        if (info.ldapsubentry) {
          dn = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
            className: "ds-info-icon"
          }, info.dn, " ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_14__.InfoCircleIcon, {
            title: "This is a hidden LDAP subentry",
            className: "ds-info-icon"
          }));
        }

        childrenRows.push({
          isOpen: false,
          cells: [{
            title: dn
          }, numSubCellInfo, info.modifyTimestamp],
          rawdn: info.dn
        }, {
          // customRowId: info.parentId + 1,
          parent: rowNumber,
          // info.parentId,
          cells: [{
            title: this.initialChildText
          }]
        }); // Increment by 2 the row number.

        rowNumber += 2;
      });
      this.setState({
        loading: false,
        searching: false,
        rows: childrenRows,
        // Each row is composed of a parent and its single child.
        pagedRows: childrenRows.slice(0, 2 * this.state.perPage),
        total: childrenRows.length / 2,
        page: 1
      });
    });

    _defineProperty(this, "updateTableRootSuffixes", entryDetails => {
      var info = JSON.parse(entryDetails);

      if (info.dn === null) {
        console.log('updateTableRootSuffixes: Got a NULL DN! Object "info" ===> ' + info);
        return;
      }

      var isEmptySuffix = info.errorCode === 32;
      var suffixCellInfo = !isEmptySuffix ? info.dn : {
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
          className: "ds-warning-icon"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_15__.ExclamationTriangleIcon, null), " ", info.dn)
      };
      var key = 0;
      var numSubCellInfo = parseInt(info.numSubordinates) > 0 ? {
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("a", {
          href: "#",
          key: 'link-' + info.dn,
          onClick: e => this.handleClickNumSubordinates(info.dn, true, e)
        }, info.numSubordinates, " ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_13__.AngleRightIcon, null))
      } : info.numSubordinates;
      var node_present = false;

      var _iterator = _createForOfIteratorHelper(this.rootSuffixesRows),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var node = _step.value;

          if (node.rawdn === info.dn) {
            node_present = true;
            break;
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      if (!node_present) {
        this.rootSuffixesRows = [...this.rootSuffixesRows, {
          isOpen: false,
          cells: [suffixCellInfo, numSubCellInfo, info.modifyTimestamp],
          rawdn: info.dn,
          customRowId: info.parentId,
          isEmptySuffix: isEmptySuffix
        }, {
          customRowId: info.parentId + 1,
          parent: info.parentId,
          cells: [{
            title: !isEmptySuffix ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, info.fullEntry.map(line => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
              key: key++
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("strong", null, " ", line.attribute), line.value))) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("strong", null, "\xA0", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("em", null, "This suffix is empty!\xA0\xA0\xA0")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("a", {
              key: 'top-entry-' + info.dn,
              href: "#",
              onClick: () => {
                this.onHandleEmptySuffixToggle(info.dn);
              }
            }, "Click here to create the top entry"))
          }]
        }];
      } // For the tree view:


      var numSubValue = parseInt(info.numSubordinates);
      var randomId = (0,_lib_ldap_editor_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.generateUniqueId)(); // const nodeChildren = [];

      var nodeChildren = [{
        name: 'Loading...',
        id: randomId,
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Spinner, {
          size: "sm"
        }),
        isFakeEntry: true
      }];
      var nodeDn = info.dn === '' ? 'Root DSE' : info.dn;
      var entryTreeData = {
        name: nodeDn,
        fullEntry: info.fullEntry,
        //
        children: numSubValue > 0 ? nodeChildren : null,
        modTime: info.modifyTimestamp,
        // The DN value can also be retrieved from info.fullEntry
        // ( but will require to retrieve the DN line and then split it. Taking a lazy approach here ;-))
        dn: info.dn,
        isEmptySuffix: isEmptySuffix,
        loadChildren: numSubValue > 0 // Used to insert child nodes when needed.

      };

      if (numSubValue > 0) {
        // Set the number of children.
        entryTreeData.customBadgeContent = numSubValue;
      }

      if (isEmptySuffix) {
        entryTreeData.icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_17__.ResourcesEmptyIcon, {
          color: "var(--pf-global--palette--orange-300)"
        });
      } else {
        entryTreeData.icon = null;
      }

      node_present = false;

      var _iterator2 = _createForOfIteratorHelper(this.rootSuffixesTreeData),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var _node = _step2.value;

          if (_node.name === entryTreeData.name) {
            _node.icon = entryTreeData.icon; // update icon

            node_present = true;
            break;
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      if (!node_present) {
        this.rootSuffixesTreeData = [...this.rootSuffixesTreeData, entryTreeData];
      }

      if (this.rootSuffixesRows.length === 2 * this.state.numberSuffixes) {
        // There are 2 rows per DN.
        // Sort the row data to make sure that are ordered ( a child belong to its parent ).
        var finalRowData = this.rootSuffixesRows.sort((e1, e2) => e1.customRowId - e2.customRowId);
        this.setState({
          loading: false,
          rows: finalRowData,
          // Each row is composed of a parent and its single child.
          pagedRows: finalRowData.slice(0, 2 * this.state.perPage),
          total: finalRowData.length / 2,
          page: 1
        });
        var myTreeRootSuffixes = [...this.rootSuffixesTreeData];
        var myLocationIdentifier = 0; // Set the node ID:

        var treeViewRootSuffixes = myTreeRootSuffixes.map(node => {
          node.id = myLocationIdentifier.toString();
          myLocationIdentifier++;
          return node;
        });
        var timeOfCompletion = Date.now();
        this.setState({
          treeViewRootSuffixes,
          timeOfCompletion
        });
      } // TODO: If there was an error, the loading state would continue for ever.
      // Use better logic or render an empty table after a while ( 15 seconds? )
      // with some meaningful error message.

    });

    _defineProperty(this, "processRootSuffixes", userSuffData => {
      var loading = this.state.loading;
      var isEmpty = false; // TODO: Use (!!userSuffData ...)

      if (userSuffData === undefined || userSuffData === null || userSuffData.length === 0) {
        // No suffixes, stop loading
        isEmpty = true;
        loading = false;
      } // Reset suffixes


      this.rootSuffixesRows = [];
      var suffixesToProcess = isEmpty ? [] : [...userSuffData];
      this.setState({
        numberSuffixes: suffixesToProcess.length,
        suffixList: [...userSuffData],
        loading
      }, () => {
        var parentId = 0;
        suffixesToProcess.map(suffixDN => {
          var params = {
            serverId: this.props.serverId,
            baseDn: suffixDN,
            parentId: parentId,
            addNotification: this.props.addNotification
          };
          (0,_lib_ldap_editor_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.getRootSuffixEntryDetails)(params, this.updateTableRootSuffixes);
          parentId += 2; // The next DN row will be two rows below.
        });
      });
    });

    _defineProperty(this, "showSuffixes", (label, event) => {
      (0,_lib_ldap_editor_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.getUserSuffixes)(this.props.serverId, this.processRootSuffixes);

      if (!!label === false) {
        return;
      }

      var isRootSuff = label === 'Database Suffixes';
      this.setState({
        onRootSuffixes: isRootSuff
      });
      var tableTitle = this.state.columns[0].title; // TODO ==> To optimize!

      if (isRootSuff && tableTitle !== 'Database Suffixes' || !isRootSuff && tableTitle === 'Database Suffixes') {
        var firstTitle = label === 'Database Suffixes' ? 'Database Suffixes' : 'Entry DN';
        this.setState(prevState => ({
          columns: [{
            title: firstTitle,
            cellFormatters: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_12__.expandable]
          }, ...prevState.columns.slice(1)]
        }), () => {
          this.setState({
            searching: false
          });
        });
      } else {
        this.setState({
          searching: false
        });
      }
    });

    _defineProperty(this, "actionResolver", (rowData, _ref) => {
      var rowIndex = _ref.rowIndex;

      // No action on the children.
      if (rowIndex % 2 === 1) {
        return null;
      } // If there is an entry suffix, allow only the creation of the top entry:


      if (rowData.isEmptySuffix) {
        return [{
          title: 'Create Top Entry...',
          onClick: () => {
            this.onHandleEmptySuffixToggle(rowData.rawdn);
          }
        }];
      }

      var keyIndex = this.state.keyIndex + 1;
      var updateActions = [{
        title: 'Search ...',
        onClick: () => {
          this.setState({
            activeTabKey: 2,
            searchBase: rowData.rawdn
          });
        }
      }, {
        isSeparator: true
      }, {
        title: 'Edit ...',
        onClick: () => {
          this.setState({
            wizardName: _lib_ldap_editor_lib_constants_jsx__WEBPACK_IMPORTED_MODULE_4__.ENTRY_MENU.edit,
            wizardEntryDn: rowData.rawdn,
            isWizardOpen: true,
            isTreeWizardOpen: false
          });
        }
      }, {
        title: 'New ...',
        onClick: () => {
          this.setState({
            wizardName: _lib_ldap_editor_lib_constants_jsx__WEBPACK_IMPORTED_MODULE_4__.ENTRY_MENU["new"],
            wizardEntryDn: rowData.rawdn,
            isWizardOpen: true,
            isTreeWizardOpen: false
          });
        }
      }, {
        title: 'Rename ...',
        isDisabled: rowData.customRowId === 0,
        // can not rename root suffix
        onClick: () => {
          this.setState({
            wizardName: _lib_ldap_editor_lib_constants_jsx__WEBPACK_IMPORTED_MODULE_4__.ENTRY_MENU.rename,
            wizardEntryDn: rowData.rawdn,
            isWizardOpen: true,
            isTreeWizardOpen: false
          });
        }
      }, {
        title: 'ACIs ...',
        onClick: () => {
          this.setState({
            wizardName: _lib_ldap_editor_lib_constants_jsx__WEBPACK_IMPORTED_MODULE_4__.ENTRY_MENU.acis,
            wizardEntryDn: rowData.rawdn,
            isWizardOpen: true,
            isTreeWizardOpen: false,
            keyIndex
          });
        }
      }, {
        title: 'Class of Service ...',
        onClick: () => {
          this.setState({
            wizardName: _lib_ldap_editor_lib_constants_jsx__WEBPACK_IMPORTED_MODULE_4__.ENTRY_MENU.cos,
            wizardEntryDn: rowData.rawdn,
            isWizardOpen: true,
            isTreeWizardOpen: false,
            keyIndex
          });
        }
      },
      /*
      {
          title: 'Roles ...',
          isDisabled: true,
          onClick: (event, rowId, rowData, extra) => {
              // TODO
              console.log(`clicked on Third action, on row ${rowId}`);
              console.log('extra = ' + extra);
          }
      },
      {
          title: 'Smart Referrals ...',
          isDisabled: true
      },
      */
      {
        isSeparator: true
      }, {
        title: 'Delete ...',
        onClick: () => {
          this.setState({
            wizardName: _lib_ldap_editor_lib_constants_jsx__WEBPACK_IMPORTED_MODULE_4__.ENTRY_MENU["delete"],
            wizardEntryDn: rowData.rawdn,
            isWizardOpen: true,
            isTreeWizardOpen: false
          });
        }
      }, {
        isSeparator: true
      }, {
        title: 'Refresh ...',
        onClick: () => {
          this.handleReload(true);
        }
      }];
      return [...updateActions];
    });

    this.rootSuffixesRows = [];
    this.rootSuffixesTreeData = [];
    this.initialChildText = 'Loading...';
    this.state = {
      activeTabKey: 0,
      keyIndex: 0,
      suffixList: [],
      changeLayout: false,
      openNewEntry: false,
      openDeleteEntry: false,
      baseDN: "",
      emptyDN: "",
      loading: true,
      searching: false,
      perPage: 50,
      page: 0,
      total: 0,
      onRootSuffixes: true,
      numberSuffixes: 0,
      entryMenuIsOpen: false,
      wizardOperationInfo: {
        operationType: '',
        resultCode: -1,
        time: 0
      },
      wizardName: '',
      isWizardOpen: false,
      isTreeWizardOpen: false,
      showEmptySuffixModal: false,
      wizardEntryDn: '',
      treeViewRootSuffixes: [],
      searchBase: "",
      isEntryTooLarge: false,
      refreshEntryTime: 0,
      navItems: [{
        id: 'home',
        label: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_18__.CatalogIcon, null),
        active: false
      }, {
        id: 'db-suffixes',
        to: '#',
        label: 'Database Suffixes',
        active: true
      }],
      columns: [{
        title: 'Database Suffixes',
        cellFormatters: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_12__.expandable]
      }, {
        title: 'Child Entries'
      }, {
        title: 'Last Modified'
      }],
      rows: [],
      pagedRows: [],
      refreshing: false,
      allObjectclasses: []
    }; // Toggle currently active tab

    this.handleNavSelect = (event, tabIndex) => {
      this.setState({
        activeTabKey: tabIndex
      });
    }; // Actions when user clicks on the Entry Details menu


    this.handleToggleEntryMenu = isOpen => {
      this.setState({
        entryMenuIsOpen: isOpen
      });
    };

    this.handleSelectEntryOptions = event => {
      // Tree view update
      var aTarget = event.target; // No need to use a wizard for the Refresh operation.

      if (aTarget.name === _lib_ldap_editor_lib_constants_jsx__WEBPACK_IMPORTED_MODULE_4__.ENTRY_MENU.refresh) {
        this.setState({
          entryMenuIsOpen: !this.state.entryMenuIsOpen,
          refreshEntryTime: Date.now()
        });
        return;
      }

      if (aTarget.name === _lib_ldap_editor_lib_constants_jsx__WEBPACK_IMPORTED_MODULE_4__.ENTRY_MENU.search) {
        this.setState({
          activeTabKey: 2,
          searchBase: aTarget.value
        });
        return;
      }

      var keyIndex = this.state.keyIndex + 1;
      this.setState({
        entryMenuIsOpen: false,
        wizardName: aTarget.name,
        isTreeWizardOpen: true,
        isWizardOpen: false,
        wizardEntryDn: aTarget.value,
        keyIndex
      });
    };

    this.toggleOpenTreeWizard = () => {
      this.setState({
        isTreeWizardOpen: !this.state.isTreeWizardOpen
      });
    };

    this.handleReloadNoop = () => {// Treeview does not require a reload
    };

    this.toggleOpenWizard = () => {
      this.setState({
        isWizardOpen: !this.state.isWizardOpen
      });
    }; // Set the operation type and the result code


    this.setWizardOperationInfo = opInfo => {
      // typeAndResult is an object with two fields (opType and result)
      // eg: {operationType: 'MODRDN', resultCode: 0, time: 1613090160492}
      var wizardOperationInfo = _objectSpread({}, opInfo);

      this.setState({
        wizardOperationInfo
      });
    }; // Show entry details table when user first clicks on the tree:


    this.setTreeFirstClicked = value => {
      this.setState({
        treeVisibleAndFirstClicked: value
      });
    };

    this.onHandleEmptySuffixToggle = dn => {
      var showEmptySuffixModal = this.state.showEmptySuffixModal;
      this.setState({
        showEmptySuffixModal: !showEmptySuffixModal,
        emptyDN: dn
      }, () => {
        this.handleReload(true);
      });
    };

    this.handleCollapse = this.handleCollapse.bind(this);
    this.onNavItemClick = this.onNavItemClick.bind(this);
    this.handleReload = this.handleReload.bind(this);
    this.getAttributes = this.getAttributes.bind(this);
  }

  handleReload(refresh) {
    var params = {
      serverId: this.props.serverId,
      baseDn: this.state.baseDN,
      addNotification: this.props.addNotification
    };
    this.setState({
      searching: true,
      loading: refresh
    });

    if (this.state.baseDN === "Database Suffixes" || this.state.baseDN === "db-suffixes" || this.state.baseDN === "") {
      this.rootSuffixesTreeData = [];
      this.showSuffixes('Database Suffixes', null);
    } else {
      var parentId = 0;
      this.state.suffixList.map(suffixDN => {
        var params = {
          serverId: this.props.serverId,
          baseDn: suffixDN,
          parentId: parentId,
          addNotification: this.props.addNotification
        };
        (0,_lib_ldap_editor_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.getRootSuffixEntryDetails)(params, this.updateTableRootSuffixes);
        parentId += 2; // The next DN row will be two rows below.
      });
      (0,_lib_ldap_editor_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.getOneLevelEntries)(params, this.processDirectChildren);
    }
  }

  getAttributes(callbackFunc) {
    var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_11__.log_cmd)("getAttributes", "Get attrs", attr_cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(attr_cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var attrContent = JSON.parse(content);
      var attrs = [];

      var _iterator3 = _createForOfIteratorHelper(attrContent.items),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var _content = _step3.value;
          attrs.push(_content.name[0]);
        }
      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }

      this.setState({
        attributes: attrs
      }, () => {
        callbackFunc('Database Suffixes', null);
      });
    });
  }

  componentDidMount() {
    (0,_lib_ldap_editor_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.getAllObjectClasses)(this.props.serverId, ocs => {
      this.setState({
        allObjectclasses: ocs
      }, () => {
        this.getAttributes(this.showSuffixes);
      });
    });
  }

  getPageData(page, perPage) {
    if (page === 1) {
      var pagedRows = this.state.rows.slice(0, 2 * perPage); // Each parent has a single child.

      this.setState({
        pagedRows,
        perPage,
        page,
        loading: false
      });
    } else {
      // Need the double since each parent has a single child.
      var start = 2 * (page - 1) * perPage;
      var end = 2 * page * perPage;

      var _pagedRows = this.state.rows.slice(start, end);

      for (var i = 0; i < _pagedRows.length - 1; i++) {
        if (i % 2 === 0) {
          _pagedRows[i + 1].parent = i;
        }
      }

      this.setState({
        pagedRows: _pagedRows,
        perPage,
        page,
        loading: false
      });
    }
  }

  handleCollapse(event, rowKey, isOpen, data) {
    var pagedRows = this.state.pagedRows; // TODO

    /**
    * Please do not use rowKey as row index for more complex tables.
    * Rather use some kind of identifier like ID passed with each row.
    */

    pagedRows[rowKey].isOpen = isOpen; // Update the row now so that it doesn't stay closed while the
    // LDAP search operations is going on.

    this.setState({
      pagedRows
    });
    var firstTime = pagedRows[rowKey + 1].cells[0].title === this.initialChildText;

    if (firstTime) {
      var baseDn = pagedRows[rowKey].rawdn; // The DN is the first element in the array.

      (0,_lib_ldap_editor_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.getBaseLevelEntryAttributes)(this.props.serverId, baseDn, entryArray => {
        pagedRows[rowKey + 1].cells = [{
          title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, entryArray.map(line => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
            key: line.attribute + line.value
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("strong", null, line.attribute), line.value.toLowerCase() === ": ldapsubentry" ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
            className: "ds-info-color"
          }, line.value) : line.attribute.toLowerCase() === "userpassword" ? ": ********" : line.value)))
        }]; // Update the row.

        this.setState({
          pagedRows
        });
      });
    }
  } // Update the table rows after getting details of the root suffixes.


  render() {
    var _this$state = this.state,
        page = _this$state.page,
        perPage = _this$state.perPage,
        total = _this$state.total,
        columns = _this$state.columns,
        pagedRows = _this$state.pagedRows,
        loading = _this$state.loading,
        navItems = _this$state.navItems,
        entryMenuIsOpen = _this$state.entryMenuIsOpen,
        wizardOperationInfo = _this$state.wizardOperationInfo,
        isWizardOpen = _this$state.isWizardOpen,
        isTreeWizardOpen = _this$state.isTreeWizardOpen,
        wizardName = _this$state.wizardName,
        wizardEntryDn = _this$state.wizardEntryDn,
        treeViewRootSuffixes = _this$state.treeViewRootSuffixes,
        refreshEntryTime = _this$state.refreshEntryTime;
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, isWizardOpen && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_ldap_editor_wizards_genericWizard_jsx__WEBPACK_IMPORTED_MODULE_8__["default"], {
      wizardName: wizardName,
      isWizardOpen: isWizardOpen,
      toggleOpenWizard: this.toggleOpenWizard,
      wizardEntryDn: wizardEntryDn,
      editorLdapServer: this.props.serverId,
      treeViewRootSuffixes: this.state.treeViewRootSuffixes,
      setWizardOperationInfo: this.setWizardOperationInfo,
      onReload: this.handleReload,
      onModrdnReload: this.handleReload,
      allObjectclasses: this.state.allObjectclasses,
      addNotification: this.props.addNotification,
      key: this.state.keyIndex + "table"
    }), isTreeWizardOpen && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_ldap_editor_wizards_genericWizard_jsx__WEBPACK_IMPORTED_MODULE_8__["default"], {
      wizardName: wizardName,
      isWizardOpen: isTreeWizardOpen,
      toggleOpenWizard: this.toggleOpenTreeWizard,
      wizardEntryDn: wizardEntryDn,
      editorLdapServer: this.props.serverId,
      treeViewRootSuffixes: this.state.treeViewRootSuffixes,
      setWizardOperationInfo: this.setWizardOperationInfo,
      onReload: this.handleReloadNoop,
      onModrdnReload: this.handleReload,
      allObjectclasses: this.state.allObjectclasses,
      addNotification: this.props.addNotification,
      key: this.state.keyIndex + "tree"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Tabs, {
      isBox: true,
      className: "ds-margin-top-lg ds-indent",
      activeKey: this.state.activeTabKey,
      onSelect: this.handleNavSelect
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Tab, {
      eventKey: 0,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.TabTitleText, null, "Tree View")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_ldap_editor_treeView_jsx__WEBPACK_IMPORTED_MODULE_6__["default"], {
      key: loading,
      onToggleEntryMenu: this.handleToggleEntryMenu,
      onSelectEntryOptions: this.handleSelectEntryOptions,
      entryMenuIsOpen: entryMenuIsOpen,
      treeViewRootSuffixes: treeViewRootSuffixes,
      loading: loading,
      timeOfCompletion: this.state.timeOfCompletion,
      setTreeFirstClicked: this.setTreeFirstClicked,
      editorLdapServer: this.props.serverId,
      wizardOperationInfo: wizardOperationInfo,
      refreshEntryTime: refreshEntryTime,
      onReload: this.handleReload,
      refreshing: this.state.refreshing,
      allObjectclasses: this.state.allObjectclasses,
      addNotification: this.props.addNotification
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Tab, {
      eventKey: 1,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.TabTitleText, null, "Table View")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: this.state.searching ? "ds-disabled" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Breadcrumb, {
      className: "ds-left-margin ds-margin-top-xlg"
    }, navItems.map(_ref2 => {
      var id = _ref2.id,
          to = _ref2.to,
          label = _ref2.label,
          active = _ref2.active;
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.BreadcrumbItem, {
        key: id + label,
        to: to,
        isActive: active,
        onClick: () => this.onNavItemClick(id, active)
      }, label);
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_9__.FontAwesomeIcon, {
      className: "ds-left-margin ds-refresh",
      icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_24__.faSyncAlt,
      title: "Refresh",
      onClick: this.handleReload
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: this.state.searching ? "ds-margin-top-xlg ds-center" : "ds-hidden"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.TextVariants.h3
    }, "Loading ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("i", null, this.state.searchBase), " ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Spinner, {
      className: "ds-margin-top-lg",
      size: "xl"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: this.state.searching ? "ds-hidden" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_ldap_editor_tableView_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], {
      key: loading,
      loading: loading // Pagination
      ,
      itemCount: total,
      page: page,
      perPage: perPage,
      onSetPage: value => this.getPageData(value, perPage),
      onPerPageSelect: value => this.getPageData(1, value) // Table
      ,
      editorTableRows: pagedRows,
      onCollapse: this.handleCollapse,
      columns: columns,
      actionResolver: this.actionResolver,
      addNotification: this.props.addNotification
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Tab, {
      eventKey: 2,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.TabTitleText, null, "Search")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_ldap_editor_search_jsx__WEBPACK_IMPORTED_MODULE_7__.SearchDatabase, {
      key: this.state.suffixList + this.state.searchBase,
      serverId: this.props.serverId,
      suffixList: this.state.suffixList,
      attributes: this.state.attributes,
      searchBase: this.state.searchBase,
      allObjectclasses: this.state.allObjectclasses,
      addNotification: this.props.addNotification
    }))), this.state.showEmptySuffixModal && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_ldap_editor_lib_rootSuffix_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
      showEmptySuffixModal: this.state.showEmptySuffixModal,
      handleEmptySuffixToggle: this.onHandleEmptySuffixToggle,
      suffixDn: this.state.emptyDN,
      editorLdapServer: this.props.serverId
    }));
  }

}

/***/ }),

/***/ "./src/database.jsx":
/*!**************************!*\
  !*** ./src/database.jsx ***!
  \**************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Database": () => (/* binding */ Database)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lib/tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _lib_database_chaining_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lib/database/chaining.jsx */ "./src/lib/database/chaining.jsx");
/* harmony import */ var _lib_database_databaseConfig_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lib/database/databaseConfig.jsx */ "./src/lib/database/databaseConfig.jsx");
/* harmony import */ var _lib_database_suffix_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lib/database/suffix.jsx */ "./src/lib/database/suffix.jsx");
/* harmony import */ var _lib_database_backups_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./lib/database/backups.jsx */ "./src/lib/database/backups.jsx");
/* harmony import */ var _lib_database_globalPwp_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./lib/database/globalPwp.jsx */ "./src/lib/database/globalPwp.jsx");
/* harmony import */ var _lib_database_localPwp_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./lib/database/localPwp.jsx */ "./src/lib/database/localPwp.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TreeView/TreeView.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormGroup.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormHelperText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/cog-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/external-link-alt-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/copy-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/key-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/home-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/users-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/catalog-icon.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_31__);
/* harmony import */ var _patternfly_react_icons_dist_js_icons_exclamation_circle_icon__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @patternfly/react-icons/dist/js/icons/exclamation-circle-icon */ "./node_modules/@patternfly/react-icons/dist/js/icons/exclamation-circle-icon.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
















var DB_CONFIG = "dbconfig";
var CHAINING_CONFIG = "chaining-config";
var BACKUP_CONFIG = "backups";
var PWP_CONFIG = "pwpolicy";
var LOCAL_PWP_CONFIG = "localpwpolicy";
class Database extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      firstLoad: true,
      errObj: {},
      nodes: [],
      node_name: "",
      node_text: "",
      dbtype: "",
      activeItems: [{
        name: "Global Database Configuration",
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_10__.CogIcon, null),
        id: "dbconfig"
      }],
      showSuffixModal: false,
      createSuffix: "",
      createBeName: "",
      createNotOK: true,
      createSuffixEntry: false,
      createSampleEntries: false,
      noSuffixInit: true,
      disableTree: false,
      createInitOption: "noInit",
      // DB config
      globalDBConfig: {},
      configUpdated: 0,
      // Chaining Config
      chainingConfig: {},
      chainingUpdated: 0,
      chainingActiveKey: 0,
      // Chaining Link
      chainingLoading: false,
      // Suffix
      suffixLoading: false,
      modalSpinning: false,
      attributes: [],
      // Loaded suffix configurations
      suffix: {},
      // Other
      vlvTableKey: 0,
      LDIFRows: [],
      BackupRows: [],
      backupRefreshing: false,
      suffixList: [],
      loaded: false
    }; // General

    this.handleTreeClick = this.handleTreeClick.bind(this);
    this.onHandleChange = this.onHandleChange.bind(this);
    this.onHandleSelectChange = this.onHandleSelectChange.bind(this);
    this.loadGlobalConfig = this.loadGlobalConfig.bind(this);
    this.loadLDIFs = this.loadLDIFs.bind(this);
    this.loadBackups = this.loadBackups.bind(this);
    this.loadSuffixList = this.loadSuffixList.bind(this); // Suffix

    this.handleShowSuffixModal = this.handleShowSuffixModal.bind(this);
    this.closeSuffixModal = this.closeSuffixModal.bind(this);
    this.createSuffix = this.createSuffix.bind(this);
    this.loadSuffix = this.loadSuffix.bind(this);
    this.loadIndexes = this.loadIndexes.bind(this);
    this.loadVLV = this.loadVLV.bind(this);
    this.loadAttrEncrypt = this.loadAttrEncrypt.bind(this);
    this.loadReferrals = this.loadReferrals.bind(this);
    this.getAutoTuning = this.getAutoTuning.bind(this);
    this.loadAttrs = this.loadAttrs.bind(this); // ChainingConfig

    this.loadChainingLink = this.loadChainingLink.bind(this);
    this.loadChainingConfig = this.loadChainingConfig.bind(this);
    this.loadAvailableControls = this.loadAvailableControls.bind(this);
    this.loadDefaultConfig = this.loadDefaultConfig.bind(this); // Other

    this.loadSuffixTree = this.loadSuffixTree.bind(this);
    this.enableTree = this.enableTree.bind(this);
  }

  componentDidUpdate(prevProps) {
    if (this.props.wasActiveList.includes(2)) {
      if (this.state.firstLoad) {
        if (!this.state.loaded) {
          this.loadGlobalConfig();
          this.loadChainingConfig();
          this.loadLDIFs();
          this.loadBackups();
          this.loadSuffixList();
        }

        this.loadSuffixTree(false);
      } else {
        if (this.props.serverId !== prevProps.serverId) {
          this.loadSuffixTree(false);
        }
      }
    }
  }

  loadSuffixList() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "suffix", "list", "--suffix"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadSuffixList", "Get a list of all the suffixes", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var suffixList = JSON.parse(content);
      this.setState(() => ({
        suffixList: suffixList.items
      }));
    });
  }

  loadGlobalConfig() {
    if (this.state.firstLoad) {
      this.setState({
        firstLoad: false
      });
    }

    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "config", "get"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadGlobalConfig", "Load the database global configuration", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var attrs = config.attrs;
      var db_cache_auto = false;
      var import_cache_auto = false;
      var dblocksMonitoring = false;
      var dbhome = "";

      if ('nsslapd-db-home-directory' in attrs) {
        dbhome = attrs['nsslapd-db-home-directory'][0];
      }

      if (attrs['nsslapd-cache-autosize'][0] !== "0") {
        db_cache_auto = true;
      }

      if (attrs['nsslapd-import-cache-autosize'][0] !== "0") {
        import_cache_auto = true;
      }

      if (attrs['nsslapd-db-locks-monitoring-enabled'][0] === "on") {
        dblocksMonitoring = true;
      }

      this.setState(() => ({
        globalDBConfig: {
          loading: false,
          db_cache_auto: db_cache_auto,
          import_cache_auto: import_cache_auto,
          looklimit: attrs['nsslapd-lookthroughlimit'][0],
          idscanlimit: attrs['nsslapd-idlistscanlimit'][0],
          pagelooklimit: attrs['nsslapd-pagedlookthroughlimit'][0],
          pagescanlimit: attrs['nsslapd-pagedidlistscanlimit'][0],
          rangelooklimit: attrs['nsslapd-rangelookthroughlimit'][0],
          autosize: attrs['nsslapd-cache-autosize'][0],
          autosizesplit: attrs['nsslapd-cache-autosize-split'][0],
          dbcachesize: attrs['nsslapd-dbcachesize'][0],
          txnlogdir: attrs['nsslapd-db-logdirectory'][0],
          dbhomedir: dbhome,
          dblocks: attrs['nsslapd-db-locks'][0],
          dblocksMonitoring: dblocksMonitoring,
          dblocksMonitoringThreshold: attrs['nsslapd-db-locks-monitoring-threshold'][0],
          dblocksMonitoringPause: attrs['nsslapd-db-locks-monitoring-pause'][0],
          chxpoint: attrs['nsslapd-db-checkpoint-interval'][0],
          compactinterval: attrs['nsslapd-db-compactdb-interval'][0],
          compacttime: attrs['nsslapd-db-compactdb-time'][0],
          importcacheauto: attrs['nsslapd-import-cache-autosize'][0],
          importcachesize: attrs['nsslapd-import-cachesize'][0]
        },
        configUpdated: 1
      }), this.setState({
        configUpdated: 0
      }));
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error loading database configuration - ".concat(errMsg.desc));
    });
  }

  loadAvailableControls() {
    // Get the available control oids from rootdse
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "config-get", "--avail-controls"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadAvailableControls", "Get available controls", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var availableOids = config.items.filter(el => !this.state.chainingConfig.oidList.includes(el));
      this.setState(prevState => ({
        chainingConfig: _objectSpread(_objectSpread({}, this.state.chainingConfig), {}, {
          availableOids: availableOids
        }),
        chainingUpdated: 1
      }), this.setState({
        chainingUpdated: 0
      }));
    });
  }

  loadDefaultConfig() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "config-get-def"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadDefaultConfig", "Load chaining default configuration", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var attr = config.attrs;
      var checkAci = false;
      var proxy = false;
      var refOnScope = false;
      var useStartTLS = false;

      if (attr.nschecklocalaci === "on") {
        checkAci = true;
      }

      if (attr.nsproxiedauthorization === "on") {
        proxy = true;
      }

      if (attr.nsreferralonscopedsearch === "on") {
        refOnScope = true;
      }

      if (attr.nsusestarttls === "on") {
        useStartTLS = true;
      }

      this.setState(() => ({
        chainingConfig: _objectSpread(_objectSpread({}, this.state.chainingConfig), {}, {
          defSearchCheck: attr.nsabandonedsearchcheckinterval,
          defBindConnLimit: attr.nsbindconnectionslimit,
          defBindTimeout: attr.nsbindtimeout,
          defBindRetryLimit: attr.nsbindretrylimit,
          defConcurLimit: attr.nsconcurrentbindlimit,
          defConcurOpLimit: attr.nsconcurrentoperationslimit,
          defConnLife: attr.nsconnectionlife,
          defHopLimit: attr.nshoplimit,
          defDelay: attr.nsmaxresponsedelay,
          defTestDelay: attr.nsmaxtestresponsedelay,
          defOpConnLimit: attr.nsoperationconnectionslimit,
          defSizeLimit: attr['nsslapd-sizelimit'],
          defTimeLimit: attr['nsslapd-timelimit'],
          defProxy: proxy,
          defRefOnScoped: refOnScope,
          defCheckAci: checkAci,
          defUseStartTLS: useStartTLS
        })
      }), this.loadAvailableControls());
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error loading default chaining configuration - ".concat(errMsg.desc));
      this.setState({
        loading: false
      });
    });
  }

  loadChainingConfig(tabIdx) {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "config-get"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadChainingConfig", "Load chaining OIDs and Controls", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var availableComps = config.attrs.nspossiblechainingcomponents;
      var compList = [];
      var oidList = [];
      var activeKey = 0;

      if ('nsactivechainingcomponents' in config.attrs) {
        availableComps = config.attrs.nspossiblechainingcomponents.filter(el => !config.attrs.nsactivechainingcomponents.includes(el));
        compList = config.attrs.nsactivechainingcomponents;
      }

      if ('nstransmittedcontrols' in config.attrs) {
        oidList = config.attrs.nstransmittedcontrols;
      }

      if (tabIdx) {
        activeKey = tabIdx;
      }

      this.setState(() => ({
        chainingConfig: _objectSpread(_objectSpread({}, this.state.chainingConfig), {}, {
          oidList: oidList,
          compList: compList,
          availableComps: availableComps
        }),
        chainingActiveKey: activeKey
      }), this.loadDefaultConfig());
    });
  }

  processTree(suffixData) {
    var _iterator = _createForOfIteratorHelper(suffixData),
        _step;

    try {
      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        var suffix = _step.value;

        if (suffix.type === "suffix") {
          suffix.icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_9__.FontAwesomeIcon, {
            size: "sm",
            icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_11__.faTree
          });
        } else if (suffix.type === "subsuffix") {
          suffix.icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_9__.FontAwesomeIcon, {
            size: "sm",
            icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_11__.faLeaf
          });
        } else {
          suffix.icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_9__.FontAwesomeIcon, {
            size: "sm",
            icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_11__.faLink
          });
        }

        if (suffix.children.length === 0) {
          delete suffix.children;
        } else {
          this.processTree(suffix.children);
        }
      }
    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }
  }

  loadSuffixTree(fullReset) {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "get-tree"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadSuffixTree", "Start building the suffix tree", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var suffixData = [];

      if (content !== "") {
        suffixData = JSON.parse(content);
        this.processTree(suffixData);
      }

      var treeData = [{
        name: "Global Database Configuration",
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_10__.CogIcon, null),
        id: "dbconfig"
      }, {
        name: "Chaining Configuration",
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_12__.ExternalLinkAltIcon, null),
        id: "chaining-config"
      }, {
        name: "Backups & LDIFs",
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_13__.CopyIcon, null),
        id: "backups"
      }, {
        name: "Password Policies",
        id: "pwp",
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_14__.KeyIcon, null),
        children: [{
          name: "Global Policy",
          icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_15__.HomeIcon, null),
          id: "pwpolicy"
        }, {
          name: "Local Policies",
          icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_16__.UsersIcon, null),
          id: "localpwpolicy"
        }],
        defaultExpanded: true
      }, {
        name: "Suffixes",
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_17__.CatalogIcon, null),
        id: "suffixes-tree",
        children: suffixData,
        defaultExpanded: true
      }];
      var current_node = this.state.node_name;

      if (fullReset) {
        current_node = DB_CONFIG;
      }

      this.setState(() => ({
        nodes: treeData,
        node_name: current_node
      }), this.loadAttrs);
    });
  }

  loadChainingLink(suffix) {
    this.setState({
      chainingLoading: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "link-get", suffix];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadChainingLink", "Load chaining link configuration", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var attrs = config.attrs;
      var bindmech = "SIMPLE";
      var usestarttls = false;
      var refOnScope = false;
      var proxiedAuth = false;
      var checkLocalAci = false; // Handler checkboxes, need to convert "on" to true

      if (config.attrs.nsreferralonscopedsearch[0] === "on") {
        refOnScope = true;
      }

      if (config.attrs.nsproxiedauthorization[0] === "on") {
        proxiedAuth = true;
      }

      if (config.attrs.nschecklocalaci[0] === "on") {
        checkLocalAci = true;
      }

      if (config.attrs.nsusestarttls[0] === "on") {
        usestarttls = true;
      }

      if (config.attrs.nsbindmechanism !== undefined) {
        bindmech = config.attrs.nsbindmechanism[0];
      }

      this.setState({
        [suffix]: {
          nsfarmserverurl: attrs.nsfarmserverurl[0],
          nsmultiplexorbinddn: attrs.nsmultiplexorbinddn[0],
          nsmultiplexorcredentials: attrs.nsmultiplexorcredentials[0],
          nsmultiplexorcredentials_confirm: attrs.nsmultiplexorcredentials[0],
          sizelimit: attrs['nsslapd-sizelimit'][0],
          timelimit: attrs['nsslapd-timelimit'][0],
          bindconnlimit: attrs.nsbindconnectionslimit[0],
          opconnlimit: attrs.nsoperationconnectionslimit[0],
          concurrbindlimit: attrs.nsconcurrentbindlimit[0],
          bindtimeout: attrs.nsbindtimeout[0],
          bindretrylimit: attrs.nsbindretrylimit[0],
          concurroplimit: attrs.nsconcurrentoperationslimit[0],
          connlifetime: attrs.nsconnectionlife[0],
          searchcheckinterval: attrs.nsabandonedsearchcheckinterval[0],
          hoplimit: attrs.nshoplimit[0],
          nsbindmechanism: bindmech,
          nsusestarttls: usestarttls,
          nsreferralonscopedsearch: refOnScope,
          nsproxiedauthorization: proxiedAuth,
          nschecklocalaci: checkLocalAci
        },
        chainingLoading: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error getting chaining link configuration - ".concat(errMsg.desc));
    });
  }

  handleTreeClick(evt, treeViewItem, parentItem) {
    if (this.state.activeItems.length === 0 || treeViewItem === this.state.activeItems[0]) {
      this.setState({
        activeItems: [treeViewItem, parentItem]
      });
      return;
    }

    if (treeViewItem.id === "dbconfig" || treeViewItem.id === "chaining-config" || treeViewItem.id === "pwpolicy" || treeViewItem.id === "localpwpolicy" || treeViewItem.id === "backups") {
      // Nothing special to do, these configurations have already been loaded
      this.setState(prevState => {
        return {
          node_name: treeViewItem.id,
          node_text: treeViewItem.name,
          dbtype: treeViewItem.type,
          bename: "",
          activeItems: [treeViewItem, parentItem]
        };
      });
    } else if (treeViewItem.id !== "pwp" && treeViewItem.id !== "suffixes-tree") {
      if (treeViewItem.id in this.state) {
        // This suffix is already cached, just use what we have...
        this.setState(prevState => {
          return {
            node_name: treeViewItem.id,
            node_text: treeViewItem.name,
            dbtype: treeViewItem.type,
            bename: treeViewItem.be,
            activeItems: [treeViewItem, parentItem]
          };
        });
      } else {
        this.setState({
          disableTree: true // Disable the tree to allow node to be fully loaded

        }); // Load this suffix whatever it is...

        if (treeViewItem.type === "dblink") {
          // Chained suffix
          this.loadChainingLink(treeViewItem.id);
        } else {
          // Suffix/subsuffix
          this.loadSuffix(treeViewItem.id);
        }

        this.setState(prevState => {
          return {
            node_name: treeViewItem.id,
            node_text: treeViewItem.name,
            dbtype: treeViewItem.type,
            bename: treeViewItem.be,
            activeItems: [treeViewItem, parentItem]
          };
        });
      }
    }
  }

  update_tree_nodes() {
    // Enable the tree, and update the titles
    this.setState({
      disableTree: false,
      loaded: true
    }, () => {
      var className = 'pf-c-tree-view__list-item';
      var element = document.getElementById("suffixes-tree");

      if (element) {
        var elements = element.getElementsByClassName(className);

        var _iterator2 = _createForOfIteratorHelper(elements),
            _step2;

        try {
          for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
            var el = _step2.value;
            el.setAttribute('title', el.innerText);
          }
        } catch (err) {
          _iterator2.e(err);
        } finally {
          _iterator2.f();
        }
      }
    });
  }

  handleShowSuffixModal() {
    this.setState({
      showSuffixModal: true,
      createSuffixEntry: false,
      createSampleEntries: false,
      noSuffixInit: true,
      errObj: {}
    });
  }

  onHandleSelectChange(value, event) {
    var noInit = false;
    var addSuffix = false;
    var addSample = false;

    if (value === "noInit") {
      noInit = true;
    } else if (value === "addSuffix") {
      addSuffix = true;
    } else {
      // addSample
      addSample = true;
    }

    this.setState({
      createInitOption: value,
      noSuffixInit: noInit,
      createSuffixEntry: addSuffix,
      createSampleEntries: addSample
    });
  }

  onHandleChange(str, e) {
    // Handle the Create Suffix modal changes
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var valueErr = false;
    var errObj = this.state.errObj;
    var createNotOK = false; // Check current/changed values

    if (value === "") {
      valueErr = true;
      createNotOK = true;
    } else if (e.target.id === "createSuffix" && !(0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.valid_dn)(str)) {
      valueErr = true;
      createNotOK = true;
    } // Check existing values


    if (e.target.id !== "createSuffix") {
      if (!(0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.valid_dn)(this.state.createSuffix)) {
        errObj.createSuffix = true;
        createNotOK = true;
      }
    }

    if (e.target.id !== "createBeName") {
      if (this.state.createBeName === "") {
        errObj.createBeName = true;
        createNotOK = true;
      }
    }

    errObj[e.target.id] = valueErr;
    this.setState({
      [e.target.id]: value,
      errObj: errObj,
      createNotOK: createNotOK
    });
  }

  closeSuffixModal() {
    this.setState({
      showSuffixModal: false,
      createNotOK: true
    });
  }

  createSuffix() {
    // validate
    var errors = false;
    var missingArgs = {
      createSuffix: false,
      createBeName: false
    };

    if (this.state.createSuffix === "") {
      this.props.addNotification("warning", "Missing the suffix DN");
      missingArgs.createSuffix = true;
      errors = true;
    }

    if (this.state.createBeName === "") {
      this.props.addNotification("warning", "Missing the suffix backend name");
      missingArgs.createBeName = true;
      errors = true;
    }

    if (errors) {
      this.setState({
        errObj: missingArgs
      });
      return;
    }

    this.setState({
      modalSpinning: true
    }); // Create a new suffix

    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "create", "--be-name", this.state.createBeName, '--suffix', this.state.createSuffix];

    if (this.state.createSampleEntries) {
      cmd.push('--create-entries');
    }

    if (this.state.createSuffixEntry) {
      cmd.push('--create-suffix');
    }

    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("createSuffix", "Create a new backend", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.closeSuffixModal();
      this.props.addNotification("success", "Successfully create new suffix"); // Refresh tree

      this.loadSuffixTree(false);
      this.loadSuffixList();
      this.setState({
        modalSpinning: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error creating suffix - ".concat(errMsg.desc));
      this.closeSuffixModal();
      this.setState({
        modalSpinning: false
      });
    });
  }

  getAutoTuning(suffix) {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "config", "get"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("getAutoTuning", "Check cache auto tuning", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);

      if ('nsslapd-cache-autosize' in config.attrs && config.attrs['nsslapd-cache-autosize'][0] !== "0") {
        this.setState({
          [suffix]: _objectSpread(_objectSpread({}, this.state[suffix]), {}, {
            autoTuning: true
          })
        });
      }
    });
  }

  loadVLV(suffix) {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "vlv-index", "list", suffix];
    var tableKey = this.state.vlvTableKey + 1;
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadVLV", "Load VLV indexes", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      this.setState({
        [suffix]: _objectSpread(_objectSpread({}, this.state[suffix]), {}, {
          vlvItems: config.items
        }),
        vlvTableKey: tableKey
      });
    });
  }

  loadAttrEncrypt(suffix) {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "attr-encrypt", "--list", "--just-names", suffix];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadAttrEncrypt", "Load encrypted attrs", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var rows = [];

      var _iterator3 = _createForOfIteratorHelper(config.items),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var row = _step3.value;
          rows.push(row);
        }
      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }

      this.setState({
        [suffix]: _objectSpread(_objectSpread({}, this.state[suffix]), {}, {
          encAttrsRows: rows
        })
      });
    });
  }

  loadIndexes(suffix) {
    // Load the suffix configurations.  Start with indexes which is the
    // most time consuming (and which controls the spinner), and spawn new
    // commands for the other areas.
    var index_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "index", "list", suffix];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadIndexes", "Load backend indexes", index_cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(index_cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      // Now do the Indexes
      var config = JSON.parse(content);
      var rows = [];
      var systemRows = [];

      var _iterator4 = _createForOfIteratorHelper(config.items),
          _step4;

      try {
        for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
          var item = _step4.value;
          var index = item.attrs;
          var types = [];
          var mrs = "";

          if (index.nsindextype.length > 1) {
            types = index.nsindextype.join(', ');
          } else {
            types = index.nsindextype[0];
          }

          if ('nsmatchingrule' in index) {
            if (index.nsmatchingrule.length > 1) {
              mrs = index.nsmatchingrule.join(', ');
            } else {
              mrs = index.nsmatchingrule[0];
            }
          }

          if (index.nssystemindex[0] === 'true') {
            systemRows.push([index.cn[0], types, mrs]);
          } else {
            rows.push([index.cn[0], types, mrs]);
          }
        }
      } catch (err) {
        _iterator4.e(err);
      } finally {
        _iterator4.f();
      }

      this.setState({
        [suffix]: _objectSpread(_objectSpread({}, this.state[suffix]), {}, {
          indexRows: rows,
          systemIndexRows: systemRows
        })
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error loading indexes for ".concat(suffix, " - ").concat(errMsg.desc));
    });
  }

  loadReferrals(suffix) {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "suffix", "get", suffix];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadReferrals", "get referrals", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var refs = [];

      if ('nsslapd-referral' in config.attrs) {
        refs = config.attrs['nsslapd-referral'];
      }

      this.setState({
        [suffix]: _objectSpread(_objectSpread({}, this.state[suffix]), {}, {
          refRows: refs
        })
      });
    });
  }

  loadSuffix(suffix) {
    // Load everything, we must nest cockpit promise so we can proper set
    // the loading is finished
    this.setState({
      activeKey: 1,
      suffixLoading: true
    }, this.loadAttrs());
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "suffix", "get", suffix];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadSuffix", "Load suffix config", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var refs = [];
      var readonly = false;
      var requireindex = false;

      if ('nsslapd-referral' in config.attrs) {
        refs = config.attrs['nsslapd-referral'];
      }

      if ('nsslapd-readonly' in config.attrs) {
        if (config.attrs['nsslapd-readonly'][0] === "on") {
          readonly = true;
        }
      }

      if ('nsslapd-require-index' in config.attrs) {
        if (config.attrs['nsslapd-require-index'][0] === "on") {
          requireindex = true;
        }
      }

      this.setState({
        [suffix]: {
          refRows: refs,
          cachememsize: config.attrs['nsslapd-cachememsize'][0],
          cachesize: config.attrs['nsslapd-cachesize'][0],
          dncachememsize: config.attrs['nsslapd-dncachememsize'][0],
          dbstate: config.attrs['nsslapd-state'][0],
          readOnly: readonly,
          requireIndex: requireindex
        }
      }, this.getAutoTuning(suffix)); // Now load VLV indexes

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "vlv-index", "list", suffix];
      (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadSuffix", "Load VLV indexes", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        var config = JSON.parse(content);
        this.setState({
          [suffix]: _objectSpread(_objectSpread({}, this.state[suffix]), {}, {
            vlvItems: config.items
          })
        });
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "attr-encrypt", "--list", "--just-names", suffix];
        (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadAttrEncrypt", "Load encrypted attrs", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(content => {
          var config = JSON.parse(content);
          var rows = [];

          var _iterator5 = _createForOfIteratorHelper(config.items),
              _step5;

          try {
            for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
              var row = _step5.value;
              rows.push(row);
            }
          } catch (err) {
            _iterator5.e(err);
          } finally {
            _iterator5.f();
          }

          this.setState({
            [suffix]: _objectSpread(_objectSpread({}, this.state[suffix]), {}, {
              encAttrsRows: rows
            })
          });
          var index_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "index", "list", suffix];
          (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadIndexes", "Load backend indexes", index_cmd);
          cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(index_cmd, {
            superuser: true,
            err: "message"
          }).done(content => {
            // Now do the Indexes
            var config = JSON.parse(content);
            var rows = [];
            var systemRows = [];

            var _iterator6 = _createForOfIteratorHelper(config.items),
                _step6;

            try {
              for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
                var item = _step6.value;
                var index = item.attrs;
                var types = [];
                var mrs = [];

                if (index.nsindextype.length > 1) {
                  types = index.nsindextype.join(', ');
                } else {
                  types = index.nsindextype[0];
                }

                if ('nsmatchingrule' in index) {
                  if (index.nsmatchingrule.length > 1) {
                    mrs = index.nsmatchingrule.join(', ');
                  } else {
                    mrs = index.nsmatchingrule[0];
                  }
                }

                if (index.nssystemindex[0] === 'true') {
                  systemRows.push([index.cn[0], types, mrs]);
                } else {
                  rows.push([index.cn[0], types, mrs]);
                }
              }
            } catch (err) {
              _iterator6.e(err);
            } finally {
              _iterator6.f();
            }

            this.setState({
              [suffix]: _objectSpread(_objectSpread({}, this.state[suffix]), {}, {
                indexRows: rows,
                systemIndexRows: systemRows
              }),
              suffixLoading: false
            });
          }).fail(err => {
            var errMsg = JSON.parse(err);
            this.props.addNotification("error", "Error loading indexes for ".concat(suffix, " - ").concat(errMsg.desc));
            this.setState({
              suffixLoading: false
            });
          });
        }).fail(err => {
          var errMsg = JSON.parse(err);
          this.props.addNotification("error", "Error attribute encryption for ".concat(suffix, " - ").concat(errMsg.desc));
          this.setState({
            suffixLoading: false
          });
        });
      }).fail(err => {
        var errMsg = JSON.parse(err);
        this.props.addNotification("error", "Error loading VLV indexes for ".concat(suffix, " - ").concat(errMsg.desc));
        this.setState({
          suffixLoading: false
        });
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error loading config for ".concat(suffix, " - ").concat(errMsg.desc));
      this.setState({
        suffixLoading: false
      });
    });
  }

  loadLDIFs() {
    var cmd = ["dsctl", "-j", this.props.serverId, "ldifs"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadLDIFs", "Load LDIF Files", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var rows = [];

      var _iterator7 = _createForOfIteratorHelper(config.items),
          _step7;

      try {
        for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
          var row = _step7.value;
          rows.push([row[0], row[1], row[2], row[3]]);
        }
      } catch (err) {
        _iterator7.e(err);
      } finally {
        _iterator7.f();
      }

      this.setState({
        LDIFRows: rows,
        backupRefreshing: false
      });
    });
  }

  loadBackups(refreshing) {
    if (refreshing) {
      this.setState({
        backupRefreshing: true
      });
    }

    var cmd = ["dsctl", "-j", this.props.serverId, "backups"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadBackupsDatabase", "Load Backups", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var rows = [];

      var _iterator8 = _createForOfIteratorHelper(config.items),
          _step8;

      try {
        for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
          var row = _step8.value;
          rows.push([row[0], row[1], row[2]]);
        }
      } catch (err) {
        _iterator8.e(err);
      } finally {
        _iterator8.f();
      }

      this.setState({
        BackupRows: rows
      }, this.loadLDIFs());
    });
  }

  loadAttrs() {
    // Now get the schema that various tabs use
    var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadAttrs", "Get attrs", attr_cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(attr_cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var attrContent = JSON.parse(content);
      var attrs = [];

      var _iterator9 = _createForOfIteratorHelper(attrContent.items),
          _step9;

      try {
        for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
          var _content = _step9.value;
          attrs.push(_content.name[0]);
        }
      } catch (err) {
        _iterator9.e(err);
      } finally {
        _iterator9.f();
      }

      this.setState({
        attributes: attrs,
        loaded: true
      }, this.update_tree_nodes);
    });
  }

  enableTree() {
    this.setState({
      disableTree: false
    });
  }

  render() {
    var db_element = "";
    var body = "";
    var disabled = "tree-view-container";

    if (this.state.disableTree) {
      disabled = "tree-view-container ds-disabled";
    }

    if (this.state.loaded) {
      if (this.state.node_name === DB_CONFIG || this.state.node_name === "") {
        db_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_database_databaseConfig_jsx__WEBPACK_IMPORTED_MODULE_4__.GlobalDatabaseConfig, {
          serverId: this.props.serverId,
          addNotification: this.props.addNotification,
          reload: this.loadGlobalConfig,
          data: this.state.globalDBConfig,
          enableTree: this.enableTree,
          key: this.state.configUpdated
        });
      } else if (this.state.node_name === CHAINING_CONFIG) {
        db_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_database_chaining_jsx__WEBPACK_IMPORTED_MODULE_3__.ChainingDatabaseConfig, {
          serverId: this.props.serverId,
          addNotification: this.props.addNotification,
          reload: this.loadChainingConfig,
          data: this.state.chainingConfig,
          enableTree: this.enableTree,
          activeKey: this.state.chainingActiveKey,
          key: this.state.chainingUpdated
        });
      } else if (this.state.node_name === PWP_CONFIG) {
        db_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_database_globalPwp_jsx__WEBPACK_IMPORTED_MODULE_7__.GlobalPwPolicy, {
          serverId: this.props.serverId,
          addNotification: this.props.addNotification,
          attrs: this.state.attributes,
          enableTree: this.enableTree
        });
      } else if (this.state.node_name === LOCAL_PWP_CONFIG) {
        db_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_database_localPwp_jsx__WEBPACK_IMPORTED_MODULE_8__.LocalPwPolicy, {
          serverId: this.props.serverId,
          addNotification: this.props.addNotification,
          attrs: this.state.attributes,
          enableTree: this.enableTree
        });
      } else if (this.state.node_name === BACKUP_CONFIG) {
        db_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_database_backups_jsx__WEBPACK_IMPORTED_MODULE_6__.Backups, {
          serverId: this.props.serverId,
          addNotification: this.props.addNotification,
          backups: this.state.BackupRows,
          suffixes: this.state.suffixList,
          ldifs: this.state.LDIFRows,
          enableTree: this.enableTree,
          reload: this.loadBackups,
          refreshing: this.state.backupRefreshing
        });
      } else if (this.state.node_name !== "") {
        // We have a suffix, or database link
        if (this.state.dbtype === "suffix" || this.state.dbtype === "subsuffix") {
          if (this.state.suffixLoading) {
            db_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
              className: "ds-margin-top-xlg ds-loading-spinner ds-center"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Text, {
              className: "ds-margin-top-xlg",
              component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.TextVariants.h2
            }, "Loading suffix configuration for ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.state.node_text, " ..."))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Spinner, {
              className: "ds-margin-top-lg",
              size: "xl"
            }));
          } else {
            db_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_database_suffix_jsx__WEBPACK_IMPORTED_MODULE_5__.Suffix, {
              serverId: this.props.serverId,
              suffix: this.state.node_text,
              bename: this.state.bename,
              loadSuffixTree: this.loadSuffixTree,
              reload: this.loadSuffix,
              reloadRefs: this.loadReferrals,
              reloadIndexes: this.loadIndexes,
              reloadVLV: this.loadVLV,
              vlvTableKey: this.state.vlvTableKey,
              reloadAttrEnc: this.loadAttrEncrypt,
              addNotification: this.props.addNotification,
              reloadLDIFs: this.loadLDIFs,
              LDIFRows: this.state.LDIFRows,
              dbtype: this.state.dbtype,
              data: this.state[this.state.node_text],
              attrs: this.state.attributes,
              enableTree: this.enableTree,
              key: this.state.node_text
            });
          }
        } else {
          // Chaining
          if (this.state.chainingLoading) {
            db_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
              className: "ds-margin-top ds-loading-spinner ds-center"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Text, {
              className: "ds-margin-top-xlg",
              component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.TextVariants.h2
            }, "Loading Chaining configuration for ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.state.node_text, " ..."))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Spinner, {
              className: "ds-margin-top-lg",
              size: "xl"
            }));
          } else {
            db_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_database_chaining_jsx__WEBPACK_IMPORTED_MODULE_3__.ChainingConfig, {
              serverId: this.props.serverId,
              suffix: this.state.node_text,
              bename: this.state.bename,
              loadSuffixTree: this.loadSuffixTree,
              addNotification: this.props.addNotification,
              data: this.state[this.state.node_text],
              enableTree: this.enableTree,
              reload: this.loadChainingLink
            });
          }
        }
      }

      body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-container"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-tree"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: disabled,
        id: "db-tree"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.TreeView, {
        data: this.state.nodes,
        activeItems: this.state.activeItems,
        onSelect: this.handleTreeClick
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Button, {
        className: "ds-left-margin-md",
        variant: "primary",
        onClick: this.handleShowSuffixModal
      }, "Create Suffix")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-tree-content"
      }, db_element));
    } else {
      body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Text, {
        className: "ds-margin-top-xlg",
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.TextVariants.h2
      }, "Loading Database Configuration ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Spinner, {
        className: "ds-margin-top",
        size: "xl"
      }));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "container-fluid"
    }, body, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(CreateSuffixModal, {
      showModal: this.state.showSuffixModal,
      closeHandler: this.closeSuffixModal,
      handleChange: this.onHandleChange,
      handleSelectChange: this.onHandleSelectChange,
      saveHandler: this.createSuffix,
      initOption: this.state.createInitOption,
      createNotOK: this.state.createNotOK,
      modalSpinning: this.state.modalSpinning,
      error: this.state.errObj
    }));
  }

}

class CreateSuffixModal extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  render() {
    var _this$props = this.props,
        showModal = _this$props.showModal,
        closeHandler = _this$props.closeHandler,
        handleChange = _this$props.handleChange,
        handleSelectChange = _this$props.handleSelectChange,
        saveHandler = _this$props.saveHandler,
        createNotOK = _this$props.createNotOK,
        initOption = _this$props.initOption,
        modalSpinning = _this$props.modalSpinning,
        error = _this$props.error;
    var saveBtnName = "Create Suffix";
    var extraPrimaryProps = {};

    if (modalSpinning) {
      saveBtnName = "Creating ...";
      extraPrimaryProps.spinnerAriaValueText = "Creating";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.ModalVariant.medium,
      title: "Create New Suffix",
      isOpen: showModal,
      "aria-labelledby": "ds-modal",
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Button, _extends({
        key: "confirm",
        variant: "primary",
        onClick: saveHandler,
        isDisabled: createNotOK,
        isLoading: modalSpinning,
        spinnerAriaValueText: modalSpinning ? "Creating Suffix" : undefined
      }, extraPrimaryProps), saveBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.FormGroup, {
      label: "Suffix DN",
      fieldId: "createSuffix",
      title: "Database suffix, like 'dc=example,dc=com'.  The suffix must be a valid LDAP Distiguished Name (DN).",
      helperTextInvalid: "The DN of the suffix is invalid",
      helperTextInvalidIcon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons_dist_js_icons_exclamation_circle_icon__WEBPACK_IMPORTED_MODULE_26__["default"], null),
      validated: error.createSuffix ? "error" : "noval"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__.TextInput, {
      isRequired: true,
      type: "text",
      id: "createSuffix",
      "aria-describedby": "createSuffix",
      name: "createSuffix",
      onChange: handleChange,
      validated: error.createSuffix ? "error" : "noval"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__.FormHelperText, {
      isError: true,
      isHidden: !error.createSuffix
    }, "Required field")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.FormGroup, {
      label: "Database Name",
      fieldId: "suffixName",
      title: "The name for the backend database, like 'userroot'.  The name can be a combination of alphanumeric characters, dashes (-), and underscores (_). No other characters are allowed, and the name must be unique across all backends.",
      helperTextInvalid: "You must enter a name for the database",
      helperTextInvalidIcon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons_dist_js_icons_exclamation_circle_icon__WEBPACK_IMPORTED_MODULE_26__["default"], null),
      validated: error.createBeName ? "error" : "noval"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__.TextInput, {
      isRequired: true,
      type: "text",
      id: "createBeName",
      "aria-describedby": "createSuffix",
      name: "suffixName",
      onChange: handleChange,
      validated: error.createBeName ? "error" : "noval"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__.FormHelperText, {
      isError: true,
      isHidden: !error.createBeName
    }, "Required field")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.FormGroup, {
      label: "Initialization Option",
      fieldId: "initOptions"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_29__.FormSelect, {
      value: initOption,
      onChange: handleSelectChange,
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_30__.FormSelectOption, {
      key: 1,
      value: "noInit",
      label: "Do Not Initialize Database"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_30__.FormSelectOption, {
      key: 2,
      value: "addSuffix",
      label: "Create The Top Suffix Entry"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_30__.FormSelectOption, {
      key: 3,
      value: "addSample",
      label: "Add Sample Entries"
    })))));
  }

} // Property types and defaults


Database.propTypes = {
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_31___default().func),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_31___default().string)
};
Database.defaultProps = {
  serverId: ""
};
CreateSuffixModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_31___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_31___default().func),
  onHandleChange: (prop_types__WEBPACK_IMPORTED_MODULE_31___default().func),
  onHandleSelectChange: (prop_types__WEBPACK_IMPORTED_MODULE_31___default().func),
  saveHandler: (prop_types__WEBPACK_IMPORTED_MODULE_31___default().func),
  modalSpinning: (prop_types__WEBPACK_IMPORTED_MODULE_31___default().bool),
  error: (prop_types__WEBPACK_IMPORTED_MODULE_31___default().object)
};
CreateSuffixModal.defaultProps = {
  showModal: false,
  modalSpinning: false,
  error: {}
};

/***/ }),

/***/ "./src/ds.jsx":
/*!********************!*\
  !*** ./src/ds.jsx ***!
  \********************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DSInstance": () => (/* binding */ DSInstance),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _plugins_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./plugins.jsx */ "./src/plugins.jsx");
/* harmony import */ var _database_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./database.jsx */ "./src/database.jsx");
/* harmony import */ var _monitor_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./monitor.jsx */ "./src/monitor.jsx");
/* harmony import */ var _schema_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./schema.jsx */ "./src/schema.jsx");
/* harmony import */ var _replication_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./replication.jsx */ "./src/replication.jsx");
/* harmony import */ var _server_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./server.jsx */ "./src/server.jsx");
/* harmony import */ var _lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./lib/notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _dsModals_jsx__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./dsModals.jsx */ "./src/dsModals.jsx");
/* harmony import */ var _LDAPEditor_jsx__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./LDAPEditor.jsx */ "./src/LDAPEditor.jsx");
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./lib/tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Page/PageSection.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownSeparator.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Progress/Progress.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Progress/ProgressContainer.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/Dropdown.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/dropdownConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownToggle.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/AlertGroup/AlertGroup.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/Alert.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/AlertActionCloseButton.js");
/* harmony import */ var _patternfly_react_icons_dist_esm_icons_caret_down_icon__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @patternfly/react-icons/dist/esm/icons/caret-down-icon */ "./node_modules/@patternfly/react-icons/dist/esm/icons/caret-down-icon.js");
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }















var staticStates = {
  noPackage: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, {
    className: "ds-margin-top-xlg",
    component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextVariants.h2
  }, "There is no ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, "389-ds-base"), " package installed on this system. Sorry there is nothing to manage...")),
  noInsts: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, {
    className: "ds-margin-top-xlg",
    component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextVariants.h2
  }, "There are no Directory Server instances to manage")),
  notRunning: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, {
    className: "ds-margin-top-xlg",
    component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextVariants.h2
  }, "This server instance is not running, either start it from the ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, "Actions"), " dropdown menu, or choose a different instance")),
  notConnecting: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, {
    className: "ds-margin-top-xlg",
    component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextVariants.h2
  }, "This server instance is running, but we can not connect to it. Check LDAPI is properly configured on this instance."))
};
class DSInstance extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  componentDidMount() {
    this.loadInstanceList();
    this.updateProgress(25);
  }

  constructor(props) {
    super(props);
    this.state = {
      pageLoadingState: {
        state: "loading",
        jsx: ""
      },
      serverId: "",
      instList: [],
      backupRows: [],
      notifications: [],
      activeTabKey: 1,
      wasActiveList: [],
      progressValue: 0,
      loadingOperate: false,
      dropdownIsOpen: false,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.PageSectionVariants["default"],
      showDeleteConfirm: false,
      modalSpinning: false,
      modalChecked: false,
      showSchemaReloadModal: false,
      showManageBackupsModal: false,
      showCreateInstanceModal: false
    }; // Dropdown tasks

    this.handleToggle = dropdownIsOpen => {
      this.setState({
        dropdownIsOpen
      });
    };

    this.handleDropdown = event => {
      this.setState({
        dropdownIsOpen: !this.state.dropdownIsOpen
      });
      this.onFocus();
    };

    this.onFocus = () => {
      var element = document.getElementById('ds-dropdown');
      element.focus();
    };

    this.handleNavSelect = (event, tabIndex) => {
      var wasActiveList = this.state.wasActiveList;

      if (!wasActiveList.includes(tabIndex)) {
        var newList = wasActiveList.concat(tabIndex);
        this.setState({
          wasActiveList: newList,
          activeTabKey: tabIndex
        });
      } else {
        this.setState({
          activeTabKey: tabIndex
        });
      }
    };

    this.setPageSectionVariant = isLight => {
      var variant = isLight ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.PageSectionVariants.light : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.PageSectionVariants["default"];
      this.setState({
        variant
      });
    };

    this.handleServerIdChange = this.handleServerIdChange.bind(this);
    this.onFieldChange = this.onFieldChange.bind(this);
    this.addNotification = this.addNotification.bind(this);
    this.removeNotification = this.removeNotification.bind(this);
    this.handleNavSelect = this.handleNavSelect.bind(this);
    this.loadInstanceList = this.loadInstanceList.bind(this);
    this.loadBackups = this.loadBackups.bind(this);
    this.setServerId = this.setServerId.bind(this);
    this.updateProgress = this.updateProgress.bind(this);
    this.openCreateInstanceModal = this.openCreateInstanceModal.bind(this);
    this.closeCreateInstanceModal = this.closeCreateInstanceModal.bind(this);
    this.operateInstance = this.operateInstance.bind(this);
    this.openManageBackupsModal = this.openManageBackupsModal.bind(this);
    this.closeManageBackupsModal = this.closeManageBackupsModal.bind(this);
    this.openSchemaReloadModal = this.openSchemaReloadModal.bind(this);
    this.closeSchemaReloadModal = this.closeSchemaReloadModal.bind(this);
    this.removeInstance = this.removeInstance.bind(this);
    this.showDeleteConfirm = this.showDeleteConfirm.bind(this);
    this.closeDeleteConfirm = this.closeDeleteConfirm.bind(this);
  }

  addNotification(variant, title) {
    var key = new Date().getTime();

    if (variant === "error" || variant === "danger") {
      variant = "danger"; // To print exceptions reported by lib389, it looks best in pre tags

      title = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("pre", null, title);
    }

    this.setState({
      notifications: [...this.state.notifications, {
        title: title,
        variant: variant,
        key
      }]
    });
  }

  removeNotification(key) {
    this.setState({
      notifications: [...this.state.notifications.filter(el => el.key !== key)]
    });
  }

  updateProgress(value) {
    this.setState(prevState => ({
      progressValue: prevState.progressValue + value
    }), () => {
      if (this.state.progressValue > 100) {
        this.setState(prevState => ({
          pageLoadingState: _objectSpread(_objectSpread({}, prevState.pageLoadingState), {}, {
            state: "success"
          })
        }));
      }
    });
  }

  setServerId(serverId, action) {
    // First we need to check if the instance is alive and well
    var cmd = ["dsctl", "-j", serverId, "status"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_11__.log_cmd)("setServerId", "Test if instance is running ", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(status_data => {
      var status_json = JSON.parse(status_data);

      if (status_json.running) {
        this.updateProgress(25);
        var _cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + serverId + ".socket", "backend", "suffix", "list", "--suffix"];
        (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_11__.log_cmd)("setServerId", "Test if instance is alive ", _cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(_cmd, {
          superuser: true,
          err: "message"
        }).done(_ => {
          this.updateProgress(25);
          this.setState({
            serverId: serverId,
            wasActiveList: [this.state.activeTabKey]
          }, () => {
            this.loadBackups();
          });

          if (action === "restart") {
            this.setState({
              serverId: "",
              wasActiveList: []
            }, () => {
              this.setState({
                serverId: serverId,
                wasActiveList: [this.state.activeTabKey]
              });
            });
          }
        }).fail(err => {
          var errMsg = JSON.parse(err);
          console.log("setServerId failed: ", errMsg.desc);
          this.setState({
            pageLoadingState: {
              state: "notConnecting",
              jsx: staticStates.notConnecting
            }
          }, () => {
            this.setState({
              serverId: serverId,
              wasActiveList: []
            }, () => {
              this.loadBackups();
            });
          });
        });
      } else {
        this.setState({
          pageLoadingState: {
            state: "notRunning",
            jsx: staticStates.notRunning
          }
        }, () => {
          this.setState({
            serverId: serverId,
            wasActiveList: []
          }, () => {
            this.loadBackups();
          });
        });
      }
    }).fail(err => {
      var errMsg = JSON.parse(err);
      console.log("setServerId failed: ", errMsg.desc);
      this.setState({
        pageLoadingState: {
          state: "notConnecting",
          jsx: staticStates.notConnecting
        }
      }, () => {
        this.setState({
          serverId: serverId,
          wasActiveList: []
        }, () => {
          this.loadBackups();
        });
      });
    });
  }

  loadInstanceList(serverId, action) {
    if (serverId === undefined) {
      this.setState(prevState => ({
        pageLoadingState: _objectSpread(_objectSpread({}, prevState.pageLoadingState), {}, {
          state: "loading"
        })
      }));
    }

    this.setState({
      wasActiveList: []
    }, () => {
      var cmd = ["dsctl", "-l", "-j"];
      (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_11__.log_cmd)("loadInstanceList", "Load the instance list select", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true
      }).done(data => {
        this.updateProgress(25);
        var myObject = JSON.parse(data);
        var options = [];

        var _iterator = _createForOfIteratorHelper(myObject.insts),
            _step;

        try {
          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            var inst = _step.value;
            options.push({
              value: inst.replace("slapd-", ""),
              label: inst,
              disabled: false
            });
          }
        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }

        this.setState({
          instList: options,
          loadingOperate: false
        }); // Set default value for the inst select

        if (serverId !== undefined && serverId !== "") {
          this.setServerId(serverId, action);
        } else {
          if (myObject.insts.length > 0) {
            this.setServerId(myObject.insts[0].replace("slapd-", ""), action);
          } else {
            this.setState({
              serverId: "",
              pageLoadingState: {
                state: "noInsts",
                jsx: staticStates.noInsts
              }
            });
          }
        }
      }).fail(_ => {
        this.setState({
          instList: [],
          serverId: "",
          loadingOperate: false,
          pageLoadingState: {
            state: "noInsts",
            jsx: staticStates.noInsts
          }
        });
      });
    });
  }

  loadBackups() {
    var cmd = ["dsctl", "-j", this.state.serverId, "backups"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_11__.log_cmd)("loadBackups", "Load Backups", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.updateProgress(25);
      var config = JSON.parse(content);
      var rows = [];

      var _iterator2 = _createForOfIteratorHelper(config.items),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var row = _step2.value;
          rows.push([row[0], row[1], row[2]]);
        } // Get the server version from the monitor

      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.state.serverId + ".socket", "monitor", "server"];
      (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_11__.log_cmd)("loadBackups", "Get the server version", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        var monitor = JSON.parse(content);
        this.setState({
          backupRows: rows,
          version: monitor.attrs.version[0]
        });
      }).fail(_ => {
        this.setState({
          backupRows: rows
        });
      });
    });
  }

  handleServerIdChange(e) {
    this.setState({
      pageLoadingState: {
        state: "loading",
        jsx: ""
      },
      progressValue: 25
    });
    this.loadInstanceList(e);
  }

  onFieldChange(e) {
    var value = e.target.type === "checkbox" ? e.target.checked : e.target.value;

    if (e.target.type === "number") {
      if (e.target.value) {
        value = parseInt(e.target.value);
      } else {
        value = 1;
      }
    }

    this.setState({
      [e.target.id]: value
    });
  }

  removeInstance() {
    this.setState({
      loadingOperate: true
    });
    var cmd = ["dsctl", "-j", this.state.serverId, "remove", "--do-it"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_11__.log_cmd)("removeInstance", "Remove the instance", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(_ => {
      this.loadInstanceList();
      this.addNotification("success", "Instance was successfully removed");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.loadInstanceList();
      this.addNotification("error", "Error during instance remove operation - ".concat(errMsg.desc));
    });
    this.closeDeleteConfirm();
  }

  operateInstance(action) {
    this.setState({
      loadingOperate: true
    });
    var cmdStatus = ["dsctl", "-j", this.state.serverId, "status"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_11__.log_cmd)("operateInstance", "Check instance status", cmdStatus);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmdStatus, {
      superuser: true,
      err: "message"
    }).done(status_data => {
      var status_json = JSON.parse(status_data);

      if (status_json.running && action === "start") {
        this.addNotification("success", "Instance is already running");
        this.setState({
          loadingOperate: false
        });
      } else if (!status_json.running && action === "stop") {
        this.addNotification("success", "Instance is already stopped");
        this.setState({
          loadingOperate: false
        });
      } else {
        var cmd = ["dsctl", "-j", this.state.serverId, action];
        (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_11__.log_cmd)("operateInstance", "Do ".concat(action, " the instance"), cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(_ => {
          this.loadInstanceList(this.state.serverId, action);

          if (action === "stop") {
            action = "stopp"; // Fixes typo in notification
          }

          this.addNotification("success", "Instance was successfully ".concat(action, "ed"));
        }).fail(err => {
          var errMsg = JSON.parse(err);
          this.addNotification("error", "Error during instance ".concat(action, " operation - ").concat(errMsg.desc));
          this.loadInstanceList(this.state.serverId, action);
        });
      }
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.addNotification("error", "Error during instance check status operation - ".concat(errMsg.desc));
      this.loadInstanceList(this.state.serverId, action);
    });
  }

  openCreateInstanceModal() {
    this.setState({
      showCreateInstanceModal: true
    });
  }

  closeCreateInstanceModal() {
    this.setState({
      showCreateInstanceModal: false
    });
  }

  openManageBackupsModal() {
    this.setState({
      showManageBackupsModal: true
    });
  }

  closeManageBackupsModal() {
    this.setState({
      showManageBackupsModal: false
    });
  }

  openSchemaReloadModal() {
    this.setState({
      showSchemaReloadModal: true
    });
  }

  closeSchemaReloadModal() {
    this.setState({
      showSchemaReloadModal: false
    });
  }

  showDeleteConfirm() {
    this.setState({
      showDeleteConfirm: true,
      modalSpinning: false,
      modalChecked: false
    });
  }

  closeDeleteConfirm() {
    this.setState({
      showDeleteConfirm: false,
      modalSpinning: false,
      modalChecked: false
    });
  }

  render() {
    var _this$state = this.state,
        instList = _this$state.instList,
        serverId = _this$state.serverId,
        progressValue = _this$state.progressValue,
        notifications = _this$state.notifications,
        pageLoadingState = _this$state.pageLoadingState,
        loadingOperate = _this$state.loadingOperate,
        dropdownIsOpen = _this$state.dropdownIsOpen,
        activeTabKey = _this$state.activeTabKey;
    var dropdownItems = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.DropdownItem, {
      id: "start-ds",
      key: "start",
      component: "button",
      onClick: () => this.operateInstance("start")
    }, "Start Instance"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.DropdownItem, {
      id: "stop-ds",
      key: "stop",
      component: "button",
      onClick: () => this.operateInstance("stop")
    }, "Stop Instance"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.DropdownItem, {
      id: "restart-ds",
      key: "restart",
      component: "button",
      onClick: () => this.operateInstance("restart")
    }, "Restart Instance"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.DropdownItem, {
      id: "manage-backup-ds",
      key: "backups",
      component: "button",
      onClick: () => this.openManageBackupsModal()
    }, "Manage Backups"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.DropdownItem, {
      id: "reload-schema-ds",
      key: "reload",
      component: "button",
      onClick: () => this.openSchemaReloadModal()
    }, "Reload Schema Files"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.DropdownSeparator, {
      key: "separator"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.DropdownItem, {
      id: "remove-ds",
      key: "remove",
      component: "button",
      onClick: () => this.showDeleteConfirm()
    }, "Remove This Instance"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.DropdownItem, {
      id: "create-ds",
      key: "create",
      component: "button",
      onClick: () => this.openCreateInstanceModal()
    }, "Create New Instance")];
    var mainContent = "";

    if (pageLoadingState.state === "loading") {
      mainContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        id: "loading-instances",
        className: "all-pages ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        id: "loading-page",
        className: "ds-center ds-loading"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, {
        id: "loading-msg",
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextVariants.h3
      }, "Loading Directory Server Configuration ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("p", {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", {
        className: "spinner spinner-lg spinner-inline"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.Progress, {
        value: progressValue,
        label: "".concat(progressValue, "%"),
        measureLocation: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.ProgressMeasureLocation.inside
      }))));
    } else if (pageLoadingState.state === "noInsts") {
      mainContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        id: "noInsts",
        className: "all-pages ds-center"
      }, pageLoadingState.jsx, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("p", {
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Button, {
        id: "no-inst-create-btn",
        variant: "primary",
        onClick: () => this.openCreateInstanceModal()
      }, "Create New Instance")));
    } else {
      mainContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        id: pageLoadingState.state,
        className: "all-pages ds-center"
      }, pageLoadingState.jsx);
    }

    var operateSpinner = "";

    if (loadingOperate) {
      operateSpinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Spinner, {
        className: "ds-operate-spinner",
        size: "md"
      });
    }

    var serverDropdown = "";

    if (pageLoadingState.state !== "loading" && pageLoadingState.state !== "noInsts" && pageLoadingState.state !== "noPackage") {
      serverDropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.Grid, {
        className: "ds-logo",
        hidden: pageLoadingState.state === "loading"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.GridItem, {
        span: 10
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, {
        className: "ds-logo-style",
        title: this.state.version
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, {
        id: "main-banner",
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextVariants.h1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-server-action"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.FormSelect, {
        title: "Directory Server instance list",
        value: serverId,
        id: "serverId",
        onChange: this.handleServerIdChange,
        "aria-label": "FormSelect Input",
        className: "ds-instance-select"
      }, instList.map((option, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.FormSelectOption, {
        isDisabled: option.disabled,
        key: index,
        value: option.value.replace("slapd-", ""),
        label: option.label
      })))), operateSpinner))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Dropdown, {
        id: "ds-action",
        className: "ds-float-right ds-margin-top ds-margin-right",
        position: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.DropdownPosition.right,
        onSelect: this.handleDropdown,
        toggle: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__.DropdownToggle, {
          onToggle: this.handleToggle,
          toggleIndicator: _patternfly_react_icons_dist_esm_icons_caret_down_icon__WEBPACK_IMPORTED_MODULE_28__["default"],
          isPrimary: true,
          id: "ds-dropdown"
        }, "Actions"),
        isOpen: dropdownIsOpen,
        dropdownItems: dropdownItems
      })));
    }

    var mainPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, mainContent);

    if (serverId !== "" && (pageLoadingState.state === "success" || pageLoadingState.state === "loading")) {
      mainPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        hidden: pageLoadingState.state === "loading"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_29__.Tabs, {
        isFilled: true,
        activeKey: activeTabKey,
        onSelect: this.handleNavSelect
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_30__.Tab, {
        eventKey: 1,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__.TabTitleText, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, "Server"))
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_server_jsx__WEBPACK_IMPORTED_MODULE_7__.Server, {
        addNotification: this.addNotification,
        serverId: this.state.serverId,
        wasActiveList: this.state.wasActiveList,
        version: this.state.version,
        key: this.state.serverId
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_30__.Tab, {
        eventKey: 2,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__.TabTitleText, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, "Database"))
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_database_jsx__WEBPACK_IMPORTED_MODULE_3__.Database, {
        addNotification: this.addNotification,
        serverId: this.state.serverId,
        wasActiveList: this.state.wasActiveList,
        key: this.state.serverId
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_30__.Tab, {
        eventKey: 3,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__.TabTitleText, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, "Replication"))
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_replication_jsx__WEBPACK_IMPORTED_MODULE_6__.Replication, {
        addNotification: this.addNotification,
        serverId: this.state.serverId,
        wasActiveList: this.state.wasActiveList,
        key: this.state.serverId
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_30__.Tab, {
        eventKey: 4,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__.TabTitleText, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, "Schema"))
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_schema_jsx__WEBPACK_IMPORTED_MODULE_5__.Schema, {
        addNotification: this.addNotification,
        serverId: this.state.serverId,
        wasActiveList: this.state.wasActiveList,
        key: this.state.serverId
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_30__.Tab, {
        eventKey: 5,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__.TabTitleText, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, "Plugins"))
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_plugins_jsx__WEBPACK_IMPORTED_MODULE_2__.Plugins, {
        addNotification: this.addNotification,
        serverId: this.state.serverId,
        wasActiveList: this.state.wasActiveList,
        key: this.state.serverId
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_30__.Tab, {
        eventKey: 6,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__.TabTitleText, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, "Monitoring"))
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_monitor_jsx__WEBPACK_IMPORTED_MODULE_4__.Monitor, {
        addNotification: this.addNotification,
        serverId: this.state.serverId,
        wasActiveList: this.state.wasActiveList,
        key: this.state.serverId
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_30__.Tab, {
        eventKey: 7,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__.TabTitleText, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, "Users & Groups"))
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_LDAPEditor_jsx__WEBPACK_IMPORTED_MODULE_10__.LDAPEditor, {
        key: "ldap-editor",
        addNotification: this.addNotification,
        serverId: this.state.serverId,
        setPageSectionVariant: this.setPageSectionVariant
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        hidden: pageLoadingState.state !== "loading"
      }, mainContent));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: loadingOperate ? "ds-disabled" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_32__.AlertGroup, {
      isToast: true
    }, notifications.map(_ref => {
      var key = _ref.key,
          variant = _ref.variant,
          title = _ref.title;
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_33__.Alert, {
        isLiveRegion: true,
        variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_33__.AlertVariant[variant],
        title: title,
        actionClose: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_34__.AlertActionCloseButton, {
          title: title,
          variantLabel: "".concat(variant, " alert"),
          onClose: () => this.removeNotification(key)
        }),
        timeout: true,
        key: key
      });
    })), serverDropdown, mainPage, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_dsModals_jsx__WEBPACK_IMPORTED_MODULE_9__.CreateInstanceModal, {
      showModal: this.state.showCreateInstanceModal,
      closeHandler: this.closeCreateInstanceModal,
      addNotification: this.addNotification,
      serverId: this.state.serverId,
      loadInstanceList: this.loadInstanceList
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_dsModals_jsx__WEBPACK_IMPORTED_MODULE_9__.SchemaReloadModal, {
      showModal: this.state.showSchemaReloadModal,
      closeHandler: this.closeSchemaReloadModal,
      addNotification: this.addNotification,
      serverId: this.state.serverId
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_dsModals_jsx__WEBPACK_IMPORTED_MODULE_9__.ManageBackupsModal, {
      addNotification: this.addNotification,
      serverId: this.state.serverId,
      showModal: this.state.showManageBackupsModal,
      closeHandler: this.closeManageBackupsModal,
      handleChange: this.onFieldChange,
      backups: this.state.backupRows,
      reload: this.loadBackups
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_8__.DoubleConfirmModal, {
      showModal: this.state.showDeleteConfirm,
      closeHandler: this.closeDeleteConfirm,
      handleChange: this.onFieldChange,
      actionHandler: this.removeInstance,
      spinning: this.state.modalSpinning,
      item: this.state.serverId,
      checked: this.state.modalChecked,
      mTitle: "Remove Instance",
      mMsg: "Are you really sure you want to delete this instance?",
      mSpinningMsg: "Removing Instance...",
      mBtnName: "Remove Instance"
    }));
  }

}
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DSInstance);

/***/ }),

/***/ "./src/dsModals.jsx":
/*!**************************!*\
  !*** ./src/dsModals.jsx ***!
  \**************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CreateInstanceModal": () => (/* binding */ CreateInstanceModal),
/* harmony export */   "SchemaReloadModal": () => (/* binding */ SchemaReloadModal),
/* harmony export */   "ManageBackupsModal": () => (/* binding */ ManageBackupsModal)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_19__);
/* harmony import */ var _lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lib/notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _lib_database_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lib/database/databaseTables.jsx */ "./src/lib/database/databaseTables.jsx");
/* harmony import */ var _lib_database_backups_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lib/database/backups.jsx */ "./src/lib/database/backups.jsx");
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lib/tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormHelperText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/NumberInput/NumberInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }









class CreateInstanceModal extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      createServerId: "",
      createPort: 389,
      createSecurePort: 636,
      createDM: "cn=Directory Manager",
      createDMPassword: "",
      createDMPasswordConfirm: "",
      createDBCheckbox: false,
      createDBSuffix: "",
      createDBName: "",
      createTLSCert: true,
      createInitDB: "noInit",
      loadingCreate: false,
      createOK: false,
      modalMsg: "",
      errObj: {}
    };
    this.maxValue = 65535;

    this.onMinusConfig = id => {
      this.setState({
        [id]: Number(this.state[id]) - 1
      }, () => {
        this.validate();
      });
    };

    this.onConfigChange = (event, id, min) => {
      var newValue = isNaN(event.target.value) ? 0 : Number(event.target.value);
      this.setState({
        [id]: newValue > this.maxValue ? this.maxValue : newValue < 0 ? 0 : newValue
      }, () => {
        this.validate();
      });
    };

    this.onPlusConfig = id => {
      this.setState({
        [id]: Number(this.state[id]) + 1
      }, () => {
        this.validate();
      });
    };

    this.handleFieldChange = this.handleFieldChange.bind(this);
    this.validate = this.validate.bind(this);
    this.handleCreateInstance = this.handleCreateInstance.bind(this);
    this.validInstName = this.validInstName.bind(this);
    this.validRootDN = this.validRootDN.bind(this);
    this.resetModal = this.resetModal.bind(this);
  }

  componentDidMount() {
    this.resetModal();
  }

  resetModal() {
    this.setState({
      createServerId: "",
      createPort: 389,
      createSecurePort: 636,
      createDM: "cn=Directory Manager",
      createDMPassword: "",
      createDMPasswordConfirm: "",
      createDBCheckbox: false,
      createDBSuffix: "",
      createDBName: "",
      createTLSCert: true,
      createInitDB: "noInit",
      loadingCreate: false,
      createOK: false,
      modalMsg: "",
      errObj: {
        createServerId: true,
        createDMPassword: true,
        createDMPasswordConfirm: true,
        createDBSuffix: false,
        createDBName: false
      }
    });
  }

  validInstName(name) {
    return /^[\w@_:-]*$/.test(name);
  }

  validRootDN(dn) {
    // Validate a DN for Directory Manager.  We have to be stricter than
    // valid_dn() and only allow stand ascii characters for the value
    if (dn.endsWith(",")) {
      return false;
    } // Check that the attr is only letters  [A-Za-z]+  and the value does not
    // start with a space (?=\\S) AND all the characters are standard
    // ascii ([ -~]+)


    var dn_regex = new RegExp("^([A-Za-z]+=(?=\\S)([ -~]+)$)");
    var result = dn_regex.test(dn);
    return result;
  }

  validate() {
    var all_good = true;
    var createServerIdMsg = "";
    var errObj = {};
    var reqAttrs = ['createServerId', 'createDM', 'createDMPassword', 'createDMPasswordConfirm'];
    var dnAttrs = ['createDM'];
    var optionalAttrs = ['createDBName']; // Handle server ID

    if (this.state.createServerId !== "") {
      if (this.state.createServerId.length > 80) {
        all_good = false;
        errObj.createServerId = true;
        createServerIdMsg = "Instance name must be less than 80 characters";
      } else if (!this.validInstName(this.state.createServerId)) {
        all_good = false;
        errObj.createServerId = true;
        createServerIdMsg = "Instance name can only contain letters, numbers, and these 4 characters:  - @ : _";
      }
    }

    for (var _i = 0, _reqAttrs = reqAttrs; _i < _reqAttrs.length; _i++) {
      var attr = _reqAttrs[_i];

      if (this.state[attr] === "") {
        all_good = false;
        errObj[attr] = true;
      }
    }

    for (var _i2 = 0, _dnAttrs = dnAttrs; _i2 < _dnAttrs.length; _i2++) {
      var _attr = _dnAttrs[_i2];

      if (this.state[_attr] !== "" && !(0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.valid_dn)(this.state[_attr])) {
        all_good = false;
        errObj[_attr] = true;
      }
    }

    if (this.state.createDMPassword !== this.state.createDMPasswordConfirm || this.state.createDMPassword.length < 8) {
      all_good = false;
      errObj.createDMPassword = true;
      errObj.createDMPasswordConfirm = true;
    }

    if (this.state.createDBCheckbox) {
      var _iterator = _createForOfIteratorHelper(optionalAttrs),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var _attr2 = _step.value;

          if (this.state[_attr2] === "") {
            all_good = false;
            errObj[_attr2] = true;
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      if (!(0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.valid_dn)(this.state.createDBSuffix)) {
        all_good = false;
        errObj.createDBSuffix = true;
      }
    }

    this.setState({
      createOK: all_good,
      createServerIdMsg: createServerIdMsg,
      errObj: errObj
    });
  }

  handleFieldChange(e) {
    var value = e.target.type === "checkbox" ? e.target.checked : e.target.value;
    this.setState({
      [e.target.id]: value
    }, () => {
      this.validate();
    });
  }

  handleCreateInstance() {
    var _this$state = this.state,
        createServerId = _this$state.createServerId,
        createPort = _this$state.createPort,
        createSecurePort = _this$state.createSecurePort,
        createDM = _this$state.createDM,
        createDMPassword = _this$state.createDMPassword,
        createDBSuffix = _this$state.createDBSuffix,
        createDBName = _this$state.createDBName,
        createTLSCert = _this$state.createTLSCert,
        createInitDB = _this$state.createInitDB,
        createDBCheckbox = _this$state.createDBCheckbox;
    var _this$props = this.props,
        closeHandler = _this$props.closeHandler,
        addNotification = _this$props.addNotification,
        loadInstanceList = _this$props.loadInstanceList;
    var setup_inf = "[general]\n" + "config_version = 2\n" + "full_machine_name = FQDN\n\n" + "[slapd]\n" + "user = dirsrv\n" + "group = dirsrv\n" + "instance_name = INST_NAME\n" + "port = PORT\n" + "root_dn = ROOTDN\n" + "root_password = ROOTPW\n" + "secure_port = SECURE_PORT\n" + "self_sign_cert = SELF_SIGN\n"; // Server ID

    var newServerId = createServerId;
    newServerId = newServerId.replace(/^slapd-/i, ""); // strip "slapd-"

    setup_inf = setup_inf.replace("INST_NAME", newServerId);
    setup_inf = setup_inf.replace("PORT", createPort);
    setup_inf = setup_inf.replace("SECURE_PORT", createSecurePort);
    setup_inf = setup_inf.replace("ROOTDN", createDM);
    setup_inf = setup_inf.replace("ROOTPW", createDMPassword); // Setup Self-Signed Certs

    if (createTLSCert) {
      setup_inf = setup_inf.replace("SELF_SIGN", "True");
    } else {
      setup_inf = setup_inf.replace("SELF_SIGN", "False");
    }

    if (createDBCheckbox) {
      setup_inf += "\n[backend-" + createDBName + "]\nsuffix = " + createDBSuffix + "\n";

      if (createInitDB === "createSample") {
        setup_inf += "sample_entries = yes\n";
      }

      if (createInitDB === "createSuffix") {
        setup_inf += "create_suffix_entry = yes\n";
      }
    }
    /*
     * Here are steps we take to create the instance
     *
     * [1] Get FQDN Name for nsslapd-localhost setting in setup file
     * [2] Create a file for the inf setup parameters
     * [3] Set strict permissions on that file
     * [4] Populate the new setup file with settings (including cleartext password)
     * [5] Create the instance
     * [6] Remove setup file
     */


    this.setState({
      loadingCreate: true
    });
    var hostname_cmd = ["hostnamectl", "status", "--static"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)("handleCreateInstance", "Get FQDN ...", hostname_cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(hostname_cmd, {
      superuser: true,
      err: "message"
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.setState({
        loadingCreate: false
      });
      addNotification("error", "Failed to get hostname!\", ".concat(errMsg.desc));
    }).done(data => {
      /*
       * We have FQDN, so set the hostname in inf file, and create the setup file
       */
      if (data.trim() === "") {
        data = "localhost.localdomain";
      }

      setup_inf = setup_inf.replace("FQDN", data);
      var setup_file = "/tmp/389-setup-" + new Date().getTime() + ".inf";
      var rm_cmd = ["rm", setup_file];
      var create_file_cmd = ["touch", setup_file];
      (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)("handleCreateInstance", "Setting FQDN...", create_file_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(create_file_cmd, {
        superuser: true,
        err: "message"
      }).fail(err => {
        this.setState({
          loadingCreate: false
        });
        addNotification("error", "Failed to create installation file!\" ".concat(err.message));
      }).done(_ => {
        /*
         * We have our new setup file, now set permissions on that setup file before we add sensitive data
         */
        var chmod_cmd = ["chmod", "600", setup_file];
        (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)("handleCreateInstance", "Setting initial INF file permissions...", chmod_cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(chmod_cmd, {
          superuser: true,
          err: "message"
        }).fail(err => {
          cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(rm_cmd, {
            superuser: true,
            err: "message"
          }); // Remove Inf file with clear text password

          this.setState({
            loadingCreate: false
          });
          addNotification("error", "Failed to set permissions on setup file ".concat(setup_file, ": ").concat(err.message));
        }).done(_ => {
          /*
           * Success we have our setup file and it has the correct permissions.
           * Now populate the setup file...
           */
          var cmd = ['/bin/sh', '-c', '/usr/bin/echo -e \'' + setup_inf + '\' >> ' + setup_file]; // Do not log inf file as it contains the DM password

          (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)("handleCreateInstance", "Apply changes to INF file...", "");
          cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
            superuser: true,
            err: "message"
          }).fail(err => {
            this.setState({
              loadingCreate: false
            });
            addNotification("error", "Failed to populate installation file! ".concat(err.message));
          }).done(_ => {
            /*
             * Next, create the instance...
             */
            var cmd = ["dscreate", "-j", "from-file", setup_file];
            (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)("handleCreateInstance", "Creating instance...", cmd);
            cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
              superuser: true,
              err: "message"
            }).fail(err => {
              var errMsg = JSON.parse(err.message);
              cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(rm_cmd, {
                superuser: true
              }); // Remove Inf file with clear text password

              this.setState({
                loadingCreate: false
              });
              addNotification("error", "".concat(errMsg.desc));
            }).done(_ => {
              // Success!!!  Now cleanup everything up...
              (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)("handleCreateInstance", "Instance creation compelete, clean everything up...", rm_cmd);
              cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(rm_cmd, {
                superuser: true
              }); // Remove Inf file with clear text password

              this.setState({
                loadingCreate: false
              });
              loadInstanceList(createServerId);
              addNotification("success", "Successfully created instance: slapd-".concat(createServerId));
              closeHandler();
              this.resetModal();
            });
          });
        });
      });
    });
  }

  render() {
    var _this$props2 = this.props,
        showModal = _this$props2.showModal,
        closeHandler = _this$props2.closeHandler;
    var _this$state2 = this.state,
        loadingCreate = _this$state2.loadingCreate,
        createServerId = _this$state2.createServerId,
        createPort = _this$state2.createPort,
        createSecurePort = _this$state2.createSecurePort,
        createDM = _this$state2.createDM,
        createDMPassword = _this$state2.createDMPassword,
        createDMPasswordConfirm = _this$state2.createDMPasswordConfirm,
        createDBCheckbox = _this$state2.createDBCheckbox,
        createDBSuffix = _this$state2.createDBSuffix,
        createDBName = _this$state2.createDBName,
        createTLSCert = _this$state2.createTLSCert,
        createInitDB = _this$state2.createInitDB,
        createOK = _this$state2.createOK,
        errObj = _this$state2.errObj;
    var saveBtnName = "Create Instance";
    var extraPrimaryProps = {};

    if (loadingCreate) {
      saveBtnName = "Creating Instance ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ModalVariant.medium,
      title: "Create New Server Instance",
      "aria-labelledby": "ds-modal",
      isOpen: showModal,
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Button, _extends({
        key: "confirm",
        variant: "primary",
        onClick: this.handleCreateInstance,
        isDisabled: !createOK,
        isLoading: loadingCreate,
        spinnerAriaValueText: loadingCreate ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: loadingCreate ? "ds-disabled" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-top",
      title: "The instance name, this is what gets appended to 'slapi-'. The instance name can only contain letters, numbers, and: # @ : - _"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      className: "ds-label",
      span: 4
    }, "Instance Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      value: createServerId,
      type: "text",
      id: "createServerId",
      "aria-describedby": "horizontal-form-name-helper",
      name: "createServerId",
      onChange: (str, e) => {
        this.handleFieldChange(e);
      },
      validated: errObj.createServerId ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormHelperText, {
      isError: true,
      isHidden: !errObj.createServerId
    }, this.state.createServerIdMsg))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      title: "The server port number should be in the range of 1 to 65534."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      className: "ds-label",
      span: 4
    }, "Port"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.NumberInput, {
      value: createPort,
      min: 1,
      max: 65534,
      onMinus: () => {
        this.onMinusConfig("createPort");
      },
      onChange: e => {
        this.onConfigChange(e, "createPort", 1);
      },
      onPlus: () => {
        this.onPlusConfig("createPort");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-top",
      title: "The secure port number for TLS connections. It should be in the range of 1 to 65534."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      className: "ds-label",
      span: 4
    }, "Secure Port"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.NumberInput, {
      value: createSecurePort,
      min: 1,
      max: 65534,
      onMinus: () => {
        this.onMinusConfig("createSecurePort");
      },
      onChange: e => {
        this.onConfigChange(e, "createSecurePort", 1);
      },
      onPlus: () => {
        this.onPlusConfig("createSecurePort");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-top",
      title: "Create a self-signed certificate database in /etc/dirsrc/ssca directory."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      className: "ds-label",
      span: 4
    }, "Create Self-Signed TLS Certificate"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Checkbox, {
      id: "createTLSCert",
      isChecked: createTLSCert,
      onChange: (checked, e) => {
        this.handleFieldChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-top",
      title: "The DN for the unrestricted user"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      className: "ds-label",
      span: 4
    }, "Directory Manager DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      value: createDM,
      type: "text",
      id: "createDM",
      "aria-describedby": "horizontal-form-name-helper",
      name: "createDM",
      onChange: (str, e) => {
        this.handleFieldChange(e);
      },
      validated: errObj.createDM ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormHelperText, {
      isError: true,
      isHidden: !errObj.createDM
    }, "Enter a valid DN"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      title: "Directory Manager password must be at least 8 characters in length."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      className: "ds-label",
      span: 4
    }, "Directory Manager Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      value: createDMPassword,
      type: "password",
      id: "createDMPassword",
      "aria-describedby": "horizontal-form-name-helper",
      name: "createDMPassword",
      onChange: (str, e) => {
        this.handleFieldChange(e);
      },
      validated: errObj.createDMPassword ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormHelperText, {
      isError: true,
      isHidden: !errObj.createDMPassword
    }, "Password must be set and it must match the confirmation password."))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      title: "Confirm the previously entered password."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      className: "ds-label",
      span: 4
    }, "Confirm Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      value: createDMPasswordConfirm,
      type: "password",
      id: "createDMPasswordConfirm",
      "aria-describedby": "horizontal-form-name-helper",
      name: "createDMPasswordConfirm",
      onChange: (str, e) => {
        this.handleFieldChange(e);
      },
      validated: errObj.createDMPasswordConfirm ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormHelperText, {
      isError: true,
      isHidden: !errObj.createDMPasswordConfirm
    }, "Confirmation password must be set and it must match the first password."))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      title: "Create a database during the installation."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Checkbox, {
      id: "createDBCheckbox",
      label: "Create Database",
      isChecked: createDBCheckbox,
      onChange: (checked, e) => {
        this.handleFieldChange(e);
      }
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      title: "Database suffix, like 'dc=example,dc=com'. The suffix must be a valid LDAP Distiguished Name (DN)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      className: "ds-label",
      offset: 1,
      span: 3
    }, "Database Suffix"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      value: createDBSuffix,
      placeholder: "e.g. dc=company,dc=com",
      type: "text",
      id: "createDBSuffix",
      "aria-describedby": "horizontal-form-name-helper",
      name: "createDBSuffix",
      isDisabled: !createDBCheckbox,
      onChange: (str, e) => {
        this.handleFieldChange(e);
      },
      validated: errObj.createDBSuffix ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormHelperText, {
      isError: true,
      isHidden: !errObj.createDBSuffix
    }, "Value must be a valid DN"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      title: "The name for the backend database, like 'userroot'. The name can be a combination of alphanumeric characters, dashes (-), and underscores (_). No other characters are allowed, and the name must be unique across all backends."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      className: "ds-label",
      offset: 1,
      span: 3
    }, "Database Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      value: createDBName,
      placeholder: "e.g. userRoot",
      type: "text",
      id: "createDBName",
      "aria-describedby": "horizontal-form-name-helper",
      name: "createDBName",
      isDisabled: !createDBCheckbox,
      onChange: (str, e) => {
        this.handleFieldChange(e);
      },
      validated: errObj.createDBName ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormHelperText, {
      isError: true,
      isHidden: !errObj.createDBName
    }, "Name is required"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      className: "ds-label",
      offset: 1,
      span: 3
    }, "Database Initialization"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.FormSelect, {
      id: "createInitDB",
      value: createInitDB,
      onChange: (value, event) => {
        this.handleFieldChange(event);
      },
      "aria-label": "FormSelect Input",
      isDisabled: !createDBCheckbox
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.FormSelectOption, {
      key: "1",
      value: "noInit",
      label: "Do Not Initialize Database"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.FormSelectOption, {
      key: "2",
      value: "createSuffix",
      label: "Create Suffix Entry"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.FormSelectOption, {
      key: "3",
      value: "createSample",
      label: "Create Sample Entries"
    })))))));
  }

}
class SchemaReloadModal extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      reloadSchemaDir: "",
      loadingSchemaTask: false
    };
    this.handleReloadSchema = this.handleReloadSchema.bind(this);
    this.handleFieldChange = this.handleFieldChange.bind(this);
  }

  handleFieldChange(e) {
    this.setState({
      [e.target.id]: e.target.value
    });
  }

  handleReloadSchema(e) {
    var _this$props3 = this.props,
        addNotification = _this$props3.addNotification,
        serverId = _this$props3.serverId,
        closeHandler = _this$props3.closeHandler;
    var reloadSchemaDir = this.state.reloadSchemaDir;
    this.setState({
      loadingSchemaTask: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + serverId + ".socket", "schema", "reload", "--wait"];

    if (reloadSchemaDir !== "") {
      cmd = [...cmd, "--schemadir", reloadSchemaDir];
    }

    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)("handleReloadSchema", "Reload schema files", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(data => {
      addNotification("success", "Successfully reloaded schema");
      this.setState({
        loadingSchemaTask: false
      });
      closeHandler();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      addNotification("error", "Failed to reload schema files - ".concat(errMsg.desc));
      closeHandler();
    });
  }

  render() {
    var _this$state3 = this.state,
        loadingSchemaTask = _this$state3.loadingSchemaTask,
        reloadSchemaDir = _this$state3.reloadSchemaDir;
    var _this$props4 = this.props,
        showModal = _this$props4.showModal,
        closeHandler = _this$props4.closeHandler;
    var spinner = "";

    if (loadingSchemaTask) {
      spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-top ds-modal-spinner"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Spinner, {
        size: "lg"
      }), "Reloading schema files..."));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ModalVariant.small,
      title: "Reload Schema Files",
      "aria-labelledby": "ds-modal",
      isOpen: showModal,
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Button, {
        key: "confirm",
        variant: "primary",
        onClick: this.handleReloadSchema
      }, "Reload Schema"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      title: "The name of the database link."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Schema File Directory"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      value: reloadSchemaDir,
      type: "text",
      id: "reloadSchemaDir",
      "aria-describedby": "horizontal-form-name-helper",
      name: "reloadSchemaDir",
      onChange: (str, e) => {
        this.handleFieldChange(e);
      }
    }))), spinner));
  }

}
class ManageBackupsModal extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      activeKey: 1,
      showConfirmBackupDelete: false,
      showConfirmBackup: false,
      showConfirmRestore: false,
      showConfirmRestoreReplace: false,
      showConfirmLDIFReplace: false,
      showBackupModal: false,
      backupSpinning: false,
      refreshing: false,
      backupName: "",
      deleteBackup: "",
      modalSpinning: false,
      modalChecked: false,
      errObj: {}
    };
    this.handleNavSelect = this.handleNavSelect.bind(this);
    this.onModalChange = this.onModalChange.bind(this); // Backups

    this.doBackup = this.doBackup.bind(this);
    this.deleteBackup = this.deleteBackup.bind(this);
    this.restoreBackup = this.restoreBackup.bind(this);
    this.showConfirmRestore = this.showConfirmRestore.bind(this);
    this.closeConfirmRestore = this.closeConfirmRestore.bind(this);
    this.showConfirmBackup = this.showConfirmBackup.bind(this);
    this.closeConfirmBackup = this.closeConfirmBackup.bind(this);
    this.showConfirmBackupDelete = this.showConfirmBackupDelete.bind(this);
    this.closeConfirmBackupDelete = this.closeConfirmBackupDelete.bind(this);
    this.handleShowBackupModal = this.handleShowBackupModal.bind(this);
    this.closeBackupModal = this.closeBackupModal.bind(this);
    this.validateBackup = this.validateBackup.bind(this);
    this.closeConfirmRestoreReplace = this.closeConfirmRestoreReplace.bind(this);
  }

  closeExportModal() {
    this.setState({
      showExportModal: false
    });
  }

  handleShowBackupModal() {
    this.setState({
      showBackupModal: true,
      backupSpinning: false,
      backupName: "",
      modalChecked: false,
      modalSpinning: false
    });
  }

  closeBackupModal() {
    this.setState({
      showBackupModal: false
    });
  }

  showConfirmBackup(name) {
    // call deleteLDIF
    this.setState({
      showConfirmBackup: true,
      backupName: name,
      modalChecked: false,
      modalSpinning: false
    });
  }

  closeConfirmBackup() {
    // call importLDIF
    this.setState({
      showConfirmBackup: false
    });
  }

  showConfirmRestore(name) {
    this.setState({
      showConfirmRestore: true,
      backupName: name,
      modalChecked: false,
      modalSpinning: false
    });
  }

  closeConfirmRestore() {
    // call importLDIF
    this.setState({
      showConfirmRestore: false,
      modalSpinning: false,
      modalChecked: false
    });
  }

  showConfirmBackupDelete(name) {
    // calls deleteBackup
    this.setState({
      showConfirmBackupDelete: true,
      backupName: name,
      modalChecked: false,
      modalSpinning: false
    });
  }

  closeConfirmBackupDelete() {
    // call importLDIF
    this.setState({
      showConfirmBackupDelete: false
    });
  }

  closeConfirmRestoreReplace() {
    this.setState({
      showConfirmRestoreReplace: false
    });
  }

  validateBackup() {
    for (var i = 0; i < this.props.backups.length; i++) {
      if (this.state.backupName === this.props.backups[i].name) {
        this.setState({
          showConfirmRestoreReplace: true
        });
        return;
      }
    }

    this.doBackup();
  }

  doBackup() {
    this.setState({
      backupSpinning: true
    });
    var cmd = ["dsctl", "-j", this.props.serverId, "status"];
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true
    }).done(status_data => {
      var status_json = JSON.parse(status_data);

      if (status_json.running === true) {
        var _cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backup", "create"];

        if (this.state.backupName !== "") {
          if ((0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.bad_file_name)(this.state.backupName)) {
            this.props.addNotification("warning", "Backup name should not be a path.  All backups are stored in the server's backup directory");
            return;
          }

          _cmd.push(this.state.backupName);
        }

        (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)("doBackup", "Add backup task online", _cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(_cmd, {
          superuser: true,
          err: "message"
        }).done(content => {
          this.props.reload();
          this.closeBackupModal();
          var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get", "nsslapd-bakdir"];
          (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)("doBackup", "Get the backup directory", cmd);
          cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
            superuser: true,
            err: "message"
          }).done(content => {
            var config = JSON.parse(content);
            var attrs = config.attrs;
            this.props.addNotification("success", "Server has been backed up. You can find the backup in ".concat(attrs['nsslapd-bakdir'][0], " directory on the server machine."));
          }).fail(err => {
            var errMsg = JSON.parse(err);
            this.props.addNotification("success", "Server has been backed up.");
            this.props.addNotification("error", "Error while trying to get the server's backup directory- ".concat(errMsg.desc));
          });
        }).fail(err => {
          var errMsg = JSON.parse(err);
          this.props.reload();
          this.closeBackupModal();
          this.props.addNotification("error", "Failure backing up server - ".concat(errMsg.desc));
        });
      } else {
        var _cmd2 = ["dsctl", "-j", this.props.serverId, "db2bak"];

        if (this.state.backupName !== "") {
          if ((0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.bad_file_name)(this.state.backupName)) {
            this.props.addNotification("warning", "Backup name should not be a path.  All backups are stored in the server's backup directory");
            return;
          }

          _cmd2.push(this.state.backupName);
        }

        (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)("doBackup", "Doing backup of the server offline", _cmd2);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(_cmd2, {
          superuser: true
        }).done(content => {
          this.props.reload();
          this.closeBackupModal();
          this.props.addNotification("success", "Server has been backed up");
        }).fail(err => {
          var errMsg = JSON.parse(err);
          this.props.reload();
          this.closeBackupModal();
          this.props.addNotification("error", "Failure backing up server - ".concat(errMsg.desc));
        });
      }
    }).fail(err => {
      var errMsg = JSON.parse(err);
      console.log("Failed to check the server status", errMsg.desc);
    });
  }

  restoreBackup() {
    this.setState({
      modalSpinning: true
    });
    var cmd = ["dsctl", "-j", this.props.serverId, "status"];
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true
    }).done(status_data => {
      var status_json = JSON.parse(status_data);

      if (status_json.running === true) {
        var _cmd3 = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backup", "restore", this.state.backupName];
        (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)("restoreBackup", "Restoring server online", _cmd3);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(_cmd3, {
          superuser: true,
          err: "message"
        }).done(content => {
          this.closeConfirmRestore();
          this.props.addNotification("success", "Server has been restored");
        }).fail(err => {
          var errMsg = JSON.parse(err);
          this.closeConfirmRestore();
          this.props.addNotification("error", "Failure restoring up server - ".concat(errMsg.desc));
        });
      } else {
        var _cmd4 = ["dsctl", "-j", this.props.serverId, "bak2db", this.state.backupName];
        (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)("restoreBackup", "Restoring server offline", _cmd4);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(_cmd4, {
          superuser: true,
          err: "message"
        }).done(content => {
          this.closeRestoreSpinningModal();
          this.props.addNotification("success", "Server has been restored");
        }).fail(err => {
          var errMsg = JSON.parse(err);
          this.closeRestoreSpinningModal();
          this.props.addNotification("error", "Failure restoring up server - ".concat(errMsg.desc));
        });
      }
    }).fail(err => {
      var errMsg = JSON.parse(err);
      console.log("Failed to check the server status", errMsg.desc);
    });
  }

  deleteBackup(e) {
    this.setState({
      modalSpinning: true
    });
    var cmd = ["dsctl", "-j", this.props.serverId, "backups", "--delete", this.state.backupName];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)("deleteBackup", "Deleting backup", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload();
      this.setState({
        modalSpinning: false
      });
      this.props.addNotification("success", "Backup was successfully deleted");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.reload();
      this.setState({
        modalSpinning: false
      });
      this.props.addNotification("error", "Failure deleting backup - ".concat(errMsg.desc));
    });
  }

  handleNavSelect(key) {
    this.setState({
      activeKey: key
    });
  }

  onModalChange(e) {
    var value = e.target.type === "checkbox" ? e.target.checked : e.target.value;
    var valueErr = false;
    var errObj = this.state.errObj;

    if (value === "") {
      valueErr = true;
    }

    errObj[e.target.id] = valueErr;
    this.setState({
      [e.target.id]: value,
      errObj: errObj
    });
  }

  render() {
    var _this$props5 = this.props,
        showModal = _this$props5.showModal,
        closeHandler = _this$props5.closeHandler,
        backups = _this$props5.backups;
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ModalVariant.medium,
      title: "Manage Backups",
      "aria-labelledby": "ds-modal",
      isOpen: showModal,
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Button, {
        key: "confirm",
        variant: "primary",
        onClick: this.handleShowBackupModal
      }, "Create Backup")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_database_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__.BackupTable, {
      className: "ds-margin-top-xlg",
      rows: backups,
      key: backups,
      confirmRestore: this.showConfirmRestore,
      confirmDelete: this.showConfirmBackupDelete
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_database_backups_jsx__WEBPACK_IMPORTED_MODULE_4__.BackupModal, {
      showModal: this.state.showBackupModal,
      closeHandler: this.closeBackupModal,
      handleChange: this.onModalChange,
      saveHandler: this.validateBackup,
      spinning: this.state.backupSpinning,
      error: this.state.errObj
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmRestore,
      closeHandler: this.closeConfirmRestore,
      handleChange: this.onModalChange,
      actionHandler: this.restoreBackup,
      spinning: this.state.modalSpinning,
      item: this.state.backupName,
      checked: this.state.modalChecked,
      mTitle: "Restore Backup",
      mMsg: "Are you sure you want to restore this backup?",
      mSpinningMsg: "Restoring ...",
      mBtnName: "Restore Backup"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmBackupDelete,
      closeHandler: this.closeConfirmBackupDelete,
      handleChange: this.onModalChange,
      actionHandler: this.deleteBackup,
      spinning: this.state.modalSpinning,
      item: this.state.backupName,
      checked: this.state.modalChecked,
      mTitle: "Delete Backup",
      mMsg: "Are you sure you want to delete this backup?",
      mSpinningMsg: "Deleting ...",
      mBtnName: "Delete Backup"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmRestoreReplace,
      closeHandler: this.closeConfirmRestoreReplace,
      handleChange: this.onModalChange,
      actionHandler: this.deleteBackup,
      spinning: this.state.modalSpinning,
      item: this.state.doBackup,
      checked: this.state.modalChecked,
      mTitle: "Replace Existing Backup",
      mMsg: " backup already eixsts with the same name, do you want to replace it?",
      mSpinningMsg: "Replacing ...",
      mBtnName: "Replace Backup"
    }));
  }

} // Proptyes and defaults

CreateInstanceModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  loadInstanceList: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func)
};
CreateInstanceModal.defaultProps = {
  showModal: false
};
SchemaReloadModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().string)
};
SchemaReloadModal.defaultProps = {
  showModal: false,
  serverId: ""
};
ManageBackupsModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().string)
};
ManageBackupsModal.defaultProps = {
  showModal: false,
  serverId: ""
};

/***/ }),

/***/ "./src/lib/database/attrEncryption.jsx":
/*!*********************************************!*\
  !*** ./src/lib/database/attrEncryption.jsx ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "AttrEncryption": () => (/* binding */ AttrEncryption)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./databaseTables.jsx */ "./src/lib/database/databaseTables.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }








class AttrEncryption extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "onSelect", (event, selection) => {
      if (this.state.addAttr.includes(selection)) {
        this.setState(prevState => ({
          addAttr: prevState.addAttr.filter(item => item !== selection),
          isSelectOpen: false
        }));
      } else {
        this.setState(prevState => ({
          addAttr: [...prevState.addAttr, selection],
          isSelectOpen: false
        }));
      }
    });

    _defineProperty(this, "onSelectToggle", isSelectOpen => {
      this.setState({
        isSelectOpen
      });
    });

    _defineProperty(this, "onSelectClear", () => {
      this.setState({
        addAttr: "",
        isSelectOpen: false
      });
    });

    this.state = {
      showConfirmAttrDelete: false,
      addAttr: "",
      delAttr: "",
      isSelectOpen: false,
      modalSpinning: false,
      modalChecked: false,
      saving: false
    }; // Delete referral and confirmation

    this.showConfirmAttrDelete = this.showConfirmAttrDelete.bind(this);
    this.closeConfirmAttrDelete = this.closeConfirmAttrDelete.bind(this);
    this.addEncryptedAttr = this.addEncryptedAttr.bind(this);
    this.delEncryptedAttr = this.delEncryptedAttr.bind(this);
    this.handleModalChange = this.handleModalChange.bind(this); // Select Typeahead

    this.onSelect = this.onSelect.bind(this);
    this.onSelectToggle = this.onSelectToggle.bind(this);
    this.onSelectClear = this.onSelectClear.bind(this);
  }

  handleModalChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [e.target.id]: value
    });
  }

  showConfirmAttrDelete(name) {
    this.setState({
      showConfirmAttrDelete: true,
      delAttr: name,
      modalChecked: false,
      modalSpinning: false
    });
  }

  closeConfirmAttrDelete() {
    this.setState({
      showConfirmAttrDelete: false,
      modalSpinning: false,
      modalChecked: false
    });
  }

  addEncryptedAttr() {
    this.setState({
      saving: true
    }); // Add the new encrypted attr

    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "attr-encrypt", "--add-attr=" + this.state.addAttr, this.props.suffix];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("addEncryptedAttr", "Delete suffix referral", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload(this.props.suffix);
      this.props.addNotification("success", "Successfully added encrypted attribute");
      this.setState({
        saving: false,
        addAttr: ""
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.reload(this.props.suffix);
      this.props.addNotification("error", "Failed to add encrypted attribute - ".concat(errMsg.desc));
      this.setState({
        saving: false,
        addAttr: ""
      });
    });
  }

  delEncryptedAttr() {
    this.setState({
      modalSpinning: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "attr-encrypt", "--del-attr=" + this.state.delAttr, this.props.suffix];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("delEncryptedAttr", "Delete encrypted attribute", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload(this.props.suffix);
      this.props.addNotification("success", "Encrypted attribute successfully deleted");
      this.closeConfirmAttrDelete();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.reload(this.props.suffix);
      this.props.addNotification("error", "Failure deleting encrypted attribute - ".concat(errMsg.desc));
      this.closeConfirmAttrDelete();
    });
  }

  render() {
    var _this$state = this.state,
        addAttr = _this$state.addAttr,
        saving = _this$state.saving,
        isSelectOpen = _this$state.isSelectOpen,
        modalSpinning = _this$state.modalSpinning; // Update the available list of attrs for the Typeahead

    var fullList = [];
    var attrs = [];

    var _iterator = _createForOfIteratorHelper(this.props.rows),
        _step;

    try {
      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        var attrProp = _step.value;
        fullList.push(attrProp.name);
      }
    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }

    var _iterator2 = _createForOfIteratorHelper(this.props.attrs),
        _step2;

    try {
      for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
        var attr = _step2.value;

        if (fullList.indexOf(attr) == -1) {
          attrs.push(attr);
        }
      }
    } catch (err) {
      _iterator2.e(err);
    } finally {
      _iterator2.f();
    }

    var saveBtnName = "Add Attribute";
    var extraPrimaryProps = {};

    if (saving) {
      saveBtnName = "Adding Attribute ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: saving || modalSpinning ? "ds-margin-top-lg ds-disabled" : "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__.EncryptedAttrTable, {
      key: this.props.rows,
      rows: this.props.rows,
      deleteAttr: this.showConfirmAttrDelete
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.SelectVariant.typeahead,
      onToggle: this.onSelectToggle,
      onSelect: this.onSelect,
      onClear: this.onSelectClear,
      selections: addAttr,
      isOpen: isSelectOpen,
      "aria-labelledby": "typeAhead-AttrEnc",
      placeholderText: "Type attribute name to be encrypted",
      noResultsFoundText: "There are no matching entries"
    }, attrs.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.SelectOption, {
      key: index,
      value: attr
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3,
      className: "ds-no-padding"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Button, _extends({
      className: "ds-left-margin",
      variant: "primary",
      onClick: this.addEncryptedAttr,
      isLoading: saving,
      isDisabled: addAttr == "",
      spinnerAriaValueText: this.state.saving ? "Saving" : undefined
    }, extraPrimaryProps), saveBtnName))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmAttrDelete,
      closeHandler: this.closeConfirmAttrDelete,
      handleChange: this.handleModalChange,
      actionHandler: this.delEncryptedAttr,
      spinning: this.state.modalSpinning,
      item: this.state.delAttr,
      checked: this.state.modalChecked,
      mTitle: "Remove Attribute Encryption",
      mMsg: "Are you sure you want to remove this encrypted attribute?",
      mSpinningMsg: "Deleting ...",
      mBtnName: "Delete"
    }));
  }

} // Property types and defaults

AttrEncryption.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array),
  suffix: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func),
  attrs: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array),
  reload: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)
};
AttrEncryption.defaultProps = {
  rows: [],
  suffix: "",
  serverId: "",
  attrs: []
};

/***/ }),

/***/ "./src/lib/database/backups.jsx":
/*!**************************************!*\
  !*** ./src/lib/database/backups.jsx ***!
  \**************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Backups": () => (/* binding */ Backups),
/* harmony export */   "BackupModal": () => (/* binding */ BackupModal),
/* harmony export */   "ImportingModal": () => (/* binding */ ImportingModal)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./databaseTables.jsx */ "./src/lib/database/databaseTables.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_21__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }








class Backups extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      activeTabKey: 0,
      showConfirmBackupDelete: false,
      showConfirmBackup: false,
      showConfirmRestoreReplace: false,
      showConfirmLDIFReplace: false,
      showRestoreSpinningModal: false,
      showDelBackupSpinningModal: false,
      showBackupModal: false,
      backupSpinning: false,
      backupName: "",
      deleteBackup: "",
      // LDIF
      showConfirmLDIFDelete: false,
      showConfirmLDIFImport: false,
      showConfirmRestore: false,
      showLDIFSpinningModal: false,
      showLDIFDeleteSpinningModal: false,
      showExportModal: false,
      exportSpinner: false,
      includeReplData: false,
      ldifName: "",
      ldifSuffix: "",
      errObj: {},
      modalSpinning: false,
      modalChecked: false
    };

    this.handleNavSelect = (event, tabIndex) => {
      this.setState({
        activeTabKey: tabIndex
      });
    };

    this.handleChange = this.handleChange.bind(this);
    this.handleConfirmChange = this.handleConfirmChange.bind(this); // Backups

    this.doBackup = this.doBackup.bind(this);
    this.deleteBackup = this.deleteBackup.bind(this);
    this.restoreBackup = this.restoreBackup.bind(this);
    this.showConfirmRestore = this.showConfirmRestore.bind(this);
    this.closeConfirmRestore = this.closeConfirmRestore.bind(this);
    this.showConfirmBackup = this.showConfirmBackup.bind(this);
    this.closeConfirmBackup = this.closeConfirmBackup.bind(this);
    this.showConfirmBackupDelete = this.showConfirmBackupDelete.bind(this);
    this.closeConfirmBackupDelete = this.closeConfirmBackupDelete.bind(this);
    this.showBackupModal = this.showBackupModal.bind(this);
    this.closeBackupModal = this.closeBackupModal.bind(this);
    this.validateBackup = this.validateBackup.bind(this);
    this.closeConfirmRestoreReplace = this.closeConfirmRestoreReplace.bind(this); // LDIFS

    this.importLDIF = this.importLDIF.bind(this);
    this.deleteLDIF = this.deleteLDIF.bind(this);
    this.showConfirmLDIFImport = this.showConfirmLDIFImport.bind(this);
    this.closeConfirmLDIFImport = this.closeConfirmLDIFImport.bind(this);
    this.showConfirmLDIFDelete = this.showConfirmLDIFDelete.bind(this);
    this.closeConfirmLDIFDelete = this.closeConfirmLDIFDelete.bind(this);
    this.doExport = this.doExport.bind(this);
    this.showExportModal = this.showExportModal.bind(this);
    this.closeExportModal = this.closeExportModal.bind(this);
    this.validateLDIF = this.validateLDIF.bind(this);
    this.closeConfirmLDIFReplace = this.closeConfirmLDIFReplace.bind(this);
  }

  componentDidMount() {
    this.props.enableTree();
  }

  showExportModal() {
    this.setState({
      showExportModal: true,
      exportSpinner: false,
      ldifName: "",
      ldifSuffix: this.props.suffixes[0],
      includeReplData: false
    });
  }

  closeExportModal() {
    this.setState({
      showExportModal: false
    });
  }

  closeConfirmLDIFReplace() {
    this.setState({
      showConfirmLDIFReplace: false
    });
  }

  showRestoreSpinningModal() {
    this.setState({
      showRestoreSpinningModal: true
    });
  }

  closeRestoreSpinningModal() {
    this.setState({
      showRestoreSpinningModal: false
    });
  }

  showBackupModal() {
    this.setState({
      showBackupModal: true,
      backupSpinning: false,
      backupName: ""
    });
  }

  closeBackupModal() {
    this.setState({
      showBackupModal: false
    });
  }

  showConfirmLDIFImport(name, suffix) {
    this.setState({
      showConfirmLDIFImport: true,
      ldifName: name,
      ldifSuffix: suffix,
      modalSpinning: false,
      modalChecked: false
    });
  }

  closeConfirmLDIFImport() {
    // call importLDIF
    this.setState({
      showConfirmLDIFImport: false,
      modalSpinning: false,
      modalChecked: false
    });
  }

  showConfirmLDIFDelete(name) {
    // call deleteLDIF
    this.setState({
      showConfirmLDIFDelete: true,
      ldifName: name,
      modalSpinning: false,
      modalChecked: false
    });
  }

  closeConfirmLDIFDelete() {
    // call importLDIF
    this.setState({
      showConfirmLDIFDelete: false,
      modalSpinning: false,
      modalChecked: false
    });
  }

  showConfirmBackup(name) {
    // call deleteLDIF
    this.setState({
      showConfirmBackup: true,
      backupName: name,
      modalSpinning: false,
      modalChecked: false
    });
  }

  closeConfirmBackup() {
    // call importLDIF
    this.setState({
      showConfirmBackup: false,
      modalSpinning: false,
      modalChecked: false
    });
  }

  showConfirmRestore(name) {
    this.setState({
      showConfirmRestore: true,
      backupName: name,
      modalSpinning: false,
      modalChecked: false
    });
  }

  closeConfirmRestore() {
    // call importLDIF
    this.setState({
      showConfirmRestore: false,
      modalSpinning: false,
      modalChecked: false
    });
  }

  showConfirmBackupDelete(name) {
    // calls deleteBackup
    this.setState({
      showConfirmBackupDelete: true,
      backupName: name,
      modalSpinning: false,
      modalChecked: false
    });
  }

  closeConfirmBackupDelete() {
    // call importLDIF
    this.setState({
      showConfirmBackupDelete: false,
      modalSpinning: false,
      modalChecked: false
    });
  }

  closeConfirmRestoreReplace() {
    this.setState({
      showConfirmRestoreReplace: false,
      modalSpinning: false,
      modalChecked: false
    });
  }

  handleConfirmChange(e) {
    this.setState({
      modalChecked: e.target.checked
    });
  }

  importLDIF() {
    this.setState({
      modalSpinning: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "import", this.state.ldifSuffix, this.state.ldifName, "--encrypted"];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("importLDIF", "Importing LDIF", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.closeConfirmLDIFImport();
      this.props.addNotification("success", "LDIF was successfully imported");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.closeConfirmLDIFImport();
      this.props.addNotification("error", "Failure importing LDIF - ".concat(errMsg.desc));
    });
  }

  deleteLDIF(e) {
    this.setState({
      modalSpinning: true
    });
    var cmd = ["dsctl", this.props.serverId, "ldifs", "--delete", this.state.ldifName];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("deleteLDIF", "Deleting LDIF", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload();
      this.closeConfirmLDIFDelete();
      this.props.addNotification("success", "LDIF file was successfully deleted");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.reload();
      this.closeConfirmLDIFDelete();
      this.props.addNotification("error", "Failure deleting LDIF file - ".concat(errMsg.desc));
    });
  }

  validateBackup() {
    for (var i = 0; i < this.props.backups.length; i++) {
      if (this.state.backupName == this.props.backups[i].name) {
        this.setState({
          showConfirmRestoreReplace: true
        });
        return;
      }
    }

    this.doBackup();
  }

  doBackup() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backup", "create"];

    if (this.state.backupName != "") {
      if ((0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.bad_file_name)(this.state.backupName)) {
        this.props.addNotification("warning", "Backup name should not be a path.  All backups are stored in the server's backup directory");
        return;
      }

      cmd.push(this.state.backupName);
    }

    this.setState({
      backupSpinning: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("doBackup", "Add backup task", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload();
      this.closeBackupModal();
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get", "nsslapd-bakdir"];
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("doBackup", "Get the backup directory", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        var config = JSON.parse(content);
        var attrs = config.attrs;
        this.props.addNotification("success", "Server has been backed up. You can find the backup in ".concat(attrs['nsslapd-bakdir'][0], " directory on the server machine."));
      }).fail(err => {
        var errMsg = JSON.parse(err);
        this.props.addNotification("success", "Server has been backed up.");
        this.props.addNotification("error", "Error while trying to get the server's backup directory- ".concat(errMsg.desc));
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.reload();
      this.closeBackupModal();
      this.props.addNotification("error", "Failure backing up server - ".concat(errMsg.desc));
    });
  }

  restoreBackup() {
    if (this.props.suffixes.length == 0) {
      this.props.addNotification("error", "There are no databases defined to restore");
      return;
    }

    this.setState({
      modalSpinning: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backup", "restore", this.state.backupName];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("restoreBackup", "Restoring server", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.closeConfirmRestore();
      this.props.addNotification("success", "Server has been restored");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.closeRestoreSpinningModal();
      this.props.addNotification("error", "Failure restoring up server - ".concat(errMsg.desc));
    });
  }

  deleteBackup(e) {
    // Show confirmation
    this.setState({
      modalSpinning: true
    });
    var cmd = ["dsctl", this.props.serverId, "backups", "--delete", this.state.backupName];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("deleteBackup", "Deleting backup", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload();
      this.closeConfirmBackupDelete();
      this.props.addNotification("success", "Backup was successfully deleted");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.reload();
      this.closeConfirmBackupDelete();
      this.props.addNotification("error", "Failure deleting backup - ".concat(errMsg.desc));
    });
  }

  handleChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var valueErr = false;
    var errObj = this.state.errObj;

    if (value == "") {
      valueErr = true;
    }

    errObj[e.target.id] = valueErr;
    this.setState({
      [e.target.id]: value,
      errObj: errObj
    });
  }

  validateLDIF() {
    var ldifname = this.state.ldifName;

    if (!ldifname.endsWith(".ldif")) {
      // dsconf/dsctl adds ".ldif" if not set, so that's what we need to check
      ldifname = ldifname + ".ldif";
    }

    for (var i = 0; i < this.props.ldifs.length; i++) {
      if (ldifname == this.props.ldifs[i].name) {
        this.setState({
          showConfirmLDIFReplace: true
        });
        return;
      }
    }

    this.doExport();
  }

  doExport() {
    var missingArgs = {
      ldifName: false
    };

    if (this.state.ldifName == "") {
      this.props.addNotification("warning", "LDIF name is empty");
      missingArgs.ldifName = true;
      this.setState({
        errObj: missingArgs
      });
      return;
    } // Must not be a path


    if ((0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.bad_file_name)(this.state.ldifName)) {
      this.props.addNotification("warning", "LDIF name should not be a path.  All export files are stored in the server's LDIF directory");
      missingArgs.ldifLocation = true;
      this.setState({
        errObj: missingArgs
      });
      return;
    } // Do import


    var export_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "export", this.state.ldifSuffix, "--encrypted", "--ldif=" + this.state.ldifName];

    if (this.state.includeReplData) {
      export_cmd.push("--replication");
    }

    this.setState({
      exportSpinner: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("doExport", "Do online export", export_cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(export_cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload();
      this.closeExportModal();
      this.setState({
        showExportModal: false
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get", "nsslapd-ldifdir"];
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("doExport", "Get the backup directory", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        var config = JSON.parse(content);
        var attrs = config.attrs;
        this.props.addNotification("success", "Database export complete. You can find the LDIF file in ".concat(attrs['nsslapd-ldifdir'][0], " directory on the server machine."));
      }).fail(err => {
        var errMsg = JSON.parse(err);
        this.props.addNotification("success", "Database export complete.");
        this.props.addNotification("error", "Error while trying to get the server's LDIF directory- ".concat(errMsg.desc));
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.reload();
      this.closeExportModal();
      this.props.addNotification("error", "Error exporting database - ".concat(errMsg.desc));
      this.setState({
        showExportModal: false
      });
    });
  }

  render() {
    var refreshBtnName = "Refresh";
    var extraPrimaryProps = {};

    if (this.props.refreshing) {
      refreshBtnName = "Refreshing ...";
      extraPrimaryProps.spinnerAriaValueText = "Refreshing";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Text, {
      className: "ds-config-header",
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextVariants.h3
    }, "Database Backups & LDIFs")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Tabs, {
      className: "ds-margin-top-lg",
      activeKey: this.state.activeTabKey,
      onSelect: this.handleNavSelect
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Tab, {
      eventKey: 0,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TabTitleText, null, "Backups ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("font", {
        size: "2"
      }, "(", this.props.backups.length, ")"))
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__.BackupTable, {
      key: this.props.backups,
      rows: this.props.backups,
      confirmRestore: this.showConfirmRestore,
      confirmDelete: this.showConfirmBackupDelete
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-inline"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Button, {
      variant: "primary",
      onClick: this.showBackupModal,
      className: "ds-margin-top"
    }, "Create Backup"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Button, _extends({
      variant: "secondary",
      onClick: () => {
        this.props.reload(1);
      },
      className: "ds-left-margin ds-margin-top",
      isLoading: this.props.refreshing,
      spinnerAriaValueText: this.props.refreshing ? "Refreshing" : undefined
    }, extraPrimaryProps), refreshBtnName)))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Tab, {
      eventKey: 1,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TabTitleText, null, "LDIFs ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("font", {
        size: "2"
      }, "(", this.props.ldifs.length, ")"))
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__.LDIFManageTable, {
      key: this.props.ldifs,
      rows: this.props.ldifs,
      confirmImport: this.showConfirmLDIFImport,
      confirmDelete: this.showConfirmLDIFDelete
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-inline"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Button, {
      variant: "primary",
      onClick: this.showExportModal,
      className: "ds-margin-top"
    }, "Create LDIF"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Button, _extends({
      variant: "secondary",
      onClick: this.props.reload,
      className: "ds-left-margin ds-margin-top",
      isLoading: this.props.refreshing,
      spinnerAriaValueText: this.props.refreshing ? "Refreshing" : undefined
    }, extraPrimaryProps), refreshBtnName))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(ExportModal, {
      showModal: this.state.showExportModal,
      closeHandler: this.closeExportModal,
      handleChange: this.handleChange,
      saveHandler: this.validateLDIF,
      spinning: this.state.exportSpinner,
      error: this.state.errObj,
      suffixes: this.props.suffixes,
      includeReplData: this.state.includeReplData
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(BackupModal, {
      showModal: this.state.showBackupModal,
      closeHandler: this.closeBackupModal,
      handleChange: this.handleChange,
      saveHandler: this.validateBackup,
      spinning: this.state.backupSpinning,
      error: this.state.errObj
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(ImportingModal, {
      showModal: this.state.showLDIFSpinningModal,
      closeHandler: this.closeLDIFSpinningModal,
      msg: this.state.ldifName
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmLDIFDelete,
      closeHandler: this.closeConfirmLDIFDelete,
      handleChange: this.handleConfirmChange,
      actionHandler: this.deleteLDIF,
      spinning: this.state.modalSpinning,
      item: this.state.ldifName,
      checked: this.state.modalChecked,
      mTitle: "Delete LDIF File",
      mMsg: "Are you sure you want to delete this LDIF?",
      mSpinningMsg: "Deleting LDIF ...",
      mBtnName: "Delete LDIF"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmLDIFImport,
      closeHandler: this.closeConfirmLDIFImport,
      handleChange: this.handleConfirmChange,
      actionHandler: this.importLDIF,
      spinning: this.state.modalSpinning,
      item: this.state.ldifName,
      checked: this.state.modalChecked,
      mTitle: "Import LDIF File",
      mMsg: "Are you sure you want to import this LDIF?",
      mSpinningMsg: "Importing LDIF ...",
      mBtnName: "Import LDIF"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmRestore,
      closeHandler: this.closeConfirmRestore,
      handleChange: this.handleConfirmChange,
      actionHandler: this.restoreBackup,
      spinning: this.state.modalSpinning,
      item: this.state.backupName,
      checked: this.state.modalChecked,
      mTitle: "Restore Database",
      mMsg: "Are you sure you want to restore from this backup?",
      mSpinningMsg: "Restoring ...",
      mBtnName: "Restore"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmBackupDelete,
      closeHandler: this.closeConfirmBackupDelete,
      handleChange: this.handleConfirmChange,
      actionHandler: this.deleteBackup,
      spinning: this.state.modalSpinning,
      item: this.state.backupName,
      checked: this.state.modalChecked,
      mTitle: "Delete Backup",
      mMsg: "Are you sure you want to delete this backup?",
      mSpinningMsg: "Deleting backup ...",
      mBtnName: "Delete Backup"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmRestoreReplace,
      closeHandler: this.closeConfirmRestoreReplace,
      handleChange: this.handleConfirmChange,
      actionHandler: this.doBackup,
      spinning: this.state.modalSpinning,
      item: this.state.backupName,
      checked: this.state.modalChecked,
      mTitle: "Replace Existing Backup",
      mMsg: "A backup already eixsts with the same name, do you want to replace it?",
      mSpinningMsg: "Replacing backup ...",
      mBtnName: "Replace Backup"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmLDIFReplace,
      closeHandler: this.closeConfirmLDIFReplace,
      handleChange: this.handleConfirmChange,
      actionHandler: this.doExport,
      spinning: this.state.modalSpinning,
      item: this.state.ldifName,
      checked: this.state.modalChecked,
      mTitle: "Replace Existing LDIF File",
      mMsg: "A LDIF file already exists with the same name, do you want to replace it?",
      mSpinningMsg: "Replacing LDIF ...",
      mBtnName: "Replace LDIF"
    }));
  }

}

class ExportModal extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  render() {
    var _this$props = this.props,
        showModal = _this$props.showModal,
        closeHandler = _this$props.closeHandler,
        handleChange = _this$props.handleChange,
        saveHandler = _this$props.saveHandler,
        suffixes = _this$props.suffixes,
        spinning = _this$props.spinning,
        error = _this$props.error;
    var createBtnName = "Create LDIF";
    var extraPrimaryProps = {};
    var exportMsg = "";

    if (spinning) {
      createBtnName = "Creating ...";
      extraPrimaryProps.spinnerAriaValueText = "Creating";
    }

    if (spinning) {
      exportMsg = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("font", {
        size: "2"
      }, "(You can safely close this window)"));
    }

    var suffixList = suffixes.map(suffix => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: suffix,
      value: suffix,
      label: suffix
    }));
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ModalVariant.medium,
      title: "Export Database To LDIF File",
      isOpen: showModal,
      "aria-labelledby": "ds-modal",
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Button, _extends({
        key: "confirm",
        variant: "primary",
        onClick: saveHandler,
        isLoading: spinning,
        spinnerAriaValueText: spinning ? "Creating ..." : undefined
      }, extraPrimaryProps), createBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Select Suffix"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.FormSelect, {
      id: "ldifSuffix",
      onChange: (value, event) => {
        handleChange(event);
      },
      "aria-label": "FormSelect Input"
    }, suffixList))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Grid, {
      title: "Name of exported LDIF file, if left blank the data and time will be used as the file name"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.GridItem, {
      className: "ds-label",
      span: 3
    }, "LDIF File Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.TextInput, {
      type: "text",
      id: "ldifName",
      "aria-describedby": "horizontal-form-name-helper",
      name: "ldifName",
      onChange: (value, event) => {
        handleChange(event);
      },
      validated: error.ldifName ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Grid, {
      title: "Name of exported LDIF file, if left blank the data and time will be used as the file name"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Checkbox, {
      id: "includeReplData",
      className: "ds-indent ds-margin-top",
      isChecked: this.props.includeReplData,
      onChange: (checked, e) => {
        handleChange(e);
      },
      title: "Include the replication metadata needed to restore or initialize another replica.",
      label: "Include Replication Data"
    }))), exportMsg));
  }

}

class BackupModal extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  render() {
    var _this$props2 = this.props,
        showModal = _this$props2.showModal,
        closeHandler = _this$props2.closeHandler,
        handleChange = _this$props2.handleChange,
        saveHandler = _this$props2.saveHandler,
        spinning = _this$props2.spinning,
        error = _this$props2.error;
    var createBtnName = "Create Backup";
    var extraPrimaryProps = {};
    var exportMsg = "";

    if (spinning) {
      createBtnName = "Backing up ...";
      extraPrimaryProps.spinnerAriaValueText = "Backing up";
    }

    if (spinning) {
      exportMsg = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("font", {
        size: "2"
      }, "(You can safely close this window)"));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ModalVariant.medium,
      title: "Backup The Server",
      isOpen: showModal,
      "aria-labelledby": "ds-modal",
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Button, _extends({
        key: "confirm",
        variant: "primary",
        onClick: saveHandler,
        isLoading: spinning,
        spinnerAriaValueText: spinning ? "Creating ..." : undefined
      }, extraPrimaryProps), createBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Grid, {
      title: "Backup name, if left blank the date and time will be used as the name",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Backup Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.TextInput, {
      type: "text",
      id: "backupName",
      "aria-describedby": "horizontal-form-name-helper",
      name: "ldifName",
      onChange: (value, event) => {
        handleChange(event);
      },
      validated: error.backupName ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions["default"]
    }))), exportMsg));
  }

}
class ImportingModal extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  render() {
    var _this$props3 = this.props,
        showModal = _this$props3.showModal,
        closeHandler = _this$props3.closeHandler,
        msg = _this$props3.msg;
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ModalVariant.small,
      title: "Import LDIF File",
      isOpen: showModal,
      "aria-labelledby": "ds-modal",
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Close")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Form, {
      horizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-modal-spinner"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Spinner, {
      size: "md"
    }), " Importing LDIF ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, msg), " ...", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("p", {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("font", {
      size: "2"
    }, " (You can safely close this window)")))));
  }

} // Properties and defaults

ExportModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func),
  handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func),
  saveHandler: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func),
  spinning: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().bool),
  error: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().object),
  suffixes: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().array)
};
BackupModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func),
  handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func),
  saveHandler: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func),
  spinning: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().bool),
  error: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().object)
};
ImportingModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func),
  msg: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().string)
};
Backups.propTypes = {
  backups: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().array),
  ldifs: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().array),
  reload: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func),
  enableTree: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func)
};
Backups.defaultProps = {
  backups: [],
  ldifs: []
};

/***/ }),

/***/ "./src/lib/database/chaining.jsx":
/*!***************************************!*\
  !*** ./src/lib/database/chaining.jsx ***!
  \***************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ChainingDatabaseConfig": () => (/* binding */ ChainingDatabaseConfig),
/* harmony export */   "ChainingConfig": () => (/* binding */ ChainingConfig),
/* harmony export */   "ChainControlsModal": () => (/* binding */ ChainControlsModal),
/* harmony export */   "ChainCompsModal": () => (/* binding */ ChainCompsModal)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleListItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleList.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/ExpandableSection/ExpandableSection.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_25__);
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }








 //
// This component is the global chaining & default configuration
//

class ChainingDatabaseConfig extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      activeTabKey: this.props.activeKey,
      oids: this.props.data.oids,
      oidList: this.props.data.oidList,
      availableOids: this.props.data.availableOids,
      comps: this.props.data.comps,
      compList: this.props.data.compList,
      availableComps: this.props.data.availableComps,
      selectedOid: "",
      selectedComp: "",
      removeOid: "",
      removeComp: "",
      showConfirmCompDelete: false,
      showConfirmOidDelete: false,
      showOidModal: false,
      showCompsModal: false,
      isExpanded: false,
      saveBtnDisabled: true,
      isOpen: false,
      isModalSelectOpen: false,
      modalChecked: false,
      modalSpinning: false,
      // Chaining config settings
      defSearchCheck: this.props.data.defSearchCheck[0],
      defBindConnLimit: this.props.data.defBindConnLimit[0],
      defBindTimeout: this.props.data.defBindTimeout[0],
      defBindRetryLimit: this.props.data.defBindRetryLimit[0],
      defConcurLimit: this.props.data.defConcurLimit[0],
      defConcurOpLimit: this.props.data.defConcurOpLimit[0],
      defConnLife: this.props.data.defConnLife[0],
      defHopLimit: this.props.data.defHopLimit[0],
      defDelay: this.props.data.defDelay[0],
      defTestDelay: this.props.data.defTestDelay[0],
      defOpConnLimit: this.props.data.defOpConnLimit[0],
      defSizeLimit: this.props.data.defSizeLimit[0],
      defTimeLimit: this.props.data.defTimeLimit[0],
      defProxy: this.props.data.defProxy,
      defRefOnScoped: this.props.data.defRefOnScoped,
      defCheckAci: this.props.data.defCheckAci,
      defUseStartTLS: this.props.data.defUseStartTLS,
      // Original values used for saving config
      _defSearchCheck: this.props.data.defSearchCheck[0],
      _defBindConnLimit: this.props.data.defBindConnLimit[0],
      _defBindTimeout: this.props.data.defBindTimeout[0],
      _defBindRetryLimit: this.props.data.defBindRetryLimit[0],
      _defConcurLimit: this.props.data.defConcurLimit[0],
      _defConcurOpLimit: this.props.data.defConcurOpLimit[0],
      _defConnLife: this.props.data.defConnLife[0],
      _defHopLimit: this.props.data.defHopLimit[0],
      _defDelay: this.props.data.defDelay[0],
      _defTestDelay: this.props.data.defTestDelay[0],
      _defOpConnLimit: this.props.data.defOpConnLimit[0],
      _defSizeLimit: this.props.data.defSizeLimit[0],
      _defTimeLimit: this.props.data.defTimeLimit[0],
      _defProxy: this.props.data.defProxy,
      _defRefOnScoped: this.props.data.defRefOnScoped,
      _defCheckAci: this.props.data.defCheckAci,
      _defUseStartTLS: this.props.data.defUseStartTLS
    };

    this.onToggle = isExpanded => {
      this.setState({
        isExpanded
      });
    }; // Toggle currently active tab


    this.handleNavSelect = (event, tabIndex) => {
      this.setState({
        activeTabKey: tabIndex
      });
    };

    this.onModalToggle = isModalSelectOpen => {
      this.setState({
        isModalSelectOpen
      });
    };

    this.handleChange = this.handleChange.bind(this);
    this.handleModalChange = this.handleModalChange.bind(this);
    this.save_chaining_config = this.save_chaining_config.bind(this); // Chaining Control OIDs

    this.showOidModal = this.showOidModal.bind(this);
    this.closeOidModal = this.closeOidModal.bind(this);
    this.handleOidChange = this.handleOidChange.bind(this);
    this.saveOids = this.saveOids.bind(this);
    this.deleteOids = this.deleteOids.bind(this);
    this.handleSelectOids = this.handleSelectOids.bind(this); // Chaining comps

    this.showCompsModal = this.showCompsModal.bind(this);
    this.closeCompsModal = this.closeCompsModal.bind(this);
    this.handleCompsChange = this.handleCompsChange.bind(this);
    this.saveComps = this.saveComps.bind(this);
    this.deleteComps = this.deleteComps.bind(this);
    this.handleSelectComps = this.handleSelectComps.bind(this);
    this.showConfirmDelete = this.showConfirmDelete.bind(this);
    this.closeConfirmOidDelete = this.closeConfirmOidDelete.bind(this);
    this.closeConfirmCompDelete = this.closeConfirmCompDelete.bind(this);
  }

  componentDidMount() {
    this.props.enableTree();
  }

  handleModalChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [e.target.id]: value
    });
  }

  handleChange(e) {
    var saveBtnDisabled = true;
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    var check_attrs = ["defSearchCheck", "defBindConnLimit", "defBindTimeout", "defBindRetryLimit", "defConcurLimit", "defConcurOpLimit", "defConnLife", "defHopLimit", "defDelay", "defTestDelay", "defOpConnLimit", "defSizeLimit", "defTimeLimit", "defProxy", "defRefOnScoped", "defCheckAci", "defUseStartTLS"];

    for (var _i = 0, _check_attrs = check_attrs; _i < _check_attrs.length; _i++) {
      var check_attr = _check_attrs[_i];

      if (attr != check_attr) {
        if (this.state[check_attr] != this.state['_' + check_attr]) {
          saveBtnDisabled = false;
        }
      } else if (value != this.state['_' + check_attr]) {
        saveBtnDisabled = false;
      }
    }

    this.setState({
      [attr]: value,
      saveBtnDisabled: saveBtnDisabled
    });
  }

  save_chaining_config() {
    // Build up the command list
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'chaining', 'config-set-def'];
    var val = "";

    if (this.state._defUseStartTLS != this.state.defUseStartTLS) {
      val = "off";

      if (this.state.defUseStartTLS) {
        val = "on";
      }

      cmd.push("--use-starttls=" + val);
    }

    if (this.state._defCheckAci != this.state.defCheckAci) {
      val = "off";

      if (this.state.defCheckAci) {
        val = "on";
      }

      cmd.push("--check-aci=" + val);
    }

    if (this.state._defRefOnScoped != this.state.defRefOnScoped) {
      val = "off";

      if (this.state.defRefOnScoped) {
        val = "on";
      }

      cmd.push("--return-ref=" + val);
    }

    if (this.state._defProxy != this.state.defProxy) {
      val = "off";

      if (this.state.defProxy) {
        val = "on";
      }

      cmd.push("--proxied-auth=" + val);
    }

    if (this.state._defTestDelay != this.state.defTestDelay) {
      cmd.push("--test-response-delay=" + this.state.defTestDelay);
    }

    if (this.state._defOpConnLimit != this.state.defOpConnLimit) {
      cmd.push("--conn-op-limit=" + this.state.defOpConnLimit);
    }

    if (this.state._defSizeLimit != this.state.defSizeLimit) {
      cmd.push("--size-limit=" + this.state.defSizeLimit);
    }

    if (this.state._defTimeLimit != this.state.defTimeLimit) {
      cmd.push("--time-limit=" + this.state.defTimeLimit);
    }

    if (this.state._defSearchCheck != this.state.defSearchCheck) {
      cmd.push("--abandon-check-interval=" + this.state.defSearchCheck);
    }

    if (this.state._defBindTimeout != this.state.defBindTimeout) {
      cmd.push("--bind-timeout=" + this.state.defBindTimeout);
    }

    if (this.state._defBindRetryLimit != this.state.defBindRetryLimit) {
      cmd.push("--bind-attempts=" + this.state.defBindRetryLimit);
    }

    if (this.state._defConcurLimit != this.state.defConcurLimit) {
      cmd.push("--bind-limit=" + this.state.defConcurLimit);
    }

    if (this.state._defConcurOpLimit != this.state.defConcurOpLimit) {
      cmd.push("--op-limit=" + this.state.defConcurOpLimit);
    }

    if (this.state._defConnLife != this.state.defConnLife) {
      cmd.push("--conn-lifetime=" + this.state.defConnLife);
    }

    if (this.state._defHopLimit != this.state.defHopLimit) {
      cmd.push("--hop-limit=" + this.state.defHopLimit);
    }

    if (this.state._defDelay != this.state.defDelay) {
      cmd.push("--response-delay=" + this.state.defDelay);
    }

    if (this.state._defBindConnLimit != this.state.defBindConnLimit) {
      cmd.push("--conn-bind-limit=" + this.state.defBindConnLimit);
    } // If we have chaining mods, then apply them...


    if (cmd.length > 5) {
      this.setState({
        saving: true
      });
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("save_chaining_config", "Applying default chaining config change", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        // Continue with the next mod
        this.props.reload();
        this.props.addNotification("success", "Successfully updated chaining configuration");
        this.setState({
          saving: false
        });
      }).fail(err => {
        var errMsg = JSON.parse(err);
        this.props.reload();
        this.props.addNotification("error", "Error updating chaining configuration - ".concat(errMsg.desc));
        this.setState({
          saving: false
        });
      });
    }
  } //
  // Chaining OID modal functions
  //


  showOidModal() {
    this.setState({
      showOidModal: true,
      selectedOid: ""
    });
  }

  closeOidModal() {
    this.setState({
      showOidModal: false
    });
  }

  handleOidChange(selectedItem, selectedItemProps) {
    var oid = selectedItemProps.children;

    if (oid != this.state.selectedOid) {
      this.setState({
        selectedOid: oid
      });
    }
  }

  saveOids() {
    // Save chaining control oids
    if (this.state.selectedOid == "") {
      return;
    }

    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "config-set", "--add-control=" + this.state.selectedOid];
    this.setState({
      selectedOid: "",
      modalSpinning: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("saveOids", "Save new chaining OID controls", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.closeOidModal();
      this.props.reload(1);
      this.setState({
        modalSpinning: false
      });
      this.props.addNotification("success", "Successfully updated chaining controls");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.setState({
        modalSpinning: false
      });
      this.closeOidModal();
      this.props.reload(1);
      this.props.addNotification("error", "Error updating chaining controls - ".concat(errMsg.desc));
    });
  }

  handleSelectOids(selectedItem, selectedItemProps) {
    var oid = selectedItemProps.children;

    if (oid != this.state.removeOid) {
      this.setState({
        removeOid: oid
      });
    }
  }

  deleteOids(props) {
    // Remove chaining oid control
    if (this.state.removeOid == "") {
      return;
    }

    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "config-set", "--del-control=" + this.state.removeOid];
    this.setState({
      removeOid: ""
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("deleteOids", "Delete chaining control oid", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload(1);
      this.props.addNotification("success", "Successfully removed chaining controls");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.reload();
      this.props.addNotification("error", "Error removing chaining controls - ".concat(errMsg.desc));
    });
  } //
  // Chaining Component modal functions
  //


  showCompsModal() {
    this.setState({
      showCompsModal: true,
      selectedComp: ""
    });
  }

  closeCompsModal() {
    this.setState({
      showCompsModal: false
    });
  }

  handleCompsChange(selectedItem, selectedItemProps) {
    var comp = selectedItemProps.children;

    if (comp != this.state.selectedComp) {
      this.setState({
        selectedComp: comp
      });
    }
  }

  handleSelectComps(selectedItem, selectedItemProps) {
    var comp = selectedItemProps.children;

    if (comp != this.state.removeComp) {
      this.setState({
        removeComp: comp
      });
    }
  }

  saveComps() {
    // Save chaining control Components
    if (this.state.selectedComp == "") {
      return;
    }

    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "config-set", "--add-comp=" + this.state.selectedComp];
    this.setState({
      modalSpinning: true,
      selectedComp: ""
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("saveComps", "Save new chaining components", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.closeCompsModal();
      this.props.reload(1);
      this.setState({
        modalSpinnming: false
      });
      this.props.addNotification("success", "Successfully updated chaining components");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.closeCompsModal();
      this.props.reload();
      this.setState({
        modalSpinnming: false
      });
      this.props.addNotification("error", "Error updating chaining components - ".concat(errMsg.desc));
    });
  }

  deleteComps(props) {
    if (this.state.removeComp == "") {
      return;
    } // Remove chaining comps


    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "config-set", "--del-comp=" + this.state.removeComp];
    this.setState({
      removeComp: ""
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("deleteComps", "Delete chaining components", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload(1);
      this.props.addNotification("success", "Successfully removed chaining components");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.reload();
      this.props.addNotification("error", "Error removing chaining components - ".concat(errMsg.desc));
    });
  } //
  // Confirm deletion functions
  //


  showConfirmDelete(item) {
    if (item == "oid") {
      if (this.state.removeOid.length) {
        this.setState({
          showConfirmOidDelete: true
        });
      }
    } else if (item == "comp") {
      if (this.state.removeComp.length) {
        this.setState({
          showConfirmCompDelete: true
        });
      }
    }
  }

  closeConfirmOidDelete() {
    this.setState({
      showConfirmOidDelete: false
    });
  }

  closeConfirmCompDelete() {
    this.setState({
      showConfirmCompDelete: false
    });
  }

  render() {
    // Get OIDs and comps
    var oids = this.state.oidList.map(oid => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.SimpleListItem, {
      key: oid
    }, oid));

    if (oids.length == 0) {
      oids = "";
    }

    var comps = this.state.compList.map(comps => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.SimpleListItem, {
      key: comps
    }, comps));

    if (comps.length == 0) {
      comps = "";
    }

    var saveBtnName = "Save Settings";
    var extraPrimaryProps = {};

    if (this.props.refreshing) {
      saveBtnName = "Saving settings ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      id: "chaining-page",
      className: this.state.saving ? "ds-disabled" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
      className: "ds-config-header",
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h2
    }, "Database Chaining Settings")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Tabs, {
      className: "ds-margin-top-xlg",
      activeKey: this.state.activeTabKey,
      onSelect: this.handleNavSelect
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Tab, {
      eventKey: 0,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TabTitleText, null, "Default Creation Settings")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-indent ds-margin-bottom-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "The size limit of entries returned over a database link (nsslapd-sizelimit).",
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Size Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextInput, {
      value: this.state.defSizeLimit,
      type: "number",
      id: "defSizeLimit",
      "aria-describedby": "defSizeLimit",
      name: "defSizeLimit",
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "The maximum number of operations per connections. (nsconcurrentoperationslimit).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Max Operations Per Conn"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextInput, {
      value: this.state.defConcurOpLimit,
      type: "number",
      id: "defConcurOpLimit",
      "aria-describedby": "defConcurOpLimit",
      name: "defConcurOpLimit",
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "The time limit of an operation over a database link (nsslapd-timelimit).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Time Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextInput, {
      value: this.state.defTimeLimit,
      type: "number",
      id: "defTimeLimit",
      "aria-describedby": "defTimeLimit",
      name: "defTimeLimit",
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "The maximum number of operations per connections. (nsconcurrentoperationslimit).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Connection Lifetime"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextInput, {
      value: this.state.defConnLife,
      type: "number",
      id: "defConnLife",
      "aria-describedby": "defConnLife",
      name: "defConnLife",
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "The maximum number of TCP connections the database link establishes with the remote server.  (nsbindconnectionslimit).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Max TCP Connections"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextInput, {
      value: this.state.defBindConnLimit,
      type: "number",
      id: "defBindConnLimit",
      "aria-describedby": "defBindConnLimit",
      name: "defBindConnLimit",
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "The maximum number of connections allowed over the database link.  (nsoperationconnectionslimit).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Max LDAP Connections"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextInput, {
      value: this.state.defOpConnLimit,
      type: "number",
      id: "defOpConnLimit",
      "aria-describedby": "defOpConnLimit",
      name: "defOpConnLimit",
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "The number of seconds that pass before the server checks for abandoned operations.  (nsabandonedsearchcheckinterval).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Abandoned Op Check Interval"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextInput, {
      value: this.state.defSearchCheck,
      type: "number",
      id: "defSearchCheck",
      "aria-describedby": "defSearchCheck",
      name: "defSearchCheck",
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "The maximum number of connections allowed over the database link.  (nsoperationconnectionslimit).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Max Binds Per Connection"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextInput, {
      value: this.state.defConcurLimit,
      type: "number",
      id: "defConcurLimit",
      "aria-describedby": "defConcurLimit",
      name: "defConcurLimit",
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "The maximum number of times a request can be forwarded from one database link to another.  (nshoplimit).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Database Link Hop Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextInput, {
      value: this.state.defHopLimit,
      type: "number",
      id: "defHopLimit",
      "aria-describedby": "defHopLimit",
      name: "defHopLimit",
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "The amount of time before the bind attempt times out. (nsbindtimeout).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Bind Timeout"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextInput, {
      value: this.state.defBindTimeout,
      type: "number",
      id: "defBindTimeout",
      "aria-describedby": "defBindTimeout",
      name: "defBindTimeout",
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "The number of times the database link tries to bind with the remote server after a connection failure. (nsbindretrylimit).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Bind Retry Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextInput, {
      value: this.state.defBindRetryLimit,
      type: "number",
      id: "defBindRetryLimit",
      "aria-describedby": "defBindRetryLimit",
      name: "defBindRetryLimit",
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "Sets whether ACIs are evaluated on the database link as well as the remote data server (nschecklocalaci).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Checkbox, {
      label: "Check Local ACIs",
      id: "defCheckAci",
      isChecked: this.state.defCheckAci,
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "check aci"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "Sets whether referrals are returned by scoped searches (meaning 'one-level' or 'subtree' scoped searches). (nsreferralonscopedsearch).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Checkbox, {
      label: "Send Referral On Scoped Search",
      id: "defRefOnScoped",
      isChecked: this.state.defRefOnScoped,
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "send ref"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "Sets whether proxied authentication is allowed. (nsproxiedauthorization).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Checkbox, {
      label: "Allow Proxied Authentication",
      id: "defProxy",
      isChecked: this.state.defProxy,
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "prox auth"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "Use StartTLS for connections to remote server. (nsusestarttls).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Checkbox, {
      label: "Use StartTLS",
      id: "defUseStartTLS",
      isChecked: this.state.defUseStartTLS,
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "startTLS"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Button, _extends({
      className: "ds-margin-top-xlg",
      variant: "primary",
      onClick: this.save_chaining_config,
      isDisabled: this.state.saveBtnDisabled,
      isLoading: this.state.saving,
      spinnerAriaValueText: this.state.saving ? "Saving" : undefined
    }, extraPrimaryProps), saveBtnName))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Tab, {
      eventKey: 1,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TabTitleText, null, "Controls & Components")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 4,
      title: "A list of LDAP control OIDs to be forwarded through chaining."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h4
    }, "Forwarded LDAP Controls")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-box ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.SimpleList, {
      onSelect: this.handleSelectOids,
      "aria-label": "forward ctrls"
    }, oids)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-bottom-md ds-container"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-panel-left"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Button, {
      variant: "primary",
      onClick: this.showOidModal,
      className: "ds-button-left"
    }, "Add")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-panel-right"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Button, {
      variant: "primary",
      onClick: e => this.showConfirmDelete("oid"),
      className: "ds-button-right",
      isDisabled: this.state.removeOid == ""
    }, "Delete")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 1
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 4,
      title: "A list of components to go through chaining"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h4
    }, "Components to Chain")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-box ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.SimpleList, {
      onSelect: this.handleSelectComps,
      "aria-label": "comps"
    }, comps)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-bottom-md ds-container"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-panel-left"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Button, {
      variant: "primary",
      onClick: this.showCompsModal,
      className: "ds-button-left"
    }, "Add")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-panel-right"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Button, {
      variant: "primary",
      onClick: e => this.showConfirmDelete("comp"),
      className: "ds-button-right",
      isDisabled: this.state.removeComp == ""
    }, "Delete")))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(ChainControlsModal, {
      showModal: this.state.showOidModal,
      closeHandler: this.closeOidModal,
      handleChange: this.handleOidChange,
      saveHandler: this.saveOids,
      oidList: this.state.availableOids,
      spinning: this.state.modalSpinning
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(ChainCompsModal, {
      showModal: this.state.showCompsModal,
      closeHandler: this.closeCompsModal,
      handleChange: this.handleCompsChange,
      saveHandler: this.saveComps,
      compList: this.state.availableComps,
      spinning: this.state.modalSpinning
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmOidDelete,
      closeHandler: this.closeConfirmOidDelete,
      handleChange: this.handleModalChange,
      actionHandler: this.deleteOids,
      spinning: this.state.modalSpinning,
      item: this.state.removeOid,
      checked: this.state.modalChecked,
      mTitle: "Remove Chaining OID",
      mMsg: "Are you sure you want to delete this OID?",
      mSpinningMsg: "Deleting ...",
      mBtnName: "Delete"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmCompDelete,
      closeHandler: this.closeConfirmCompDelete,
      handleChange: this.handleModalChange,
      actionHandler: this.deleteComps,
      spinning: this.state.modalSpinning,
      item: this.state.removeComp,
      checked: this.state.modalChecked,
      mTitle: "Remove Chaining Component",
      mMsg: "Are you sure you want to delete this component?",
      mSpinningMsg: "Deleting ...",
      mBtnName: "Delete"
    }));
  }

} //
// This is the component for the actual database link under a suffix
//

class ChainingConfig extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);

    if (this.props.data) {
      this.state = {
        errObj: {},
        showDeleteConfirm: false,
        linkPwdMatch: true,
        modalSpinning: false,
        modalChecked: false,
        saving: false,
        saveBtnDisabled: true,
        isOpen: false,
        // Settings
        nsfarmserverurl: this.props.data.nsfarmserverurl,
        nsmultiplexorbinddn: this.props.data.nsmultiplexorbinddn,
        nsmultiplexorcredentials: this.props.data.nsmultiplexorcredentials,
        nsmultiplexorcredentials_confirm: this.props.data.nsmultiplexorcredentials,
        sizelimit: this.props.data.sizelimit,
        timelimit: this.props.data.timelimit,
        bindconnlimit: this.props.data.bindconnlimit,
        opconnlimit: this.props.data.opconnlimit,
        concurrbindlimit: this.props.data.concurrbindlimit,
        bindtimeout: this.props.data.bindtimeout,
        bindretrylimit: this.props.data.bindretrylimit,
        concurroplimit: this.props.data.concurroplimit,
        connlifetime: this.props.data.connlifetime,
        searchcheckinterval: this.props.data.searchcheckinterval,
        hoplimit: this.props.data.hoplimit,
        nsbindmechanism: this.props.data.nsbindmechanism,
        nsusestarttls: this.props.data.nsusestarttls,
        nsreferralonscopedsearch: this.props.data.nsreferralonscopedsearch,
        nsproxiedauthorization: this.props.data.nsproxiedauthorization,
        nschecklocalaci: this.props.data.nschecklocalaci,
        // Original settings
        _nsfarmserverurl: this.props.data.nsfarmserverurl,
        _nsmultiplexorbinddn: this.props.data.nsmultiplexorbinddn,
        _nsmultiplexorcredentials: this.props.data.nsmultiplexorcredentials,
        _nsmultiplexorcredentials_confirm: this.props.data.nsmultiplexorcredentials,
        _sizelimit: this.props.data.sizelimit,
        _timelimit: this.props.data.timelimit,
        _bindconnlimit: this.props.data.bindconnlimit,
        _opconnlimit: this.props.data.opconnlimit,
        _concurrbindlimit: this.props.data.concurrbindlimit,
        _bindtimeout: this.props.data.bindtimeout,
        _bindretrylimit: this.props.data.bindretrylimit,
        _concurroplimit: this.props.data.concurroplimit,
        _connlifetime: this.props.data.connlifetime,
        _searchcheckinterval: this.props.data.searchcheckinterval,
        _hoplimit: this.props.data.hoplimit,
        _nsbindmechanism: this.props.data.nsbindmechanism,
        _nsusestarttls: this.props.data.nsusestarttls,
        _nsreferralonscopedsearch: this.props.data.nsreferralonscopedsearch,
        _nsproxiedauthorization: this.props.data.nsproxiedauthorization,
        _nschecklocalaci: this.props.data.nschecklocalaci
      };
    } else {
      this.state = {
        errObj: {},
        showDeleteConfirm: false,
        linkPwdMatch: true
      };
    }

    this.onSelectToggle = isOpen => {
      this.setState({
        isOpen
      });
    };

    this.onSelect = (event, selection, isPlaceholder) => {
      var saveBtnDisabled = true;
      var check_attrs = ["nsfarmserverurl", "nsmultiplexorbinddn", "nsmultiplexorcredentials", "nsmultiplexorcredentials_confirm", "sizelimit", "timelimit", "bindconnlimit", "opconnlimit", "concurrbindlimit", "bindtimeout", "bindretrylimit", "concurroplimit", "connlifetime", "searchcheckinterval", "hoplimit", "nsbindmechanism", "nsusestarttls", "nsusestarttls", "nsreferralonscopedsearch", "nsproxiedauthorization", "nschecklocalaci"];

      for (var _i2 = 0, _check_attrs2 = check_attrs; _i2 < _check_attrs2.length; _i2++) {
        var check_attr = _check_attrs2[_i2];

        if (check_attr != "nsbindmechanism" && this.state[check_attr] !== this.state['_' + check_attr]) {
          saveBtnDisabled = false;
        }
      }

      if (selection != this.state._nsbindmechanism) {
        saveBtnDisabled = false;
      }

      this.setState({
        nsbindmechanism: selection,
        saveBtnDisabled: saveBtnDisabled,
        isOpen: false
      });
    };

    this.handleChange = this.handleChange.bind(this);
    this.saveLink = this.saveLink.bind(this);
    this.deleteLink = this.deleteLink.bind(this);
    this.showDeleteConfirm = this.showDeleteConfirm.bind(this);
    this.closeDeleteConfirm = this.closeDeleteConfirm.bind(this);
  }

  componentDidMount() {
    this.props.enableTree();
  }

  showDeleteConfirm() {
    this.setState({
      showDeleteConfirm: true,
      modalSpinning: false,
      modalChecked: false
    });
  }

  closeDeleteConfirm() {
    this.setState({
      showDeleteConfirm: false,
      modalSpinning: false,
      modalChecked: false
    });
  }

  checkPasswords() {
    var pwdMatch = false;

    if (this.state.nsmultiplexorcredentials == this.state.nsmultiplexorcredentials_confirm) {
      pwdMatch = true;
    }

    this.setState({
      linkPwdMatch: pwdMatch
    });
  }

  handleChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var valueErr = false;
    var attr = e.target.id;
    var errObj = this.state.errObj;
    var saveBtnDisabled = true;
    var check_attrs = ["nsfarmserverurl", "nsmultiplexorbinddn", "nsmultiplexorcredentials", "nsmultiplexorcredentials_confirm", "sizelimit", "timelimit", "bindconnlimit", "opconnlimit", "concurrbindlimit", "bindtimeout", "bindretrylimit", "concurroplimit", "connlifetime", "searchcheckinterval", "hoplimit", "nsbindmechanism", "nsusestarttls", "nsusestarttls", "nsreferralonscopedsearch", "nsproxiedauthorization", "nschecklocalaci"];

    for (var _i3 = 0, _check_attrs3 = check_attrs; _i3 < _check_attrs3.length; _i3++) {
      var check_attr = _check_attrs3[_i3];

      if (attr != check_attr) {
        if (this.state[check_attr] != this.state['_' + check_attr]) {
          saveBtnDisabled = false;
        }
      } else if (value != this.state['_' + check_attr]) {
        saveBtnDisabled = false;
      }
    }

    if (value == "") {
      valueErr = true;
    }

    errObj[attr] = valueErr;
    this.setState({
      [attr]: value,
      errObj: errObj,
      saveBtnDisabled: saveBtnDisabled
    }, this.checkPasswords);
  }

  saveLink() {
    var missingArgs = {};
    var errors = false;

    if (this.state.nsfarmserverurl == "") {
      this.props.addNotification("warning", "Missing Remote Server LDAP URL");
      missingArgs.nsfarmserverurl = true;
      errors = true;
    }

    if (this.state.nsmultiplexorbinddn == "") {
      this.props.addNotification("warning", "Missing Remote Bind DN");
      missingArgs.nsmultiplexorbinddn = true;
      errors = true;
    }

    if (this.state.nsmultiplexorcredentials == "") {
      this.props.addNotification("warning", "Missing Remote Bind DN Password");
      missingArgs.nsmultiplexorcredentials = true;
      errors = true;
    }

    if (this.state.nsmultiplexorcredentials_confirm == "") {
      this.props.addNotification("warning", "Missing Remote Bind DN Password Confirmation");
      missingArgs.nsmultiplexorcredentials_confirm = true;
      errors = true;
    }

    if (this.state.nsmultiplexorcredentials != this.state.nsmultiplexorcredentials_confirm) {
      this.props.addNotification("warning", "Remote Bind DN Password Do Not Match");
      missingArgs.nsmultiplexorcredentials = true;
      missingArgs.nsmultiplexorcredentials_confirm = true;
      errors = true;
    }

    if (errors) {
      this.setState({
        errObj: missingArgs
      });
      return;
    } // Build up the command of all the changes we need to make


    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "link-set", this.props.suffix];

    if (this.state.nsfarmserverurl != this.state._nsfarmserverurl) {
      cmd.push('--server-url=' + this.state.nsfarmserverurl);
    }

    if (this.state.nsmultiplexorbinddn != this.state._nsmultiplexorbinddn) {
      cmd.push('--bind-dn=' + this.state.nsmultiplexorbinddn);
    }

    if (this.state.nsmultiplexorcredentials != this.state._nsmultiplexorcredentials) {
      cmd.push('--bind-pw=' + this.state.nsmultiplexorcredentials);
    }

    if (this.state.timelimit != this.state._timelimit) {
      cmd.push('--time-limit=' + this.state.timelimit);
    }

    if (this.state.sizelimit != this.state._sizelimit) {
      cmd.push('--size-limit=' + this.state.sizelimit);
    }

    if (this.state.bindconnlimit != this.state._bindconnlimit) {
      cmd.push('--conn-bind-limit=' + this.state.bindconnlimit);
    }

    if (this.state.opconnlimit != this.state._opconnlimit) {
      cmd.push('--conn-op-limit=' + this.state.opconnlimit);
    }

    if (this.state.concurrbindlimit != this.state._concurrbindlimit) {
      cmd.push('--bind-limit=' + this.state.concurrbindlimit);
    }

    if (this.state.bindtimeout != this.state._bindtimeout) {
      cmd.push('--bind-timeout=' + this.state.bindtimeout);
    }

    if (this.state.bindretrylimit != this.state._bindretrylimit) {
      cmd.push('--bind-attempts=' + this.state.bindretrylimit);
    }

    if (this.state.concurroplimit != this.state._concurroplimit) {
      cmd.push('--op-limit=' + this.state.concurroplimit);
    }

    if (this.state.connlifetime != this.state._connlifetime) {
      cmd.push('--conn-lifetime=' + this.state.connlifetime);
    }

    if (this.state.searchcheckinterval != this.state._searchcheckinterval) {
      cmd.push('--abandon-check-interval=' + this.state.searchcheckinterval);
    }

    if (this.state.hoplimit != this.state._hoplimit) {
      cmd.push('--hop-limit=' + this.state.hoplimit);
    }

    if (this.state.nsbindmechanism != this.state._nsbindmechanism) {
      cmd.push('--bind-mech=' + this.state.nsbindmechanism);
    }

    if (this.state.nsusestarttls != this.state._nsusestarttls) {
      if (this.state.nsusestarttls) {
        cmd.push('--use-starttls=on');
      } else {
        cmd.push('--use-starttls=off');
      }
    }

    if (this.state.nsreferralonscopedsearch != this.state._nsreferralonscopedsearch) {
      if (this.state.nsreferralonscopedsearch) {
        cmd.push('--return-ref=on');
      } else {
        cmd.push('--return-ref=off');
      }
    }

    if (this.state.nsproxiedauthorization != this.state._nsproxiedauthorization) {
      if (this.state.nsproxiedauthorization) {
        cmd.push('--proxied-auth=on');
      } else {
        cmd.push('--proxied-auth=off');
      }
    }

    if (this.state.nschecklocalaci != this.state._nschecklocalaci) {
      if (this.state.nschecklocalaci) {
        cmd.push('--check-aci=on');
      } else {
        cmd.push('--check-aci=off');
      }
    }

    if (cmd.length > 6) {
      this.setState({
        saving: true
      }); // Something changed, perform the update

      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("saveLink", "Save chaining link config", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        this.props.reload(this.props.suffix);
        this.props.addNotification("success", "Successfully Updated Link Configuration");
        this.setState({
          saving: false
        });
      }).fail(err => {
        var errMsg = JSON.parse(err);
        this.props.reload(this.props.suffix);
        this.props.addNotification("error", "Failed to update link configuration - ".concat(errMsg.desc));
        this.setState({
          saving: false
        });
      });
    }
  }

  deleteLink() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "link-delete", this.props.suffix];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("deleteLink", "Delete database chaining link", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.loadSuffixTree(true);
      this.props.addNotification("success", "Successfully Deleted Database Link");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.loadSuffixTree(true);
      this.props.addNotification("error", "Failed to delete database link - ".concat(errMsg.desc));
    });
  }

  render() {
    var error = this.state.errObj;
    var extraPrimaryProps = {};
    var saveBtnName = "Save Settings";

    if (this.state.loading) {
      saveBtnName = "Saving settings ...";
      extraPrimaryProps.spinnerAriaValueText = "Loading";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: this.state.saving ? "ds-disabled" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 10,
      className: "ds-word-wrap"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
      className: "ds-suffix-header",
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__.FontAwesomeIcon, {
      size: "sm",
      icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_17__.faLink
    }), " ", this.props.suffix, " (", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("i", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("font", {
      size: "3"
    }, this.props.bename)), ")", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__.FontAwesomeIcon, {
      size: "lg",
      className: "ds-left-margin ds-refresh",
      icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_17__.faSyncAlt,
      title: "Refresh database link",
      onClick: () => this.props.reload(this.props.suffix)
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Button, {
      className: "ds-float-right",
      variant: "danger",
      onClick: this.showDeleteConfirm
    }, "Delete Link"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "The LDAP URL for the remote server.  Add additional failure server URLs by separating them with a space. (nsfarmserverurl).",
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Remote Server LDAP URL"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextInput, {
      value: this.state.nsfarmserverurl,
      type: "text",
      id: "nsfarmserverurl",
      "aria-describedby": "nsfarmserverurl",
      name: "nsfarmserverurl",
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "The distinguished name (DN) of the entry to authenticate to the remote server. (nsmultiplexorbinddn).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Remote Server Bind DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextInput, {
      value: this.state.nsmultiplexorbinddn,
      type: "text",
      id: "nsmultiplexorbinddn",
      "aria-describedby": "nsmultiplexorbinddn",
      name: "nsmultiplexorbinddn",
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "The password for the authenticating entry. (nsmultiplexorcredentials).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Bind DN Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextInput, {
      value: this.state.nsmultiplexorcredentials,
      type: "password",
      id: "nsmultiplexorcredentials",
      "aria-describedby": "nsmultiplexorcredentials",
      name: "nsmultiplexorcredentials",
      onChange: (str, e) => {
        this.handleChange(e);
      },
      validated: error.nsmultiplexorcredentials || !this.state.linkPwdMatch ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "Confirm the password for the authenticating entry. (nsmultiplexorcredentials).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Confirm Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextInput, {
      value: this.state.nsmultiplexorcredentials_confirm,
      type: "password",
      id: "nsmultiplexorcredentials_confirm",
      "aria-describedby": "nsmultiplexorcredentials_confirm",
      name: "nsmultiplexorcredentials_confirm",
      onChange: (str, e) => {
        this.handleChange(e);
      },
      validated: error.nsmultiplexorcredentials_confirm || !this.state.linkPwdMatch ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "The authentication mechanism.  Simple (user name and password), SASL/DIGEST-MD5, or SASL>GSSAPI. (nsbindmechanism).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Bind Method"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.SelectVariant.single,
      "aria-label": "Select Input",
      onToggle: this.onSelectToggle,
      onSelect: this.onSelect,
      selections: this.state.nsbindmechanism,
      isOpen: this.state.isOpen,
      "aria-labelledby": "UID"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.SelectOption, {
      key: "Simple",
      value: "Simple"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.SelectOption, {
      key: "SASL/DIGEST-MD5",
      value: "SASL/DIGEST-MD5"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.SelectOption, {
      key: "SASL/GSSAPI",
      value: "SASL/GSSAPI"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "Use StartTLS for connections to the remote server. (nsusestarttls).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Checkbox, {
      label: "Use StartTLS",
      id: "nsusestarttls",
      isChecked: this.state.nsusestarttls,
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "check startTLS"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.ExpandableSection, {
      className: "ds-margin-top-xlg",
      toggleText: this.state.isExpanded ? 'Hide Advanced Settings' : 'Show Advanced Settings',
      onToggle: this.onToggle,
      isExpanded: this.state.isExpanded
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top ds-margin-left"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "The size limit of entries returned over a database link (nsslapd-sizelimit).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Size Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextInput, {
      value: this.state.sizelimit,
      type: "number",
      id: "sizelimit",
      "aria-describedby": "sizelimit",
      name: "sizelimit",
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "The time limit of an operation over a database link (nsslapd-timelimit).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Time Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextInput, {
      value: this.state.sizelimit,
      type: "number",
      id: "timelimit",
      "aria-describedby": "timelimit",
      name: "timelimit",
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "The maximum number of TCP connections the database link establishes with the remote server.  (nsbindconnectionslimit).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Max TCP Connections"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextInput, {
      value: this.state.bindconnlimit,
      type: "number",
      id: "bindconnlimit",
      "aria-describedby": "bindconnlimit",
      name: "bindconnlimit",
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "The maximum number of connections allowed over the database link.  (nsoperationconnectionslimit).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Max LDAP Connections"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextInput, {
      value: this.state.opconnlimit,
      type: "number",
      id: "opconnlimit",
      "aria-describedby": "opconnlimit",
      name: "opconnlimit",
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "The maximum number of concurrent bind operations per TCP connection. (nsconcurrentbindlimit).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Max Binds Per Connection"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextInput, {
      value: this.state.concurrbindlimit,
      type: "number",
      id: "concurrbindlimit",
      "aria-describedby": "concurrbindlimit",
      name: "concurrbindlimit",
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "The amount of time before the bind attempt times out. (nsbindtimeout).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Bind Timeout"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextInput, {
      value: this.state.bindtimeout,
      type: "number",
      id: "bindtimeout",
      "aria-describedby": "bindtimeout",
      name: "bindtimeout",
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "The number of times the database link tries to bind with the remote server after a connection failure. (nsbindretrylimit).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Bind Retry Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextInput, {
      value: this.state.bindtimeout,
      type: "number",
      id: "bindretrylimit",
      "aria-describedby": "bindretrylimit",
      name: "bindretrylimit",
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "The maximum number of operations per connections. (nsconcurrentoperationslimit).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Max Operations Per Connection"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextInput, {
      value: this.state.concurroplimit,
      type: "number",
      id: "concurroplimit",
      "aria-describedby": "concurroplimit",
      name: "concurroplimit",
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "The life of a database link connection to the remote server in seconds.  0 is unlimited  (nsconnectionlife).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Connection Lifetime"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextInput, {
      value: this.state.connlifetime,
      type: "number",
      id: "connlifetime",
      "aria-describedby": "connlifetime",
      name: "connlifetime",
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "The number of seconds that pass before the server checks for abandoned operations.  (nsabandonedsearchcheckinterval).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Abandoned Op Check Interval"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextInput, {
      value: this.state.searchcheckinterval,
      type: "number",
      id: "searchcheckinterval",
      "aria-describedby": "searchcheckinterval",
      name: "searchcheckinterval",
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "The maximum number of times a request can be forwarded from one database link to another.  (nshoplimit).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Hop Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextInput, {
      value: this.state.hoplimit,
      type: "number",
      id: "hoplimit",
      "aria-describedby": "hoplimit",
      name: "hoplimit",
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "Allow proxied authentication to the remote server. (nsproxiedauthorization).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Checkbox, {
      label: "Allow Proxied Authentication",
      id: "nsproxiedauthorization",
      isChecked: this.state.nsproxiedauthorization,
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "send ref"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "Sets whether ACIs are evaluated on the database link as well as the remote data server (nschecklocalaci).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Checkbox, {
      label: "Check Local ACIs",
      id: "nschecklocalaci",
      isChecked: this.state.nschecklocalaci,
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "send ref"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
      title: "Sets whether referrals are returned by scoped searches (meaning 'one-level' or 'subtree' scoped searches). (nsreferralonscopedsearch).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Checkbox, {
      label: "Send Referral On Scoped Search",
      id: "nsreferralonscopedsearch",
      isChecked: this.state.nsreferralonscopedsearch,
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "send ref"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Button, _extends({
      className: "ds-margin-top-lg",
      onClick: this.saveLink,
      variant: "primary",
      isLoading: this.state.saving,
      spinnerAriaValueText: this.state.saving ? "Saving" : undefined
    }, extraPrimaryProps, {
      isDisabled: this.state.saveBtnDisabled
    }), saveBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showDeleteConfirm,
      closeHandler: this.closeDeleteConfirm,
      handleChange: this.handleChange,
      actionHandler: this.deleteLink,
      spinning: this.state.modalSpinning,
      item: this.props.suffix,
      checked: this.state.modalChecked,
      mTitle: "Delete Database Link",
      mMsg: "Are you really sure you want to delete this database link?",
      mSpinningMsg: "Deleting Database Link...",
      mBtnName: "Delete Database Link"
    }));
  }

} //
// Chaining modals
//

class ChainControlsModal extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  render() {
    var _this$props = this.props,
        showModal = _this$props.showModal,
        closeHandler = _this$props.closeHandler,
        handleChange = _this$props.handleChange,
        saveHandler = _this$props.saveHandler,
        oidList = _this$props.oidList,
        spinning = _this$props.spinning;
    var oids = oidList.map(oid => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.SimpleListItem, {
      key: oid
    }, oid));
    var btnName = "Add New Controls";
    var extraPrimaryProps = {};

    if (spinning) {
      btnName = "Saving Controls ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.ModalVariant.medium,
      title: "Chaining LDAP Controls",
      "aria-labelledby": "ds-modal",
      isOpen: showModal,
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Button, _extends({
        key: "confirm",
        variant: "primary",
        onClick: saveHandler,
        isLoading: spinning,
        spinnerAriaValueText: spinning ? "Loading" : undefined
      }, extraPrimaryProps), btnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.Form, {
      isHorizontal: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, {
      title: "A list of LDAP control OIDs to be forwarded through chaining"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h3
    }, "Available LDAP Controls")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-box ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.SimpleList, {
      onSelect: handleChange,
      "aria-label": "comps"
    }, oids))));
  }

}
class ChainCompsModal extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  render() {
    var _this$props2 = this.props,
        showModal = _this$props2.showModal,
        closeHandler = _this$props2.closeHandler,
        handleChange = _this$props2.handleChange,
        saveHandler = _this$props2.saveHandler,
        compList = _this$props2.compList,
        spinning = _this$props2.spinning;
    var comps = compList.map(comp => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.SimpleListItem, {
      key: comp
    }, comp));
    var btnName = "Add New Components";
    var extraPrimaryProps = {};

    if (spinning) {
      btnName = "Saving Components ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.ModalVariant.medium,
      title: "Chaining Components",
      isOpen: showModal,
      onClose: closeHandler,
      "aria-labelledby": "ds-modal",
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Button, _extends({
        key: "comps",
        variant: "primary",
        onClick: saveHandler,
        isLoading: spinning,
        spinnerAriaValueText: spinning ? "Loading" : undefined
      }, extraPrimaryProps), btnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.Form, {
      isHorizontal: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, {
      title: "A list of LDAP control components"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h3
    }, "Available Components")), "Available LDAP Controls", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-box ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.SimpleList, {
      onSelect: handleChange,
      "aria-label": "comps"
    }, comps))));
  }

} // Property types and defaults

ChainCompsModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_25___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_25___default().func),
  handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_25___default().func),
  saveHandler: (prop_types__WEBPACK_IMPORTED_MODULE_25___default().func),
  compList: (prop_types__WEBPACK_IMPORTED_MODULE_25___default().array)
};
ChainCompsModal.defaultProps = {
  showModal: false,
  compList: []
};
ChainControlsModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_25___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_25___default().func),
  handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_25___default().func),
  saveHandler: (prop_types__WEBPACK_IMPORTED_MODULE_25___default().func),
  oidList: (prop_types__WEBPACK_IMPORTED_MODULE_25___default().array)
};
ChainControlsModal.defaultProps = {
  showModal: false,
  oidList: []
};
ChainingDatabaseConfig.propTypes = {
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_25___default().string),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_25___default().func),
  reload: (prop_types__WEBPACK_IMPORTED_MODULE_25___default().func),
  data: (prop_types__WEBPACK_IMPORTED_MODULE_25___default().object),
  enableTree: (prop_types__WEBPACK_IMPORTED_MODULE_25___default().func)
};
ChainingDatabaseConfig.defaultProps = {
  serverId: "",
  data: {}
};
ChainingConfig.propTypes = {
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_25___default().string),
  suffix: (prop_types__WEBPACK_IMPORTED_MODULE_25___default().string),
  bename: (prop_types__WEBPACK_IMPORTED_MODULE_25___default().string),
  loadSuffixTree: (prop_types__WEBPACK_IMPORTED_MODULE_25___default().func),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_25___default().func),
  data: (prop_types__WEBPACK_IMPORTED_MODULE_25___default().object),
  reload: (prop_types__WEBPACK_IMPORTED_MODULE_25___default().func),
  enableTree: (prop_types__WEBPACK_IMPORTED_MODULE_25___default().func)
};
ChainingConfig.defaultProps = {
  serverId: "",
  suffix: "",
  bename: "",
  data: {}
};

/***/ }),

/***/ "./src/lib/database/databaseConfig.jsx":
/*!*********************************************!*\
  !*** ./src/lib/database/databaseConfig.jsx ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "GlobalDatabaseConfig": () => (/* binding */ GlobalDatabaseConfig)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/NumberInput/NumberInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/ExpandableSection/ExpandableSection.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TimePicker/TimePicker.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_14__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }






class GlobalDatabaseConfig extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      isExpanded: false,
      saving: false,
      saveBtnDisabled: true,
      db_cache_auto: this.props.data.db_cache_auto,
      import_cache_auto: this.props.data.import_cache_auto,
      looklimit: this.props.data.looklimit,
      idscanlimit: this.props.data.idscanlimit,
      pagelooklimit: this.props.data.pagelooklimit,
      pagescanlimit: this.props.data.pagescanlimit,
      rangelooklimit: this.props.data.rangelooklimit,
      autosize: this.props.data.autosize,
      autosizesplit: this.props.data.autosizesplit,
      dbcachesize: this.props.data.dbcachesize,
      txnlogdir: this.props.data.txnlogdir,
      dbhomedir: this.props.data.dbhomedir,
      dblocks: this.props.data.dblocks,
      dblocksMonitoring: this.props.data.dblocksMonitoring,
      dblocksMonitoringThreshold: this.props.data.dblocksMonitoringThreshold,
      dblocksMonitoringPause: this.props.data.dblocksMonitoringPause,
      chxpoint: this.props.data.chxpoint,
      compactinterval: this.props.data.compactinterval,
      compacttime: this.props.data.compacttime,
      importcachesize: this.props.data.importcachesize,
      importcacheauto: this.props.data.importcacheauto,
      // These variables store the original value (used for saving config)
      _looklimit: this.props.data.looklimit,
      _idscanlimit: this.props.data.idscanlimit,
      _pagelooklimit: this.props.data.pagelooklimit,
      _pagescanlimit: this.props.data.pagescanlimit,
      _rangelooklimit: this.props.data.rangelooklimit,
      _autosize: this.props.data.autosize,
      _autosizesplit: this.props.data.autosizesplit,
      _dbcachesize: this.props.data.dbcachesize,
      _txnlogdir: this.props.data.txnlogdir,
      _dbhomedir: this.props.data.dbhomedir,
      _dblocks: this.props.data.dblocks,
      _dblocksMonitoring: this.props.data.dblocksMonitoring,
      _dblocksMonitoringThreshold: this.props.data.dblocksMonitoringThreshold,
      _dblocksMonitoringPause: this.props.data.dblocksMonitoringPause,
      _chxpoint: this.props.data.chxpoint,
      _compactinterval: this.props.data.compactinterval,
      _compacttime: this.props.data.compacttime,
      _importcachesize: this.props.data.importcachesize,
      _importcacheauto: this.props.data.importcacheauto,
      _db_cache_auto: this.props.data.db_cache_auto,
      _import_cache_auto: this.props.data.import_cache_auto
    };
    this.validateSaveBtn = this.validateSaveBtn.bind(this);
    this.handleChange = this.handleChange.bind(this);
    this.handleTimeChange = this.handleTimeChange.bind(this);
    this.select_db_locks_monitoring = this.select_db_locks_monitoring.bind(this);
    this.save_db_config = this.save_db_config.bind(this);

    this.onToggle = isExpanded => {
      this.setState({
        isExpanded
      });
    };

    this.maxValue = 2147483647;

    this.onMinusConfig = id => {
      this.setState({
        [id]: Number(this.state[id]) - 1
      }, () => {
        this.validateSaveBtn();
      });
    };

    this.onConfigChange = (event, id, min, max) => {
      var maxValue = this.maxValue;

      if (max !== 0) {
        maxValue = max;
      }

      var newValue = isNaN(event.target.value) ? 0 : Number(event.target.value);
      this.setState({
        [id]: newValue > maxValue ? maxValue : newValue < min ? min : newValue
      }, () => {
        this.validateSaveBtn();
      });
    };

    this.onPlusConfig = id => {
      this.setState({
        [id]: Number(this.state[id]) + 1
      }, () => {
        this.validateSaveBtn();
      });
    };
  }

  componentDidMount() {
    this.props.enableTree();
  }

  select_db_locks_monitoring(val, e) {
    this.setState({
      dblocksMonitoring: !this.state.dblocksMonitoring
    }, this.handleChange(val, e));
  }

  validateSaveBtn() {
    var saveBtnDisabled = true;
    var check_attrs = ["db_cache_auto", "import_cache_auto", "looklimit", "idscanlimit", "pagelooklimit", "pagescanlimit", "rangelooklimit", "autosize", "autosizesplit", "dbcachesize", "txnlogdir", "dbhomedir", "dblocks", "dblocksMonitoring", "dblocksMonitoringThreshold", "dblocksMonitoringPause", "chxpoint", "compactinterval", "compacttime", "importcachesize", "importcacheauto"]; // Check if a setting was changed, if so enable the save button

    for (var _i = 0, _check_attrs = check_attrs; _i < _check_attrs.length; _i++) {
      var config_attr = _check_attrs[_i];

      if (this.state[config_attr] != this.state['_' + config_attr]) {
        saveBtnDisabled = false;
        break;
      }
    }

    this.setState({
      saveBtnDisabled: saveBtnDisabled
    });
  }

  handleChange(str, e) {
    // Generic
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    this.setState({
      [attr]: value
    }, () => {
      this.validateSaveBtn();
    });
  }

  handleTimeChange() {
    this.setState({
      compacttime: value
    }, () => {
      this.validateSaveBtn();
    });
  }

  save_db_config() {
    // Build up the command list
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'backend', 'config', 'set'];
    var requireRestart = false;

    if (this.state._looklimit != this.state.looklimit) {
      cmd.push("--lookthroughlimit=" + this.state.looklimit);
    }

    if (this.state._idscanlimit != this.state.idscanlimit) {
      cmd.push("--idlistscanlimit=" + this.state.idscanlimit);
    }

    if (this.state._pagelooklimit != this.state.pagelooklimit) {
      cmd.push("--pagedlookthroughlimit=" + this.state.pagelooklimit);
    }

    if (this.state._pagescanlimit != this.state.pagescanlimit) {
      cmd.push("--pagedidlistscanlimit=" + this.state.pagescanlimit);
    }

    if (this.state._rangelooklimit != this.state.rangelooklimit) {
      cmd.push("--rangelookthroughlimit=" + this.state.rangelooklimit);
    }

    if (this.state.db_cache_auto) {
      // Auto cache is selected
      if (this.state._db_cache_auto != this.state.db_cache_auto) {
        // We just enabled auto cache,
        if (this.state.autosize == "0") {
          cmd.push("--cache-autosize=10");
        } else {
          cmd.push("--cache-autosize=" + this.state.autosize);
        }

        requireRestart = true;
      } else if (this.state._autosize != this.state.autosize) {
        // Update auto cache settings if it changed
        cmd.push("--cache-autosize=" + this.state.autosize);
        requireRestart = true;
      }
    } else {
      // No auto cache, check if we need to reset the value
      if (this.state._db_cache_auto != this.state.db_cache_auto) {
        // We just disabled auto cache
        cmd.push("--cache-autosize=0");
        requireRestart = true;
      }
    }

    if (this.state._autosizesplit != this.state.autosizesplit) {
      cmd.push("--cache-autosize-split=" + this.state.autosizesplit);
      requireRestart = true;
    }

    if (this.state._dbcachesize != this.state.dbcachesize) {
      cmd.push("--dbcachesize=" + this.state.dbcachesize);
      requireRestart = true;
    }

    if (this.state._txnlogdir != this.state.txnlogdir) {
      cmd.push("--logdirectory=" + this.state.txnlogdir);
      requireRestart = true;
    }

    if (this.state._dbhomedir != this.state.dbhomedir) {
      cmd.push("--db-home-directory=" + this.state.dbhomedir);
      requireRestart = true;
    }

    if (this.state._dblocks != this.state.dblocks) {
      cmd.push("--locks=" + this.state.dblocks);
      requireRestart = true;
    }

    if (this.state._dblocksMonitoring != this.state.dblocksMonitoring) {
      if (this.state.dblocksMonitoring) {
        cmd.push("--locks-monitoring-enabled=on");
      } else {
        cmd.push("--locks-monitoring-enabled=off");
      }

      requireRestart = true;
    }

    if (this.state._dblocksMonitoringThreshold != this.state.dblocksMonitoringThreshold) {
      cmd.push("--locks-monitoring-threshold=" + this.state.dblocksMonitoringThreshold);
      requireRestart = true;
    }

    if (this.state._dblocksMonitoringPause != this.state.dblocksMonitoringPause) {
      cmd.push("--locks-monitoring-pause=" + this.state.dblocksMonitoringPause);
    }

    if (this.state._chxpoint != this.state.chxpoint) {
      cmd.push("--checkpoint-interval=" + this.state.chxpoint);
      requireRestart = true;
    }

    if (this.state._compactinterval != this.state.compactinterval) {
      cmd.push("--compactdb-interval=" + this.state.compactinterval);
      requireRestart = true;
    }

    if (this.state._compacttime != this.state.compacttime) {
      cmd.push("--compactdb-time=" + this.state.compacttime);
      requireRestart = true;
    }

    if (this.state.import_cache_auto) {
      // Auto cache is selected
      if (this.state._import_cache_auto != this.state.import_cache_auto) {
        // We just enabled auto cache,
        if (this.state.importcachesize == "0") {
          cmd.push("--import-cache-autosize=-1");
        } else {
          cmd.push("--import-cache-autosize=" + this.state.importcacheauto);
        }
      } else if (this.state._importcacheauto != this.state.importcacheauto) {
        // Update auto cache settings if it changed
        cmd.push("--import-cache-autosize=" + this.state.importcacheauto);
      }
    } else {
      // Auto cache is not selected, check if we need to reset the value
      if (this.state._import_cache_auto != this.state.import_cache_auto) {
        // We just disabled auto cache
        cmd.push("--import-cache-autosize=0");
      }
    }

    if (this.state._importcachesize != this.state.importcachesize) {
      cmd.push("--import-cachesize=" + this.state.importcachesize);
    }

    if (cmd.length > 6) {
      this.setState({
        saving: true
      });
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("save_db_config", "Applying config change", cmd);
      var msg = "Successfully updated database configuration";
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        // Continue with the next mod
        this.props.reload();
        this.setState({
          saving: false
        });

        if (requireRestart) {
          this.props.addNotification("warning", msg + ". You must restart the Directory Server for these changes to take effect.");
        } else {
          this.props.addNotification("success", msg);
        }
      }).fail(err => {
        var errMsg = JSON.parse(err);
        this.props.reload();
        this.setState({
          saving: false
        });
        this.props.addNotification("error", "Error updating configuration - ".concat(errMsg.desc));
      });
    }
  }

  render() {
    var db_cache_form;
    var import_cache_form;
    var db_auto_checked = false;
    var import_auto_checked = false;
    var dblocksMonitor = "";
    var dblocksThreshold = this.state.dblocksMonitoringThreshold;
    var dblocksPause = this.state.dblocksMonitoringPause;

    if (this.state.dblocksMonitoring) {
      dblocksMonitor = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-left ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
        title: "Sets the DB lock exhaustion value in percentage (valid range is 70-95). If too many locks are acquired, the server will abort the searches while the number of locks are not decreased. It helps to avoid DB corruption and long recovery. (nsslapd-db-locks-monitoring-threshold).",
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
        className: "ds-label",
        span: 4
      }, "DB Locks Threshold Percentage"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
        span: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.NumberInput, {
        value: dblocksThreshold,
        min: 70,
        max: 95,
        onMinus: () => {
          this.onMinusConfig("dblocksMonitoringThreshold");
        },
        onChange: e => {
          this.onConfigChange(e, "dblocksMonitoringThreshold", 70, 95);
        },
        onPlus: () => {
          this.onPlusConfig("dblocksMonitoringThreshold");
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 8,
        unit: "%"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
        title: "Sets the amount of time (milliseconds) that the monitoring thread spends waiting between checks. (nsslapd-db-locks-monitoring-pause).",
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
        className: "ds-label",
        span: 4
      }, "DB Locks Pause Milliseconds"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
        span: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.NumberInput, {
        value: dblocksPause,
        min: 0,
        max: this.maxValue,
        onMinus: () => {
          this.onMinusConfig("dblocksMonitoringPause");
        },
        onChange: e => {
          this.onConfigChange(e, "dblocksMonitoringPause", 0, 0);
        },
        onPlus: () => {
          this.onPlusConfig("dblocksMonitoringPause");
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 8
      }))));
    }

    if (this.state.db_cache_auto) {
      db_cache_form = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
        title: "Enable database and entry cache auto-tuning using a percentage of the system's current resources (nsslapd-cache-autosize). If 0 is set, the default value is used instead.",
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
        className: "ds-label",
        span: 6
      }, "Memory Percentage"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
        span: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.NumberInput, {
        value: this.state.autosize,
        min: 0,
        max: 100,
        onMinus: () => {
          this.onMinusConfig("autosize");
        },
        onChange: e => {
          this.onConfigChange(e, "autosize", 0, 100);
        },
        onPlus: () => {
          this.onPlusConfig("autosize");
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 4,
        unit: "%"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
        title: "Sets the percentage of memory that is used for the database cache. The remaining percentage is used for the entry cache (nsslapd-cache-autosize-split). If 0 is set, the default value is used instead.",
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
        className: "ds-label",
        span: 6
      }, "DB Cache Percentage"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
        span: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.NumberInput, {
        value: this.state.autosizesplit,
        min: 1,
        max: 99,
        onMinus: () => {
          this.onMinusConfig("autosizesplit");
        },
        onChange: e => {
          this.onConfigChange(e, "autosizesplit", 1, 99);
        },
        onPlus: () => {
          this.onPlusConfig("autosizesplit");
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 4,
        unit: "%"
      }))));
      db_auto_checked = true;
    } else {
      db_cache_form = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
        title: "Specifies the database index cache size in bytes (nsslapd-dbcachesize).",
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
        className: "ds-label",
        span: 6
      }, "Database Cache Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
        span: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.NumberInput, {
        value: this.state.dbcachesize,
        min: 512000,
        max: this.maxValue,
        onMinus: () => {
          this.onMinusConfig("dbcachesize");
        },
        onChange: e => {
          this.onConfigChange(e, "dbcachesize", 512000, 0);
        },
        onPlus: () => {
          this.onPlusConfig("dbcachesize");
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 10
      }))));
      db_auto_checked = false;
    }

    if (this.state.import_cache_auto) {
      import_cache_form = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        id: "auto-import-cache-form",
        className: "ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
        title: "Enter '-1' to use 50% of available memory, '0' to disable autotuning, or enter the percentage of available memory to use.  Value range -1 through 100, default is '-1' (nsslapd-import-cache-autosize).",
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
        className: "ds-label",
        span: 6
      }, "Import Cache Autosize"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
        span: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.NumberInput, {
        value: this.state.importcacheauto,
        min: -1,
        max: 100,
        onMinus: () => {
          this.onMinusConfig("importcacheauto");
        },
        onChange: e => {
          this.onConfigChange(e, "importcacheauto", -1, 100);
        },
        onPlus: () => {
          this.onPlusConfig("importcacheauto");
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 4,
        unit: this.state.importcacheauto > 0 ? "%" : ""
      }))));
      import_auto_checked = true;
    } else {
      import_cache_form = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
        title: "The size of the database cache in bytes used in the bulk import process. (nsslapd-import-cachesize).",
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
        className: "ds-label",
        span: 6
      }, "Import Cache Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
        span: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.NumberInput, {
        value: this.state.importcachesize,
        min: 512000,
        max: this.maxValue,
        onMinus: () => {
          this.onMinusConfig("importcachesize");
        },
        onChange: e => {
          this.onConfigChange(e, "importcachesize", 512000, 0);
        },
        onPlus: () => {
          this.onPlusConfig("importcachesize");
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 10
      }))));
      import_auto_checked = false;
    }

    var spinner = "";

    if (this.state.loading) {
      spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-loading-spinner ds-margin-top-xlg ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h3
      }, "Loading global database configuration ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Spinner, {
        className: "ds-margin-top",
        loading: true,
        size: "md"
      }));
    }

    var saveBtnName = "Save Config";
    var extraPrimaryProps = {};

    if (this.props.refreshing) {
      saveBtnName = "Saving config ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: this.state.saving ? "ds-disabled ds-margin-bottom-md" : "ds-margin-bottom-md",
      id: "db-global-page"
    }, spinner, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: this.state.loading ? 'ds-fadeout' : 'ds-fadein'
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
      className: "ds-config-header",
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h2
    }, "Global Database Configuration")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      title: "The maximum number of entries that the Directory Server will check when examining candidate entries in response to a search request (nsslapd-lookthrough-limit).",
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 4
    }, "Database Look Though Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.NumberInput, {
      value: this.state.looklimit,
      min: -1,
      max: 0,
      onMinus: () => {
        this.onMinusConfig("looklimit");
      },
      onChange: e => {
        this.onConfigChange(e, "looklimit", -1, 0);
      },
      onPlus: () => {
        this.onPlusConfig("looklimit");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      title: "The number of entry IDs that are searched during a search operation (nsslapd-idlistscanlimit).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 4
    }, "ID List Scan Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.NumberInput, {
      value: this.state.idscanlimit,
      min: 100,
      max: this.maxValue,
      onMinus: () => {
        this.onMinusConfig("idscanlimit");
      },
      onChange: e => {
        this.onConfigChange(e, "idscanlimit", 100, 0);
      },
      onPlus: () => {
        this.onPlusConfig("idscanlimit");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      title: "The maximum number of entries that the Directory Server will check when examining candidate entries for a search which uses the simple paged results control (nsslapd-pagedlookthroughlimit).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 4
    }, "Paged Search Look Through Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.NumberInput, {
      value: this.state.pagelooklimit,
      min: -1,
      max: this.maxValue,
      onMinus: () => {
        this.onMinusConfig("pagelooklimit");
      },
      onChange: e => {
        this.onConfigChange(e, "pagelooklimit", -1, 0);
      },
      onPlus: () => {
        this.onPlusConfig("pagelooklimit");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      title: "The number of entry IDs that are searched, specifically, for a search operation using the simple paged results control (nsslapd-pagedidlistscanlimit).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 4
    }, "Paged Search ID List Scan Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.NumberInput, {
      value: this.state.pagescanlimit,
      min: -1,
      max: this.maxValue,
      onMinus: () => {
        this.onMinusConfig("pagescanlimit");
      },
      onChange: e => {
        this.onConfigChange(e, "pagescanlimit", -1, 0);
      },
      onPlus: () => {
        this.onPlusConfig("pagescanlimit");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      title: "The maximum number of entries that the Directory Server will check when examining candidate entries in response to a range search request (nsslapd-rangelookthroughlimit).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 4
    }, "Range Search Look Through Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.NumberInput, {
      value: this.state.rangelooklimit,
      min: -1,
      max: this.maxValue,
      onMinus: () => {
        this.onMinusConfig("rangelooklimit");
      },
      onChange: e => {
        this.onConfigChange(e, "rangelooklimit", -1, 0);
      },
      onPlus: () => {
        this.onPlusConfig("rangelooklimit");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
      className: "ds-sub-header",
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h3
    }, "Database Cache Settings")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
      className: "ds-sub-header",
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h3
    }, "Import Cache Settings")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Checkbox, {
      label: "Automatic Cache Tuning",
      onChange: this.handleChange,
      isChecked: db_auto_checked,
      "aria-label": "uncontrolled checkbox example",
      id: "db_cache_auto"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Checkbox, {
      label: "Automatic Import Cache Tuning",
      title: "Set import cache to be set automatically",
      onChange: this.handleChange,
      isChecked: import_auto_checked,
      "aria-label": "uncontrolled checkbox example",
      id: "import_cache_auto"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 5
    }, db_cache_form), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 1
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 5
    }, import_cache_form)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.ExpandableSection, {
      className: "ds-margin-top-xlg",
      toggleText: this.state.isExpanded ? 'Hide Advanced Settings' : 'Show Advanced Settings',
      onToggle: this.onToggle,
      isExpanded: this.state.isExpanded
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-left-indent-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      title: "Database Transaction Log Location (nsslapd-db-logdirectory).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 4
    }, "Transaction Logs Directory"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      value: this.state.txnlogdir,
      type: "text",
      id: "txnlogdir",
      "aria-describedby": "txnlogdir",
      name: "txnlogdir",
      onChange: this.handleChange
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      title: "Location for database memory mapped files.  You must specify a subdirectory of a tempfs type filesystem (nsslapd-db-home-directory).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 4
    }, "Database Home Directory"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      value: this.state.dbhomedir,
      type: "text",
      id: "dbhomedir",
      "aria-describedby": "dbhomedir",
      name: "dbhomedir",
      onChange: this.handleChange
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      title: "The Time Of Day to perform the database compaction after the compact interval has been met.  Uses the format: 'HH:MM' and defaults to '23:59'. (nsslapd-db-compactdb-time)",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 4
    }, "Database Compaction Time"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TimePicker, {
      time: this.state.compacttime,
      onChange: this.handleTimeChange,
      is24Hour: true
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      title: "The interval in seconds when the database is compacted (nsslapd-db-compactdb-interval). The default is 30 days at midnight. 0 is no compaction.",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 4
    }, "Database Compaction Interval"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.NumberInput, {
      value: this.state.compactinterval,
      min: 0,
      max: this.maxValue,
      onMinus: () => {
        this.onMinusConfig("compactinterval");
      },
      onChange: e => {
        this.onConfigChange(e, "compactinterval", 0, 0);
      },
      onPlus: () => {
        this.onPlusConfig("compactinterval");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      title: "Amount of time in seconds after which the Directory Server sends a checkpoint entry to the database transaction log (nsslapd-db-checkpoint-interval).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 4
    }, "Database Checkpoint Interval"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.NumberInput, {
      value: this.state.chxpoint,
      min: 10,
      max: 300,
      onMinus: () => {
        this.onMinusConfig("chxpoint");
      },
      onChange: e => {
        this.onConfigChange(e, "chxpoint", 10, 0);
      },
      onPlus: () => {
        this.onPlusConfig("chxpoint");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      title: "The number of database locks (nsslapd-db-locks).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 4
    }, "Database Locks"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.NumberInput, {
      value: this.state.dblocks,
      min: 10000,
      max: this.maxValue,
      onMinus: () => {
        this.onMinusConfig("dblocks");
      },
      onChange: e => {
        this.onConfigChange(e, "dblocks", 10000, 0);
      },
      onPlus: () => {
        this.onPlusConfig("dblocks");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
      className: "ds-sub-header",
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h3
    }, "DB Locks Monitoring")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Checkbox, {
      label: "Enable Monitoring",
      id: "dblocksMonitoring",
      isChecked: this.state.dblocksMonitoring,
      onChange: this.select_db_locks_monitoring,
      "aria-label": "uncontrolled checkbox example"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 12
    }, dblocksMonitor)))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Button, _extends({
      className: "ds-margin-top-lg",
      onClick: this.save_db_config,
      variant: "primary",
      isLoading: this.state.saving,
      spinnerAriaValueText: this.state.saving ? "Saving" : undefined
    }, extraPrimaryProps, {
      isDisabled: this.state.saveBtnDisabled
    }), saveBtnName)));
  }

} // Property types and defaults

GlobalDatabaseConfig.propTypes = {
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),
  data: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().object),
  reload: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),
  enableTree: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func)
};
GlobalDatabaseConfig.defaultProps = {
  serverId: "",
  data: {}
};

/***/ }),

/***/ "./src/lib/database/databaseModal.jsx":
/*!********************************************!*\
  !*** ./src/lib/database/databaseModal.jsx ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ImportModal": () => (/* binding */ ImportModal),
/* harmony export */   "ExportModal": () => (/* binding */ ExportModal),
/* harmony export */   "CreateSubSuffixModal": () => (/* binding */ CreateSubSuffixModal),
/* harmony export */   "CreateLinkModal": () => (/* binding */ CreateLinkModal)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormHelperText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _databaseTables_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./databaseTables.jsx */ "./src/lib/database/databaseTables.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__);
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }






class CreateLinkModal extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  render() {
    var _this$props = this.props,
        showModal = _this$props.showModal,
        closeHandler = _this$props.closeHandler,
        handleChange = _this$props.handleChange,
        saveHandler = _this$props.saveHandler,
        suffix = _this$props.suffix,
        error = _this$props.error,
        saving = _this$props.saving,
        handleSelectChange = _this$props.handleSelectChange,
        starttls_checked = _this$props.starttls_checked,
        bindMech = _this$props.bindMech;
    var saveBtnName = "Create Database Link";
    var extraPrimaryProps = {};

    if (saving) {
      saveBtnName = "Creating Link ...";
      extraPrimaryProps.spinnerAriaValueText = "Creating";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.ModalVariant.medium,
      title: "Create Database Link",
      isOpen: showModal,
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Button, _extends({
        key: "confirm",
        variant: "primary",
        onClick: saveHandler,
        isLoading: saving,
        spinnerAriaValueText: saving ? "Creating Link" : undefined
      }, extraPrimaryProps, {
        isDisabled: this.props.saveBtnDisabled
      }), saveBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      className: "ds-margin-top",
      title: "The RDN of the link suffix."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Link Sub-Suffix"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-container"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
      type: "text",
      className: "ds-right-align",
      id: "createLinkSuffix",
      "aria-describedby": "horizontal-form-name-helper",
      name: "createLinkSuffix",
      onChange: (checked, e) => {
        handleChange(e);
      },
      validated: error.createLinkSuffix ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.ValidatedOptions["default"]
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-left-margin ds-lower-field-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("font", {
      color: "blue"
    }, ",", suffix)))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
      isError: true,
      isHidden: !error.createLinkSuffix
    }, "Required field"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      title: "A name for the backend chaining database link."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Link Database Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
      type: "text",
      id: "createLinkName",
      "aria-describedby": "horizontal-form-name-helper",
      name: "createLinkName",
      onChange: (checked, e) => {
        handleChange(e);
      },
      validated: error.createLinkName ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
      isError: true,
      isHidden: !error.createLinkName
    }, "Required field"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      title: "The LDAP URL for the remote server.  Add additional failover LDAP URLs separated by a space. (nsfarmserverurl)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Remote Server URL(s)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
      type: "text",
      id: "createNsfarmserverurl",
      "aria-describedby": "horizontal-form-name-helper",
      name: "createNsfarmserverurl",
      onChange: (checked, e) => {
        handleChange(e);
      },
      validated: error.createNsfarmserverurl ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
      isError: true,
      isHidden: !error.createNsfarmserverurl
    }, "Required field"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      title: "The DN of the entry to authenticate with on the remote server."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Remote Server Bind DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
      type: "text",
      id: "createNsmultiplexorbinddn",
      "aria-describedby": "horizontal-form-name-helper",
      name: "createNsmultiplexorbinddn",
      onChange: (checked, e) => {
        handleChange(e);
      },
      validated: error.createNsmultiplexorbinddn ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
      isError: true,
      isHidden: !error.createNsmultiplexorbinddn
    }, "Required field"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      title: "The credentials for the bind DN (nsmultiplexorcredentials)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Bind DN Credentials"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
      type: "password",
      id: "createNsmultiplexorcredentials",
      "aria-describedby": "horizontal-form-name-helper",
      name: "createNsmultiplexorcredentials",
      onChange: (checked, e) => {
        handleChange(e);
      },
      validated: error.createNsmultiplexorcredentials ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
      isError: true,
      isHidden: !error.createNsmultiplexorcredentials
    }, "Password does not match"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      title: "Confirm credentials for the bind DN (nsmultiplexorcredentials)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Confirm Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
      type: "password",
      id: "createNsmultiplexorcredentialsConfirm",
      "aria-describedby": "horizontal-form-name-helper",
      name: "createNsmultiplexorcredentialsConfirm",
      onChange: (checked, e) => {
        handleChange(e);
      },
      validated: error.createNsmultiplexorcredentialsConfirm ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
      isError: true,
      isHidden: !error.createNsmultiplexorcredentialsConfirm
    }, "Password does not match"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      title: "The bind method for contacting the remote server  (nsbindmechanism)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Bind Method"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormSelect, {
      value: bindMech,
      onChange: handleSelectChange,
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: 1,
      value: "SIMPLE",
      label: "SIMPLE"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: 2,
      value: "SASL/DIGEST-MD5",
      label: "SASL/DIGEST-MD5"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: 3,
      value: "SASL/GSSAPI",
      label: "SASL/GSSAPI"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      className: "ds-margin-top",
      title: "Use StartTLS for the remote server LDAP URL."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "createUseStartTLS",
      onChange: (checked, e) => {
        handleChange(e);
      },
      isChecked: starttls_checked,
      label: "Use StartTLS"
    })))));
  }

}

class CreateSubSuffixModal extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      isOpen: false
    };

    this.onToggle = isOpen => {
      this.setState({
        isOpen
      });
    };
  }

  render() {
    var _this$props2 = this.props,
        showModal = _this$props2.showModal,
        closeHandler = _this$props2.closeHandler,
        handleChange = _this$props2.handleChange,
        handleSelectChange = _this$props2.handleSelectChange,
        saveHandler = _this$props2.saveHandler,
        suffix = _this$props2.suffix,
        error = _this$props2.error,
        saving = _this$props2.saving,
        initOption = _this$props2.initOption;
    var saveBtnName = "Create Sub-Suffix";
    var extraPrimaryProps = {};

    if (saving) {
      saveBtnName = "Creating suffix ...";
      extraPrimaryProps.spinnerAriaValueText = "Creating";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.ModalVariant.medium,
      title: "Create Sub Suffix",
      isOpen: showModal,
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Button, _extends({
        key: "confirm",
        variant: "primary",
        onClick: saveHandler,
        isLoading: saving,
        spinnerAriaValueText: saving ? "Creating Suffix" : undefined
      }, extraPrimaryProps, {
        isDisabled: this.props.saveBtnDisabled
      }), saveBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      className: "ds-margin-top",
      title: "Database suffix, like 'dc=example,dc=com'.  The suffix must be a valid LDAP Distiguished Name (DN)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Sub-Suffix DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-container"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
      type: "text",
      className: "ds-right-align",
      id: "subSuffixValue",
      "aria-describedby": "horizontal-form-name-helper",
      name: "subSuffixValue",
      onChange: (val, e) => {
        handleChange(e);
      },
      validated: error.subSuffixValue ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.ValidatedOptions["default"]
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-left-margin ds-lower-field-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("font", {
      color: "blue"
    }, ",", suffix)))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
      isError: true,
      isHidden: !error.subSuffixValue
    }, "Required field"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      title: "The name for the backend database, like 'userroot'.  The name can be a combination of alphanumeric characters, dashes (-), and underscores (_). No other characters are allowed, and the name must be unique across all backends."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Database Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
      type: "text",
      id: "subSuffixBeName",
      "aria-describedby": "horizontal-form-name-helper",
      name: "subSuffixBeName",
      onChange: (val, e) => {
        handleChange(e);
      },
      validated: error.subSuffixBeName ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
      isError: true,
      isHidden: !error.subSuffixBeName
    }, "Required field"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      title: "Database initialization options"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Initialization Option"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormSelect, {
      value: initOption,
      onChange: handleSelectChange,
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: 1,
      value: "noInit",
      label: "Do Not Initialize Database"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: 2,
      value: "addSuffix",
      label: "Create The Top Sub-Suffix Entry"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: 3,
      value: "addSample",
      label: "Add Sample Entries"
    }))))));
  }

}

class ExportModal extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  render() {
    var _this$props3 = this.props,
        showModal = _this$props3.showModal,
        closeHandler = _this$props3.closeHandler,
        handleChange = _this$props3.handleChange,
        includeReplData = _this$props3.includeReplData,
        saveHandler = _this$props3.saveHandler,
        spinning = _this$props3.spinning,
        error = _this$props3.error;
    var saveBtnName = "Export Database";
    var extraPrimaryProps = {};

    if (spinning) {
      saveBtnName = "Exporting ...";
      extraPrimaryProps.spinnerAriaValueText = "Creating";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.ModalVariant.medium,
      title: "Export Database To LDIF File",
      isOpen: showModal,
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Button, _extends({
        key: "export",
        variant: "primary",
        onClick: saveHandler,
        isLoading: spinning,
        spinnerAriaValueText: spinning ? "Creating Suffix" : undefined
      }, extraPrimaryProps, {
        isDisabled: this.props.saveBtnDisabled
      }), saveBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      title: "Name of exported LDIF file."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      className: "ds-label",
      span: 3
    }, "LDIF File Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
      type: "text",
      id: "ldifLocation",
      "aria-describedby": "horizontal-form-name-helper",
      name: "ldifLocation",
      onChange: (val, e) => {
        handleChange(e);
      },
      validated: error.ldifLocation ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      title: "Include the replication metadata needed to restore or initialize another replica."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "includeReplData",
      onChange: (checked, e) => {
        handleChange(e);
      },
      isChecked: includeReplData,
      label: "Include Replication Data"
    })))));
  }

}

class ImportModal extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  render() {
    var _this$props4 = this.props,
        showModal = _this$props4.showModal,
        closeHandler = _this$props4.closeHandler,
        handleChange = _this$props4.handleChange,
        saveHandler = _this$props4.saveHandler,
        rows = _this$props4.rows,
        suffix = _this$props4.suffix;
    var suffixRows = [];

    var _iterator = _createForOfIteratorHelper(rows),
        _step;

    try {
      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        var row = _step.value;

        if (row[3] == suffix) {
          suffixRows.push(row);
        }
      }
    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.ModalVariant.medium,
      title: "Initialize Database via LDIF File",
      isOpen: showModal,
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_1__.LDIFTable, {
      rows: suffixRows,
      confirmImport: this.props.showConfirmImport
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      title: "The full path to the LDIF file.  The server must have permissions to read it."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      className: "ds-label",
      span: 4
    }, "Or, enter LDIF location"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
      type: "text",
      id: "ldifLocation",
      "aria-describedby": "horizontal-form-name-helper",
      name: "ldifLocation",
      onChange: (val, e) => {
        handleChange(e);
      }
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Button, {
      key: "import",
      className: "ds-left-margin",
      variant: "primary",
      onClick: saveHandler,
      isDisabled: this.props.saveBtnDisabled
    }, "Import")))));
  }

} // Property types and defaults


CreateLinkModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  saveHandler: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  suffix: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
  error: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object)
};
CreateLinkModal.defaultProps = {
  showModal: false,
  suffix: "",
  error: {}
};
CreateSubSuffixModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  saveHandler: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  suffix: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
  error: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object)
};
CreateSubSuffixModal.defaultProps = {
  showModal: false,
  suffix: "",
  error: {}
};
ExportModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  saveHandler: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  error: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object),
  spinning: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool)
};
ExportModal.defaultProps = {
  showModal: false,
  error: {},
  spinning: false
};
ImportModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  saveHandler: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  showConfirmImport: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
  suffix: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string)
};
ImportModal.defaultProps = {
  showModal: false,
  rows: [],
  suffix: ""
};


/***/ }),

/***/ "./src/lib/database/databaseTables.jsx":
/*!*********************************************!*\
  !*** ./src/lib/database/databaseTables.jsx ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "PwpTable": () => (/* binding */ PwpTable),
/* harmony export */   "ReferralTable": () => (/* binding */ ReferralTable),
/* harmony export */   "IndexTable": () => (/* binding */ IndexTable),
/* harmony export */   "EncryptedAttrTable": () => (/* binding */ EncryptedAttrTable),
/* harmony export */   "LDIFTable": () => (/* binding */ LDIFTable),
/* harmony export */   "LDIFManageTable": () => (/* binding */ LDIFManageTable),
/* harmony export */   "BackupTable": () => (/* binding */ BackupTable),
/* harmony export */   "VLVTable": () => (/* binding */ VLVTable)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Pagination/Pagination.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SearchInput/SearchInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/sortable.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/SortColumn.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Table.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableTypes.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Header.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Body.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/collapsible.js");
/* harmony import */ var _patternfly_react_icons_dist_js_icons_trash_alt_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-icons/dist/js/icons/trash-alt-icon */ "./node_modules/@patternfly/react-icons/dist/js/icons/trash-alt-icon.js");
/* harmony import */ var _patternfly_react_icons_dist_js_icons_arrow_right_icon__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-icons/dist/js/icons/arrow-right-icon */ "./node_modules/@patternfly/react-icons/dist/js/icons/arrow-right-icon.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_15__);
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }








class ReferralTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'Referral',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        props: {
          textCenter: true
        },
        title: 'Delete Referral'
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage
      });
    };

    this.onSort = this.onSort.bind(this);
    this.getDeleteButton = this.getDeleteButton.bind(this);
  }

  getDeleteButton(name) {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_trash_alt_icon__WEBPACK_IMPORTED_MODULE_2__["default"], {
      className: "ds-center",
      onClick: () => {
        this.props.deleteRef(name);
      },
      title: "Delete this referral"
    });
  }

  componentDidMount() {
    var rows = [];
    var columns = this.state.columns;

    var _iterator = _createForOfIteratorHelper(this.props.rows),
        _step;

    try {
      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        var refRow = _step.value;
        rows.push({
          cells: [refRow, {
            props: {
              textCenter: true
            },
            title: this.getDeleteButton(refRow)
          }]
        });
      }
    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }

    if (rows.length == 0) {
      rows = [{
        cells: ['No Referrals']
      }];
      columns = [{
        title: 'Referrals'
      }];
    }

    this.setState({
      rows: rows,
      columns: columns
    });
  }

  onSort(_event, index, direction) {
    var rows = [];
    var sortedRefs = [...this.props.rows]; // Sort the referrals and build the new rows

    sortedRefs.sort();

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc) {
      sortedRefs.reverse();
    }

    for (var _i = 0, _sortedRefs = sortedRefs; _i < _sortedRefs.length; _i++) {
      var refRow = _sortedRefs[_i];
      rows.push({
        cells: [refRow, {
          props: {
            textCenter: true
          },
          title: this.getDeleteButton(refRow)
        }]
      });
    }

    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: rows,
      page: 1
    });
  }

  render() {
    var _this$state = this.state,
        columns = _this$state.columns,
        rows = _this$state.rows,
        perPage = _this$state.perPage,
        page = _this$state.page,
        sortBy = _this$state.sortBy;
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_4__.Table, {
      className: "ds-margin-top",
      "aria-label": "referral table",
      cells: columns,
      rows: rows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_5__.TableVariant.compact,
      sortBy: sortBy,
      onSort: this.onSort
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Pagination, {
      itemCount: this.props.rows.length,
      widgetId: "pagination-options-menu-bottom",
      perPage: perPage,
      page: page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

class IndexTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'Attribute',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, // name
      {
        title: 'Indexing Types',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, // types
      {
        title: 'Matching Rules',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      } // matchingrules
      ]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage
      });
    };

    this.onSort = this.onSort.bind(this);
    this.onSearchChange = this.onSearchChange.bind(this);
  }

  componentDidMount() {
    // Copy the rows so we can handle sorting and searching
    this.setState({
      rows: [...this.props.rows]
    });
  }

  actions() {
    return [{
      title: 'Edit Index',
      onClick: (event, rowId, rowData, extra) => this.props.editIndex(rowData)
    }, {
      title: 'Reindex',
      onClick: (event, rowId, rowData, extra) => this.props.reindexIndex(rowData[0])
    }, {
      isSeparator: true
    }, {
      title: 'Delete Index',
      onClick: (event, rowId, rowData, extra) => this.props.deleteIndex(rowData[0], rowData)
    }];
  }

  onSort(_event, index, direction) {
    var sortedRows = this.state.rows.sort((a, b) => a[index] < b[index] ? -1 : a[index] > b[index] ? 1 : 0);
    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: direction === _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc ? sortedRows : sortedRows.reverse()
    });
  }

  onSearchChange(value, event) {
    var rows = [];
    var val = value.toLowerCase();

    var _iterator2 = _createForOfIteratorHelper(this.props.rows),
        _step2;

    try {
      for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
        var row = _step2.value;

        if (val != "" && row[0].indexOf(val) == -1 && row[1].indexOf(val) == -1 && row[2].indexOf(val) == -1) {
          // Not a match, skip it
          continue;
        }

        rows.push([row[0], row[1], row[2]]);
      }
    } catch (err) {
      _iterator2.e(err);
    } finally {
      _iterator2.f();
    }

    if (val == "") {
      // reset rows
      rows = [...this.props.rows];
    }

    this.setState({
      rows: rows,
      value: value,
      page: 1
    });
  }

  render() {
    var rows = JSON.parse(JSON.stringify(this.state.rows)); // Deep copy

    var columns = this.state.columns;
    var has_rows = true;
    var tableRows;

    if (rows.length == 0) {
      has_rows = false;
      columns = [{
        title: 'Indexes'
      }];
      tableRows = [{
        cells: ['No Indexes']
      }];
    } else {
      var startIdx = this.state.perPage * this.state.page - this.state.perPage;
      tableRows = rows.splice(startIdx, this.state.perPage);
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.SearchInput, {
      className: "ds-margin-top-xlg",
      placeholder: "Search indexes",
      value: this.state.value,
      onChange: this.onSearchChange,
      onClear: evt => this.onSearchChange('', evt)
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_4__.Table, {
      className: "ds-margin-top",
      "aria-label": "glue table",
      cells: columns,
      rows: tableRows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_5__.TableVariant.compact,
      sortBy: this.state.sortBy,
      onSort: this.onSort,
      actions: has_rows && this.props.editable ? this.actions() : null,
      dropdownPosition: "right",
      dropdownDirection: "bottom"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Pagination, {
      itemCount: this.props.rows.length,
      widgetId: "pagination-options-menu-bottom",
      perPage: this.state.perPage,
      page: this.state.page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

class EncryptedAttrTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'Encrypted Attribute',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        props: {
          textCenter: true
        },
        title: 'Delete Attribute'
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage
      });
    };

    this.onSort = this.onSort.bind(this);
    this.getDeleteButton = this.getDeleteButton.bind(this);
  }

  getDeleteButton(name) {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_trash_alt_icon__WEBPACK_IMPORTED_MODULE_2__["default"], {
      className: "ds-center",
      onClick: () => {
        this.props.deleteAttr(name);
      },
      title: "Delete this attribute"
    });
  }

  componentDidMount() {
    var rows = [];
    var columns = this.state.columns;

    var _iterator3 = _createForOfIteratorHelper(this.props.rows),
        _step3;

    try {
      for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
        var attrRow = _step3.value;
        rows.push({
          cells: [attrRow, {
            props: {
              textCenter: true
            },
            title: this.getDeleteButton(attrRow)
          }]
        });
      }
    } catch (err) {
      _iterator3.e(err);
    } finally {
      _iterator3.f();
    }

    if (rows.length == 0) {
      rows = [{
        cells: ['No Attributes']
      }];
      columns = [{
        title: 'Encrypted Attribute'
      }];
    }

    this.setState({
      rows: rows,
      columns: columns
    });
  }

  onSort(_event, index, direction) {
    var rows = [];
    var sortedAttrs = [...this.props.rows]; // Sort the referrals and build the new rows

    sortedAttrs.sort();

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc) {
      sortedAttrs.reverse();
    }

    for (var _i2 = 0, _sortedAttrs = sortedAttrs; _i2 < _sortedAttrs.length; _i2++) {
      var attrRow = _sortedAttrs[_i2];
      rows.push({
        cells: [attrRow, {
          props: {
            textCenter: true
          },
          title: this.getDeleteButton(attrRow)
        }]
      });
    }

    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: rows,
      page: 1
    });
  }

  render() {
    var _this$state2 = this.state,
        columns = _this$state2.columns,
        rows = _this$state2.rows,
        perPage = _this$state2.perPage,
        page = _this$state2.page,
        sortBy = _this$state2.sortBy;
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_4__.Table, {
      className: "ds-margin-top",
      "aria-label": "referral table",
      cells: columns,
      rows: rows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_5__.TableVariant.compact,
      sortBy: sortBy,
      onSort: this.onSort
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Pagination, {
      itemCount: this.props.rows.length,
      widgetId: "pagination-options-menu-bottom",
      perPage: perPage,
      page: page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

class LDIFTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'LDIF File',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Creation Date',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'File Size',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: ''
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage
      });
    };

    this.onSort = this.onSort.bind(this);
    this.getImportButton = this.getImportButton.bind(this);
  }

  getImportButton(name) {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Button, {
      variant: "primary",
      onClick: () => {
        this.props.confirmImport(name);
      },
      title: "Initialize the database with this LDIF file"
    }, "Import");
  }

  componentDidMount() {
    var rows = [];
    var columns = this.state.columns;

    var _iterator4 = _createForOfIteratorHelper(this.props.rows),
        _step4;

    try {
      for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
        var ldifRow = _step4.value;
        rows.push({
          cells: [ldifRow[0], ldifRow[1], ldifRow[2]]
        });
      }
    } catch (err) {
      _iterator4.e(err);
    } finally {
      _iterator4.f();
    }

    if (rows.length == 0) {
      rows = [{
        cells: ['No LDIF files']
      }];
      columns = [{
        title: 'LDIF File'
      }];
    }

    this.setState({
      rows: rows,
      columns: columns
    });
  }

  onSort(_event, index, direction) {
    var rows = [];
    var sortedLDIF = [...this.props.rows]; // Sort the referrals and build the new rows

    sortedLDIF.sort();

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc) {
      sortedLDIF.reverse();
    }

    for (var _i3 = 0, _sortedLDIF = sortedLDIF; _i3 < _sortedLDIF.length; _i3++) {
      var ldifRow = _sortedLDIF[_i3];
      rows.push({
        cells: [ldifRow[0], ldifRow[1], ldifRow[2]]
      });
    }

    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: rows,
      page: 1
    });
  }

  actions() {
    return [{
      title: 'Import LDIF File',
      onClick: (event, rowId, rowData, extra) => this.props.confirmImport(rowData.cells[0])
    }];
  }

  render() {
    var _this$state3 = this.state,
        columns = _this$state3.columns,
        rows = _this$state3.rows,
        perPage = _this$state3.perPage,
        page = _this$state3.page,
        sortBy = _this$state3.sortBy;
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_4__.Table, {
      className: "ds-margin-top",
      "aria-label": "ldif table",
      cells: columns,
      rows: rows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_5__.TableVariant.compact,
      sortBy: sortBy,
      onSort: this.onSort,
      actions: this.props.rows.length > 0 ? this.actions() : null,
      dropdownPosition: "right",
      dropdownDirection: "bottom"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Pagination, {
      itemCount: this.props.rows.length,
      widgetId: "pagination-options-menu-bottom",
      perPage: perPage,
      page: page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

class LDIFManageTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'LDIF File',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Suffix',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Creation Date',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'File Size',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage
      });
    };

    this.onSort = this.onSort.bind(this);
  }

  componentDidMount() {
    var rows = [];
    var columns = this.state.columns;

    var _iterator5 = _createForOfIteratorHelper(this.props.rows),
        _step5;

    try {
      for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
        var ldifRow = _step5.value;
        rows.push({
          cells: [ldifRow[0], ldifRow[3], ldifRow[1], ldifRow[2]]
        });
      }
    } catch (err) {
      _iterator5.e(err);
    } finally {
      _iterator5.f();
    }

    if (rows.length == 0) {
      rows = [{
        cells: ['No LDIF files']
      }];
      columns = [{
        title: 'LDIF File'
      }];
    }

    this.setState({
      rows: rows,
      columns: columns
    });
  }

  onSort(_event, index, direction) {
    var rows = [];
    var sortedLDIF = [...this.props.rows]; // Sort the referrals and build the new rows

    sortedLDIF.sort();

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc) {
      sortedLDIF.reverse();
    }

    for (var _i4 = 0, _sortedLDIF2 = sortedLDIF; _i4 < _sortedLDIF2.length; _i4++) {
      var ldifRow = _sortedLDIF2[_i4];
      rows.push({
        cells: [ldifRow[0], ldifRow[3], ldifRow[1], ldifRow[2]]
      });
    }

    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: rows,
      page: 1
    });
  }

  actions() {
    return [{
      title: 'Import LDIF',
      onClick: (event, rowId, rowData, extra) => this.props.confirmImport(rowData.cells[0], rowData.cells[1])
    }, {
      title: 'Delete LDIF',
      onClick: (event, rowId, rowData, extra) => this.props.confirmDelete(rowData.cells[0])
    }];
  }

  render() {
    var _this$state4 = this.state,
        columns = _this$state4.columns,
        rows = _this$state4.rows,
        perPage = _this$state4.perPage,
        page = _this$state4.page,
        sortBy = _this$state4.sortBy;
    var hasRows = true;

    if (this.props.rows.length == 0) {
      hasRows = false;
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_4__.Table, {
      className: "ds-margin-top",
      "aria-label": "manage ldif table",
      cells: columns,
      rows: rows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_5__.TableVariant.compact,
      sortBy: sortBy,
      onSort: this.onSort,
      actions: hasRows ? this.actions() : null,
      dropdownPosition: "right",
      dropdownDirection: "bottom"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Pagination, {
      itemCount: this.props.rows.length,
      widgetId: "pagination-options-menu-bottom",
      perPage: perPage,
      page: page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

class BackupTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'Backup',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Creation Date',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Size',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage
      });
    };

    this.onSort = this.onSort.bind(this);
  }

  componentDidMount() {
    var rows = [];
    var columns = this.state.columns;

    var _iterator6 = _createForOfIteratorHelper(this.props.rows),
        _step6;

    try {
      for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
        var bakRow = _step6.value;
        rows.push({
          cells: [bakRow[0], bakRow[1], bakRow[2]]
        });
      }
    } catch (err) {
      _iterator6.e(err);
    } finally {
      _iterator6.f();
    }

    if (rows.length == 0) {
      rows = [{
        cells: ['No Backups']
      }];
      columns = [{
        title: 'Backups'
      }];
    }

    this.setState({
      rows: rows,
      columns: columns
    });
  }

  onSort(_event, index, direction) {
    var rows = [];
    var sortedBaks = [...this.props.rows]; // Sort the referrals and build the new rows

    sortedBaks.sort();

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc) {
      sortedBaks.reverse();
    }

    for (var _i5 = 0, _sortedBaks = sortedBaks; _i5 < _sortedBaks.length; _i5++) {
      var bakRow = _sortedBaks[_i5];
      rows.push({
        cells: [bakRow[0], bakRow[1], bakRow[2]]
      });
    }

    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: rows,
      page: 1
    });
  }

  actions() {
    return [{
      title: 'Restore Backup',
      onClick: (event, rowId, rowData, extra) => this.props.confirmRestore(rowData.cells[0])
    }, {
      title: 'Delete Backup',
      onClick: (event, rowId, rowData, extra) => this.props.confirmDelete(rowData.cells[0])
    }];
  }

  render() {
    var _this$state5 = this.state,
        columns = _this$state5.columns,
        rows = _this$state5.rows,
        perPage = _this$state5.perPage,
        page = _this$state5.page,
        sortBy = _this$state5.sortBy;
    var hasRows = true;

    if (this.props.rows.length == 0) {
      hasRows = false;
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_4__.Table, {
      className: "ds-margin-top",
      "aria-label": "backup table",
      cells: columns,
      rows: rows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_5__.TableVariant.compact,
      sortBy: sortBy,
      onSort: this.onSort,
      actions: hasRows ? this.actions() : null,
      dropdownPosition: "right",
      dropdownDirection: "up"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Pagination, {
      itemCount: this.props.rows.length,
      widgetId: "pagination-options-menu-bottom",
      perPage: perPage,
      page: page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

class PwpTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'Target DN',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Policy Type',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Database Suffix',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage
      });
    };

    this.onSort = this.onSort.bind(this);
  }

  componentDidMount() {
    var rows = [];
    var columns = this.state.columns;

    var _iterator7 = _createForOfIteratorHelper(this.props.rows),
        _step7;

    try {
      for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
        var pwpRow = _step7.value;
        rows.push({
          cells: [pwpRow[0], pwpRow[1], pwpRow[2]]
        });
      }
    } catch (err) {
      _iterator7.e(err);
    } finally {
      _iterator7.f();
    }

    if (rows.length == 0) {
      rows = [{
        cells: ['No Local Policies']
      }];
      columns = [{
        title: 'Local Password Policies'
      }];
    }

    this.setState({
      rows: rows,
      columns: columns
    });
  }

  onSort(_event, index, direction) {
    var rows = [];
    var sortedPwp = [...this.props.rows]; // Sort the referrals and build the new rows

    sortedPwp.sort();

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc) {
      sortedPwp.reverse();
    }

    for (var _i6 = 0, _sortedPwp = sortedPwp; _i6 < _sortedPwp.length; _i6++) {
      var pwpRow = _sortedPwp[_i6];
      rows.push({
        cells: [pwpRow[0], pwpRow[1], pwpRow[2]]
      });
    }

    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: rows,
      page: 1
    });
  }

  actions() {
    return [{
      title: 'Edit Policy',
      onClick: (event, rowId, rowData, extra) => this.props.editPolicy(rowData.cells[0])
    }, {
      title: 'Delete policy',
      onClick: (event, rowId, rowData, extra) => this.props.deletePolicy(rowData.cells[0])
    }];
  }

  render() {
    var _this$state6 = this.state,
        columns = _this$state6.columns,
        rows = _this$state6.rows,
        perPage = _this$state6.perPage,
        page = _this$state6.page,
        sortBy = _this$state6.sortBy;
    var hasRows = true;

    if (this.props.rows.length == 0) {
      hasRows = false;
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_4__.Table, {
      className: "ds-margin-top",
      "aria-label": "pwp table",
      cells: columns,
      rows: rows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_5__.TableVariant.compact,
      sortBy: sortBy,
      onSort: this.onSort,
      actions: hasRows ? this.actions() : null,
      dropdownPosition: "right",
      dropdownDirection: "bottom"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Pagination, {
      itemCount: this.props.rows.length,
      widgetId: "pagination-options-menu-bottom",
      perPage: perPage,
      page: page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

class VLVTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      noRows: true,
      columns: [{
        title: 'Name',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable],
        cellFormatters: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__.expandable]
      }, {
        title: 'Search Base',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage
      });
    };

    this.onSort = this.onSort.bind(this);
    this.onCollapse = this.onCollapse.bind(this);
  }

  onSort(_event, index, direction) {
    var sorted_rows = [];
    var rows = [];
    var count = 0; // Convert the rows pairings into a sortable array based on the column indexes

    for (var idx = 0; idx < this.state.rows.length; idx += 2) {
      sorted_rows.push({
        expandedRow: this.state.rows[idx + 1],
        1: this.state.rows[idx].cells[0],
        2: this.state.rows[idx].cells[1]
      });
    } // Sort the rows and build the new rows


    sorted_rows.sort((a, b) => a[index] > b[index] ? 1 : -1);

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc) {
      sorted_rows.reverse();
    }

    for (var _i7 = 0, _sorted_rows = sorted_rows; _i7 < _sorted_rows.length; _i7++) {
      var srow = _sorted_rows[_i7];
      rows.push({
        isOpen: false,
        cells: [srow[1], srow[2]]
      });
      srow.expandedRow.parent = count; // reset parent idx

      rows.push(srow.expandedRow);
      count += 2;
    }

    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: rows,
      page: 1
    });
  }

  getScopeKey(scope) {
    var mapping = {
      2: 'subtree',
      1: 'one',
      0: 'base'
    };
    return mapping[scope];
  }

  getExpandedRow(row) {
    var sort_indexes = row.sorts.map(sort => {
      var indexState;

      if (sort.attrs.vlvenabled[0] == "0") {
        // html 5 deprecated font ...
        indexState = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("font", {
          size: "2",
          color: "#d01c8b"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Disabled"));
      } else {
        indexState = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("font", {
          size: "2",
          color: "#4dac26"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Uses: "), sort.attrs.vlvuses[0]);
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
        key: sort.attrs.vlvsort[0],
        className: "ds-container"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
        className: "ds-lower-field-md"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_arrow_right_icon__WEBPACK_IMPORTED_MODULE_13__["default"], null), " ", sort.attrs.vlvsort[0], " (", indexState, ")"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Button, {
        className: "ds-left-margin",
        onClick: () => {
          this.props.deleteSortFunc(row.attrs.cn[0], sort.attrs.vlvsort[0]);
        },
        id: row.attrs.cn[0],
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_trash_alt_icon__WEBPACK_IMPORTED_MODULE_2__["default"], null),
        variant: "link"
      }, "Delete")));
    });
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 2
    }, "Search Base:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 10
    }, row.attrs.vlvbase[0]), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 2
    }, "Search Filter:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 10
    }, row.attrs.vlvfilter[0]), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 2
    }, "Scope:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 10
    }, this.getScopeKey(row.attrs.vlvscope[0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 12
    }, "Sort Indexes:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top ds-indent"
    }, sort_indexes), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      className: "ds-label",
      span: 1
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Button, {
      className: "ds-margin-top",
      onClick: () => {
        this.props.addSortFunc(row.attrs.cn[0]);
      },
      variant: "primary"
    }, "Create Sort Index")));
  }

  componentDidMount() {
    var rows = [];
    var columns = this.state.columns;
    var count = 0;
    var noRows = true;

    var _iterator8 = _createForOfIteratorHelper(this.props.rows),
        _step8;

    try {
      for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
        var row = _step8.value;
        rows.push({
          isOpen: false,
          cells: [row.attrs.cn[0], row.attrs.vlvbase[0]]
        }, {
          parent: count,
          fullWidth: true,
          cells: [{
            title: this.getExpandedRow(row)
          }]
        });
        count += 2;
      }
    } catch (err) {
      _iterator8.e(err);
    } finally {
      _iterator8.f();
    }

    if (rows.length == 0) {
      rows = [{
        cells: ['No VLV Indexes']
      }];
      columns = [{
        title: 'VLV Indexes'
      }];
    } else {
      noRows = false;
    }

    this.setState({
      rows: rows,
      columns: columns,
      noRows: noRows
    });
  }

  onCollapse(event, rowKey, isOpen) {
    var _this$state7 = this.state,
        rows = _this$state7.rows,
        perPage = _this$state7.perPage,
        page = _this$state7.page;
    var index = perPage * (page - 1) * 2 + rowKey; // Adjust for page set

    rows[index].isOpen = isOpen;
    this.setState({
      rows
    });
  }

  actions() {
    return [{
      title: 'Reindex VLV',
      onClick: (event, rowId, rowData, extra) => this.props.reindexFunc(rowData.cells[0])
    }, {
      title: 'Delete VLV',
      onClick: (event, rowId, rowData, extra) => {
        this.props.deleteFunc(rowData.cells[0]);
      }
    }];
  }

  render() {
    var _this$state8 = this.state,
        perPage = _this$state8.perPage,
        page = _this$state8.page,
        sortBy = _this$state8.sortBy,
        rows = _this$state8.rows,
        columns = _this$state8.columns;
    var origRows = [...rows];
    var startIdx = (perPage * page - perPage) * 2;
    var tableRows = origRows.splice(startIdx, perPage * 2);

    for (var idx = 1, count = 0; idx < tableRows.length; idx += 2, count += 2) {
      // Rewrite parent index to match new spliced array
      tableRows[idx].parent = count;
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: this.props.saving || this.props.updating ? "ds-margin-top-lg ds-disabled" : "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_4__.Table, {
      className: "ds-margin-top",
      "aria-label": "vlv table",
      cells: columns,
      rows: tableRows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_5__.TableVariant.compact,
      sortBy: sortBy,
      onSort: this.onSort,
      onCollapse: this.onCollapse,
      actions: !this.state.noRows ? this.actions() : null,
      dropdownPosition: "right",
      dropdownDirection: "bottom"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Pagination, {
      itemCount: this.state.rows.length / 2,
      widgetId: "pagination-options-menu-bottom",
      perPage: perPage,
      page: page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

} // Property types and defaults


VLVTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().array),
  deleteFunc: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func),
  reindexFunc: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func)
};
VLVTable.defaultProps = {
  rows: []
};
PwpTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().array),
  editPolicy: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func),
  deletePolicy: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func)
};
PwpTable.defaultProps = {
  rows: []
};
BackupTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().array),
  confirmRestore: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func),
  confirmDelete: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func)
};
BackupTable.defaultProps = {
  rows: []
};
LDIFTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().array),
  confirmImport: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func)
};
LDIFTable.defaultProps = {
  rows: []
};
LDIFManageTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().array),
  confirmImport: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func),
  confirmDelete: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func)
};
LDIFManageTable.defaultProps = {
  rows: []
};
ReferralTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().array),
  deleteRef: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func)
};
ReferralTable.defaultProps = {
  rows: []
};
IndexTable.propTypes = {
  editable: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().bool),
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().array),
  editIndex: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func),
  reindexIndex: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func),
  deleteIndex: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func)
};
IndexTable.defaultProps = {
  editable: false,
  rows: []
};
EncryptedAttrTable.propTypes = {
  deleteAttr: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func),
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().array)
};
EncryptedAttrTable.defaultProps = {
  rows: []
};


/***/ }),

/***/ "./src/lib/database/globalPwp.jsx":
/*!****************************************!*\
  !*** ./src/lib/database/globalPwp.jsx ***!
  \****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "GlobalPwPolicy": () => (/* binding */ GlobalPwPolicy)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormAlert.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/Alert.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_25__);
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
/* harmony import */ var _fortawesome_fontawesome_svg_core_styles_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core/styles.css */ "./node_modules/@fortawesome/fontawesome-svg-core/styles.css");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }









var general_attrs = ["nsslapd-pwpolicy-local", "passwordstoragescheme", "passwordadmindn", "passwordtrackupdatetime", "nsslapd-allow-hashed-passwords", "nsslapd-pwpolicy-inherit-global", "passwordisglobalpolicy", "passwordchange", "passwordmustchange", "passwordhistory", "passwordinhistory", "passwordminage"];
var exp_attrs = ["passwordexp", "passwordgracelimit", "passwordsendexpiringtime", "passwordmaxage", "passwordwarning"];
var lockout_attrs = ["passwordlockout", "passwordunlock", "passwordlockoutduration", "passwordmaxfailure", "passwordresetfailurecount"];
var syntax_attrs = ["passwordchecksyntax", "passwordminlength", "passwordmindigits", "passwordminalphas", "passwordminuppers", "passwordminlowers", "passwordminspecials", "passwordmin8bit", "passwordmaxrepeats", "passwordpalindrome", "passwordmaxsequence", "passwordmaxseqsets", "passwordmaxclasschars", "passwordmincategories", "passwordmintokenlength", "passwordbadwords", "passworduserattributes", "passworddictcheck"];
var tpr_attrs = ["passwordtprmaxuse", "passwordtprdelayexpireat", "passwordtprdelayvalidfrom"];
class GlobalPwPolicy extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "handleSyntaxChange", (e, selection, isPlaceholder) => {
      var attr;
      var value;

      if (selection) {
        attr = "passworduserattributes";
        value = selection;
      } else {
        value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
        attr = e.target.id;
      }

      var disableSaveBtn = true; // Check if a setting was changed, if so enable the save button

      var _iterator = _createForOfIteratorHelper(syntax_attrs),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var syntax_attr = _step.value;

          if (syntax_attr == 'passworduserattributes' && attr == 'passworduserattributes') {
            var orig_val = this.state['_' + syntax_attr].join(' ');

            if (orig_val != value) {
              value = selection; // restore value

              disableSaveBtn = false;
              break;
            }

            value = selection; // restore value
          } else if (attr == syntax_attr && this.state['_' + syntax_attr] != value) {
            disableSaveBtn = false;
            break;
          }
        } // Now check for differences in values that we did not touch

      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      var _iterator2 = _createForOfIteratorHelper(syntax_attrs),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var _syntax_attr = _step2.value;

          if (_syntax_attr == 'passworduserattributes' && attr != 'passworduserattributes') {
            // Typeahead attribute needs special care
            var _orig_val = this.state['_' + _syntax_attr].join(' ');

            var new_val = this.state[_syntax_attr].join(' ');

            if (_orig_val != new_val) {
              disableSaveBtn = false;
              break;
            }
          } else if (attr != _syntax_attr && this.state['_' + _syntax_attr] != this.state[_syntax_attr]) {
            disableSaveBtn = false;
            break;
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      if (selection) {
        if (this.state[attr].includes(selection)) {
          this.setState(prevState => ({
            [attr]: prevState[attr].filter(item => item !== selection),
            isSelectOpen: false
          }));
        } else {
          this.setState(prevState => ({
            [attr]: [...prevState[attr], selection],
            saveSyntaxDisabled: disableSaveBtn,
            isSelectOpen: false
          }));
        }
      } else {
        this.setState({
          [attr]: value,
          saveSyntaxDisabled: disableSaveBtn,
          isSelectOpen: false
        });
      }
    });

    _defineProperty(this, "onSelectToggle", isSelectOpen => {
      this.setState({
        isSelectOpen
      });
    });

    _defineProperty(this, "onSelectClear", () => {
      this.setState({
        passworduserattributes: [],
        isSelectOpen: false
      });
    });

    this.state = {
      loading: true,
      loaded: false,
      saving: false,
      activeKey: 1,
      // Lists of all the attributes for each tab/section.
      // We use the exact attribute name for the ID of
      // each field, so we can loop over them to efficently
      // check for changes, and updating/saving the config.
      saveGeneralDisabled: true,
      saveExpDisabled: true,
      saveLockoutDisabled: true,
      saveSyntaxDisabled: true,
      saveTPRDisabled: true,
      isSelectOpen: false
    }; // Toggle currently active tab

    this.handleNavSelect = (event, tabIndex) => {
      this.setState({
        activeTabKey: tabIndex
      });
    };

    this.handleGeneralChange = this.handleGeneralChange.bind(this);
    this.saveGeneral = this.saveGeneral.bind(this);
    this.handleExpChange = this.handleExpChange.bind(this);
    this.saveExp = this.saveExp.bind(this);
    this.handleLockoutChange = this.handleLockoutChange.bind(this);
    this.saveLockout = this.saveLockout.bind(this);
    this.handleSyntaxChange = this.handleSyntaxChange.bind(this);
    this.saveSyntax = this.saveSyntax.bind(this);
    this.handleTPRChange = this.handleTPRChange.bind(this);
    this.saveTPR = this.saveTPR.bind(this);
    this.loadGlobal = this.loadGlobal.bind(this); // Select Typeahead

    this.onSelectToggle = this.onSelectToggle.bind(this);
    this.onSelectClear = this.onSelectClear.bind(this);
  }

  componentDidMount() {
    // Loading config TODO
    if (!this.state.loaded) {
      this.loadGlobal();
    } else {
      this.props.enableTree();
    }
  }

  handleNavSelect(key) {
    this.setState({
      activeKey: key
    });
  }

  handleGeneralChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    var disableSaveBtn = true; // Check if a setting was changed, if so enable the save button

    var _iterator3 = _createForOfIteratorHelper(general_attrs),
        _step3;

    try {
      for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
        var general_attr = _step3.value;

        if (attr == general_attr && this.state['_' + general_attr] != value) {
          disableSaveBtn = false;
          break;
        }
      } // Now check for differences in values that we did not touch

    } catch (err) {
      _iterator3.e(err);
    } finally {
      _iterator3.f();
    }

    var _iterator4 = _createForOfIteratorHelper(general_attrs),
        _step4;

    try {
      for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
        var _general_attr = _step4.value;

        if (attr != _general_attr && this.state['_' + _general_attr] != this.state[_general_attr]) {
          disableSaveBtn = false;
          break;
        }
      }
    } catch (err) {
      _iterator4.e(err);
    } finally {
      _iterator4.f();
    }

    this.setState({
      [attr]: value,
      saveGeneralDisabled: disableSaveBtn
    });
  }

  saveGeneral() {
    this.setState({
      saving: true
    });
    var cmd = ['dsconf', '-j', "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", 'config', 'replace'];

    var _iterator5 = _createForOfIteratorHelper(general_attrs),
        _step5;

    try {
      for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
        var attr = _step5.value;

        if (this.state['_' + attr] != this.state[attr]) {
          var val = this.state[attr];

          if (typeof val === "boolean") {
            if (val) {
              val = "on";
            } else {
              val = "off";
            }
          }

          cmd.push(attr + "=" + val);
        }
      }
    } catch (err) {
      _iterator5.e(err);
    } finally {
      _iterator5.f();
    }

    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("saveGeneral", "Saving general pwpolicy settings", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.loadGlobal();
      this.setState({
        saving: false
      });
      this.props.addNotification("success", "Successfully updated password policy configuration");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.loadGlobal();
      this.setState({
        saving: false
      });
      this.props.addNotification("error", "Error updating password policy configuration - ".concat(errMsg.desc));
    });
  }

  handleUserChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    var disableSaveBtn = true; // Check if a setting was changed, if so enable the save button

    var _iterator6 = _createForOfIteratorHelper(this.state.user_attrs),
        _step6;

    try {
      for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
        var user_attr = _step6.value;

        if (attr == user_attr && this.state['_' + user_attr] != value) {
          disableSaveBtn = false;
          break;
        }
      } // Now check for differences in values that we did not touch

    } catch (err) {
      _iterator6.e(err);
    } finally {
      _iterator6.f();
    }

    var _iterator7 = _createForOfIteratorHelper(this.state.user_attrs),
        _step7;

    try {
      for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
        var _user_attr = _step7.value;

        if (attr != _user_attr && this.state['_' + _user_attr] != this.state[_user_attr]) {
          disableSaveBtn = false;
          break;
        }
      }
    } catch (err) {
      _iterator7.e(err);
    } finally {
      _iterator7.f();
    }

    this.setState({
      [attr]: value,
      saveUserDisabled: disableSaveBtn
    });
  }

  handleExpChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    var disableSaveBtn = true; // Check if a setting was changed, if so enable the save button

    var _iterator8 = _createForOfIteratorHelper(exp_attrs),
        _step8;

    try {
      for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
        var exp_attr = _step8.value;

        if (attr == exp_attr && this.state['_' + exp_attr] != value) {
          disableSaveBtn = false;
          break;
        }
      } // Now check for differences in values that we did not touch

    } catch (err) {
      _iterator8.e(err);
    } finally {
      _iterator8.f();
    }

    var _iterator9 = _createForOfIteratorHelper(exp_attrs),
        _step9;

    try {
      for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
        var _exp_attr = _step9.value;

        if (attr != _exp_attr && this.state['_' + _exp_attr] != this.state[_exp_attr]) {
          disableSaveBtn = false;
          break;
        }
      }
    } catch (err) {
      _iterator9.e(err);
    } finally {
      _iterator9.f();
    }

    this.setState({
      [attr]: value,
      saveExpDisabled: disableSaveBtn
    });
  }

  saveExp() {
    this.setState({
      saving: true
    });
    var cmd = ['dsconf', '-j', "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", 'config', 'replace'];

    var _iterator10 = _createForOfIteratorHelper(exp_attrs),
        _step10;

    try {
      for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
        var attr = _step10.value;

        if (this.state['_' + attr] != this.state[attr]) {
          var val = this.state[attr];

          if (typeof val === "boolean") {
            if (val) {
              val = "on";
            } else {
              val = "off";
            }
          }

          cmd.push(attr + "=" + val);
        }
      }
    } catch (err) {
      _iterator10.e(err);
    } finally {
      _iterator10.f();
    }

    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("saveExp", "Saving Expiration pwpolicy settings", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.loadGlobal();
      this.setState({
        saving: false
      });
      this.props.addNotification("success", "Successfully updated password policy configuration");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.loadGlobal();
      this.setState({
        saving: false
      });
      this.props.addNotification("error", "Error updating password policy configuration - ".concat(errMsg.desc));
    });
  }

  handleLockoutChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    var disableSaveBtn = true; // Check if a setting was changed, if so enable the save button

    var _iterator11 = _createForOfIteratorHelper(lockout_attrs),
        _step11;

    try {
      for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
        var lockout_attr = _step11.value;

        if (attr == lockout_attr && this.state['_' + lockout_attr] != value) {
          disableSaveBtn = false;
          break;
        }
      } // Now check for differences in values that we did not touch

    } catch (err) {
      _iterator11.e(err);
    } finally {
      _iterator11.f();
    }

    var _iterator12 = _createForOfIteratorHelper(lockout_attrs),
        _step12;

    try {
      for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
        var _lockout_attr = _step12.value;

        if (attr != _lockout_attr && this.state['_' + _lockout_attr] != this.state[_lockout_attr]) {
          disableSaveBtn = false;
          break;
        }
      }
    } catch (err) {
      _iterator12.e(err);
    } finally {
      _iterator12.f();
    }

    this.setState({
      [attr]: value,
      saveLockoutDisabled: disableSaveBtn
    });
  }

  saveLockout() {
    this.setState({
      saving: true
    });
    var cmd = ['dsconf', '-j', "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", 'config', 'replace'];

    var _iterator13 = _createForOfIteratorHelper(lockout_attrs),
        _step13;

    try {
      for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {
        var attr = _step13.value;

        if (this.state['_' + attr] != this.state[attr]) {
          var val = this.state[attr];

          if (typeof val === "boolean") {
            if (val) {
              val = "on";
            } else {
              val = "off";
            }
          }

          cmd.push(attr + "=" + val);
        }
      }
    } catch (err) {
      _iterator13.e(err);
    } finally {
      _iterator13.f();
    }

    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("saveLockout", "Saving lockout pwpolicy settings", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.loadGlobal();
      this.setState({
        saving: false
      });
      this.props.addNotification("success", "Successfully updated password policy configuration");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.loadGlobal();
      this.setState({
        saving: false
      });
      this.props.addNotification("error", "Error updating password policy configuration - ".concat(errMsg.desc));
    });
  }

  saveSyntax() {
    this.setState({
      saving: true
    });
    var cmd = ['dsconf', '-j', "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", 'config', 'replace'];

    var _iterator14 = _createForOfIteratorHelper(syntax_attrs),
        _step14;

    try {
      for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {
        var attr = _step14.value;

        if (this.state['_' + attr] != this.state[attr]) {
          var val = this.state[attr];

          if (typeof val === "boolean") {
            if (val) {
              val = "on";
            } else {
              val = "off";
            }
          }

          cmd.push(attr + "=" + val);
        }
      }
    } catch (err) {
      _iterator14.e(err);
    } finally {
      _iterator14.f();
    }

    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("saveSyntax", "Saving syntax checking pwpolicy settings", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.loadGlobal();
      this.setState({
        saving: false
      });
      this.props.addNotification("success", "Successfully updated password policy configuration");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.loadGlobal();
      this.setState({
        saving: false
      });
      this.props.addNotification("error", "Error updating password policy configuration - ".concat(errMsg.desc));
    });
  }

  handleTPRChange(e) {
    var value = e.target.value;
    var attr = e.target.id;
    var disableSaveBtn = true; // Check if a setting was changed, if so enable the save button

    var _iterator15 = _createForOfIteratorHelper(tpr_attrs),
        _step15;

    try {
      for (_iterator15.s(); !(_step15 = _iterator15.n()).done;) {
        var tpr_attr = _step15.value;

        if (attr == tpr_attr && this.state['_' + tpr_attr] != value) {
          disableSaveBtn = false;
          break;
        }
      } // Now check for differences in values that we did not touch

    } catch (err) {
      _iterator15.e(err);
    } finally {
      _iterator15.f();
    }

    var _iterator16 = _createForOfIteratorHelper(tpr_attrs),
        _step16;

    try {
      for (_iterator16.s(); !(_step16 = _iterator16.n()).done;) {
        var _tpr_attr = _step16.value;

        if (attr != _tpr_attr && this.state['_' + _tpr_attr] != this.state[_tpr_attr]) {
          disableSaveBtn = false;
          break;
        }
      }
    } catch (err) {
      _iterator16.e(err);
    } finally {
      _iterator16.f();
    }

    this.setState({
      [attr]: value,
      saveTPRDisabled: disableSaveBtn
    });
  }

  saveTPR() {
    this.setState({
      saving: true
    });
    var cmd = ['dsconf', '-j', "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", 'config', 'replace'];

    var _iterator17 = _createForOfIteratorHelper(tpr_attrs),
        _step17;

    try {
      for (_iterator17.s(); !(_step17 = _iterator17.n()).done;) {
        var attr = _step17.value;

        if (this.state['_' + attr] != this.state[attr]) {
          var val = this.state[attr];
          cmd.push(attr + "=" + val);
        }
      }
    } catch (err) {
      _iterator17.e(err);
    } finally {
      _iterator17.f();
    }

    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("saveTPR", "Saving TPR settings", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.loadGlobal();
      this.setState({
        saving: false
      });
      this.props.addNotification("success", "Successfully updated password policy configuration");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.loadGlobal();
      this.setState({
        saving: false
      });
      this.props.addNotification("error", "Error updating password policy configuration - ".concat(errMsg.desc));
    });
  }

  loadGlobal() {
    this.setState({
      loading: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get"];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadGlobal", "Load global password policy", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var attrs = config.attrs; // Handle the checkbox values

      var pwpLocal = false;
      var pwIsGlobal = false;
      var pwChange = false;
      var pwMustChange = false;
      var pwHistory = false;
      var pwTrackUpdate = false;
      var pwExpire = false;
      var pwSendExpire = false;
      var pwLockout = false;
      var pwUnlock = false;
      var pwCheckSyntax = false;
      var pwPalindrome = false;
      var pwDictCheck = false;
      var pwAllowHashed = false;
      var pwInheritGlobal = false;
      var pwUserAttrs = [];

      if (attrs['nsslapd-pwpolicy-local'][0] == "on") {
        pwpLocal = true;
      }

      if (attrs.passwordchange[0] == "on") {
        pwChange = true;
      }

      if (attrs.passwordmustchange[0] == "on") {
        pwMustChange = true;
      }

      if (attrs.passwordhistory[0] == "on") {
        pwHistory = true;
      }

      if (attrs.passwordtrackupdatetime[0] == "on") {
        pwTrackUpdate = true;
      }

      if (attrs.passwordisglobalpolicy[0] == "on") {
        pwIsGlobal = true;
      }

      if (attrs.passwordsendexpiringtime[0] == "on") {
        pwSendExpire = true;
      }

      if (attrs.passwordlockout[0] == "on") {
        pwLockout = true;
      }

      if (attrs.passwordunlock[0] == "on") {
        pwUnlock = true;
      }

      if (attrs.passwordexp[0] == "on") {
        pwExpire = true;
      }

      if (attrs.passwordchecksyntax[0] == "on") {
        pwCheckSyntax = true;
      }

      if (attrs.passwordpalindrome[0] == "on") {
        pwPalindrome = true;
      }

      if (attrs.passworddictcheck[0] == "on") {
        pwExpire = true;
      }

      if (attrs['nsslapd-allow-hashed-passwords'][0] == "on") {
        pwAllowHashed = true;
      }

      if (attrs['nsslapd-pwpolicy-inherit-global'][0] == "on") {
        pwInheritGlobal = true;
      }

      if (attrs.passwordbadwords[0] != "") {
        // Hack until this is fixed: https://github.com/389ds/389-ds-base/issues/3928
        if (attrs.passwordbadwords.length > 1) {
          attrs.passwordbadwords[0] = attrs.passwordbadwords.join(' ');
        }
      }

      if (attrs.passworduserattributes[0] != "") {
        if (attrs.passworduserattributes.length > 1) {
          // Hack until this is fixed: https://github.com/389ds/389-ds-base/issues/3928
          attrs.passworduserattributes[0] = attrs.passworduserattributes.join(' ');
        } // Could be space or comma separated list


        if (attrs.passworduserattributes[0].indexOf(',') > -1) {
          pwUserAttrs = attrs.passworduserattributes[0].trim();
          pwUserAttrs = pwUserAttrs.split(',');
        } else {
          pwUserAttrs = attrs.passworduserattributes[0].split(' ');
        }
      }

      this.setState(() => ({
        loaded: true,
        loading: false,
        saveGeneralDisabled: true,
        saveUserDisabled: true,
        saveExpDisabled: true,
        saveLockoutDisabled: true,
        saveSyntaxDisabled: true,
        saveTPRDisabled: true,
        // Settings
        'nsslapd-pwpolicy-local': pwpLocal,
        passwordisglobalpolicy: pwIsGlobal,
        passwordchange: pwChange,
        passwordmustchange: pwMustChange,
        passwordhistory: pwHistory,
        passwordtrackupdatetime: pwTrackUpdate,
        passwordexp: pwExpire,
        passwordsendexpiringtime: pwSendExpire,
        passwordlockout: pwLockout,
        passwordunlock: pwUnlock,
        passwordchecksyntax: pwCheckSyntax,
        passwordpalindrome: pwPalindrome,
        passworddictcheck: pwDictCheck,
        'nsslapd-allow-hashed-passwords': pwAllowHashed,
        'nsslapd-pwpolicy-inherit-global': pwInheritGlobal,
        passwordstoragescheme: attrs.passwordstoragescheme[0],
        passwordinhistory: attrs.passwordinhistory[0],
        passwordwarning: attrs.passwordwarning[0],
        passwordmaxage: attrs.passwordmaxage[0],
        passwordminage: attrs.passwordminage[0],
        passwordgracelimit: attrs.passwordgracelimit[0],
        passwordlockoutduration: attrs.passwordlockoutduration[0],
        passwordmaxfailure: attrs.passwordmaxfailure[0],
        passwordresetfailurecount: attrs.passwordresetfailurecount[0],
        passwordminlength: attrs.passwordminlength[0],
        passwordmindigits: attrs.passwordmindigits[0],
        passwordminalphas: attrs.passwordminalphas[0],
        passwordminuppers: attrs.passwordminuppers[0],
        passwordminlowers: attrs.passwordminlowers[0],
        passwordminspecials: attrs.passwordminspecials[0],
        passwordmin8bit: attrs.passwordmin8bit[0],
        passwordmaxrepeats: attrs.passwordmaxrepeats[0],
        passwordmaxsequence: attrs.passwordmaxsequence[0],
        passwordmaxseqsets: attrs.passwordmaxseqsets[0],
        passwordmaxclasschars: attrs.passwordmaxclasschars[0],
        passwordmincategories: attrs.passwordmincategories[0],
        passwordmintokenlength: attrs.passwordmintokenlength[0],
        passwordbadwords: attrs.passwordbadwords[0],
        passworduserattributes: pwUserAttrs,
        passwordadmindn: attrs.passwordadmindn[0],
        passwordtprmaxuse: attrs.passwordtprmaxuse[0],
        passwordtprdelayexpireat: attrs.passwordtprdelayexpireat[0],
        passwordtprdelayvalidfrom: attrs.passwordtprdelayvalidfrom[0],
        // Record original values
        '_nsslapd-pwpolicy-local': pwpLocal,
        _passwordisglobalpolicy: pwIsGlobal,
        _passwordchange: pwChange,
        _passwordmustchange: pwMustChange,
        _passwordhistory: pwHistory,
        _passwordtrackupdatetime: pwTrackUpdate,
        _passwordexp: pwExpire,
        _passwordsendexpiringtime: pwSendExpire,
        _passwordlockout: pwLockout,
        _passwordunlock: pwUnlock,
        _passwordchecksyntax: pwCheckSyntax,
        _passwordpalindrome: pwPalindrome,
        _passworddictcheck: pwDictCheck,
        '_nsslapd-allow-hashed-passwords': pwAllowHashed,
        '_nsslapd-pwpolicy-inherit-global': pwInheritGlobal,
        _passwordstoragescheme: attrs.passwordstoragescheme[0],
        _passwordinhistory: attrs.passwordinhistory[0],
        _passwordwarning: attrs.passwordwarning[0],
        _passwordmaxage: attrs.passwordmaxage[0],
        _passwordminage: attrs.passwordminage[0],
        _passwordgracelimit: attrs.passwordgracelimit[0],
        _passwordlockoutduration: attrs.passwordlockoutduration[0],
        _passwordmaxfailure: attrs.passwordmaxfailure[0],
        _passwordresetfailurecount: attrs.passwordresetfailurecount[0],
        _passwordminlength: attrs.passwordminlength[0],
        _passwordmindigits: attrs.passwordmindigits[0],
        _passwordminalphas: attrs.passwordminalphas[0],
        _passwordminuppers: attrs.passwordminuppers[0],
        _passwordminlowers: attrs.passwordminlowers[0],
        _passwordminspecials: attrs.passwordminspecials[0],
        _passwordmin8bit: attrs.passwordmin8bit[0],
        _passwordmaxrepeats: attrs.passwordmaxrepeats[0],
        _passwordmaxsequence: attrs.passwordmaxsequence[0],
        _passwordmaxseqsets: attrs.passwordmaxseqsets[0],
        _passwordmaxclasschars: attrs.passwordmaxclasschars[0],
        _passwordmincategories: attrs.passwordmincategories[0],
        _passwordmintokenlength: attrs.passwordmintokenlength[0],
        _passwordbadwords: attrs.passwordbadwords[0],
        _passworduserattributes: pwUserAttrs,
        _passwordadmindn: attrs.passwordadmindn[0],
        _passwordtprmaxuse: attrs.passwordtprmaxuse[0],
        _passwordtprdelayexpireat: attrs.passwordtprdelayexpireat[0],
        _passwordtprdelayvalidfrom: attrs.passwordtprdelayvalidfrom[0]
      }), this.props.enableTree());
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.setState({
        loaded: true,
        loading: false
      });
      this.props.addNotification("error", "Error loading global password policy - ".concat(errMsg.desc));
    });
  }

  render() {
    var pwp_element = "";
    var pwExpirationRows = "";
    var pwLockoutRows = "";
    var pwSyntaxRows = "";
    var saveBtnName = "Save";
    var extraPrimaryProps = {};

    if (this.state.saving) {
      saveBtnName = "Saving ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    if (this.state.passwordchecksyntax) {
      pwSyntaxRows = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Minimum Length"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
        title: "The minimum number of characters in the password (passwordMinLength).",
        value: this.state.passwordminlength,
        type: "number",
        id: "passwordminlength",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordminlength",
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        className: "ds-label",
        offset: 6,
        span: 3
      }, "Minimum Alpha's"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
        title: "Reject passwords with fewer than this many alpha characters (passwordMinAlphas).",
        value: this.state.passwordminalphas,
        type: "number",
        id: "passwordminalphas",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordminalphas",
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Minimum Digits"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
        title: "Reject passwords with fewer than this many digit characters (0-9) (passwordMinDigits).",
        value: this.state.passwordmindigits,
        type: "number",
        id: "passwordmindigits",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordmindigits",
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        className: "ds-label",
        offset: 6,
        span: 3
      }, "Minimum Special"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
        title: "Reject passwords with fewer than this many special non-alphanumeric characters (passwordMinSpecials).",
        value: this.state.passwordminspecials,
        type: "number",
        id: "passwordminspecials",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordminspecials",
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Minimum Uppercase"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
        title: "Reject passwords with fewer than this many uppercase characters (passwordMinUppers).",
        value: this.state.passwordminuppers,
        type: "number",
        id: "passwordminuppers",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordminuppers",
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        className: "ds-label",
        offset: 6,
        span: 3
      }, "Minimum Lowercase"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
        title: "Reject passwords with fewer than this many lowercase characters (passwordMinLowers).",
        value: this.state.passwordminlowers,
        type: "number",
        id: "passwordminlowers",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordminlowers",
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Minimum 8-bit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
        title: "Reject passwords with fewer than this many 8-bit or multi-byte characters (passwordMin8Bit).",
        value: this.state.passwordmin8bit,
        type: "number",
        id: "passwordmin8bit",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordmin8bit",
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        className: "ds-label",
        offset: 6,
        span: 3
      }, "Minimum Categories"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
        title: "The minimum number of character categories that a password must contain (categories are upper, lower, digit, special, and 8-bit) (passwordMinCategories).",
        value: this.state.passwordmincategories,
        type: "number",
        id: "passwordmincategories",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordmincategories",
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Maximum Sequences"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
        title: "The maximum number of allowed monotonic characters sequences (passwordMaxSequence).",
        value: this.state.passwordmaxsequence,
        type: "number",
        id: "passwordmaxsequence",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordmaxsequence",
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        className: "ds-label",
        offset: 6,
        span: 3
      }, "Max Sequence Sets"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
        title: "The maximum number of allowed monotonic characters sequences that can appear more than once (passwordMaxSeqSets).",
        value: this.state.passwordmaxseqsets,
        type: "number",
        id: "passwordmaxseqsets",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordmaxseqsets",
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Max Seq Per Class"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
        title: "The maximum number of consecutive characters from the same character class/category (passwordMaxClassChars).",
        value: this.state.passwordmaxclasschars,
        type: "number",
        id: "passwordmaxclasschars",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordmaxclasschars",
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Prohibited Words"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
        title: "A space-separated list of words that are not allowed to be contained in the new password (passwordBadWords).",
        value: this.state.passwordbadwords,
        type: "text",
        id: "passwordbadwords",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordbadwords",
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        className: "ds-margin-top",
        title: "A list of entry attributes to compare to the new password (passwordUserAttributes)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Check User Attributes"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Select, {
        variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.SelectVariant.typeaheadMulti,
        typeAheadAriaLabel: "Type an attribute to check",
        onToggle: this.onSelectToggle,
        onSelect: this.handleSyntaxChange,
        onClear: this.onSelectClear,
        selections: this.state.passworduserattributes,
        isOpen: this.state.isSelectOpen,
        "aria-labelledby": "typeAhead-user-attr",
        placeholderText: "Type attributes to check...",
        noResultsFoundText: "There are no matching entries"
      }, this.props.attrs.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.SelectOption, {
        key: index,
        value: attr
      }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        className: "ds-margin-top-lg",
        title: "Check the password against the system's CrackLib dictionary (passwordDictCheck)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Checkbox, {
        id: "passworddictcheck",
        isChecked: this.state.passworddictcheck,
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        },
        label: "Dictionary Check"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        className: "ds-margin-top",
        title: "Check if the password is a palindrome (passwordPalindrome)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Checkbox, {
        id: "passwordpalindrome",
        isChecked: this.state.passwordpalindrome,
        className: "ds-label",
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        },
        label: "Reject Palindromes"
      }))));
    }

    if (this.state.passwordlockout) {
      pwLockoutRows = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        className: "ds-margin-top",
        title: "The maximum number of failed logins before account gets locked (passwordMaxFailure)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        className: "ds-label",
        span: 5
      }, "Number of Failed Logins That Locks out Account"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
        value: this.state.passwordmaxfailure,
        type: "number",
        id: "passwordmaxfailure",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordmaxpasswordmaxfailureclasschars",
        onChange: (checked, e) => {
          this.handleLockoutChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        className: "ds-margin-top",
        title: "The number of seconds until an accounts failure count is reset (passwordResetFailureCount)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        className: "ds-label",
        span: 5
      }, "Time Until ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("i", null, "Failure Count"), " Resets"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
        value: this.state.passwordresetfailurecount,
        type: "number",
        id: "passwordresetfailurecount",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordresetfailurecount",
        onChange: (checked, e) => {
          this.handleLockoutChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        className: "ds-margin-top",
        title: "The number of seconds, duration, before the account gets unlocked (passwordLockoutDuration)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        className: "ds-label",
        span: 5
      }, "Time Until Account Unlocked"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
        value: this.state.passwordlockoutduration,
        type: "number",
        id: "passwordlockoutduration",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordlockoutduration",
        onChange: (checked, e) => {
          this.handleLockoutChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        className: "ds-margin-top",
        title: "Do not lockout the user account forever, instead the account will unlock based on the lockout duration (passwordUnlock)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        className: "ds-label",
        span: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Checkbox, {
        id: "passwordunlock",
        isChecked: this.state.passwordunlock,
        onChange: (checked, e) => {
          this.handleLockoutChange(e);
        },
        label: "Do Not Lockout Account Forever"
      }))));
    }

    if (this.state.passwordexp) {
      pwExpirationRows = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        className: "ds-margin-top",
        title: "The maxiumum age of a password in seconds before it expires (passwordMaxAge)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        className: "ds-label",
        span: 5
      }, "Password Expiration Time"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
        value: this.state.passwordmaxage,
        type: "number",
        id: "passwordmaxage",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordmaxage",
        onChange: (checked, e) => {
          this.handleExpChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        className: "ds-margin-top",
        title: "The number of logins that are allowed after the password has expired (passwordGraceLimit)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        className: "ds-label",
        span: 5
      }, "Allowed Logins After Password Expires"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
        value: this.state.passwordgracelimit,
        type: "number",
        id: "passwordgracelimit",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordgracelimit",
        onChange: (checked, e) => {
          this.handleExpChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        className: "ds-margin-top",
        title: "Set the time (in seconds), before a password is about to expire, to send a warning. (passwordWarning)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        className: "ds-label",
        span: 5
      }, "Send Password Expiring Warning"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
        value: this.state.passwordwarning,
        type: "number",
        id: "passwordwarning",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordwarning",
        onChange: (checked, e) => {
          this.handleExpChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        className: "ds-margin-top",
        title: "Always return a password expiring control when requested (passwordSendExpiringTime)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        className: "ds-label",
        span: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Checkbox, {
        id: "passwordsendexpiringtime",
        isChecked: this.state.passwordsendexpiringtime,
        onChange: (checked, e) => {
          this.handleExpChange(e);
        },
        label: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, "Always Send ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("i", null, "Password Expiring"), "\xA0 Control")
      }))));
    }

    if (this.state.loading || !this.state.loaded) {
      pwp_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-top-xlg ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Spinner, {
        isSVG: true,
        size: "xl"
      }));
    } else {
      pwp_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: this.state.loading ? 'ds-fadeout ds-margin-bottom-md' : 'ds-fadein ds-left-margin ds-margin-bottom-md'
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Tabs, {
        className: "ds-margin-top-lg",
        activeKey: this.state.activeTabKey,
        onSelect: this.handleNavSelect
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Tab, {
        eventKey: 0,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TabTitleText, null, "General Settings")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Form, {
        className: "ds-margin-left-sm",
        isHorizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        className: "ds-margin-top-xlg",
        title: "Allow subtree/user defined local password policies (nsslapd-pwpolicy-local)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Checkbox, {
        id: "nsslapd-pwpolicy-local",
        isChecked: this.state['nsslapd-pwpolicy-local'],
        onChange: (checked, e) => {
          this.handleGeneralChange(e);
        },
        label: "Allow Local Password Policies"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        title: "If a local password policy does not defined any syntax rules then inherit the local policy syntax (nsslapd-pwpolicy-inherit-global)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Checkbox, {
        id: "nsslapd-pwpolicy-inherit-global",
        isChecked: this.state["nsslapd-pwpolicy-inherit-global"],
        onChange: (checked, e) => {
          this.handleGeneralChange(e);
        },
        label: "Local Policies Inherit Global Policy"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        title: "Allow anyone to add a prehashed password (nsslapd-allow-hashed-passwords)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Checkbox, {
        id: "nsslapd-allow-hashed-passwords",
        isChecked: this.state["nsslapd-allow-hashed-passwords"],
        onChange: (checked, e) => {
          this.handleGeneralChange(e);
        },
        label: "Allow Adding Pre-Hashed Passwords"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        title: "Allow password policy state attributes to replicate (passwordIsGlobalPolicy)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Checkbox, {
        id: "passwordisglobalpolicy",
        isChecked: this.state.passwordisglobalpolicy,
        onChange: (checked, e) => {
          this.handleGeneralChange(e);
        },
        label: "Replicate Password Policy State Attributes"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        title: "Record a separate timestamp specifically for the last time that the password for an entry was changed. If this is enabled, then it adds the pwdUpdateTime operational attribute to the user account entry (passwordTrackUpdateTime)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Checkbox, {
        id: "passwordtrackupdatetime",
        isChecked: this.state.passwordtrackupdatetime,
        onChange: (checked, e) => {
          this.handleGeneralChange(e);
        },
        label: "Track Password Update Time"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        title: "Allow user's to change their passwords (passwordChange)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Checkbox, {
        id: "passwordchange",
        isChecked: this.state.passwordchange,
        onChange: (checked, e) => {
          this.handleGeneralChange(e);
        },
        label: "Allow Users To Change Their Passwords"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        title: "User must change its password after its been reset by an administrator (passwordMustChange)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Checkbox, {
        id: "passwordmustchange",
        isChecked: this.state.passwordmustchange,
        onChange: (checked, e) => {
          this.handleGeneralChange(e);
        },
        label: "User Must Change Password After Reset"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        title: "Maintain a password history for each user (passwordHistory)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-inline"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Checkbox, {
        id: "passwordhistory",
        isChecked: this.state.passwordhistory,
        onChange: (checked, e) => {
          this.handleGeneralChange(e);
        },
        label: "Keep Password History"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-inline ds-left-margin ds-raise-field-md ds-width-sm"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
        value: this.state.passwordinhistory,
        type: "number",
        id: "passwordinhistory",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordinhistory",
        onChange: (checked, e) => {
          this.handleGeneralChange(e);
        }
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        className: "ds-margin-top",
        title: "Set the password storage scheme (passwordstoragescheme)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 3,
        className: "ds-label"
      }, "Password Storage Scheme"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.FormSelect, {
        id: "passwordstoragescheme",
        value: this.state.passwordstoragescheme,
        onChange: (value, event) => {
          this.handleGeneralChange(event);
        },
        "aria-label": "FormSelect Input"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.FormSelectOption, {
        key: "0",
        value: "PBKDF2_SHA256",
        label: "PBKDF2_SHA256"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.FormSelectOption, {
        key: "1",
        value: "SSHA512",
        label: "SSHA512"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.FormSelectOption, {
        key: "2",
        value: "SSHA384",
        label: "SSHA384"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.FormSelectOption, {
        key: "3",
        value: "SSHA256",
        label: "SSHA256"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.FormSelectOption, {
        key: "4",
        value: "SSHA",
        label: "SSHA"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.FormSelectOption, {
        key: "5",
        value: "MD5",
        label: "MD5"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.FormSelectOption, {
        key: "6",
        value: "SMD5",
        label: "SMD5"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.FormSelectOption, {
        key: "7",
        value: "CRYPT-MD5",
        label: "CRYPT-MD5"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.FormSelectOption, {
        key: "8",
        value: "CRYPT-SHA512",
        label: "CRYPT-SHA512"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.FormSelectOption, {
        key: "9",
        value: "CRYPT-SHA256",
        label: "CRYPT-SHA256"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.FormSelectOption, {
        key: "10",
        value: "CRYPT",
        label: "CRYPT"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.FormSelectOption, {
        key: "11",
        value: "GOST_YESCRYPT",
        label: "GOST_YESCRYPT"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.FormSelectOption, {
        key: "12",
        value: "CLEAR",
        label: "CLEAR"
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        title: "Indicates the number of seconds that must pass before a user can change their password again. (passwordMinAge)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Password Minimum Age"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
        value: this.state.passwordminage,
        type: "number",
        id: "passwordminage",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordminage",
        onChange: (checked, e) => {
          this.handleGeneralChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        title: "The DN for a password administrator or administrator group (passwordAdminDN)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Password Administrator"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
        value: this.state.passwordadmindn,
        type: "text",
        id: "passwordadmindn",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordadmindn",
        onChange: (checked, e) => {
          this.handleGeneralChange(e);
        }
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Button, _extends({
        isDisabled: this.state.saveGeneralDisabled,
        variant: "primary",
        className: "ds-margin-top-xlg ds-margin-left-sm",
        onClick: this.saveGeneral,
        isLoading: this.state.saving,
        spinnerAriaValueText: this.state.saving ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Tab, {
        eventKey: 1,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TabTitleText, null, "Expiration")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Form, {
        className: "ds-margin-top-xlg ds-margin-left",
        isHorizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        title: "Enable a password expiration policy (passwordExp)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Checkbox, {
        id: "passwordexp",
        isChecked: this.state.passwordexp,
        onChange: (checked, e) => {
          this.handleExpChange(e);
        },
        label: "Enforce Password Expiration"
      }))), pwExpirationRows), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Button, _extends({
        isDisabled: this.state.saveExpDisabled,
        variant: "primary",
        className: "ds-margin-top-xlg ds-margin-left",
        onClick: this.saveExp,
        isLoading: this.state.saving,
        spinnerAriaValueText: this.state.saving ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Tab, {
        eventKey: 2,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TabTitleText, null, "Account Lockout")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Form, {
        className: "ds-margin-top-xlg ds-margin-left",
        isHorizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        title: "Enable account lockout (passwordLockout)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Checkbox, {
        id: "passwordlockout",
        isChecked: this.state.passwordlockout,
        onChange: (checked, e) => {
          this.handleLockoutChange(e);
        },
        label: "Enable Account Lockout"
      }))), pwLockoutRows), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Button, _extends({
        isDisabled: this.state.saveLockoutDisabled,
        variant: "primary",
        className: "ds-margin-top-xlg ds-margin-left",
        onClick: this.saveLockout,
        isLoading: this.state.saving,
        spinnerAriaValueText: this.state.saving ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Tab, {
        eventKey: 3,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TabTitleText, null, "Syntax Checking")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Form, {
        className: "ds-margin-top-xlg ds-margin-left",
        isHorizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        title: "Enable password syntax checking (passwordCheckSyntax)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Checkbox, {
        id: "passwordchecksyntax",
        isChecked: this.state.passwordchecksyntax,
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        },
        label: "Enable Password Syntax Checking"
      }))), pwSyntaxRows), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Button, _extends({
        isDisabled: this.state.saveSyntaxDisabled,
        variant: "primary",
        className: "ds-margin-top-xlg ds-margin-left",
        onClick: this.saveSyntax,
        isLoading: this.state.saving,
        spinnerAriaValueText: this.state.saving ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Tab, {
        eventKey: 4,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TabTitleText, null, "Temporary Password Rules")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Form, {
        className: "ds-margin-top ds-margin-left",
        isHorizontal: true,
        autoComplete: "off"
      }, this.state.passwordmustchange == false && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.FormAlert, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.Alert, {
        variant: "info",
        title: "\"User Must Change Password After Reset\" must be enabled in General Settings to activate TPR.",
        "aria-live": "polite",
        isInline: true
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        title: "Number of times the temporary password can be used to authenticate (passwordTPRMaxUse)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Password Max Use"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
        value: this.state.passwordtprmaxuse,
        type: "number",
        id: "passwordtprmaxuse",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordtprmaxuse",
        isDisabled: !this.state.passwordmustchange,
        onChange: (checked, e) => {
          this.handleTPRChange(e);
        }
      }))), pwSyntaxRows), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Form, {
        className: "ds-margin-top ds-margin-left",
        isHorizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        title: "Number of seconds before the temporary password expires (passwordTPRDelayExpireAt)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Password Expires In"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
        value: this.state.passwordtprdelayexpireat,
        type: "number",
        id: "passwordtprdelayexpireat",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordtprdelayexpireat",
        isDisabled: !this.state.passwordmustchange,
        onChange: (checked, e) => {
          this.handleTPRChange(e);
        }
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Form, {
        className: "ds-margin-top ds-margin-left",
        isHorizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
        title: "Number of seconds after which temporary password starts to be valid for authentication (passwordTPRDelayValidFrom)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Password Valid From"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextInput, {
        value: this.state.passwordtprdelayvalidfrom,
        type: "number",
        id: "passwordtprdelayvalidfrom",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordtprdelayvalidfrom",
        isDisabled: !this.state.passwordmustchange,
        onChange: (checked, e) => {
          this.handleTPRChange(e);
        }
      }))), pwSyntaxRows), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Button, _extends({
        isDisabled: this.state.saveTPRDisabled,
        variant: "primary",
        className: "ds-margin-top-xlg ds-margin-left",
        onClick: this.saveTPR,
        isLoading: this.state.saving,
        spinnerAriaValueText: this.state.saving ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName))));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: this.state.saving ? "ds-disabled" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.TextVariants.h3
    }, "Global Password Policy ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, {
      size: "lg",
      className: "ds-left-margin ds-refresh",
      icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_24__.faSyncAlt,
      title: "Refresh global password policy settings",
      onClick: this.loadGlobal
    }))))), pwp_element);
  }

}
GlobalPwPolicy.propTypes = {
  attrs: (prop_types__WEBPACK_IMPORTED_MODULE_25___default().array)
};
GlobalPwPolicy.defaultProps = {
  attrs: []
};

/***/ }),

/***/ "./src/lib/database/indexes.jsx":
/*!**************************************!*\
  !*** ./src/lib/database/indexes.jsx ***!
  \**************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SuffixIndexes": () => (/* binding */ SuffixIndexes)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./databaseTables.jsx */ "./src/lib/database/databaseTables.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_19__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }








var edit_attrs = ['mrs', 'editIndexTypeEq', 'editIndexTypeSub', 'editIndexTypePres', 'editIndexTypeApprox'];
class SuffixIndexes extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "handleTypeaheadChange", item => (event, values) => {
      switch (item) {
        case "addIndexAttributes":
          this.setState({
            addIndexName: [...this.state.addIndexName, values]
          });
          break;

        case "addMatchingRules":
        case "matchingRulesEdit":
          this.setState({
            mrs: [...this.state.mrs, values]
          });
          break;

        default:
          break;
      }
    });

    _defineProperty(this, "onSelectToggle", (isExpanded, toggleId) => {
      this.setState({
        [toggleId]: isExpanded
      });
    });

    _defineProperty(this, "onSelectClear", item => event => {
      switch (item) {
        case "addIndexAttributes":
          this.setState({
            addIndexName: [],
            isAddIndexSelectOpen: false
          });
          break;

        case "addMatchingRules":
          this.setState({
            mrs: [],
            isAddMrsSelectOpen: false
          });
          break;

        case "matchingRulesEdit":
          this.setState({
            mrs: [],
            isEditIndexSelectOpen: false
          });
          break;

        default:
          break;
      }
    });

    this.state = {
      // indexes
      showIndexModal: false,
      showEditIndexModal: false,
      activeTabKey: 0,
      modalChecked: false,
      modalSpinning: false,
      editIndexName: "",
      types: "",
      attributes: [],
      matchingRules: [],
      mrs: [],
      _mrs: [],
      showConfirmReindex: false,
      reindexAttrName: "",
      showConfirmDeleteIndex: false,
      deleteAttrName: "",
      saving: false,
      saveBtnDisabled: true,
      // Add indexes
      addIndexName: [],
      addIndexTypeEq: false,
      addIndexTypePres: false,
      addIndexTypeSub: false,
      addIndexTypeApprox: false,
      reindexOnAdd: false,
      // Edit indexes
      errObj: {},
      _isMounted: true,
      // Select Typeahead
      isAttributeOpen: false,
      isMatchingruleAddOpen: false,
      isMatchingruleEditOpen: false
    }; // Toggle currently active tab

    this.handleNavSelect = (event, tabIndex) => {
      this.setState({
        activeTabKey: tabIndex
      });
    }; // Select Attribute


    this.onAttributeSelect = (event, selection) => {
      if (this.state.addIndexName.includes(selection)) {
        this.setState(prevState => ({
          addIndexName: prevState.addIndexName.filter(item => item !== selection),
          isAttributeOpen: false
        }));
      } else {
        this.setState(prevState => ({
          addIndexName: [...prevState.addIndexName, selection],
          isAttributeOpen: false
        }));
      }
    };

    this.onAttributeToggle = isAttributeOpen => {
      this.setState({
        isAttributeOpen
      });
    };

    this.onAttributeClear = () => {
      this.setState({
        addIndexName: [],
        isAttributeOpen: false
      });
    }; // Add Matching Rule


    this.onMatchingruleAddSelect = (event, selection) => {
      var saveBtnDisabled = true;
      var new_mrs = this.state.mrs;

      if (new_mrs.includes(selection)) {
        var index = new_mrs.indexOf(selection);
        new_mrs.splice(index, 1);

        if (JSON.stringify(this.state._mrs) != JSON.stringify(new_mrs)) {
          saveBtnDisabled = false;
        } // We must have at least one index type set


        if (!this.state.addIndexTypeEq && !this.state.addIndexTypeSub && !this.state.addIndexTypePres && !this.state.addIndexTypeApprox || this.state.addIndexName == "") {
          // Must always have one index type
          saveBtnDisabled = true;
        }

        this.setState({
          mrs: new_mrs,
          isMatchingruleAddOpen: false,
          saveBtnDisabled: saveBtnDisabled
        });
      } else {
        new_mrs.push(selection);

        if (JSON.stringify(this.state._mrs) != JSON.stringify(new_mrs)) {
          saveBtnDisabled = false;
        }

        this.setState(prevState => ({
          mrs: new_mrs,
          isMatchingruleAddOpen: false,
          saveBtnDisabled: saveBtnDisabled
        }));
      }
    };

    this.onMatchingruleAddToggle = isMatchingruleAddOpen => {
      this.setState({
        isMatchingruleAddOpen
      });
    };

    this.onMatchingruleAddClear = () => {
      this.setState({
        mrs: [],
        isMatchingruleAddOpen: false
      });
    }; // Edit Matching Rules


    this.onMatchingruleEditSelect = (event, selection) => {
      if (this.state.mrs.includes(selection)) {
        this.setState(prevState => ({
          mrs: prevState.mrs.filter(item => item !== selection),
          isMatchingruleEditOpen: false
        }));
      } else {
        this.setState(prevState => ({
          mrs: [...prevState.mrs, selection],
          isMatchingruleEditOpen: false
        }));
      }
    };

    this.onMatchingruleEditToggle = isMatchingruleEditOpen => {
      this.setState({
        isMatchingruleEditOpen
      });
    };

    this.onMatchingruleEditClear = () => {
      this.setState({
        mrs: [],
        isMatchingruleEditOpen: false
      });
    };

    this.loadIndexes = this.loadIndexes.bind(this);
    this.showIndexModal = this.showIndexModal.bind(this);
    this.closeIndexModal = this.closeIndexModal.bind(this);
    this.handleChange = this.handleChange.bind(this);
    this.handleAddChange = this.handleAddChange.bind(this);
    this.handleEditChange = this.handleEditChange.bind(this);
    this.handleTypeaheadChange = this.handleTypeaheadChange.bind(this);
    this.onSelectToggle = this.onSelectToggle.bind(this);
    this.onSelectClear = this.onSelectClear.bind(this);
    this.saveIndex = this.saveIndex.bind(this);
    this.saveEditIndex = this.saveEditIndex.bind(this);
    this.reindexIndex = this.reindexIndex.bind(this);
    this.deleteIndex = this.deleteIndex.bind(this);
    this.showEditIndexModal = this.showEditIndexModal.bind(this);
    this.closeEditIndexModal = this.closeEditIndexModal.bind(this);
    this.showConfirmReindex = this.showConfirmReindex.bind(this);
    this.closeConfirmReindex = this.closeConfirmReindex.bind(this);
    this.showConfirmDeleteIndex = this.showConfirmDeleteIndex.bind(this);
    this.closeConfirmDeleteIndex = this.closeConfirmDeleteIndex.bind(this);
  }

  componentDidMount() {
    this.loadIndexes();
  }

  componentWillUnmount() {
    this.state._isMounted = false;
  }

  loadIndexes() {
    // Get all the attributes and matching rules now
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "matchingrules", "list"];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("loadIndexes (suffix config)", "Get matching rules", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var mrContent = JSON.parse(content);
      var mrs = [];

      for (var i = 0; i < mrContent.items.length; i++) {
        if (mrContent.items[i].name[0] != "") {
          mrs.push(mrContent.items[i].name[0]);
        }
      }

      var idx_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "index", "list", "--just-names", this.props.suffix];
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("loadIndexes (suffix config)", "Get current index list", idx_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(idx_cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        var idxContent = JSON.parse(content);
        var indexList = idxContent.items;
        var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
        (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("loadIndexes (suffix config)", "Get attrs", attr_cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(attr_cmd, {
          superuser: true,
          err: "message"
        }).done(content => {
          var attrContent = JSON.parse(content);
          var attrs = [];

          var _iterator = _createForOfIteratorHelper(attrContent.items),
              _step;

          try {
            for (_iterator.s(); !(_step = _iterator.n()).done;) {
              var _content = _step.value;

              if (indexList.indexOf(_content.name[0]) == -1) {
                // Attribute is not a current index, add it to the list
                // of available attributes to index
                attrs.push(_content.name[0]);
              }
            }
          } catch (err) {
            _iterator.e(err);
          } finally {
            _iterator.f();
          }

          if (this.state._isMounted) {
            this.setState({
              matchingRules: mrs,
              attributes: attrs,
              saveBtnDisabled: true
            });
          }
        }).fail(err => {
          var errMsg = JSON.parse(err);
          this.props.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
        });
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to get matching rules - ".concat(errMsg.desc));
    });
  } //
  // Index Modal functions
  //


  showIndexModal() {
    this.setState({
      showIndexModal: true,
      errObj: {},
      mrs: [],
      addIndexName: [],
      addIndexTypeEq: false,
      addIndexTypeSub: false,
      addIndexTypePres: false,
      addIndexTypeApprox: false,
      reindexOnAdd: false,
      modalChecked: false,
      modalSpinning: false,
      saveBtnDisabled: true
    });
  }

  closeIndexModal() {
    this.setState({
      showIndexModal: false
    });

    if (this.state.isMatchingruleAddOpen) {
      this.setState({
        isMatchingruleAddOpen: false
      });
    }
  }

  handleChange(e) {
    // Handle the modal changes
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [e.target.id]: value
    });
  }

  handleAddChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var saveBtnDisabled = true;
    var attr = e.target.id; // We must have at least one index type set

    var index_types = ['addIndexTypeEq', 'addIndexTypeSub', 'addIndexTypePres', 'addIndexTypeApprox'];

    for (var _i = 0, _index_types = index_types; _i < _index_types.length; _i++) {
      var index_type = _index_types[_i];

      if (attr != index_type && this.state[index_type]) {
        saveBtnDisabled = false;
      }
    }

    if (index_types.includes(attr) && value) {
      saveBtnDisabled = false;
    } // Finally we must have an attribute choosen or else we deny access to Save


    if (attr != 'addIndexName') {
      if (this.state.addIndexName == "") {
        saveBtnDisabled = true;
      }
    } else {
      if (value == "") {
        saveBtnDisabled = true;
      }
    }

    this.setState({
      [attr]: value,
      saveBtnDisabled: saveBtnDisabled
    });
  }

  handleEditChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    var saveBtnDisabled = true; // Check if a setting was changed, if so enable the save button

    var _iterator2 = _createForOfIteratorHelper(edit_attrs),
        _step2;

    try {
      for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
        var edit_attr = _step2.value;

        if (attr == edit_attr && this.state['_' + edit_attr] != value) {
          saveBtnDisabled = false;
          break;
        }
      } // Now check for differences in values that we did not touch

    } catch (err) {
      _iterator2.e(err);
    } finally {
      _iterator2.f();
    }

    var _iterator3 = _createForOfIteratorHelper(edit_attrs),
        _step3;

    try {
      for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
        var _edit_attr = _step3.value;

        if (attr != _edit_attr && this.state['_' + _edit_attr] != this.state[_edit_attr]) {
          saveBtnDisabled = false;
          break;
        }
      }
    } catch (err) {
      _iterator3.e(err);
    } finally {
      _iterator3.f();
    }

    if (JSON.stringify(this.state.mrs) != JSON.stringify(this.state._mrs)) {
      saveBtnDisabled = false;
    } // We must have at least one index type set


    var index_types = ['editIndexTypeEq', 'editIndexTypeSub', 'editIndexTypePres', 'editIndexTypeApprox'];

    if (index_types.includes(attr)) {
      var index = index_types.indexOf(attr);
      index_types.splice(index, 1);
      var type_set = false; // Check the old values

      var _iterator4 = _createForOfIteratorHelper(index_types),
          _step4;

      try {
        for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
          var index_type = _step4.value;

          if (this.state[index_type]) {
            type_set = true;
            break;
          }
        } // Check the new current value

      } catch (err) {
        _iterator4.e(err);
      } finally {
        _iterator4.f();
      }

      if (attr) {
        type_set = true;
      }

      if (!type_set) {
        saveBtnDisabled = true;
      }
    } else {
      if (!this.state.editIndexTypeEq && !this.state.editIndexTypeSub && !this.state.editIndexTypePres && !this.state.editIndexTypeApprox) {
        // Must always have one index type
        saveBtnDisabled = true;
      }
    }

    this.setState({
      [attr]: value,
      saveBtnDisabled: saveBtnDisabled
    });
  }

  saveIndex() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "index", "add", "--attr=" + this.state.addIndexName[0], this.props.suffix];

    if (this.state.addIndexTypeEq) {
      cmd.push('--index-type=eq');
    }

    if (this.state.addIndexTypePres) {
      cmd.push('--index-type=pres');
    }

    if (this.state.addIndexTypeSub) {
      cmd.push('--index-type=sub');
    }

    if (this.state.addIndexTypeApprox) {
      cmd.push('--index-type=approx');
    }

    for (var i = 0; i < this.state.mrs.length; i++) {
      cmd.push('--matching-rule=' + this.state.mrs[i]);
    }

    if (this.state.reindexOnAdd) {
      cmd.push('--reindex');
    }

    this.setState({
      saving: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("saveIndex", "Create new index", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      // this.loadIndexes();
      this.props.reload(this.props.suffix);
      this.closeIndexModal();

      if (this.state.reindexOnAdd) {
        this.reindexAttr(this.state.addIndexName[0]);
      }

      this.props.addNotification("success", "Successfully created new index");
      this.setState({
        saving: false,
        saveBtnDisabled: true
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.reload(this.props.suffix);
      this.closeIndexModal();
      this.props.addNotification("error", "Error creating index - ".concat(errMsg.desc));
      this.setState({
        saving: false,
        saveBtnDisabled: true
      });
    });
  }

  showEditIndexModal(item) {
    // Set the state types and matching Rules
    var currentMRS = [];

    if (item[2] !== undefined && item[2].length > 0 && item[2].length > 0) {
      var parts = item[2].split(",").map(item => item.trim());

      var _iterator5 = _createForOfIteratorHelper(parts),
          _step5;

      try {
        for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
          var part = _step5.value;
          currentMRS.push(part);
        }
      } catch (err) {
        _iterator5.e(err);
      } finally {
        _iterator5.f();
      }
    }

    this.setState({
      editIndexName: item[0],
      types: item[1],
      mrs: currentMRS,
      _mrs: currentMRS,
      showEditIndexModal: true,
      errObj: {},
      reindexOnAdd: false,
      editIndexTypeEq: item[1].includes("eq"),
      editIndexTypeSub: item[1].includes("sub"),
      editIndexTypePres: item[1].includes("pres"),
      editIndexTypeApprox: item[1].includes("approx"),
      _editIndexTypeEq: item[1].includes("eq"),
      _editIndexTypeSub: item[1].includes("sub"),
      _editIndexTypePres: item[1].includes("pres"),
      _editIndexTypeApprox: item[1].includes("approx"),
      modalChecked: false,
      modalSpinning: false,
      saveBtnDisabled: true
    });
  }

  closeEditIndexModal() {
    this.setState({
      showEditIndexModal: false
    });

    if (this.state.isMatchingruleEditOpen) {
      this.setState({
        isMatchingruleEditOpen: false
      });
    }
  }

  reindexAttr(attr) {
    var reindex_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "index", "reindex", "--wait", "--attr=" + attr, this.props.suffix];
    this.setState({
      modalSpinning: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("reindexAttr", "index attribute", reindex_cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(reindex_cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.addNotification("success", "Attribute (" + attr + ") has successfully been reindexed");
      this.setState({
        saving: false,
        modalSpinning: false,
        showConfirmReindex: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error indexing attribute ".concat(attr, " - ").concat(errMsg.desc));
      this.setState({
        saving: false,
        modalSpinning: false,
        showConfirmReindex: false
      });
    });
  }

  saveEditIndex() {
    var origMRS = this.state._mrs;
    var newMRS = this.state.mrs;
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "index", "set", "--attr=" + this.state.editIndexName, this.props.suffix]; // Check if we have to add mrs

    var _iterator6 = _createForOfIteratorHelper(newMRS),
        _step6;

    try {
      for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
        var newMR = _step6.value;
        var found = false;

        var _iterator8 = _createForOfIteratorHelper(origMRS),
            _step8;

        try {
          for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
            var origMR = _step8.value;

            if (origMR == newMR) {
              found = true;
              break;
            }
          }
        } catch (err) {
          _iterator8.e(err);
        } finally {
          _iterator8.f();
        }

        if (!found) {
          cmd.push('--add-mr=' + newMR);
        }
      } // Check if we have to remove mrs

    } catch (err) {
      _iterator6.e(err);
    } finally {
      _iterator6.f();
    }

    var _iterator7 = _createForOfIteratorHelper(origMRS),
        _step7;

    try {
      for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
        var _origMR = _step7.value;
        var _found = false;

        var _iterator9 = _createForOfIteratorHelper(newMRS),
            _step9;

        try {
          for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
            var _newMR = _step9.value;

            if (_newMR == _origMR) {
              console.log("Found mr no need to delete");
              _found = true;
              break;
            }
          }
        } catch (err) {
          _iterator9.e(err);
        } finally {
          _iterator9.f();
        }

        if (!_found) {
          cmd.push('--del-mr=' + _origMR);
        }
      } // Check if we have to add/delete index types

    } catch (err) {
      _iterator7.e(err);
    } finally {
      _iterator7.f();
    }

    if (this.state.editIndexTypeEq && !this.state._editIndexTypeEq) {
      cmd.push('--add-type=eq');
    } else if (!this.state.editIndexTypeEq && this.state._editIndexTypeEq) {
      cmd.push('--del-type=eq');
    }

    if (this.state.editIndexTypeSub && !this.state._editIndexTypeSub) {
      cmd.push('--add-type=sub');
    } else if (!this.state.editIndexTypeSub && this.state._editIndexTypeSub) {
      cmd.push('--del-type=sub');
    }

    if (this.state.editIndexTypePres && !this.state._editIndexTypePres) {
      cmd.push('--add-type=pres');
    } else if (!this.state.editIndexTypePres && this.state._editIndexTypePres) {
      cmd.push('--del-type=pres');
    }

    if (this.state.editIndexTypeApprox && !this.state._editIndexTypeApprox) {
      cmd.push('--add-type=approx');
    } else if (!this.state.editIndexTypeApprox && this.state._editIndexTypeApprox) {
      cmd.push('--del-type=approx');
    }

    if (cmd.length > 8) {
      // We have changes, do it
      this.setState({
        saving: true
      });
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("saveEditIndex", "Edit index", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        this.props.reload(this.props.suffix);
        this.closeEditIndexModal();
        this.props.addNotification("success", "Successfully edited index");

        if (this.state.reindexOnAdd) {
          this.reindexAttr(this.state.editIndexName);
        } else {
          this.setState({
            saving: false
          });
        }
      }).fail(err => {
        var errMsg = JSON.parse(err);
        this.props.reload(this.props.suffix);
        this.closeEditIndexModal();
        this.props.addNotification("error", "Error editing index - ".concat(errMsg.desc));
        this.setState({
          saving: false
        });
      });
    }
  }

  showConfirmReindex(item) {
    this.setState({
      reindexAttrName: item,
      showConfirmReindex: true,
      modalChecked: false,
      modalSpinning: false
    });
  }

  closeConfirmReindex(item) {
    this.setState({
      reindexAttrName: "",
      showConfirmReindex: false
    });
  }

  showConfirmDeleteIndex(item) {
    this.setState({
      deleteAttrName: item,
      showConfirmDeleteIndex: true,
      modalChecked: false,
      modalSpinning: false
    });
  }

  closeConfirmDeleteIndex() {
    this.setState({
      deleteAttrName: "",
      showConfirmDeleteIndex: false,
      modalSpinning: false,
      modalChecked: false
    });
  }

  reindexIndex() {
    this.reindexAttr(this.state.reindexAttrName);
  }

  deleteIndex() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "index", "delete", "--attr=" + this.state.deleteAttrName, this.props.suffix];
    this.setState({
      modalSpinning: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("deleteIndex", "deleteEdit index", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.addNotification("success", "Successfully deleted index: " + this.state.deleteAttrName);
      this.props.reload(this.props.suffix);
      this.closeConfirmDeleteIndex();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.reload(this.props.suffix);
      this.props.addNotification("error", "Error deleting index - ".concat(errMsg.desc));
      this.closeConfirmDeleteIndex();
    });
  }

  render() {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top-xlg ds-left-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Tabs, {
      isSecondary: true,
      isBox: true,
      activeKey: this.state.activeTabKey,
      onSelect: this.handleNavSelect
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Tab, {
      eventKey: 0,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TabTitleText, null, "Database Indexes ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("font", {
        size: "2"
      }, "(", this.props.indexRows.length, ")"))
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-left-indent ds-margin-bottom-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__.IndexTable, {
      editable: true,
      rows: this.props.indexRows,
      key: this.props.indexRows,
      editIndex: this.showEditIndexModal,
      reindexIndex: this.showConfirmReindex,
      deleteIndex: this.showConfirmDeleteIndex
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
      variant: "primary",
      type: "button",
      onClick: this.showIndexModal
    }, "Add Index"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Tab, {
      eventKey: 1,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TabTitleText, null, "System Indexes ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("font", {
        size: "2"
      }, "(", this.props.systemIndexRows.length, ")"))
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-left-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__.IndexTable, {
      rows: this.props.systemIndexRows
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(AddIndexModal, {
      showModal: this.state.showIndexModal,
      closeHandler: this.closeIndexModal,
      handleChange: this.handleAddChange,
      saveHandler: this.saveIndex,
      matchingRules: this.state.matchingRules,
      attributes: this.state.attributes,
      mrs: this.state.mrs,
      attributeName: this.state.addIndexName,
      addIndexTypeEq: this.state.addIndexTypeEq,
      addIndexTypePres: this.state.addIndexTypePres,
      addIndexTypeSub: this.state.addIndexTypeSub,
      addIndexTypeApprox: this.state.addIndexTypeApprox,
      reindexOnAdd: this.state.reindexOnAdd,
      onAttributeSelect: this.onAttributeSelect,
      onAttributeToggle: this.onAttributeToggle,
      onAttributeClear: this.onAttributeClear,
      isAttributeOpen: this.state.isAttributeOpen,
      onMatchingruleAddSelect: this.onMatchingruleAddSelect,
      onMatchingruleAddToggle: this.onMatchingruleAddToggle,
      onMatchingruleAddClear: this.onMatchingruleAddClear,
      isMatchingruleAddOpen: this.state.isMatchingruleAddOpen,
      saving: this.state.saving,
      saveBtnDisabled: this.state.saveBtnDisabled
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(EditIndexModal, {
      showModal: this.state.showEditIndexModal,
      closeHandler: this.closeEditIndexModal,
      handleChange: this.handleEditChange,
      saveHandler: this.saveEditIndex,
      types: this.state.types,
      mrs: this.state.mrs,
      matchingRules: this.state.matchingRules,
      indexName: this.state.editIndexName,
      handleTypeaheadChange: this.handleTypeaheadChange,
      editIndexTypeEq: this.state.editIndexTypeEq,
      editIndexTypePres: this.state.editIndexTypePres,
      editIndexTypeSub: this.state.editIndexTypeSub,
      editIndexTypeApprox: this.state.editIndexTypeApprox,
      reindexOnAdd: this.state.reindexOnAdd,
      onMatchingruleEditSelect: this.onMatchingruleEditSelect,
      onMatchingruleEditToggle: this.onMatchingruleEditToggle,
      onMatchingruleEditClear: this.onMatchingruleEditClear,
      isMatchingruleEditOpen: this.state.isMatchingruleEditOpen,
      saving: this.state.saving,
      saveBtnDisabled: this.state.saveBtnDisabled
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmReindex,
      closeHandler: this.closeConfirmReindex,
      handleChange: this.handleChange,
      actionHandler: this.reindexIndex,
      spinning: this.state.modalSpinning,
      item: this.state.reindexAttrName,
      checked: this.state.modalChecked,
      mTitle: "Reindex Attribute",
      mMsg: "Are you sure you want to reindex this attribute?",
      mSpinningMsg: "Reindexing ...",
      mBtnName: "Reindex"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmDeleteIndex,
      closeHandler: this.closeConfirmDeleteIndex,
      handleChange: this.handleChange,
      actionHandler: this.deleteIndex,
      spinning: this.state.modalSpinning,
      item: this.state.deleteAttrName,
      checked: this.state.modalChecked,
      mTitle: "Delete Index",
      mMsg: "Are you sure you want to delete this index?",
      mSpinningMsg: "Deleting ...",
      mBtnName: "Delete"
    }));
  }

}

class AddIndexModal extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  render() {
    var _this$props = this.props,
        showModal = _this$props.showModal,
        closeHandler = _this$props.closeHandler,
        handleChange = _this$props.handleChange,
        saveHandler = _this$props.saveHandler,
        matchingRules = _this$props.matchingRules,
        attributes = _this$props.attributes,
        mrs = _this$props.mrs,
        attributeName = _this$props.attributeName,
        onAttributeToggle = _this$props.onAttributeToggle,
        onAttributeClear = _this$props.onAttributeClear,
        onAttributeSelect = _this$props.onAttributeSelect,
        isAttributeOpen = _this$props.isAttributeOpen,
        onMatchingruleAddToggle = _this$props.onMatchingruleAddToggle,
        onMatchingruleAddClear = _this$props.onMatchingruleAddClear,
        onMatchingruleAddSelect = _this$props.onMatchingruleAddSelect,
        isMatchingruleAddOpen = _this$props.isMatchingruleAddOpen,
        saving = _this$props.saving,
        saveBtnDisabled = _this$props.saveBtnDisabled;
    var availMR = [];

    var _iterator10 = _createForOfIteratorHelper(matchingRules),
        _step10;

    try {
      for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
        var mr = _step10.value;
        availMR.push(mr);
      }
    } catch (err) {
      _iterator10.e(err);
    } finally {
      _iterator10.f();
    }

    var availAttrs = [];

    var _iterator11 = _createForOfIteratorHelper(attributes),
        _step11;

    try {
      for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
        var attr = _step11.value;
        availAttrs.push(attr);
      }
    } catch (err) {
      _iterator11.e(err);
    } finally {
      _iterator11.f();
    }

    var saveBtnName = "Create Index";
    var extraPrimaryProps = {};

    if (saving) {
      saveBtnName = "Creating ...";
      extraPrimaryProps.spinnerAriaValueText = "Creating";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.ModalVariant.medium,
      title: "Add Database Index",
      isOpen: showModal,
      onClose: closeHandler,
      "aria-labelledby": "ds-modal",
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, _extends({
        key: "confirm",
        variant: "primary",
        onClick: saveHandler,
        isLoading: saving,
        spinnerAriaValueText: saving ? "Creating" : undefined
      }, extraPrimaryProps, {
        isDisabled: saveBtnDisabled
      }), saveBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextContent, {
      title: "Select an attribute to index"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextVariants.h4
    }, "Select An Attribute")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.SelectVariant.typeahead,
      typeAheadAriaLabel: "Type a attribute name to index",
      onToggle: onAttributeToggle,
      onClear: onAttributeClear,
      onSelect: onAttributeSelect,
      selections: attributeName,
      isOpen: isAttributeOpen,
      "aria-labelledby": "typeAhead-attr-add",
      placeholderText: "Type a attribute name to index..",
      noResultsFoundText: "There are no matching entries",
      validated: attributeName == "" ? "error" : "default"
    }, availAttrs.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
      key: index,
      value: attr
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextContent, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextVariants.h4
    }, "Index Types")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.GridItem, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "addIndexTypeEq",
      isChecked: this.props.addIndexTypeEq,
      onChange: (checked, e) => {
        handleChange(e);
      },
      label: "Equailty Indexing"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.GridItem, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "addIndexTypePres",
      isChecked: this.props.addIndexTypePres,
      onChange: (checked, e) => {
        handleChange(e);
      },
      label: "Presence Indexing"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.GridItem, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "addIndexTypeSub",
      isChecked: this.props.addIndexTypeSub,
      onChange: (checked, e) => {
        handleChange(e);
      },
      label: "Substring Indexing"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.GridItem, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "addIndexTypeApprox",
      isChecked: this.props.addIndexTypeApprox,
      onChange: (checked, e) => {
        handleChange(e);
      },
      label: "Approximate Indexing"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Grid, {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.GridItem, {
      span: 12,
      title: "List of matching rules separated by a 'space'"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextVariants.h4
    }, "Matching Rules")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-indent ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Select, {
      id: "addMatchingRules",
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type a matching rule name",
      onToggle: onMatchingruleAddToggle,
      onSelect: onMatchingruleAddSelect,
      onClear: onMatchingruleAddClear,
      selections: mrs,
      isOpen: isMatchingruleAddOpen,
      "aria-labelledby": "typeAhead-mr-add",
      placeholderText: "Type a matching rule name...",
      noResultsFoundText: "There are no matching entries"
    }, availMR.map((mrs, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
      key: index,
      value: mrs
    })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.GridItem, {
      className: "ds-margin-top",
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "reindexOnAdd",
      isChecked: this.props.reindexOnAdd,
      onChange: (checked, e) => {
        handleChange(e);
      },
      label: "Index attribute after creation"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null)));
  }

}

class EditIndexModal extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      mrs: []
    };
  }

  render() {
    var _this$props2 = this.props,
        showModal = _this$props2.showModal,
        closeHandler = _this$props2.closeHandler,
        handleChange = _this$props2.handleChange,
        saveHandler = _this$props2.saveHandler,
        indexName = _this$props2.indexName,
        types = _this$props2.types,
        mrs = _this$props2.mrs,
        matchingRules = _this$props2.matchingRules,
        onMatchingruleEditToggle = _this$props2.onMatchingruleEditToggle,
        onMatchingruleEditClear = _this$props2.onMatchingruleEditClear,
        onMatchingruleEditSelect = _this$props2.onMatchingruleEditSelect,
        isMatchingruleEditOpen = _this$props2.isMatchingruleEditOpen,
        saving = _this$props2.saving,
        saveBtnDisabled = _this$props2.saveBtnDisabled;
    var saveBtnName = "Save Index";
    var extraPrimaryProps = {};

    if (saving) {
      saveBtnName = "Saving index ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    var attrTypes = "";

    if (types != "" && types.length > 0) {
      attrTypes = types.split(",").map(item => item.trim());
    }

    var currentMrs = mrs;
    var availMR = matchingRules; // Default settings

    var eq = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "editIndexTypeEq",
      isChecked: this.props.editIndexTypeEq,
      onChange: (checked, e) => {
        handleChange(e);
      },
      label: "Equailty Indexing"
    }));
    var pres = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "editIndexTypePres",
      isChecked: this.props.editIndexTypePres,
      onChange: (checked, e) => {
        handleChange(e);
      },
      label: "Presence Indexing"
    }));
    var sub = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "editIndexTypeSub",
      isChecked: this.props.editIndexTypeSub,
      onChange: (checked, e) => {
        handleChange(e);
      },
      label: "Substring Indexing"
    }));
    var approx = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "editIndexTypeApprox",
      isChecked: this.props.editIndexTypeApprox,
      onChange: (checked, e) => {
        handleChange(e);
      },
      label: "Approximate Indexing"
    }));

    if (attrTypes.includes('eq')) {
      eq = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
        id: "editIndexTypeEq",
        isChecked: this.props.editIndexTypeEq,
        onChange: (checked, e) => {
          handleChange(e);
        },
        label: "Equality Indexing"
      }));
    }

    if (attrTypes.includes('pres')) {
      pres = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
        id: "editIndexTypePres",
        isChecked: this.props.editIndexTypePres,
        onChange: (checked, e) => {
          handleChange(e);
        },
        label: "Presence Indexing"
      }));
    }

    if (attrTypes.includes('sub')) {
      sub = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
        id: "editIndexTypeSub",
        isChecked: this.props.editIndexTypeSub,
        onChange: (checked, e) => {
          handleChange(e);
        },
        label: "Substring Indexing"
      }));
    }

    if (attrTypes.includes('approx')) {
      approx = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
        id: "editIndexTypeApprox",
        isChecked: this.props.editIndexTypeApprox,
        onChange: (checked, e) => {
          handleChange(e);
        },
        label: "Approximate Indexing"
      }));
    }

    var title = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, "Edit Database Index (", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, indexName), ")");
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.ModalVariant.medium,
      title: title,
      isOpen: showModal,
      "aria-labelledby": "ds-modal",
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, _extends({
        key: "confirm",
        variant: "primary",
        onClick: saveHandler,
        isLoading: saving,
        spinnerAriaValueText: saving ? "Saving" : undefined
      }, extraPrimaryProps, {
        isDisabled: saveBtnDisabled
      }), saveBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Text, {
      className: "ds-margin-top",
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextVariants.h4
    }, "Index Types")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.GridItem, {
      span: 9
    }, eq)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.GridItem, {
      span: 9
    }, pres)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.GridItem, {
      span: 9
    }, sub)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.GridItem, {
      span: 9
    }, approx))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Grid, {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextVariants.h4
    }, "Matching Rules")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-indent ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type a matching rule name",
      onToggle: onMatchingruleEditToggle,
      onSelect: onMatchingruleEditSelect,
      onClear: onMatchingruleEditClear,
      selections: currentMrs,
      isOpen: isMatchingruleEditOpen,
      "aria-labelledby": "typeAhead-mr-edit",
      placeholderText: "Type a matching rule name...",
      noResultsFoundText: "There are no matching entries"
    }, availMR.map((mr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
      key: index,
      value: mr
    })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "reindexOnAdd",
      isChecked: this.props.reindexOnAdd,
      onChange: (checked, e) => {
        handleChange(e);
      },
      label: "Reindex Attribute After Saving"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null)));
  }

} // Property types and defaults


SuffixIndexes.propTypes = {
  systemIndexRows: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().array),
  indexRows: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().array),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().string),
  suffix: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().string),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  reload: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func)
};
SuffixIndexes.defaultProps = {
  systemIndexRows: [],
  indexRows: [],
  serverId: "",
  suffix: ""
};
AddIndexModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  saveHandler: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  matchingRules: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().array),
  attributes: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().array),
  mrs: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().array),
  attributeName: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().array),
  addIndexTypeEq: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().bool),
  addIndexTypePres: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().bool),
  addIndexTypeSub: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().bool),
  addIndexTypeApprox: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().bool),
  reindexOnAdd: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().bool)
};
AddIndexModal.defaultProps = {
  showModal: false,
  matchingRules: [],
  attributes: [],
  mrs: [],
  attributeName: [],
  addIndexTypeEq: false,
  addIndexTypePres: false,
  addIndexTypeSub: false,
  addIndexTypeApprox: false,
  reindexOnAdd: false
};
EditIndexModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  saveHandler: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  matchingRules: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().array),
  types: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().string),
  mrs: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().array),
  indexName: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().string),
  editIndexTypeEq: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().bool),
  editIndexTypePres: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().bool),
  editIndexTypeSub: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().bool),
  editIndexTypeApprox: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().bool),
  reindexOnAdd: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().bool)
};
EditIndexModal.defaultProps = {
  showModal: false,
  matchingRules: [],
  types: "",
  mrs: [],
  indexName: "",
  editIndexTypeEq: false,
  editIndexTypePres: false,
  editIndexTypeSub: false,
  editIndexTypeApprox: false,
  reindexOnAdd: false
};

/***/ }),

/***/ "./src/lib/database/localPwp.jsx":
/*!***************************************!*\
  !*** ./src/lib/database/localPwp.jsx ***!
  \***************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "LocalPwPolicy": () => (/* binding */ LocalPwPolicy)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _databaseTables_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./databaseTables.jsx */ "./src/lib/database/databaseTables.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormHelperText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/ExpandableSection/ExpandableSection.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormAlert.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/Alert.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
/* harmony import */ var _fortawesome_fontawesome_svg_core_styles_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core/styles.css */ "./node_modules/@fortawesome/fontawesome-svg-core/styles.css");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_30__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }











var general_attrs = ["passwordstoragescheme", "passwordtrackupdatetime", "passwordchange", "passwordmustchange", "passwordhistory", "passwordinhistory", "passwordminage", "passwordadmindn"];
var exp_attrs = ["passwordexp", "passwordgracelimit", "passwordsendexpiringtime", "passwordmaxage", "passwordwarning"];
var lockout_attrs = ["passwordlockout", "passwordunlock", "passwordlockoutduration", "passwordmaxfailure", "passwordresetfailurecount"];
var syntax_attrs = ["passwordchecksyntax", "passwordminlength", "passwordmindigits", "passwordminalphas", "passwordminuppers", "passwordminlowers", "passwordminspecials", "passwordmin8bit", "passwordmaxrepeats", "passwordpalindrome", "passwordmaxsequence", "passwordmaxseqsets", "passwordmaxclasschars", "passwordmincategories", "passwordmintokenlength", "passwordbadwords", "passworduserattributes", "passworddictcheck"];
var tpr_attrs = ["passwordtprmaxuse", "passwordtprdelayexpireat", "passwordtprdelayvalidfrom"];

class CreatePolicy extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      isExpiredExpanded: false,
      isGeneralExpanded: false,
      isLockoutExpanded: false,
      isSyntaxExpanded: false,
      isTPRExpanded: false
    };

    this.onGeneralToggle = isGeneralExpanded => {
      this.setState({
        isGeneralExpanded
      });
    };

    this.onLockoutToggle = isLockoutExpanded => {
      this.setState({
        isLockoutExpanded
      });
    };

    this.onExpiredToggle = isExpiredExpanded => {
      this.setState({
        isExpiredExpanded
      });
    };

    this.onSyntaxToggle = isSyntaxExpanded => {
      this.setState({
        isSyntaxExpanded
      });
    };

    this.onTPRToggle = isTPRExpanded => {
      this.setState({
        isTPRExpanded
      });
    };
  }

  render() {
    var helper_text = "Required field";

    if (this.props.invalid_dn) {
      helper_text = "Invalid DN";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-bottom-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Form, {
      className: "ds-margin-left ds-margin-top-xlg",
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Text, {
      className: "ds-center",
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextVariants.h3
    }, "Create A New Local Password Policy")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Password Policy Type"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.FormSelect, {
      value: this.props.createPolicyType,
      onChange: this.props.handleSelectChange,
      id: "createPolicyType",
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
      key: 1,
      value: "Subtree Policy",
      label: "Subtree Policy"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
      key: 2,
      value: "User Policy",
      label: "User Policy"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      title: "The DN of the entry to apply this password policy to."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Target DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      type: "text",
      id: "policyDN",
      "aria-describedby": "horizontal-form-name-helper",
      name: "policyDN",
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      validated: this.props.invalid_dn ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.FormHelperText, {
      isError: true,
      isHidden: !this.props.invalid_dn && this.props.policyDN != ""
    }, helper_text))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ExpandableSection, {
      className: "ds-margin-top-lg",
      toggleText: this.state.isGeneralExpanded ? 'Hide General Settings' : 'Show General Settings',
      onToggle: this.onGeneralToggle,
      isExpanded: this.state.isGeneralExpanded
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-left"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top",
      title: "Set the password storage scheme (passwordstoragescheme)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Password Storage Scheme"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.FormSelect, {
      id: "create_passwordstoragescheme",
      value: this.state.storagescheme,
      onChange: (value, event) => {
        this.props.handleChange(event);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
      key: "0",
      value: "PBKDF2_SHA256",
      label: "PBKDF2_SHA256"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
      key: "1",
      value: "SSHA512",
      label: "SSHA512"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
      key: "2",
      value: "SSHA384",
      label: "SSHA384"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
      key: "3",
      value: "SSHA256",
      label: "SSHA256"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
      key: "4",
      value: "SSHA",
      label: "SSHA"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
      key: "5",
      value: "MD5",
      label: "MD5"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
      key: "6",
      value: "SMD5",
      label: "SMD5"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
      key: "7",
      value: "CRYPT-MD5",
      label: "CRYPT-MD5"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
      key: "8",
      value: "CRYPT-SHA512",
      label: "CRYPT-SHA512"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
      key: "9",
      value: "CRYPT-SHA256",
      label: "CRYPT-SHA256"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
      key: "10",
      value: "CRYPT",
      label: "CRYPT"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
      key: "11",
      value: "GOST_YESCRYPT",
      label: "GOST_YESCRYPT"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
      key: "12",
      value: "CLEAR",
      label: "CLEAR"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      title: "Indicates the number of seconds that must pass before a user can change their password again. (passwordMinAge).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Password Minimum Age"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      type: "number",
      id: "create_passwordminage",
      "aria-describedby": "horizontal-form-name-helper",
      name: "create_passwordminage",
      onChange: (checked, e) => {
        this.props.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top",
      title: "Record a separate timestamp specifically for the last time that the password for an entry was changed. If this is enabled, then it adds the pwdUpdateTime operational attribute to the user account entry (passwordTrackUpdateTime)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "create_passwordtrackupdatetime",
      isChecked: this.props.create_passwordtrackupdatetime,
      onChange: (checked, e) => {
        this.props.handleChange(e);
      },
      label: "Track Password Update Time"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top",
      title: "Allow user's to change their passwords (passwordChange)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "create_passwordchange",
      isChecked: this.props.create_passwordchange,
      onChange: (checked, e) => {
        this.props.handleChange(e);
      },
      label: "Allow Users To Change Their Passwords"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top",
      title: "User must change its password after its been reset by an administrator (passwordMustChange)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "create_passwordmustchange",
      isChecked: this.props.create_passwordmustchange,
      onChange: (checked, e) => {
        this.props.handleChange(e);
      },
      label: "User Must Change Password After Reset"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top",
      title: "Maintain a password history for each user (passwordHistory)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-inline"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "create_passwordhistory",
      isChecked: this.props.create_passwordhistory,
      onChange: (checked, e) => {
        this.props.handleChange(e);
      },
      label: "Keep Password History"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-inline ds-left-margin ds-raise-field-md ds-width-sm"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      value: this.props.passwordinhistory,
      type: "number",
      id: "create_passwordinhistory",
      "aria-describedby": "horizontal-form-name-helper",
      name: "create_passwordinhistory",
      onChange: (checked, e) => {
        this.props.handleChange(e);
      }
    })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ExpandableSection, {
      className: "ds-margin-top-lg",
      toggleText: this.state.isExpiredExpanded ? 'Hide Expiration Settings' : 'Show Expiration Settings',
      onToggle: this.onExpiredToggle,
      isExpanded: this.state.isExpiredExpanded
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-left"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top",
      title: "Enable a password expiration policy (passwordExp)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "create_passwordexp",
      isChecked: this.props.create_passwordexp,
      onChange: (checked, e) => {
        this.props.handleChange(e);
      },
      label: "Enforce Password Expiration"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-left-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      title: "The maxiumum age of a password in seconds before it expires (passwordMaxAge).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 4
    }, "Password Expiration Time"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 1
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      type: "number",
      id: "create_passwordmaxage",
      "aria-describedby": "create_passwordmaxage",
      name: "create_passwordmaxage",
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      isDisabled: !this.props.passwordexp
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top",
      title: "The number of logins that are allowed after the password has expired (passwordGraceLimit)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 4
    }, "Allowed Logins After Password Expires"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 1
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      type: "number",
      id: "create_passwordgracelimit",
      "aria-describedby": "create_passwordgracelimit",
      name: "create_passwordgracelimit",
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      isDisabled: !this.props.passwordexp
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top",
      title: "Set the time (in seconds), before a password is about to expire, to send a warning. (passwordWarning)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 4
    }, "Send Password Expiring Warning"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 1
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      type: "number",
      id: "create_passwordwarning",
      "aria-describedby": "create_passwordwarning",
      name: "create_passwordwarning",
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      isDisabled: !this.props.passwordexp
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top",
      title: "Always return a password expiring control when requested (passwordSendExpiringTime)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 4
    }, "Send Password Expiring Warning"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 4
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "create_passwordsendexpiringtime",
      isChecked: this.props.create_passwordsendexpiringtime,
      onChange: (checked, e) => {
        this.props.handleChange(e);
      },
      isDisabled: !this.props.passwordexp,
      label: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, "Always Send ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("i", null, "Password Expiring"), " Control"),
      className: "ds-lower-field"
    })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ExpandableSection, {
      className: "ds-margin-top-lg",
      toggleText: this.state.isLockoutExpanded ? 'Hide Lockout Settings' : 'Show Lockout Settings',
      onToggle: this.onLockoutToggle,
      isExpanded: this.state.isLockoutExpanded
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-left"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top",
      title: "Enable account lockout (passwordLockout)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "create_passwordlockout",
      isChecked: this.props.create_passwordlockout,
      onChange: (checked, e) => {
        this.props.handleChange(e);
      },
      label: "Enable Account Lockout"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-left-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top",
      title: "The maximum number of failed logins before account gets locked (passwordMaxFailure)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 4
    }, "Number of Failed Logins That Locks out Account"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      type: "number",
      id: "create_passwordmaxfailure",
      "aria-describedby": "create_passwordmaxfailure",
      name: "create_passwordmaxfailure",
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      isDisabled: !this.props.passwordlockout
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top",
      title: "The number of seconds until an accounts failure count is reset (passwordResetFailureCount)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 4
    }, "Time Until ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("i", null, "Failure Count"), " Resets"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      type: "number",
      id: "create_passwordresetfailurecount",
      "aria-describedby": "create_passwordresetfailurecount",
      name: "create_passwordresetfailurecount",
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      isDisabled: !this.props.passwordlockout
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top",
      title: "The number of seconds, duration, before the account gets unlocked (passwordLockoutDuration)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 4
    }, "Time Until Account Unlocked"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      type: "number",
      id: "create_passwordlockoutduration",
      "aria-describedby": "create_passwordlockoutduration",
      name: "create_passwordlockoutduration",
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      isDisabled: !this.props.passwordlockout
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top",
      title: "Do not lockout the user account forever, instead the account will unlock based on the lockout duration (passwordUnlock)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "create_passwordunlock",
      isChecked: this.props.create_passwordunlock,
      onChange: (checked, e) => {
        this.props.handleChange(e);
      },
      isDisabled: !this.props.passwordlockout,
      label: "Do Not Lockout Account Forever"
    })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ExpandableSection, {
      className: "ds-margin-top-lg",
      toggleText: this.state.isSyntaxExpanded ? 'Hide Syntax Settings' : 'Show Syntax Settings',
      onToggle: this.onSyntaxToggle,
      isExpanded: this.state.isSyntaxExpanded
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-left"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      title: "Enable password syntax checking (passwordCheckSyntax)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "create_passwordchecksyntax",
      isChecked: this.props.create_passwordchecksyntax,
      onChange: (checked, e) => {
        this.props.handleChange(e);
      },
      label: "Enable Password Syntax Checking"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-left-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Minimum Length"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 1,
      title: "The minimum number of characters in the password (passwordMinLength)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      type: "number",
      id: "create_passwordminlength",
      "aria-describedby": "create_passwordminlength",
      name: "create_passwordminlength",
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      isDisabled: !this.props.passwordchecksyntax
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      offset: 5,
      span: 3,
      title: "Reject passwords with fewer than this many alpha characters (passwordMinAlphas)."
    }, "Minimum Alpha's"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 1
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      type: "number",
      id: "create_passwordminalphas",
      "aria-describedby": "create_passwordminalphas",
      name: "create_passwordminalphas",
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      isDisabled: !this.props.passwordchecksyntax
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Minimum Digits"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 1,
      title: "Reject passwords with fewer than this many digit characters (0-9) (passwordMinDigits)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      type: "number",
      id: "create_passwordmindigits",
      "aria-describedby": "create_passwordmindigits",
      name: "create_passwordmindigits",
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      isDisabled: !this.props.passwordchecksyntax
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      offset: 5,
      span: 3,
      title: "Reject passwords with fewer than this many special non-alphanumeric characters (passwordMinSpecials)."
    }, "Minimum Special"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 1
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      type: "number",
      id: "create_passwordminspecials",
      "aria-describedby": "create_passwordminspecials",
      name: "create_passwordminspecials",
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      isDisabled: !this.props.passwordchecksyntax
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Minimum Uppercase"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 1,
      title: "Reject passwords with fewer than this many uppercase characters (passwordMinUppers)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      type: "number",
      id: "create_passwordminuppers",
      "aria-describedby": "create_passwordminuppers",
      name: "create_passwordminuppers",
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      isDisabled: !this.props.passwordchecksyntax
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      offset: 5,
      span: 3,
      title: "Reject passwords with fewer than this many lowercase characters (passwordMinLowers)."
    }, "Minimum Lowercase"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 1
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      type: "number",
      id: "create_passwordminlowers",
      "aria-describedby": "create_passwordminlowers",
      name: "create_passwordminlowers",
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      isDisabled: !this.props.passwordchecksyntax
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Minimum 8-bit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 1,
      title: "Reject passwords with fewer than this many 8-bit or multi-byte characters (passwordMin8Bit)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      type: "number",
      id: "create_passwordmin8bit",
      "aria-describedby": "create_passwordmin8bit",
      name: "create_passwordmin8bit",
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      isDisabled: !this.props.passwordchecksyntax
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      offset: 5,
      span: 3,
      title: "The minimum number of character categories that a password must contain (categories are upper, lower, digit, special, and 8-bit) (passwordMinCategories)."
    }, "Minimum Categories"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 1
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      type: "number",
      id: "create_passwordmincategories",
      "aria-describedby": "create_passwordmincategories",
      name: "create_passwordmincategories",
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      isDisabled: !this.props.passwordchecksyntax
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Minimum Token Length"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 1,
      title: "The smallest attribute value used when checking if the password contains any of the user's account information (passwordMinTokenLength)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      type: "number",
      id: "create_passwordmintokenlength",
      "aria-describedby": "create_passwordmintokenlength",
      name: "create_passwordmintokenlength",
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      isDisabled: !this.props.passwordchecksyntax
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      offset: 5,
      span: 3,
      title: "The maximum number of times the same character can sequentially appear in a password (passwordMaxRepeats)."
    }, "Max Repeated Chars"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 1
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      type: "number",
      id: "create_passwordmaxrepeats",
      "aria-describedby": "create_passwordmaxrepeats",
      name: "create_passwordmaxrepeats",
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      isDisabled: !this.props.passwordchecksyntax
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Max Sequences"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 1,
      title: "The maximum number of allowed monotonic characters sequences (passwordMaxSequence)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      type: "number",
      id: "create_passwordmaxsequence",
      "aria-describedby": "create_passwordmaxsequence",
      name: "create_passwordmaxsequence",
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      isDisabled: !this.props.passwordchecksyntax
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      offset: 5,
      span: 3,
      title: "The maximum number of times the same character can sequentially appear in a password (passwordMaxRepeats)."
    }, "Max Sequence Sets"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 1
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      type: "number",
      id: "create_passwordmaxseqsets",
      "aria-describedby": "create_passwordmaxseqsets",
      name: "create_passwordmaxseqsets",
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      isDisabled: !this.props.passwordchecksyntax
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Max Seq Per Class"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 1,
      title: "The maximum number of consecutive characters from the same character class/category (passwordMaxClassChars).."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      type: "number",
      id: "create_passwordmaxclasschars",
      "aria-describedby": "create_passwordmaxclasschars",
      name: "create_passwordmaxclasschars",
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      isDisabled: !this.props.passwordchecksyntax
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      title: "A space-separated list of words that are not allowed to be contained in the new password (passwordBadWords).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Prohibited Words"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      type: "text",
      id: "create_passwordbadwords",
      "aria-describedby": "create_passwordbadwords",
      name: "create_passwordbadwords",
      onChange: (str, e) => {
        this.handleChange(e);
      },
      isDisabled: !this.props.passwordchecksyntax
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top",
      title: "A list of entry attributes to compare to the new password (passwordUserAttributes)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Check User Attributes"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type a attribute name to check",
      onToggle: this.props.onUserAttrsCreateToggle,
      onSelect: this.props.handleChange,
      onClear: this.props.onUserAttrsCreateClear,
      selections: this.props.passworduserattributes,
      isOpen: this.props.isUserAttrsCreateOpen,
      "aria-labelledby": "typeAhead-user-attr-create",
      placeholderText: "Type attributes to check...",
      noResultsFoundText: "There are no matching entries",
      isDisabled: !this.props.passwordchecksyntax
    }, this.props.attrs.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.SelectOption, {
      key: index,
      value: attr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top",
      title: "Check the password against the system's CrackLib dictionary (passwordDictCheck)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "create_passworddictcheck",
      isChecked: this.props.create_passworddictcheck,
      onChange: (checked, e) => {
        this.props.handleChange(e);
      },
      isDisabled: !this.props.passwordchecksyntax,
      label: "Dictionary Check"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top",
      title: "Reject a password if it is a palindrome (passwordPalindrome)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "create_passwordpalindrome",
      isChecked: this.props.create_passwordpalindrome,
      onChange: (checked, e) => {
        this.props.handleChange(e);
      },
      isDisabled: !this.props.passwordchecksyntax,
      label: "Reject Palindromes"
    })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ExpandableSection, {
      className: "ds-margin-top-lg",
      toggleText: this.state.isTPRExpanded ? 'Hide Temporary Password Settings' : 'Show Temporary Password Settings',
      onToggle: this.onTPRToggle,
      isExpanded: this.state.isTPRExpanded
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-left"
    }, this.props.create_passwordmustchange == false && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.FormAlert, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.Alert, {
      variant: "info",
      title: "\"User Must Change Password After Reset\" must be enabled in General Settings to activate TPR.",
      "aria-live": "polite",
      isInline: true
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      title: "Number of times the temporary password can be used to authenticate (passwordTPRMaxUse).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Password Max Use"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      type: "number",
      id: "create_passwordtprmaxuse",
      "aria-describedby": "horizontal-form-name-helper",
      name: "create_passwordtprmaxuse",
      isDisabled: !this.props.create_passwordmustchange,
      onChange: (checked, e) => {
        this.props.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      title: "Number of seconds before the temporary password expires (passwordTPRDelayExpireAt).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Password Expires In"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      type: "number",
      id: "create_passwordtprdelayexpireat",
      "aria-describedby": "horizontal-form-name-helper",
      name: "create_passwordtprdelayexpireat",
      isDisabled: !this.props.create_passwordmustchange,
      onChange: (checked, e) => {
        this.props.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      title: "Number of seconds after which temporary password starts to be valid for authentication (passwordTPRDelayValidFrom).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Password Valid From"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      type: "number",
      id: "create_passwordtprdelayvalidfrom",
      "aria-describedby": "horizontal-form-name-helper",
      name: "create_passwordtprdelayvalidfrom",
      isDisabled: !this.props.create_passwordmustchange,
      onChange: (checked, e) => {
        this.props.handleChange(e);
      }
    })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.Button, {
      isDisabled: this.props.createDisabled,
      variant: "primary",
      className: "ds-margin-top-lg ds-margin-left",
      onClick: this.props.createPolicy
    }, "Create New Policy"));
  }

}

class LocalPwPolicy extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      loading: true,
      loaded: false,
      activeTabKey: 0,
      localActiveTabKey: 0,
      modalChecked: false,
      editPolicy: false,
      tableLoading: false,
      // Create policy
      policyType: "",
      policyDN: "",
      policyName: "",
      deleteName: "",
      createDisabled: true,
      createPolicyType: "Subtree Policy",
      // Lists of all the attributes for each tab/section.
      // We use the exact attribute name for the ID of
      // each field, so we can loop over them to efficently
      // check for changes, and updating/saving the config.
      rows: [],
      saveGeneralDisabled: true,
      saveUserDisabled: true,
      saveExpDisabled: true,
      saveLockoutDisabled: true,
      saveSyntaxDisabled: true,
      saveTPRDisabled: true,
      showDeletePolicy: false,
      // Edit policy
      passwordchange: false,
      passwordmustchange: false,
      passwordhistory: false,
      passwordtrackupdatetime: false,
      passwordexp: false,
      passwordsendexpiringtime: false,
      passwordlockout: false,
      passwordunlock: "0",
      passwordchecksyntax: false,
      passwordpalindrome: false,
      passworddictcheck: false,
      passwordstoragescheme: "",
      passwordinhistory: "0",
      passwordwarning: "0",
      passwordmaxage: "0",
      passwordminage: "0",
      passwordgracelimit: "0",
      passwordlockoutduration: "0",
      passwordmaxfailure: "0",
      passwordresetfailurecount: "0",
      passwordminlength: "0",
      passwordmindigits: "0",
      passwordminalphas: "0",
      passwordminuppers: "0",
      passwordminlowers: "0",
      passwordminspecials: "0",
      passwordmin8bit: "0",
      passwordmaxrepeats: "0",
      passwordmaxsequence: "0",
      passwordmaxseqsets: "0",
      passwordmaxclasschars: "0",
      passwordmincategories: "0",
      passwordmintokenlength: "0",
      passwordbadwords: "",
      passworduserattributes: [],
      passwordtprmaxuse: "-1",
      passwordtprdelayexpireat: "-1",
      passwordtprdelayvalidfrom: "-1",
      _passwordchange: false,
      _passwordmustchange: false,
      _passwordhistory: false,
      _passwordtrackupdatetime: false,
      _passwordexp: false,
      _passwordsendexpiringtime: false,
      _passwordlockout: false,
      _passwordunlock: "0",
      _passwordchecksyntax: false,
      _passwordpalindrome: false,
      _passworddictcheck: false,
      _passwordstoragescheme: "",
      _passwordinhistory: "0",
      _passwordwarning: "0",
      _passwordmaxage: "0",
      _passwordminage: "0",
      _passwordgracelimit: "0",
      _passwordlockoutduration: "0",
      _passwordmaxfailure: "0",
      _passwordresetfailurecount: "0",
      _passwordminlength: "0",
      _passwordmindigits: "0",
      _passwordminalphas: "0",
      _passwordminuppers: "0",
      _passwordminlowers: "0",
      _passwordminspecials: "0",
      _passwordmin8bit: "0",
      _passwordmaxrepeats: "0",
      _passwordmaxsequence: "0",
      _passwordmaxseqsets: "0",
      _passwordmaxclasschars: "0",
      _passwordmincategories: "0",
      _passwordmintokenlength: "0",
      _passwordbadwords: "",
      _passworduserattributes: [],
      _passwordtprmaxuse: "-1",
      _passwordtprdelayexpireat: "-1",
      _passwordtprdelayvalidfrom: "-1",
      // Create policy
      create_passwordchange: false,
      create_passwordmustchange: false,
      create_passwordhistory: false,
      create_passwordtrackupdatetime: false,
      create_passwordexp: false,
      create_passwordsendexpiringtime: false,
      create_passwordlockout: false,
      create_passwordunlock: false,
      create_passwordchecksyntax: false,
      create_passwordpalindrome: false,
      create_passworddictcheck: false,
      create_passwordstoragescheme: "",
      create_passwordinhistory: "0",
      create_passwordwarning: "0",
      create_passwordmaxage: "0",
      create_passwordminage: "0",
      create_passwordgracelimit: "0",
      create_passwordlockoutduration: "0",
      create_passwordmaxfailure: "0",
      create_passwordresetfailurecount: "0",
      create_passwordminlength: "0",
      create_passwordmindigits: "0",
      create_passwordminalphas: "0",
      create_passwordminuppers: "0",
      create_passwordminlowers: "0",
      create_passwordminspecials: "0",
      create_passwordmin8bit: "0",
      create_passwordmaxrepeats: "0",
      create_passwordmaxsequence: "0",
      create_passwordmaxseqsets: "0",
      create_passwordmaxclasschars: "0",
      create_passwordmincategories: "0",
      create_passwordmintokenlength: "0",
      create_passwordbadwords: "",
      create_passworduserattributes: [],
      create_passwordtprmaxuse: "-1",
      create_passwordtprdelayexpireat: "-1",
      create_passwordtprdelayvalidfrom: "-1",
      _create_passwordchange: false,
      _create_passwordmustchange: false,
      _create_passwordhistory: false,
      _create_passwordtrackupdatetime: false,
      _create_passwordexp: false,
      _create_passwordsendexpiringtime: false,
      _create_passwordlockout: false,
      _create_passwordunlock: false,
      _create_passwordchecksyntax: false,
      _create_passwordpalindrome: false,
      _create_passworddictcheck: false,
      _create_passwordstoragescheme: "",
      _create_passwordinhistory: "0",
      _create_passwordwarning: "0",
      _create_passwordmaxage: "0",
      _create_passwordminage: "0",
      _create_passwordgracelimit: "0",
      _create_passwordlockoutduration: "0",
      _create_passwordmaxfailure: "0",
      _create_passwordresetfailurecount: "0",
      _create_passwordminlength: "0",
      _create_passwordmindigits: "0",
      _create_passwordminalphas: "0",
      _create_passwordminuppers: "0",
      _create_passwordminlowers: "0",
      _create_passwordminspecials: "0",
      _create_passwordmin8bit: "0",
      _create_passwordmaxrepeats: "0",
      _create_passwordmaxsequence: "0",
      _create_passwordmaxseqsets: "0",
      _create_passwordmaxclasschars: "0",
      _create_passwordmincategories: "0",
      _create_passwordmintokenlength: "0",
      _create_passwordbadwords: "",
      _create_passworduserattributes: [],
      _create_passwordtprmaxuse: "-1",
      _create_passwordtprdelayexpireat: "-1",
      _create_passwordtprdelayvalidfrom: "-1",
      // Select typeahead
      isUserAttrsCreateOpen: false,
      isUserAttrsEditOpen: false,
      attrMap: {
        passwordstoragescheme: "--pwdscheme",
        passwordtrackupdatetime: "--pwdtrack",
        passwordchange: "--pwdchange",
        passwordmustchange: "--pwdmustchange",
        passwordhistory: "--pwdhistory",
        passwordinhistory: "--pwdhistorycount",
        passwordminage: "--pwdminage",
        passwordexp: "--pwdexpire",
        passwordgracelimit: "--pwdgracelimit",
        passwordsendexpiringtime: "--pwdsendexpiring",
        passwordmaxage: "--pwdmaxage",
        passwordwarning: "--pwdwarning",
        passwordlockout: "--pwdlockout",
        passwordunlock: "--pwdunlock",
        passwordlockoutduration: "--pwdlockoutduration",
        passwordmaxfailure: "--pwdmaxfailures",
        passwordresetfailurecount: "--pwdresetfailcount",
        passwordchecksyntax: "--pwdchecksyntax",
        passwordminlength: "--pwdminlen",
        passwordmindigits: "--pwdmindigits",
        passwordminalphas: "--pwdminalphas",
        passwordminuppers: "--pwdminuppers",
        passwordminlowers: "--pwdminlowers",
        passwordminspecials: "--pwdminspecials",
        passwordmin8bit: "--pwdmin8bits",
        passwordmaxrepeats: "--pwdmaxrepeats",
        passwordpalindrome: "--pwdpalindrome",
        passwordmaxsequence: "--pwdmaxseq",
        passwordmaxseqsets: "--pwdmaxseqsets",
        passwordmaxclasschars: "--pwdmaxclasschars",
        passwordmincategories: "--pwdmincatagories",
        passwordmintokenlength: "--pwdmintokenlen",
        passwordbadwords: "--pwdbadwords",
        passworduserattributes: "--pwduserattrs",
        passworddictcheck: "--pwddictcheck",
        passwordadmindn: "--pwdadmin",
        passwordtprmaxuse: "--pwptprmaxuse",
        passwordtprdelayexpireat: "--pwptprdelayexpireat",
        passwordtprdelayvalidfrom: "--pwptprdelayvalidfrom"
      }
    }; // Check User Attributes Create

    this.onUserAttrsCreateToggle = isUserAttrsCreateOpen => {
      this.setState({
        isUserAttrsCreateOpen
      });
    };

    this.onUserAttrsCreateClear = () => {
      this.setState({
        create_passworduserattributes: [],
        isUserAttrsCreateOpen: false
      });
    }; // Check User Attributes Edit


    this.onUserAttrsEditToggle = isUserAttrsEditOpen => {
      this.setState({
        isUserAttrsEditOpen
      });
    };

    this.onUserAttrsEditClear = () => {
      this.setState({
        passworduserattributes: [],
        isUserAttrsEditOpen: false
      });
    }; // Toggle currently active tab


    this.handleNavSelect = (event, tabIndex) => {
      this.setState({
        activeTabKey: tabIndex
      });
    };

    this.handleLocalNavSelect = (event, tabIndex) => {
      this.setState({
        localActiveTabKey: tabIndex
      });
    };

    this.createPolicy = this.createPolicy.bind(this);
    this.closeDeletePolicy = this.closeDeletePolicy.bind(this);
    this.deletePolicy = this.deletePolicy.bind(this);
    this.handleCreateChange = this.handleCreateChange.bind(this);
    this.handleCreateSelectChange = this.handleCreateSelectChange.bind(this);
    this.handleExpChange = this.handleExpChange.bind(this);
    this.handleGeneralChange = this.handleGeneralChange.bind(this);
    this.handleLockoutChange = this.handleLockoutChange.bind(this);
    this.handleModalChange = this.handleModalChange.bind(this);
    this.handleSyntaxChange = this.handleSyntaxChange.bind(this);
    this.handleTPRChange = this.handleTPRChange.bind(this);
    this.loadLocal = this.loadLocal.bind(this);
    this.loadPolicies = this.loadPolicies.bind(this);
    this.resetTab = this.resetTab.bind(this);
    this.saveExp = this.saveExp.bind(this);
    this.saveGeneral = this.saveGeneral.bind(this);
    this.saveLockout = this.saveLockout.bind(this);
    this.saveSyntax = this.saveSyntax.bind(this);
    this.saveTPR = this.saveTPR.bind(this);
    this.showDeletePolicy = this.showDeletePolicy.bind(this);
  }

  componentDidMount() {
    // Loading config
    if (!this.state.loaded) {
      this.loadPolicies();
    } else {
      this.props.enableTree();
    }
  }

  showDeletePolicy(name) {
    this.setState({
      showDeletePolicy: true,
      modalChecked: false,
      deleteName: name
    });
  }

  closeDeletePolicy() {
    this.setState({
      showDeletePolicy: false,
      deleteName: ""
    });
  }

  resetTab() {
    // Reset to the table tab
    this.setState({
      localActiveTabKey: 0
    });
  }

  handleModalChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    this.setState({
      [attr]: value
    });
  }

  handleCreateSelectChange(value) {
    this.setState({
      createPolicyType: value
    });
  }

  handleCreateChange(e, selection) {
    var attr;
    var value;
    var disableSaveBtn = true;
    var invalid_dn = false;
    var all_attrs = general_attrs.concat(exp_attrs, lockout_attrs, syntax_attrs, tpr_attrs);

    if (selection) {
      attr = "create_passworduserattributes";
      value = selection;
    } else {
      value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      attr = e.target.id;
    } // Check if a setting was changed, if so enable the save button


    var _iterator = _createForOfIteratorHelper(all_attrs),
        _step;

    try {
      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        var all_attr = _step.value;

        if (all_attr == 'passworduserattributes' && attr == 'create_passworduserattributes') {
          var orig_val = this.state['_' + all_attr].join(' ');

          if (orig_val != value) {
            value = selection; // restore value

            disableSaveBtn = false;
            break;
          }

          value = selection; // restore value
        } else if (attr == "create_" + all_attr && this.state['_create_' + all_attr] != value) {
          disableSaveBtn = false;
          break;
        }
      } // Now check for differences in values that we did not touch

    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }

    var _iterator2 = _createForOfIteratorHelper(all_attrs),
        _step2;

    try {
      for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
        var _all_attr = _step2.value;

        if (_all_attr == 'passworduserattributes' && attr != 'create_passworduserattributes') {
          // Typeahead attribute needs special care
          var _orig_val = this.state['_' + _all_attr].join(' ');

          var new_val = this.state[_all_attr].join(' ');

          if (_orig_val != new_val) {
            disableSaveBtn = false;
            break;
          }
        } else if (attr != "create_" + _all_attr && this.state['_create_' + _all_attr] != this.state["create_" + _all_attr]) {
          disableSaveBtn = false;
          break;
        }
      } // Lastly check the target DN is valid

    } catch (err) {
      _iterator2.e(err);
    } finally {
      _iterator2.f();
    }

    if (attr == "policyDN") {
      if ((0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.valid_dn)(value)) {
        disableSaveBtn = false;
      } else {
        if (value != "") {
          invalid_dn = true;
        }

        disableSaveBtn = true;
      }
    } else {
      if (this.state.policyDN == "") {
        disableSaveBtn = true;
      } else {
        disableSaveBtn = false;
      }
    } // Select Typeahead


    if (selection) {
      if (this.state[attr].includes(selection)) {
        this.setState(prevState => ({
          [attr]: prevState[attr].filter(item => item !== selection),
          createDisabled: disableSaveBtn,
          invalid_dn: invalid_dn,
          isUserAttrsCreateOpen: false
        }));
      } else {
        this.setState(prevState => ({
          [attr]: [...prevState[attr], selection],
          createDisabled: disableSaveBtn,
          invalid_dn: invalid_dn,
          isUserAttrsCreateOpen: false
        }));
      }
    } else {
      // Checkbox
      this.setState({
        [attr]: value,
        createDisabled: disableSaveBtn,
        invalid_dn: invalid_dn
      });
    }
  }

  createPolicy() {
    var all_attrs = general_attrs.concat(exp_attrs, lockout_attrs, syntax_attrs, tpr_attrs);
    var action = "adduser";
    this.setState({
      loading: true
    });

    if (this.state.createPolicyType == "Subtree Policy") {
      action = "addsubtree";
    }

    var cmd = ['dsconf', '-j', "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", 'localpwp', action, this.state.policyDN];

    var _iterator3 = _createForOfIteratorHelper(all_attrs),
        _step3;

    try {
      for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
        var attr = _step3.value;
        var old_val = this.state['_create_' + attr];
        var new_val = this.state['create_' + attr];

        if (new_val != old_val) {
          if (typeof new_val === "boolean") {
            if (new_val) {
              new_val = "on";
            } else {
              new_val = "off";
            }
          } else if (attr == 'passworduserattributes') {
            old_val = this.state._create_passworduserattributes.join(' ');
            new_val = this.state.create_passworduserattributes.join(' ');

            if (old_val == new_val) {
              continue;
            }
          }

          cmd.push(this.state.attrMap[attr] + "=" + new_val);
        }
      }
    } catch (err) {
      _iterator3.e(err);
    } finally {
      _iterator3.f();
    }

    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("createPolicy", "Create a local password policy", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.loadPolicies();
      this.setState({
        loading: false
      });
      this.props.addNotification("success", "Successfully created new password policy");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.loadPolicies();
      this.setState({
        loading: false
      });
      this.props.addNotification("error", "Error creating password policy - ".concat(errMsg.desc));
    });
  }

  handleGeneralChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    var disableSaveBtn = true; // Check if a setting was changed, if so enable the save button

    var _iterator4 = _createForOfIteratorHelper(general_attrs),
        _step4;

    try {
      for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
        var general_attr = _step4.value;

        if (attr == general_attr && this.state['_' + general_attr] != value) {
          disableSaveBtn = false;
          break;
        }
      } // Now check for differences in values that we did not touch

    } catch (err) {
      _iterator4.e(err);
    } finally {
      _iterator4.f();
    }

    var _iterator5 = _createForOfIteratorHelper(general_attrs),
        _step5;

    try {
      for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
        var _general_attr = _step5.value;

        if (attr != _general_attr && this.state['_' + _general_attr] != this.state[_general_attr]) {
          disableSaveBtn = false;
          break;
        }
      }
    } catch (err) {
      _iterator5.e(err);
    } finally {
      _iterator5.f();
    }

    this.setState({
      [attr]: value,
      saveGeneralDisabled: disableSaveBtn
    });
  }

  saveGeneral() {
    this.setState({
      loading: true
    });
    var cmd = ['dsconf', '-j', "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", 'localpwp', 'set', this.state.policyName];

    var _iterator6 = _createForOfIteratorHelper(general_attrs),
        _step6;

    try {
      for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
        var attr = _step6.value;

        if (this.state['_' + attr] != this.state[attr]) {
          var val = this.state[attr];

          if (typeof val === "boolean") {
            if (val) {
              val = "on";
            } else {
              val = "off";
            }
          }

          cmd.push(this.state.attrMap[attr] + "=" + val);
        }
      }
    } catch (err) {
      _iterator6.e(err);
    } finally {
      _iterator6.f();
    }

    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("saveGeneral", "Saving general pwpolicy settings", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.loadLocal(this.state.policyName);
      this.setState({
        loading: false
      });
      this.props.addNotification("success", "Successfully updated password policy configuration");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.loadLocal(this.state.policyName);
      this.setState({
        loading: false
      });
      this.props.addNotification("error", "Error updating password policy configuration - ".concat(errMsg.desc));
    });
  }

  handleExpChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    var disableSaveBtn = true; // Check if a setting was changed, if so enable the save button

    var _iterator7 = _createForOfIteratorHelper(exp_attrs),
        _step7;

    try {
      for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
        var exp_attr = _step7.value;

        if (attr == exp_attr && this.state['_' + exp_attr] != value) {
          disableSaveBtn = false;
          break;
        }
      } // Now check for differences in values that we did not touch

    } catch (err) {
      _iterator7.e(err);
    } finally {
      _iterator7.f();
    }

    var _iterator8 = _createForOfIteratorHelper(exp_attrs),
        _step8;

    try {
      for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
        var _exp_attr = _step8.value;

        if (attr != _exp_attr && this.state['_' + _exp_attr] != this.state[_exp_attr]) {
          disableSaveBtn = false;
          break;
        }
      }
    } catch (err) {
      _iterator8.e(err);
    } finally {
      _iterator8.f();
    }

    this.setState({
      [attr]: value,
      saveExpDisabled: disableSaveBtn
    });
  }

  saveExp() {
    this.setState({
      loading: true
    });
    var cmd = ['dsconf', '-j', "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", 'localpwp', 'set', this.state.policyName];

    var _iterator9 = _createForOfIteratorHelper(exp_attrs),
        _step9;

    try {
      for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
        var attr = _step9.value;

        if (this.state['_' + attr] != this.state[attr]) {
          var val = this.state[attr];

          if (typeof val === "boolean") {
            if (val) {
              val = "on";
            } else {
              val = "off";
            }
          }

          cmd.push(this.state.attrMap[attr] + "=" + val);
        }
      }
    } catch (err) {
      _iterator9.e(err);
    } finally {
      _iterator9.f();
    }

    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("saveExp", "Saving Expiration pwpolicy settings", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.loadLocal(this.state.policyName);
      this.setState({
        loading: false
      });
      this.props.addNotification("success", "Successfully updated password policy configuration");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.loadLocal(this.state.policyName);
      this.setState({
        loading: false
      });
      this.props.addNotification("error", "Error updating password policy configuration - ".concat(errMsg.desc));
    });
  }

  handleLockoutChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    var disableSaveBtn = true; // Check if a setting was changed, if so enable the save button

    var _iterator10 = _createForOfIteratorHelper(lockout_attrs),
        _step10;

    try {
      for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
        var lockout_attr = _step10.value;

        if (attr == lockout_attr && this.state['_' + lockout_attr] != value) {
          disableSaveBtn = false;
          break;
        }
      } // Now check for differences in values that we did not touch

    } catch (err) {
      _iterator10.e(err);
    } finally {
      _iterator10.f();
    }

    var _iterator11 = _createForOfIteratorHelper(lockout_attrs),
        _step11;

    try {
      for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
        var _lockout_attr = _step11.value;

        if (attr != _lockout_attr && this.state['_' + _lockout_attr] != this.state[_lockout_attr]) {
          disableSaveBtn = false;
          break;
        }
      }
    } catch (err) {
      _iterator11.e(err);
    } finally {
      _iterator11.f();
    }

    this.setState({
      [attr]: value,
      saveLockoutDisabled: disableSaveBtn
    });
  }

  saveLockout() {
    this.setState({
      loading: true
    });
    var cmd = ['dsconf', '-j', "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", 'localpwp', 'set', this.state.policyName];

    var _iterator12 = _createForOfIteratorHelper(lockout_attrs),
        _step12;

    try {
      for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
        var attr = _step12.value;

        if (this.state['_' + attr] != this.state[attr]) {
          var val = this.state[attr];

          if (typeof val === "boolean") {
            if (val) {
              val = "on";
            } else {
              val = "off";
            }
          }

          cmd.push(this.state.attrMap[attr] + "=" + val);
        }
      }
    } catch (err) {
      _iterator12.e(err);
    } finally {
      _iterator12.f();
    }

    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("saveLockout", "Saving lockout pwpolicy settings", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.loadLocal(this.state.policyName);
      this.setState({
        loading: false
      });
      this.props.addNotification("success", "Successfully updated password policy configuration");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.loadLocal(this.state.policyName);
      this.setState({
        loading: false
      });
      this.props.addNotification("error", "Error updating password policy configuration - ".concat(errMsg.desc));
    });
  }

  handleSyntaxChange(e, selection) {
    var attr;
    var value;

    if (selection) {
      attr = "passworduserattributes";
      value = selection;
    } else {
      value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      attr = e.target.id;
    }

    var disableSaveBtn = true; // Check if a setting was changed, if so enable the save button

    var _iterator13 = _createForOfIteratorHelper(syntax_attrs),
        _step13;

    try {
      for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {
        var syntax_attr = _step13.value;

        if (syntax_attr == 'passworduserattributes' && attr == 'passworduserattributes') {
          var orig_val = this.state['_' + syntax_attr].join(' ');

          if (orig_val != value) {
            value = selection; // restore value

            disableSaveBtn = false;
            break;
          }

          value = selection; // restore value
        } else if (attr == syntax_attr && this.state['_' + syntax_attr] != value) {
          disableSaveBtn = false;
          break;
        }
      } // Now check for differences in values that we did not touch

    } catch (err) {
      _iterator13.e(err);
    } finally {
      _iterator13.f();
    }

    var _iterator14 = _createForOfIteratorHelper(syntax_attrs),
        _step14;

    try {
      for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {
        var _syntax_attr = _step14.value;

        if (_syntax_attr == 'passworduserattributes' && attr != 'passworduserattributes') {
          // Typeahead attribute needs special care
          var _orig_val2 = this.state['_' + _syntax_attr].join(' ');

          var new_val = this.state[_syntax_attr].join(' ');

          if (_orig_val2 != new_val) {
            disableSaveBtn = false;
            break;
          }
        } else if (attr != _syntax_attr && this.state['_' + _syntax_attr] != this.state[_syntax_attr]) {
          disableSaveBtn = false;
          break;
        }
      }
    } catch (err) {
      _iterator14.e(err);
    } finally {
      _iterator14.f();
    }

    if (selection) {
      if (this.state[attr].includes(selection)) {
        this.setState(prevState => ({
          [attr]: prevState[attr].filter(item => item !== selection),
          isSelectOpen: false,
          isUserAttrsEditOpen: false
        }));
      } else {
        this.setState(prevState => ({
          [attr]: [...prevState[attr], selection],
          saveSyntaxDisabled: disableSaveBtn,
          isUserAttrsEditOpen: false
        }));
      }
    } else {
      this.setState({
        [attr]: value,
        saveSyntaxDisabled: disableSaveBtn,
        isUserAttrsEditOpen: false
      });
    }
  }

  saveSyntax() {
    this.setState({
      loading: true
    });
    var cmd = ['dsconf', '-j', "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", 'localpwp', 'set', this.state.policyName];

    var _iterator15 = _createForOfIteratorHelper(syntax_attrs),
        _step15;

    try {
      for (_iterator15.s(); !(_step15 = _iterator15.n()).done;) {
        var attr = _step15.value;

        if (this.state['_' + attr] != this.state[attr]) {
          var val = this.state[attr];

          if (typeof val === "boolean") {
            if (val) {
              val = "on";
            } else {
              val = "off";
            }
          }

          cmd.push(this.state.attrMap[attr] + "=" + val);
        }
      }
    } catch (err) {
      _iterator15.e(err);
    } finally {
      _iterator15.f();
    }

    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("saveSyntax", "Saving syntax checking pwpolicy settings", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.loadLocal(this.state.policyName);
      this.setState({
        loading: false
      });
      this.props.addNotification("success", "Successfully updated password policy configuration");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.loadLocal(this.state.policyName);
      this.setState({
        loading: false
      });
      this.props.addNotification("error", "Error updating password policy configuration - ".concat(errMsg.desc));
    });
  }

  handleTPRChange(e) {
    var value = e.target.value;
    var attr = e.target.id;
    var disableSaveBtn = true; // Check if a setting was changed, if so enable the save button

    var _iterator16 = _createForOfIteratorHelper(tpr_attrs),
        _step16;

    try {
      for (_iterator16.s(); !(_step16 = _iterator16.n()).done;) {
        var tpr_attr = _step16.value;

        if (attr == tpr_attr && this.state['_' + tpr_attr] != value) {
          disableSaveBtn = false;
          break;
        }
      } // Now check for differences in values that we did not touch

    } catch (err) {
      _iterator16.e(err);
    } finally {
      _iterator16.f();
    }

    var _iterator17 = _createForOfIteratorHelper(tpr_attrs),
        _step17;

    try {
      for (_iterator17.s(); !(_step17 = _iterator17.n()).done;) {
        var _tpr_attr = _step17.value;

        if (attr != _tpr_attr && this.state['_' + _tpr_attr] != this.state[_tpr_attr]) {
          disableSaveBtn = false;
          break;
        }
      }
    } catch (err) {
      _iterator17.e(err);
    } finally {
      _iterator17.f();
    }

    this.setState({
      [attr]: value,
      saveTPRDisabled: disableSaveBtn
    });
  }

  saveTPR() {
    this.setState({
      saving: true
    });
    var cmd = ['dsconf', '-j', "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", 'localpwp', 'set', this.state.policyName];

    var _iterator18 = _createForOfIteratorHelper(tpr_attrs),
        _step18;

    try {
      for (_iterator18.s(); !(_step18 = _iterator18.n()).done;) {
        var attr = _step18.value;

        if (this.state['_' + attr] != this.state[attr]) {
          var val = this.state[attr];
          cmd.push(this.state.attrMap[attr] + "=" + val);
        }
      }
    } catch (err) {
      _iterator18.e(err);
    } finally {
      _iterator18.f();
    }

    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("saveTPR", "Saving TPR pwpolicy settings", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.loadLocal(this.state.policyName);
      this.setState({
        saving: false
      });
      this.props.addNotification("success", "Successfully updated password policy configuration");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.loadLocal(this.state.policyName);
      this.setState({
        saving: false
      });
      this.props.addNotification("error", "Error updating password policy configuration - ".concat(errMsg.desc));
    });
  }

  deletePolicy() {
    this.setState({
      loading: true,
      editPolicy: false
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "localpwp", "remove", this.state.deleteName];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("deletePolicy", "delete policy", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.loadPolicies();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.loadPolicies();
      this.props.addNotification("error", "Error deleting local password policy - ".concat(errMsg.desc));
    });
  }

  loadPolicies() {
    this.setState({
      loading: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "localpwp", "list"];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadPolicies", "Load all the local password policies for the table", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var policy_obj = JSON.parse(content);
      var pwpRows = [];

      var _iterator19 = _createForOfIteratorHelper(policy_obj.items),
          _step19;

      try {
        for (_iterator19.s(); !(_step19 = _iterator19.n()).done;) {
          var row = _step19.value;
          pwpRows.push([row.targetdn, row.pwp_type, row.basedn]);
        }
      } catch (err) {
        _iterator19.e(err);
      } finally {
        _iterator19.f();
      }

      this.setState({
        localActiveTabKey: 0,
        activeKey: 0,
        rows: pwpRows,
        loaded: true,
        loading: false,
        editPolicy: false,
        policyDN: "",
        createPolicyType: "Subtree Policy",
        policyName: "",
        deleteName: "",
        showDeletePolicy: false,
        // Reset edit and create tab
        saveGeneralDisabled: true,
        saveUserDisabled: true,
        saveExpDisabled: true,
        saveLockoutDisabled: true,
        saveSyntaxDisabled: true,
        // Edit policy
        passwordchange: false,
        passwordmustchange: false,
        passwordhistory: false,
        passwordtrackupdatetime: false,
        passwordexp: false,
        passwordsendexpiringtime: false,
        passwordlockout: false,
        passwordunlock: "0",
        passwordchecksyntax: false,
        passwordpalindrome: false,
        passworddictcheck: false,
        passwordstoragescheme: "",
        passwordinhistory: "0",
        passwordwarning: "0",
        passwordmaxage: "0",
        passwordminage: "0",
        passwordgracelimit: "0",
        passwordlockoutduration: "0",
        passwordmaxfailure: "0",
        passwordresetfailurecount: "0",
        passwordminlength: "0",
        passwordmindigits: "0",
        passwordminalphas: "0",
        passwordminuppers: "0",
        passwordminlowers: "0",
        passwordminspecials: "0",
        passwordmin8bit: "0",
        passwordmaxrepeats: "0",
        passwordmaxsequence: "0",
        passwordmaxseqsets: "0",
        passwordmaxclasschars: "0",
        passwordmincategories: "0",
        passwordmintokenlength: "0",
        passwordbadwords: "",
        passworduserattributes: [],
        _passwordchange: false,
        _passwordmustchange: false,
        _passwordhistory: false,
        _passwordtrackupdatetime: false,
        _passwordexp: false,
        _passwordsendexpiringtime: false,
        _passwordlockout: false,
        _passwordunlock: "0",
        _passwordchecksyntax: false,
        _passwordpalindrome: false,
        _passworddictcheck: false,
        _passwordstoragescheme: "",
        _passwordinhistory: "0",
        _passwordwarning: "0",
        _passwordmaxage: "0",
        _passwordminage: "0",
        _passwordgracelimit: "0",
        _passwordlockoutduration: "0",
        _passwordmaxfailure: "0",
        _passwordresetfailurecount: "0",
        _passwordminlength: "0",
        _passwordmindigits: "0",
        _passwordminalphas: "0",
        _passwordminuppers: "0",
        _passwordminlowers: "0",
        _passwordminspecials: "0",
        _passwordmin8bit: "0",
        _passwordmaxrepeats: "0",
        _passwordmaxsequence: "0",
        _passwordmaxseqsets: "0",
        _passwordmaxclasschars: "0",
        _passwordmincategories: "0",
        _passwordmintokenlength: "0",
        _passwordbadwords: "",
        _passworduserattributes: [],
        // Create policy
        create_passwordchange: false,
        create_passwordmustchange: false,
        create_passwordhistory: false,
        create_passwordtrackupdatetime: false,
        create_passwordexp: false,
        create_passwordsendexpiringtime: false,
        create_passwordlockout: false,
        create_passwordunlock: false,
        create_passwordchecksyntax: false,
        create_passwordpalindrome: false,
        create_passworddictcheck: false,
        create_passwordstoragescheme: "",
        create_passwordinhistory: "0",
        create_passwordwarning: "0",
        create_passwordmaxage: "0",
        create_passwordminage: "0",
        create_passwordgracelimit: "0",
        create_passwordlockoutduration: "0",
        create_passwordmaxfailure: "0",
        create_passwordresetfailurecount: "0",
        create_passwordminlength: "0",
        create_passwordmindigits: "0",
        create_passwordminalphas: "0",
        create_passwordminuppers: "0",
        create_passwordminlowers: "0",
        create_passwordminspecials: "0",
        create_passwordmin8bit: "0",
        create_passwordmaxrepeats: "0",
        create_passwordmaxsequence: "0",
        create_passwordmaxseqsets: "0",
        create_passwordmaxclasschars: "0",
        create_passwordmincategories: "0",
        create_passwordmintokenlength: "0",
        create_passwordbadwords: "",
        create_passworduserattributes: [],
        _create_passwordchange: false,
        _create_passwordmustchange: false,
        _create_passwordhistory: false,
        _create_passwordtrackupdatetime: false,
        _create_passwordexp: false,
        _create_passwordsendexpiringtime: false,
        _create_passwordlockout: false,
        _create_passwordunlock: false,
        _create_passwordchecksyntax: false,
        _create_passwordpalindrome: false,
        _create_passworddictcheck: false,
        _create_passwordstoragescheme: "",
        _create_passwordinhistory: "0",
        _create_passwordwarning: "0",
        _create_passwordmaxage: "0",
        _create_passwordminage: "0",
        _create_passwordgracelimit: "0",
        _create_passwordlockoutduration: "0",
        _create_passwordmaxfailure: "0",
        _create_passwordresetfailurecount: "0",
        _create_passwordminlength: "0",
        _create_passwordmindigits: "0",
        _create_passwordminalphas: "0",
        _create_passwordminuppers: "0",
        _create_passwordminlowers: "0",
        _create_passwordminspecials: "0",
        _create_passwordmin8bit: "0",
        _create_passwordmaxrepeats: "0",
        _create_passwordmaxsequence: "0",
        _create_passwordmaxseqsets: "0",
        _create_passwordmaxclasschars: "0",
        _create_passwordmincategories: "0",
        _create_passwordmintokenlength: "0",
        _create_passwordbadwords: "",
        _create_passworduserattributes: []
      }, this.props.enableTree);
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.setState({
        loaded: true,
        loading: false
      }, this.props.enableTree);
      console.log("Error loading local password policies - ".concat(errMsg.desc));
    });
  }

  loadLocal(name) {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "localpwp", "get", name];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadLocal", "Load a local password policy", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var attrs = config.attrs; // Handle the checkbox values

      var pwChange = false;
      var pwMustChange = false;
      var pwHistory = false;
      var pwTrackUpdate = false;
      var pwExpire = false;
      var pwSendExpire = false;
      var pwLockout = false;
      var pwUnlock = false;
      var pwCheckSyntax = false;
      var pwPalindrome = false;
      var pwDictCheck = false;
      var pwUserAttrs = [];
      var pwInHistory = "0";
      var pwBadWords = "";
      var pwScheme = "";
      var pwWarning = "0";
      var pwMaxAge = "0";
      var pwMinAge = "0";
      var pwGraceLimit = "0";
      var pwLockoutDur = "0";
      var pwMaxFailure = "0";
      var pwFailCount = "0";
      var pwMinLen = "0";
      var pwMinDigits = "0";
      var pwMinAlphas = "0";
      var pwMinUppers = "0";
      var pwMinLowers = "0";
      var pwMinSpecials = "0";
      var pwMin8bit = "0";
      var pwMaxRepeats = "0";
      var pwMaxSeq = "0";
      var pwMaxSeqSets = "0";
      var pwMaxClassChars = "0";
      var pwMinCat = "0";
      var pwMinTokenLen = "0";
      var pwTPRMaxUse = "-1";
      var pwTPRDelayExpireAt = "-1";
      var pwTPRDelayValidFrom = "-1";

      if ('passwordmintokenlength' in attrs) {
        pwMinTokenLen = attrs.passwordmintokenlength[0];
      }

      if ('passwordmincategories' in attrs) {
        pwMinCat = attrs.passwordmincategories[0];
      }

      if ('passwordmaxclasschars' in attrs) {
        pwMaxClassChars = attrs.passwordmaxclasschars[0];
      }

      if ('passwordmaxseqsets' in attrs) {
        pwMaxSeqSets = attrs.passwordmaxseqsets[0];
      }

      if ('passwordmaxsequence' in attrs) {
        pwMaxSeq = attrs.passwordmaxsequence[0];
      }

      if ('passwordmaxrepeats' in attrs) {
        pwMaxRepeats = attrs.passwordmaxrepeats[0];
      }

      if ('passwordmin8bit' in attrs) {
        pwMin8bit = attrs.passwordmin8bit[0];
      }

      if ('passwordminspecials' in attrs) {
        pwMinSpecials = attrs.passwordminspecials[0];
      }

      if ('passwordminlowers' in attrs) {
        pwMinLowers = attrs.passwordminlowers[0];
      }

      if ('passwordminuppers' in attrs) {
        pwMinUppers = attrs.passwordminuppers[0];
      }

      if ('passwordminalphas' in attrs) {
        pwMinAlphas = attrs.passwordminalphas[0];
      }

      if ('passwordmindigits' in attrs) {
        pwMinDigits = attrs.passwordmindigits[0];
      }

      if ('passwordminlength' in attrs) {
        pwMinLen = attrs.passwordminlength[0];
      }

      if ('passwordresetfailurecount' in attrs) {
        pwFailCount = attrs.passwordresetfailurecount[0];
      }

      if ('passwordmaxfailure' in attrs) {
        pwMaxFailure = attrs.passwordmaxfailure[0];
      }

      if ('passwordlockoutduration' in attrs) {
        pwLockoutDur = attrs.passwordlockoutduration[0];
      }

      if ('passwordgracelimit' in attrs) {
        pwGraceLimit = attrs.passwordgracelimit[0];
      }

      if ('passwordmaxage' in attrs) {
        pwMaxAge = attrs.passwordmaxage[0];
      }

      if ('passwordminage' in attrs) {
        pwMinAge = attrs.passwordminage[0];
      }

      if ('passwordwarning' in attrs) {
        pwWarning = attrs.passwordwarning[0];
      }

      if ('passwordstoragescheme' in attrs) {
        pwScheme = attrs.passwordstoragescheme[0];
      }

      if ('passwordinhistory' in attrs) {
        pwInHistory = attrs.passwordinhistory[0];
      }

      if ('passwordchange' in attrs && attrs.passwordchange[0] == "on") {
        pwChange = true;
      }

      if ('passwordmustchange' in attrs && attrs.passwordmustchange[0] == "on") {
        pwMustChange = true;
      }

      if ('passwordhistory' in attrs && attrs.passwordhistory[0] == "on") {
        pwHistory = true;
      }

      if ('passwordtrackupdatetime' in attrs && attrs.passwordtrackupdatetime[0] == "on") {
        pwTrackUpdate = true;
      }

      if ('passwordsendexpiringtime' in attrs && attrs.passwordsendexpiringtime[0] == "on") {
        pwSendExpire = true;
      }

      if ('passwordlockout' in attrs && attrs.passwordlockout[0] == "on") {
        pwLockout = true;
      }

      if ('passwordunlock' in attrs && attrs.passwordunlock[0] == "on") {
        pwUnlock = true;
      }

      if ('passwordexp' in attrs && attrs.passwordexp[0] == "on") {
        pwExpire = true;
      }

      if ('passwordchecksyntax' in attrs && attrs.passwordchecksyntax[0] == "on") {
        pwCheckSyntax = true;
      }

      if ('passwordpalindrome' in attrs && attrs.passwordpalindrome[0] == "on") {
        pwPalindrome = true;
      }

      if ('passworddictcheck' in attrs && attrs.passworddictcheck[0] == "on") {
        pwDictCheck = true;
      }

      if ('passwordbadwords' in attrs && attrs.passwordbadwords[0] != "") {
        // Hack until this is fixed: https://github.com/389ds/389-ds-base/issues/3928
        if (attrs.passwordbadwords.length > 1) {
          pwBadWords = attrs.passwordbadwords.join(' ');
        } else {
          pwBadWords = attrs.passwordbadwords[0];
        }
      }

      if ('passworduserattributes' in attrs && attrs.passworduserattributes[0] != "") {
        if (attrs.passworduserattributes.length > 1) {
          // Hack until this is fixed: https://github.com/389ds/389-ds-base/issues/3928
          attrs.passworduserattributes[0] = attrs.passworduserattributes.join(' ');
        } // Could be space or comma separated list


        if (attrs.passworduserattributes[0].indexOf(',') > -1) {
          pwUserAttrs = attrs.passworduserattributes[0].trim();
          pwUserAttrs = pwUserAttrs.split(',');
        } else {
          pwUserAttrs = attrs.passworduserattributes[0].split(' ');
        }
      }

      if ('passwordTPRMaxUse' in attrs) {
        pwTPRMaxUse = attrs.passwordTPRMaxUse[0];
      }

      if ('passwordTPRDelayExpireAt' in attrs) {
        pwTPRDelayExpireAt = attrs.passwordTPRDelayExpireAt[0];
      }

      if ('passwordTPRDelayValidFrom' in attrs) {
        pwTPRDelayValidFrom = attrs.passwordTPRDelayValidFrom[0];
      }

      this.setState(() => ({
        editPolicy: true,
        loading: false,
        localActiveTabKey: 1,
        activeKey: 0,
        policyName: name,
        policyType: config.pwp_type,
        saveGeneralDisabled: true,
        saveUserDisabled: true,
        saveExpDisabled: true,
        saveLockoutDisabled: true,
        saveSyntaxDisabled: true,
        // Settings
        passwordchange: pwChange,
        passwordmustchange: pwMustChange,
        passwordhistory: pwHistory,
        passwordtrackupdatetime: pwTrackUpdate,
        passwordexp: pwExpire,
        passwordsendexpiringtime: pwSendExpire,
        passwordlockout: pwLockout,
        passwordunlock: pwUnlock,
        passwordchecksyntax: pwCheckSyntax,
        passwordpalindrome: pwPalindrome,
        passworddictcheck: pwDictCheck,
        passwordstoragescheme: pwScheme,
        passwordinhistory: pwInHistory,
        passwordwarning: pwWarning,
        passwordmaxage: pwMaxAge,
        passwordminage: pwMinAge,
        passwordgracelimit: pwGraceLimit,
        passwordlockoutduration: pwLockoutDur,
        passwordmaxfailure: pwMaxFailure,
        passwordresetfailurecount: pwFailCount,
        passwordminlength: pwMinLen,
        passwordmindigits: pwMinDigits,
        passwordminalphas: pwMinAlphas,
        passwordminuppers: pwMinUppers,
        passwordminlowers: pwMinLowers,
        passwordminspecials: pwMinSpecials,
        passwordmin8bit: pwMin8bit,
        passwordmaxrepeats: pwMaxRepeats,
        passwordmaxsequence: pwMaxSeq,
        passwordmaxseqsets: pwMaxSeqSets,
        passwordmaxclasschars: pwMaxClassChars,
        passwordmincategories: pwMinCat,
        passwordmintokenlength: pwMinTokenLen,
        passwordbadwords: pwBadWords,
        passworduserattributes: pwUserAttrs,
        passwordtprmaxuse: pwTPRMaxUse,
        passwordtprdelayexpireat: pwTPRDelayExpireAt,
        passwordtprdelayvalidfrom: pwTPRDelayValidFrom,
        // Record original values
        _passwordchange: pwChange,
        _passwordmustchange: pwMustChange,
        _passwordhistory: pwHistory,
        _passwordtrackupdatetime: pwTrackUpdate,
        _passwordexp: pwExpire,
        _passwordsendexpiringtime: pwSendExpire,
        _passwordlockout: pwLockout,
        _passwordunlock: pwUnlock,
        _passwordchecksyntax: pwCheckSyntax,
        _passwordpalindrome: pwPalindrome,
        _passworddictcheck: pwDictCheck,
        _passwordstoragescheme: pwScheme,
        _passwordinhistory: pwInHistory,
        _passwordwarning: pwWarning,
        _passwordmaxage: pwMaxAge,
        _passwordminage: pwMinAge,
        _passwordgracelimit: pwGraceLimit,
        _passwordlockoutduration: pwLockoutDur,
        _passwordmaxfailure: pwMaxFailure,
        _passwordresetfailurecount: pwFailCount,
        _passwordminlength: pwMinLen,
        _passwordmindigits: pwMinDigits,
        _passwordminalphas: pwMinAlphas,
        _passwordminuppers: pwMinUppers,
        _passwordminlowers: pwMinLowers,
        _passwordminspecials: pwMinSpecials,
        _passwordmin8bit: pwMin8bit,
        _passwordmaxrepeats: pwMaxRepeats,
        _passwordmaxsequence: pwMaxSeq,
        _passwordmaxseqsets: pwMaxSeqSets,
        _passwordmaxclasschars: pwMaxClassChars,
        _passwordmincategories: pwMinCat,
        _passwordmintokenlength: pwMinTokenLen,
        _passwordbadwords: pwBadWords,
        _passworduserattributes: pwUserAttrs,
        _passwordtprmaxuse: pwTPRMaxUse,
        _passwordtprdelayexpireat: pwTPRDelayExpireAt,
        _passwordtprdelayvalidfrom: pwTPRDelayValidFrom
      }));
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.setState({
        loaded: true,
        loading: false
      });
      this.props.addNotification("error", "Error loading local password policy - ".concat(errMsg.desc));
    });
  }

  render() {
    var edit_tab = "";
    var pwExpirationRows = "";
    var pwLockoutRows = "";
    var pwSyntaxRows = "";
    var saveBtnName = "Save";
    var extraPrimaryProps = {};

    if (this.state.saving) {
      saveBtnName = "Saving ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    if (this.state.passwordchecksyntax) {
      pwSyntaxRows = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Minimum Length"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
        title: "The minimum number of characters in the password (passwordMinLength).",
        value: this.state.passwordminlength,
        type: "number",
        id: "passwordminlength",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordminlength",
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        offset: 6,
        span: 3
      }, "Minimum Alpha's"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
        title: "Reject passwords with fewer than this many alpha characters (passwordMinAlphas).",
        value: this.state.passwordminalphas,
        type: "number",
        id: "passwordminalphas",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordminalphas",
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Minimum Digits"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
        title: "Reject passwords with fewer than this many digit characters (0-9) (passwordMinDigits).",
        value: this.state.passwordmindigits,
        type: "number",
        id: "passwordmindigits",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordmindigits",
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        offset: 6,
        span: 3
      }, "Minimum Special"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
        title: "Reject passwords with fewer than this many special non-alphanumeric characters (passwordMinSpecials).",
        value: this.state.passwordminspecials,
        type: "number",
        id: "passwordminspecials",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordminspecials",
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Minimum Uppercase"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
        title: "Reject passwords with fewer than this many uppercase characters (passwordMinUppers).",
        value: this.state.passwordminuppers,
        type: "number",
        id: "passwordminuppers",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordminuppers",
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        offset: 6,
        span: 3
      }, "Minimum Lowercase"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
        title: "Reject passwords with fewer than this many lowercase characters (passwordMinLowers).",
        value: this.state.passwordminlowers,
        type: "number",
        id: "passwordminlowers",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordminlowers",
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Minimum 8-bit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
        title: "Reject passwords with fewer than this many 8-bit or multi-byte characters (passwordMin8Bit).",
        value: this.state.passwordmin8bit,
        type: "number",
        id: "passwordmin8bit",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordmin8bit",
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        offset: 6,
        span: 3
      }, "Minimum Categories"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
        title: "The minimum number of character categories that a password must contain (categories are upper, lower, digit, special, and 8-bit) (passwordMinCategories).",
        value: this.state.passwordmincategories,
        type: "number",
        id: "passwordmincategories",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordmincategories",
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Maximum Sequences"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
        title: "The maximum number of allowed monotonic characters sequences (passwordMaxSequence).",
        value: this.state.passwordmaxsequence,
        type: "number",
        id: "passwordmaxsequence",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordmaxsequence",
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        offset: 6,
        span: 3
      }, "Max Sequence Sets"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
        title: "The maximum number of allowed monotonic characters sequences that can appear more than once (passwordMaxSeqSets).",
        value: this.state.passwordmaxseqsets,
        type: "number",
        id: "passwordmaxseqsets",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordmaxseqsets",
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Max Seq Per Class"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
        title: "The maximum number of consecutive characters from the same character class/category (passwordMaxClassChars).",
        value: this.state.passwordmaxclasschars,
        type: "number",
        id: "passwordmaxclasschars",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordmaxclasschars",
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Prohibited Words"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
        title: "A space-separated list of words that are not allowed to be contained in the new password (passwordBadWords).",
        value: this.state.passwordbadwords,
        type: "text",
        id: "passwordbadwords",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordbadwords",
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        className: "ds-margin-top",
        title: "A list of entry attributes to compare to the new password (passwordUserAttributes)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Check User Attributes"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Select, {
        variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.SelectVariant.typeaheadMulti,
        typeAheadAriaLabel: "Type an attribute to check",
        onToggle: this.onSelectToggle,
        onSelect: this.handleSyntaxChange,
        onClear: this.onSelectClear,
        selections: this.state.passworduserattributes,
        isOpen: this.state.isSelectOpen,
        "aria-labelledby": "typeAhead-user-attr",
        placeholderText: "Type attributes to check...",
        noResultsFoundText: "There are no matching entries"
      }, this.props.attrs.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.SelectOption, {
        key: index,
        value: attr
      }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        className: "ds-margin-top-lg",
        title: "Check the password against the system's CrackLib dictionary (passwordDictCheck)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
        id: "passworddictcheck",
        isChecked: this.state.passworddictcheck,
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        },
        label: "Dictionary Check"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        className: "ds-margin-top",
        title: "Check if the password is a palindrome (passwordPalindrome)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
        id: "passwordpalindrome",
        isChecked: this.state.passwordpalindrome,
        className: "ds-label",
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        },
        label: "Reject Palindromes"
      }))));
    }

    if (this.state.passwordlockout) {
      pwLockoutRows = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        className: "ds-margin-top",
        title: "The maximum number of failed logins before account gets locked (passwordMaxFailure)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        span: 5
      }, "Number of Failed Logins That Locks out Account"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
        value: this.state.passwordmaxfailure,
        type: "number",
        id: "passwordmaxfailure",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordmaxpasswordmaxfailureclasschars",
        onChange: (checked, e) => {
          this.handleLockoutChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        className: "ds-margin-top",
        title: "The number of seconds until an accounts failure count is reset (passwordResetFailureCount)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        span: 5
      }, "Time Until ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("i", null, "Failure Count"), " Resets"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
        value: this.state.passwordresetfailurecount,
        type: "number",
        id: "passwordresetfailurecount",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordresetfailurecount",
        onChange: (checked, e) => {
          this.handleLockoutChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        className: "ds-margin-top",
        title: "The number of seconds, duration, before the account gets unlocked (passwordLockoutDuration)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        span: 5
      }, "Time Until Account Unlocked"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
        value: this.state.passwordlockoutduration,
        type: "number",
        id: "passwordlockoutduration",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordlockoutduration",
        onChange: (checked, e) => {
          this.handleLockoutChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        className: "ds-margin-top",
        title: "Do not lockout the user account forever, instead the account will unlock based on the lockout duration (passwordUnlock)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        span: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
        id: "passwordunlock",
        isChecked: this.state.passwordunlock,
        onChange: (checked, e) => {
          this.handleLockoutChange(e);
        },
        label: "Do Not Lockout Account Forever"
      }))));
    }

    if (this.state.passwordexp) {
      pwExpirationRows = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        className: "ds-margin-top",
        title: "The maxiumum age of a password in seconds before it expires (passwordMaxAge)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        span: 5
      }, "Password Expiration Time"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
        value: this.state.passwordmaxage,
        type: "number",
        id: "passwordmaxage",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordmaxage",
        onChange: (checked, e) => {
          this.handleExpChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        className: "ds-margin-top",
        title: "The number of logins that are allowed after the password has expired (passwordGraceLimit)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        span: 5
      }, "Allowed Logins After Password Expires"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
        value: this.state.passwordgracelimit,
        type: "number",
        id: "passwordgracelimit",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordgracelimit",
        onChange: (checked, e) => {
          this.handleExpChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        className: "ds-margin-top",
        title: "Set the time (in seconds), before a password is about to expire, to send a warning. (passwordWarning)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        span: 5
      }, "Send Password Expiring Warning"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
        value: this.state.passwordwarning,
        type: "number",
        id: "passwordwarning",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordwarning",
        onChange: (checked, e) => {
          this.handleExpChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        className: "ds-margin-top",
        title: "Always return a password expiring control when requested (passwordSendExpiringTime)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        span: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
        id: "passwordsendexpiringtime",
        isChecked: this.state.passwordsendexpiringtime,
        onChange: (checked, e) => {
          this.handleExpChange(e);
        },
        label: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, "Always Send ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("i", null, "Password Expiring"), " Control")
      }))));
    }

    if (!this.state.editPolicy) {
      edit_tab = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-top-xlg ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Text, {
        className: "ds-center",
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextVariants.h3
      }, "Please choose a policy from the ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("a", {
        onClick: this.resetTab
      }, "Local Policy Table"), ".")));
    } else {
      edit_tab = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: this.state.loading ? 'ds-fadeout ds-left-margin' : 'ds-fadein ds-left-margin'
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Text, {
        className: "ds-margin-top-xlg",
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextVariants.h4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.state.policyName), " ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("font", {
        size: "2"
      }, "(", this.state.policyType, ")"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Tabs, {
        className: "ds-margin-top-lg",
        activeKey: this.state.activeTabKey,
        onSelect: this.handleNavSelect
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.Tab, {
        eventKey: 0,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__.TabTitleText, null, "General Settings")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Form, {
        className: "ds-margin-left-sm ds-margin-top-lg",
        isHorizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        title: "Record a separate timestamp specifically for the last time that the password for an entry was changed. If this is enabled, then it adds the pwdUpdateTime operational attribute to the user account entry (passwordTrackUpdateTime)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
        id: "passwordtrackupdatetime",
        isChecked: this.state.passwordtrackupdatetime,
        onChange: (checked, e) => {
          this.handleGeneralChange(e);
        },
        label: "Track Password Update Time"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        title: "Allow user's to change their passwords (passwordChange)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
        id: "passwordchange",
        isChecked: this.state.passwordchange,
        onChange: (checked, e) => {
          this.handleGeneralChange(e);
        },
        label: "Allow Users To Change Their Passwords"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        title: "User must change its password after its been reset by an administrator (passwordMustChange)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
        id: "passwordmustchange",
        isChecked: this.state.passwordmustchange,
        onChange: (checked, e) => {
          this.handleGeneralChange(e);
        },
        label: "User Must Change Password After Reset"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        title: "Maintain a password history for each user (passwordHistory)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-inline"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
        id: "passwordhistory",
        isChecked: this.state.passwordhistory,
        onChange: (checked, e) => {
          this.handleGeneralChange(e);
        },
        label: "Keep Password History"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-inline ds-left-margin ds-raise-field-md ds-width-sm"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
        value: this.state.passwordinhistory,
        type: "number",
        id: "passwordinhistory",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordinhistory",
        onChange: (checked, e) => {
          this.handleGeneralChange(e);
        }
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        className: "ds-margin-top",
        title: "Set the password storage scheme (passwordstoragescheme)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 3,
        className: "ds-label"
      }, "Password Storage Scheme"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.FormSelect, {
        id: "passwordstoragescheme",
        value: this.state.passwordstoragescheme,
        onChange: (value, event) => {
          this.handleGeneralChange(event);
        },
        "aria-label": "FormSelect Input"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
        key: "0",
        value: "PBKDF2_SHA256",
        label: "PBKDF2_SHA256"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
        key: "1",
        value: "SSHA512",
        label: "SSHA512"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
        key: "2",
        value: "SSHA384",
        label: "SSHA384"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
        key: "3",
        value: "SSHA256",
        label: "SSHA256"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
        key: "4",
        value: "SSHA",
        label: "SSHA"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
        key: "5",
        value: "MD5",
        label: "MD5"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
        key: "6",
        value: "SMD5",
        label: "SMD5"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
        key: "7",
        value: "CRYPT-MD5",
        label: "CRYPT-MD5"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
        key: "8",
        value: "CRYPT-SHA512",
        label: "CRYPT-SHA512"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
        key: "9",
        value: "CRYPT-SHA256",
        label: "CRYPT-SHA256"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
        key: "10",
        value: "CRYPT",
        label: "CRYPT"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
        key: "11",
        value: "GOST_YESCRYPT",
        label: "GOST_YESCRYPT"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
        key: "12",
        value: "CLEAR",
        label: "CLEAR"
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        title: "Indicates the number of seconds that must pass before a user can change their password again. (passwordMinAge)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Password Minimum Age"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
        value: this.state.passwordminage,
        type: "number",
        id: "passwordminage",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordminage",
        onChange: (checked, e) => {
          this.handleGeneralChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        title: "The DN for a password administrator or administrator group (passwordAdminDN)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Password Administrator"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
        value: this.state.passwordadmindn,
        type: "text",
        id: "passwordadmindn",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordadmindn",
        onChange: (checked, e) => {
          this.handleGeneralChange(e);
        }
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.Button, _extends({
        isDisabled: this.state.saveGeneralDisabled,
        variant: "primary",
        className: "ds-margin-top-xlg ds-margin-left-sm",
        onClick: this.saveGeneral,
        isLoading: this.state.saving,
        spinnerAriaValueText: this.state.saving ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.Tab, {
        eventKey: 1,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__.TabTitleText, null, "Expiration")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Form, {
        className: "ds-margin-top-xlg ds-margin-left",
        isHorizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        title: "Enable a password expiration policy (passwordExp)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
        id: "passwordexp",
        isChecked: this.state.passwordexp,
        onChange: (checked, e) => {
          this.handleExpChange(e);
        },
        label: "Enforce Password Expiration"
      }))), pwExpirationRows), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.Button, _extends({
        isDisabled: this.state.saveExpDisabled,
        variant: "primary",
        className: "ds-margin-top-xlg ds-margin-left",
        onClick: this.saveExp,
        isLoading: this.state.saving,
        spinnerAriaValueText: this.state.saving ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.Tab, {
        eventKey: 2,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__.TabTitleText, null, "Account Lockout")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Form, {
        className: "ds-margin-top-xlg ds-margin-left",
        isHorizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        title: "Enable account lockout (passwordLockout)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
        id: "passwordlockout",
        isChecked: this.state.passwordlockout,
        onChange: (checked, e) => {
          this.handleLockoutChange(e);
        },
        label: "Enable Account Lockout"
      }))), pwLockoutRows), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.Button, _extends({
        isDisabled: this.state.saveLockoutDisabled,
        variant: "primary",
        className: "ds-margin-top-xlg ds-margin-left",
        onClick: this.saveLockout,
        isLoading: this.state.saving,
        spinnerAriaValueText: this.state.saving ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.Tab, {
        eventKey: 3,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__.TabTitleText, null, "Syntax Checking")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Form, {
        className: "ds-margin-top-xlg ds-margin-left",
        isHorizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        title: "Enable password syntax checking (passwordCheckSyntax)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
        id: "passwordchecksyntax",
        isChecked: this.state.passwordchecksyntax,
        onChange: (checked, e) => {
          this.handleSyntaxChange(e);
        },
        label: "Enable Password Syntax Checking"
      }))), pwSyntaxRows), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.Button, _extends({
        isDisabled: this.state.saveSyntaxDisabled,
        variant: "primary",
        className: "ds-margin-top-xlg ds-margin-left",
        onClick: this.saveSyntax,
        isLoading: this.state.saving,
        spinnerAriaValueText: this.state.saving ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.Tab, {
        eventKey: 4,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__.TabTitleText, null, "Temporary Password Rules")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Form, {
        className: "ds-margin-top ds-margin-left",
        isHorizontal: true,
        autoComplete: "off"
      }, this.state.passwordmustchange == false && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.FormAlert, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.Alert, {
        variant: "info",
        title: "\"User Must Change Password After Reset\" must be enabled in General Settings to activate TPR.",
        "aria-live": "polite",
        isInline: true
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        title: "Number of times the temporary password can be used to authenticate (passwordTPRMaxUse)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Password Max Use"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
        value: this.state.passwordtprmaxuse,
        type: "number",
        id: "passwordtprmaxuse",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordtprmaxuse",
        isDisabled: !this.state.passwordmustchange,
        onChange: (checked, e) => {
          this.handleTPRChange(e);
        }
      }))), pwSyntaxRows), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Form, {
        className: "ds-margin-top ds-margin-left",
        isHorizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        title: "Number of seconds before the temporary password expires (passwordTPRDelayExpireAt)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Password Expires In"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
        value: this.state.passwordtprdelayexpireat,
        type: "number",
        id: "passwordtprdelayexpireat",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordtprdelayexpireat",
        isDisabled: !this.state.passwordmustchange,
        onChange: (checked, e) => {
          this.handleTPRChange(e);
        }
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Form, {
        className: "ds-margin-top ds-margin-left",
        isHorizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        title: "Number of seconds after which temporary password starts to be valid for authentication (passwordTPRDelayValidFrom)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Password Valid From"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
        value: this.state.passwordtprdelayvalidfrom,
        type: "number",
        id: "passwordtprdelayvalidfrom",
        "aria-describedby": "horizontal-form-name-helper",
        name: "passwordtprdelayvalidfrom",
        isDisabled: !this.state.passwordmustchange,
        onChange: (checked, e) => {
          this.handleTPRChange(e);
        }
      }))), pwSyntaxRows), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.Button, _extends({
        isDisabled: this.state.saveTPRDisabled,
        variant: "primary",
        className: "ds-margin-top-xlg ds-margin-left",
        onClick: this.saveTPR,
        isLoading: this.state.saving,
        spinnerAriaValueText: this.state.saving ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName))));
    }

    var body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Tabs, {
      activeKey: this.state.localActiveTabKey,
      onSelect: this.handleLocalNavSelect
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.Tab, {
      eventKey: 0,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__.TabTitleText, null, "Local Policy Table")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_4__.PwpTable, {
      key: this.state.rows,
      rows: this.state.rows,
      editPolicy: this.loadLocal,
      deletePolicy: this.showDeletePolicy
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.Tab, {
      eventKey: 1,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__.TabTitleText, null, "Edit Policy")
    }, edit_tab), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.Tab, {
      eventKey: 2,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__.TabTitleText, null, "Create A Policy")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(CreatePolicy, {
      handleChange: this.handleCreateChange,
      handleSelectChange: this.handleCreateSelectChange,
      attrs: this.props.attrs,
      passwordexp: this.state.create_passwordexp,
      passwordchecksyntax: this.state.create_passwordchecksyntax,
      passwordlockout: this.state.create_passwordlockout,
      createDisabled: this.state.createDisabled,
      passworduserattributes: this.state.create_passworduserattributes,
      createPolicy: this.createPolicy,
      invalid_dn: this.state.invalid_dn,
      key: this.state.rows,
      policyDN: this.state.policyDN,
      createPolicyType: this.state.createPolicyType,
      create_passwordtrackupdatetime: this.state.create_passwordtrackupdatetime,
      create_passwordchange: this.state.create_passwordchange,
      create_passwordmustchange: this.state.create_passwordmustchange,
      create_passwordhistory: this.state.create_passwordhistory,
      create_passwordexp: this.state.create_passwordexp,
      create_passwordsendexpiringtime: this.state.create_passwordsendexpiringtime,
      create_passwordlockout: this.state.create_passwordlockout,
      create_passwordunlock: this.state.create_passwordunlock,
      create_passwordchecksyntax: this.state.create_passwordchecksyntax,
      create_passworddictcheck: this.state.create_passworddictcheck,
      create_passwordpalindrome: this.state.create_passwordpalindrome,
      onUserAttrsCreateToggle: this.onUserAttrsCreateToggle,
      onUserAttrsCreateClear: this.onUserAttrsCreateClear,
      isUserAttrsCreateOpen: this.state.isUserAttrsCreateOpen
    }))));

    if (this.state.loading || !this.state.loaded) {
      body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-top-xlg ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__.Spinner, {
        isSVG: true,
        size: "xl"
      }));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: this.state.saving ? "ds-disabled" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextVariants.h3
    }, "Local Password Policies ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_5__.FontAwesomeIcon, {
      size: "lg",
      className: "ds-left-margin ds-refresh",
      icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_29__.faSyncAlt,
      title: "Refresh the local password policies",
      onClick: this.loadPolicies
    }))))), body, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__.DoubleConfirmModal, {
      showModal: this.state.showDeletePolicy,
      closeHandler: this.closeDeletePolicy,
      handleChange: this.handleModalChange,
      actionHandler: this.deletePolicy,
      item: this.state.deleteName,
      checked: this.state.modalChecked,
      spinning: this.state.tableLoading,
      mTitle: "Delete Local Password Policy",
      mMsg: "Are you sure you want to delete this local password policy?",
      mSpinningMsg: "Deleting local password policy ...",
      mBtnName: "Delete Policy"
    }));
  }

}
LocalPwPolicy.propTypes = {
  attrs: (prop_types__WEBPACK_IMPORTED_MODULE_30___default().array)
};
LocalPwPolicy.defaultProps = {
  attrs: []
};

/***/ }),

/***/ "./src/lib/database/referrals.jsx":
/*!****************************************!*\
  !*** ./src/lib/database/referrals.jsx ***!
  \****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SuffixReferrals": () => (/* binding */ SuffixReferrals)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./databaseTables.jsx */ "./src/lib/database/databaseTables.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_14__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }








class SuffixReferrals extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      showConfirmRefDelete: false,
      showRefModal: false,
      removeRef: "",
      refProtocol: "ldap://",
      refHost: "",
      refPort: "",
      refSuffix: "",
      refFilter: "",
      refScope: "sub",
      refAttrs: "",
      refValue: "",
      errObj: {},
      saving: false,
      saveBtnDisabled: true,
      modalSpinning: false,
      modalChecked: false
    }; // Delete referral and confirmation

    this.showConfirmRefDelete = this.showConfirmRefDelete.bind(this);
    this.closeConfirmRefDelete = this.closeConfirmRefDelete.bind(this);
    this.deleteRef = this.deleteRef.bind(this);
    this.saveRef = this.saveRef.bind(this); // Referral modal

    this.showRefModal = this.showRefModal.bind(this);
    this.closeRefModal = this.closeRefModal.bind(this);
    this.handleRefChange = this.handleRefChange.bind(this);
    this.buildRef = this.buildRef.bind(this);
    this.handleChange = this.handleChange.bind(this);
    this.handleScopeChange = this.handleScopeChange.bind(this);
    this.handleLdapChange = this.handleLdapChange.bind(this);
  }

  handleScopeChange(value, event) {
    this.setState({
      refScope: value
    });
  }

  handleLdapChange(value, event) {
    this.setState({
      refProtocol: value
    });
  }

  showConfirmRefDelete(item) {
    this.setState({
      removeRef: item,
      showConfirmRefDelete: true,
      modalSpinning: false,
      modalChecked: false
    });
  }

  showRefModal() {
    this.setState({
      showRefModal: true,
      errObj: {},
      refValue: ""
    });
  }

  closeConfirmRefDelete() {
    this.setState({
      showConfirmRefDelete: false,
      modalSpinning: false,
      modalChecked: false
    });
  }

  closeRefModal() {
    this.setState({
      showRefModal: false
    });
  }

  deleteRef() {
    // take state.removeRef and remove it from ldap
    this.setState({
      modalSpinning: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "suffix", "set", "--del-referral=" + this.state.removeRef, this.props.suffix];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("deleteRef", "Delete suffix referral", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload(this.props.suffix);
      this.props.addNotification("success", "Referral successfully deleted");
      this.setState({
        modalSpinning: false,
        showConfirmRefDelete: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.reload(this.props.suffix);
      this.props.addNotification("error", "Failure deleting referral - ".concat(errMsg.desc));
      this.setState({
        modalSpinning: false,
        showConfirmRefDelete: false
      });
    });
  } // Create referral


  saveRef() {
    this.setState({
      saving: true
    }); // Add referral

    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "suffix", "set", "--add-referral=" + this.state.refValue, this.props.suffix];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("saveRef", "Add referral", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload(this.props.suffix);
      this.closeRefModal();
      this.props.addNotification("success", "Referral successfully created");
      this.setState({
        saving: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.reload(this.props.suffix);
      this.closeRefModal();
      this.props.addNotification("error", "Failure creating referral - ".concat(errMsg.desc));
      this.setState({
        saving: false
      });
    });
  }

  buildRef() {
    var previewRef = this.state.refProtocol + this.state.refHost;
    var ref_port = this.state.refPort;
    var ref_suffix = this.state.refSuffix;
    var ref_attrs = this.state.refAttrs;
    var ref_filter = this.state.refFilter;
    var ref_scope = this.state.refScope;

    if (ref_port != "") {
      previewRef += ":" + ref_port;
    }

    if (ref_suffix != "" || ref_attrs != "" || ref_filter != "" || ref_scope != "") {
      previewRef += "/" + encodeURIComponent(ref_suffix);

      if (ref_attrs != "") {
        previewRef += "?" + encodeURIComponent(ref_attrs);
      } else if (ref_filter != "" || ref_scope != "") {
        previewRef += "?";
      }

      if (ref_scope != "") {
        previewRef += "?" + encodeURIComponent(ref_scope);
      } else if (ref_filter != "") {
        previewRef += "?";
      }

      if (ref_filter != "") {
        previewRef += "?" + encodeURIComponent(ref_filter);
      }
    } // Update referral value


    this.setState({
      refValue: previewRef
    });
  }

  handleRefChange(e) {
    var value = e.target.value;
    var attr = e.target.id;
    var errObj = this.state.errObj;
    var valueErr = false;
    var saveBtnDisabled = false; // Check previously set values

    var check_attrs = ['refHost', 'refPort'];

    for (var _i = 0, _check_attrs = check_attrs; _i < _check_attrs.length; _i++) {
      var check_attr = _check_attrs[_i];

      if (attr != check_attr) {
        if (this.state[check_attr] == "") {
          saveBtnDisabled = true;
        }
      }
    } // Check changes


    if (attr == "refHost" && value == "") {
      saveBtnDisabled = true;
      valueErr = true;
    }

    if (attr == "refPort" && (value == "" || !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_port)(value))) {
      saveBtnDisabled = true;
      valueErr = true;
    }

    if (attr == "refSuffix" && value != "" && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(value)) {
      saveBtnDisabled = true;
      valueErr = true;
    }

    errObj[e.target.id] = valueErr;
    this.setState({
      [e.target.id]: value,
      errObj: errObj,
      saveBtnDisabled: saveBtnDisabled
    }, this.buildRef);
  }

  handleChange(e) {
    // Basic handler, no error checking
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [e.target.id]: value
    });
  }

  render() {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-sub-header ds-margin-bottom-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__.ReferralTable, {
      key: this.props.rows,
      rows: this.props.rows,
      deleteRef: this.showConfirmRefDelete
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, {
      variant: "primary",
      onClick: this.showRefModal
    }, "Create Referral"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmRefDelete,
      closeHandler: this.closeConfirmRefDelete,
      handleChange: this.handleChange,
      actionHandler: this.deleteRef,
      spinning: this.state.modalSpinning,
      item: this.state.removeRef,
      checked: this.state.modalChecked,
      mTitle: "Delete Refferal",
      mMsg: "Are you sure you want to delete this referral?",
      mSpinningMsg: "Deleting ...",
      mBtnName: "Delete"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(AddReferralModal, {
      showModal: this.state.showRefModal,
      closeHandler: this.closeRefModal,
      handleChange: this.handleRefChange,
      handleScopeChange: this.handleScopeChange,
      handleLdapChange: this.handleLdapChange,
      saveHandler: this.saveRef,
      previewValue: this.state.refValue,
      refProtocol: this.state.refProtocol,
      refScope: this.state.refScope,
      error: this.state.errObj,
      saving: this.state.saving,
      saveBtnDisabled: this.state.saveBtnDisabled
    }));
  }

}

class AddReferralModal extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  render() {
    var _this$props = this.props,
        showModal = _this$props.showModal,
        closeHandler = _this$props.closeHandler,
        handleChange = _this$props.handleChange,
        handleScopeChange = _this$props.handleScopeChange,
        handleLdapChange = _this$props.handleLdapChange,
        saveHandler = _this$props.saveHandler,
        previewValue = _this$props.previewValue,
        error = _this$props.error,
        saving = _this$props.saving,
        saveBtnDisabled = _this$props.saveBtnDisabled,
        refProtocol = _this$props.refProtocol,
        refScope = _this$props.refScope;

    if (previewValue == "") {
      previewValue = "ldap://";
    }

    var saveBtnName = "Create Referral";
    var extraPrimaryProps = {};

    if (saving) {
      saveBtnName = "Creating ...";
      extraPrimaryProps.spinnerAriaValueText = "Creating";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ModalVariant.medium,
      title: "Add Database Referral",
      isOpen: showModal,
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, _extends({
        key: "confirm",
        variant: "primary",
        onClick: saveHandler,
        isDisabled: saveBtnDisabled,
        isLoading: saving,
        spinnerAriaValueText: saving ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Form, {
      className: "ds-margin-top",
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Protocol"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormSelect, {
      id: "refProtocol",
      value: refProtocol,
      onChange: handleLdapChange,
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: 1,
      value: "ldap://",
      label: "ldap://"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: 2,
      value: "ldaps://",
      label: "ldaps://"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Host Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextInput, {
      type: "text",
      id: "refHost",
      "aria-describedby": "horizontal-form-name-helper",
      name: "refHost",
      onChange: (checked, e) => {
        handleChange(e);
      },
      validated: error.refHost ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Port Number"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextInput, {
      type: "number",
      id: "refPort",
      "aria-describedby": "horizontal-form-name-helper",
      name: "refPort",
      onChange: (checked, e) => {
        handleChange(e);
      },
      validated: error.refPort ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Suffix"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextInput, {
      type: "text",
      id: "refSuffix",
      "aria-describedby": "horizontal-form-name-helper",
      name: "refSuffix",
      onChange: (checked, e) => {
        handleChange(e);
      },
      validated: error.refSuffix ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "Comma separated list of attributes to return"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Attributes"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextInput, {
      type: "text",
      id: "refAttrs",
      "aria-describedby": "horizontal-form-name-helper",
      name: "refAttrs",
      onChange: (checked, e) => {
        handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Filter"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextInput, {
      type: "text",
      id: "refFilter",
      "aria-describedby": "horizontal-form-name-helper",
      name: "refFilter",
      onChange: (checked, e) => {
        handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Scope"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormSelect, {
      id: "refScope",
      value: refScope,
      onChange: handleScopeChange,
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: 1,
      value: "sub",
      label: "sub"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: 2,
      value: "one",
      label: "one"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: 3,
      value: "base",
      label: "base"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 3
    }, "Computed Referral"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, previewValue))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null)));
  }

} // Property types and defaults


SuffixReferrals.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().array),
  suffix: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string),
  reload: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string)
};
SuffixReferrals.defaultProps = {
  rows: [],
  suffix: "",
  serverId: ""
};
AddReferralModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),
  handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),
  saveHandler: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),
  previewValue: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string),
  error: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().object)
};
AddReferralModal.defaultProps = {
  showModal: false,
  previewValue: "",
  error: {}
};

/***/ }),

/***/ "./src/lib/database/suffix.jsx":
/*!*************************************!*\
  !*** ./src/lib/database/suffix.jsx ***!
  \*************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Suffix": () => (/* binding */ Suffix)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _attrEncryption_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./attrEncryption.jsx */ "./src/lib/database/attrEncryption.jsx");
/* harmony import */ var _suffixConfig_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./suffixConfig.jsx */ "./src/lib/database/suffixConfig.jsx");
/* harmony import */ var _referrals_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./referrals.jsx */ "./src/lib/database/referrals.jsx");
/* harmony import */ var _indexes_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./indexes.jsx */ "./src/lib/database/indexes.jsx");
/* harmony import */ var _vlvIndexes_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vlvIndexes.jsx */ "./src/lib/database/vlvIndexes.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
/* harmony import */ var _fortawesome_fontawesome_svg_core_styles_css__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core/styles.css */ "./node_modules/@fortawesome/fontawesome-svg-core/styles.css");
/* harmony import */ var _databaseModal_jsx__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./databaseModal.jsx */ "./src/lib/database/databaseModal.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownSeparator.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/Dropdown.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/dropdownConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownToggle.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_23__);















class Suffix extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      loading: false,
      activeTabKey: 0,
      notifications: [],
      errObj: {},
      refRows: this.props.data.refRows,
      encAttrsRows: this.props.data.encAttrsRows,
      vlvItems: this.props.data.vlvItems,
      autoTuning: this.props.data.autoTuning,
      dropdownIsOpen: false,
      // Suffix configuration
      cachememsize: this.props.data.cachememsize,
      cachesize: this.props.data.cachesize,
      dncachememsize: this.props.data.dncachememsize,
      readOnly: this.props.data.readOnly,
      requireIndex: this.props.data.requireIndex,
      dbstate: this.props.data.dbstate,
      _cachememsize: this.props.data.cachememsize,
      _cachesize: this.props.data.cachesize,
      _dncachememsize: this.props.data.dncachememsize,
      _readOnly: this.props.data.readOnly,
      _requireIndex: this.props.data.requireIndex,
      _dbstate: this.props.data.dbstate,
      savingConfig: false,
      saveBtnDisabled: true,
      // Import/Export modals
      showImportModal: false,
      showExportModal: false,
      ldifLocation: "",
      attrEncryption: false,
      exportSpinner: false,
      showConfirmLDIFImport: false,
      importLDIFName: "",
      deleleLDIFName: "",
      modalChecked: false,
      modalSpinning: false,
      includeReplData: false,
      // Reindex all
      showReindexConfirm: false,
      // Create Sub Suffix
      showSubSuffixModal: false,
      subSuffixValue: "",
      subSuffixBeName: "",
      createSuffixEntry: false,
      noSuffixInit: true,
      createSampleEntries: false,
      saveSubSuffixBtnDisabled: true,
      subSuffixSaving: false,
      initOption: "noInit",
      // Create Link
      showLinkModal: false,
      createLinkSuffix: "",
      createLinkName: "",
      createNsfarmserverurl: "",
      createNsmultiplexorbinddn: "",
      createNsmultiplexorcredentials: "",
      createNsmultiplexorcredentialsConfirm: "",
      createUseStartTLS: false,
      createNsbindmechanism: "SIMPLE",
      linkSaving: false,
      linkSaveBtnDisabled: true,
      // Delete
      showDeleteConfirm: false
    }; // config.autoAddCss = false;
    // Dropdown tasks

    this.onToggle = dropdownIsOpen => {
      this.setState({
        dropdownIsOpen
      });
    };

    this.onSelect = event => {
      this.setState({
        dropdownIsOpen: !this.state.dropdownIsOpen
      });
      this.onFocus();
    };

    this.onFocus = () => {
      var element = document.getElementById('suffix-dropdown');
      element.focus();
    }; // Toggle currently active tab


    this.handleNavSelect = (event, tabIndex) => {
      this.setState({
        activeTabKey: tabIndex
      });
    }; // General bindings
    // Import modal


    this.showImportModal = this.showImportModal.bind(this);
    this.closeImportModal = this.closeImportModal.bind(this);
    this.handleChange = this.handleChange.bind(this);
    this.doImport = this.doImport.bind(this);
    this.importLDIF = this.importLDIF.bind(this);
    this.showConfirmLDIFImport = this.showConfirmLDIFImport.bind(this);
    this.closeConfirmLDIFImport = this.closeConfirmLDIFImport.bind(this); // Export modal

    this.showExportModal = this.showExportModal.bind(this);
    this.closeExportModal = this.closeExportModal.bind(this);
    this.doExport = this.doExport.bind(this);
    this.handleExportChange = this.handleExportChange.bind(this); // Reindex Suffix Modal

    this.showReindexConfirm = this.showReindexConfirm.bind(this);
    this.closeReindexConfirm = this.closeReindexConfirm.bind(this);
    this.doReindex = this.doReindex.bind(this); // Create sub suffix modal

    this.showSubSuffixModal = this.showSubSuffixModal.bind(this);
    this.closeSubSuffixModal = this.closeSubSuffixModal.bind(this);
    this.createSubSuffix = this.createSubSuffix.bind(this);
    this.handleSubSuffixOnSelect = this.handleSubSuffixOnSelect.bind(this);
    this.handleSubSuffixChange = this.handleSubSuffixChange.bind(this); // Create link modal

    this.showLinkModal = this.showLinkModal.bind(this);
    this.closeLinkModal = this.closeLinkModal.bind(this);
    this.createLink = this.createLink.bind(this);
    this.handleLinkChange = this.handleLinkChange.bind(this);
    this.handleLinkOnSelect = this.handleLinkOnSelect.bind(this); // Suffix config

    this.saveSuffixConfig = this.saveSuffixConfig.bind(this);
    this.showDeleteConfirm = this.showDeleteConfirm.bind(this);
    this.closeDeleteConfirm = this.closeDeleteConfirm.bind(this);
    this.handleConfigChange = this.handleConfigChange.bind(this);
    this.doDelete = this.doDelete.bind(this);
  }

  componentDidMount() {
    this.props.enableTree();
  } //
  // Import Modal
  //


  showImportModal() {
    this.setState({
      ldifLocation: "",
      attrEncryption: false,
      showImportModal: true,
      errObj: {}
    });
  }

  closeImportModal() {
    this.setState({
      showImportModal: false
    });
  }

  handleChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var valueErr = false;
    var errObj = this.state.errObj;

    if (value == "") {
      valueErr = true;
    }

    errObj[e.target.id] = valueErr;
    this.setState({
      [e.target.id]: value,
      errObj: errObj
    });
  }

  handleConfigChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    var saveBtnDisabled = true;
    var configAttrs = ['cachememsize', 'cachesize', 'dncachememsize', 'readOnly', 'requireIndex', 'dbstate'];

    for (var _i = 0, _configAttrs = configAttrs; _i < _configAttrs.length; _i++) {
      var check_attr = _configAttrs[_i];

      if (attr != check_attr) {
        if (this.state[check_attr] != this.state['_' + check_attr]) {
          saveBtnDisabled = false;
        }
      } else if (value != this.state['_' + check_attr]) {
        saveBtnDisabled = false;
      }
    }

    this.setState({
      [attr]: value,
      saveBtnDisabled: saveBtnDisabled
    });
  }

  showConfirmLDIFImport(name) {
    // call deleteLDIF
    this.setState({
      showConfirmLDIFImport: true,
      importLDIFName: name,
      modalChecked: false,
      modalSpinning: false
    });
  }

  closeConfirmLDIFImport() {
    // call importLDIF
    this.setState({
      showConfirmLDIFImport: false,
      modalChecked: false,
      modalSpinning: false
    });
  }

  importLDIF() {
    // Do import
    var import_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "import", this.props.suffix, this.state.importLDIFName, "--encrypted"];
    this.setState({
      modalSpinning: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_8__.log_cmd)("doImport", "Do online import", import_cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(import_cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.addNotification("success", "Import successfully initiated");
      this.setState({
        modalSpinning: false,
        showConfirmLDIFImport: false,
        showImportModal: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error importing LDIF file - ".concat(errMsg.desc));
      this.setState({
        modalSpinning: false,
        showConfirmLDIFImport: false
      });
    });
  }

  doImport() {
    // Validate form before proceeding
    if (this.state.ldifLocation != "") {
      this.setState({
        showConfirmLDIFImport: true,
        importLDIFName: this.state.ldifLocation
      });
    }
  } //
  // Export modal
  //


  showExportModal() {
    this.setState({
      ldifLocation: "",
      attrEncryption: false,
      showExportModal: true,
      exportSpinner: false,
      includeReplData: false,
      errObj: {}
    });
  }

  closeExportModal() {
    this.setState({
      showExportModal: false,
      exportSpinner: false
    });
  }

  doExport() {
    var missingArgs = {
      ldifLocation: false
    };

    if (this.state.ldifLocation == "") {
      this.props.addNotification("warning", "LDIF name is empty");
      missingArgs.ldifLocation = true;
      this.setState({
        errObj: missingArgs
      });
      return;
    } // Must not be a path


    if ((0,_tools_jsx__WEBPACK_IMPORTED_MODULE_8__.bad_file_name)(this.state.ldifLocation)) {
      this.props.addNotification("warning", "LDIF name should not be a path.  All export files are stored in the server's LDIF directory");
      missingArgs.ldifLocation = true;
      this.setState({
        errObj: missingArgs
      });
      return;
    } // Do Export


    var export_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "export", this.props.suffix, "--ldif=" + this.state.ldifLocation];

    if (this.state.attrEncryption) {
      export_cmd.push("--encrypted");
    }

    if (this.state.includeReplData) {
      export_cmd.push("--replication");
    }

    this.setState({
      exportSpinner: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_8__.log_cmd)("doExport", "Do online export", export_cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(export_cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reloadLDIFs();
      this.setState({
        showExportModal: false
      });
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get", "nsslapd-ldifdir"];
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_8__.log_cmd)("doExport", "Get the backup directory", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        var config = JSON.parse(content);
        var attrs = config.attrs;
        this.props.addNotification("success", "Database export complete. You can find the LDIF file in ".concat(attrs['nsslapd-ldifdir'][0], " directory on the server machine."));
      }).fail(err => {
        var errMsg = JSON.parse(err);
        this.props.addNotification("success", "Database export complete.");
        this.props.addNotification("error", "Error while trying to get the server's LDIF directory- ".concat(errMsg.desc));
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.reloadLDIFs();
      this.props.addNotification("error", "Error exporting database - ".concat(errMsg.desc));
      this.setState({
        showExportModal: false
      });
    });
  } //
  // Reindex entire database
  //


  showReindexConfirm() {
    this.setState({
      showReindexConfirm: true,
      modalChecked: false,
      modalSpinning: false
    });
  }

  closeReindexConfirm() {
    this.setState({
      showReindexConfirm: false,
      modalChecked: false,
      modalSpinning: false
    });
  }

  doReindex() {
    // Show index status modal
    this.setState({
      modalSpinning: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "index", "reindex", "--wait", this.props.suffix];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_8__.log_cmd)("doReindex", "Reindex all attributes", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.addNotification("success", "Database has successfully been reindexed");
      this.setState({
        modalSpinning: false,
        showReindexConfirm: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to reindex database - ".concat(errMsg.desc));
      this.setState({
        modalSpinning: false,
        showReindexConfirm: false
      });
    });
  } //
  // Create sub suffix
  //


  showSubSuffixModal() {
    this.setState({
      showSubSuffixModal: true,
      errObj: {}
    });
  }

  closeSubSuffixModal() {
    this.setState({
      showSubSuffixModal: false
    });
  }

  createSubSuffix() {
    // Create a new suffix
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "create", "--be-name", this.state.subSuffixBeName, "--suffix=" + this.state.subSuffixValue + "," + this.props.suffix, "--parent-suffix=" + this.props.suffix];

    if (this.state.createSampleEntries) {
      cmd.push('--create-entries');
    }

    if (this.state.createSuffixEntry) {
      cmd.push('--create-suffix');
    }

    this.setState({
      subSuffixSaving: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_8__.log_cmd)("createSubSuffix", "Create a sub suffix", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.loadSuffixTree(false);
      this.closeSubSuffixModal();
      this.props.addNotification("success", "Successfully created new sub-suffix");
      this.setState({
        subSuffixSaving: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.loadSuffixTree(false);
      this.closeSubSuffixModal();
      this.props.addNotification("error", "Error creating sub-suffix - ".concat(errMsg.desc));
      this.setState({
        subSuffixSaving: false
      });
    });
  } //
  // Create Chaining Link
  //


  showLinkModal() {
    this.setState({
      showLinkModal: true,
      errObj: {}
    });
  }

  closeLinkModal() {
    this.setState({
      showLinkModal: false
    });
  }

  createLink() {
    // Add chaining link
    this.setState({
      linkSaving: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "chaining", "link-create", "--suffix=" + this.state.createLinkSuffix + "," + this.props.suffix, "--server-url=" + this.state.createNsfarmserverurl, "--bind-mech=" + this.state.createNsbindmechanism, "--bind-dn=" + this.state.createNsmultiplexorbinddn, "--bind-pw=" + this.state.createNsmultiplexorcredentials, this.state.createLinkName];

    if (this.state.createUseStartTLS) {
      cmd.push("--use-starttls=on");
    }

    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_8__.log_cmd)("createLink", "Create database link", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.loadSuffixTree(false);
      this.closeLinkModal();
      this.props.addNotification("success", "Successfully created database link");
      this.setState({
        linkSaving: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.loadSuffixTree(false);
      this.closeLinkModal();
      this.props.addNotification("error", "Error creating database link - ".concat(errMsg.desc));
      this.setState({
        linkSaving: false
      });
    });
  }

  handleLinkOnSelect(value, event) {
    this.setState({
      createNsbindmechanism: value
    });
  }

  handleLinkChange(e) {
    // Check for matching credentials
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    var valueErr = false;
    var saveBtnDisabled = false;
    var errObj = this.state.errObj;
    var check_attrs = ["createLinkSuffix", "createLinkName", "createNsfarmserverurl", "createNsmultiplexorbinddn", "createNsmultiplexorcredentials", "createNsmultiplexorcredentialsConfirm", "createNsbindmechanism"];

    for (var _i2 = 0, _check_attrs = check_attrs; _i2 < _check_attrs.length; _i2++) {
      var check_attr = _check_attrs[_i2];

      if (attr != check_attr && this.state[check_attr] == "") {
        saveBtnDisabled = true;
      }
    } // Handle password validation


    if (attr != "createNsmultiplexorcredentials" && attr != "createNsmultiplexorcredentialsConfirm") {
      if (this.state.createNsmultiplexorcredentials != this.state.createNsmultiplexorcredentialsConfirm) {
        saveBtnDisabled = true;
      }
    } else {
      if (attr == "createNsmultiplexorcredentials") {
        if (value != this.state.createNsmultiplexorcredentialsConfirm) {
          errObj.createNsmultiplexorcredentials = true;
          errObj.createNsmultiplexorcredentialsConfirm = true;
          saveBtnDisabled = true;
        } else {
          errObj.createNsmultiplexorcredentials = false;
          errObj.createNsmultiplexorcredentialsConfirm = false;
        }
      } else if (attr == "createNsmultiplexorcredentialsConfirm") {
        if (value != this.state.createNsmultiplexorcredentials) {
          errObj.createNsmultiplexorcredentials = true;
          errObj.createNsmultiplexorcredentialsConfirm = true;
          saveBtnDisabled = true;
        } else {
          errObj.createNsmultiplexorcredentials = false;
          errObj.createNsmultiplexorcredentialsConfirm = false;
        }
      }
    }

    if (value == "") {
      valueErr = true;
      saveBtnDisabled = true;
    }

    errObj[attr] = valueErr;
    this.setState({
      [e.target.id]: value,
      errObj: errObj,
      linkSaveBtnDisabled: saveBtnDisabled
    });
  }

  handleSubSuffixOnSelect(value, event) {
    var noInit = false;
    var addSuffix = false;
    var addSample = false;

    if (value == "noInit") {
      noInit = true;
    } else if (value == "addSuffix") {
      addSuffix = true;
    } else {
      // addSample
      addSample = true;
    }

    this.setState({
      initOption: value,
      noSuffixInit: noInit,
      createSuffixEntry: addSuffix,
      createSampleEntries: addSample
    });
  }

  handleSubSuffixChange(e) {
    var value = e.target.value;
    var valueErr = false;
    var errObj = this.state.errObj;
    var saveBtnDisabled = false;
    var check_attrs = ["subSuffixBeName", "subSuffixValue"];

    for (var _i3 = 0, _check_attrs2 = check_attrs; _i3 < _check_attrs2.length; _i3++) {
      var check_attr = _check_attrs2[_i3];

      if (this.state[check_attr] == "") {
        saveBtnDisabled = true;
      }
    }

    if (value == "") {
      valueErr = true;
      saveBtnDisabled = true;
    }

    errObj[e.target.id] = valueErr;
    this.setState({
      [e.target.id]: value,
      errObj: errObj,
      saveSubSuffixBtnDisabled: saveBtnDisabled
    });
  }

  handleExportChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var valueErr = false;
    var errObj = this.state.errObj;
    var saveBtnDisabled = false;

    if (e.target.id != "ldifLocation" && this.state.ldifLocation == 0) {
      saveBtnDisabled = true;
    }

    if (value == "") {
      valueErr = true;
      saveBtnDisabled = true;
    }

    errObj[e.target.id] = valueErr;
    this.setState({
      [e.target.id]: value,
      errObj: errObj,
      saveExportBtnDisabled: saveBtnDisabled
    });
  } //
  // Delete suffix
  //


  showDeleteConfirm(item) {
    this.setState({
      showDeleteConfirm: true,
      modalSpinning: false,
      modalChecked: false
    });
  }

  closeDeleteConfirm() {
    this.setState({
      showDeleteConfirm: false,
      modalChecked: false,
      modalSpinning: false
    });
  }

  doDelete() {
    // Delete suffix
    this.setState({
      modalSpinning: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "delete", this.props.suffix];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_8__.log_cmd)("doDelete", "Delete database", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.loadSuffixTree(true);
      this.closeDeleteConfirm();
      this.props.addNotification("success", "Successfully deleted database");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.loadSuffixTree(true);
      this.closeDeleteConfirm();
      this.props.addNotification("error", "Error deleting database - ".concat(errMsg.desc));
    });
  } // Save config


  saveSuffixConfig() {
    console.log("Save suffix config: ", this.props.suffix);
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'backend', 'suffix', 'set', this.props.suffix];
    var requireRestart = false;

    if (this.state._readOnly != this.state.readOnly) {
      if (this.state.readOnly) {
        cmd.push("--enable-readonly");
      } else {
        cmd.push("--disable-readonly");
      }
    }

    if (this.state._requireIndex != this.state.requireIndex) {
      if (this.state.requireIndex) {
        cmd.push("--require-index");
      } else {
        cmd.push("--ignore-index");
      }
    }

    if (this.state._cachememsize != this.state.cachememsize) {
      cmd.push("--cache-memsize=" + this.state.cachememsize);
      requireRestart = true;
    }

    if (this.state._cachesize != this.state.cachesize) {
      cmd.push("--cache-size=" + this.state.cachesize);
      requireRestart = true;
    }

    if (this.state._dncachememsize != this.state.dncachememsize) {
      cmd.push("--dncache-memsize=" + this.state.dncachememsize);
      requireRestart = true;
    }

    if (this.state._dbstate != this.state.dbstate) {
      cmd.push("--state=" + this.state.dbstate);
      requireRestart = true;
    }

    if (cmd.length > 7) {
      this.setState({
        savingConfig: true
      });
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_8__.log_cmd)("saveSuffixConfig", "Save suffix config", cmd);
      var msg = "Successfully updated suffix configuration";
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        // Continue with the next mod
        this.props.reload(this.props.suffix);

        if (requireRestart) {
          this.props.addNotification("warning", msg + "You must restart the Directory Server for these changes to take effect.");
        }

        this.setState({
          savingConfig: false
        });
      }).fail(err => {
        var errMsg = JSON.parse(err);
        this.props.reload(this.props.suffix);
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        this.props.addNotification("error", "Error updating suffix configuration - ".concat(msg));
        this.setState({
          savingConfig: false
        });
      });
    }
  } //
  // Render the component
  //


  render() {
    var suffixIcon = _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_12__.faTree;

    if (this.props.dbtype == "subsuffix") {
      suffixIcon = _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_12__.faLeaf;
    }

    var _this$state = this.state,
        dropdownIsOpen = _this$state.dropdownIsOpen,
        activeTabKey = _this$state.activeTabKey;
    var dropdownItems = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.DropdownItem, {
      key: "import",
      component: "button",
      onClick: this.showImportModal,
      title: "Import an LDIF file to initialize the database"
    }, "Initialize Suffix"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.DropdownItem, {
      key: "export",
      component: "button",
      onClick: this.showExportModal,
      title: "Export the database to an LDIF file"
    }, "Export Suffix"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.DropdownItem, {
      key: "reindex",
      component: "button",
      onClick: this.showReindexConfirm,
      title: "Reindex the entire database"
    }, "Reindex Suffix"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.DropdownItem, {
      key: "subSuffix",
      component: "button",
      onClick: this.showSubSuffixModal,
      title: "Create a sub-suffix under this suffix"
    }, "Create Sub-Suffix"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.DropdownItem, {
      key: "dbLink",
      component: "button",
      onClick: this.showLinkModal,
      title: "Create a database chaining link subtree"
    }, "Create Database Link"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.DropdownSeparator, {
      key: "separator"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.DropdownItem, {
      key: "deleteSuffix",
      component: "button",
      onClick: this.showDeleteConfirm,
      title: "This will permanently delete the database"
    }, "Delete Suffix")];
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      id: "suffix-page"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
      className: "ds-suffix-header",
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_9__.FontAwesomeIcon, {
      size: "sm",
      icon: suffixIcon
    }), "\xA0\xA0", this.props.suffix, " (", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("i", null, this.props.bename), ")", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_9__.FontAwesomeIcon, {
      className: "ds-left-margin ds-refresh",
      icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_12__.faSyncAlt,
      title: "Refresh suffix",
      onClick: () => this.props.reload(this.props.suffix)
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.Dropdown, {
      className: "ds-float-right",
      position: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.DropdownPosition.right,
      onSelect: this.onSelect,
      toggle: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.DropdownToggle, {
        id: "suffix-dropdown",
        isPrimary: true,
        onToggle: this.onToggle
      }, "Suffix Tasks"),
      isOpen: dropdownIsOpen,
      dropdownItems: dropdownItems
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-sub-header"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Tabs, {
      activeKey: activeTabKey,
      onSelect: this.handleNavSelect
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.Tab, {
      eventKey: 0,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.TabTitleText, null, "Settings")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_suffixConfig_jsx__WEBPACK_IMPORTED_MODULE_4__.SuffixConfig, {
      cachememsize: this.state.cachememsize,
      cachesize: this.state.cachesize,
      dncachememsize: this.state.dncachememsize,
      dbstate: this.state.dbstate,
      readOnly: this.state.readOnly,
      requireIndex: this.state.requireIndex,
      autoTuning: this.state.autoTuning,
      handleChange: this.handleConfigChange,
      saveHandler: this.saveSuffixConfig,
      saving: this.state.savingConfig,
      saveBtnDisabled: this.state.saveBtnDisabled
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.Tab, {
      eventKey: 1,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.TabTitleText, null, "Referrals")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_referrals_jsx__WEBPACK_IMPORTED_MODULE_5__.SuffixReferrals, {
      rows: this.props.data.refRows,
      suffix: this.props.suffix,
      reload: this.props.reloadRefs,
      addNotification: this.props.addNotification,
      serverId: this.props.serverId,
      key: this.state.refRows
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.Tab, {
      eventKey: 2,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.TabTitleText, null, "Indexes")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_indexes_jsx__WEBPACK_IMPORTED_MODULE_6__.SuffixIndexes, {
      systemIndexRows: this.props.data.systemIndexRows,
      indexRows: this.props.data.indexRows,
      suffix: this.props.suffix,
      serverId: this.props.serverId,
      addNotification: this.props.addNotification,
      reload: this.props.reloadIndexes
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.Tab, {
      eventKey: 3,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.TabTitleText, null, "VLV Indexes")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_vlvIndexes_jsx__WEBPACK_IMPORTED_MODULE_7__.VLVIndexes, {
      suffix: this.props.suffix,
      serverId: this.props.serverId,
      vlvItems: this.props.data.vlvItems,
      addNotification: this.props.addNotification,
      attrs: this.props.attrs,
      reload: this.props.reloadVLV,
      key: this.props.vlvTableKey
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.Tab, {
      eventKey: 4,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.TabTitleText, null, "Encrypted Attributes")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_attrEncryption_jsx__WEBPACK_IMPORTED_MODULE_3__.AttrEncryption, {
      rows: this.props.data.encAttrsRows,
      suffix: this.props.suffix,
      serverId: this.props.serverId,
      addNotification: this.props.addNotification,
      attrs: this.props.attrs,
      reload: this.props.reloadAttrEnc
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showDeleteConfirm,
      closeHandler: this.closeDeleteConfirm,
      handleChange: this.handleChange,
      actionHandler: this.doDelete,
      spinning: this.state.modalSpinning,
      item: this.props.suffix,
      checked: this.state.modalChecked,
      mTitle: "Delete Suffix",
      mMsg: "Are you really sure you want to delete this suffix?",
      mSpinningMsg: "Deleting suffix ...",
      mBtnName: "Delete Suffix"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_databaseModal_jsx__WEBPACK_IMPORTED_MODULE_11__.CreateLinkModal, {
      showModal: this.state.showLinkModal,
      closeHandler: this.closeLinkModal,
      handleChange: this.handleLinkChange,
      handleSelectChange: this.handleLinkOnSelect,
      saveHandler: this.createLink,
      suffix: this.props.suffix,
      starttls_checked: this.state.createUseStartTLS,
      error: this.state.errObj,
      saving: this.state.linkSaving,
      saveBtnDisabled: this.state.linkSaveBtnDisabled,
      bindMech: this.state.createNsbindmechanism
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_databaseModal_jsx__WEBPACK_IMPORTED_MODULE_11__.CreateSubSuffixModal, {
      showModal: this.state.showSubSuffixModal,
      closeHandler: this.closeSubSuffixModal,
      handleChange: this.handleSubSuffixChange,
      handleSelectChange: this.handleSubSuffixOnSelect,
      saveHandler: this.createSubSuffix,
      suffix: this.props.suffix,
      error: this.state.errObj,
      saving: this.state.subSuffixSaving,
      saveBtnDisabled: this.state.saveSubSuffixBtnDisabled,
      initOption: this.state.initOption
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_databaseModal_jsx__WEBPACK_IMPORTED_MODULE_11__.ImportModal, {
      showModal: this.state.showImportModal,
      closeHandler: this.closeImportModal,
      handleChange: this.handleChange,
      saveHandler: this.doImport,
      showConfirmImport: this.showConfirmLDIFImport,
      rows: this.props.LDIFRows,
      suffix: this.props.suffix,
      saveBtnDisabled: this.state.ldifLocation == ""
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmLDIFImport,
      closeHandler: this.closeConfirmLDIFImport,
      handleChange: this.handleChange,
      actionHandler: this.importLDIF,
      spinning: this.state.modalSpinning,
      item: this.state.importLDIFName,
      checked: this.state.modalChecked,
      mTitle: "Initialize Database From LDIF",
      mMsg: "Are you sure you want to initialize the database (it will permanently overwrite the current database)?",
      mSpinningMsg: "Initializing Database ...",
      mBtnName: "Initialize Database"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_databaseModal_jsx__WEBPACK_IMPORTED_MODULE_11__.ExportModal, {
      showModal: this.state.showExportModal,
      closeHandler: this.closeExportModal,
      handleChange: this.handleExportChange,
      saveHandler: this.doExport,
      spinning: this.state.exportSpinner,
      error: this.state.errObj,
      includeReplData: this.state.includeReplData,
      saveBtnDisabled: this.state.ldifLocation == ""
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showReindexConfirm,
      closeHandler: this.closeReindexConfirm,
      handleChange: this.handleChange,
      actionHandler: this.doReindex,
      spinning: this.state.modalSpinning,
      item: this.props.suffix,
      checked: this.state.modalChecked,
      mTitle: "Reindex All Attributes",
      mMsg: "Are you sure you want to reindex all the attribute indexes?",
      mSpinningMsg: "Reindexing Database ...",
      mBtnName: "Reindex"
    }));
  }

} // Property types and defaults

Suffix.propTypes = {
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().string),
  suffix: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().string),
  bename: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().string),
  loadSuffixTree: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().func),
  reload: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().func),
  reloadRefs: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().func),
  reloadIndexes: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().func),
  reloadVLV: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().func),
  reloadAttrEnc: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().func),
  reloadLDIFs: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().func),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().func),
  dbtype: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().string),
  data: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().object),
  attrs: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().array),
  LDIFRows: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().array),
  enableTree: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().func)
};
Suffix.defaultProps = {
  serverId: "",
  suffix: "",
  bename: "",
  dbtype: "",
  data: {},
  attrs: [],
  LDIFRows: []
};

/***/ }),

/***/ "./src/lib/database/suffixConfig.jsx":
/*!*******************************************!*\
  !*** ./src/lib/database/suffixConfig.jsx ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SuffixConfig": () => (/* binding */ SuffixConfig)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }




class SuffixConfig extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  render() {
    var cacheInputs;

    if (this.props.autoTuning) {
      var cacheValue = this.props.cachesize + "  (auto-sized)";
      var cachememValue = this.props.cachememsize + "  (auto-sized)";
      cacheInputs = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.Form, {
        isHorizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Grid, {
        title: "The entry cache size in bytes setting is being auto-sized and is read-only - see Global Database Configuration"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Entry Cache Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextInput, {
        value: cachememValue,
        type: "text",
        id: "cachememsize",
        "aria-describedby": "cachememsize",
        name: "cachememsize",
        isDisabled: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Grid, {
        title: "The entry cache max entries setting is being auto-sized and is read-only - see Global Database Configuration"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Entry Cache Max Entries"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextInput, {
        value: cacheValue,
        type: "text",
        id: "cachesize",
        "aria-describedby": "cachesize",
        name: "cachesize",
        isDisabled: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Grid, {
        title: "The available memory space in bytes for the DN cache. The DN cache is similar to the entry cache for a database, only its table stores only the entry ID and the entry DN (nsslapd-dncachememsize)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.GridItem, {
        className: "ds-label",
        span: 3
      }, "DN Cache Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextInput, {
        value: this.props.dncachememsize,
        type: "number",
        id: "dncachememsize",
        "aria-describedby": "dncachememsize",
        name: "dncachememsize",
        onChange: (str, e) => {
          this.props.handleChange(e);
        }
      }))));
    } else {
      cacheInputs = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.Form, {
        isHorizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Grid, {
        title: "The size for the available memory space in bytes for the entry cache (nsslapd-cachememsize)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.GridItem, {
        className: "ds-label",
        span: 4
      }, "Entry Cache Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.GridItem, {
        span: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextInput, {
        value: this.props.cachememsize,
        type: "number",
        id: "cachememsize",
        "aria-describedby": "cachememsize",
        name: "cachememsize",
        onChange: (str, e) => {
          this.props.handleChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Grid, {
        title: "The number of entries to keep in the entry cache, use'-1' for unlimited (nsslapd-cachesize)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.GridItem, {
        className: "ds-label",
        span: 4
      }, "Entry Cache Max Entries"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.GridItem, {
        span: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextInput, {
        value: this.props.cachesize,
        type: "number",
        id: "cachesize",
        "aria-describedby": "cachesize",
        name: "cachesize",
        onChange: (str, e) => {
          this.props.handleChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Grid, {
        title: "the available memory space in bytes for the DN cache. The DN cache is similar to the entry cache for a database, only its table stores only the entry ID and the entry DN (nsslapd-dncachememsize)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.GridItem, {
        className: "ds-label",
        span: 4
      }, "DN Cache Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.GridItem, {
        span: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextInput, {
        value: this.props.dncachememsize,
        type: "number",
        id: "dncachememsize",
        "aria-describedby": "dncachememsize",
        name: "dncachememsize",
        onChange: (str, e) => {
          this.props.handleChange(e);
        }
      }))));
    }

    var saveBtnName = "Save Configuration";
    var extraPrimaryProps = {};

    if (this.props.saving) {
      saveBtnName = "Saving ...";
      extraPrimaryProps.spinnerAriaValueText = "saving";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-lg"
    }, cacheInputs, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Grid, {
      className: "ds-margin-top-lg",
      title: "Set the backend type.  Warning, changing this setting could lead to unexpected database behavior."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Backend State"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.FormSelect, {
      id: "dbstate",
      value: this.props.dbstate,
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      value: "backend",
      label: "Backend"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      value: "disabled",
      label: "Disabled"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      value: "referral",
      label: "Referral"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      value: "referral on update",
      label: "Referral On Update"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Grid, {
      title: "Put database in Read-Only mode (nsslapd-readonly)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Checkbox, {
      label: "Database Read-Only Mode",
      id: "readOnly",
      isChecked: this.props.readOnly,
      onChange: (checked, e) => {
        this.props.handleChange(e);
      },
      "aria-label": "send ref"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Grid, {
      title: "Block unindexed searches on this suffix (nsslapd-require-index)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Checkbox, {
      label: "Block Unindexed Searches",
      id: "requireIndex",
      isChecked: this.props.requireIndex,
      onChange: (checked, e) => {
        this.props.handleChange(e);
      },
      "aria-label": "requireIndex"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, _extends({
      className: "ds-margin-top-lg",
      onClick: this.props.saveHandler,
      variant: "primary",
      isLoading: this.props.saving,
      spinnerAriaValueText: this.props.saving ? "Saving" : undefined
    }, extraPrimaryProps, {
      isDisabled: this.props.saveBtnDisabled
    }), saveBtnName)));
  }

} // Property types and defaults

SuffixConfig.propTypes = {
  cachememsize: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
  cachesize: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
  dncachememsize: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
  readOnly: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
  requireIndex: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
  autoTuning: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
  handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func),
  saveHandler: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func)
};
SuffixConfig.defaultProps = {
  cachememsize: "",
  cachesize: "",
  dncachememsize: "",
  readOnly: false,
  requireIndex: false,
  autoTuning: false
};

/***/ }),

/***/ "./src/lib/database/vlvIndexes.jsx":
/*!*****************************************!*\
  !*** ./src/lib/database/vlvIndexes.jsx ***!
  \*****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "VLVIndexes": () => (/* binding */ VLVIndexes)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./databaseTables.jsx */ "./src/lib/database/databaseTables.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_20__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }








class VLVIndexes extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "onSelectToggle", (isExpanded, toggleId) => {
      this.setState({
        [toggleId]: isExpanded
      });
    });

    _defineProperty(this, "onSelectClear", item => event => {
      this.setState({
        sortValue: [],
        isVlvSortIndexSelectOpen: false
      });
    });

    this.state = {
      vlvItems: [],
      showVLVModal: false,
      showDeleteConfirm: false,
      showReindexConfirm: false,
      isVlvSortIndexSelectOpen: false,
      saving: false,
      saveBtnDisabled: true,
      updating: false,
      modalSpinning: false,
      modalChecked: false,
      showCreateSortIndex: false,
      showDeleteSortIndexConfirm: false,
      createIndexParent: "",
      deleteIndexParent: "",
      deleteIndexName: "",
      deleteVLVName: "",
      errObj: {},
      vlvName: "",
      vlvBase: "",
      vlvScope: "subtree",
      vlvFilter: "",
      vlvSortList: [],
      _vlvName: "",
      _vlvBase: "",
      _vlvScope: "",
      _vlvFilter: "",
      _vlvSortList: []
    }; // Create VLV Modal

    this.showVLVModal = this.showVLVModal.bind(this);
    this.closeVLVModal = this.closeVLVModal.bind(this);
    this.handleModalChange = this.handleModalChange.bind(this);
    this.handleVLVChange = this.handleVLVChange.bind(this);
    this.saveVLV = this.saveVLV.bind(this);
    this.deleteVLV = this.deleteVLV.bind(this);
    this.reindexVLV = this.reindexVLV.bind(this);
    this.showDeleteConfirm = this.showDeleteConfirm.bind(this);
    this.closeDeleteConfirm = this.closeDeleteConfirm.bind(this);
    this.showReindexConfirm = this.showReindexConfirm.bind(this);
    this.closeReindexConfirm = this.closeReindexConfirm.bind(this); // Select typeahead

    this.onSelectToggle = this.onSelectToggle.bind(this);
    this.onSelectClear = this.onSelectClear.bind(this);
    this.deleteSortIndex = this.deleteSortIndex.bind(this);
    this.createSortIndex = this.createSortIndex.bind(this); // Sort index

    this.showCreateSortIndex = this.showCreateSortIndex.bind(this);
    this.closeCreateSortIndex = this.closeCreateSortIndex.bind(this);
    this.showDeleteSortIndexConfirm = this.showDeleteSortIndexConfirm.bind(this);
    this.closeDeleteSortIndexConfirm = this.closeDeleteSortIndexConfirm.bind(this);
  } //
  // VLV index functions
  //


  showVLVModal() {
    this.setState({
      showVLVModal: true,
      errObj: {},
      vlvName: "",
      vlvBase: "",
      vlvScope: "subtree",
      vlvFilter: "",
      vlvSortList: [],
      saving: false
    });
  }

  closeVLVModal() {
    this.setState({
      showVLVModal: false
    });
  }

  handleVLVChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var valueErr = false;
    var errObj = this.state.errObj;
    var attr = e.target.id;
    var saveBtnDisabled = false;
    var vlvCreateAttrs = ['vlvName', 'vlvBase', 'vlvFilter'];

    for (var _i = 0, _vlvCreateAttrs = vlvCreateAttrs; _i < _vlvCreateAttrs.length; _i++) {
      var createAttr = _vlvCreateAttrs[_i];

      if (attr != createAttr && this.state[createAttr] == "") {
        saveBtnDisabled = true;
      }
    }

    if (value == "") {
      valueErr = true;
      saveBtnDisabled = true;
    }

    errObj[e.target.id] = valueErr;
    this.setState({
      [e.target.id]: value,
      errObj: errObj,
      saveBtnDisabled: saveBtnDisabled
    });
  }

  handleModalChange(e) {
    // Basic handler, no error checking
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [e.target.id]: value
    });
  }

  getScopeVal(scope) {
    var mapping = {
      subtree: '2',
      one: '1',
      base: '0'
    };
    return mapping[scope];
  }

  showCreateSortIndex(parent) {
    this.setState({
      showCreateSortIndex: true,
      createIndexParent: parent
    });
  }

  closeCreateSortIndex() {
    this.setState({
      showCreateSortIndex: false,
      createIndexParent: ""
    });
  }

  createSortIndex(index) {
    var index_value = index.join(' ');
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "vlv-index", "add-index", "--parent-name=" + this.state.createIndexParent, "--index-name=" + this.state.createIndexParent + " - " + index_value, "--sort=" + index_value, this.props.suffix];

    if (this.state.reindexVLV) {
      cmd.push("--index-it");
    }

    this.setState({
      updating: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("createSortIndex", "Add index", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.closeCreateSortIndex();
      this.props.reload(this.props.suffix);
      this.props.addNotification("success", "Successfully added VLV sort index");
      this.setState({
        updating: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.closeCreateSortIndex();
      this.props.reload(this.props.suffix);
      this.props.addNotification("error", "Failed to add VLV index entry - ".concat(errMsg.desc));
      this.setState({
        updating: false
      });
    });
  }

  showDeleteSortIndexConfirm(parent, name) {
    this.setState({
      showDeleteSortIndexConfirm: true,
      deleteIndexParent: parent,
      deleteIndexName: name
    });
  }

  closeDeleteSortIndexConfirm() {
    this.setState({
      showDeleteSortIndexConfirm: false,
      deleteIndexParent: "",
      deleteIndexName: ""
    });
  }

  deleteSortIndex() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "vlv-index", "del-index", "--parent-name=" + this.state.deleteIndexParent, "--sort=" + this.state.deleteIndexName, this.props.suffix];
    this.setState({
      updating: true,
      modalSpinning: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("deleteSortIndex", "delete index", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.closeDeleteSortIndexConfirm();
      this.props.reload(this.props.suffix);
      this.props.addNotification("success", "Successfully removed VLV sort index");
      this.setState({
        updating: false,
        modalSpinning: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.closeDeleteSortIndexConfirm();
      this.props.reload(this.props.suffix);
      this.props.addNotification("error", "Failed to delete VLV sort index - ".concat(errMsg.desc));
      this.setState({
        updating: false,
        modalSpinning: false
      });
    });
  }

  saveVLV() {
    this.setState({
      saving: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "vlv-index", "add-search", "--name=" + this.state.vlvName, "--search-base=" + this.state.vlvBase, "--search-filter=" + this.state.vlvFilter, "--search-scope=" + this.getScopeVal(this.state.vlvScope), this.props.suffix];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("saveVLV", "Add vlv search", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.closeVLVModal();
      this.props.reload(this.props.suffix);
      this.props.addNotification("success", "Successfully added VLV search: " + this.state.vlvName);
      this.setState({
        saving: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.closeVLVModal();
      this.props.addNotification("error", "Failed create VLV search entry - ".concat(errMsg.desc));
      this.setState({
        saving: false
      });
    });
  }

  showDeleteConfirm(name) {
    this.setState({
      showDeleteConfirm: true,
      deleteVLVName: name
    });
  }

  closeDeleteConfirm() {
    this.setState({
      showDeleteConfirm: false
    });
  }

  deleteVLV() {
    this.setState({
      modalSpinning: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "vlv-index", "del-search", "--name=" + this.state.deleteVLVName, this.props.suffix];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("deleteVLV", "delete LV search and indexes", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload(this.props.suffix);
      this.props.addNotification("success", "Successfully deleted VLV index");
      this.setState({
        modalSpinning: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.reload(this.props.suffix);
      this.props.addNotification("error", "Failed to deletre VLV index - ".concat(errMsg.desc));
      this.setState({
        modalSpinning: false
      });
    });
  }

  showReindexConfirm(name) {
    this.setState({
      showReindexConfirm: true,
      reindexVLVName: name
    });
  }

  closeReindexConfirm() {
    this.setState({
      showReindexConfirm: false
    });
  }

  reindexVLV() {
    this.setState({
      modalSpinning: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "vlv-index", "reindex", "--parent-name=" + this.state.reindexVLVName, this.props.suffix];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("reindexVLV", "reindex VLV indexes", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload(this.props.suffix);
      this.props.addNotification("success", "Successfully completed VLV indexing");
      this.setState({
        modalSpinning: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.reload(this.props.suffix);
      this.props.addNotification("error", "Failed to index VLV index - ".concat(errMsg.desc));
      this.setState({
        modalSpinning: false
      });
    });
  }

  render() {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-tab-table ds-margin-bottom-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_databaseTables_jsx__WEBPACK_IMPORTED_MODULE_3__.VLVTable, {
      rows: this.props.vlvItems,
      key: this.props.vlvItems,
      deleteFunc: this.showDeleteConfirm,
      reindexFunc: this.showReindexConfirm,
      deleteSortFunc: this.showDeleteSortIndexConfirm,
      addSortFunc: this.showCreateSortIndex,
      updating: this.state.updating
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, {
      variant: "primary",
      onClick: this.showVLVModal
    }, "Create VLV Index"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(AddVLVIndexModal, {
      showModal: this.state.showCreateSortIndex,
      closeHandler: this.closeCreateSortIndex,
      handleChange: this.handleModalChange,
      saveHandler: this.createSortIndex,
      onSelectToggle: this.onSelectToggle,
      onSelectClear: this.onSelectClear,
      handleTypeaheadChange: this.handleTypeaheadChange,
      attrs: this.props.attrs,
      reindexVLV: this.state.reindexVLV,
      vlvSortList: this.state.vlvSortList,
      saving: this.state.saving || this.state.updating,
      saveBtnDisabled: this.state.saveBtnDisabled
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(AddVLVModal, {
      showModal: this.state.showVLVModal,
      closeHandler: this.closeVLVModal,
      handleChange: this.handleVLVChange,
      saveHandler: this.saveVLV,
      error: this.state.errObj,
      vlvName: this.state.vlvName,
      vlvBase: this.state.vlvBase,
      vlvScope: this.state.vlvScope,
      vlvFilter: this.state.vlvFilter,
      saving: this.state.saving,
      saveBtnDisabled: this.state.saveBtnDisabled
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showDeleteConfirm,
      closeHandler: this.closeDeleteConfirm,
      handleChange: this.handleModalChange,
      actionHandler: this.deleteVLV,
      spinning: this.state.modalSpinning,
      item: this.state.deleteVLVName,
      checked: this.state.modalChecked,
      mTitle: "Delete VLV Index",
      mMsg: "Are you sure you want to delete this VLV index??",
      mSpinningMsg: "Deleting Index ...",
      mBtnName: "Delete Index"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showReindexConfirm,
      closeHandler: this.closeReindexConfirm,
      handleChange: this.handleModalChange,
      actionHandler: this.reindexVLV,
      spinning: this.state.modalSpinning,
      item: this.state.reindexVLVName,
      checked: this.state.modalChecked,
      mTitle: "Reindex VLV Index",
      mMsg: "Are you sure you want to reindex this VLV index??",
      mSpinningMsg: "Reindex ...",
      mBtnName: "Reindex"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showDeleteSortIndexConfirm,
      closeHandler: this.closeDeleteSortIndexConfirm,
      handleChange: this.handleModalChange,
      actionHandler: this.deleteSortIndex,
      spinning: this.state.modalSpinning,
      item: this.state.deleteIndexName,
      checked: this.state.modalChecked,
      mTitle: "Delete VLV Sort Index",
      mMsg: "Are you really sure you want to delete this sorting index?",
      mSpinningMsg: "Deleting Index ...",
      mBtnName: "Delete Index"
    }));
  }

} // Add Sort Index modal

class AddVLVIndexModal extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      sortValue: [],
      isVLVSortOpen: false
    }; // VLV Sort indexes

    this.onVLVSortToggle = isVLVSortOpen => {
      this.setState({
        isVLVSortOpen
      });
    };

    this.onVLVSortClear = () => {
      this.setState({
        sortValue: [],
        isVLVSortOpen: false
      });
    };

    this.handleTypeaheadChange = this.handleTypeaheadChange.bind(this);
  }

  handleTypeaheadChange(e, selection) {
    if (this.state.sortValue.includes(selection)) {
      this.setState(prevState => ({
        sortValue: prevState.sortValue.filter(item => item !== selection),
        isVLVSortOpen: false
      }));
    } else {
      this.setState(prevState => ({
        sortValue: [...prevState.sortValue, selection],
        isVLVSortOpen: false
      }));
    }
  }

  render() {
    var _this$props = this.props,
        showModal = _this$props.showModal,
        handleChange = _this$props.handleChange,
        attrs = _this$props.attrs,
        saving = _this$props.saving;
    var saveBtnName = "Create Sort Index";
    var extraPrimaryProps = {};

    if (this.props.saving) {
      saveBtnName = "Creating Index ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ModalVariant.medium,
      "aria-labelledby": "ds-modal",
      title: "Create VLV Sort Index",
      isOpen: showModal,
      onClose: this.props.closeHandler,
      className: this.state.isVLVSortOpen ? "ds-modal-select-tall" : "ds-modal-select",
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, _extends({
        key: "confirm",
        variant: "primary",
        onClick: () => {
          this.props.saveHandler(this.state.sortValue);
        },
        isLoading: saving,
        spinnerAriaValueText: saving ? "Saving" : undefined
      }, extraPrimaryProps, {
        isDisabled: this.state.sortValue.length == 0
      }), saveBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.props.closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 12
    }, "Build a list of attributes to form the \"Sort\" index"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type an attribute names to create a sort index",
      className: "ds-margin-top-lg",
      onToggle: this.onVLVSortToggle,
      onClear: this.onVLVSortClear,
      onSelect: this.handleTypeaheadChange,
      maxHeight: 1000,
      selections: this.state.sortValue,
      isOpen: this.state.isVLVSortOpen,
      "aria-labelledby": "typeAhead-vlv-sort-index",
      placeholderText: "Type an attribute name ...",
      noResultsFoundText: "There are no matching entries"
    }, attrs.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.SelectOption, {
      key: index,
      value: attr
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-margin-top-xlg",
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Checkbox, {
      id: "reindexVLV",
      isChecked: this.props.reindexVLV,
      onChange: (checked, e) => {
        handleChange(e);
      },
      label: "Reindex After Saving"
    })))));
  }

} // Add modal


class AddVLVModal extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  render() {
    var _this$props2 = this.props,
        showModal = _this$props2.showModal,
        handleChange = _this$props2.handleChange,
        saveHandler = _this$props2.saveHandler,
        closeHandler = _this$props2.closeHandler,
        error = _this$props2.error,
        saving = _this$props2.saving;
    var saveBtnName = "Save VLV Index";
    var extraPrimaryProps = {};

    if (saving) {
      saveBtnName = "Saving Index ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ModalVariant.medium,
      "aria-labelledby": "ds-modal",
      title: "Create VLV Search Index",
      isOpen: showModal,
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, _extends({
        key: "confirm",
        variant: "primary",
        onClick: saveHandler,
        isLoading: saving,
        spinnerAriaValueText: saving ? "Saving" : undefined
      }, extraPrimaryProps, {
        isDisabled: this.props.saveBtnDisabled
      }), saveBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Form, {
      isHorizontal: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 2
    }, "VLV Index Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      value: this.props.vlvName,
      type: "text",
      id: "vlvName",
      "aria-describedby": "vlvName",
      name: "vlvName",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.vlvName ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 2
    }, "Search Base"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      value: this.props.vlvBase,
      type: "text",
      id: "vlvBase",
      "aria-describedby": "vlvBase",
      name: "vlvBase",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.vlvBase ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 2
    }, "Search Filter"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      type: "text",
      id: "vlvFilter",
      "aria-describedby": "vlvFilter",
      name: "vlvFilter",
      onChange: (str, e) => {
        handleChange(e);
      },
      value: this.props.filter,
      validated: error.vlvFilter ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 2
    }, "Search Scope"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.FormSelect, {
      value: this.props.vlvScope,
      onChange: (value, event) => {
        handleChange(event);
      },
      id: "vlvScope",
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.FormSelectOption, {
      key: "0",
      value: "subtree",
      label: "subtree"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.FormSelectOption, {
      key: "1",
      value: "one",
      label: "one"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.FormSelectOption, {
      key: "2",
      value: "base",
      label: "base"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      offset: 1,
      className: "ds-margin-top-lg ds-margin-bottom",
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.TextVariants.h4
    }, "After creating this VLV Search entry you can go to the table and add VLV Sort Indexes to this VLV Search.  After adding the Sort Indexes you will need to ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("i", null, "reindex"), " the VLV Index to make it active."))))));
  }

} // Property types and defaults


VLVIndexes.propTypes = {
  suffix: (prop_types__WEBPACK_IMPORTED_MODULE_20___default().string),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_20___default().string),
  vlvItems: (prop_types__WEBPACK_IMPORTED_MODULE_20___default().array),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_20___default().func),
  attrs: (prop_types__WEBPACK_IMPORTED_MODULE_20___default().array),
  reload: (prop_types__WEBPACK_IMPORTED_MODULE_20___default().func)
};
VLVIndexes.defaultProps = {
  suffix: "",
  serverId: "",
  vlvItems: [],
  attrs: []
};
AddVLVModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_20___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_20___default().func),
  handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_20___default().func),
  handleSortChange: (prop_types__WEBPACK_IMPORTED_MODULE_20___default().func),
  saveHandler: (prop_types__WEBPACK_IMPORTED_MODULE_20___default().func),
  error: (prop_types__WEBPACK_IMPORTED_MODULE_20___default().object),
  attrs: (prop_types__WEBPACK_IMPORTED_MODULE_20___default().array),
  vlvName: (prop_types__WEBPACK_IMPORTED_MODULE_20___default().string),
  vlvBase: (prop_types__WEBPACK_IMPORTED_MODULE_20___default().string),
  vlvScope: (prop_types__WEBPACK_IMPORTED_MODULE_20___default().string),
  vlvFilter: (prop_types__WEBPACK_IMPORTED_MODULE_20___default().string),
  vlvSortList: (prop_types__WEBPACK_IMPORTED_MODULE_20___default().array)
};
AddVLVModal.defaultProps = {
  showModal: false,
  error: {},
  attrs: [],
  vlvName: "",
  vlvBase: "",
  vlvScope: "",
  vlvFilter: "",
  vlvSortList: []
};

/***/ }),

/***/ "./src/lib/ldap_editor/lib/aciParser.jsx":
/*!***********************************************!*\
  !*** ./src/lib/ldap_editor/lib/aciParser.jsx ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getAciAttributes": () => (/* binding */ getAciAttributes),
/* harmony export */   "getAciActualName": () => (/* binding */ getAciActualName),
/* harmony export */   "isAciPermissionAllow": () => (/* binding */ isAciPermissionAllow)
/* harmony export */ });
// CODE TAKEN FROM 389-ds Console
// ADAPTED TO JAVASCRIPT by tmihinto@redhat.com

/** BEGIN COPYRIGHT BLOCK
 * Copyright (C) 2001 Sun Microsystems, Inc.  Used by permission.
 * Copyright (C) 2005 Red Hat, Inc.
 * All rights reserved.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation version
 * 2.1 of the License.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 * END COPYRIGHT BLOCK **/
// TODO: Update these comments taken with 389-ds Console code!!!

/**
 * A utility class primarily to parse ACI strings
 * into <name><operator><value> triplets.
 * This class is used internally by ACIEditor and ACIManager.
 */

/**
     * Scans an aci String, breaks it up into ACIAttributes
     * which are <name><operator><value> triplets.
     *
     * @return Vector of ACIAttributes
     */
function getAciAttributes(aci) {
  var startIndex = 0;
  var aciAttributes = [];
  var length = aci.length;

  for (var i = 0; i < length; i++) {
    switch (aci.charAt(i)) {
      case ' ': // skip over space

      case '\n':
        // skip over CR
        break;

      case '(':
        i++;
      // intentional drop through to default
      // eslint-disable-next-line no-fallthrough

      default:
        i = parseAciName(aci, i, aciAttributes, startIndex);
        startIndex = i;
        break;
    }

    if (i < 0) {
      i = -i;
      console.log('ACI ERROR: cannot parse at index ' + i);
      console.log(aci);
      var spaces = '';

      for (var x = 0; x < i; x++) {
        // console.log(' ');
        spaces += ' ';
      } // console.log('^');


      console.log("".concat(spaces, "^"));
      break; // for loop
    }
  }

  return aciAttributes;
}

function parseAciName(aci, i, aciAttributes, startIndex) {
  var length = aci.length;
  var aciName = ''; // <i> should be pointing to NAME
  // where <aci> is of the form: NAME<OPERATOR>VALUE

  var isNameFound = false;

  for (; i < length; i++) {
    var x = aci.charAt(i);

    switch (x) {
      case '\n':
        // skip over CR
        break;

      case '(': // skip over leading paren

      case ' ':
        // skip over leading space
        if (aciName.length > 0) {
          isNameFound = true;
        }

        break;

      case '|': // operators

      case '<':
      case '>':
      case '!':
      case '=':
        isNameFound = true;
        break;

      case ')':
        return i;

      case ';':
        break;

      default:
        aciName += x;
        break;
    }

    if (isNameFound) {
      if (aciName.length > 0) {
        var nameString = aciName.toString();

        if (nameString.toLowerCase() === 'and' || nameString.toLowerCase() === 'or') {
          //     public ACIAttribute(String name, String operator, String value, int startIndex, int endIndex)
          //                         ACIAttribute aciAttr = new ACIAttribute("", nameString, "", startIndex, i);
          var aciAttr = {
            aciName: '',
            operator: nameString,
            value: '',
            startIndex: startIndex,
            endIndex: i
          };
          aciAttributes.push(aciAttr);
          startIndex = i + 1;
        } else {
          if (aci.charAt(i) === ' ' || aci.charAt(i) === '(') {
            i++;
          }

          i = parseAciValue(aci, i, nameString, aciAttributes, startIndex);
          startIndex = i;
        }

        if (i > 0) {
          // no error, continue with next NAME/VALUE pair
          isNameFound = false;
          aciName = null;
          aciName = '';
          i--;
          continue; // for loop
        }
      }

      return i; // error, should be negative
    }
  }

  return i;
}

function parseAciValue(aci, i, aciName, aciAttributes, startIndex) {
  var length = aci.length;
  var value = '';
  var operator = ''; // <i> should be pointing to OPERATOR
  // where <aci> is of the form: NAME<OPERATOR>VALUE

  var isValueFound = false;
  var isQuoteOpen = false;
  var countParenthesis = 0;

  for (; i < length; i++) {
    var x = aci.charAt(i);

    switch (x) {
      case '\n':
        // skip over CR
        break;

      case '|': //

      case '<': //

      case '>': // skip over operators

      case '!': //

      case '=':
        //
        if (value.length > 0) {
          value += x;
        } else {
          operator += x;
        }

        break;

      case ' ':
        // skip over leading space
        if (value.length > 0) {
          value += x;
        }

        break;

      case '"':
        value += x;
        isQuoteOpen = !isQuoteOpen;

        if (isQuoteOpen === false) {
          isValueFound = true;
        }

        break;

      case '(':
        if (isQuoteOpen === false) {
          countParenthesis++;
        }

        value += x;
        break;

      case ')':
        if (countParenthesis > 0 || isQuoteOpen) {
          value += x;
        }

        if (!isQuoteOpen) {
          countParenthesis--;

          if (countParenthesis <= 0) {
            isValueFound = true;
          }
        }

        break;

      case ';':
        isValueFound = true;
        break;

      default:
        value += x;
        break;
    }

    if (isValueFound) {
      var len = value.length;

      if (len > 0) {
        var v = value.toString();

        if (v.endsWith('"')) {
          v = v.substring(0, v.length - 1);
        }

        if (v.startsWith('"')) {
          v = v.substring(1);
        } //     public ACIAttribute(String name, String operator, String value, int startIndex, int endIndex)
        // ACIAttribute aciAttr = new ACIAttribute(aciName, operator.toString(), v, startIndex, i);
        // aciAttr = new ACIAttribute(aciName, operator.toString(), v, startIndex, i);


        var aciAttr = {
          aciName: aciName,
          operator: operator.toString(),
          value: v,
          startIndex: startIndex,
          endIndex: i
        };
        aciAttributes.push(aciAttr);
        return i + 1;
      }

      break; // exit for loop, error
    }
  }

  return -i; // error
}

function getAciActualName(fullAci) {
  var aciData = getAciAttributes(fullAci);
  var aciName = aciData.filter(aci => aci.aciName === 'acl');
  var aciActualName = aciName[0].value;
  return aciActualName;
}
function isAciPermissionAllow(fullAci) {
  var aciData = getAciAttributes(fullAci);
  var aciAllow = aciData.filter(aci => aci.aciName === 'allow');
  var aciDeny = aciData.filter(aci => aci.aciName === 'deny');
  return aciAllow.length > 0;
}

/***/ }),

/***/ "./src/lib/ldap_editor/lib/constants.jsx":
/*!***********************************************!*\
  !*** ./src/lib/ldap_editor/lib/constants.jsx ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ENTRY_MENU": () => (/* binding */ ENTRY_MENU),
/* harmony export */   "LDAP_PING_TIME_LIMIT": () => (/* binding */ LDAP_PING_TIME_LIMIT),
/* harmony export */   "MIN_PER_PAGE": () => (/* binding */ MIN_PER_PAGE),
/* harmony export */   "BINARY_ATTRIBUTES": () => (/* binding */ BINARY_ATTRIBUTES),
/* harmony export */   "WEB_SOCKET_MAX_PAYLOAD": () => (/* binding */ WEB_SOCKET_MAX_PAYLOAD),
/* harmony export */   "LDIF_MAX_CHAR_PER_LINE": () => (/* binding */ LDIF_MAX_CHAR_PER_LINE),
/* harmony export */   "LDAP_OPERATIONS": () => (/* binding */ LDAP_OPERATIONS),
/* harmony export */   "ENTRY_TYPE": () => (/* binding */ ENTRY_TYPE),
/* harmony export */   "INET_ORG_ATTRS": () => (/* binding */ INET_ORG_ATTRS),
/* harmony export */   "ORG_PERSON_ATTRS": () => (/* binding */ ORG_PERSON_ATTRS),
/* harmony export */   "PERSON_REQ_ATTRS": () => (/* binding */ PERSON_REQ_ATTRS),
/* harmony export */   "PERSON_OPT_ATTRS": () => (/* binding */ PERSON_OPT_ATTRS),
/* harmony export */   "SINGLE_VALUED_ATTRS": () => (/* binding */ SINGLE_VALUED_ATTRS),
/* harmony export */   "OU_REQ_ATTRS": () => (/* binding */ OU_REQ_ATTRS),
/* harmony export */   "OU_OPT_ATTRS": () => (/* binding */ OU_OPT_ATTRS)
/* harmony export */ });
// General menu
// Entry menu
var ENTRY_MENU = {
  search: 'search',
  edit: 'edit',
  new: 'new',
  rename: 'rename',
  acis: 'acis',
  cos: 'cos',
  delete: 'delete',
  refresh: 'refresh'
}; // Time limit for an LDAP search request.

var LDAP_PING_TIME_LIMIT = 5; // In seconds.
// Minimum number of items per page in a Pagination.

var MIN_PER_PAGE = 10; // Binary attributes.

var BINARY_ATTRIBUTES = ['jpegphoto', 'usercertificate', 'usercertificate;binary', 'cacertificate', 'cacertificate;binary', 'nssymmetrickey']; // Max size allowed for the Cockpit Websocket:
// https://github.com/cockpit-project/cockpit/blob/dee6324d037f3b8961d1b38960b4226c7e473abf/src/websocket/websocketconnection.c#L154
// export const WEB_SOCKET_MAX_PAYLOAD = 128 * 1024; // 128 KB.

var WEB_SOCKET_MAX_PAYLOAD = 1280 * 1024; // export const ENCODED_VAL_SEP = 'BASE_64_ENCODED_VALUE=';
// LDIF formatting.
// https://access.redhat.com/documentation/en-us/red_hat_directory_server/11/html/administration_guide/ldif_file_format-continuing_lines_in_ldif

var LDIF_MAX_CHAR_PER_LINE = 78; // LDAP operations.

var LDAP_OPERATIONS = {
  add: 'add',
  delete: 'delete',
  replace: 'replace'
}; // Entry type.

var ENTRY_TYPE = {
  user: 'USER',
  ou: 'OU',
  other: 'OTHER'
}; // Attributes - User.

var INET_ORG_ATTRS = ['audio', 'businessCategory', 'carLicense', 'departmentNumber', 'displayName', 'employeeNumber', 'employeeType', 'givenName', 'homePhone', 'homePostalAddress', 'initials', 'jpegPhoto', 'labeledURI', 'mail', 'manager', 'mobile', 'o', 'pager', 'photo', 'roomNumber', 'secretary', 'uid', 'userCertificate', 'x500UniqueIdentifier', 'preferredLanguage', 'userSMIMECertificate', 'userPKCS12'];
var ORG_PERSON_ATTRS = ['title', 'x121Address', 'registeredAddress', 'destinationIndicator', 'preferredDeliveryMethod', 'telexNumber', 'teletexTerminalIdentifier', 'internationalISDNNumber', 'facsimileTelephoneNumber', 'street', 'postOfficeBox', 'postalCode', 'postalAddress', 'physicalDeliveryOfficeName', 'ou', 'st', 'l'];
var PERSON_REQ_ATTRS = ['cn', 'sn'];
var PERSON_OPT_ATTRS = ['userPassword', 'telephoneNumber', 'seeAlso', 'description'];
var SINGLE_VALUED_ATTRS = ['preferredDeliveryMethod', 'displayName', 'employeeNumber', 'preferredLanguage']; // Attributes - Organizational Unit.

var OU_REQ_ATTRS = ['ou'];
var OU_OPT_ATTRS = ['businessCategory', 'description', 'destinationIndicator', 'facsimileTelephoneNumber', 'internationalISDNNumber', 'l', 'physicalDeliveryOfficeName', 'postalAddress', 'postalCode', 'postOfficeBox', 'preferredDeliveryMethod', 'registeredAddress', 'searchGuide', 'seeAlso', 'st', 'street', 'telephoneNumber', 'teletexTerminalIdentifier', 'telexNumber', 'userPassword', 'x121Address'];

/***/ }),

/***/ "./src/lib/ldap_editor/lib/editableTable.jsx":
/*!***************************************************!*\
  !*** ./src/lib/ldap_editor/lib/editableTable.jsx ***!
  \***************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Label/Label.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Popover/Popover.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/InputGroup/InputGroup.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Radio/Radio.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/Alert.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FileUpload/FileUpload.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/utils.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/EditableTextCell.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/wrappable.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Table.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableTypes.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Header.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Body.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/info-circle-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/eye-slash-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/eye-icon.js");
/* harmony import */ var _constants_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants.jsx */ "./src/lib/ldap_editor/lib/constants.jsx");
/* harmony import */ var _utils_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils.jsx */ "./src/lib/ldap_editor/lib/utils.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_23__);
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }









class EditableTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(_props) {
    super(_props);

    _defineProperty(this, "handleTextInputChange", (newValue, evt, rowIndex, cellIndex) => {
      var newRows = [...this.state.tableRows];
      newRows[rowIndex].cells[cellIndex].props.editableValue = newValue;
      this.setState({
        tableRows: newRows
      });
    });

    _defineProperty(this, "updateEditableRows", (evt, type, isEditable, rowIndex, validationErrors) => {
      // Do not allow to update the DN in the quick update mode.
      // Show a modal dialog to suggest to use the Renaming Wizard.
      if (this.props.quickUpdate && type === 'edit') {
        // DN row.
        if (rowIndex === 0) {
          this.handleDnModalToggle();
          return;
        } // RDN row.


        var attrCell = this.state.tableRows[rowIndex].cells[0];
        var valCell = this.state.tableRows[rowIndex].cells[1];
        var myAttr = attrCell.props.value.toLowerCase();
        var myVal = valCell.props.value;
        var rdnInfo = (0,_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.getRdnInfo)(this.props.wizardEntryDn);

        if (myAttr === rdnInfo.rdnAttr.toLowerCase() && myVal === rdnInfo.rdnVal) {
          this.handleDnModalToggle();
          return;
        }
      } // Handle the edition of special attributes.


      if (type === 'edit') {
        var myCellData = this.state.tableRows[rowIndex].cells[0];

        var _myAttr = myCellData.props.value.toLowerCase();

        if (_myAttr === 'userpassword') {
          this.setState({
            isPasswordField: true,
            pwdRowIndex: rowIndex
          });
          return;
        } else if (_constants_jsx__WEBPACK_IMPORTED_MODULE_1__.BINARY_ATTRIBUTES.includes(_myAttr)) {
          this.setState({
            showFileUri: true,
            attrIsJpegPhoto: _myAttr === 'jpegphoto',
            currentRowIndex: rowIndex
          });
          return;
        }
      }

      var newRows = [...this.state.tableRows];

      if (validationErrors && Object.keys(validationErrors).length) {
        newRows[rowIndex] = (0,_patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.validateCellEdits)(newRows[rowIndex], type, validationErrors);
        this.setState({
          tableRows: newRows
        });
        return;
      }

      if (type === 'cancel') {
        newRows[rowIndex] = (0,_patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.cancelCellEdits)(newRows[rowIndex]);
        this.setState({
          tableRows: newRows
        }); // if (typeof this.props.enableNextStep === 'function') {
        // Check if there is any empty value.

        var foundEmptyValue = newRows.find(el => el.cells[1].props.value === '');
        this.props.enableNextStep(foundEmptyValue === undefined); // }

        return;
      }

      newRows[rowIndex] = (0,_patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.applyCellEdits)(newRows[rowIndex], type);
      this.setState({
        tableRows: newRows
      }, () => {
        // Check if there is any empty value.
        var foundEmptyValue = newRows.find(el => el.cells[1].props.value === '');

        if (foundEmptyValue === undefined) {
          var noEmptyValueCheck = type === 'save'; // Disable the next button on edit ( type='edit' ).

          var namingAttrSet = this.state.namingRowID !== -1;
          var enableNext = noEmptyValueCheck && namingAttrSet;
          this.props.enableNextStep(enableNext);
        } else {
          this.props.enableNextStep(false);
        }

        if (type === 'save') {
          var rowDataToSave = this.buildRowDataToSave();
          this.props.saveCurrentRows(rowDataToSave, this.state.namingRowID);
        }
      });
    });

    _defineProperty(this, "buildRowDataToSave", () => {
      return this.state.tableRows.map(datum => {
        var obj = {
          id: datum.cells[0].props.name,
          attr: datum.cells[0].props.value,
          val: datum.cells[1].props.value,
          namingAttr: datum.namingAttr,
          required: datum.required,
          objectClass: datum.objectClass,
          rowEditValidationRules: [...datum.rowEditValidationRules]
        }; // Save the encoded (base64) value if it's present.

        if (datum.cells[1].props.encodedValue) {
          obj.encodedValue = datum.cells[1].props.encodedValue;
        }

        return obj;
      });
    });

    _defineProperty(this, "hasSingleOccurrence", attributeName => {
      // console.log(`attributeName = ${attributeName}`);
      var nb = 0;

      var _iterator = _createForOfIteratorHelper(this.state.tableRows),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var datum = _step.value;
          var attr = datum.cells[0].props.value;

          if (attr === attributeName) {
            nb++;

            if (nb > 1) {
              return false;
            }
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      return true;
    });

    _defineProperty(this, "generateSingleRow", myData => {
      var attrName = myData.attr;
      var attrId = myData.id;

      if (attrName.toLowerCase() === 'userpassword') {
        return {
          objectClass: myData.obj,
          required: myData.required,
          namingAttr: myData.namingAttr,
          rowEditValidationRules: this.attributeValidationRules,
          cells: [{
            title: (value, rowIndex, cellIndex, props) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_4__.EditableTextCell, {
              value: value,
              rowIndex: rowIndex,
              cellIndex: cellIndex,
              props: props,
              handleTextInputChange: this.handleTextInputChange,
              isDisabled: true,
              inputAriaLabel: attrName
            })),
            props: {
              value: attrName,
              name: attrId
            }
          }, {
            title: (value, rowIndex, cellIndex, props) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_4__.EditableTextCell // isDisabled={myData.isDisabled}
            , {
              value: value !== "" ? "********" : "",
              rowIndex: rowIndex,
              cellIndex: cellIndex,
              props: props,
              handleTextInputChange: this.handleTextInputChange,
              inputAriaLabel: '_' + value // To avoid empty property when value is empty.

            }), value === '' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Label, {
              color: "red",
              icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_6__.InfoCircleIcon, null)
            }, " Empty value! ")),
            props: {
              value: myData.val,
              name: "".concat(attrId, "_val")
            }
          }]
        };
      } else {
        return {
          objectClass: myData.obj,
          required: myData.required,
          namingAttr: myData.namingAttr,
          rowEditValidationRules: this.attributeValidationRules,
          cells: [{
            title: (value, rowIndex, cellIndex, props) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_4__.EditableTextCell, {
              value: value,
              rowIndex: rowIndex,
              cellIndex: cellIndex,
              props: props,
              handleTextInputChange: this.handleTextInputChange,
              isDisabled: true,
              inputAriaLabel: attrName
            }), (attrId === this.state.namingRowID || myData.namingAttr) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Popover, {
              headerContent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, "Naming Attribute"),
              bodyContent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, "This attribute and value are part of the entry's DN and can not be changed except by doing a Rename (modrdn) operation on the entry.")
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("a", {
              href: "#",
              className: "ds-font-size-sm"
            }, "Naming Attribute"))),
            props: {
              value: attrName,
              name: attrId
            }
          }, {
            title: (value, rowIndex, cellIndex, props) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_4__.EditableTextCell // isDisabled={myData.isDisabled}
            , {
              value: value,
              rowIndex: rowIndex,
              cellIndex: cellIndex,
              props: props,
              handleTextInputChange: this.handleTextInputChange,
              inputAriaLabel: '_' + value // To avoid empty property when value is empty.

            }), value === '' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Label, {
              color: "red",
              icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_6__.InfoCircleIcon, null)
            }, " Empty value! ")),
            props: {
              value: myData.val,
              name: "".concat(attrId, "_val")
            }
          }]
        };
      }
    });

    _defineProperty(this, "createTableRows", () => {
      // Update the rows where user can set the values.
      this.setState({
        namingRowID: this.props.namingRowID
      }, () => {
        var tableRows = this.props.editableTableData.map(attrData => {
          return this.generateSingleRow(attrData);
        });
        this.setState({
          tableRows
        });
      });
    });

    _defineProperty(this, "actionResolver", (rowData, _ref) => {
      var rowIndex = _ref.rowIndex;
      var myAttr = rowData.cells[0].props.value;
      var myName = rowData.cells[0].props.name;

      if (myAttr === "dn") {
        // There should not be an actions for the DN
        return [];
      }

      var namingAction = myName === this.state.namingRowID || this.props.disableNamingChange ? [] : this.props.namingAttr && myAttr !== this.props.namingAttr || this.props.namingAttr === "" ? [{
        title: 'Set as Naming Attribute',
        onClick: () => {
          var foundEmptyValue = this.state.tableRows.find(el => el.cells[1].props.value === '');
          this.props.enableNextStep(foundEmptyValue === undefined);
          this.setState({
            namingRowID: myName,
            rdnAttr: myAttr
          }, () => {
            this.props.setNamingRowID(myName);
          });
        }
      }] : [];
      var duplicationAction = this.props.isAttributeSingleValued(myAttr) ? [] : [{
        title: 'Add Another Value',
        onClick: (event, rowId, rowData) => {
          var myData = {
            id: (0,_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.generateUniqueId)(),
            attr: myAttr,
            val: ''
          };
          var tableRows = [...this.state.tableRows];
          var newItem = this.generateSingleRow(myData); // Insert the duplicate item right below the original.

          tableRows.splice(rowIndex + 1, 0, newItem);
          this.setState({
            tableRows
          }, () => {
            var rowDataToSave = this.buildRowDataToSave();
            this.props.saveCurrentRows(rowDataToSave, this.state.namingRowID); // Disable the next step because a duplicated row has no initial value.

            this.props.enableNextStep(false);
          });
        }
      }];
      var removalAction = this.state.tableRows.length === 1 || rowData.namingAttr || (this.props.isAttributeRequired(myAttr) || rowData.required) && this.hasSingleOccurrence(myAttr) ? [] : [{
        title: 'Remove this Row',
        onClick: (event, rowId) => {
          var tableRows = this.state.tableRows.filter(aRow => aRow.cells[0].props.name !== myName);
          this.setState({
            tableRows
          }, () => {
            var rowDataToSave = this.buildRowDataToSave();
            var foundEmptyValue = tableRows.find(el => el.cells[1].props.value === '');
            this.props.enableNextStep(foundEmptyValue === undefined);
            var namingRowID = this.state.namingRowID;

            if (rowId === namingRowID) {
              namingRowID = -1;
              this.props.setNamingRowID(-1);
              this.props.enableNextStep(false);
            }

            this.setState({
              namingRowID
            });
            this.props.saveCurrentRows(rowDataToSave, namingRowID);
          });
        }
      }];
      var nam = namingAction.length > 0;
      var dup = duplicationAction.length > 0;
      var rem = removalAction.length > 0;
      var firstSeparator = nam && (dup || rem) ? [{
        isSeparator: true
      }] : [];
      var secondSeparator = dup && rem ? [{
        isSeparator: true
      }] : [];

      if (this.props.quickUpdate) {
        // Allow some actions in quick update.
        var actions = [];

        if (dup) {
          actions = duplicationAction;

          if (rem) {
            actions.push({
              isSeparator: true
            });
          }
        }

        if (rem) {
          actions.push(removalAction[0]);
        } else {
          actions.push({
            title: 'Required Attribute',
            isDisabled: true
          });
        }

        return actions;
      } else {
        // Full option list
        return [...namingAction, ...firstSeparator, ...duplicationAction, ...secondSeparator, ...removalAction];
      }
    });

    this.attributeValidationRules = [{
      name: 'required',
      validator: value => value.trim() !== '',
      errorText: 'This field is required'
    }];
    this.columns = [{
      title: 'Attribute'
    }, {
      title: 'Value',
      cellTransforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.breakWord]
    }];
    this.state = {
      tableRows: [],
      namingRowID: 0,
      isPasswordField: false,
      showPassword: false,
      pwdValue: "",
      pwdRowIndex: -1,
      fileValue: null,
      fileName: '',
      encodedValueIsEmpty: true,
      showFileUrl: false,
      isDnModalOpen: false,
      attrIsJpegPhoto: false,
      currentRowIndex: 0,
      binaryAttributeRadio: 'Upload',
      binaryAttributeFilePath: '',
      isFileTooLarge: false
    };

    this.handleDnModalToggle = () => {
      this.setState(_ref2 => {
        var isDnModalOpen = _ref2.isDnModalOpen;
        return {
          isDnModalOpen: !isDnModalOpen
        };
      });
    };

    this.handlePasswordToggle = event => {
      this.setState(_ref3 => {
        var isPasswordField = _ref3.isPasswordField;
        return {
          isPasswordField: !isPasswordField
        };
      });
    };

    this.handlePwdChange = (str, e) => {
      this.setState({
        pwdValue: str
      });
    };

    this.handlePwdSave = () => {
      var newRows = [...this.state.tableRows];

      if (this.state.pwdRowIndex !== -1) {
        newRows[this.state.pwdRowIndex].cells[1].props.value = this.state.pwdValue;
        this.setState({
          tableRows: newRows,
          isPasswordField: false
        }, () => {
          var foundEmptyValue = newRows.find(el => el.cells[1].props.value === '');

          if (foundEmptyValue === undefined) {
            this.props.enableNextStep(true);
          } else {
            this.props.enableNextStep(false);
          }

          var rowDataToSave = this.buildRowDataToSave();
          this.props.saveCurrentRows(rowDataToSave, this.state.namingRowID);
        });
      }
    };

    this.showOrHidePassword = () => {
      this.setState(_ref4 => {
        var showPassword = _ref4.showPassword;
        return {
          showPassword: !showPassword
        };
      });
    };

    this.handleToggleUri = () => {
      this.setState(_ref5 => {
        var showFileUri = _ref5.showFileUri;
        return {
          showFileUri: !showFileUri,
          encodedValueIsEmpty: true
        };
      });
    };

    this.handleFileChange = (fileValue, fileName, event) => {
      var encodedValue = null;
      var encodedValueIsEmpty = true;
      var isFileTooLarge = false;
      this.setState({
        fileValue,
        fileName,
        encodedValueIsEmpty,
        isFileTooLarge
      });
      console.log("fileValue = #".concat(fileValue, "#"));
      console.log(fileValue);
      console.log("fileValue.size = ".concat(fileValue.size));

      if (fileValue.size === undefined) {
        // The "Clear" button was pressed.
        return;
      }

      if (fileValue.size === 0) {
        // An empty file was selected.
        console.log('An empty file was selected. Nothing to do.');
        return;
      } // TODO: Remove this limit?
      // See https://github.com/cockpit-project/cockpit/issues/12338
      // for ideas.
      //
      // https://github.com/cockpit-project/cockpit/blob/dee6324d037f3b8961d1b38960b4226c7e473abf/src/websocket/websocketconnection.c#L154
      //


      if (fileValue.size > _constants_jsx__WEBPACK_IMPORTED_MODULE_1__.WEB_SOCKET_MAX_PAYLOAD) {
        console.log('File too large!');
        this.setState({
          isFileTooLarge: true
        });
        return;
      } // data:application/x-x509-ca-cert;base64
      // data:image/png;base64,
      // base64encode(fileName, val => { console.log(val); })
      // https://stackoverflow.com/questions/36280818/how-to-convert-file-to-base64-in-javascript


      var reader = new FileReader();
      reader.readAsDataURL(fileValue);

      reader.onload = () => {
        var pattern = ';base64,';
        var pos = reader.result.indexOf(pattern);
        var toDel = reader.result.substring(0, pos + pattern.length);
        var isAnImage = fileValue.type.startsWith('image/'); // Check the file type.

        encodedValue = this.state.attrIsJpegPhoto // The attribute is a picture.
        ? isAnImage ? reader.result.replace(toDel, '') : null // The attribute is a certificate.
        : fileValue.type === 'application/x-x509-ca-cert' || fileValue.type === 'application/x-x509-user-cert' ? reader.result.replace(toDel, '') : null;

        if (encodedValue === null) {
          console.log('encodedValue is null. Nothing to do.');
          return;
        } // Decode the binary value.


        var myDecodedValue = null;

        if (isAnImage) {
          myDecodedValue = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("img", {
            src: "data:image/png;base64,".concat(encodedValue),
            alt: "",
            style: {
              width: '48px'
            } // height will adjust automatically.

          });
        } else {// TODO ==> Decode the certificate
          // IMPORTANT! ==> Enable the "Confirm" button once the cert decoding is completed.
          // myDecodedValue = ...
        } // console.log(reader.result.substring(0, 100));


        console.log("encodedValue.substring(0, 100) = ".concat(encodedValue.substring(0, 100)));
        var newRows = [...this.state.tableRows];
        newRows[this.state.currentRowIndex].cells[1].props.value = myDecodedValue; // Store the encoded value to use it to create the LDIF statements!

        newRows[this.state.currentRowIndex].cells[1].props.encodedValue = encodedValue;
        this.setState({
          encodedValueIsEmpty: false,
          tableRows: newRows
        });
        var rowDataToSave = this.buildRowDataToSave();
        this.props.saveCurrentRows(rowDataToSave, this.state.namingRowID);
      };

      reader.onerror = error => {
        console.log("Failed to encode the file : ".concat(fileName), error);
      };
    };

    this.handleRadioOnChange = (_, event) => {
      this.setState({
        binaryAttributeRadio: event.currentTarget.value
      });
    };

    this.handleBinaryAttributeInput = binaryAttributeFilePath => {
      this.setState({
        binaryAttributeFilePath
      });
    };
  } // End constructor().


  componentDidMount() {
    this.createTableRows();
    var foundEmptyValue = this.props.editableTableData.find(el => el.val === '');
    this.props.enableNextStep(foundEmptyValue === undefined);
  }

  render() {
    var _this$state = this.state,
        tableRows = _this$state.tableRows,
        isPasswordField = _this$state.isPasswordField,
        showPassword = _this$state.showPassword,
        showFileUri = _this$state.showFileUri,
        isDnModalOpen = _this$state.isDnModalOpen,
        fileName = _this$state.fileName,
        fileValue = _this$state.fileValue,
        attrIsJpegPhoto = _this$state.attrIsJpegPhoto,
        encodedValueIsEmpty = _this$state.encodedValueIsEmpty,
        binaryAttributeRadio = _this$state.binaryAttributeRadio,
        binaryAttributeFilePath = _this$state.binaryAttributeFilePath,
        isFileTooLarge = _this$state.isFileTooLarge;
    /* const binaryAttrMsg = showFileUri
      ? attrIsJpegPhoto
        ? 'This is a binary attribute. Use the file chooser to select ' +
          'the new picture from the local machine.' // \n' +
          // 'The allowed extensions are "JPEG" and "JPG" ( case-insensitive ).'
        : 'This is a binary attribute. Use the file chooser to select ' +
          'the new certificate from the local machine. \n' +
          'The certificate must be stored in the Distinguished Encoding Rules (DER) format' // . \n' +
          // 'The allowed extension is "DER" ( case-insensitive ).'
      : null; */

    var uploadSelected = showFileUri ? binaryAttributeRadio === 'Upload' : null;
    var fileUriModalTitle = uploadSelected ? "Upload File ".concat(attrIsJpegPhoto ? '(Photo)' : '(Certificate)') : "Type File Path ".concat(attrIsJpegPhoto ? '(Photo)' : '(Certificate)');
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, isDnModalOpen && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Modal, {
      id: "modal-dn-id",
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.ModalVariant.small,
      titleIconVariant: "info",
      title: "DN Renaming",
      isOpen: this.state.isDnModalOpen,
      onClose: this.handleDnModalToggle,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Button, {
        key: "close",
        variant: "primary",
        onClick: this.handleDnModalToggle
      }, "Close")]
    }, "You cannot modify the RDN ( Relative Distinguished Name ) in the ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, "Quick Update"), " mode.", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("br", null), "If you want to modify the RDN, please use the ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, "Rename"), " action option"), isPasswordField && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Modal, {
      id: "modal-password-id",
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.ModalVariant.medium,
      title: "Set Password",
      isOpen: isPasswordField,
      onClose: this.handlePasswordToggle,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Button, {
        key: "confirm",
        variant: "primary",
        name: "confirm",
        onClick: this.handlePwdSave
      }, "Confirm"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.handlePasswordToggle
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.InputGroup, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextInput, {
      name: "passwordField",
      id: "passwordField",
      type: showPassword ? 'text' : 'password',
      onChange: this.handlePwdChange,
      "aria-label": "password field"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Button, {
      variant: "control",
      "aria-label": "password field icon",
      onClick: this.showOrHidePassword,
      icon: showPassword ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_13__.EyeSlashIcon, null) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_14__.EyeIcon, null)
    }))), showFileUri && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.ModalVariant.medium,
      title: fileUriModalTitle,
      isOpen: showFileUri,
      onClose: this.handleToggleUri,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Button, {
        key: "confirm",
        variant: "primary",
        isDisabled: encodedValueIsEmpty,
        onClick: this.handleToggleUri
      }, "Confirm"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.handleToggleUri
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Radio, {
      value: "Upload",
      className: "ds-margin-top",
      isChecked: uploadSelected,
      onChange: this.handleRadioOnChange,
      label: "Upload a file local to the browser.",
      description: "Select a file from the machine on which the browser was launched.",
      name: "radio-binary-attribute",
      id: "radio-upload-binary-attribute"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Radio, {
      className: "ds-margin-top-lg",
      value: "TextInput",
      isChecked: !uploadSelected,
      onChange: this.handleRadioOnChange,
      label: "Write the complete file path.",
      description: "Type the full path of the file on the server host the LDAP server.",
      name: "radio-binary-attribute",
      id: "radio-type-binary-attribute"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null), fileName !== '' && encodedValueIsEmpty && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Alert, {
      variant: "danger",
      isInline: true,
      title: "There was an issue with the uploaded file ( incorrect type? )."
    }), isFileTooLarge && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Alert, {
      variant: "danger",
      isInline: true,
      title: "The file size larger than 128 MB. Use the file path option."
    }), !attrIsJpegPhoto && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Label, {
      className: "ds-margin-top-lg",
      icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_6__.InfoCircleIcon, null),
      color: "blue"
    }, "The certificate must be stored in the Distinguished Encoding Rules (DER) format."), uploadSelected && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.FileUpload, {
      id: "file-upload",
      className: "ds-margin-top-lg",
      value: fileValue,
      filename: fileName,
      onChange: this.handleFileChange
      /* dropzoneProps={{
          accept: attrIsJpegPhoto
          ? '.jpg' // [.jpeg,.jpg]
          : '.der'
      }} */

    }), !uploadSelected && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextInput, {
      value: 'WORK IN PROGRESS!',
      isDisabled: true // WIP.
      ,
      onChange: this.handleBinaryAttributeInput,
      isRequired: true,
      validated: binaryAttributeFilePath === '' ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions["default"],
      type: "text",
      "aria-label": "File input for a binary attribute."
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_19__.Table, {
      actionResolver: this.actionResolver,
      onRowEdit: this.updateEditableRows,
      dropdownDirection: "up",
      "aria-label": "Editable Rows Table",
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_20__.TableVariant.compact,
      cells: this.columns,
      rows: tableRows,
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_21__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_22__.TableBody, null)));
  }

}

EditableTable.propTypes = {
  wizardEntryDn: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().string),
  editableTableData: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().array),
  isAttributeSingleValued: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().func),
  isAttributeRequired: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().func),
  enableNextStep: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().func),
  saveCurrentRows: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().func),
  allObjectclasses: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().array),
  disableNamingChange: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().bool)
};
EditableTable.defaultProps = {
  wizardEntryDn: "",
  editableTableData: [],
  allObjectclasses: [],
  disableNamingChange: false
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (EditableTable);

/***/ }),

/***/ "./src/lib/ldap_editor/lib/genericPagination.jsx":
/*!*******************************************************!*\
  !*** ./src/lib/ldap_editor/lib/genericPagination.jsx ***!
  \*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/Dropdown.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/dropdownConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/BadgeToggle.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SearchInput/SearchInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Pagination/Pagination.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/SortColumn.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Table.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableTypes.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Header.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Body.js");
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }



 // TODO: Rename to GenericTable ( since it has pagination and also sorting and filtering capabilities )

class GenericPagination extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "onSelectRow", (_event, isSelected, rowId) => {
      // const rows = [...this.state.pagedRows];
      // rows[rowId].selected = isSelected;
      // Find the row in the full array and set 'selected' property accordingly
      // The rowId cannot be used since it changes with the pagination.
      // TODO: Need to make sure the column used has unique values for each row.
      // TODO: Pass the colum to use as a property.
      var cellValue = this.state.pagedRows[rowId].cells[0];
      var allItems = [...this.state.rows];
      var index = allItems.findIndex(item => item.cells[0] === cellValue);
      allItems[index].selected = isSelected; // Update all rows so our selected attributes stay accurate as "search" could mess rows

      index = this.state.allRows.findIndex(item => item.cells[0] === cellValue);
      this.state.allRows[index].selected = isSelected;
      var selectedAttrs = this.state.allRows.filter(row => row.selected).map(attr => attr.cells[0]);
      this.setState({
        rows: allItems,
        selectedAttrs,
        pagedRows: this.getRowsToShow(this.state.page, this.state.perPage)
      });
      this.props.handleSelectedAttrs(selectedAttrs);
    });

    _defineProperty(this, "onDropDownToggle", isOpen => {
      this.setState({
        isDropDownOpen: isOpen
      });
    });

    _defineProperty(this, "onDropDownSelect", event => {
      this.setState((prevState, props) => {
        return {
          isDropDownOpen: !prevState.isDropDownOpen
        };
      });
    });

    _defineProperty(this, "onSetPage", (_event, pageNumber) => {
      this.setState({
        page: pageNumber,
        pagedRows: this.getRowsToShow(pageNumber, this.state.perPage)
      });
    });

    _defineProperty(this, "onPerPageSelect", (_event, perPage) => {
      this.setState({
        page: 1,
        perPage: perPage,
        pagedRows: this.getRowsToShow(1, perPage)
      });
    });

    _defineProperty(this, "getRowsToShow", (page, perPage) => {
      var start = (page - 1) * perPage;
      var end = page * perPage;
      /* if (this.props.enableSorting) {
      return this.state.sortedRows.slice(start, end);
      } */

      return this.state.rows.slice(start, end);
    });

    _defineProperty(this, "buildAttrDropdown", () => {
      var _this$state = this.state,
          isDropDownOpen = _this$state.isDropDownOpen,
          selectedAttrs = _this$state.selectedAttrs;
      var numSelected = selectedAttrs.length;
      var items = selectedAttrs.map(attr => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.DropdownItem, {
        key: attr
      }, attr));
      var badgeProps = {
        className: "ds-badge-bgcolor"
      };

      if (numSelected === 0) {
        badgeProps = {
          isRead: true
        };
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Dropdown, {
        className: "ds-dropdown-padding ds-margin-top-lg",
        position: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.DropdownPosition.left,
        onSelect: this.onDropDownSelect,
        toggle: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.BadgeToggle, {
          id: "toggle-attr-select",
          badgeProps: badgeProps,
          onToggle: this.onDropDownToggle
        }, numSelected > 0 ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, numSelected, " selected ") : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, "0 selected ")),
        isOpen: isDropDownOpen,
        dropdownItems: items
      });
    });

    this.state = {
      itemCount: 0,
      page: 1,
      perPage: 10,
      pagedRows: [],
      searchValue: "",
      selectedAttrs: [],
      // sortedRows: this.props.enableSorting ? [...this.props.rows] : null,
      sortBy: {},
      isDropDownOpen: false,
      rows: [...this.props.rows],
      allRows: [...this.props.rows]
    };

    this.onSort = (_event, index, direction) => {
      var mySortedRows = this.state.rows.sort((a, b) => a[index] < b[index] ? -1 : a[index] > b[index] ? 1 : 0);
      this.setState({
        sortBy: {
          index,
          direction
        },
        rows: direction === _patternfly_react_table__WEBPACK_IMPORTED_MODULE_5__.SortByDirection.asc ? mySortedRows : mySortedRows.reverse()
      }, () => this.setState({
        // Need to update this.state.rows prior to run getRowsToShow().
        pagedRows: this.getRowsToShow(this.state.page, this.state.perPage)
      }));
    };

    this.onSearchChange = (value, event) => {
      var rows = [];
      var all = [];
      var val = value.toLowerCase(); // Get fresh list of attributes and what is selected

      this.props.rows.map(attr => {
        var selected = false;

        var _iterator = _createForOfIteratorHelper(this.state.selectedAttrs),
            _step;

        try {
          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            var selectedAttr = _step.value;

            if (attr.cells[0].toLowerCase() === selectedAttr.toLowerCase()) {
              selected = true;
              break;
            }
          }
        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }

        all.push({
          cells: [attr.cells[0], attr.cells[1]],
          selected: selected
        });
      }); // Process search filter on the entire list

      if (value !== "") {
        var _iterator2 = _createForOfIteratorHelper(all),
            _step2;

        try {
          for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
            var row = _step2.value;
            var name = row.cells[0].toLowerCase();
            var oid = row.cells[1].toLowerCase();

            if (name.includes(val) || oid.includes(val)) {
              rows.push(row);
            }
          }
        } catch (err) {
          _iterator2.e(err);
        } finally {
          _iterator2.f();
        }
      } else {
        // Restore entire rows list
        rows = all;
      }

      this.setState({
        rows: rows,
        itemCount: rows.length,
        pagedRows: rows.slice(0, this.state.perPage)
      });
    };
  }

  componentDidMount() {
    var selectedAttrs = this.props.rows.filter(row => row.selected).map(attr => attr.cells[0]);
    this.setState({
      rows: [...this.props.rows],
      allRows: [...this.props.rows],
      selectedAttrs
    }, () => this.setState({
      // pagedRows: this.getRowsToShow(this.state.page, this.state.perPage),
      pagedRows: this.getRowsToShow(1, this.state.perPage),
      page: 1,
      itemCount: this.props.rows.length
    }));
  }

  componentDidUpdate(prevProps) {
    if (this.props.tableModificationTime !== prevProps.tableModificationTime) {
      this.setState({
        rows: [...this.props.rows],
        allRows: [...this.props.rows]
      }, () => this.setState({
        // pagedRows: this.getRowsToShow(this.state.page, this.state.perPage),
        pagedRows: this.getRowsToShow(1, this.state.perPage),
        page: 1,
        itemCount: this.props.rows.length
      }));
    }
  }

  render() {
    var _this$state2 = this.state,
        itemCount = _this$state2.itemCount,
        page = _this$state2.page,
        perPage = _this$state2.perPage,
        pagedRows = _this$state2.pagedRows,
        isDropDownOpen = _this$state2.isDropDownOpen; // Enable pagination if the number of rows is higher than 10.

    var showPagination = itemCount > 10;
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, null, this.props.isSelectable && this.buildAttrDropdown(), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 12,
      className: this.props.isSelectable ? "ds-margin-top" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, null, this.props.isSearchable && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 5
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.SearchInput, {
      className: "ds-font-size-md",
      placeholder: "Search",
      value: this.state.searchValue,
      onChange: this.onSearchChange,
      onClear: evt => this.onSearchChange('', evt)
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: this.props.isSearchable ? 7 : 12
    }, showPagination && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Pagination, {
      itemCount: itemCount,
      page: page,
      perPage: perPage,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect,
      isCompact: true,
      widgetId: "pagination-options-menu-generic"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.Table, {
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__.TableVariant.compact,
      rows: pagedRows,
      cells: this.props.columns,
      actions: this.props.actions,
      "aria-label": "generic table",
      caption: this.props.caption,
      sortBy: this.props.enableSorting ? this.state.sortBy : null,
      onSort: this.props.enableSorting ? this.onSort : null,
      canSelectAll: this.props.canSelectAll,
      onSelect: this.props.isSelectable ? this.onSelectRow : null
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_12__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_13__.TableBody, null))));
  }

}

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (GenericPagination);

/***/ }),

/***/ "./src/lib/ldap_editor/lib/ldapNavigator.jsx":
/*!***************************************************!*\
  !*** ./src/lib/ldap_editor/lib/ldapNavigator.jsx ***!
  \***************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Bullseye/Bullseye.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TreeView/TreeView.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/exclamation-triangle-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/folder-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/resources-empty-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/folder-open-icon.js");
/* harmony import */ var _utils_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils.jsx */ "./src/lib/ldap_editor/lib/utils.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }







class LdapNavigator extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "updateTreeData", () => {
      // Stop if there was an LDAP error. In that case the tree should not be updated.
      if (this.props.wizardOperationInfo.resultCode !== 0) {
        var msg = "There was an LDAP error (code ".concat(this.props.wizardOperationInfo.resultCode, "). ") + 'Not updating the LDAP tree.';
        console.log(msg);
        return;
      }

      if (this.state.activeItems.length === 0) {
        return;
      }

      switch (this.props.wizardOperationInfo.operationType) {
        case 'DELETE':
          {
            var currentActiveNode = this.state.activeItems[0];
            var nodeId = currentActiveNode.id;

            if (nodeId.indexOf('.') === -1) {
              // No dot in the id ==> Entry is a root node in the tree.
              // Update the tree data after a suffix deletion.
              this.updateRootSuffixNode(false);
            } else {
              // Handle non-suffix deletion.
              // console.log('Normal entry deletion');
              var treeAllItems = this.state.allItems;
              var parentNode = this.state.activeItems[1];
              var parentId = parentNode.id; // const parentDn = parentNode.dn;

              var parentChildren = [...parentNode.children];
              var nodeIndex = parentChildren.findIndex(datum => datum.id === nodeId);
              console.log("nodeIndex = ".concat(nodeIndex));

              if (nodeIndex >= 0) {
                // Should always be the case since the node is visible. TODO: Use an assertion.
                parentChildren.splice(nodeIndex, 1); // Remove the deleted child.
                // 4th parameter set at true to remove the node and its children ( if any ).

                var parentIdObject = {
                  fullId: parentId,
                  remainingId: parentId
                };
                this.updateMyChildren(treeAllItems, parentIdObject, parentChildren, true);
                var activeItems = this.state.activeItems.shift();
                this.setState({
                  allItems: treeAllItems,
                  // Unset the current active items.
                  // If there is an active item, it will give the false perception that the
                  // entry details ( empty ) table is showing its information.
                  activeItems
                }, () => {
                  this.props.handleNodeOnClick(null);
                });
              }
            }

            break;
          }

        case 'ADD':
          {
            var nodeDn = this.props.wizardOperationInfo.entryDn;
            var relativeDn = this.props.wizardOperationInfo.relativeDn;
            var myFutureParent = this.state.activeItems[0]; // The future parent is the current node.

            var _parentId = myFutureParent.id;
            var idArray = myFutureParent.children ? myFutureParent.children.map(elt => elt.id.split('.').pop()) : [];
            var maxId = idArray.length > 0 ? Math.max(...idArray) : 0;
            var mySubId = maxId + 1;
            var params = {
              serverId: this.props.editorLdapServer,
              baseDn: nodeDn,
              addNotification: this.props.addNotification
            }; // TODO: Change the name of this function to a more generic one!!

            (0,_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.getRootSuffixEntryDetails)(params, result => {
              var info = JSON.parse(result);
              var entryTreeData = {
                name: relativeDn,
                fullEntry: info.fullEntry,
                modTime: info.modifyTimestamp,
                dn: info.dn,
                id: "".concat(_parentId, ".").concat(mySubId),
                loadChildren: false
              };
              var treeAllItems = this.state.allItems;
              var parentIdObject = {
                fullId: _parentId,
                remainingId: _parentId
              };
              this.updateMyChildren(treeAllItems, parentIdObject, [entryTreeData]);
              this.setState({
                allItems: treeAllItems
              }); // this.props.handleNodeOnClick(entryTreeData);
            });
            break;
          }

        case 'MODRDN':
        case 'MODIFY':
          this.refreshNode(this.state.activeItems[0]);
          break;

        default:
          console.log("Unknown operation type in LdapNavigator class: ".concat(this.props.wizardOperationInfo.operationType));
      }
    });

    _defineProperty(this, "updateDirectChildren", (potentialChildren, params, resCode) => {
      // When leaf entries ( but Organizations and Organization Units ) should be skipped
      // run a search with the relevant filter to get the actual number of matching grand children
      // ( children of the direct children of the current entry [ the active node ]).
      if (!this.props.skipLeafEntries) {
        return;
      }

      if (potentialChildren === null) {
        if (resCode.exit_status !== 0) {
          this.props.addNotification("error", "Error searching database - ".concat(resCode.msg.split("\n").pop()));
        }

        return;
      }

      var updatedChildren = [];
      var nbIterations = 0;
      var child_params = {
        serverId: this.props.editorLdapServer,
        scope: 'one',
        attributes: '1.1',
        addNotification: this.props.addNotification,
        filter: '(|(&(numSubordinates=*)(numSubordinates>=1))(objectClass=organizationalunit)(objectClass=organization))'
      };
      potentialChildren.map(aChild => {
        var info = JSON.parse(aChild);
        params.baseDn = info.dn;
        (0,_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.runGenericSearch)(child_params, resArray => {
          if (resArray.length > 0) {
            info.showChildren = true;
          } // TODO: Get rid of the JSON stringify / parse. Just use plain JS objects!


          updatedChildren.push(JSON.stringify(info));
          nbIterations++;

          if (nbIterations === potentialChildren.length) {
            // Now process the selected direct children.
            this.processDirectChildren(updatedChildren, params, null);
          }
        });
      });
    });

    _defineProperty(this, "processDirectChildren", (directChildren, params, resCode) => {
      // Retrieve the selected node from ==> this.state.activeItems: [treeViewItem, parentItem]
      var myActiveNode = this.state.activeItems[0];
      var myChildren = [];
      var childId = 0; // Used to quickly locate the node in the tree data.

      if (directChildren === null) {
        // There was a failure to connect to the LDAP server.
        this.setState({
          ldapFailure: true
        });
        this.props.showTreeLoadingState(false);

        if (resCode.exit_status !== 0) {
          this.props.addNotification("error", "Error searching database - ".concat(resCode.msg.split("\n").pop()));
          var randomId = Math.random().toString(36).substring(2, 15);
          var nodeChildren = [{
            name: 'Encountered an error, unable to display child entries',
            id: randomId,
            icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_2__.ExclamationTriangleIcon, null),
            isFakeEntry: true
          }];
          var treeAllItems = this.state.allItems;
          var parentIdObject = {
            fullId: myActiveNode.id,
            remainingId: myActiveNode.id
          };
          this.updateMyParent(treeAllItems, parentIdObject, nodeChildren, true);
          this.setState({
            allItems: treeAllItems
          });
        }

        return;
      } else {
        // TODO: To optimize!
        // ==> Set the state only if needed.
        this.setState({
          ldapFailure: false
        });
      }

      var _iterator = _createForOfIteratorHelper(directChildren),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var aChild = _step.value;
          var info = JSON.parse(aChild);
          var numSubValue = parseInt(info.numSubordinates);
          var _nodeChildren = null; // The property showChildren is added in the function updateDirectChildren().

          var showChildren = !this.props.skipLeafEntries || info.showChildren;

          if (numSubValue > 0 && showChildren) {
            var _randomId = Math.random().toString(36).substring(2, 15);

            _nodeChildren = [{
              name: 'Loading...',
              id: _randomId,
              // icon: <UnknownIcon />,
              icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Spinner, {
                size: "sm"
              }),
              isFakeEntry: true
            }];
          } // When called by the ACI Wizard, leaf entries are not needed.
          // Property 'skipLeafEntries' is set to 'true' in Wizard AddNewAci.


          var childData = {
            // TODO: Use a better logic to retrieve the entry RDN!!!
            name: info.dn.slice(0, info.dn.length - myActiveNode.dn.length - 1),
            fullEntry: info.fullEntry,
            // IMPORTANT: Need to add the children so the tree shows the expansion button!
            children: _nodeChildren,
            modTime: info.modifyTimestamp,
            dn: info.dn,
            id: "".concat(myActiveNode.id, ".").concat(childId),
            loadChildren: numSubValue > 0 // Used to insert child nodes when needed.

          };

          if (numSubValue > 0) {
            // Set the number of children.
            childData.customBadgeContent = numSubValue;
          }

          myChildren.push(childData);
          childId++;
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      if (directChildren.length > 0) {
        var _treeAllItems = this.state.allItems;
        var _parentIdObject = {
          fullId: myActiveNode.id,
          remainingId: myActiveNode.id
        }; // this.updateMyChildren(treeAllItems, myActiveNode.id, myChildren, true);

        this.updateMyChildren(_treeAllItems, _parentIdObject, myChildren, true);
        this.setState({
          allItems: _treeAllItems
        });
      }

      this.props.showTreeLoadingState(false);
    });

    this.state = {
      // Need to use an initial object to avoid a JS exception.
      allItems: [{
        name: 'Loading LDAP entries...',
        id: 'Loading',
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Spinner, {
          size: "sm"
        })
      }],
      activeItems: [],
      ldapFailure: false
    };

    this.treeOnClick = (evt, treeViewItem, parentItem) => {
      if (treeViewItem.isFakeEntry) {
        return;
      }

      if (this.state.activeItems.length > 0 && treeViewItem.dn === this.state.activeItems[0].dn) {
        // node was already clicked, just return
        return;
      }

      this.setState({
        activeItems: [treeViewItem, parentItem] // updatingTree: true

      }, () => {
        if (typeof this.props.showTreeLoadingState === 'function') {
          this.props.showTreeLoadingState(true);
        }

        this.refreshNode(treeViewItem, true);
      });
    };

    this.refreshNode = (treeViewItem, forceReloadChildren) => {
      (0,_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.getBaseLevelEntryAttributes)(this.props.editorLdapServer, treeViewItem.dn, entryDetails => {
        // TODO: No need to set the 'fullEntry' property when only navigating ( when called from the ACI Wizard for instance ).
        treeViewItem.fullEntry = [...entryDetails]; // For root suffixes, check if they are empty.

        if (treeViewItem.id.indexOf('.') === -1 && // No dot in the id ==> Entry is a root node in the tree.
        !this.state.ldapFailure) {
          // A suffix is empty if the LDAP server is up
          // and there is no existing root entry.
          var entryIsAnEmptySuffix = entryDetails[0].errorCode === 32;
          treeViewItem.isEmptySuffix = entryIsAnEmptySuffix;

          if (entryIsAnEmptySuffix) {
            this.props.handleNodeOnClick(treeViewItem);
            this.props.showTreeLoadingState(false);
            return;
          }
        } // Update the entry details table.


        if (!this.state.ldapFailure) {
          this.props.handleNodeOnClick(treeViewItem);
        }

        if (treeViewItem.loadChildren || // Load child entries if any
        forceReloadChildren) {
          // or if requested to load.
          var params = {
            serverId: this.props.editorLdapServer,
            baseDn: treeViewItem.dn,
            name: treeViewItem.name,
            fullEntry: treeViewItem.fullEntry,
            modTime: treeViewItem.modTime,
            addNotification: this.props.addNotification,
            filter: this.props.skipLeafEntries ? '(|(&(numSubordinates=*)(numSubordinates>=1))(objectClass=organizationalunit)(objectClass=organization))' : null // getOneLevelEntries() will use its default filter '(|(objectClass=*)(objectClass=ldapSubEntry))'

          };

          if (this.props.skipLeafEntries) {
            // updateDirectChildren() will call processDirectChildren() with the updated children array.
            (0,_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.getOneLevelEntries)(params, this.updateDirectChildren);
          } else {
            (0,_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.getOneLevelEntries)(params, this.processDirectChildren);
          }
        } else {
          // No children to load so the tree will not be updated.
          // this.setState({ updatingTree: false });
          this.props.showTreeLoadingState(false);
        }
      });
    };

    this.updateMyParent = (treeNode, nodeIdObject, nodeChildren, removePreviousChildren) => {
      var res = nodeIdObject.remainingId.indexOf('.');

      if (res === -1) {
        var insertionNode = treeNode.find(elt => elt.id === nodeIdObject.fullId);
        insertionNode.children = nodeChildren;
        insertionNode.loadChildren = false;
        insertionNode.customBadgeContent = "?";
      } else {
        var parentId = nodeIdObject.remainingId.substring(0, res);
        var startingId = nodeIdObject.startingId === undefined ? parentId : "".concat(nodeIdObject.startingId, ".").concat(parentId);
        var parentNode = treeNode.find(elt => elt.id === startingId);
        var remainingId = nodeIdObject.remainingId.substring(res + 1);
        var newNodeIdObject = {
          fullId: nodeIdObject.fullId,
          remainingId: remainingId,
          startingId: startingId
        };
        this.updateMyParent(parentNode.children, newNodeIdObject, nodeChildren, removePreviousChildren);
      }
    };

    this.updateMyChildren = (treeNode, nodeIdObject, childArray, removePreviousChildren) => {
      var res = nodeIdObject.remainingId.indexOf('.');

      if (res === -1) {
        var insertionNode = treeNode.find(elt => elt.id === nodeIdObject.fullId); // const myId = parseInt(nodeIdObject.remainingId);

        if (!insertionNode) {
          return;
        }

        var childrenInfo = insertionNode.children;
        var myCurrentChildren = removePreviousChildren || !childrenInfo ? [] : childrenInfo;

        if (childArray.length > 0 || myCurrentChildren.length > 0) {
          // Add the childArray data first so the new children
          // are inserted close to the parent node.
          // User will not need to scroll down to see the new children.
          var myFinalChildren = [...childArray, ...myCurrentChildren]; // Find the parent node by its full ID.

          insertionNode.children = myFinalChildren;
          insertionNode.customBadgeContent = myFinalChildren.length; // In case the property was set ( see the hack in the "else" statement below. )
          // The rendering use the default value.

          delete insertionNode.expandedIcon;
        } else {
          insertionNode.children = null;
          insertionNode.action = null; // Hack to fix the case where the node stays with the expandedIcon after
          // deleting all the children.

          insertionNode.expandedIcon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_4__.FolderIcon, null);
        } // Don't search for children again ( unless there is a user-initiated refresh ).


        insertionNode.loadChildren = false;
      } else {
        var parentId = nodeIdObject.remainingId.substring(0, res);
        var startingId = nodeIdObject.startingId === undefined ? parentId : "".concat(nodeIdObject.startingId, ".").concat(parentId); // console.log(`parentId=${parentId}`);

        var parentNode = treeNode.find(elt => elt.id === startingId);
        var remainingId = nodeIdObject.remainingId.substring(res + 1);
        var newNodeIdObject = {
          fullId: nodeIdObject.fullId,
          remainingId: remainingId,
          startingId: startingId
        }; // console.log(newNodeIdObject);
        // this.updateMyChildren(treeNode[parentId].children, newNodeIdObject, childArray, removePreviousChildren);

        this.updateMyChildren(parentNode.children, newNodeIdObject, childArray, removePreviousChildren);
      }
    }; // Update a root suffix node.


    this.updateRootSuffixNode = isAdded => {
      var currentActiveNode = this.state.activeItems[0];
      var rootSuffId = currentActiveNode.id;
      var treeAllItems = this.state.allItems;
      var rootSuffixNode = treeAllItems.find(elt => elt.id === rootSuffId);

      if (isAdded) {
        // Adding a root suffix.
        var newItem = Object.assign({}, this.props.newSuffixData.rootEntryData);
        newItem.id = rootSuffId;
        newItem.isEmptySuffix = false;
        newItem.loadChildren = false;
        treeAllItems.splice(rootSuffId, 1, newItem);
        this.setState({
          allItems: treeAllItems
        }); // Update the entry table.

        this.props.updateEntryRows(newItem);
      } else {
        // An existing root suffix was deleted.
        var emptyItem = {
          dn: rootSuffixNode.dn,
          id: rootSuffId,
          children: null,
          isEmptySuffix: true,
          icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_5__.ResourcesEmptyIcon, {
            color: "var(--pf-global--palette--orange-300)"
          }),
          name: rootSuffixNode.name,
          fullEntry: []
        };
        treeAllItems.splice(rootSuffId, 1, emptyItem);
        this.setState({
          allItems: treeAllItems
        }); // Update the entry table.

        this.props.updateEntryRows(emptyItem);
      }
    };
  } // End constructor.


  componentDidMount() {
    // This is fine since the first entries are root suffixes
    // so the tree is not yet nested.
    this.setState({
      allItems: [...this.props.treeItems]
    });
  }

  componentDidUpdate(prevProps) {
    // Get the tree initial data.
    if (this.props.timeOfCompletion !== prevProps.timeOfCompletion) {
      this.setState({
        allItems: [...this.props.treeItems]
      });
    } // Update the tree data after a suffix creation.


    if (this.props.newSuffixData !== undefined && this.props.newSuffixData.creationDate > prevProps.newSuffixData.creationDate) {
      this.updateRootSuffixNode(true); // true ==> the suffix top entry is being created.
    } // Update the tree data after an LDAP update.


    if (this.props.wizardOperationInfo !== undefined && this.props.wizardOperationInfo.time !== prevProps.wizardOperationInfo.time) {
      this.updateTreeData();
    } // Refresh the selected tree node.


    if (this.props.refreshEntryTime !== prevProps.refreshEntryTime || this.props.refreshButtonTriggerTime !== prevProps.refreshButtonTriggerTime) {
      // Second parameter ( true ) will force the reload of the children.
      this.refreshNode(this.state.activeItems[0], true);
    }
  }

  // End processDirectChildren().
  render() {
    var _this$state = this.state,
        allItems = _this$state.allItems,
        activeItems = _this$state.activeItems;
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, allItems.length === 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Bullseye, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, "No Databases")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: this.props.isDisabled ? "ds-disabled ds-editor-tree" : "ds-editor-tree"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TreeView, {
      data: allItems,
      onSelect: this.treeOnClick,
      activeItems: activeItems,
      icon: this.props.skipLeafEntries ? null : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_4__.FolderIcon, null),
      expandedIcon: this.props.skipLeafEntries ? null : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_8__.FolderOpenIcon, null),
      hasBadges: !this.props.skipLeafEntries
    })));
  }

}

LdapNavigator.propTypes = {
  editorLdapServer: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
  treeItems: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().array),
  skipLeafEntries: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
  showTreeLoadingState: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func),
  handleNodeOnClick: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func)
};
LdapNavigator.defaultProps = {
  editorLdapServer: "",
  treeItems: [],
  skipLeafEntries: false
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (LdapNavigator);

/***/ }),

/***/ "./src/lib/ldap_editor/lib/options.jsx":
/*!*********************************************!*\
  !*** ./src/lib/ldap_editor/lib/options.jsx ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "setSizeLimit": () => (/* binding */ setSizeLimit),
/* harmony export */   "getSizeLimit": () => (/* binding */ getSizeLimit),
/* harmony export */   "setTimeLimit": () => (/* binding */ setTimeLimit),
/* harmony export */   "getTimeLimit": () => (/* binding */ getTimeLimit)
/* harmony export */ });
// LDAP options.
var LdapOptions = {
  sizeLimit: 2000,
  timeLimit: 10
}; // Size limit.

function setSizeLimit(limit) {
  LdapOptions.sizeLimit = limit;
}
;
function getSizeLimit() {
  return LdapOptions.sizeLimit;
} // Time limit.

function setTimeLimit(limit) {
  LdapOptions.timeLimit = limit;
}
;
function getTimeLimit() {
  return LdapOptions.timeLimit;
}

/***/ }),

/***/ "./src/lib/ldap_editor/lib/rootSuffix.jsx":
/*!************************************************!*\
  !*** ./src/lib/ldap_editor/lib/rootSuffix.jsx ***!
  \************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleListItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/Alert.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Label/Label.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Divider/Divider.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleList.js");
/* harmony import */ var _utils_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils.jsx */ "./src/lib/ldap_editor/lib/utils.jsx");




class CreateRootSuffix extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      isModalOpen: false,
      ldifArray: []
    };

    this.createRootEntry = () => {
      console.log("Creating the root entry ".concat(this.props.suffixDn));
      var resultParams = {
        message: "The suffix ".concat(this.props.suffixDn, " was successfully created."),
        variant: 'success'
      };
      (0,_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.createLdapEntry)(this.props.editorLdapServer, this.state.ldifArray, result => {
        //       result = { errorCode: err.exit_status, output: errMessage };
        // If the creation succeeds, search the entry and update the entry table.
        console.log("result.errorCode = ".concat(result.errorCode));

        if (result.errorCode === 0) {
          var params = {
            serverId: this.props.editorLdapServer,
            baseDn: this.props.suffixDn
          };
          (0,_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.getRootSuffixEntryDetails)(params, entryInfo => {
            var info = JSON.parse(entryInfo);
            /* const rootEntryData = {
              name: info.dn,
              fullEntry: info.fullEntry,
              modTime: info.modifyTimestamp,
              dn: info.dn
            }; */

            resultParams.rootEntryData = {
              name: info.dn,
              fullEntry: info.fullEntry,
              modTime: info.modifyTimestamp,
              dn: info.dn
            }; // this.props.updateEntryRows(entryTreeData);
            // Hide the modal dialog and show the alert.

            this.props.handleEmptySuffixToggle(resultParams);
          });
        } else {
          resultParams.message = "Failed to create the suffix ".concat(this.props.suffixDn, ".");
          resultParams.variant = 'danger'; // Hide the modal dialog and show the alert.

          this.props.handleEmptySuffixToggle(resultParams);
        }
      });
    };
  }

  componentDidMount() {
    // console.log(`In CreateRootSuffix - componentDidMount() - this.props.suffixDn = ${this.props.suffixDn}`);
    (0,_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.generateRootEntryLdif)(this.props.suffixDn, ldifArray => {
      // console.log(ldifArray);
      this.setState({
        ldifArray
      });
    });
  }

  render() {
    var _this$props = this.props,
        showEmptySuffixModal = _this$props.showEmptySuffixModal,
        handleEmptySuffixToggle = _this$props.handleEmptySuffixToggle;
    var ldifArray = this.state.ldifArray;
    var ldifOk = ldifArray.length > 1; // ldifArray contains a single item in case of error.

    var ldifItems = ldifOk ? ldifArray.map((line, index) => {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.SimpleListItem, {
        key: index
      }, line);
    }) : null;
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Modal, {
      position: "top",
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.ModalVariant.medium,
      title: "Create Root Entry",
      isOpen: showEmptySuffixModal,
      onClose: handleEmptySuffixToggle,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Button, {
        key: "create",
        variant: "primary",
        isDisabled: !ldifOk,
        onClick: this.createRootEntry // Calls this.props.handleEmptySuffixToggle()

      }, "Create"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Button, {
        key: "cancel",
        variant: "link",
        onClick: handleEmptySuffixToggle
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Alert, {
      variant: ldifOk ? 'info' : 'danger',
      isInline: true,
      title: ldifOk ? 'LDIF data to create the suffix' : 'Failed to generate the LDIF data'
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-addons-bottom-margin"
    }), !ldifOk && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Label, {
      variant: "outline",
      color: "red"
    }, ldifArray[0]), ldifOk && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Divider, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.SimpleList, {
      "aria-label": "Simple List LDIF"
    }, ldifItems), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Divider, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-addons-bottom-margin"
    }));
  }

}

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CreateRootSuffix);

/***/ }),

/***/ "./src/lib/ldap_editor/lib/utils.jsx":
/*!*******************************************!*\
  !*** ./src/lib/ldap_editor/lib/utils.jsx ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "generateUniqueId": () => (/* binding */ generateUniqueId),
/* harmony export */   "getUserSuffixes": () => (/* binding */ getUserSuffixes),
/* harmony export */   "ldapPing": () => (/* binding */ ldapPing),
/* harmony export */   "getRootSuffixEntryDetails": () => (/* binding */ getRootSuffixEntryDetails),
/* harmony export */   "getSearchEntries": () => (/* binding */ getSearchEntries),
/* harmony export */   "getBaseLevelEntryAttributes": () => (/* binding */ getBaseLevelEntryAttributes),
/* harmony export */   "getBaseLevelEntryFullAttributes": () => (/* binding */ getBaseLevelEntryFullAttributes),
/* harmony export */   "getOneLevelEntries": () => (/* binding */ getOneLevelEntries),
/* harmony export */   "runGenericSearch": () => (/* binding */ runGenericSearch),
/* harmony export */   "getMonitoringInfo": () => (/* binding */ getMonitoringInfo),
/* harmony export */   "listAccessLogs": () => (/* binding */ listAccessLogs),
/* harmony export */   "modifyLdapEntry": () => (/* binding */ modifyLdapEntry),
/* harmony export */   "createLdapEntry": () => (/* binding */ createLdapEntry),
/* harmony export */   "getAllObjectClasses": () => (/* binding */ getAllObjectClasses),
/* harmony export */   "getSingleValuedAttributes": () => (/* binding */ getSingleValuedAttributes),
/* harmony export */   "getAttributesNameAndOid": () => (/* binding */ getAttributesNameAndOid),
/* harmony export */   "deleteLdapData": () => (/* binding */ deleteLdapData),
/* harmony export */   "showCertificate": () => (/* binding */ showCertificate),
/* harmony export */   "b64DecodeUnicode": () => (/* binding */ b64DecodeUnicode),
/* harmony export */   "decodeLine": () => (/* binding */ decodeLine),
/* harmony export */   "getRdnInfo": () => (/* binding */ getRdnInfo),
/* harmony export */   "generateRootEntryLdif": () => (/* binding */ generateRootEntryLdif),
/* harmony export */   "retrieveAllAcis": () => (/* binding */ retrieveAllAcis),
/* harmony export */   "isValidIpAddress": () => (/* binding */ isValidIpAddress),
/* harmony export */   "isValidHostname": () => (/* binding */ isValidHostname),
/* harmony export */   "foldLine": () => (/* binding */ foldLine),
/* harmony export */   "isValidLDAPUrl": () => (/* binding */ isValidLDAPUrl)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _options_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./options.jsx */ "./src/lib/ldap_editor/lib/options.jsx");
/* harmony import */ var _constants_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants.jsx */ "./src/lib/ldap_editor/lib/constants.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../tools.jsx */ "./src/lib/tools.jsx");
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }





function generateUniqueId() {
  return Math.random().toString(36).substring(2, 15);
} // Convert DS timestamp to a friendly string: 20180921142257Z -> 10/21/2018, 2:22:57 PM

function getDateString(timestamp) {
  if (!!timestamp === false) {
    console.log('Not a real timestamp!');
    return '';
  }

  var year = timestamp.substring(0, 4);
  var month = timestamp.substring(4, 6);
  var day = timestamp.substring(6, 8);
  var hour = timestamp.substring(8, 10);
  var minute = timestamp.substring(10, 12);
  var sec = timestamp.substring(12, 14);
  var value = "".concat(year, "-").concat(month, "-").concat(day, "T").concat(hour, ":").concat(minute, ":").concat(sec, "Z");
  var myDate = new Date(value);
  return myDate.toLocaleString();
}

function getModDateUTC(modDate) {
  if (!modDate) {
    // Some entries ( for instance "cn=plugins,cn=config" )
    // don't have the modifyTimestamp attribute present.
    // console.log('Not a real modifyTimestamp value!')
    return '';
  }

  var y = modDate.substring(0, 4);
  var m = modDate.substring(4, 6);
  var d = modDate.substring(6, 8);
  var h = modDate.substring(8, 10);
  var min = modDate.substring(10, 12);
  var sec = modDate.substring(12, 14);
  var value = "".concat(y, "-").concat(m, "-").concat(d, "T").concat(h, ":").concat(min, ":").concat(sec, "Z"); // const date = new Date();
  // date.setTime(Date.parse(value));

  var date = new Date(value);
  return date.toUTCString();
}

function getUserSuffixes(serverId, suffixCallback) {
  var suffixCmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + serverId + '.socket', 'backend', 'suffix', 'list', '--suffix'];
  (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("getUserSuffixes", "list suffixes", suffixCmd);
  cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(suffixCmd, {
    superuser: true
  }).done(content => {
    var suffList = JSON.parse(content);
    suffixCallback(suffList.items);
  }).fail(_ => {
    console.log('FAIL ' + _.toString());
  });
}
function ldapPing(serverId, pingCallback) {
  var cmd = ['ldapsearch', '-LLL', '-Y', 'EXTERNAL', '-b', 'cn=config', // params.baseDn,
  '-H', 'ldapi://%2fvar%2frun%2fslapd-' + serverId + '.socket', '-s', 'base', '-l', _constants_jsx__WEBPACK_IMPORTED_MODULE_2__.LDAP_PING_TIME_LIMIT, '1.1'];
  (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("ldapPing", "", cmd);
  cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
    superuser: true,
    err: 'message'
  }).done(() => {
    pingCallback(true);
  }).fail(err => {
    console.log('FAIL err.exit_status ==> ' + err.exit_status);
    console.log('FAIL err.message ==> ' + err.message);
    pingCallback(false, {
      errCode: err.exit_status,
      errMsg: err.message
    });
  });
}
function getRootSuffixEntryDetails(params, entryDetailsCallback) {
  // This is a base scope search. No need for a size limit.
  var timeLimit = (0,_options_jsx__WEBPACK_IMPORTED_MODULE_1__.getTimeLimit)();
  var cmd = ['ldapsearch', '-LLL', '-o', 'ldif-wrap=no', '-Y', 'EXTERNAL', '-b', params.baseDn, '-H', 'ldapi://%2fvar%2frun%2fslapd-' + params.serverId + '.socket', '-s', 'base', '-l', timeLimit, '*', 'numSubordinates', 'modifyTimestamp' // 'entryId' // To uniquely identify the node in the treee view ==> <instanceId>_<entryId>
  // Doesn't work!! Some entries don't have an entryID (cn=config and its children for instance).
  ];
  (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("getRootSuffixEntryDetails", "", cmd);
  var dn = null; // The Root DSE DN is an empty one.

  var numSubordinates = '';
  var modifyTimestamp = ''; // let entryId = '';

  var result = {};
  var entryArray = []; // Will contain the entry but the numSubordinates and modifyTimestamp.

  cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
    superuser: true,
    err: 'message'
  }).done(data => {
    // console.log('typeof data = ' + typeof data);
    // console.log('SUCCESS ' + data);
    var lines = data.split('\n');
    lines.map(currentLine => {
      if (isAttributeLine(currentLine, 'dn:')) {
        entryArray.push(splitAttributeValue(currentLine)); // console.log('currentLine = ' + currentLine);
        // console.log('currentLine.split()[0]  = ' + currentLine.split(':')[0]);
        // console.log('currentLine.split()[1]  = ' + currentLine.split(':')[1]);
        // Convert base64-encoded DNs

        var pos = currentLine.indexOf(':');

        if (currentLine.startsWith('dn::')) {
          dn = b64DecodeUnicode(currentLine.substring(pos + 2).trim());
        } else {
          dn = currentLine.substring(pos + 1).trim();
        } // console.log('The DN is ' + dn);

      } else if (isAttributeLine(currentLine, 'numSubordinates:')) {
        numSubordinates = currentLine.split(':')[1].trim(); // console.log('numSubordinates = ' + numSubordinates);
      } else if (isAttributeLine(currentLine, 'modifyTimestamp:')) {
        modifyTimestamp = currentLine.split(':')[1].trim();
      } else {
        entryArray.push(splitAttributeValue(currentLine));
      }
    });
    result = JSON.stringify({
      dn: dn,
      numSubordinates: numSubordinates,
      modifyTimestamp: getModDateUTC(modifyTimestamp),
      parentId: params.parentId,
      fullEntry: entryArray,
      errorCode: 0
    });
  }).fail(err => {
    // console.log('FAIL err.exit_status ==> ' + err.exit_status);
    // console.log('FAIL err.message ==> ' + err.message);
    result = JSON.stringify({
      dn: params.baseDn,
      numSubordinates: '???',
      modifyTimestamp: '???',
      // entryId: (Math.floor(Math.random() * Math.floor(1000000))).toString(), // Choose a random number between 0 and 1 million.
      parentId: params.parentId,
      fullEntry: [{
        attribute: '???: ',
        value: '???'
      }],
      errorCode: err.exit_status
    });
  }).always(() => entryDetailsCallback(result));
}

function getResourceLimits() {
  var timeLimit = (0,_options_jsx__WEBPACK_IMPORTED_MODULE_1__.getTimeLimit)();
  var sizeLimit = (0,_options_jsx__WEBPACK_IMPORTED_MODULE_1__.getSizeLimit)();
  var limits = [];

  if (timeLimit > 0) {
    limits.push('-l', timeLimit);
  }

  if (sizeLimit > 0) {
    limits.push('-z', sizeLimit);
  }

  return limits;
}

function getSearchEntries(params, resultCallback) {
  /*
     params.serverId,
     params.searchBase
     params.searchFilter
     params.searchScope
     params.sizeLimit,
     params.timeLimit
  */
  var cmd = ['ldapsearch', '-LLL', '-o', 'ldif-wrap=no', '-Y', 'EXTERNAL', '-b', params.searchBase, '-H', 'ldapi://%2fvar%2frun%2fslapd-' + params.serverId + '.socket', '-s', params.searchScope, '-l', params.timeLimit, '-z', params.sizeLimit, params.searchFilter, '*', '+'];
  (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("getSearchEntries", "", cmd);
  var dn = '';
  var numSubordinates = '0';
  var modifyTimestamp = '';
  var searchResult = null;
  var allEntries = [];
  cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
    superuser: true,
    err: 'message'
  }) // string.split("\n\r")
  .done(data => {
    searchResult = data;
  }).catch((err, data) => {
    if (err.exit_status === 4) {
      console.log('Size limit hit'); // Use the partial data.

      searchResult = data;
      params.addNotification("info", "Size limit of ".concat(params.sizeLimit, " was exceeded.  The child entries of \"").concat(params.searchBase, "\" have been truncated."));
    } else {
      searchResult = null;
      resultCallback(null, {
        status: err.exit_status,
        msg: err.message
      });
    }
  }).finally(() => {
    if (searchResult === null) {
      return;
    }

    var lines = searchResult.split('\n');
    var ldapsubentry = false;
    lines.map(currentLine => {
      if (isAttributeLine(currentLine, 'dn:')) {
        // Convert base64-encoded DNs
        var pos = currentLine.indexOf(':');

        if (currentLine.startsWith('dn::')) {
          dn = b64DecodeUnicode(currentLine.substring(pos + 2).trim());
        } else {
          dn = currentLine.substring(pos + 1).trim();
        }

        ldapsubentry = false;
      } else if (isAttributeLine(currentLine, 'numSubordinates:')) {
        numSubordinates = currentLine.split(':')[1].trim();
      } else if (isAttributeLine(currentLine, 'modifyTimestamp:')) {
        modifyTimestamp = currentLine.split(':')[1].trim();
      } else if (isAttributeLine(currentLine, 'objectclass: ldapsubentry')) {
        ldapsubentry = true;
      }

      if (currentLine === '' && dn !== '') {
        var result = JSON.stringify({
          dn: dn,
          numSubordinates: numSubordinates,
          modifyTimestamp: getModDateUTC(modifyTimestamp),
          ldapsubentry: ldapsubentry
        });
        allEntries.push(result); // Reset the variables:

        dn = '';
        numSubordinates = '0';
        modifyTimestamp = '';
      }
    }); // Process the list of entries.

    resultCallback(allEntries, null);
  });
}
function getBaseLevelEntryAttributes(serverId, baseDn, entryAttributesCallback) {
  /* const cmd = [
    'ldapsearch',
    '-LLL',
    '-o',
    'ldif-wrap=no',
    '-Y',
    'EXTERNAL',
    '-b',
    baseDn,
    '-H',
    'ldapi://%2fvar%2frun%2fslapd-' + serverId + '.socket',
    '-s',
    'base',
    '(|(objectClass=*)(objectClass=ldapSubEntry))',
    '*'
  ]; */
  // This is a base scope search. No need for a size limit.
  var timeLimit = (0,_options_jsx__WEBPACK_IMPORTED_MODULE_1__.getTimeLimit)();
  var optionTimeLimit = timeLimit > 0 ? "-l ".concat(timeLimit) : '';
  var cmd = ['/usr/bin/sh', '-c', "ldapsearch -LLL -o ldif-wrap=no -Y EXTERNAL -b \"".concat(baseDn, "\"") + " -H ldapi://%2fvar%2frun%2fslapd-".concat(serverId, ".socket") + " ".concat(optionTimeLimit) + ' -s base "(|(objectClass=*)(objectClass=ldapSubEntry))" nsRoleDN \\*' // +
  // ' | /usr/bin/head -c 150001' // Taking 1 additional character to check if the
  // the entry was indeed bigger than 150K.
  ]; // TODO: The return code will always be 0 because of the ' | /usr/bin/head -c 150001' part.
  // Need to find a way to retrieve the LDAP return code...

  /*
    [root@cette ~]# ldapsearch -LLL -o ldif-wrap=no -Y EXTERNAL -b "o=empty" -H ldapi://%2fvar%2frun%2fslapd-ALPS_Grenoble.socket -s base "(|(objectClass=*)(objectClass=ldapSubEntry))" \* | /usr/bin/head -c 150001 2>/dev/null
    SASL/EXTERNAL authentication started
    SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
    SASL SSF: 0
    No such object (32)
    [root@cette ~]# echo $?
    0
    [root@cette ~]#
  */

  (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("getBaseLevelEntryAttributes", "", cmd);
  var entryArray = [];
  cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
    superuser: true,
    err: 'message'
  }).done(data => {
    // console.log(`data = ${data}`);
    // const lines = data.split('\n');
    // TODO: Make this configurable ( option to keep X number of characters )
    // Meanwhile just keep only the 150K first characters.
    var isLarge = data.length > 150000;

    if (isLarge) {
      data = data.substring(0, 150000);
    }

    var lines = data.split('\n');
    lines.map(currentLine => {
      if (currentLine !== '') {
        entryArray.push(splitAttributeValue(currentLine));
      }
    }); // Replace the last line with a message in case the entry is too large.
    // There are high chances that the last line is incomplete ( because of the substring()).
    // TODO: Find a suitable value. Was set to 230 K for a demo.
    // TODO ==> Check if the truncated attribute will be decoded
    // ( jpegPhoto for instance ). Truncation will cause issues.

    if (isLarge) {
      // Entry was bigger than 150K.
      // if (data.length === 230001) { // Entry was bigger than 230K.
      entryArray.splice(-1, 2, // The colon in the value is needed to split later the pair "attribute:value".
      {
        attribute: '...',
        value: ':...'
      }, {
        attribute: 'MESSAGE',
        value: ':ENTRY TOO LARGE - OUTPUT TRUNCATED!'
      });
    }

    entryAttributesCallback(entryArray);
  }).catch(err => {
    // console.log('getBaseLevelEntryAttributes in catch()');
    if (err.message === undefined) {// No error. Send the result array.
      // entryAttributesCallback(entryArray);
    } else {
      /* if (msg.includes("Can't contact LDAP server")) {
      // TODO: Handle the LDAP down status with a specific message? */
      entryAttributesCallback([{
        attribute: '???: ',
        value: '???',
        // errMsg: err.message
        errorCode: err.exit_status
      }]);
      console.log('getBaseLevelEntryAttributes failed with exit_status = ' + err.exit_status);
      console.log('getBaseLevelEntryAttributes error message = ' + err.message);
    }
  });
} // Called to get an LDAP backup of the entry during a deletion.
// TODO: Use getBaseLevelEntryAttributes() with an additonal option to retrieve operational attributes.

function getBaseLevelEntryFullAttributes(serverId, baseDn, entryAttributesCallback) {
  // This is a base scope search. No need for a size limit.
  var timeLimit = (0,_options_jsx__WEBPACK_IMPORTED_MODULE_1__.getTimeLimit)();
  var cmd = ['ldapsearch', '-LLL', '-o', 'ldif-wrap=no', '-Y', 'EXTERNAL', '-b', baseDn, '-H', 'ldapi://%2fvar%2frun%2fslapd-' + serverId + '.socket', '-s', 'base', '-l', timeLimit, '(|(objectClass=*)(objectClass=ldapSubEntry))', '*', '+'];
  (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("getBaseLevelEntryFullAttributes", "", cmd);
  var entryArray = [];
  cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
    superuser: true,
    err: 'message'
  }).done(data => {
    /* const lines = data.split('\n');
    lines.map(currentLine => {
      if (currentLine !== '') {
        entryArray.push(splitAttributeValue(currentLine));
      }
    }); */
    entryAttributesCallback(data);
  }).fail(err => {
    console.log('getBaseLevelEntryFullAttributes failed with exit_status = ' + err.exit_status);
    console.log('getBaseLevelEntryFullAttributes error message = ' + err.message);
    entryAttributesCallback('');
  });
}

function isAttributeLine(line, attr) {
  return line.toLowerCase().startsWith(attr.toLowerCase());
} // TODO: Handle base64-encoded attributes where the separator is '::'


function splitAttributeValue(attrVal) {
  var index = attrVal.indexOf(':');

  if (index === -1) {
    // console.log('No colon found in attrVal = ' + attrVal);
    return {
      attribute: '',
      value: ''
    };
  }

  var attr = attrVal.substring(0, index);
  var val = attrVal.substring(index);
  return {
    attribute: attr,
    value: val
  };
} // TODO: Optimize this function to return only a subset of the entry.
// Then on user expansion, search ( base level ) and return the whole entry.
// ==> Done.


function getOneLevelEntries(params, oneLevelCallback) {
  var limits = getResourceLimits();
  var filter = params.filter ? params.filter : '(|(objectClass=*)(objectClass=ldapSubEntry))';
  var cmd = ['ldapsearch', '-LLL', '-o', 'ldif-wrap=no', '-Y', 'EXTERNAL', '-b', params.baseDn, '-H', 'ldapi://%2fvar%2frun%2fslapd-' + params.serverId + '.socket', '-s', 'one', filter,
  /* '-l',
  timeLimit,
  '-z',
  sizeLimit, */
  ...limits, '1.1', 'numSubordinates', 'modifyTimestamp', 'objectclass'];
  (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("getOneLevelEntries", "", cmd);
  var dn = '';
  var numSubordinates = '';
  var modifyTimestamp = '';
  var searchResult = null;
  var allEntries = [];
  cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
    superuser: true,
    err: 'message'
  }) // string.split("\n\r")
  .done(data => {
    searchResult = data;
  }).catch((err, data) => {
    console.log('FAIL err.exit_status ==> ' + err.exit_status);
    console.log('FAIL err.message ==> ' + err.message);

    if (err.exit_status === 4) {
      // Use the partial data.
      searchResult = data;
      var size_limit = (0,_options_jsx__WEBPACK_IMPORTED_MODULE_1__.getSizeLimit)();
      params.addNotification("info", "Size limit of ".concat(size_limit, " was exceeded.  The child entries of \"").concat(params.baseDn, "\" have been truncated.  ") + "Use the \"Search\" feature if you want to adjust the size limit and retrieve more entries");
    } else {
      searchResult = null;
      oneLevelCallback(null, params, {
        status: err.exit_status,
        msg: err.message
      });
    }
  }).finally(() => {
    if (searchResult === null) {
      return;
    }

    var lines = searchResult.split('\n');
    var ldapsubentry = false;
    lines.map(currentLine => {
      if (isAttributeLine(currentLine, 'dn:')) {
        // Convert base64-encoded DNs
        var pos = currentLine.indexOf(':');

        if (currentLine.startsWith('dn::')) {
          dn = b64DecodeUnicode(currentLine.substring(pos + 2).trim());
        } else {
          dn = currentLine.substring(pos + 1).trim();
        }

        ldapsubentry = false;
      } else if (isAttributeLine(currentLine, 'numSubordinates:')) {
        numSubordinates = currentLine.split(':')[1].trim();
      } else if (isAttributeLine(currentLine, 'modifyTimestamp:')) {
        modifyTimestamp = currentLine.split(':')[1].trim();
      } else if (isAttributeLine(currentLine, 'objectclass: ldapsubentry')) {
        ldapsubentry = true;
      }

      if (currentLine === '' && dn !== '') {
        var result = JSON.stringify({
          dn: dn,
          numSubordinates: numSubordinates,
          modifyTimestamp: getModDateUTC(modifyTimestamp),
          ldapsubentry: ldapsubentry
        });
        allEntries.push(result); // Reset the variables:

        dn = '';
        numSubordinates = '';
        modifyTimestamp = '';
      }
    }); // Process the list of entries.

    oneLevelCallback(allEntries, params, null);
  });
} // Generic search that returns an array of LDAP entries.
// Returns an empty array in case of failure.

function runGenericSearch(params, searchCallback) {
  /* const cmd = [
    'ldapsearch',
    '-LLL',
    '-o',
    'ldif-wrap=no',
    '-Y',
    'EXTERNAL',
    '-b',
    params.baseDn,
    '-H',
    'ldapi://%2fvar%2frun%2fslapd-' + params.serverId + '.socket',
    '-s',
    params.scope,
    params.filter,
    params.attributes
  ]; */
  var cmd = ['/usr/bin/sh', '-c', 'ldapsearch -LLL -o ldif-wrap=no -Y EXTERNAL -b "' + params.baseDn + '" -H ldapi://%2fvar%2frun%2fslapd-' + params.serverId + '.socket' + ' -s ' + params.scope + ' "' + params.filter + '" ' + params.attributes];
  (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("runGenericSearch", "", cmd);
  cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
    superuser: true,
    err: 'message'
  }).done(data => {
    var resulEntries = data.split('\n\n'); // Split by empty line.
    // console.log(`resulEntries = ${resulEntries}`);

    resulEntries.pop(); // Remove the last empty line.

    searchCallback(resulEntries); // console.log(`resulEntries after pop() = ${resulEntries}`);
  }).fail(err => {
    console.log('FAIL err.exit_status ==> ' + err.exit_status);
    console.log('FAIL err.message ==> ' + err.message);
    searchCallback([]);
  });
}
function getMonitoringInfo(serverId, monitorEntryCallback) {
  var cmd = ['ldapsearch', '-LLL', '-o', 'ldif-wrap=no', '-Y', 'EXTERNAL', '-b', 'cn=monitor', '-H', 'ldapi://%2fvar%2frun%2fslapd-' + serverId + '.socket', '-s', 'base', 'version', 'threads', 'currentConnections', 'totalConnections', 'startTime'];
  (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("getMonitoringInfo", "", cmd); // TODO: Use an object
  // monitorObject = {version: version, threads: threads, ...}

  var version = '';
  var threads = '';
  var currentConnections = '';
  var totalConnections = '';
  var startTime = '';
  cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
    superuser: true,
    err: 'message'
  }).done(data => {
    // console.log('SUCCESS ' + data);
    var lines = data.split('\n');
    lines.map(currentLine => {
      if (isAttributeLine(currentLine, 'version:')) {
        version = currentLine.split(':')[1].trim();
      } else if (isAttributeLine(currentLine, 'threads:')) {
        threads = currentLine.split(':')[1].trim(); // console.log('threads = ' + threads);
      } else if (isAttributeLine(currentLine, 'currentConnections:')) {
        currentConnections = currentLine.split(':')[1].trim(); // console.log('currentConnections = ' + currentConnections);
      } else if (isAttributeLine(currentLine, 'totalConnections:')) {
        totalConnections = currentLine.split(':')[1].trim(); // console.log('currentConnections = ' + currentConnections);
      } else if (isAttributeLine(currentLine, 'startTime:')) {
        startTime = currentLine.split(':')[1].trim(); // console.log('startTime = ' + startTime);
      }
    });
    var result = JSON.stringify({
      failed: false,
      version: version,
      threads: threads,
      currentConnections: currentConnections,
      totalConnections: totalConnections,
      startTime: getDateString(startTime)
    });
    monitorEntryCallback(result);
  }).fail(err => {
    console.log('FAIL err.message ==> ' + err.message); // const m1 = JSON.parse(err)
    // const m2 = JSON.parse(err).desc
    // console.log('m1 = ' + m1);
    // console.log('m2 = ' + m2);

    var result = JSON.stringify({
      failed: true,
      errMessage: err.message
    });
    monitorEntryCallback(result);
  });
} // Compute the size of the logs.

function computeLogSize(size) {
  if (size > 0) {
    // const exponent = Math.floor(Math.log(size) / Math.log(1024));
    // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/log
    var value = 1 / Math.log(1024);
    var exponent = Math.floor(Math.log(size) * value);
    return (size / Math.pow(1024, exponent)).toFixed(2) * 1 + ' ' + ['B', 'KB', 'MB', 'GB', 'TB'][exponent];
  } else {
    return '0 B';
  }
}

function listAccessLogs(logDirectory, logListCallback) {
  // export function listAccessLogs (logDirectory) {
  var cmd = ['/usr/bin/sh', '-c', 'cd ' + logDirectory + ' ; ' + 'stat -c "%n %s %U %a" ' + './access* | grep -v access.rotationinfo'];
  (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("listAccessLogs", "", cmd);
  var logDataArray = [];
  cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
    superuser: true,
    err: 'message'
  }).done(data => {
    // console.log('SUCCESS ' + data);
    var lines = data.split('\n');
    lines.map(currentLine => {
      // console.log('currentLine = ' + currentLine);
      if (currentLine.trim() !== '') {
        var info = currentLine.split(' '); // console.log(info[1] + ' ==> ' + computeLogSize(info[1]));

        logDataArray.push({
          name: info[0].substring(2),
          // Remove the './' part.
          size: computeLogSize(info[1]),
          owner: info[2],
          rights: info[3]
        });
      }
    });
  }).fail(err => {
    console.log('FAIL - listAccessLogs() ==> ' + err.message);
  }).always(() => {
    logListCallback(logDataArray);
  });
} // Modify ( or create ) an LDAP entry.

function modifyLdapEntry(params, ldifArray, modifyEntryCallback) {
  var serverId = params.serverId;
  var addOption = params.isAddOp ? '-a' : '';
  var ldifData = '';
  var logLdifData = '';

  if (ldifArray.length === 0) {
    console.log('modifyLdapEntry() ==> Empty array! Nothing to do.');
    return;
  }

  var _iterator = _createForOfIteratorHelper(ldifArray),
      _step;

  try {
    for (_iterator.s(); !(_step = _iterator.n()).done;) {
      var line = _step.value;
      ldifData += "".concat(line, "\n");

      if (line.toLowerCase().startsWith("userpassword")) {
        logLdifData += "userPassword: ********\n";
      } else {
        logLdifData += "".concat(line, "\n");
      }
    }
  } catch (err) {
    _iterator.e(err);
  } finally {
    _iterator.f();
  }

  ;
  var cmd = ['/usr/bin/sh', '-c', "ldapmodify ".concat(addOption, " -Y EXTERNAL -H ") + "ldapi://%2fvar%2frun%2fslapd-".concat(serverId, ".socket ") + // Putting in 3 lines to ease readability.
  '<< END_LDIF\n' + ldifData + 'END_LDIF'];
  var cmd_copy = ['/usr/bin/sh', '-c', "ldapmodify ".concat(addOption, " -Y EXTERNAL -H ") + "ldapi://%2fvar%2frun%2fslapd-".concat(serverId, ".socket ") + // Putting in 3 lines to ease readability.
  '<< END_LDIF\n' + logLdifData + // hides userpassword value from console log
  'END_LDIF'];
  var result = {};
  (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("modifyLdapEntry", "", cmd_copy);
  cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
    superuser: true,
    err: 'message'
  }).done(data => {
    result = {
      errorCode: 0,
      output: data
    };
  }).fail(err => {
    console.log('FAIL - modifyLdapEntry() ==> ' + err.message);
    console.log('Error code (err.exit_status) = ' + err.exit_status);
    var errMessage = '';

    var _iterator2 = _createForOfIteratorHelper(err.message.split('\n')),
        _step2;

    try {
      for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
        var msg = _step2.value;

        if (!msg.startsWith('SASL')) {
          errMessage += msg;
        }
      }
    } catch (err) {
      _iterator2.e(err);
    } finally {
      _iterator2.f();
    }

    result = {
      errorCode: err.exit_status,
      output: errMessage
    };
  }).always(() => {
    modifyEntryCallback(result);
  });
} // Create an LDAP entry.

function createLdapEntry(serverId, ldifArray, createEntryCallback) {
  var params = {
    serverId: serverId,
    isAddOp: true
  };
  modifyLdapEntry(params, ldifArray, createEntryCallback);
} // Retrieve all objectClasses along with their required and optional attributes.

function getAllObjectClasses(serverId, allOcCallback) {
  var cmd = ['dsconf', '--json', 'ldapi://%2fvar%2frun%2fslapd-' + serverId + '.socket', 'schema', 'objectclasses', 'list'];
  var result = [];
  (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("getAllObjectClasses", "", cmd);
  cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
    superuser: true,
    err: 'message'
  }).done(data => {
    var myObject = JSON.parse(data);

    var _iterator3 = _createForOfIteratorHelper(myObject.items),
        _step3;

    try {
      for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
        var oc = _step3.value;
        result.push({
          name: oc.name[0],
          // name[0] is the attribute name in lower case.
          required: oc.must,
          optional: oc.may
        });
      }
    } catch (err) {
      _iterator3.e(err);
    } finally {
      _iterator3.f();
    }
  }).fail(err => {
    console.log('FAIL - getAllObjectClasses - err.message ==> ' + err.message);
  }).always(() => {
    allOcCallback(result);
  });
} // Retrieve the list of attributes that are single-valued.

function getSingleValuedAttributes(serverId, svCallback) {
  var cmd = ['dsconf', '--json', 'ldapi://%2fvar%2frun%2fslapd-' + serverId + '.socket', 'schema', 'attributetypes', 'list'];
  var result = [];
  (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("getSingleValuedAttributes", "", cmd);
  cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
    superuser: true,
    err: 'message'
  }).done(data => {
    var myObject = JSON.parse(data);

    var _iterator4 = _createForOfIteratorHelper(myObject.items),
        _step4;

    try {
      for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
        var attr = _step4.value;

        if (attr.single_value) {
          result.push(attr.name[0]); // name[0] is the attribute name in lower case.
        }
      }
    } catch (err) {
      _iterator4.e(err);
    } finally {
      _iterator4.f();
    }
  }).fail(err => {
    console.log('FAIL - getAttributeList - err.message ==> ' + err.message);
  }).always(() => {
    svCallback(result);
  });
} // Retrieve the names and OID of all attributes.

function getAttributesNameAndOid(serverId, attrCallback) {
  var cmd = ['dsconf', '--json', 'ldapi://%2fvar%2frun%2fslapd-' + serverId + '.socket', 'schema', 'attributetypes', 'list'];
  var result = [];
  (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("getAttributesNameAndOid", "", cmd);
  cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
    superuser: true,
    err: 'message'
  }).done(data => {
    var myObject = JSON.parse(data);

    var _iterator5 = _createForOfIteratorHelper(myObject.items),
        _step5;

    try {
      for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
        var attr = _step5.value;
        result.push([attr.names[0], attr.oid[0]]);
      }
    } catch (err) {
      _iterator5.e(err);
    } finally {
      _iterator5.f();
    }
  }).fail(err => {
    console.log('FAIL - getAttributesNameAndOid - err.message ==> ' + err.message);
  }).always(() => {
    attrCallback(result);
  });
}
function deleteLdapData(serverId, entryDN, numSubordinates, deleteCallback) {
  var cmd = ['ldapdelete', '-Y', 'EXTERNAL', '-H', 'ldapi://%2fvar%2frun%2fslapd-' + serverId + '.socket', entryDN];

  if (numSubordinates > 0) {
    cmd.push('-r'); // Recursive deletion.
  }

  var result = {};
  (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("deleteLdapData", "", cmd);
  cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
    superuser: true,
    err: 'message'
  }).done(data => {
    // console.log('SUCCESS - deleteLdapData() ==> ' + data);
    result = {
      errorCode: 0,
      output: data
    };
  }).fail(err => {
    console.log('FAIL - deleteLdapData() ==> ' + err.message);
    var errMessage = '';

    var _iterator6 = _createForOfIteratorHelper(err.message.split('\n')),
        _step6;

    try {
      for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
        var msg = _step6.value;

        if (!msg.startsWith('SASL')) {
          errMessage += msg;
        }
      }
    } catch (err) {
      _iterator6.e(err);
    } finally {
      _iterator6.f();
    }

    result = {
      errorCode: err.exit_status,
      output: errMessage
    };
  }).always(() => {
    deleteCallback(result);
  });
}
function showCertificate(certificate, showCertCallback) {
  var cmd = ['/usr/bin/sh', '-c', 'echo ' + certificate + ' | base64 --decode | openssl x509 -inform DER -noout -subject -issuer -dates -serial ;' + // ' echo HOST_TIME_GMT=`TZ=GMT date "+%Y-%m-%d %H:%M:%S %Z"` ' // Issue with Firefox and Safari.
  ' echo HOST_TIME_GMT=`TZ=GMT date`'];
  var result = {};
  var certDataArray = [];
  cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
    superuser: true,
    err: 'message'
  }) // .input(decodedCert)
  .done(data => {
    // console.log('SUCCESS - showCertificate() ==> ' + data);
    var lineArray = data.split('\n');
    var certEndTime = 0;
    var hostTime = 0;
    lineArray.map(line => {
      var pos = line.indexOf('=');
      var param = line.substring(0, pos);
      var paramVal = line.substring(pos + 1);

      if (param !== 'HOST_TIME_GMT') {
        certDataArray.push({
          param: param,
          paramVal: paramVal
        });

        if (param === 'notAfter') {
          certEndTime = Date.parse(paramVal);
        }
      } else {
        hostTime = Date.parse(paramVal);
      }
    });
    result = {
      code: 'OK',
      data: certDataArray,
      timeDifference: certEndTime - hostTime
    };
  }).fail(err => {
    console.log('FAIL - showCertificate() ==> ' + err.message);
    result = {
      code: 'FAIL'
    };
  }).always(() => {
    showCertCallback(result);
  });
} // From https://stackoverflow.com/questions/30106476/using-javascripts-atob-to-decode-base64-doesnt-properly-decode-utf-8-strings

function b64DecodeUnicode(str) {
  // Going backwards: from bytestream, to percent-encoding, to original string.
  return decodeURIComponent(atob(str).split('').map(c => {
    return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  }).join(''));
} // Takes a line with an encoded attribute.
// Returns [attribute, decodedValue].

function decodeLine(line) {
  var pos = line.indexOf('::');
  return [line.substring(0, pos), b64DecodeUnicode(line.substring(pos + 2).trim())];
} // Quick and dirty function to retrieve RDN data.

function getRdnInfo(entryDn) {
  var myRdn = '';
  var myArray = entryDn.split(',');

  var _iterator7 = _createForOfIteratorHelper(myArray),
      _step7;

  try {
    for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
      var datum = _step7.value;
      myRdn += datum;

      if (datum.slice(-1) !== '\\') {
        // The separator "," was not escaped. We've hopefully got the RDN.
        break;
      }

      myRdn += ',';
    }
  } catch (err) {
    _iterator7.e(err);
  } finally {
    _iterator7.f();
  }

  var myRdnData = myRdn.split('=');
  return {
    rdnAttr: myRdnData[0],
    rdnVal: myRdnData[1]
  };
} // Create the top entry LDIF data

/*
  Only a limited subset of attributes are supported to create the RDN of a top entry:
  c ==> objectclass country
  cn ==> objectclass nsContainer
  dc ==> objectclass domain
  o ==> objectclass organization
  ou ==> objectclass organizationalUnit
*/

function generateRootEntryLdif(suffixDn, ldifCallback) {
  var rdnObj = getRdnInfo(suffixDn);
  /* let myRdn = '';
  const myArray = suffixDn.split(',');
  for (const datum of myArray) {
    myRdn += datum;
    if (datum.slice(-1) !== '\\') {
      // The separator "," was not escaped. We've got the RDN.
      break;
    }
    myRdn += ',';
  } */

  var myRdnAttr = rdnObj.rdnAttr;
  var myRdnVal = rdnObj.rdnVal;
  var myObjectClass;
  var isValid = true;

  switch (myRdnAttr) {
    case 'c':
      myObjectClass = 'country';
      break;

    case 'cn':
      myObjectClass = 'nsContainer';
      break;

    case 'dc':
      myObjectClass = 'domain';
      break;

    case 'o':
      myObjectClass = 'organization';
      break;

    case 'ou':
      myObjectClass = 'organizationalUnit';
      break;

    default:
      isValid = false;
      console.log("The RDN attribute ".concat(myRdnAttr, " is not supported for root entry creation!"));
  }

  var ldifArray = [];

  if (isValid) {
    ldifArray.push("dn: ".concat(suffixDn));
    ldifArray.push('objectClass: top');
    ldifArray.push("objectClass: ".concat(myObjectClass));
    ldifArray.push("".concat(myRdnAttr, ": ").concat(myRdnVal));
  } else {
    ldifArray.push("The RDN attribute \"".concat(myRdnAttr, "\" is not supported for root entry creation!"));
  }

  ldifCallback(ldifArray);
} // Get all ACIs that apply to a given entry.

function retrieveAllAcis(params, aciCallback) {
  var entryDn = params.baseDn;
  var potentialEntries = [params.baseDn];
  var resultArray = []; // An item will be like {entryDn:<DN>, aciArray:[aci:<ACI_1>,aci:<ACI_2>]}

  var myParams = {
    serverId: params.serverId,
    baseDn: entryDn,
    scope: 'base',
    filter: 'objectClass=*',
    attributes: '1.1 aci'
  };
  runGenericSearch(myParams, result => {
    if (result.length > 0) {
      var myAcis = result[0].split('\n'); // There should be a single result ( base scope search ).

      if (myAcis.length > 1) {
        // The array contains at least 1 ACI.
        myAcis.shift(); // Remove the DN (first element) from the array.

        var actualAcis = myAcis.map(aciLine => {
          var pos = aciLine.indexOf(':');
          var theAci = aciLine.startsWith('aci:: ') ? b64DecodeUnicode(aciLine.substring(pos + 2).trim()) : aciLine.substring(pos + 1).trim();
          return theAci;
        });
        var myBaseDn = myParams.baseDn;
        var myObj = {
          entryDn: myBaseDn,
          aciArray: actualAcis
        };
        resultArray.push(myObj);
      }
    }

    aciCallback(resultArray);
  });
}
function isValidIpAddress(ipAddress) {
  var regexIPv4 = /^(?=(?:[^.]*\.){2,3}[^.]*$)(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){1,3}(?:\.\*)?$/;
  var regexIPv6 = /(?:^|(?<=\s))(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))(?=\s|$)/;
  var result = false;

  if (ipAddress.includes(":")) {
    // IPv6
    result = ipAddress.match(regexIPv6);
  } else {
    // IPv4
    result = ipAddress.match(regexIPv4);
  }

  return result !== null;
}
function isValidHostname(hostname) {
  var regex = /^((\*)[]|((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|((\*\.)?([a-zA-Z0-9-]+\.){0,5}[a-zA-Z0-9-]+\.[a-zA-Z]{2,63}?))$/;
  var result = hostname.match(regex);
  return result !== null;
}
/*
// Encode binary attributes.
export function base64encode (fileName, encodingCallback) {
  const cmd = [
    '/usr/bin/base64',
    fileName
  ];
  const encodedValue = null;
  console.log('Command = ' + cmd.toString());
  cockpit
    .spawn(cmd, { superuser: true, err: 'message' })
    .done(data => {
      encodingCallback(data);
    })
    .fail((err) => {
      console.log('FAIL - base64encode - err.message ==> ' + err.message);
    })
    .always(() => {
      encodingCallback(null);
    });
}
*/
// Fold long LDIF lines and return an array
// containing lines with 78 characters maximum.

function foldLine(line) {
  if (line.length <= _constants_jsx__WEBPACK_IMPORTED_MODULE_2__.LDIF_MAX_CHAR_PER_LINE) {
    return [line];
  }

  var size = Math.ceil(line.length / _constants_jsx__WEBPACK_IMPORTED_MODULE_2__.LDIF_MAX_CHAR_PER_LINE);
  var lineArray = new Array(size); // Handle the first line separately since it doesn't start with a space.

  lineArray[0] = line.substring(0, _constants_jsx__WEBPACK_IMPORTED_MODULE_2__.LDIF_MAX_CHAR_PER_LINE);

  for (var i = 1; i < size; i++) {
    // The continuation character is a single space.
    lineArray[i] = ' ' + line.substring(i * _constants_jsx__WEBPACK_IMPORTED_MODULE_2__.LDIF_MAX_CHAR_PER_LINE, (i + 1) * _constants_jsx__WEBPACK_IMPORTED_MODULE_2__.LDIF_MAX_CHAR_PER_LINE);
  }

  return lineArray;
}
function isValidLDAPUrl(url) {
  if (url.startsWith("ldap:///")) {
    return true;
  }

  return false;
}

/***/ }),

/***/ "./src/lib/ldap_editor/search.jsx":
/*!****************************************!*\
  !*** ./src/lib/ldap_editor/search.jsx ***!
  \****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SearchDatabase": () => (/* binding */ SearchDatabase)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Label/Label.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/ToggleGroup/ToggleGroup.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/ToggleGroup/ToggleGroupItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SearchInput/SearchInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/ExpandableSection/ExpandableSection.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormHelperText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/NumberInput/NumberInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/collapsible.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/info-circle-icon.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_29__);
/* harmony import */ var _lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lib/utils.jsx */ "./src/lib/ldap_editor/lib/utils.jsx");
/* harmony import */ var _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lib/constants.jsx */ "./src/lib/ldap_editor/lib/constants.jsx");
/* harmony import */ var _tableView_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tableView.jsx */ "./src/lib/ldap_editor/tableView.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _wizards_genericWizard_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./wizards/genericWizard.jsx */ "./src/lib/ldap_editor/wizards/genericWizard.jsx");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }











class SearchDatabase extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "processResults", (searchResults, resObj) => {
      var resultRows = [];
      var rowNumber = 0;

      if (searchResults) {
        searchResults.map(aChild => {
          var info = JSON.parse(aChild); // TODO Test for a JPEG photo!!!

          var dn = info.dn;

          if (info.ldapsubentry) {
            dn = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
              className: "ds-info-icon"
            }, info.dn, " ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_6__.InfoCircleIcon, {
              title: "This is a hidden LDAP subentry",
              className: "ds-info-icon"
            }));
          }

          resultRows.push({
            isOpen: false,
            cells: [{
              title: dn
            }, info.numSubordinates, info.modifyTimestamp],
            rawdn: info.dn
          }, {
            parent: rowNumber,
            cells: [{
              title: this.initialResultText
            }]
          }); // Increment by 2 the row number.

          rowNumber += 2;
        });
      } else {
        if (resObj.status !== 0) {
          this.props.addNotification("error", "Error searching the database: ".concat(resObj.msg));
        }
      }

      this.setState({
        searching: false,
        rows: resultRows,
        // Each row is composed of a parent and its single child.
        pagedRows: resultRows.slice(0, 2 * this.state.perPage),
        total: resultRows.length / 2,
        page: 1
      });
    });

    _defineProperty(this, "actionResolver", (rowData, _ref) => {
      var rowIndex = _ref.rowIndex;

      // No action on the children.
      if (rowIndex % 2 === 1) {
        return null;
      }

      var updateActions = [{
        title: 'Search ...',
        onClick: () => {
          this.setState({
            activeTabKey: 2,
            searchBase: rowData.rawdn
          });
        }
      }, {
        title: 'Edit ...',
        onClick: () => {
          this.setState({
            wizardName: _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_2__.ENTRY_MENU.edit,
            wizardEntryDn: rowData.rawdn,
            isWizardOpen: true
          });
        }
      }, {
        title: 'New ...',
        onClick: () => {
          this.setState({
            wizardName: _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_2__.ENTRY_MENU["new"],
            wizardEntryDn: rowData.rawdn,
            isWizardOpen: true
          });
        }
      }, {
        isSeparator: true
      }, {
        title: 'ACIs ...',
        onClick: () => {
          this.setState({
            wizardName: _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_2__.ENTRY_MENU.acis,
            wizardEntryDn: rowData.rawdn,
            isWizardOpen: true
          });
        }
      }, {
        title: 'Roles ...',
        isDisabled: true,
        onClick: (event, rowId, rowData, extra) => {
          // TODO
          console.log("clicked on Third action, on row ".concat(rowId));
          console.log('extra = ' + extra);
        }
      }, {
        title: 'Smart Referrals ...',
        isDisabled: true
      }, {
        isSeparator: true
      }, {
        title: 'Delete',
        onClick: () => {
          this.setState({
            wizardName: _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_2__.ENTRY_MENU["delete"],
            wizardEntryDn: rowData.rawdn,
            isWizardOpen: true
          });
        }
      }];
      return [...updateActions];
    });

    this.state = {
      searching: false,
      loading: false,
      searchBase: "",
      searchFilter: "",
      searchScope: "sub",
      sizeLimit: 2000,
      timeLimit: 30,
      isExpanded: false,
      searchSuffix: "",
      baseDN: "",
      searchType: 'Search Text',
      searchText: "",
      getOperationalAttrs: false,
      total: 0,
      // Search attributes
      cn: true,
      uid: true,
      sn: true,
      givenName: true,
      mail: true,
      displayName: false,
      legalName: false,
      memberOf: false,
      member: false,
      uniqueMember: false,
      customSearchAttrs: [],
      isCustomAttrOpen: false,
      // Table
      columns: [{
        title: 'Entry DN',
        cellFormatters: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.expandable]
      }, {
        title: 'Child Entries'
      }, {
        title: 'Last Modified'
      }],
      rows: [],
      page: 0,
      perPage: 10,
      pagedRows: [],
      loading: false,
      wizardName: '',
      isWizardOpen: false,
      wizardEntryDn: '',
      treeViewRootSuffixes: [] // TODO when aci's are ready (is there a better list of suffixes?)

    };
    this.initialResultText = 'Loading...';

    this.onToggle = isExpanded => {
      this.setState({
        isExpanded
      });
    };

    this.toggleOpenWizard = () => {
      this.setState({
        isWizardOpen: !this.state.isWizardOpen
      });
    }; // Set the operation type and the result code


    this.setWizardOperationInfo = opInfo => {
      // typeAndResult is an object with two fields (opType and result)
      // eg: {operationType: 'MODRDN', resultCode: 0, time: 1613090160492}
      var wizardOperationInfo = _objectSpread({}, opInfo);

      this.setState({
        wizardOperationInfo
      });
    }; // Custom filter attributes


    this.onCustomAttrToggle = isCustomAttrOpen => {
      this.setState({
        isCustomAttrOpen
      });
    };

    this.onCustomAttrClear = () => {
      this.setState({
        customSearchAttrs: [],
        isCustomAttrOpen: false
      });
    };

    this.onCustomAttrChange = selections => {
      this.setState({
        customSearchAttrs: selections,
        isCustomAttrOpen: false
      }, () => {
        this.buildSearchFilter(this.state.searchText);
      });
    };

    this.buildSearchFilter = value => {
      var searchFilter = "";

      if (this.state.searchType === "Search Text") {
        // Build filter from attributes
        //
        // (|(attr1=*VALUE*)(attr2=*VALUE*)...)
        var attrs = [];
        var chkBoxAttrs = ['cn', 'uid', 'sn', 'givenName', 'mail', 'displayName', 'legalName', 'memberOf', 'member', 'uniqueMember'];

        for (var _i = 0, _chkBoxAttrs = chkBoxAttrs; _i < _chkBoxAttrs.length; _i++) {
          var attr = _chkBoxAttrs[_i];

          if (this.state[attr]) {
            attrs.push(attr);
          }
        }

        attrs = attrs.concat(this.state.customSearchAttrs);

        if (attrs.length == 0) {
          return;
        }

        if (attrs.length > 1) {
          searchFilter = "(|";

          var _iterator = _createForOfIteratorHelper(attrs),
              _step;

          try {
            for (_iterator.s(); !(_step = _iterator.n()).done;) {
              var _attr = _step.value;
              searchFilter += "(" + _attr + "=*" + value + "*)";
            }
          } catch (err) {
            _iterator.e(err);
          } finally {
            _iterator.f();
          }

          searchFilter += ")";
        } else {
          searchFilter = "(" + attrs[0] + "=*" + value + "*)";
        }
      } else {
        // Value is the LDAP search filter
        searchFilter = value;
      }

      return searchFilter;
    };

    this.onSearchChange = (value, event) => {
      this.setState({
        searchText: value,
        searchFilter: this.buildSearchFilter(value)
      });
    };

    this.onSearch = () => {
      if (!this.state.searchFilter) {
        return;
      } // Do search


      this.setState({
        isExpanded: false,
        searching: true
      });
      var params = {
        serverId: this.props.serverId,
        searchBase: this.state.searchBase,
        searchFilter: this.state.searchFilter,
        searchScope: this.state.searchScope,
        sizeLimit: this.state.sizeLimit,
        timeLimit: this.state.timeLimit,
        addNotification: this.props.addNotification
      };
      (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.getSearchEntries)(params, this.processResults);
    };

    this.handleSearchTypeClick = (isSelected, event) => {
      var id = event.currentTarget.id;
      this.setState({
        searchType: id,
        searchText: "",
        searchFilter: ""
      });
    };

    this.handleScopeClick = (isSelected, event) => {
      var id = event.currentTarget.id;
      this.setState({
        searchScope: id
      });
    };

    this.maxValue = 20000000;

    this.onMinus = id => {
      this.setState({
        [id]: Number(this.state[id]) - 1
      });
    };

    this.onNumberChange = (event, id, min) => {
      var newValue = isNaN(event.target.value) ? 0 : Number(event.target.value);
      this.setState({
        [id]: newValue > this.maxValue ? this.maxValue : newValue < min ? min : newValue
      });
    };

    this.onPlus = id => {
      this.setState({
        [id]: Number(this.state[id]) + 1
      });
    };

    this.clearSearchBase = () => {
      this.setState({
        searchBase: this.state.searchSuffix
      });
    };

    this.handleChange = this.handleChange.bind(this);
    this.handleSearchChange = this.handleSearchChange.bind(this);
    this.handleSuffixChange = this.handleSuffixChange.bind(this);
    this.handleCustomAttrChange = this.handleCustomAttrChange.bind(this);
    this.getPageData = this.getPageData.bind(this);
    this.processResults = this.processResults.bind(this);
    this.handleCollapse = this.handleCollapse.bind(this);
    this.actionResolver = this.actionResolver.bind(this);
  }

  componentDidMount() {
    var suffixList = this.props.suffixList;
    var searchBase = this.props.searchBase;
    var baseDN = searchBase; // Drop down list of selected suffix

    var _iterator2 = _createForOfIteratorHelper(suffixList),
        _step2;

    try {
      for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
        var suffix = _step2.value;

        if (baseDN.includes(suffix)) {
          baseDN = suffix;
          break;
        }
      }
    } catch (err) {
      _iterator2.e(err);
    } finally {
      _iterator2.f();
    }

    this.setState({
      searchBase: searchBase ? searchBase : suffixList.length > 0 ? suffixList[0] : "",
      searchSuffix: this.props.suffixList.length > 0 ? this.props.suffixList[0] : "",
      baseDN: baseDN
    });
  }

  handleCollapse(event, rowKey, isOpen, data) {
    var pagedRows = this.state.pagedRows;
    pagedRows[rowKey].isOpen = isOpen;
    this.setState({
      pagedRows
    });
    var firstTime = pagedRows[rowKey + 1].cells[0].title === this.initialResultText;

    if (firstTime) {
      var baseDn = pagedRows[rowKey].rawdn; // The DN is the first element in the array.

      (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.getBaseLevelEntryAttributes)(this.props.serverId, baseDn, entryArray => {
        pagedRows[rowKey + 1].cells = [{
          title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, entryArray.map(line => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
            key: line.attribute + line.value
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, line.attribute), line.value.toLowerCase() === ": ldapsubentry" ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", {
            className: "ds-info-color"
          }, line.value) : line.value)))
        }]; // Update the row.

        this.setState({
          pagedRows
        });
      });
    }
  } // Process the entries that are direct children.


  handleCustomAttrChange(value) {
    this.setState({
      customSearchAttrs: value
    });
  }

  handleSearchChange(e) {
    var value = e.target.value;
    this.setState({
      searchType: value
    });
  }

  handleSuffixChange(e) {
    var value = e.target.value;
    this.setState({
      searchSuffix: value,
      searchBase: value,
      baseDN: value
    });
  }

  handleChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value.trim();
    this.setState({
      [e.target.id]: value
    }, () => {
      this.setState({
        searchFilter: this.buildSearchFilter(this.state.searchText)
      });
    });
  }

  getPageData(page, perPage) {
    if (page === 1) {
      var pagedRows = this.state.rows.slice(0, 2 * perPage); // Each parent has a single child.

      this.setState({
        pagedRows,
        perPage,
        page,
        loading: false
      });
    } else {
      // Need the double since each parent has a single child.
      var start = 2 * (page - 1) * perPage;
      var end = 2 * page * perPage;

      var _pagedRows = this.state.rows.slice(start, end);

      for (var i = 0; i < _pagedRows.length - 1; i++) {
        if (i % 2 === 0) {
          _pagedRows[i + 1].parent = i;
        }
      }

      this.setState({
        pagedRows: _pagedRows,
        perPage,
        page,
        loading: false
      });
    }
  }

  render() {
    var _this$props = this.props,
        showModal = _this$props.showModal,
        closeHandler = _this$props.closeHandler,
        logData = _this$props.logData,
        suffixList = _this$props.suffixList;
    var _this$state = this.state,
        baseDN = _this$state.baseDN,
        page = _this$state.page,
        perPage = _this$state.perPage,
        total = _this$state.total,
        searching = _this$state.searching,
        wizardName = _this$state.wizardName,
        isWizardOpen = _this$state.isWizardOpen,
        wizardEntryDn = _this$state.wizardEntryDn;
    var has_rows = true;
    var columns = this.state.columns;
    var pagedRows = this.state.pagedRows;

    if (pagedRows.length == 0) {
      has_rows = false;
      columns = [' '];
      pagedRows = [{
        cells: ['No Search Results']
      }];
    }

    var treeItemsProps = wizardName === 'acis' ? {
      treeViewRootSuffixes: this.state.treeViewRootSuffixes
    } : {};
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, isWizardOpen && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_wizards_genericWizard_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({
      wizardName: wizardName,
      isWizardOpen: isWizardOpen,
      toggleOpenWizard: this.toggleOpenWizard,
      wizardEntryDn: wizardEntryDn,
      editorLdapServer: this.props.serverId
    }, treeItemsProps, {
      setWizardOperationInfo: this.setWizardOperationInfo,
      onReload: this.onSearch,
      allObjectclasses: this.props.allObjectclasses
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Form, {
      className: "ds-margin-top-lg",
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-left"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-container"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextVariants.h3
    }, "Search Database")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-left-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 4
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelect, {
      id: "searchSuffix",
      value: this.state.baseDN,
      onChange: (value, event) => {
        this.handleSuffixChange(event);
      },
      "aria-label": "FormSelect Input",
      className: "ds-instance-select ds-raise-field",
      isDisabled: suffixList.length === 0
    }, suffixList.map((suffix, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.FormSelectOption, {
      key: suffix,
      value: suffix,
      label: suffix
    })), suffixList.length === 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.FormSelectOption, {
      isDisabled: true,
      key: "No database",
      value: "",
      label: "No databases"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 8
    }, this.state.searchSuffix !== this.state.searchBase ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Label, {
      onClose: this.clearSearchBase,
      className: "ds-left-margin",
      color: "blue"
    }, this.state.searchBase) : "")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-left"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-container"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.ToggleGroup, {
      "aria-label": "Default with single selectable"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ToggleGroupItem, {
      title: "Text that will be used with pre-selected attributes to find matching entries.",
      text: "Text",
      buttonId: "Search Text",
      isSelected: this.state.searchType === "Search Text",
      onChange: this.handleSearchTypeClick
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ToggleGroupItem, {
      title: "Specific LDAP search filter for finding entries.",
      text: "Filter",
      buttonId: "Search Filter",
      isSelected: this.state.searchType === "Search Filter",
      onChange: this.handleSearchTypeClick
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.SearchInput, {
      placeholder: this.state.searchType == "Search Text" ? "Enter search text ..." : "Enter an LDAP search filter ...",
      value: this.state.searchText,
      onChange: this.onSearchChange,
      onClear: evt => this.onSearchChange('', evt),
      onSearch: this.onSearch,
      className: "ds-search-input"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.ExpandableSection, {
      className: "ds-margin-left",
      toggleText: this.state.isExpanded ? 'Hide Search Criteria' : 'Show Search Criteria',
      onToggle: this.onToggle,
      isExpanded: this.state.isExpanded,
      displaySize: this.state.isExpanded ? "large" : "default"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-left"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 2,
      className: "ds-label"
    }, "Search Base"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.TextInput, {
      value: this.state.searchBase,
      type: "text",
      id: "searchBase",
      "aria-describedby": "searchBase",
      name: "searchBase",
      onChange: (str, e) => {
        this.handleChange(e);
      },
      validated: !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(this.state.searchBase) ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.ValidatedOptions["default"]
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 2,
      className: "ds-left-margin ds-lower-field-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.FormHelperText, {
      isError: true,
      isHidden: (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(this.state.searchBase)
    }, "Invalid DN syntax"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-left ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 2,
      className: "ds-label"
    }, "Search Scope"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 4
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.ToggleGroup, {
      "aria-label": "search scope"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ToggleGroupItem, {
      text: "Subtree",
      buttonId: "sub",
      isSelected: this.state.searchScope === "sub",
      onChange: this.handleScopeClick,
      title: "Search for entries starting at the search base, and including all its child entries"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ToggleGroupItem, {
      text: "One Level",
      buttonId: "one",
      isSelected: this.state.searchScope === "one",
      onChange: this.handleScopeClick,
      title: "Search for entries starting at the search base, and include only the first level of child entries"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ToggleGroupItem, {
      text: "Base",
      buttonId: "base",
      isSelected: this.state.searchScope === "base",
      onChange: this.handleScopeClick,
      title: "Search for an exact entry (search base). This does not include child entries."
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-left ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 2,
      className: "ds-label"
    }, "Size Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.NumberInput, {
      value: this.state.sizeLimit,
      min: -1,
      max: this.maxValue,
      onMinus: () => {
        this.onMinus("sizeLimit");
      },
      onChange: e => {
        this.onNumberChange(e, "sizeLimit", -1);
      },
      onPlus: () => {
        this.onPlus("sizeLimit");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-left ds-margin-top",
      title: "Search timeout in seconds"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 2,
      className: "ds-label"
    }, "Time Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.NumberInput, {
      value: this.state.timeLimit,
      min: -1,
      max: this.maxValue,
      onMinus: () => {
        this.onMinus("timeLimit");
      },
      onChange: e => {
        this.onNumberChange(e, "timeLimit", -1);
      },
      onPlus: () => {
        this.onPlus("timeLimit");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      hidden: this.state.searchType == "Search Filter"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-left ds-margin-top",
      title: "Only used for Search Text based queries.  The selected attributes will use Search Text as the attribute value in the search filter"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 2,
      className: "ds-label"
    }, "Search Attributes")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-left ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.Checkbox, {
      label: "cn",
      id: "cn",
      isChecked: this.state.cn,
      onChange: (checked, e) => {
        this.handleChange(e);
      },
      "aria-label": "cn"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.Checkbox, {
      label: "uid",
      id: "uid",
      isChecked: this.state.uid,
      onChange: (checked, e) => {
        this.handleChange(e);
      },
      "aria-label": "uid"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.Checkbox, {
      label: "sn",
      id: "sn",
      isChecked: this.state.sn,
      onChange: (checked, e) => {
        this.handleChange(e);
      },
      "aria-label": "sn"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-left ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.Checkbox, {
      label: "givenName",
      id: "givenName",
      isChecked: this.state.givenName,
      onChange: (checked, e) => {
        this.handleChange(e);
      },
      "aria-label": "givenName"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.Checkbox, {
      label: "mail",
      id: "mail",
      isChecked: this.state.mail,
      onChange: (checked, e) => {
        this.handleChange(e);
      },
      "aria-label": "mail"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.Checkbox, {
      label: "displayName",
      id: "displayName",
      isChecked: this.state.displayName,
      onChange: (checked, e) => {
        this.handleChange(e);
      },
      "aria-label": "displayName"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-left ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.Checkbox, {
      label: "legalName",
      id: "legalName",
      isChecked: this.state.legalName,
      onChange: (checked, e) => {
        this.handleChange(e);
      },
      "aria-label": "legalName"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.Checkbox, {
      label: "memberOf",
      id: "memberOf",
      isChecked: this.state.memberOf,
      onChange: (checked, e) => {
        this.handleChange(e);
      },
      "aria-label": "memberOf"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.Checkbox, {
      label: "member",
      id: "member",
      isChecked: this.state.member,
      onChange: (checked, e) => {
        this.handleChange(e);
      },
      "aria-label": "member"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-left ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.Checkbox, {
      label: "uniqueMember",
      id: "uniqueMember",
      isChecked: this.state.uniqueMember,
      onChange: (checked, e) => {
        this.handleChange(e);
      },
      "aria-label": "uniqueMember"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-left ds-margin-top",
      title: "Enter space or comma separateed list of attributes to search."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type attributes to include in filter ...",
      onToggle: this.onCustomAttrToggle,
      onSelect: (e, selection) => {
        this.onCustomAttrChange(selection);
      },
      onClear: this.onCustomAttrClear,
      selections: this.state.customSearchAttrs,
      isOpen: this.state.isCustomAttrOpen,
      "aria-labelledby": "typeAhead-attr-filter",
      placeholderText: "Type attributes to include in the filter ...",
      noResultsFoundText: "There are no matching attributes"
    }, this.props.attributes.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__.SelectOption, {
      key: index,
      value: attr
    }))))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: this.state.searching ? "ds-margin-top-lg ds-center" : "ds-hidden"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextVariants.h3
    }, "Searching ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, this.state.searchBase), " ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__.Spinner, {
      className: "ds-margin-top-lg",
      size: "xl"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: searching ? "ds-hidden" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("center", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("p", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Results:"), " ", total)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_tableView_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
      key: searching,
      loading: searching // Pagination
      ,
      itemCount: total,
      page: page,
      perPage: perPage,
      onSetPage: value => this.getPageData(value, perPage),
      onPerPageSelect: value => this.getPageData(1, value) // Table
      ,
      editorTableRows: pagedRows,
      onCollapse: this.handleCollapse,
      columns: columns,
      actionResolver: pagedRows.length < 2 ? null : this.actionResolver
    }))));
  }

}
SearchDatabase.propTypes = {
  attributes: (prop_types__WEBPACK_IMPORTED_MODULE_29___default().array),
  searchBase: (prop_types__WEBPACK_IMPORTED_MODULE_29___default().string)
};
SearchDatabase.defaultProps = {
  attributes: [],
  searchBase: ""
};

/***/ }),

/***/ "./src/lib/ldap_editor/tableView.jsx":
/*!*******************************************!*\
  !*** ./src/lib/ldap_editor/tableView.jsx ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Pagination/Pagination.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Table.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableTypes.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Header.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Body.js");




class EditorTableView extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {};
  }

  render() {
    var _this$props = this.props,
        instanceList = _this$props.instanceList,
        loading = _this$props.loading;
    var columns = [...this.props.columns];
    var rows = [...this.props.editorTableRows];
    var noBackend = false;

    if (rows.length === 0) {
      columns = ['Database Suffixes'];
      rows = [{
        cells: ['No Databases']
      }];
      noBackend = true;
    }

    var body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-xlg ds-center"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.TextVariants.h3
    }, "Loading ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Spinner, {
      className: "ds-margin-top-lg",
      size: "lg"
    }));

    if (!loading) {
      body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_4__.Table, {
        variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_5__.TableVariant.compact,
        onCollapse: noBackend ? null : this.props.onCollapse,
        rows: rows,
        cells: columns,
        actionResolver: noBackend ? null : this.props.actionResolver,
        "aria-label": "editor table view",
        header: this.props.header ? this.props.header : ""
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.TableBody, null)), !noBackend && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Pagination, {
        id: "ds-addons-editor-view-top",
        className: "ds-margin-top",
        widgetId: "pagination-options-menu-top",
        itemCount: this.props.itemCount,
        page: this.props.page,
        perPage: this.props.perPage,
        onSetPage: (_evt, value) => this.props.onSetPage(value),
        onPerPageSelect: (_evt, value) => this.props.onPerPageSelect(value),
        dropDirection: "up"
      }));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-indent-lg ds-margin-top-lg"
    }, body);
  }

}

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (EditorTableView);

/***/ }),

/***/ "./src/lib/ldap_editor/treeView.jsx":
/*!******************************************!*\
  !*** ./src/lib/ldap_editor/treeView.jsx ***!
  \******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextListItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/Alert.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextList.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Bullseye/Bullseye.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/EmptyState/EmptyState.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/EmptyState/EmptyStateIcon.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Title/Title.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/EmptyState/EmptyStateBody.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownSeparator.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Label/Label.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/AlertGroup/AlertGroup.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/AlertActionCloseButton.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/Card.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardHeader.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardActions.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/Dropdown.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/KebabToggle.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardHeaderMain.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardTitle.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardBody.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardFooter.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Divider/Divider.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/user-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/users-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/domain-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/resources-empty-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/cube-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/catalog-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/sync-alt-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/info-circle-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/arrow-right-icon.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/wrappable.js");
/* harmony import */ var _lib_genericPagination_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lib/genericPagination.jsx */ "./src/lib/ldap_editor/lib/genericPagination.jsx");
/* harmony import */ var _lib_ldapNavigator_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lib/ldapNavigator.jsx */ "./src/lib/ldap_editor/lib/ldapNavigator.jsx");
/* harmony import */ var _lib_rootSuffix_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lib/rootSuffix.jsx */ "./src/lib/ldap_editor/lib/rootSuffix.jsx");
/* harmony import */ var _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lib/constants.jsx */ "./src/lib/ldap_editor/lib/constants.jsx");
/* harmony import */ var _lib_utils_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lib/utils.jsx */ "./src/lib/ldap_editor/lib/utils.jsx");
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }











class EditorTreeView extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "showEntryLoading", isEntryLoading => {
      this.setState({
        searching: isEntryLoading ? true : false
      });
    });

    _defineProperty(this, "showTreeLoadingState", isTreeLoading => {
      this.setState({
        isTreeLoading,
        searching: isTreeLoading ? true : false
      });
    });

    _defineProperty(this, "updateEntryRows", treeViewItem => {
      // Handle the case where a selected entry has been deleted ==> Show an empty table.
      if (treeViewItem === null) {
        this.setState({
          entryRows: this.tableEmtpyStateRow,
          tableModificationTime: Date.now(),
          // Passed as property.
          entryModTime: '',
          // An empty value will not be rendered.
          entryIcon: null,
          entryDn: '',
          // An empty value disables the actions dropdown menu.
          latestEntryRefreshTime: Date.now(),
          searching: false
        });
        return;
      } // Always close the drop down


      this.props.onToggleEntryMenu(false);
      var entryRows = [];
      var isEmptySuffix = treeViewItem.isEmptySuffix;
      var entryIcon = treeViewItem.icon; // Only already set for special suffixes.

      var entryDn = treeViewItem.dn === '' ? 'Root DSE' : treeViewItem.dn;
      var isSuffixEntry = treeViewItem.id === "0";
      var entryModTime = treeViewItem.modTime;
      var fullEntry = treeViewItem.fullEntry;
      var encodedValues = [];
      fullEntry.filter(data => data.attribute + data.value !== '' && // Filter out empty lines
      data.attribute !== '???: ') // and data for empty suffix(es) and in case of failure.
      .map(line => {
        var attr = line.attribute;
        var attrLowerCase = attr.trim().toLowerCase();
        var val = line.value.substring(1);

        if (line.value.substring(0, 2) === '::') {
          if (this.attributesSpecialHandling.includes(attrLowerCase)) {
            // Let the encoded value be added to the table first.
            // Keep the index where the value will be inserted ( current length of the array).
            // Once the decoding is done, insert the decoded value at the relevant index.
            encodedValues.push({
              index: entryRows.length,
              line: line
            });
          } else {
            // TODO: Check why the decoding of 'nssymmetrickey is failing...
            if (attrLowerCase === 'nssymmetrickey') {
              val = line.value.substring(3);
            } else {
              val = (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_5__.b64DecodeUnicode)(line.value.substring(3));
            }
          }
        }

        if (attr.toLowerCase() === "userpassword") {
          val = "********";
        }

        entryRows.push([{
          title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, attr)
        }, val]); // TODO: Use a better logic to assign icons!
        // console.log(`!entryIcon = ${!entryIcon}`);

        if (!entryIcon && attrLowerCase === 'objectclass') {
          // console.log(`val.trim().toLowerCase() = ${val.trim().toLowerCase()}`);
          var myVal = val.trim().toLowerCase();

          if (myVal === 'inetorgperson' || myVal === 'posixaccount' || myVal === 'person') {
            entryIcon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_6__.UserIcon, null);
          } else if (myVal === 'organizationalunit' || myVal === 'groupofuniquenames' || myVal === 'groupofnames') {
            entryIcon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_7__.UsersIcon, null);
          } else if (myVal === 'domain') {
            entryIcon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_8__.DomainIcon, null);
          }
        }
      }); // Set the default icon if needed.

      if (!entryIcon) {
        entryIcon = isEmptySuffix ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_9__.ResourcesEmptyIcon, null) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_10__.CubeIcon, null);
      } // Show a warning message if the entry is truncated.
      // console.log(`fullEntry = ${fullEntry}`);


      var lastLine = fullEntry.length > 0 ? fullEntry.slice(-1).pop() : {};
      var isEntryTooLarge = isEmptySuffix ? false : lastLine.attribute === 'MESSAGE' && lastLine.value === ':ENTRY TOO LARGE - OUTPUT TRUNCATED!'; // Update the rows of the selected entry.

      var entryIsLoading = false;
      var tableModificationTime = Date.now();
      this.setState({
        entryRows,
        entryDn,
        isSuffixEntry,
        entryModTime,
        isEmptySuffix,
        entryIsLoading,
        isEntryTooLarge,
        tableModificationTime,
        entryIcon
      }, () => {
        // Now decode the encoded values.
        // A sample object stored in the variable encodedValues looks like { index: entryRows.length, line: line }
        var finalRows = [...this.state.entryRows];
        var numberDecoded = 0; // console.log(`encodedValues.length = ${encodedValues.length}`);

        encodedValues.map(myObj => {
          var attr = myObj.line.attribute; // console.log('Processing attribute = ' + attr);

          var attrLowerCase = attr.trim().toLowerCase();
          var encVal = myObj.line.value.substring(3); // eg ==> "jpegPhoto:: <VALUE>". Removing 2 colons and 1 space character.

          var decodedValue = encVal; // Show the encoded value in case the decoding fails.
          // See list of attribute types:
          // https://pagure.io/389-ds-console/blob/master/f/src/com/netscape/admin/dirserv/propedit/DSPropertyModel.java

          switch (attrLowerCase) {
            case 'jpegphoto':
              {
                decodedValue = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("img", {
                  src: "data:image/png;base64,".concat(encVal),
                  alt: attr
                })); // Use the picture as an icon:

                var myPhoto = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("img", {
                  src: "data:image/png;base64,".concat(encVal),
                  alt: "" // style={{ width: '24px', height: '24px' }}
                  ,
                  style: {
                    width: '48px'
                  } // height will adjust automatically.

                });
                var newRow = [{
                  title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, attr)
                }, decodedValue];
                finalRows.splice(myObj.index, 1, newRow);
                numberDecoded++;
                this.setState({
                  entryIcon: myPhoto
                });
                break;
              }

            case 'usercertificate':
            case 'usercertificate;binary':
            case 'cacertificate':
            case 'cacertificate;binary':
              (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_5__.showCertificate)(encVal, result => {
                // const dataArray = [];
                if (result.code === 'OK') {
                  var timeDiff = result.timeDifference;
                  var certDays = Math.ceil(Math.abs(timeDiff) / (1000 * 3600 * 24));
                  var dayMsg = certDays > 1 ? "".concat(certDays, " days") : "".concat(certDays, " day");
                  var diffMessage = timeDiff > 0 ? "Certificate is valid for ".concat(dayMsg) : "Certificate is expired since ".concat(dayMsg);
                  var type = timeDiff < 0 ? 'danger' : timeDiff < 1000 * 3600 * 24 * 30 // 30 days.
                  ? 'warning' : 'info';
                  var certItems = result.data.map(datum => {
                    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
                      key: datum.param
                    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextListItem, {
                      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextListItemVariants.dt
                    }, datum.param), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextListItem, {
                      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextListItemVariants.dd
                    }, datum.paramVal));
                  });
                  decodedValue = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Alert, {
                    variant: type,
                    isInline: true,
                    title: diffMessage
                  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextList, {
                    component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextListVariants.dl
                  }, certItems))));
                  var _newRow = [{
                    title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, attr)
                  }, decodedValue];
                  finalRows.splice(myObj.index, 1, _newRow);
                  numberDecoded++;

                  if (encodedValues.length === numberDecoded) {
                    // Caution: We need to update the entryRows here
                    // ( AFTER the decoding of the certificate is completed ).
                    // The decoding is done asynchronously in showCertificate()!
                    this.setState({
                      entryRows: finalRows,
                      tableModificationTime: Date.now()
                    });
                  }
                }
              });
              break;

            default:
              console.log("Got an unexpected line ==> ".concat(myObj.line));
          } // Update the entry table once all encoded attributes have been processed:


          if (encodedValues.length === numberDecoded) {
            this.setState({
              entryRows: finalRows,
              tableModificationTime: Date.now()
            });
          }
        }); // Update the refresh time.

        this.setState({
          latestEntryRefreshTime: Date.now()
        });
        this.showEntryLoading(false);
      });
    });

    this.attributesSpecialHandling = ['jpegphoto', 'usercertificate', 'usercertificate;binary', 'cacertificate', 'cacertificate;binary', 'userpassword'];
    this.tableEmtpyStateRow = [{
      showAnEmptyTable: true,
      // Used in the render() for a quick check.
      heightAuto: true,
      cells: [{
        props: {
          colSpan: 8
        },
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Bullseye, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.EmptyState, {
          variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.EmptyStateVariant.small
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.EmptyStateIcon, {
          icon: _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_9__.ResourcesEmptyIcon
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Title, {
          headingLevel: "h2",
          size: "lg"
        }, "No entry is selected"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.EmptyStateBody, null, "Select an entry to see its details.")))
      }]
    }];
    this.state = {
      alerts: [],
      firstClickOnTree: false,
      searchInput: '',
      rowsValues: [],
      entryColumns: [{
        title: 'Attribute'
      }, // { title: 'Value', transforms: [wrappable] }],
      {
        title: 'Value',
        cellTransforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_20__.breakWord]
      }],
      entryRows: [],
      entryIsLoading: true,
      entryIcon: null,
      entryDn: '',
      isSuffixEntry: false,
      entryModTime: '',
      isEmptySuffix: false,
      showPagination: false,
      isEntryTooLarge: false,
      // To trigger an update in GenericPagination.componentDidUpdate().
      // Maybe just use a random number?
      tableModificationTime: 0,
      showEmptySuffixModal: false,
      newSuffixData: {
        creationDate: 0
      },
      isTreeLoading: false,
      refreshButtonTriggerTime: 0,
      latestEntryRefreshTime: 0,
      searching: false
    };

    this.addAlert = (title, variant, key) => {
      this.setState({
        alerts: [...this.state.alerts, {
          title: title,
          variant: variant,
          key
        }]
      });
    };

    this.removeAlert = key => {
      this.setState({
        alerts: [...this.state.alerts.filter(el => el.key !== key)]
      });
    };

    this.handleNodeOnClick = treeViewItem => {
      if (treeViewItem && treeViewItem.dn === this.state.entryDn) {
        // Clicking on already selected node, just return
        this.updateEntryRows(treeViewItem);
        return;
      }

      this.setState({
        searching: true
      }, () => {
        if (!this.state.firstClickOnTree) {
          this.setState({
            firstClickOnTree: true
          }); // Update the parent state so that the menu option 'Hide Entry Details' is enabled.

          this.props.setTreeFirstClicked(true);
        } // Update the table showing the entry details.


        this.updateEntryRows(treeViewItem);
      });
    };

    this.handleEmptySuffixToggle = resultParams => {
      this.setState(_ref => {
        var showEmptySuffixModal = _ref.showEmptySuffixModal;
        return {
          showEmptySuffixModal: !showEmptySuffixModal
        };
      });

      if (resultParams.message) {
        var creationDate = Date.now();
        this.addAlert(resultParams.message, resultParams.variant, creationDate);

        if (resultParams.variant === 'success') {
          var rootEntryData = resultParams.rootEntryData;
          this.setState({
            newSuffixData: {
              rootEntryData,
              creationDate
            }
          }, () => {
            this.props.onReload(true);
          });
        }
      }
    };
  } // End constructor.


  componentDidMount() {
    this.props.setTreeFirstClicked(false);
  }

  componentDidUpdate(prevProps) {
    // Make sure to hide the entry details after a reload ( when instance selection changes ).
    if (this.props.loading !== prevProps.loading) {
      this.setState({
        firstClickOnTree: false
      });
      this.props.setTreeFirstClicked(false);
    }
  }

  render() {
    var _this$state = this.state,
        alerts = _this$state.alerts,
        searching = _this$state.searching,
        isSuffixEntry = _this$state.isSuffixEntry,
        firstClickOnTree = _this$state.firstClickOnTree,
        entryColumns = _this$state.entryColumns,
        entryRows = _this$state.entryRows,
        entryIcon = _this$state.entryIcon,
        entryDn = _this$state.entryDn,
        entryModTime = _this$state.entryModTime,
        isEmptySuffix = _this$state.isEmptySuffix,
        entryIsLoading = _this$state.entryIsLoading,
        isEntryTooLarge = _this$state.isEntryTooLarge,
        tableModificationTime = _this$state.tableModificationTime,
        showEmptySuffixModal = _this$state.showEmptySuffixModal,
        newSuffixData = _this$state.newSuffixData,
        isTreeLoading = _this$state.isTreeLoading,
        refreshButtonTriggerTime = _this$state.refreshButtonTriggerTime,
        latestEntryRefreshTime = _this$state.latestEntryRefreshTime;
    var loading = this.props.loading;
    var dropdownItems = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.DropdownItem, {
      key: "tree-view-search",
      component: "button",
      name: _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_4__.ENTRY_MENU.search,
      value: entryDn
    }, "Search ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.DropdownSeparator, {
      key: "separator-2"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.DropdownItem, {
      key: "tree-view-edit",
      component: "button",
      name: _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_4__.ENTRY_MENU.edit,
      value: entryDn // TODO: It won't be a good user experience to prevent the edition of large entries...
      // Either increase the limit ( to 2 MB ? ) or retrieve the data and bypass the limit.
      ,
      isDisabled: isEntryTooLarge
    }, "Edit ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.DropdownItem, {
      key: "tree-view-new",
      component: "button",
      name: _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_4__.ENTRY_MENU["new"],
      value: entryDn
    }, "New ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.DropdownItem, {
      key: "tree-view-rename",
      component: "button",
      name: _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_4__.ENTRY_MENU.rename,
      value: entryDn,
      isDisabled: isSuffixEntry
    }, "Rename ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.DropdownItem, {
      key: "tree-view-acis",
      component: "button",
      name: _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_4__.ENTRY_MENU.acis,
      value: entryDn
    }, "ACIs ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.DropdownItem, {
      key: "tree-view-cos",
      component: "button",
      name: _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_4__.ENTRY_MENU.cos,
      value: entryDn
    }, "Class of Service ..."),
    /*#__PURE__*/

    /*
    <DropdownItem
        isDisabled
        key="tree-view-roles"
        component="button"
        name="roles"
        value={entryDn}
    >
        Roles ...
    </DropdownItem>,
    <DropdownItem
        isDisabled
        key="tree-view-refs"
        component="button"
        name="smartRefs"
        value={entryDn}
    >
        Smart Referrals ...
    </DropdownItem>,
    */
    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.DropdownSeparator, {
      key: "separator-3"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.DropdownItem, {
      key: "tree-view-delete",
      component: "button",
      name: _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_4__.ENTRY_MENU["delete"],
      value: entryDn
    }, "Delete ...")];
    var loadingStateComponent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-lg ds-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.Label, {
      icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_24__.CatalogIcon, null),
      color: "blue"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, this.props.treeViewRootSuffixes.length > 1 ? "Suffix Trees" : "Suffix Tree"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Button, {
      variant: "link",
      title: "Refresh all the suffixes",
      icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_26__.SyncAltIcon, null),
      onClick: () => {
        this.props.onReload(true);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-xlg ds-center"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__.TextVariants.h3
    }, "Loading ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__.Spinner, {
      className: "ds-margin-top-lg",
      size: "lg"
    })));
    var finishedAt = new Date();
    finishedAt.setTime(this.props.timeOfCompletion);
    var specialSuffCount = this.props.treeViewRootSuffixes.filter(suff => suff.isSpecial).length;
    var isValidData = entryDn ? true // The entry DN was null or undefined.
    : entryRows[0] ? entryRows[0].showAnEmptyTable // Set to true when an entry is deleted.
    : false; // Got an invalid data for some reason...

    var entryDnLowerCase = isValidData ? entryDn.toLowerCase() : null;
    var page_body = "";

    if (loading) {
      page_body = loadingStateComponent;
    } else {
      page_body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, alerts.length > 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_29__.AlertGroup, {
        isToast: true
      }, alerts.map(_ref2 => {
        var key = _ref2.key,
            variant = _ref2.variant,
            title = _ref2.title;
        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Alert, {
          isLiveRegion: true,
          variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.AlertVariant[variant],
          title: title,
          timeout: true,
          actionClose: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_30__.AlertActionCloseButton, {
            title: "Suffix creation",
            variantLabel: "".concat(variant, " alert"),
            onClose: () => this.removeAlert(key)
          }),
          key: key
        });
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__.Grid, {
        hasGutter: true,
        className: "ds-margin-top-lg ds-indent"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_32__.GridItem, {
        span: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.Label, {
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_24__.CatalogIcon, null),
        color: "blue"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, this.props.treeViewRootSuffixes.length > 1 ? "Suffix Trees" : "Suffix Tree"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Button, {
        variant: "link",
        title: "Refresh all the suffixes",
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_26__.SyncAltIcon, null),
        onClick: () => {
          this.props.onReload(true);
        }
      })), !loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_lib_ldapNavigator_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], {
        key: this.props.loading,
        treeItems: [...this.props.treeViewRootSuffixes],
        timeOfCompletion: this.props.timeOfCompletion,
        editorLdapServer: this.props.editorLdapServer,
        wizardOperationInfo: this.props.wizardOperationInfo,
        newSuffixData: newSuffixData,
        handleNodeOnClick: this.handleNodeOnClick,
        updateEntryRows: this.updateEntryRows,
        refreshEntryTime: this.props.refreshEntryTime,
        showTreeLoadingState: this.showTreeLoadingState,
        refreshButtonTriggerTime: refreshButtonTriggerTime,
        handleEntryRefresh: this.refreshEntry,
        addNotification: this.props.addNotification,
        isDisabled: isTreeLoading
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_32__.GridItem, {
        span: 6
      }, firstClickOnTree && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.Label, {
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_33__.InfoCircleIcon, null),
        color: "blue"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, "Entry Details"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_34__.Tooltip, {
        position: "top",
        content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, "Reload the LDAP entry.")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Button, {
        variant: "link",
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_26__.SyncAltIcon, null),
        onClick: () => this.setState({
          refreshButtonTriggerTime: Date.now()
        })
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
        className: "ds-margin-bottom"
      }), searching && loadingStateComponent, firstClickOnTree && !loading && !searching && isValidData && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_35__.Card, {
        isSelectable: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_36__.CardHeader, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_37__.CardActions, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_38__.Dropdown, {
        onSelect: this.props.onSelectEntryOptions,
        toggle: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_39__.KebabToggle, {
          isDisabled: isEmptySuffix || entryDn === '',
          onToggle: this.props.onToggleEntryMenu
        }),
        isOpen: this.props.entryMenuIsOpen,
        isPlain: true,
        dropdownItems: dropdownItems,
        position: 'right'
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_40__.CardHeaderMain, null, entryIcon), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Title, {
        headingLevel: "h6",
        size: "md"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", null, "\u2002", entryDn))), isEntryTooLarge && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.CardTitle, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.Label, {
        color: "orange",
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_33__.InfoCircleIcon, null)
      }, "Entry is too large - Table is truncated.")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_42__.CardBody, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_lib_genericPagination_jsx__WEBPACK_IMPORTED_MODULE_1__["default"], {
        columns: entryColumns,
        rows: entryRows,
        tableModificationTime: tableModificationTime,
        ariaLabel: "Entry details table with pagination"
      }), isEmptySuffix && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.EmptyState, {
        variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.EmptyStateVariant.small
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.EmptyStateIcon, {
        icon: _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_9__.ResourcesEmptyIcon
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Title, {
        headingLevel: "h2",
        size: "lg"
      }, "Empty suffix!"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.EmptyStateBody, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.Label, {
        variant: "outline",
        color: "orange",
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_33__.InfoCircleIcon, null)
      }, "The suffix is configured, but it has no entries."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Button, {
        className: "ds-margin-top-lg",
        variant: "link",
        onClick: this.handleEmptySuffixToggle
      }, "Create the root suffix entry ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_43__.ArrowRightIcon, null)))), showEmptySuffixModal && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_lib_rootSuffix_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
        showEmptySuffixModal: showEmptySuffixModal,
        handleEmptySuffixToggle: this.handleEmptySuffixToggle,
        suffixDn: entryDn,
        editorLdapServer: this.props.editorLdapServer,
        updateEntryRows: this.updateEntryRows
      })), !isEmptySuffix && entryModTime.length > 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_44__.CardFooter, null, "Last Modified Time: ", entryModTime, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
        className: "ds-margin-bottom-md"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_45__.Divider, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
        className: "ds-margin-bottom-md"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.Label, {
        variant: "outline",
        color: "blue"
      }, "Last Refresh at ", new Date(latestEntryRefreshTime).toLocaleString()), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_34__.Tooltip, {
        position: "top",
        content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, "Reload the LDAP entry.")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Button, {
        variant: "link",
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_26__.SyncAltIcon, null),
        onClick: () => this.setState({
          refreshButtonTriggerTime: Date.now()
        })
      })))))));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, page_body);
  }

}

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (EditorTreeView);

/***/ }),

/***/ "./src/lib/ldap_editor/wizards/aci.jsx":
/*!*********************************************!*\
  !*** ./src/lib/ldap_editor/wizards/aci.jsx ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Pagination/Pagination.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextArea/TextArea.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/sortable.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/collapsible.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/SortColumn.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Table.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableTypes.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Header.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Body.js");
/* harmony import */ var _lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../lib/utils.jsx */ "./src/lib/ldap_editor/lib/utils.jsx");
/* harmony import */ var _lib_aciParser_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../lib/aciParser.jsx */ "./src/lib/ldap_editor/lib/aciParser.jsx");
/* harmony import */ var _operations_aciNew_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./operations/aciNew.jsx */ "./src/lib/ldap_editor/wizards/operations/aciNew.jsx");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../notifications.jsx */ "./src/lib/notifications.jsx");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }










class AciWizard extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "buildAciTable", firstLoad => {
      var params = {
        serverId: this.props.editorLdapServer,
        baseDn: this.props.wizardEntryDn
      };
      (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.retrieveAllAcis)(params, resultArray => {
        var rows = [];
        var columns = [...this.state.columns];
        var actions = this.state.actions;
        var count = 0;

        if (resultArray.length != 0) {
          var myAciArray = [...resultArray[0].aciArray];

          for (var _i = 0, _myAciArray = myAciArray; _i < _myAciArray.length; _i++) {
            var anAci = _myAciArray[_i];
            var aciName = (0,_lib_aciParser_jsx__WEBPACK_IMPORTED_MODULE_2__.getAciActualName)(anAci);
            var aciAllow = (0,_lib_aciParser_jsx__WEBPACK_IMPORTED_MODULE_2__.isAciPermissionAllow)(anAci);
            rows.push({
              isOpen: false,
              cells: [aciName, aciAllow ? "allow" : "deny"],
              fullAci: anAci
            });
            rows.push({
              parent: count,
              fullWidth: true,
              cells: [anAci]
            });
            count += 2;
          }
        }

        this.setState({
          rows: rows,
          columns: columns,
          actions
        }, () => {
          if (!firstLoad) {
            this.props.onReload();
          }
        }); // refreshes table view
      });
    });

    _defineProperty(this, "toggleWizard", () => {
      this.setState({
        isWizardOpen: !this.state.isWizardOpen
      });
    });

    _defineProperty(this, "toggleManual", () => {
      this.setState({
        isManualOpen: !this.state.isManualOpen,
        aciTextNew: "",
        modalSpinning: false
      });
    });

    this.state = {
      firstLoad: true,
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'ACI Name',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_5__.sortable],
        cellFormatters: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.expandable]
      }, {
        title: 'ACI Rule Type',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_5__.sortable]
      }],
      actions: [{
        title: 'Edit ACI',
        onClick: (event, rowId, rowData, extra) => this.showEditAci(rowData)
      }, {
        isSeparator: true
      }, {
        title: 'Remove ACI',
        onClick: (event, rowId, rowData, extra) => this.showDeleteConfirm(rowData)
      }],
      isWizardOpen: false,
      isManualOpen: false,
      showModal: true,
      showConfirmDelete: false,
      modalSpinning: false,
      modalChecked: false,
      showEditAci: false,
      attrName: "",
      aciText: "",
      aciTextNew: ""
    };

    this.onToggle = isOpen => {
      this.setState({
        isOpen
      });
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage,
        page: 1
      });
    };

    this.closeModal = () => {
      this.setState({
        showModal: false
      });
    };

    this.handleChange = e => {
      // Handle the modal changes
      var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
      this.setState({
        [e.target.id]: value
      });
    };

    this.showDeleteConfirm = rowData => {
      this.setState({
        aciText: rowData.fullAci,
        aciName: rowData.cells[0],
        showDeleteConfirm: true,
        modalChecked: false,
        modalSpinning: false
      });
    };

    this.closeDeleteConfirm = rowData => {
      this.setState({
        aciText: "",
        showDeleteConfirm: false,
        modalChecked: false,
        modalSpinning: false
      });
    };

    this.showEditAci = rowData => {
      this.setState({
        aciText: rowData.fullAci,
        aciTextNew: rowData.fullAci,
        showEditAci: true,
        modalChecked: false,
        modalSpinning: false
      });
    };

    this.closeEditAci = () => {
      this.setState({
        showEditAci: false
      });
    };

    this.resetACIText = () => {
      var orig = this.state.aciText;
      this.setState({
        aciTextNew: orig
      });
    };

    this.saveACI = () => {
      var params = {
        serverId: this.props.editorLdapServer
      };
      var ldifArray = [];
      ldifArray.push("dn: ".concat(this.props.wizardEntryDn));
      ldifArray.push('changetype: modify');
      ldifArray.push('delete: aci');
      ldifArray.push("aci: ".concat(this.state.aciText));
      ldifArray.push('-');
      ldifArray.push("add: aci");
      ldifArray.push("aci: ".concat(this.state.aciTextNew));
      this.setState({
        modalSpinning: true
      });
      (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.modifyLdapEntry)(params, ldifArray, result => {
        if (result.errorCode === 0) {
          this.props.addNotification("success", "Successfully replace ACI");
          this.buildAciTable();
        } else {
          this.props.addNotification("error", "Failed to update ACI: error ".concat(result.errorCode, " - ").concat(result.output));
        }

        this.closeEditAci();
        var opInfo = {
          // This is what refreshes treeView
          operationType: 'MODIFY',
          resultCode: result.errorCode,
          time: Date.now()
        };
        this.props.setWizardOperationInfo(opInfo);
      });
    };

    this.deleteACI = () => {
      var params = {
        serverId: this.props.editorLdapServer
      };
      var ldifArray = [];
      ldifArray.push("dn: ".concat(this.props.wizardEntryDn));
      ldifArray.push('changetype: modify');
      ldifArray.push('delete: aci');
      ldifArray.push("aci: ".concat(this.state.aciText));
      this.setState({
        modalSpinning: true
      });
      (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.modifyLdapEntry)(params, ldifArray, result => {
        if (result.errorCode === 0) {
          this.props.addNotification("success", "Successfully removed ACI");
          this.buildAciTable();
        } else {
          this.props.addNotification("error", "Failed to remove ACI: error ".concat(result.errorCode, " - ").concat(result.output));
        }

        this.closeDeleteConfirm();
        var opInfo = {
          // This is what refreshes treeView
          operationType: 'MODIFY',
          resultCode: result.errorCode,
          time: Date.now()
        };
        this.props.setWizardOperationInfo(opInfo);
      });
    };

    this.addAciManual = () => {
      var params = {
        serverId: this.props.editorLdapServer
      };
      var ldifArray = [];
      ldifArray.push("dn: ".concat(this.props.wizardEntryDn));
      ldifArray.push('changetype: modify');
      ldifArray.push("add: aci");
      ldifArray.push("aci: ".concat(this.state.aciTextNew));
      this.setState({
        modalSpinning: true
      });
      (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.modifyLdapEntry)(params, ldifArray, result => {
        if (result.errorCode === 0) {
          this.props.addNotification("success", "Successfully added ACI");
          this.buildAciTable();
        } else {
          this.props.addNotification("error", "Failed to add ACI: error ".concat(result.errorCode, " - ").concat(result.output));
        }

        this.toggleManual();
        var opInfo = {
          // This is what refreshes the treeView
          operationType: 'MODIFY',
          resultCode: result.errorCode,
          time: Date.now()
        };
        this.props.setWizardOperationInfo(opInfo);
      });
    }; // this.buildAciTable = this.buildAciTable.bind(this);


    this.onSort = this.onSort.bind(this);
    this.onCollapse = this.onCollapse.bind(this);
  } // End constructor


  componentDidMount() {
    this.buildAciTable(this.state.firstLoad);
    this.setState({
      firstLoad: false
    });
  }

  onCollapse(event, rowKey, isOpen) {
    var _this$state = this.state,
        rows = _this$state.rows,
        perPage = _this$state.perPage,
        page = _this$state.page;
    var index = perPage * (page - 1) * 2 + rowKey; // Adjust for page set

    rows[index].isOpen = isOpen;
    this.setState({
      rows
    });
  }

  onSort(_event, index, direction) {
    var sorted_rows = [];
    var rows = [];
    var count = 0; // Convert the rows into a sortable array

    var _iterator = _createForOfIteratorHelper(this.state.rows),
        _step;

    try {
      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        var _aci = _step.value;

        if (_aci.cells[1]) {
          sorted_rows.push({
            name: _aci.cells[0],
            type: _aci.cells[1],
            fullAci: _aci.fullAci
          });
        }
      } // Sort the old rows and build new rows

    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }

    if (index === 1) {
      sorted_rows.sort((a, b) => a.name > b.name ? 1 : -1);
    } else {
      sorted_rows.sort((a, b) => a.type > b.type ? 1 : -1);
    }

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.SortByDirection.asc) {
      sorted_rows.reverse();
    }

    for (var _i2 = 0, _sorted_rows = sorted_rows; _i2 < _sorted_rows.length; _i2++) {
      var aci = _sorted_rows[_i2];
      rows.push({
        isOpen: false,
        cells: [aci.name, aci.type],
        fullAci: aci.fullAci
      });
      rows.push({
        parent: count,
        fullWidth: true,
        cells: [aci.fullAci]
      });
      count += 2;
    }

    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: rows,
      page: 1
    });
  }

  render() {
    // We are using an expandable list, so every row has a child row with an
    // index that points back to the parent.  So when we splice the rows for
    // pagination we have to treat each connection as two rows, and we need
    // to rewrite the child's parent index to point to the correct location
    // in the new spliced array
    var _this$state2 = this.state,
        columns = _this$state2.columns,
        rows = _this$state2.rows,
        perPage = _this$state2.perPage,
        page = _this$state2.page,
        sortBy = _this$state2.sortBy,
        showModal = _this$state2.showModal,
        actions = _this$state2.actions,
        modalSpinning = _this$state2.modalSpinning;
    var origRows = [...rows];
    var startIdx = (perPage * page - perPage) * 2;
    var tableRows = origRows.splice(startIdx, perPage * 2);

    for (var idx = 1, count = 0; idx < tableRows.length; idx += 2, count += 2) {
      // Rewrite parent index to match new spliced array
      tableRows[idx].parent = count;
    } // Edit modal


    var btnName = "Save ACI";
    var extraPrimaryProps = {};

    if (modalSpinning) {
      btnName = "Saving ACI ...";
      extraPrimaryProps.spinnerAriaValueText = "Loading";
    }

    var title = "Manage ACI's For " + this.props.wizardEntryDn; // Handle table state

    var cols = columns;

    if (rows.length === 0) {
      tableRows = [{
        cells: ["No ACI's"]
      }];
      cols = [{
        title: 'Access Control Instructions'
      }];
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.ModalVariant.medium,
      className: "ds-modal-select",
      title: title,
      isOpen: showModal,
      onClose: this.closeModal,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Button, {
        key: "acc aci",
        variant: "primary",
        onClick: this.toggleWizard
      }, "Add ACI Wizard"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Button, {
        key: "acc aci manual",
        variant: "primary",
        onClick: this.toggleManual
      }, "Add ACI Manually"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.closeModal
      }, "Close")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.Table, {
      className: "ds=margin-top-lg",
      "aria-label": "Expandable table",
      cells: cols,
      rows: tableRows,
      actions: rows.length > 0 ? actions : null,
      onCollapse: this.onCollapse,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__.TableVariant.compact,
      sortBy: sortBy,
      onSort: this.onSort,
      key: tableRows
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_12__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_13__.TableBody, null)), rows.length > 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Pagination, {
      itemCount: rows.length / 2,
      widgetId: "pagination-options-menu-bottom",
      perPage: perPage,
      page: page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-xlg"
    }), this.state.isWizardOpen && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_operations_aciNew_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
      wizardEntryDn: this.props.wizardEntryDn,
      editorLdapServer: this.props.editorLdapServer,
      onReload: this.props.onReload,
      refreshAciTable: this.buildAciTable,
      isWizardOpen: this.state.isWizardOpen,
      toggleOpenWizard: this.toggleWizard,
      setWizardOperationInfo: this.props.setWizardOperationInfo,
      treeViewRootSuffixes: this.props.treeViewRootSuffixes,
      addNotification: this.props.addNotification
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_4__.DoubleConfirmModal, {
      showModal: this.state.showDeleteConfirm,
      closeHandler: this.closeDeleteConfirm,
      handleChange: this.handleChange,
      actionHandler: this.deleteACI,
      spinning: modalSpinning,
      item: this.state.aciName,
      checked: this.state.modalChecked,
      mTitle: "Delete ACI",
      mMsg: "Are you sure you want to delete this ACI?",
      mSpinningMsg: "Deleting ...",
      mBtnName: "Delete ACI"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.ModalVariant.medium,
      title: "Edit ACI",
      isOpen: this.state.showEditAci,
      onClose: this.closeEditAci,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Button, _extends({
        key: "acc aci",
        variant: "primary",
        onClick: this.saveACI,
        isLoading: modalSpinning,
        spinnerAriaValueText: modalSpinning ? "Loading" : undefined
      }, extraPrimaryProps, {
        isDisabled: this.state.aciText === this.state.aciTextNew
      }), btnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.closeEditAci
      }, "Close")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TextArea, {
      className: "ds-textarea",
      id: "aciTextNew",
      value: this.state.aciTextNew,
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "aci text edit area",
      autoResize: true,
      resizeOrientation: "vertical"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Button, {
      className: "ds-margin-top",
      key: "reset",
      variant: "secondary",
      onClick: this.resetACIText,
      isDisabled: this.state.aciText === this.state.aciTextNew,
      isSmall: true
    }, "Reset ACI")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.ModalVariant.medium,
      title: "Add ACI Manually",
      isOpen: this.state.isManualOpen,
      onClose: this.toggleManual,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Button, _extends({
        key: "acc aci manual add",
        variant: "primary",
        onClick: this.addAciManual,
        isLoading: modalSpinning,
        spinnerAriaValueText: modalSpinning ? "Loading" : undefined
      }, extraPrimaryProps, {
        isDisabled: this.state.aciTextNew === ""
      }), btnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.toggleManual
      }, "Close")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TextArea, {
      className: "ds-textarea",
      id: "aciTextNew",
      value: this.state.aciTextNew,
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "aci text edit area",
      autoResize: true,
      resizeOrientation: "vertical",
      placeholder: "Enter ACI ..."
    })));
  }

}

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AciWizard);

/***/ }),

/***/ "./src/lib/ldap_editor/wizards/cos.jsx":
/*!*********************************************!*\
  !*** ./src/lib/ldap_editor/wizards/cos.jsx ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Radio/Radio.js");
/* harmony import */ var _operations_addCosDefinition_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./operations/addCosDefinition.jsx */ "./src/lib/ldap_editor/wizards/operations/addCosDefinition.jsx");
/* harmony import */ var _operations_addCosTemplate_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./operations/addCosTemplate.jsx */ "./src/lib/ldap_editor/wizards/operations/addCosTemplate.jsx");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }







class CoSEntryWizard extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "handleOnChange", (_, event) => {
      // console.log('event.currentTarget.value = ' + event.currentTarget.value);
      this.setState({
        getStartedStepRadio: event.currentTarget.value
      });
    });

    _defineProperty(this, "createInitialLayout", () => {
      // Creation of a CoS entry
      return [{
        id: 1,
        name: 'Get Started',
        component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
          span: 12
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Text, {
          component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextVariants.h3
        }, "Select CoS Type"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
          span: 12
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextContent, {
          className: "ds-margin-top"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Text, null, "A class of service definition (CoS) shares attributes between entries in a way that is transparent to applications. CoS simplifies entry management and reduces storage requirements."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Text, null, "Clients of the Directory Server read the attributes in a user's entry. With CoS, some attribute values may not be stored within the entry itself. Instead, these attribute values are generated by class of service logic as the entry is sent to the client application.")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Radio, {
          className: "ds-margin-top-lg",
          value: "CoSDefinition",
          isChecked: this.state.getStartedStepRadio === 'CoSDefinition',
          onChange: this.handleOnChange,
          label: "Create a new CoS Definition",
          description: "The CoS definition entry identifies the type of CoS used. The CoS definition entry is below the branch at which it is effective.",
          name: "radio-new-step-start",
          id: "radio-new-step-start-1"
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Radio, {
          className: "ds-margin-top-lg",
          value: "CoSTemplate",
          isChecked: this.state.getStartedStepRadio === 'CoSTemplate',
          onChange: this.handleOnChange,
          label: "Create a new CoS Template",
          description: "The CoS template entry contains a list of the shared attribute values. Changes to the template entry attribute values are automatically applied to all the entries within the scope of the CoS.",
          name: "radio-new-step-start",
          id: "radio-new-step-start-2"
        }))
      }];
    });

    this.state = {
      stepIdReached: 1,
      getStartedStepRadio: 'CoSDefinition'
    };
  }

  render() {
    var getStartedStepRadio = this.state.getStartedStepRadio;
    var initialStep = this.createInitialLayout();
    var wizardProps = {
      isWizardOpen: this.props.isWizardOpen,
      toggleOpenWizard: this.props.toggleOpenWizard,
      wizardEntryDn: this.props.wizardEntryDn,
      editorLdapServer: this.props.editorLdapServer,
      setWizardOperationInfo: this.props.setWizardOperationInfo,
      firstStep: initialStep,
      onReload: this.props.onReload
    };

    if (getStartedStepRadio === 'CoSDefinition') {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_operations_addCosDefinition_jsx__WEBPACK_IMPORTED_MODULE_1__["default"], _extends({}, wizardProps, {
        allObjectclasses: this.props.allObjectclasses,
        treeViewRootSuffixes: this.props.treeViewRootSuffixes,
        createdTemplateDN: "",
        stepReached: 1,
        cosDefName: "",
        cosDefDesc: "",
        cosDefType: "pointer"
      }));
    } else if (getStartedStepRadio === 'CoSTemplate') {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_operations_addCosTemplate_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], _extends({}, wizardProps, {
        allObjectclasses: this.props.allObjectclasses,
        treeViewRootSuffixes: this.props.treeViewRootSuffixes,
        definitionWizardEntryDn: "",
        stepReached: 1
      }));
    }
  }

}

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CoSEntryWizard);

/***/ }),

/***/ "./src/lib/ldap_editor/wizards/deleteOperation.jsx":
/*!*********************************************************!*\
  !*** ./src/lib/ldap_editor/wizards/deleteOperation.jsx ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/Card.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardTitle.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardBody.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/Alert.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/ClipboardCopy/ClipboardCopy.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Switch/Switch.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Wizard/Wizard.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/headerCol.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/users-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/user-icon.js");
/* harmony import */ var _lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../lib/utils.jsx */ "./src/lib/ldap_editor/lib/utils.jsx");






class DeleteOperationWizard extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      alertVariant: 'danger',
      entryLdifData: '',
      numSubordinates: -1,
      ldapsearchCmd: '',
      isAckChecked: false,
      isDelChecked: false,
      commandOutput: '',
      resultVariant: 'default',
      allAttributesSelected: false,
      stepIdReached: 1,
      itemCountAddUser: 0,
      pageAddUser: 1,
      perPageAddUser: 10,
      columnsUser: [{
        title: 'Attribute Name',
        cellTransforms: [(0,_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.headerCol)()]
      }, {
        title: 'From ObjectClass'
      }],
      rowsUser: [],
      pagedRowsUser: [],
      selectedAttributes: ['cn', 'sn'],
      // Values
      noEmptyValue: false,
      columnsValue: ['Attribute', 'Value'],
      rowsValues: [],
      // Review step
      reviewValue: '',
      reviewInvalidText: 'Invalid LDIF',
      reviewIsValid: true,
      reviewValidated: 'default',
      // reviewHelperText: 'LDIF data',
      deleting: true
    };

    this.onNext = _ref => {
      var id = _ref.id;
      this.setState({
        stepIdReached: this.state.stepIdReached < id ? id : this.state.stepIdReached
      }); // Actual deletion step.

      if (id === 4) {
        (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.deleteLdapData)(this.props.editorLdapServer, this.props.wizardEntryDn, this.state.numSubordinates, result => {
          this.setState({
            commandOutput: result.errorCode === 0 ? 'Successfully deleted entry ACI!' : 'Failed to delete entry, error: ' + result.errorCode,
            resultVariant: result.errorCode === 0 ? 'success' : 'danger',
            deleting: false
          }, () => {
            this.props.onReload(); // Refreshes tableView
          });
          var opInfo = {
            // This is what refreshes treeView
            operationType: 'DELETE',
            resultCode: result.errorCode,
            time: Date.now()
          };
          this.props.setWizardOperationInfo(opInfo);
        });
      }
    };

    this.handleChangeAck = isAckChecked => {
      this.setState({
        isAckChecked
      });
    }; // End constructor().

  }

  componentDidMount() {
    (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.getBaseLevelEntryFullAttributes)(this.props.editorLdapServer, this.props.wizardEntryDn, result => {
      if (result !== '') {
        var regex = /^numSubordinates:\s\d+?$/mi;
        var line = result.match(regex);
        var numSubordinates = line ? parseInt(line[0].split(':')[1].trim()) : 0;
        this.setState({
          entryLdifData: result,
          numSubordinates
        });
      }
    });
    var ldapsearchCmd = 'ldapsearch -LLL -o ldif-wrap=no -Y EXTERNAL ' + "-b \"".concat(this.props.wizardEntryDn, "\" ") + "-H ldapi://%2fvar%2frun%2fslapd-".concat(this.props.editorLdapServer, ".socket ") + '"(objectClass=*)" \\* +'; // We should also be searching for objectclass=ldapSubentry, but ldapdelete -r
    // only does a objectclass=* search for its recursive delete

    this.setState({
      ldapsearchCmd
    });
  }

  render() {
    var _this$state = this.state,
        commandOutput = _this$state.commandOutput,
        entryLdifData = _this$state.entryLdifData,
        ldifArray = _this$state.ldifArray,
        columnsValue = _this$state.columnsValue,
        rowsValues = _this$state.rowsValues,
        noEmptyValue = _this$state.noEmptyValue,
        alertVariant = _this$state.alertVariant,
        rdnValue = _this$state.rdnValue,
        numSubordinates = _this$state.numSubordinates,
        resultVariant = _this$state.resultVariant,
        isAckChecked = _this$state.isAckChecked,
        ldapsearchCmd = _this$state.ldapsearchCmd;
    var info = numSubordinates > 0 ? "It has child entries which will also be recursively deleted." : '';
    var entryIcon = numSubordinates > 0 ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_3__.UsersIcon, null) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_4__.UserIcon, null);
    var acknowledgementStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Card, {
      isSelectable: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.CardTitle, null, "Delete Acknowledgement"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.CardBody, null, "You are about to delete this entry. ", info), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.CardBody, null, entryIcon, "\xA0\xA0", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", {
      className: "ds-info-color"
    }, this.props.wizardEntryDn))));
    var nb = -1;
    var ldifLines = entryLdifData.split('\n').map(line => {
      nb++;
      return {
        data: line,
        id: nb
      };
    });
    var ldifDataStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Alert, {
      variant: "info",
      isInline: true,
      title: "LDIF Entry To Be Deleted"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Card, {
      isSelectable: true
    }, numSubordinates > 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.CardBody, null, "Run this command to retrieve the LDAP entries that will be deleted"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.CardBody, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.ClipboardCopy, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.ClipboardCopyVariant.expansion,
      isReadOnly: true,
      hoverTip: "Copy",
      clickTip: "Copied"
    }, ldapsearchCmd))), numSubordinates === 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.CardBody, {
      className: "ds-textarea"
    }, ldifLines.map(line => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("h6", {
      key: line.id
    }, line.data)))));
    var nbToDelete = numSubordinates > 0 ? "This entry, as well as all its child entries," : 'This entry';
    var deletionStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Alert, {
      variant: "danger",
      isInline: true,
      title: "This is an irreversible operation!"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Card, {
      isSelectable: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.CardTitle, null, "Confirm Entry Deletion"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.CardBody, null, nbToDelete, " will be deleted."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.CardBody, null, entryIcon, "\xA0\xA0", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", {
      className: "ds-info-color"
    }, this.props.wizardEntryDn)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.CardBody, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Switch, {
      isDisabled: this.props.wizardEntryDn === '',
      id: "ack-switch",
      label: "Yes, I'm sure.",
      labelOff: "No, don't delete.",
      isChecked: isAckChecked,
      onChange: this.handleChangeAck
    })))));
    var reviewInfo = '';

    if (commandOutput === '') {
      reviewInfo = numSubordinates > 0 ? 'The entries were' : 'The entry was';
      reviewInfo += ' successfully deleted.';
    } else {
      reviewInfo = 'There was an error during the deletion.';
    }

    var delReviewStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-bottom-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Alert, {
      variant: resultVariant,
      title: reviewInfo
    }, commandOutput), this.state.deleting && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-center ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Spinner, {
      size: "xlg"
    })));
    var deleteEntrySteps = [{
      id: 1,
      name: 'Acknowledgement',
      component: acknowledgementStep,
      hideBackButton: true,
      canJumpTo: this.state.stepIdReached >= 1 && this.state.stepIdReached < 4
    }, {
      id: 2,
      name: 'LDIF Data',
      component: ldifDataStep,
      canJumpTo: this.state.stepIdReached >= 2,
      enableNext: this.state.stepIdReached < 4
    }, {
      id: 3,
      name: 'Deletion',
      component: deletionStep,
      nextButtonText: 'Delete',
      enableNext: isAckChecked,
      canJumpTo: this.state.stepIdReached === 3
    }, {
      id: 4,
      name: 'Review',
      component: delReviewStep,
      nextButtonText: 'Finish',
      canJumpTo: this.state.stepIdReached >= 4,
      hideBackButton: true,
      enableNext: !this.state.deleting
    }];
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Wizard, {
      isOpen: this.props.isWizardOpen,
      onClose: this.props.toggleOpenWizard,
      onNext: this.onNext,
      title: numSubordinates === 0 ? 'Delete LDAP Entry' : 'Delete LDAP Entries',
      steps: deleteEntrySteps
    });
  }

}

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DeleteOperationWizard);

/***/ }),

/***/ "./src/lib/ldap_editor/wizards/genericWizard.jsx":
/*!*******************************************************!*\
  !*** ./src/lib/ldap_editor/wizards/genericWizard.jsx ***!
  \*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _aci_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./aci.jsx */ "./src/lib/ldap_editor/wizards/aci.jsx");
/* harmony import */ var _cos_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cos.jsx */ "./src/lib/ldap_editor/wizards/cos.jsx");
/* harmony import */ var _newEntry_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./newEntry.jsx */ "./src/lib/ldap_editor/wizards/newEntry.jsx");
/* harmony import */ var _operations_editLdapEntry_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./operations/editLdapEntry.jsx */ "./src/lib/ldap_editor/wizards/operations/editLdapEntry.jsx");
/* harmony import */ var _operations_renameEntry_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./operations/renameEntry.jsx */ "./src/lib/ldap_editor/wizards/operations/renameEntry.jsx");
/* harmony import */ var _deleteOperation_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./deleteOperation.jsx */ "./src/lib/ldap_editor/wizards/deleteOperation.jsx");
/* harmony import */ var _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../lib/constants.jsx */ "./src/lib/ldap_editor/lib/constants.jsx");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }










class GenericWizard extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  render() {
    var wizardProps = {
      // Properties
      isWizardOpen: this.props.isWizardOpen,
      wizardEntryDn: this.props.wizardEntryDn,
      editorLdapServer: this.props.editorLdapServer,
      // Functions
      toggleOpenWizard: this.props.toggleOpenWizard,
      setWizardOperationInfo: this.props.setWizardOperationInfo,
      onReload: this.props.onReload,
      onModrdnReload: this.props.onModrdnReload,
      addNotification: this.props.addNotification
    };

    switch (this.props.wizardName) {
      case _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_7__.ENTRY_MENU.acis:
        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_aci_jsx__WEBPACK_IMPORTED_MODULE_1__["default"], _extends({}, wizardProps, {
          treeViewRootSuffixes: this.props.treeViewRootSuffixes
        }));

      case _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_7__.ENTRY_MENU["new"]:
        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_newEntry_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], _extends({}, wizardProps, {
          allObjectclasses: this.props.allObjectclasses,
          treeViewRootSuffixes: this.props.treeViewRootSuffixes
        }));

      case _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_7__.ENTRY_MENU.edit:
        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_operations_editLdapEntry_jsx__WEBPACK_IMPORTED_MODULE_4__["default"], _extends({}, wizardProps, {
          allObjectclasses: this.props.allObjectclasses
        }));

      case _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_7__.ENTRY_MENU.rename:
        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_operations_renameEntry_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({}, wizardProps, {
          allObjectclasses: this.props.allObjectclasses,
          treeViewRootSuffixes: this.props.treeViewRootSuffixes
        }));

      case _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_7__.ENTRY_MENU.cos:
        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_cos_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], _extends({}, wizardProps, {
          allObjectclasses: this.props.allObjectclasses,
          treeViewRootSuffixes: this.props.treeViewRootSuffixes
        }));

      case _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_7__.ENTRY_MENU["delete"]:
        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_deleteOperation_jsx__WEBPACK_IMPORTED_MODULE_6__["default"], wizardProps);

      default:
        console.log("Unknown Wizard in GenericWizard class: ".concat(this.props.wizardName));
        return null;
    }
  }

}

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (GenericWizard);

/***/ }),

/***/ "./src/lib/ldap_editor/wizards/newEntry.jsx":
/*!**************************************************!*\
  !*** ./src/lib/ldap_editor/wizards/newEntry.jsx ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/Card.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardTitle.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardBody.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/Alert.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Radio/Radio.js");
/* harmony import */ var _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../lib/constants.jsx */ "./src/lib/ldap_editor/lib/constants.jsx");
/* harmony import */ var _operations_addUser_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./operations/addUser.jsx */ "./src/lib/ldap_editor/wizards/operations/addUser.jsx");
/* harmony import */ var _operations_addGroup_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./operations/addGroup.jsx */ "./src/lib/ldap_editor/wizards/operations/addGroup.jsx");
/* harmony import */ var _operations_addRole_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./operations/addRole.jsx */ "./src/lib/ldap_editor/wizards/operations/addRole.jsx");
/* harmony import */ var _operations_addLdapEntry_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./operations/addLdapEntry.jsx */ "./src/lib/ldap_editor/wizards/operations/addLdapEntry.jsx");
/* harmony import */ var _operations_genericUpdate_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./operations/genericUpdate.jsx */ "./src/lib/ldap_editor/wizards/operations/genericUpdate.jsx");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }










class NewEntryWizard extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "handleOnChange", (_, event) => {
      // console.log('event.currentTarget.value = ' + event.currentTarget.value);
      this.setState({
        getStartedStepRadio: event.currentTarget.value
      });
    });

    _defineProperty(this, "createInitialLayout", () => {
      // console.log(`this.props.createRootEntry = ${this.props.createRootEntry}`);
      // Creation of a root entry.
      if (this.props.createRootEntry) {
        return [{
          id: 1,
          name: 'Get Started',
          component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Card, {
            isSelectable: true
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.CardTitle, null, "Requirement for a root entry creation"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.CardBody, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Alert, {
            variant: "info",
            isInline: true,
            title: "The object class must contain the attribute used to name the suffix."
          })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.CardBody, null, "For example, if the entry corresponds to the suffix ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("code", null, "ou=people,dc=example,dc=com"), ", then choose the ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("code", null, "organizationalUnit"), " object class or another object class that allows the ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("code", null, "ou"), " attribute."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.CardBody, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Alert, {
            variant: "default",
            isInline: true,
            title: "The root entry to create is \"".concat(this.props.entryParentDn, "\"")
          }, "Make sure to select an ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, "ObjectClass"), " that allows or requires the attribute", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, " ", this.props.entryParentDn.split('=')[0]))))
        }];
      } // Creation of a normal (non-root) entry.


      return [{
        id: 1,
        name: 'Get Started',
        component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Radio, {
          value: "User",
          isChecked: this.state.getStartedStepRadio === 'User',
          onChange: this.handleOnChange,
          label: "Create a new User",
          description: "Add a new User (inetOrgPerson objectClass)",
          name: "radio-new-step-start",
          id: "radio-new-step-start-1"
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Radio, {
          className: "ds-margin-top-lg",
          value: "Group",
          isChecked: this.state.getStartedStepRadio === 'Group',
          onChange: this.handleOnChange,
          label: "Create a new Group",
          description: "Add a new Group (GroupOfNames/GroupOfUniqueNames objectClass)",
          name: "group",
          id: "radio-new-step-start-2"
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Radio, {
          className: "ds-margin-top-lg",
          value: "OrganizationalUnit",
          isChecked: this.state.getStartedStepRadio === 'OrganizationalUnit',
          onChange: this.handleOnChange,
          label: "Create a new Organizational Unit",
          description: "Add a new Organizational Unit",
          name: "radio-new-step-start",
          id: "radio-new-step-start-3"
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Radio, {
          className: "ds-margin-top-lg",
          value: "Role",
          isChecked: this.state.getStartedStepRadio === 'Role',
          onChange: this.handleOnChange,
          label: "Create a new Role",
          description: "Add a new Role (Filtered / Managed / Nested)",
          name: "radio-new-step-start",
          id: "radio-new-step-start-4"
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Radio, {
          className: "ds-margin-top-lg",
          value: "Other",
          isChecked: this.state.getStartedStepRadio === 'Other',
          onChange: this.handleOnChange,
          label: "Create a new custom Entry",
          description: "Add a new entry by selecting ObjectClasses and Attributes",
          name: "radio-new-step-start",
          id: "radio-new-step-start-7"
        }))
      }];
    });

    this.state = {
      stepIdReached: 1,
      getStartedStepRadio: 'User'
    };
  }

  render() {
    var getStartedStepRadio = this.state.getStartedStepRadio;
    var initialStep = this.createInitialLayout();
    var wizardProps = {
      isWizardOpen: this.props.isWizardOpen,
      toggleOpenWizard: this.props.toggleOpenWizard,
      wizardEntryDn: this.props.wizardEntryDn,
      editorLdapServer: this.props.editorLdapServer,
      setWizardOperationInfo: this.props.setWizardOperationInfo,
      firstStep: initialStep,
      onReload: this.props.onReload
    };

    if (getStartedStepRadio === 'User') {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_operations_addUser_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], wizardProps);
    } else if (getStartedStepRadio === 'Group') {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_operations_addGroup_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], _extends({}, wizardProps, {
        treeViewRootSuffixes: this.props.treeViewRootSuffixes
      }));
    } else if (getStartedStepRadio === 'Role') {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_operations_addRole_jsx__WEBPACK_IMPORTED_MODULE_4__["default"], _extends({}, wizardProps, {
        treeViewRootSuffixes: this.props.treeViewRootSuffixes
      }));
    } else if (getStartedStepRadio === 'OrganizationalUnit') {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_operations_genericUpdate_jsx__WEBPACK_IMPORTED_MODULE_6__["default"], {
        editorLdapServer: this.props.editorLdapServer,
        entryType: _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_1__.ENTRY_TYPE.ou,
        isWizardOpen: this.props.isWizardOpen,
        toggleOpenWizard: this.props.toggleOpenWizard,
        setWizardOperationInfo: this.props.setWizardOperationInfo,
        wizardEntryDn: this.props.wizardEntryDn,
        firstStep: initialStep,
        onReload: this.props.onReload
      });
    } else {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_operations_addLdapEntry_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], _extends({
        allObjectclasses: this.props.allObjectclasses
      }, wizardProps));
    }
  }

}

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (NewEntryWizard);

/***/ }),

/***/ "./src/lib/ldap_editor/wizards/operations/aciBindRuleTable.jsx":
/*!*********************************************************************!*\
  !*** ./src/lib/ldap_editor/wizards/operations/aciBindRuleTable.jsx ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Table.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableTypes.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Header.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Body.js");




class AciBindRuleTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      columns: ['Bind Rule', 'Comparator', 'LDAP URLs'],
      actions: [{
        title: 'Remove Bind Rule',
        onClick: (event, rowId, rowData, extra) => this.props.removeRow(rowId)
      }],
      rows: []
    };
  }

  componentDidMount() {
    var columns = ['Bind Rule', 'Comparator', 'LDAP URLs'];
    var rows = [...this.props.rows];

    if (this.props.rows.length === 0) {
      columns = ['Bind Rules'];
      rows = [{
        cells: ['No bind rules']
      }];
    }

    this.setState({
      rows: rows,
      columns: columns
    });
  }

  render() {
    var _this$state = this.state,
        columns = _this$state.columns,
        rows = _this$state.rows,
        actions = _this$state.actions;
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.Table, {
      className: "ds-margin-top-lg",
      actions: this.props.rows.length !== 0 ? actions : null,
      "aria-label": "bind rule Table",
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.TableVariant.compact,
      cells: columns,
      rows: rows
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_4__.TableBody, null));
  }

}

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AciBindRuleTable);

/***/ }),

/***/ "./src/lib/ldap_editor/wizards/operations/aciNew.jsx":
/*!***********************************************************!*\
  !*** ./src/lib/ldap_editor/wizards/operations/aciNew.jsx ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerPanelContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerHead.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerActions.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerCloseButton.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/Card.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardBody.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Divider/Divider.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelector.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SearchInput/SearchInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Label/Label.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Drawer/Drawer.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Drawer/DrawerContentBody.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Bullseye/Bullseye.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormHelperText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TimePicker/TimePicker.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextArea/TextArea.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/Alert.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardTitle.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Wizard/Wizard.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/HelperText/HelperText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/HelperText/HelperTextItem.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/sortable.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Table.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Header.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Body.js");
/* harmony import */ var _lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../lib/utils.jsx */ "./src/lib/ldap_editor/lib/utils.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _lib_genericPagination_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../lib/genericPagination.jsx */ "./src/lib/ldap_editor/lib/genericPagination.jsx");
/* harmony import */ var _lib_ldapNavigator_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../lib/ldapNavigator.jsx */ "./src/lib/ldap_editor/lib/ldapNavigator.jsx");
/* harmony import */ var _aciBindRuleTable_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./aciBindRuleTable.jsx */ "./src/lib/ldap_editor/wizards/operations/aciBindRuleTable.jsx");
/* harmony import */ var _patternfly_react_icons_dist_js_icons_info_circle_icon__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-icons/dist/js/icons/info-circle-icon */ "./node_modules/@patternfly/react-icons/dist/js/icons/info-circle-icon.js");
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }















class AddNewAci extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "showTreeLoadingState", isTreeLoading => {
      this.setState({
        isTreeLoading,
        searching: isTreeLoading ? true : false
      });
    });

    _defineProperty(this, "closeAddBindRuleModal", () => {
      this.setState({
        showAddBindRuleModal: false
      });
    });

    _defineProperty(this, "openAddBindRule", () => {
      // Open modal
      this.setState({
        showAddBindRuleModal: true,
        bindRuleType: "userdn",
        bindRuleOperator: "=",
        bindRuleValue: "",
        authmethod: "none",
        authMethodOperator: "=",
        usersChosenOptions: [],
        usersAvailableOptions: [],
        dnsOperator: "=",
        ipOperator: "=",
        dns: "",
        ip: ""
      });
    });

    _defineProperty(this, "updateUserBindRulesState", () => {
      // This is just for checking the userdn. groupdn, and roledn rules
      // so we can control the "Add Rule" form menu options
      var haveUserRules = false;
      var haveUserAttrRules = false;
      var hasSelectionSelection = false;
      var specialSelect = this.state.specialSelection;

      var _iterator = _createForOfIteratorHelper(this.state.bindRuleRows),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var rule = _step.value;

          if (rule.cells[0].endsWith("dn")) {
            haveUserRules = true;

            if (rule.cells[0] === "userdn" && (rule.cells[2] === "ldap:///self" || rule.cells[2] === "ldap:///all" || rule.cells[2] === "ldap:///anyone" || rule.cells[2] === "ldap:///parent")) {
              // Okay we still have a "special entry"
              hasSelectionSelection = true;
            }
          } else if (rule.cells[0] === "userattr") {
            haveUserAttrRules = true;
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      this.setState({
        haveUserRules,
        haveUserAttrRules,
        specialSelection: hasSelectionSelection ? specialSelect : ""
      });
    });

    _defineProperty(this, "doAddBindRule", () => {
      var bindRow = {};
      var selection = this.state.specialSelection;

      if (this.state.bindRuleType === "User DN Aliases") {
        if (selection === "") {
          selection = "ldap:///anyone"; // default option
        }

        bindRow = {
          cells: ["userdn", "=", selection]
        };
      } else if (this.state.bindRuleType === "authmethod") {
        bindRow = {
          cells: ["authmethod", this.state.authMethodOperator, this.state.authmethod]
        };
      } else if (this.state.bindRuleType === "ssf") {
        bindRow = {
          cells: ["ssf", this.state.ssfOperator, this.state.ssf]
        };
      } else if (this.state.bindRuleType === "ip") {
        bindRow = {
          cells: ["ip", this.state.ipOperator, this.state.ip]
        };
      } else if (this.state.bindRuleType === "dns") {
        bindRow = {
          cells: ["dns", this.state.dnsOperator, this.state.dns]
        };
      } else if (this.state.bindRuleType === "userattr") {
        var userattrVal = this.getUserattrVal();
        bindRow = {
          cells: ["userattr", this.state.userattrOperator, userattrVal]
        };
      } else {
        var value = "";

        for (var entryIdx in this.state.usersChosenOptions) {
          if (entryIdx > 0) {
            value += " || ";
          }

          var dn = this.state.usersChosenOptions[entryIdx].props.title;
          value += "ldap:///" + dn;
        }

        bindRow = {
          cells: [this.state.bindRuleType, this.state.bindRuleOperator, value]
        };
      }

      var rows = [...this.state.bindRuleRows];
      rows.push(bindRow);
      this.setState({
        bindRuleRows: rows,
        showAddBindRuleModal: false,
        specialSelection: selection
      }, () => {
        this.updateUserBindRulesState();
      });
    });

    _defineProperty(this, "removeBindRuleRow", rowId => {
      var revisedRows = [];

      for (var idx in this.state.bindRuleRows) {
        if (idx.toString() !== rowId.toString()) {
          revisedRows.push(this.state.bindRuleRows[idx]);
        }
      }

      this.setState({
        bindRuleRows: revisedRows
      }, () => {
        this.updateUserBindRulesState();
      });
    });

    this.rightsColumns = [{
      title: 'Right'
    }, {
      title: 'Description'
    }];
    this.targetsColumns = [{
      title: 'Name',
      transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.sortable]
    }, {
      title: 'OID',
      transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.sortable]
    }];
    this.dayMap = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'];
    this.state = {
      // General
      editVisually: true,
      stepIdReachedVisual: 1,
      savedStepId: 1,
      isAciSyntaxValid: false,
      searchPattern: '',
      newAciName: '',
      isTreeLoading: false,
      searching: false,
      aciText: "",
      aciTextNew: "",
      attributes: [],
      resultVariant: "success",
      commandOutput: "",
      // targets
      target: this.props.wizardEntryDn,
      targetAttrs: [],
      targetAttrCompOp: "=",
      isOpenTargetAttrOperator: false,
      targetFilter: "",
      target_to: "",
      target_from: "",
      // Bind rules
      specialSelection: "",
      bindRuleRows: [],
      haveUserRules: false,
      haveUserAttrRules: false,
      userattrOperator: "=",
      userattrAttr: "",
      userattrBindType: "USERDN",
      userAttrParent0: false,
      userAttrParent1: false,
      userAttrParent2: false,
      userAttrParent3: false,
      userAttrParent4: false,
      authmethod: "none",
      authMethods: [],
      authMethodOperator: "=",
      hosts: [],
      ips: [],
      dayofweek: [],
      sunday: false,
      monday: false,
      tuesday: false,
      wednesday: false,
      thursday: false,
      friday: false,
      saturday: false,
      timeOfDayStart: "0000",
      timeStartCompOp: ">",
      timeOfDayEnd: "0000",
      timeEndCompOp: "<",
      ssf: "",
      ssfOperator: ">=",
      // Users
      usersSearchBaseDn: this.props.wizardEntryDn,
      isSearchRunning: false,
      usersAvailableOptions: [],
      usersChosenOptions: [],
      isUsersDrawerExpanded: false,
      isTargetsDrawerExpanded: false,
      // Rights
      rightType: "allow",
      isOpenRights: false,
      rightsRows: [{
        cells: ['read', 'See the values of targeted attributes'],
        selected: false
      }, {
        cells: ['compare', 'Compare targeted attribute values'],
        selected: false
      }, {
        cells: ['search', 'Determine if targeted attributes exist'],
        selected: false
      }, {
        cells: ['selfwrite', 'Add one\'s own DN to the target'],
        selected: false
      }, {
        cells: ['write', 'Modify targeted attributes'],
        selected: false
      }, {
        cells: ['delete', 'Remove targeted entries'],
        selected: false
      }, {
        cells: ['add', 'Add targeted entries'],
        selected: false
      }, {
        cells: ['moddn', 'Move an entry from one subtree to another'],
        selected: false
      }, {
        cells: ['proxy', 'Authenticate as another user'],
        selected: false
      }],
      // Targets
      targetAttrRows: [],
      sortBy: {},
      tableModificationTime: 0,
      // Add bind rule modal
      showAddBindRuleModal: false,
      bindRuleType: "userdn",
      bindRuleOperator: "=",
      ldapURL: "",
      adding: true
    };

    this.getUserattrVal = () => {
      var _this$state = this.state,
          userAttrParent0 = _this$state.userAttrParent0,
          userAttrParent1 = _this$state.userAttrParent1,
          userAttrParent2 = _this$state.userAttrParent2,
          userAttrParent3 = _this$state.userAttrParent3,
          userAttrParent4 = _this$state.userAttrParent4,
          userattrAttr = _this$state.userattrAttr,
          userattrOperator = _this$state.userattrOperator,
          userattrBindType = _this$state.userattrBindType;
      var inheritVal = "";

      if (userAttrParent1 || userAttrParent2 || userAttrParent3 || userAttrParent4) {
        inheritVal = "parent[0";

        if (userAttrParent1) {
          inheritVal += ",1";
        }

        if (userAttrParent2) {
          inheritVal += ",2";
        }

        if (userAttrParent3) {
          inheritVal += ",3";
        }

        if (userAttrParent4) {
          inheritVal += ",4";
        }

        inheritVal += "].";
      }

      inheritVal += userattrAttr + "#" + userattrBindType;
      return inheritVal;
    };

    this.buildAciText = () => {
      var _this$state2 = this.state,
          bindRuleRows = _this$state2.bindRuleRows,
          dayofweek = _this$state2.dayofweek,
          newAciName = _this$state2.newAciName,
          rightsRows = _this$state2.rightsRows,
          rightType = _this$state2.rightType,
          target_to = _this$state2.target_to,
          target_from = _this$state2.target_from,
          target = _this$state2.target,
          targetAttrs = _this$state2.targetAttrs,
          targetAttrCompOp = _this$state2.targetAttrCompOp,
          targetFilter = _this$state2.targetFilter,
          timeOfDayStart = _this$state2.timeOfDayStart,
          timeStartCompOp = _this$state2.timeStartCompOp,
          timeOfDayEnd = _this$state2.timeOfDayEnd,
          timeEndCompOp = _this$state2.timeEndCompOp,
          sunday = _this$state2.sunday,
          monday = _this$state2.monday,
          tuesday = _this$state2.tuesday,
          wednesday = _this$state2.wednesday,
          thursday = _this$state2.thursday,
          friday = _this$state2.friday,
          saturday = _this$state2.saturday,
          userAttrParent0 = _this$state2.userAttrParent0,
          userAttrParent1 = _this$state2.userAttrParent1,
          userAttrParent2 = _this$state2.userAttrParent2,
          userAttrParent3 = _this$state2.userAttrParent3,
          userAttrParent4 = _this$state2.userAttrParent4;

      if (target == "") {
        this.setState({
          aciText: "??????"
        });
        return;
      } // Process bind rules


      var userDNs = [];
      var groupDNs = [];
      var roleDNs = [];
      var authMethods = [];
      var ssfs = [];
      var ips = [];
      var dns = [];
      var userattr = [];

      var _iterator2 = _createForOfIteratorHelper(bindRuleRows),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var rule = _step2.value;

          if (rule.cells[0] === 'userdn') {
            userDNs.push(rule.cells[0] + rule.cells[1] + '"' + rule.cells[2] + '"');
          } else if (rule.cells[0] === 'groupdn') {
            groupDNs.push(rule.cells[0] + rule.cells[1] + '"' + rule.cells[2] + '"');
          } else if (rule.cells[0] === 'roledn') {
            roleDNs.push(rule.cells[0] + rule.cells[1] + '"' + rule.cells[2] + '"');
          } else if (rule.cells[0] === 'authmethod') {
            authMethods.push(rule.cells[0] + rule.cells[1] + '"' + rule.cells[2] + '"');
          } else if (rule.cells[0] === 'ssf') {
            ssfs.push(rule.cells[0] + rule.cells[1] + '"' + rule.cells[2] + '"');
          } else if (rule.cells[0] === 'ip') {
            ips.push(rule.cells[0] + rule.cells[1] + '"' + rule.cells[2] + '"');
          } else if (rule.cells[0] === 'dns') {
            dns.push(rule.cells[0] + rule.cells[1] + '"' + rule.cells[2] + '"');
          } else if (rule.cells[0] === 'userattr') {
            userattr.push(rule.cells[0] + rule.cells[1] + '"' + this.getUserattrVal() + '"');
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      var aciText = '(target="ldap:///' + target + '")'; // target attrs

      if (targetAttrs.length > 0) {
        aciText += '(targetattr' + targetAttrCompOp + '"';

        for (var attrIdx in targetAttrs) {
          aciText += targetAttrs[attrIdx];

          if (targetAttrs.length > 1 && Number(attrIdx) + 1 < targetAttrs.length) {
            aciText += " || ";
          }
        }

        aciText += '")';
      } else {
        aciText += '(targetattr="*")';
      } // target filter


      if (targetFilter !== "") {
        aciText += '(targetfilter="' + targetFilter + '")';
      } // target from and to


      if (target_from !== "" && target_to !== "") {
        aciText += '(target_from="' + target_from + '")';
        aciText += '(target_to="' + target_to + '")';
      } // middle section of ACI


      aciText += '(version 3.0; acl "' + newAciName + '"; '; // Rights

      var rights = rightsRows.filter(item => item.selected).map(cells => cells.cells[0]).toString();
      aciText += rightType + "(" + rights + ")";
      var brCount = 0; // Bind rules

      for (var _i = 0, _arr = [userDNs, groupDNs, roleDNs, authMethods, ssfs, ips, dns, userattr]; _i < _arr.length; _i++) {
        var bindRule = _arr[_i];

        if (bindRule.length > 0) {
          var many = bindRule.length > 1;

          if (brCount > 0) {
            aciText += ' and ';
          } else {
            aciText += ' ';
          }

          if (many) {
            // Need to group under a single ()
            aciText += "(";
          }

          for (var idx in bindRule) {
            aciText += bindRule[idx];

            if (many && idx < bindRule.length) {
              aciText += " or ";
            }
          }

          if (many > 1) {
            // Need to group rules under single ()
            aciText += ")";
          }

          brCount += 1;
        }
      } // Days of week


      if (sunday || monday || tuesday || wednesday || thursday || friday || saturday) {
        if (brCount > 0) {
          aciText += ' and ';
        } else {
          aciText += ' ';
        }

        var allDays = [sunday, monday, tuesday, wednesday, thursday, friday, saturday];
        var days = [];
        aciText += 'dayofweek="';

        for (var _idx in allDays) {
          if (allDays[_idx]) {
            days.push(this.dayMap[_idx]);
          }
        }

        aciText += days.join(',') + '"';
        brCount += 1;
      } // times


      if (timeOfDayStart !== "0000" || timeOfDayEnd !== "0000") {
        if (brCount > 0) {
          aciText += ' and ';
        } else {
          aciText += ' ';
        }

        aciText += '(timeofday' + timeStartCompOp + '"' + timeOfDayStart + '"';
        aciText += ' and timeofday' + timeEndCompOp + '"' + timeOfDayEnd + '")';
        brCount += 1;
      } // The end


      aciText += ";)";
      this.setState({
        aciText: aciText,
        aciTextNew: aciText
      });
    };

    this.handleSelectedAttrs = attrs => {
      this.setState({
        targetAttrs: attrs
      });
    }; // TODO: Define a generic Drawer component that shows the LDAP tree
    // rather than defining everything twice!!!


    this.usersDrawerRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createRef();
    this.targetsDrawerRef = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createRef(); // Target attr operator

    this.onToggleTargetAttrOp = isOpenTargetAttrOperator => {
      this.setState({
        isOpenTargetAttrOperator
      });
    };

    this.onSelectTargetAttrOp = (event, selection) => {
      this.setState({
        targetAttrCompOp: selection,
        isOpenTargetAttrOperator: false
      });
    }; // rights


    this.onToggleRights = isOpenRights => {
      this.setState({
        isOpenRights
      });
    };

    this.onSelectRights = (event, selection) => {
      this.setState({
        rightType: selection,
        isOpenRights: false
      });
    };

    this.onUsersDrawerExpand = () => {
      this.usersDrawerRef.current && this.usersDrawerRef.current.focus();
    };

    this.onTargetsDrawerExpand = () => {
      this.targetsDrawerRef.current && this.targetsDrawerRef.current.focus();
    };

    this.onUsersDrawerClick = () => {
      var isUsersDrawerExpanded = !this.state.isUsersDrawerExpanded;
      this.setState({
        isUsersDrawerExpanded
      });
    };

    this.onTargetsDrawerClick = () => {
      var isTargetsDrawerExpanded = !this.state.isTargetsDrawerExpanded;
      this.setState({
        isTargetsDrawerExpanded
      });
    };

    this.onUsersDrawerCloseClick = () => {
      this.setState({
        isUsersDrawerExpanded: false
      });
    };

    this.onTargetsDrawerCloseClick = () => {
      this.setState({
        isTargetsDrawerExpanded: false
      });
    };

    this.handleSearchClick = () => {
      if (this.state.isSearchRunning) {// MARK return;
      }

      this.setState({
        isSearchRunning: true,
        usersAvailableOptions: []
      }, this.getEntries);
    };

    this.handleTimeChange = (time_str, id) => {
      var time_val = time_str.replace(":", "");
      this.setState({
        [id]: time_val
      });
    };

    this.getEntries = () => {
      var searchArea = this.state.bindRuleType;
      var baseDn = this.state.usersSearchBaseDn;
      var filter = '';
      var pattern = this.state.searchPattern;

      if (searchArea === 'userdn') {
        filter = pattern === '' ? '(|(objectClass=person)(objectClass=nsPerson)(objectClass=nsAccount)(objectClass=nsOrgPerson)(objectClass=posixAccount))' : "(&(|(objectClass=person)(objectClass=nsPerson)(objectClass=nsAccount)(objectClass=nsOrgPerson)(objectClass=posixAccount))(|(cn=*".concat(pattern, "*)(uid=").concat(pattern, ")))");
      } else if (searchArea === 'groupdn') {
        filter = pattern === '' ? '(|(objectClass=groupofuniquenames)(objectClass=groupofnames))' : "(&(|(objectClass=groupofuniquenames)(objectClass=groupofnames))(cn=*".concat(pattern, "*))");
      } else if (searchArea === 'roledn') {
        filter = pattern === '' ? '(&(objectClass=ldapsubentry)(objectClass=nsRoleDefinition))' : "(&(objectClass=ldapsubentry)(objectClass=nsRoleDefinition)(cn=*".concat(pattern, "*))");
      }

      var params = {
        serverId: this.props.editorLdapServer,
        searchBase: baseDn,
        searchFilter: filter,
        searchScope: 'sub',
        sizeLimit: 2000,
        timeLimit: 5,
        addNotification: this.props.addNotification
      };
      var searchResults = [];
      (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.getSearchEntries)(params, resultArray => {
        var results = resultArray.map(result => {
          var info = JSON.parse(result);
          return info.dn;
        });
        results.sort();
        var newOptionsArray = results.map(entryDN => {
          var rdnInfo = (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.getRdnInfo)(entryDN);
          return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", {
            title: entryDN
          }, rdnInfo.rdnVal);
        });
        this.setState({
          usersAvailableOptions: newOptionsArray,
          isSearchRunning: false
        });
      });
    }; // Rights:


    this.rightsOnSelect = (event, isSelected, rowId) => {
      var rows;

      if (rowId === -1) {
        rows = this.state.rightsRows.map(oneRow => {
          oneRow.selected = isSelected;
          return oneRow;
        });
      } else {
        rows = [...this.state.rightsRows];
        rows[rowId].selected = isSelected;
      }

      this.setState({
        rightsRows: rows
      });
    };

    this.handleSearchPattern = searchPattern => {
      this.setState({
        searchPattern
      });
    };

    this.removeDuplicates = options => {
      var titles = options.map(item => item.props.title);
      var noDuplicates = options.filter((item, index) => {
        return titles.indexOf(item.props.title) === index;
      });
      return noDuplicates;
    };

    this.usersOnListChange = (newAvailableOptions, newChosenOptions) => {
      var newAvailNoDups = this.removeDuplicates(newAvailableOptions);
      var newChosenNoDups = this.removeDuplicates(newChosenOptions);
      this.setState({
        usersAvailableOptions: newAvailNoDups.sort(),
        usersChosenOptions: newChosenNoDups.sort()
      });
    };

    this.handleBaseDnSelection = treeViewItem => {
      this.setState({
        usersSearchBaseDn: treeViewItem.dn
      }, () => {
        if (!treeViewItem.children || treeViewItem.children.length === 0) {
          this.onUsersDrawerCloseClick();
        }
      });
    };

    this.getEntryInfo = () => {
      var params = {
        serverId: this.props.editorLdapServer,
        baseDn: this.props.wizardEntryDn,
        scope: 'base',
        filter: '(|(objectClass=*)(objectClass=ldapSubEntry))',
        attributes: 'numSubordinates'
      };
      (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.runGenericSearch)(params, resArray => {
        var numSub = resArray.length === 1 ? resArray[0].split(':')[1] // TODO: Assume a potential child entry in case of error or no value?
        // That would allow to trigger the search for direct child entry.
        : 1;
      });
    };

    this.onNext = _ref => {
      var id = _ref.id;
      this.setState({
        stepIdReachedVisual: this.state.stepIdReachedVisual < id ? id : this.state.stepIdReachedVisual,
        savedStepId: id
      }, this.buildAciText());

      if (id === 2) {
        if (this.state.targetAttrRows.length > 0) {
          // Data already fetched.
          return;
        } // Populate the table with the schema attribute names and OIDs.


        (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.getAttributesNameAndOid)(this.props.editorLdapServer, resArray => {
          var targetAttrRows = resArray.map(item => {
            return {
              cells: [item[0], item[1]],
              selected: false
            };
          });
          var attributeList = resArray.map(item => {
            return item[0];
          });
          var tableModificationTime = Date.now();
          this.setState({
            attributeList,
            targetAttrRows,
            tableModificationTime
          });
        });
      } else if (id === 9) {
        this.addAciToEntry();
      }
    };

    this.onBackVisual = _ref2 => {
      var id = _ref2.id;
      this.setState({
        savedStepId: id
      });
    };

    this.addAciToEntry = () => {
      var params = {
        serverId: this.props.editorLdapServer
      };
      var ldifArray = [];
      ldifArray.push("dn: ".concat(this.props.wizardEntryDn));
      ldifArray.push('changetype: modify');
      ldifArray.push('add: aci');
      ldifArray.push("aci: ".concat(this.state.aciTextNew));
      this.setState({
        modalSpinning: true
      });
      (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.modifyLdapEntry)(params, ldifArray, result => {
        this.props.refreshAciTable();
        this.setState({
          commandOutput: result.errorCode === 0 ? 'Successfully added ACI!' : 'Failed to add ACI, error: ' + result.errorCode,
          resultVariant: result.errorCode === 0 ? 'success' : 'danger',
          adding: false
        }, () => {
          this.props.onReload();
        }); // refreshes tableView

        var opInfo = {
          // This is what refreshes treeView
          operationType: 'MODIFY',
          resultCode: result.errorCode,
          time: Date.now()
        };
        this.props.setWizardOperationInfo(opInfo);
      });
    };

    this.resetACIText = () => {
      var orig = this.state.aciText;
      this.setState({
        aciTextNew: orig
      });
    };

    this.handleChange = e => {
      var target = e.target;
      var value = target.type === 'checkbox' ? target.checked : target.value;
      var attr = target.id;
      this.setState({
        [attr]: value
      });
    };

    this.handleTextChange = value => {
      this.setState({
        aciTextNew: value
      });
    }; // End constructor()

  }

  render() {
    var _this$state3 = this.state,
        aciText = _this$state3.aciText,
        aciTextNew = _this$state3.aciTextNew,
        authMethods = _this$state3.authMethods,
        bindRuleRows = _this$state3.bindRuleRows,
        bindRuleType = _this$state3.bindRuleType,
        dns = _this$state3.dns,
        ip = _this$state3.ip,
        isAciSyntaxValid = _this$state3.isAciSyntaxValid,
        isHostFilterValid = _this$state3.isHostFilterValid,
        isOpenHostFilter = _this$state3.isOpenHostFilter,
        isSearchRunning = _this$state3.isSearchRunning,
        isUsersDrawerExpanded = _this$state3.isUsersDrawerExpanded,
        ldapURL = _this$state3.ldapURL,
        newAciName = _this$state3.newAciName,
        rightsRows = _this$state3.rightsRows,
        savedStepId = _this$state3.savedStepId,
        searchPattern = _this$state3.searchPattern,
        selectedHostType = _this$state3.selectedHostType,
        sortBy = _this$state3.sortBy,
        stepIdReachedVisual = _this$state3.stepIdReachedVisual,
        tableModificationTime = _this$state3.tableModificationTime,
        target = _this$state3.target,
        target_from = _this$state3.target_from,
        target_to = _this$state3.target_to,
        targetAttrRows = _this$state3.targetAttrRows,
        targetFilter = _this$state3.targetFilter,
        userattrAttr = _this$state3.userattrAttr,
        usersAvailableOptions = _this$state3.usersAvailableOptions,
        usersChosenOptions = _this$state3.usersChosenOptions,
        usersSearchBaseDn = _this$state3.usersSearchBaseDn;
    var aciNameComponent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h3
    }, "Choose a name for this ACI, and set the Target")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-top-xlg",
      hasGutter: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 1,
      className: "ds-label"
    }, "Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 7
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      validated: newAciName === '' ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions["default"],
      id: "newAciName",
      value: newAciName,
      type: "text",
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "Text input ACI name",
      autoComplete: "off"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-top-xlg",
      hasGutter: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 1,
      className: "ds-label"
    }, "Target"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 7
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      validated: target === '' ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions["default"],
      id: "target",
      value: target,
      type: "text",
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "Text input ACI target",
      autoComplete: "off"
    }))));
    var usersPanelContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.DrawerPanelContent, {
      isResizable: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.DrawerHead, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", {
      tabIndex: isUsersDrawerExpanded ? 0 : -1,
      ref: this.usersDrawerRef
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, "LDAP Tree")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.DrawerActions, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.DrawerCloseButton, {
      onClick: this.onUsersDrawerCloseClick
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.Card, {
      isSelectable: true,
      className: "ds-indent ds-margin-bottom-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.CardBody, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_lib_ldapNavigator_jsx__WEBPACK_IMPORTED_MODULE_4__["default"], {
      treeItems: [...this.props.treeViewRootSuffixes],
      editorLdapServer: this.props.editorLdapServer,
      skipLeafEntries: true,
      handleNodeOnClick: this.handleBaseDnSelection,
      showTreeLoadingState: this.showTreeLoadingState
    }))));
    var userDrawerContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Divider, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-bottom-md"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.DualListSelector, {
      availableOptions: usersAvailableOptions,
      chosenOptions: usersChosenOptions,
      availableOptionsTitle: "Available Entries",
      chosenOptionsTitle: "Chosen Entries",
      onListChange: this.usersOnListChange,
      id: "usersSelector",
      className: "ds-aci-dual-select"
    }));
    var usersComponent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, isSearchRunning && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("center", {
      className: "ds-font-size-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.Spinner, {
      size: "sm"
    }), "\xA0\xA0Searching database ..."), !isSearchRunning && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.SearchInput, {
      placeholder: "Search for entries ...",
      value: searchPattern,
      onChange: this.handleSearchPattern,
      onClear: evt => this.handleSearchPattern(''),
      onSearch: this.handleSearchClick,
      className: "ds-search-input"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-bottom-md"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.Label, {
      onClick: this.onUsersDrawerClick,
      href: "#",
      variant: "outline",
      color: "blue",
      icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_info_circle_icon__WEBPACK_IMPORTED_MODULE_24__["default"], null)
    }, "Search Base DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, "\xA0\xA0", usersSearchBaseDn), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Drawer, {
      className: "ds-margin-top",
      isExpanded: isUsersDrawerExpanded,
      onExpand: this.onDrawerExpand
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.DrawerContent, {
      panelContent: usersPanelContent
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__.DrawerContentBody, null, userDrawerContent))));
    var bindRulesComponent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h3
    }, "Define the Bind Rules ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__.Tooltip, {
      position: "bottom",
      content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, "The bind rules in an ACI define the required bind parameters that must meet so that Directory Server applies the ACI. For example user-based access uses the \"userdn\" bind rule, while group access uses \"groupdn\" bind rule.  There are other combinations that are possible, as well as defining the authentication method allowed or the connection security level. Please see the Administration Guide for more information.")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("a", {
      className: "ds-font-size-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_info_circle_icon__WEBPACK_IMPORTED_MODULE_24__["default"], {
      className: "ds-info-icon"
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_aciBindRuleTable_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], {
      key: this.state.bindRuleRows,
      rows: this.state.bindRuleRows,
      removeRow: this.removeBindRuleRow
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_29__.Button, {
      className: "ds-margin-top-lg",
      variant: "primary",
      onClick: this.openAddBindRule,
      isSmall: true
    }, "Add Bind Rule"));
    var rightsComponent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h3
    }, "Choose the Rights to Allow or Deny ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__.Tooltip, {
      position: "bottom",
      content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, "This section defines what permissions and rights are allowed/denied by this ACI.")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("a", {
      className: "ds-font-size-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_info_circle_icon__WEBPACK_IMPORTED_MODULE_24__["default"], {
      className: "ds-info-icon"
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_30__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__.SelectVariant.single,
      className: "ds-margin-top-lg",
      "aria-label": "Select rights",
      onToggle: this.onToggleRights,
      onSelect: this.onSelectRights,
      selections: this.state.rightType,
      isOpen: this.state.isOpenRights
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_32__.SelectOption, {
      key: "allow",
      value: "allow"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_32__.SelectOption, {
      key: "deny",
      value: "deny"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_33__.Table, {
      onSelect: this.rightsOnSelect,
      "aria-label": "Selectable Table User Rights",
      cells: this.rightsColumns,
      rows: rightsRows,
      variant: "compact",
      borders: false,
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_34__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_35__.TableBody, null)));
    var targetAttrComponent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h3
    }, "Choose the Target Attributes ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__.Tooltip, {
      position: "bottom",
      content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, "You can control what entry attributes are affected by an ACI. If no target attributes are defined then all attributes are impacted by the ACI.  It is strongly discouraged to use the comparison operator \"!=\" when defining target attributes because it implicitly allows access all the other attributes in the entry (including operational attributes).  This is a potential unintended security risk. Instead, just use \"=\" to only open up the attributes you want the ACI to allow.")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("a", {
      className: "ds-font-size-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_info_circle_icon__WEBPACK_IMPORTED_MODULE_24__["default"], {
      className: "ds-info-icon"
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-inline ds-font-size-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Comparison Operator")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-inline ds-left-margin ds-raise-field-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_30__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__.SelectVariant.single,
      "aria-label": "Select auth compare operator",
      onToggle: this.onToggleTargetAttrOp,
      onSelect: this.onSelectTargetAttrOp,
      selections: this.state.targetAttrCompOp,
      isOpen: this.state.isOpenTargetAttrOperator
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_32__.SelectOption, {
      key: "targetattrequals",
      value: "="
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_32__.SelectOption, {
      key: "targetattrequals",
      value: "!="
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_lib_genericPagination_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
      columns: this.targetsColumns,
      rows: targetAttrRows,
      actions: null,
      isSelectable: true,
      canSelectAll: false,
      enableSorting: true,
      tableModificationTime: tableModificationTime,
      handleSelectedAttrs: this.handleSelectedAttrs,
      isSearchable: true
    }), targetAttrRows.length === 0 &&
    /*#__PURE__*/
    // <div className="ds-margin-bottom-md" />
    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_36__.Bullseye, {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("center", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.Spinner, {
      size: "lg"
    }))));
    var targetFilterComponent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h3
    }, "Target Filter ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__.Tooltip, {
      position: "bottom",
      content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, "Optionally set an LDAP search filter to further refine which entries this ACI will be applied to. Warning, using targetFilters can impact the server's performance and should be used sparingly.")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("a", {
      className: "ds-font-size-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_info_circle_icon__WEBPACK_IMPORTED_MODULE_24__["default"], {
      className: "ds-info-icon"
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_37__.Form, {
      className: "ds-margin-top-xlg",
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 2,
      className: "ds-label"
    }, "Target Filter"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      id: "targetFilter",
      "aria-label": "Add target filter",
      onChange: (str, e) => {
        this.handleChange(e);
      },
      value: targetFilter,
      validated: targetFilter !== "" && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.valid_filter)(targetFilter) ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_38__.FormHelperText, {
      isError: true,
      isHidden: targetFilter === "" || (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.valid_filter)(targetFilter)
    }, "The filter must be enclosed with parentheses")))));
    var moddnComponent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h3
    }, "Moving Entries ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__.Tooltip, {
      position: "bottom",
      content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, "If you need to control access for moving an entry between specific subtrees then use the target_from and target_to keywords. These keywords use LDAP URL's to specify the database resources/locations: ldap:///uid=*,cn=staging,dc=example,dc=com, ldap:///ou=people,dc=example,dc=com")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("a", {
      className: "ds-font-size-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_info_circle_icon__WEBPACK_IMPORTED_MODULE_24__["default"], {
      className: "ds-info-icon"
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_37__.Form, {
      className: "ds-margin-top-xlg",
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 2,
      className: "ds-label",
      title: "Specifies the entries that can be moved.  Example: ldap:///uid=*,cn=staging,dc=example,dc=com"
    }, "Target From"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      id: "target_from",
      "aria-label": "Add target_from",
      onChange: (str, e) => {
        this.handleChange(e);
      },
      value: target_from,
      validated: target_from !== "" && !(0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.isValidLDAPUrl)(target_from) ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_38__.FormHelperText, {
      isError: true,
      isHidden: target_from === "" || (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.isValidLDAPUrl)(target_from)
    }, "The LDAP URL must start with \"ldap:///\"")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 2,
      className: "ds-label",
      title: "Specifies where the entries can be moved to.  Example: ldap:///ou=people,dc=example,dc=com"
    }, "Target To"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      id: "target_to",
      "aria-label": "Add target_to",
      onChange: (str, e) => {
        this.handleChange(e);
      },
      value: target_to,
      validated: target_to !== "" && !(0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.isValidLDAPUrl)(target_to) ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_38__.FormHelperText, {
      isError: true,
      isHidden: target_to === "" || (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.isValidLDAPUrl)(target_to)
    }, "The LDAP URL must start with \"ldap:///\"")))));
    var timesComponent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h3
    }, "Define Day and Time Restrictions ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__.Tooltip, {
      position: "bottom",
      content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, "These bind rules control access based off of specific days or times. If no days are selected then all the days of the week are assumed.")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("a", {
      className: "ds-font-size-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_info_circle_icon__WEBPACK_IMPORTED_MODULE_24__["default"], {
      className: "ds-info-icon"
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h4
    }, "Choose Days To Allow Access")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top ds-margin-left"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_39__.Checkbox, {
      className: "",
      label: "Sunday",
      isChecked: this.state.sunday,
      onChange: (checked, e) => this.handleChange(e),
      "aria-label": "Sunday",
      id: "sunday"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_39__.Checkbox, {
      className: "",
      label: "Monday",
      isChecked: this.state.monday,
      onChange: (checked, e) => this.handleChange(e),
      "aria-label": "monday",
      id: "monday"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_39__.Checkbox, {
      className: "",
      label: "Tuesday",
      isChecked: this.state.tuesday,
      onChange: (checked, e) => this.handleChange(e),
      "aria-label": "Tuesday",
      id: "tuesday"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_39__.Checkbox, {
      className: "",
      label: "Wednesday",
      isChecked: this.state.wednesday,
      onChange: (checked, e) => this.handleChange(e),
      "aria-label": "wednesday",
      id: "wednesday"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_39__.Checkbox, {
      className: "",
      label: "Thursday",
      isChecked: this.state.thursday,
      onChange: (checked, e) => this.handleChange(e),
      "aria-label": "thursday",
      id: "thursday"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_39__.Checkbox, {
      className: "",
      label: "Friday",
      isChecked: this.state.friday,
      onChange: (checked, e) => this.handleChange(e),
      "aria-label": "friday",
      id: "friday"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_39__.Checkbox, {
      className: "",
      label: "Saturday",
      isChecked: this.state.saturday,
      onChange: (checked, e) => this.handleChange(e),
      "aria-label": "saturday",
      id: "saturday"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h4
    }, "Time Range Restrictions")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-top-lg ds-margin-left"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 2,
      className: "ds-label",
      title: "First part of the time range"
    }, "Time Start"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_40__.FormSelect, {
      id: "timeStartCompOp",
      value: this.state.timeStartCompOp,
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "=",
      label: "=",
      value: "="
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "!=",
      label: "!=",
      value: "!="
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: ">",
      label: ">",
      value: ">"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "<",
      label: "<",
      value: "<"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: ">=",
      label: ">=",
      value: ">="
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "<=",
      label: "<=",
      value: "<="
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_42__.TimePicker, {
      className: "ds-left-margin",
      time: this.state.timeOfDayStart,
      is24Hour: true,
      onChange: val => this.handleTimeChange(val, "timeOfDayStart")
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-top ds-margin-left"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 2,
      className: "ds-label",
      title: "Second part of the time range"
    }, "Time End"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_40__.FormSelect, {
      id: "timeEndCompOp",
      value: this.state.timeEndCompOp,
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "=",
      label: "=",
      value: "="
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "!=",
      label: "!=",
      value: "!="
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: ">",
      label: ">",
      value: ">"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "<",
      label: "<",
      value: "<"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: ">=",
      label: ">=",
      value: ">="
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "<=",
      label: "<=",
      value: "<="
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_42__.TimePicker, {
      className: "ds-left-margin",
      time: this.state.timeOfDayEnd,
      is24Hour: true,
      onChange: val => this.handleTimeChange(val, "timeOfDayEnd")
    }))));
    var reviewComponent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h3
    }, "Review & Edit ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__.Tooltip, {
      position: "bottom",
      content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, "Review the new ACI, and make any edits as needed, but once you edit the ACI you can not go back to the previous wizard steps without undoing your changes.")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("a", {
      className: "ds-font-size-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_info_circle_icon__WEBPACK_IMPORTED_MODULE_24__["default"], {
      className: "ds-info-icon"
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.Card, {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.CardBody, {
      className: "ds-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_43__.TextArea, {
      className: "ds-textarea",
      id: "aciTextNew",
      value: aciTextNew,
      onChange: this.handleTextChange,
      "aria-label": "aci text edit area",
      autoResize: true,
      resizeOrientation: "vertical"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_29__.Button, {
      className: "ds-margin-top",
      key: "undo",
      variant: "primary",
      onClick: this.resetACIText,
      isDisabled: aciText === aciTextNew,
      isSmall: true
    }, "Undo Changes"))));
    var resultComponent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-addons-bottom-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_44__.Alert, {
      variant: this.state.resultVariant,
      isInline: true,
      title: "Result for ACI addition"
    }, this.state.resultVariant === "success" ? "Successfully added ACI" : this.state.commandOutput, this.state.adding && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.Spinner, {
      className: "ds-left-margin",
      size: "md"
    }), "\xA0\xA0Adding ACI ..."))), this.state.resultVariant === 'danger' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.Card, {
      isSelectable: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_45__.CardTitle, null, "ACI Value"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.CardBody, null, aciTextNew)));
    var newAciStepsVisual = [{
      id: 1,
      name: "ACI Name & Target",
      component: aciNameComponent,
      canJumpTo: stepIdReachedVisual >= 1 && aciText === aciTextNew,
      enableNext: newAciName !== "" && target !== ""
    }, {
      id: 2,
      name: 'Target Attributes',
      component: targetAttrComponent,
      canJumpTo: stepIdReachedVisual >= 2 && aciText === aciTextNew
    }, {
      id: 3,
      name: 'Target Filter',
      component: targetFilterComponent,
      canJumpTo: stepIdReachedVisual >= 3 && aciText === aciTextNew,
      enableNext: targetFilter === "" || targetFilter !== "" && (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.valid_filter)(targetFilter)
    }, {
      id: 4,
      name: 'Moving Entries',
      component: moddnComponent,
      canJumpTo: stepIdReachedVisual >= 4 && aciText === aciTextNew,
      enableNext: (target_from === "" || target_from === "" || target_from !== "" && (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.isValidLDAPUrl)(target_from)) && (target_to === "" || target_to === "" || target_to !== "" && (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.isValidLDAPUrl)(target_to)) && (target_to === "" && target_from === "" || target_to !== "" && target_from !== "")
    }, {
      id: 5,
      name: 'Access Rights',
      component: rightsComponent,
      canJumpTo: stepIdReachedVisual >= 5 && aciText === aciTextNew,
      enableNext: rightsRows.filter(item => item.selected).map(cells => cells.cells[0]).toString() !== ""
    }, {
      id: 6,
      name: 'Bind Rules',
      component: bindRulesComponent,
      canJumpTo: stepIdReachedVisual >= 6 && aciText === aciTextNew,
      enableNext: bindRuleRows.length > 0
    }, {
      id: 7,
      name: 'Days & Times',
      component: timesComponent,
      canJumpTo: stepIdReachedVisual >= 7 && aciText === aciTextNew
    }, {
      id: 8,
      name: 'Review & Edit',
      component: reviewComponent,
      nextButtonText: 'Add ACI',
      canJumpTo: stepIdReachedVisual >= 8,
      hideBackButton: this.state.aciText !== this.state.aciTextNew
    }, {
      id: 9,
      name: 'Result',
      component: resultComponent,
      nextButtonText: 'Finish',
      canJumpTo: stepIdReachedVisual >= 9,
      hideBackButton: true,
      enableNext: !this.state.adding
    }];
    var title = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, "ACI: \xA0\xA0", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, this.state.aciText));
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_46__.Wizard, {
      isOpen: this.props.isWizardOpen,
      onClose: this.props.toggleOpenWizard,
      onNext: this.onNext,
      onBack: this.onBackVisual,
      onGoToStep: this.buildAciText,
      startAtStep: savedStepId,
      title: "Add a new Access Control Instruction",
      description: this.state.savedStepId < 2 ? "" : title,
      steps: newAciStepsVisual
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_47__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_47__.ModalVariant.medium,
      title: "Add Bind Rule",
      isOpen: this.state.showAddBindRuleModal,
      onClose: this.closeAddBindRuleModal,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_29__.Button, {
        key: "add",
        variant: "primary",
        onClick: this.doAddBindRule,
        isDisabled: bindRuleType.endsWith("dn") && usersChosenOptions.length === 0 || bindRuleType === "dns" && !(0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.isValidHostname)(dns) || bindRuleType === "ip" && !(0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.isValidIpAddress)(ip) || bindRuleType === "userattr" && userattrAttr === ""
      }, "Add Bind Rule"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_29__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.closeAddBindRuleModal
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Choose Bind Rule"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_40__.FormSelect, {
      id: "bindRuleType",
      value: bindRuleType,
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "FormSelect Input"
    }, this.state.specialSelection === "" && !this.state.haveUserAttrRules && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "userdn",
      label: "User DN (userdn)",
      value: "userdn",
      title: "Bind rules for user entries"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "groupdn",
      label: "Group DN (groupdn)",
      value: "groupdn",
      title: "Bind rules for groups"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "roledn",
      label: "Role DN (roledn)",
      value: "roledn",
      title: "Bind rules for Roles"
    })), !this.state.haveUserRules && !this.state.haveUserAttrRules && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "special",
      label: "User DN Aliases (userdn)",
      value: "User DN Aliases",
      title: "Special bind rules for user DN catagories"
    }), !this.state.haveUserRules && !this.state.haveUserAttrRules && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "userattr",
      label: "User Attribute (userattr)",
      value: "userattr",
      title: "Bind rule to specify which attribute must match between the entry used to bind to the directory and the targeted entry"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "authmethod",
      label: "Authentication Method (authmethod)",
      value: "authmethod",
      title: "Specify the authentication methods to restrict"
    }), this.state.ssf === "" && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "ssf",
      label: "Connection Security (ssf)",
      value: "ssf",
      title: "Specify the connection security strength factor (ssf)"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "ip",
      label: "IP Address (ip)",
      value: "ip",
      title: "Specify an IP address or range to restrict"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "hostname",
      label: "Hostname (dns)",
      value: "dns",
      title: "Specify a hostname or domain to restrict"
    })))), bindRuleType === "User DN Aliases" && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Select Alias URL"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_40__.FormSelect, {
      id: "specialSelection",
      value: this.state.specialSelection,
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "anyone",
      label: "ldap:///anyone",
      value: "ldap:///anyone",
      title: "Grants Anonymous Access"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "all",
      label: "ldap:///all",
      value: "ldap:///all",
      title: "Grants Access to Authenticated Users"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "self",
      label: "ldap:///self",
      value: "ldap:///self",
      title: "Enables Users to Access Their Own Entries"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "parent",
      label: "ldap:///parent",
      value: "ldap:///parent",
      title: "Grants Access for Child Entries of a User"
    })))), bindRuleType.endsWith("dn") && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Choose Comparator"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_40__.FormSelect, {
      id: "bindRuleOperator",
      value: bindRuleType,
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "=",
      label: "=",
      value: "="
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "!=",
      label: "!=",
      value: "!="
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.Card, {
      isSelectable: true,
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.CardBody, null, usersComponent))), bindRuleType === "ip" && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "IP Address"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_40__.FormSelect, {
      id: "ipOperator",
      value: this.state.ipOperator,
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "=",
      label: "=",
      value: "="
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "!=",
      label: "!=",
      value: "!="
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 7,
      className: "ds-left-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      id: "ip",
      "aria-label": "Add IP restriction",
      onChange: (str, e) => {
        this.handleChange(e);
      },
      value: ip,
      autoComplete: "off",
      validated: ip === "" || ip !== "" && !(0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.isValidIpAddress)(ip) ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions["default"]
    }), ip === "" || !(0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.isValidIpAddress)(ip) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_48__.HelperText, {
      className: "ds-left-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_49__.HelperTextItem, {
      variant: "error"
    }, "Invalid format for IP address"))))), bindRuleType === "dns" && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Hostname"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_40__.FormSelect, {
      id: "dnsOperator",
      value: this.state.dnsOperator,
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "=",
      label: "=",
      value: "="
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "!=",
      label: "!=",
      value: "!="
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 7,
      className: "ds-left-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      id: "dns",
      "aria-label": "Add Hostname restriction",
      onChange: (str, e) => {
        this.handleChange(e);
      },
      value: dns,
      validated: dns === "" || dns !== "" && !(0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.isValidHostname)(dns) ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions["default"],
      autoComplete: "off"
    }), dns === "" || !(0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.isValidHostname)(dns) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_48__.HelperText, {
      className: "ds-left-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_49__.HelperTextItem, {
      variant: "error"
    }, "Invalid format for hostname"))))), bindRuleType === "authmethod" && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Authentication Method"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_40__.FormSelect, {
      id: "authMethodOperator",
      value: this.state.authMethodOperator,
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "=",
      label: "=",
      value: "="
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "!=",
      label: "!=",
      value: "!="
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 7,
      className: "ds-left-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_40__.FormSelect, {
      id: "authmethod",
      value: this.state.authmethod,
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "none",
      value: "none",
      label: "none"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "simple",
      value: "simple",
      label: "simple"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "SSL",
      value: "SSL",
      label: "SSL"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "SASL",
      value: "SASL",
      label: "SASL"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "LDAPI",
      value: "LDAPI",
      label: "LDAPI"
    })))), bindRuleType === "ssf" && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 3,
      className: "ds-label",
      title: "Security Strength Factor (ssf) - encryption key strength"
    }, "Connection Security"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_40__.FormSelect, {
      id: "ssfOperator",
      value: this.state.ssfOperator,
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "=",
      label: "=",
      value: "="
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "!=",
      label: "!=",
      value: "!="
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: ">",
      label: ">",
      value: ">"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "<",
      label: "<",
      value: "<"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: ">=",
      label: ">=",
      value: ">="
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "<=",
      label: "<=",
      value: "<="
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 7,
      className: "ds-left-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_40__.FormSelect, {
      id: "ssf",
      value: this.state.ssf,
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "0",
      label: "0",
      value: "0",
      title: "No connection security restrictions"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "128",
      label: "128",
      value: "128"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "192",
      label: "192",
      value: "192"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "256",
      label: "256",
      value: "256"
    })))), bindRuleType === "userattr" && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "User Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_40__.FormSelect, {
      id: "userattrOperator",
      value: this.state.userattrOperator,
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "=",
      label: "=",
      value: "="
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "!=",
      label: "!=",
      value: "!="
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 5,
      className: "ds-left-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_40__.FormSelect, {
      id: "userattrAttr",
      value: this.state.userattrAttr,
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      value: "",
      label: "Select an attribute",
      isPlaceholder: true
    }), this.state.attributeList.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: attr,
      value: attr,
      label: attr
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 2,
      className: "ds-left-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_40__.FormSelect, {
      id: "userattrBindType",
      value: this.state.userattrBindType,
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "USERDN",
      value: "USERDN",
      label: "USERDN"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "GROUPDN",
      value: "GROUPDN",
      label: "GROUPDN"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "ROLEDN",
      value: "ROLEDN",
      label: "ROLEDN"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "SELFDN",
      value: "SELFDN",
      label: "SELFDN"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_41__.FormSelectOption, {
      key: "LDAPURL",
      value: "LDAPURL",
      label: "LDAPURL"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 12,
      className: "ds-margin-top ds-label",
      title: "Extend the application of the ACI several levels below the targeted entry. This is possible by specifying the number of levels below the target that should inherit the ACI."
    }, "Inheritance Levels"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 12,
      className: "ds-left-indent ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_39__.Checkbox, {
      className: "",
      label: "0",
      isChecked: this.state.userAttrParent0,
      onChange: (checked, e) => this.handleChange(e),
      "aria-label": "0",
      id: "userAttrParent0",
      title: "Default value, this userattr bind rule only applies to the target entry (no child entries)."
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_39__.Checkbox, {
      className: "",
      label: "1",
      isChecked: this.state.userAttrParent1,
      onChange: (checked, e) => this.handleChange(e),
      "aria-label": "1",
      id: "userAttrParent1"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_39__.Checkbox, {
      className: "",
      label: "2",
      isChecked: this.state.userAttrParent2,
      onChange: (checked, e) => this.handleChange(e),
      "aria-label": "2",
      id: "userAttrParent2"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_39__.Checkbox, {
      className: "",
      label: "3",
      isChecked: this.state.userAttrParent3,
      onChange: (checked, e) => this.handleChange(e),
      "aria-label": "3",
      id: "userAttrParent3"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_39__.Checkbox, {
      className: "",
      label: "4",
      isChecked: this.state.userAttrParent4,
      onChange: (checked, e) => this.handleChange(e),
      "aria-label": "4",
      id: "userAttrParent4"
    })))));
  }

}

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AddNewAci);

/***/ }),

/***/ "./src/lib/ldap_editor/wizards/operations/addCosDefinition.jsx":
/*!*********************************************************************!*\
  !*** ./src/lib/ldap_editor/wizards/operations/addCosDefinition.jsx ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/Dropdown.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/dropdownConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/BadgeToggle.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleListItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Radio/Radio.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Label/Label.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SearchInput/SearchInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleList.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/Card.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardBody.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Bullseye/Bullseye.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/Alert.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardTitle.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Wizard/Wizard.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/sortable.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/headerCol.js");
/* harmony import */ var _lib_ldapNavigator_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../lib/ldapNavigator.jsx */ "./src/lib/ldap_editor/lib/ldapNavigator.jsx");
/* harmony import */ var _lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../lib/utils.jsx */ "./src/lib/ldap_editor/lib/utils.jsx");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/info-circle-icon.js");
/* harmony import */ var _addCosTemplate_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./addCosTemplate.jsx */ "./src/lib/ldap_editor/wizards/operations/addCosTemplate.jsx");
/* harmony import */ var _lib_genericPagination_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../lib/genericPagination.jsx */ "./src/lib/ldap_editor/lib/genericPagination.jsx");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }










class AddCoS extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "onSetpageAddCoS", (_event, pageNumber) => {
      this.setState({
        pageAddCoS: pageNumber,
        pagedRowsCoS: this.getAttributesToShow(pageNumber, this.state.perpageAddCoS)
      });
    });

    _defineProperty(this, "onPerPageSelectAddCoS", (_event, perPage) => {
      this.setState({
        pageAddCoS: 1,
        perpageAddCoS: perPage,
        pagedRowsCoS: this.getAttributesToShow(1, perPage)
      });
    });

    _defineProperty(this, "isAttributeSingleValued", attr => {
      return this.singleValuedAttributes.includes(attr);
    });

    _defineProperty(this, "isAttributeRequired", attr => {
      return this.requiredAttributes.includes(attr);
    });

    _defineProperty(this, "onSelect", (event, isSelected, rowId) => {
      var rows;
      var selectedAttributes;

      if (rowId === -1) {
        // Process the full table entries ( rowsCoS )
        rows = this.state.rowsCoS.map(oneRow => {
          oneRow.selected = isSelected;
          oneRow.isAttributeSelected = isSelected;
          return oneRow;
        }); // Quick hack until the code is upgraded to a version that supports "disableCheckbox"
        // Both 'cn' and 'sn' ( first 2 elements in the table ) are mandatory.
        // TODO: https://www.patternfly.org/v4/components/table#selectable
        // ==> disableSelection: true

        rows[0].selected = true;
        rows[0].isAttributeSelected = true;
        selectedAttributes = ['cn'];

        if (this.state.cosType === 'pointer') {
          selectedAttributes.push('cosPointerDefinition');
          rows[1].selected = true;
          rows[1].isAttributeSelected = true;
        } else if (this.state.cosType === 'indirect') {
          selectedAttributes.push('cosIndirectDefinition');
          rows[1].selected = true;
          rows[1].isAttributeSelected = true;
        } else if (this.state.cosType === 'classic') {
          selectedAttributes.push('cosClassicDefinition');
          rows[1].selected = true;
          rows[1].isAttributeSelected = true;
        }

        this.setState({
          rowsCoS: rows,
          allAttributesSelected: isSelected,
          selectedAttributes
        }, () => {
          this.setState({
            pagedRowsCoS: this.getAttributesToShow(this.state.pageAddCoS, this.state.perpageAddCoS)
          });
          this.updateValuesTableRows();
        });
      } else {
        // Quick hack until the code is upgraded to a version that supports "disableCheckbox"
        if (this.state.pagedRowsCoS[rowId].disableCheckbox === true) {
          return;
        } // End hack.
        // Process only the entries in the current page ( pagedRowsCoS )


        rows = [...this.state.pagedRowsCoS];
        rows[rowId].selected = isSelected; // Find the entry in the full array and set 'isAttributeSelected' accordingly
        // The property 'isAttributeSelected' is used to build the LDAP entry to add.
        // The row ID cannot be used since it changes with the pagination.

        var attrName = this.state.pagedRowsCoS[rowId].cells[0];
        var allItems = [...this.state.rowsCoS];
        var index = allItems.findIndex(item => item.cells[0] === attrName);
        allItems[index].isAttributeSelected = isSelected;

        var _selectedAttributes = allItems.filter(item => item.isAttributeSelected).map(selectedAttr => selectedAttr.cells[0]);

        this.setState({
          rowsCoS: allItems,
          pagedRowsCoS: rows,
          selectedAttributes: _selectedAttributes
        }, () => this.updateValuesTableRows());
      }
    });

    _defineProperty(this, "updateValuesTableRows", skipAttributeSelection => {
      var newSelectedAttrs = ['cn'];
      var namingRowID = this.state.namingRowID;
      var namingAttrVal = this.state.namingAttrVal;
      var editableTableData = [];
      var namingAttr = this.state.namingAttr;
      var namingVal = this.state.namingVal;
      var cosAttrs = this.state.cosAttrs;

      if (this.state.savedRows.length === 0) {
        editableTableData = newSelectedAttrs.map(attrName => {
          var obj = {
            id: (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.generateUniqueId)(),
            attr: attrName,
            val: namingVal ? namingVal : '',
            required: false,
            namingAttr: false
          };
          return obj;
        });
        editableTableData.sort((a, b) => a.attr > b.attr ? 1 : -1);
        namingRowID = editableTableData[0].id, namingAttrVal = editableTableData[0].attr + "=" + editableTableData[0].val;
        namingAttr = editableTableData[0].attr;
        namingVal = editableTableData[0].val;
      } else {
        if (skipAttributeSelection) {
          // Do not check the attribute selection ( because it has not changed ).
          editableTableData = [...this.state.savedRows];
        } else {
          var arrayOfAttrObjects = [...this.state.savedRows];

          var _iterator = _createForOfIteratorHelper(newSelectedAttrs),
              _step;

          try {
            var _loop = function _loop() {
              var myAttr = _step.value;
              var found = arrayOfAttrObjects.find(el => el.attr === myAttr);

              if (found === undefined) {
                // The new attribute was not in the list of saved attributes, add it.
                arrayOfAttrObjects.push({
                  id: (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.generateUniqueId)(),
                  attr: myAttr,
                  val: '',
                  required: false,
                  namingAttr: false
                });
              }
            };

            for (_iterator.s(); !(_step = _iterator.n()).done;) {
              _loop();
            } // Remove the newly unselected attribute(s).

          } catch (err) {
            _iterator.e(err);
          } finally {
            _iterator.f();
          }

          editableTableData = arrayOfAttrObjects.filter(datum => {
            var attrName = datum.attr;
            var found = newSelectedAttrs.find(attr => attr === attrName);
            return found !== undefined;
          }); // Sort the rows

          editableTableData.sort((a, b) => a.attr > b.attr ? 1 : -1);

          if (this.state.namingRowID === -1) {
            namingRowID = editableTableData[0].id;
          }
        }
      } // Description


      if (this.state.cosDescription !== '') {
        var decs = this.state.cosDescription;
        editableTableData = editableTableData.filter(item => item.attr.toLowerCase() !== 'description' || item.val !== decs);
        editableTableData.push({
          id: (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.generateUniqueId)(),
          attr: 'description',
          val: decs ? decs : '',
          required: true,
          namingAttr: false
        });
      } // CoS Attribute


      if (cosAttrs.length > 0) {
        var _loop2 = function _loop2(i) {
          var found = editableTableData.find(el => el.attr.toLowerCase() === 'cosattribute' && el.val.toLowerCase() === cosAttrs[i].name.toLowerCase());
          var attrVal = cosAttrs[i].name + (cosAttrs[i].def ? " default" : "") + (cosAttrs[i].override ? " override" : "") + (cosAttrs[i].operational ? " operational" : "") + (cosAttrs[i].opdefault ? " operational-default" : "") + (cosAttrs[i].mergeschemes ? " merge-schemes" : "");

          if (found === undefined) {
            // The new attribute was not in the list of saved attributes, add it.
            editableTableData.push({
              id: (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.generateUniqueId)(),
              attr: 'cosattribute',
              val: attrVal,
              required: true,
              namingAttr: false
            });
          }
        };

        for (var i in cosAttrs) {
          _loop2(i);
        }
      } // Template DN


      if (this.state.cosType === 'pointer') {
        var dn_val = this.state.cosTemplateDNSelected;
        editableTableData = editableTableData.filter(item => item.attr.toLowerCase() !== 'costemplatedn' || item.val !== dn_val);
        editableTableData.push({
          id: (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.generateUniqueId)(),
          attr: 'cosTemplateDn',
          val: dn_val ? dn_val : '',
          required: false,
          namingAttr: false
        });
      } // CoS Specifier


      var spec_attr;

      if (this.state.cosType !== 'pointer') {
        if (this.state.cosType === 'indirect') {
          spec_attr = 'cosindirectspecifier';
        } else {
          spec_attr = 'cosspecifier';
        }

        var spec_val = this.state.cosspecAttr;
        editableTableData = editableTableData.filter(item => item.attr.toLowerCase() !== spec_attr || item.val !== spec_val);
        editableTableData.push({
          id: (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.generateUniqueId)(),
          attr: spec_attr,
          val: spec_val ? spec_val : '',
          required: true,
          namingAttr: false
        });
      }

      this.setState({
        savedRows: editableTableData
      }); // Update the attributes to process.

      this.setState({
        editableTableData,
        rdn: editableTableData[0].attr,
        namingRowID,
        namingAttrVal,
        namingAttr,
        namingVal
      }, () => {
        this.generateLdifData();
      });
    });

    _defineProperty(this, "enableNextStep", noEmptyValue => {
      this.setState({
        noEmptyValue
      });
    });

    _defineProperty(this, "setNamingRowID", namingRowID => {
      var namingAttrVal = "";
      var namingAttr = "";
      var namingVal = "";
      var rows = this.state.savedRows;

      if (rows.length === 0) {
        rows = this.state.editableTableData;
      }

      var _iterator2 = _createForOfIteratorHelper(rows),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var row = _step2.value;

          if (row.id === namingRowID) {
            namingAttrVal = row.attr + "=" + row.val;
            namingAttr = row.attr;
            namingVal = row.val;
            break;
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      var dn_val = "".concat(namingAttr, "=").concat(namingVal, ",").concat(this.props.wizardEntryDn);
      rows = rows.filter(item => item.attr.toLowerCase() === 'costemplatedn');
      rows.push({
        id: (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.generateUniqueId)(),
        attr: 'cosTemplateDn',
        val: dn_val,
        required: true,
        namingAttr: false
      });
      this.setState({
        namingRowID,
        namingAttrVal,
        namingAttr,
        namingVal,
        editableTableData: rows
      });
    });

    _defineProperty(this, "onAttrDropDownToggle", isOpen => {
      this.setState({
        isAttrDropDownOpen: isOpen
      });
    });

    _defineProperty(this, "onAttrDropDownSelect", event => {
      this.setState((prevState, props) => {
        return {
          isAttrDropDownOpen: !prevState.isAttrDropDownOpen
        };
      });
    });

    _defineProperty(this, "buildAttrDropdown", () => {
      var _this$state = this.state,
          isAttrDropDownOpen = _this$state.isAttrDropDownOpen,
          selectedAttributes = _this$state.selectedAttributes;
      var numSelected = selectedAttributes.length;
      var items = selectedAttributes.map(attr => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.DropdownItem, {
        key: attr
      }, attr));
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Dropdown, {
        className: "ds-dropdown-padding",
        onSelect: this.onAttrDropDownSelect,
        position: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.DropdownPosition.left,
        toggle: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.BadgeToggle, {
          id: "toggle-attr-select",
          onToggle: this.onAttrDropDownToggle
        }, numSelected !== 0 ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, numSelected, " selected ") : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, "0 selected ")),
        isOpen: isAttrDropDownOpen,
        dropdownItems: items
      });
    });

    _defineProperty(this, "saveCurrentRows", (savedRows, namingID) => {
      this.setState({
        savedRows
      }, () => {
        // Update the naming information after the new rows have been saved.
        if (namingID != -1) {
          // The namingIndex is set to -1 if the row is not the naming one.
          this.setNamingRowID(namingID);
        }
      });
    });

    _defineProperty(this, "generateLdifData", () => {
      var objectClassData = ['ObjectClass: top', 'ObjectClass: LdapSubEntry', 'ObjectClass: cosSuperDefinition'];

      if (this.state.cosType === 'pointer') {
        objectClassData.push('ObjectClass: cosPointerDefinition');
      } else if (this.state.cosType === 'indirect') {
        objectClassData.push('ObjectClass: cosIndirectDefinition');
      } else if (this.state.cosType === 'classic') {
        objectClassData.push('ObjectClass: cosClassicDefinition');
      }

      var valueData = [];

      var _iterator3 = _createForOfIteratorHelper(this.state.savedRows),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var item = _step3.value;
          var attrName = item.attr;
          valueData.push("".concat(attrName, ": ").concat(item.val));

          if (objectClassData.length === 4) {
            // There will a maximum of 4 ObjectClasses.
            continue;
          } // TODO: Find a better logic!
          //if ((!objectClassData.includes('ObjectClass: InetOrgPerson')) &&
          //this.inetorgPersonArray.includes(attrName)) {
          //    objectClassData.push('ObjectClass: InetOrgPerson');
          //}
          //if (!objectClassData.includes('ObjectClass: OrganizationalPerson') &&
          //this.organizationalPersonArray.includes(attrName)) {
          //    objectClassData.push('ObjectClass: OrganizationalPerson');
          //}

        }
      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }

      var ldifArray = ["dn: ".concat(this.state.namingAttrVal, ",").concat(this.props.wizardEntryDn), ...objectClassData, ...valueData];
      this.setState({
        ldifArray
      });
    });

    _defineProperty(this, "handleSelectedAttrs", attrs => {
      this.setState({
        cosAttrs: attrs.map(attr => {
          return {
            "name": attr,
            "def": false,
            "override": false,
            "operational": false,
            "opdefault": false,
            "mergeschemes": false
          };
        })
      });
    });

    this.cosAttrsColumns = [{
      title: 'Name',
      transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.sortable]
    }, {
      title: 'OID',
      transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.sortable]
    }];
    this.singleValuedAttributes = ['cosTemplateDn', 'cosspecifier', 'cosIndirectSpecifier'];
    this.requiredAttributes = ['cn', 'cosattribute', 'cosspecifier', 'cosIndirectSpecifier'];
    this.attributeValidationRules = [{
      name: 'required',
      validator: value => value.trim() !== '',
      errorText: 'This field is required'
    }];
    this.state = {
      alertVariant: 'info',
      namingRowID: -1,
      namingAttrVal: '',
      namingAttr: '',
      namingVal: this.props.cosDefName,
      cosDescription: this.props.cosDefDesc,
      ldifArray: [],
      cleanLdifArray: [],
      savedRows: [],
      commandOutput: '',
      resultVariant: 'default',
      allAttributesSelected: false,
      attributeList: [],
      stepIdReached: this.props.stepReached,
      cosAttrs: [],
      // currentStepId: 1,
      itemCountAddCoS: 0,
      cosattrAttr: "",
      cosspecAttr: "",
      pageAddCoS: 1,
      perpageAddCoS: 10,
      columnsCoS: [{
        title: 'Attribute Name',
        cellTransforms: [(0,_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.headerCol)()]
      }, {
        title: 'From ObjectClass'
      }],
      rowsCoS: [],
      pagedRowsCoS: [],
      selectedAttributes: ['cn'],
      isAttrDropDownOpen: false,
      cosAttrRows: [],
      tableModificationTime: 0,
      createTemplate: false,
      createTemplateEnd: false,
      createdDefiniton: '',
      // Values
      noEmptyValue: false,
      columnsValues: ['Attribute', 'Value'],
      // Review step
      reviewValue: '',
      reviewInvalidText: 'Invalid LDIF',
      reviewIsValid: true,
      reviewValidated: 'default',
      adding: true,
      // reviewHelperText: 'LDIF data'
      editableTableData: [],
      rdn: "",
      rdnValue: "",
      parentDN: "",
      isTreeLoading: false,
      cosType: this.props.cosDefType,
      cosDNs: [],
      searching: false,
      searchPattern: "",
      showLDAPNavModal: false,
      showTemplateCreateModal: false,
      cosSearchBaseDn: "",
      cosParentBaseDn: "",
      cosAvailableOptions: [],
      cosTemplateDNSelected: this.props.createdTemplateDN,
      selectedItemProps: "",
      cossChosenOptions: [],
      isConfirmModalOpen: false
    };

    this.handleConfirmModalToggle = () => {
      this.setState(_ref => {
        var isConfirmModalOpen = _ref.isConfirmModalOpen;
        return {
          isConfirmModalOpen: !isConfirmModalOpen
        };
      });
    };

    this.handleBaseDnSelection = treeViewItem => {
      this.setState({
        cosSearchBaseDn: treeViewItem.dn
      });
    };

    this.handleParentDnSelection = treeViewItem => {
      this.setState({
        cosParentBaseDn: treeViewItem.dn
      });
    };

    this.showTreeLoadingState = isTreeLoading => {
      this.setState({
        isTreeLoading,
        searching: isTreeLoading ? true : false
      });
    };

    this.openLDAPNavModal = () => {
      this.setState({
        showLDAPNavModal: true
      });
    };

    this.closeLDAPNavModal = () => {
      this.setState({
        showLDAPNavModal: false
      });
    };

    this.openTemplateCreateModal = () => {
      this.setState({
        showTemplateCreateModal: true
      });
    };

    this.closeTemplateCreateModal = () => {
      this.setState({
        showTemplateCreateModal: false
      });
    };

    this.handleCreateTemplate = () => {
      this.setState({
        createTemplate: true
      });
    };

    this.handleCreateTemplateEnd = () => {
      this.setState({
        createTemplateEnd: true
      }, () => {
        this.props.onReload();
      });
    };

    this.onNext = _ref2 => {
      var id = _ref2.id;
      this.setState({
        stepIdReached: this.state.stepIdReached < id ? id : this.state.stepIdReached
      });

      if (id === 7) {
        // Generate the LDIF data.
        this.updateValuesTableRows();
      } else if (id === 8) {
        // Create the LDAP entry.
        var myLdifArray = this.state.ldifArray;
        (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.createLdapEntry)(this.props.editorLdapServer, myLdifArray, result => {
          var myDn = myLdifArray[0].substring(4);
          this.setState({
            commandOutput: result.errorCode === 0 ? 'CoS Definition successfully created!' : 'Failed to create cos: ' + result.errorCode,
            resultVariant: result.errorCode === 0 ? 'success' : 'danger',
            adding: false,
            createdDefiniton: myDn
          }, () => {
            this.props.onReload();
          }); // Update the wizard operation information.

          var relativeDn = myLdifArray[5].replace(": ", "="); // cn val

          var opInfo = {
            operationType: 'ADD',
            resultCode: result.errorCode,
            time: Date.now(),
            entryDn: myDn,
            relativeDn: relativeDn
          };
          this.props.setWizardOperationInfo(opInfo);
        });
      } else if (id === 9 && this.state.cosType === 'classic' && this.state.resultVariant !== 'danger') {
        this.setState({
          isConfirmModalOpen: true
        });
      }
    };

    this.onBack = _ref3 => {
      var id = _ref3.id;

      if (id === 5) {
        // true ==> Do not check the attribute selection when navigating back.
        this.updateValuesTableRows(true);
      }
    };

    this.handleSearchClick = () => {
      this.setState({
        isSearchRunning: true,
        cosAvailableOptions: []
      }, () => {
        this.getEntries();
      });
    };

    this.handleSearchPattern = searchPattern => {
      this.setState({
        searchPattern
      });
    };

    this.getEntries = () => {
      var baseDn = this.state.cosSearchBaseDn;
      var pattern = this.state.searchPattern;
      var filter = pattern === '' ? '(objectClass=costemplate)' : "(&(objectClass=costemplate)(cn=*".concat(pattern, "*))");
      var attrs = 'cn';
      var params = {
        serverId: this.props.editorLdapServer,
        baseDn: baseDn,
        scope: 'sub',
        filter: filter,
        attributes: attrs
      };
      (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.runGenericSearch)(params, resultArray => {
        var newOptionsArray = resultArray.map(result => {
          var lines = result.split('\n'); // TODO: Currently picking the first value found.
          // Might be worth to take the value that is used as RDN in case of multiple values.
          // Handle base64-encoded data:

          var pos0 = lines[0].indexOf(':: ');
          var pos1 = lines[1].indexOf(':: ');
          var dnLine = lines[0];

          if (pos0 > 0) {
            var decoded = decodeLine(dnLine);
            dnLine = "".concat(decoded[0], ": ").concat(decoded[1]);
          }

          var value = pos1 === -1 ? lines[1].split(': ')[1] : decodeLine(lines[1])[1];
          return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.SimpleListItem, {
            key: dnLine
          }, dnLine);
        });
        this.setState({
          cosAvailableOptions: newOptionsArray,
          isSearchRunning: false
        });
      });
    };

    this.removeDuplicates = options => {
      var titles = options.map(item => item.props.title);
      var noDuplicates = options.filter((item, index) => {
        return titles.indexOf(item.props.title) === index;
      });
      return noDuplicates;
    };

    this.handleRadioChange = (_, event) => {
      this.setState({
        cosType: event.currentTarget.id
      });
    };

    this.onSelectTemplate = (selectedItem, selectedItemProps) => {
      // Remove 'dn: ' from the string
      this.setState({
        cosTemplateDNSelected: selectedItemProps.children.substring(4)
      });
    };

    this.handleChange = this.handleChange.bind(this);
  }

  componentDidMount() {
    // Populate the attribute list for choosing specifiers.
    if (this.state.cosAttrRows.length > 0) {
      // Data already fetched.
      return;
    }

    (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.getAttributesNameAndOid)(this.props.editorLdapServer, resArray => {
      var cosAttrRows = resArray.map(item => {
        return {
          cells: [item[0], item[1]],
          selected: false
        };
      });
      var attributeList = resArray.map(item => {
        return item[0];
      });
      var tableModificationTime = Date.now();
      this.setState({
        cosAttrRows,
        attributeList,
        tableModificationTime
      });
    });
    this.setState({
      parentDN: this.props.wizardEntryDn,
      cosSearchBaseDn: this.props.wizardEntryDn
    });
  }

  getAttributesToShow(page, perPage) {
    var start = (page - 1) * perPage;
    var end = page * perPage;
    var newRows = this.state.rowsCoS.slice(start, end);
    return newRows;
  }

  handleChange(e) {
    var attr = e.target.id;
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [attr]: value
    });
  }

  handleCheckboxChange(e, name) {
    var value = e.target.type === "checkbox" ? e.target.checked : e.target.value;
    var param = e.target.id;

    if (param === "def") {
      this.setState(prevState => ({
        cosAttrs: prevState.cosAttrs.map(el => el.name === name ? _objectSpread(_objectSpread({}, el), {}, {
          def: value
        }) : el)
      }));
    } else if (param === "override") {
      this.setState(prevState => ({
        cosAttrs: prevState.cosAttrs.map(el => el.name === name ? _objectSpread(_objectSpread({}, el), {}, {
          override: value
        }) : el)
      }));
    } else if (param === "operational") {
      this.setState(prevState => ({
        cosAttrs: prevState.cosAttrs.map(el => el.name === name ? _objectSpread(_objectSpread({}, el), {}, {
          operational: value
        }) : el)
      }));
    } else if (param === "opdefault") {
      this.setState(prevState => ({
        cosAttrs: prevState.cosAttrs.map(el => el.name === name ? _objectSpread(_objectSpread({}, el), {}, {
          opdefault: value
        }) : el)
      }));
    } else if (param === "mergeschemes") {
      this.setState(prevState => ({
        cosAttrs: prevState.cosAttrs.map(el => el.name === name ? _objectSpread(_objectSpread({}, el), {}, {
          mergeschemes: value
        }) : el)
      }));
    }
  }

  render() {
    var _this$state2 = this.state,
        cosDescription = _this$state2.cosDescription,
        ldifArray = _this$state2.ldifArray,
        resultVariant = _this$state2.resultVariant,
        cosAttrRows = _this$state2.cosAttrRows,
        stepIdReached = _this$state2.stepIdReached,
        namingVal = _this$state2.namingVal,
        cosSearchBaseDn = _this$state2.cosSearchBaseDn,
        cosAvailableOptions = _this$state2.cosAvailableOptions,
        tableModificationTime = _this$state2.tableModificationTime,
        showLDAPNavModal = _this$state2.showLDAPNavModal,
        commandOutput = _this$state2.commandOutput,
        cosType = _this$state2.cosType,
        createTemplate = _this$state2.createTemplate,
        showTemplateCreateModal = _this$state2.showTemplateCreateModal,
        cosTemplateDNSelected = _this$state2.cosTemplateDNSelected,
        createTemplateEnd = _this$state2.createTemplateEnd,
        cosAttrs = _this$state2.cosAttrs;

    if (createTemplate) {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_addCosTemplate_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
        isWizardOpen: this.props.isWizardOpen,
        toggleOpenWizard: this.props.toggleOpenWizard,
        wizardEntryDn: this.state.cosParentBaseDn,
        editorLdapServer: this.props.editorLdapServer,
        setWizardOperationInfo: this.props.setWizardOperationInfo,
        onReload: this.props.onReload,
        allObjectclasses: this.props.allObjectclasses,
        treeViewRootSuffixes: this.props.treeViewRootSuffixes,
        firstStep: this.props.firstStep,
        stepReached: 2,
        definitionWizardEntryDn: this.props.wizardEntryDn,
        cosDefName: this.state.namingVal,
        cosDefDesc: this.state.cosDescription,
        cosDefType: this.state.cosType
      });
    } else if (createTemplateEnd) {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_addCosTemplate_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
        isWizardOpen: this.props.isWizardOpen,
        toggleOpenWizard: this.props.toggleOpenWizard,
        wizardEntryDn: this.state.createdDefiniton,
        editorLdapServer: this.props.editorLdapServer,
        setWizardOperationInfo: this.props.setWizardOperationInfo,
        onReload: this.props.onReload,
        allObjectclasses: this.props.allObjectclasses,
        treeViewRootSuffixes: this.props.treeViewRootSuffixes,
        firstStep: this.props.firstStep,
        stepReached: 2,
        definitionWizardEntryDn: "",
        cosDefCreateMoreTemplate: true
      });
    }

    var namingValAndTypeStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextVariants.h3
    }, "Select Name And CoS Type")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Form, {
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Grid, {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
      span: 2,
      className: "ds-label"
    }, "CoS Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.TextInput, {
      value: namingVal,
      type: "text",
      id: "namingVal",
      "aria-describedby": "namingVal",
      name: "namingVal",
      onChange: (str, e) => {
        this.handleChange(e);
      },
      validated: this.state.namingVal === '' ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions["default"]
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
      span: 2,
      className: "ds-label ds-margin-top-xlg"
    }, "Description"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
      span: 10,
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.TextInput, {
      value: cosDescription,
      type: "text",
      id: "cosDescription",
      "aria-describedby": "cosDescription",
      name: "cosDescription",
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextVariants.h5
    }, "Choose CoS Type")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-left-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Radio, {
      name: "cosType",
      id: "pointer",
      value: "pointer",
      label: "Pointer",
      isChecked: this.state.cosType === 'pointer',
      onChange: this.handleRadioChange,
      description: "Identifies the template entry using the template DN only."
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Radio, {
      name: "cosType",
      id: "indirect",
      value: "indirect",
      label: "Indirect",
      isChecked: this.state.cosType === 'indirect',
      onChange: this.handleRadioChange,
      description: "Identifies the template entry using the value of one of the target entry's attributes.",
      className: "ds-margin-top"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Radio, {
      name: "cosType",
      id: "classic",
      value: "classic",
      label: "Classic",
      isChecked: this.state.cosType === 'classic',
      onChange: this.handleRadioChange,
      description: "Identifies the template entry using a combination of the template entry's base DN and the value of one of the target entry's attributes.",
      className: "ds-margin-top"
    }))));
    var selectCoSTemplate = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Form, {
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextVariants.h3
    }, "Select CoS Template"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, null, "The CoS template entry contains the value or values of the attributes generated by the CoS logic. The CoS template entry contains a general object class of cosTemplate The CoS template entries for a given CoS are stored in the directory tree along with the CoS definition."))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
      span: 9,
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Label, {
      onClick: this.openLDAPNavModal,
      href: "#",
      variant: "outline",
      color: "blue",
      icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_21__.InfoCircleIcon, null)
    }, "Search Base DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, "\xA0\xA0", cosSearchBaseDn)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
      span: 3,
      className: "ds-margin-top-xlg ds-right-align"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Button, {
      key: "createTemplate",
      variant: "primary",
      onClick: this.openTemplateCreateModal
    }, "Create Template")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
      span: 12,
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.SearchInput, {
      placeholder: "Find CoS Template...",
      value: this.state.searchPattern,
      onChange: this.handleSearchPattern,
      onSearch: this.handleSearchClick,
      onClear: () => {
        this.handleSearchPattern('');
      }
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
      span: 12,
      className: "ds-margin-top"
    }, "CoS Template Selected: ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, "\xA0\xA0", cosTemplateDNSelected)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
      span: 12,
      className: "ds-margin-top-xlg"
    }, cosAvailableOptions.length !== 0 ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.SimpleList, {
      onSelect: this.onSelectTemplate
    }, cosAvailableOptions) : ""), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.ModalVariant.medium,
      title: "Choose The New CoS Template Parent DN",
      isOpen: showTemplateCreateModal,
      onClose: this.closeTemplateCreateModal,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Button, {
        key: "createTemplateModal",
        variant: "primary",
        onClick: this.handleConfirmModalToggle,
        isDisabled: this.state.cosParentBaseDn === ""
      }, "Confirm"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Button, {
        key: "cancelCreateTemplateModal",
        variant: "primary",
        onClick: this.closeTemplateCreateModal
      }, "Close")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.Card, {
      isHoverable: true,
      className: "ds-indent ds-margin-bottom-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__.CardBody, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_lib_ldapNavigator_jsx__WEBPACK_IMPORTED_MODULE_1__["default"], {
      treeItems: [...this.props.treeViewRootSuffixes],
      editorLdapServer: this.props.editorLdapServer,
      handleNodeOnClick: this.handleParentDnSelection,
      showTreeLoadingState: this.showTreeLoadingState
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.ModalVariant.small,
      title: "Leaving CoS Definiton Creation Wizard",
      isOpen: this.state.isConfirmModalOpen,
      onClose: this.handleConfirmModalToggle,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Button, {
        key: "confirm",
        variant: "primary",
        onClick: this.handleCreateTemplate
      }, "Confirm"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.handleConfirmModalToggle
      }, "Cancel")]
    }, "You are about to leave CoS Definiton creation wizard. After you click 'Confirm', you'll appear in CoS Template creation wizard and you won't able to return from there until the process is finished. Then you'll be able to use the created entry in the CoS definiton creation. It'll be preselected for you automatically."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.ModalVariant.medium,
      title: "Choose A Parent DN",
      isOpen: showLDAPNavModal,
      onClose: this.closeLDAPNavModal,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Button, {
        key: "confirm",
        variant: "primary",
        onClick: this.closeLDAPNavModal
      }, "Done")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.Card, {
      isHoverable: true,
      className: "ds-indent ds-margin-bottom-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__.CardBody, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_lib_ldapNavigator_jsx__WEBPACK_IMPORTED_MODULE_1__["default"], {
      treeItems: [...this.props.treeViewRootSuffixes],
      editorLdapServer: this.props.editorLdapServer,
      skipLeafEntries: true,
      handleNodeOnClick: this.handleBaseDnSelection,
      showTreeLoadingState: this.showTreeLoadingState
    })))))));
    var cosAttributesStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextVariants.h3
    }, "Choose CoS Attributes ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__.Tooltip, {
      position: "bottom",
      content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, "The cosAttribute contains the name of the attribute for which to generate a value for the CoS. There can be more than one cosAttribute value specified.")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("a", {
      className: "ds-font-size-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_21__.InfoCircleIcon, {
      className: "ds-info-icon"
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_lib_genericPagination_jsx__WEBPACK_IMPORTED_MODULE_4__["default"], {
      columns: this.cosAttrsColumns,
      rows: cosAttrRows,
      actions: null,
      isSelectable: true,
      canSelectAll: false,
      enableSorting: true,
      tableModificationTime: tableModificationTime,
      handleSelectedAttrs: this.handleSelectedAttrs,
      isSearchable: true
    }), cosAttrRows.length === 0 &&
    /*#__PURE__*/
    // <div className="ds-margin-bottom-md" />
    react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_29__.Bullseye, {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("center", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_30__.Spinner, {
      size: "lg"
    }))));
    var cosConfigAttributesStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextVariants.h3
    }, "Configure CoS Attributes"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, null, "The CoS attribute contains the name of another attribute which is governed by the class of service. This attribute allows an override qualifier after the attribute value which sets how the CoS handles existing attribute values on entries when it generates attribute values."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, null, "Please, consult official documentation for more information."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, null, "If no qualifier is set, default is assumed.")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Grid, {
      key: "header",
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextVariants.h4
    }, "Attribute Name"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextVariants.h4
    }, "Override Qualifiers")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null), cosAttrs.map((_ref4, idx) => {
      var name = _ref4.name,
          def = _ref4.def,
          override = _ref4.override,
          operational = _ref4.operational,
          opdefault = _ref4.opdefault,
          mergeschemes = _ref4.mergeschemes;
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Grid, {
        key: idx
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
        className: "ds-label",
        span: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextVariants.h4
      }, name))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
        span: 3,
        title: "Only returns a generated value if there is no corresponding attribute value stored with the entry."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__.Checkbox, {
        id: "def",
        label: "Default",
        isChecked: def,
        onChange: (checked, e) => {
          this.handleCheckboxChange(e, name, "def");
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
        span: 3,
        title: "Always returns the value generated by the CoS, even when there is a value stored with the entry."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__.Checkbox, {
        id: "override",
        label: "Override",
        isChecked: override,
        onChange: (checked, e) => {
          this.handleCheckboxChange(e, name, "override");
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
        span: 3,
        title: "Returns a generated attribute only if it is explicitly requested in the search. Operational attributes do not need to pass a schema check in order to be returned. When operational is used, it also overrides any existing attribute values."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__.Checkbox, {
        id: "operational",
        label: "Operational",
        isChecked: operational,
        onChange: (checked, e) => {
          this.handleCheckboxChange(e, name, "operational");
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
        span: 3
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
        span: 3,
        title: "Only returns a generated value if there is no corresponding attribute value stored with the entry and if it is explicitly requested in the search."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__.Checkbox, {
        id: "opdefault",
        label: "Operational-Default",
        isChecked: opdefault,
        onChange: (checked, e) => {
          this.handleCheckboxChange(e, name, "opdefault");
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
        span: 6,
        title: "Using the merge-schemes qualifier tells the CoS that it will, or can, generate multiple values for the managed attribute."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__.Checkbox, {
        id: "mergeschemes",
        label: "Merge-Schemes",
        isChecked: mergeschemes,
        onChange: (checked, e) => {
          this.handleCheckboxChange(e, name, "mergeschemes");
        }
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null));
    }));
    var cosSpecifierStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextVariants.h3
    }, "Select CoS Specifier"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, null, this.state.cosType === 'indirect' ? "Indirect type of CoS identifies the template entry based on the value of one of the target entry's attributes, as specified in the cosIndirectSpecifier attribute." : "Classic type of CoS identifies the template entry using both the template entry's DN (which you will assign later) and the value of one of the target entry's attributes (set in the cosSpecifier attribute).")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Grid, {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
      span: 3,
      className: "ds-label"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextVariants.h4
    }, this.state.cosType === 'indirect' ? 'Indirect ' : 'Classic ', "Specifier"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
      span: 5,
      className: "ds-left-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_32__.FormSelect, {
      id: "cosspecAttr",
      value: this.state.cosspecAttr,
      onChange: (str, e) => {
        this.handleChange(e);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_33__.FormSelectOption, {
      value: "",
      label: "Select an attribute",
      isPlaceholder: true
    }), this.state.attributeList.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_33__.FormSelectOption, {
      key: attr,
      value: attr,
      label: attr
    }))))));
    var ldifListItems = ldifArray.map((line, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.SimpleListItem, {
      key: index,
      isCurrent: line.startsWith('dn: ')
    }, line));
    var cosCreationStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_34__.Alert, {
      variant: "info",
      isInline: true,
      title: "LDIF Content for CoS Creation"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.Card, {
      isHoverable: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__.CardBody, null, ldifListItems.length > 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.SimpleList, {
      "aria-label": "LDIF data User"
    }, ldifListItems))));
    var nb = -1;
    var ldifLines = ldifArray.map(line => {
      nb++;
      return {
        data: line,
        id: nb
      };
    });
    var cosReviewStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_34__.Alert, {
      variant: resultVariant,
      isInline: true,
      title: "Result for CoS Creation"
    }, commandOutput, this.state.adding && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_30__.Spinner, {
      className: "ds-left-margin",
      size: "md"
    }), "\xA0\xA0Adding CoS definition ...")), resultVariant === 'danger' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.Card, {
      isHoverable: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_35__.CardTitle, null, "LDIF Data"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__.CardBody, null, ldifLines.map(line => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("h6", {
      key: line.id
    }, line.data)))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.ModalVariant.small,
      title: "Create CoS Template",
      isOpen: this.state.isConfirmModalOpen,
      onClose: this.handleConfirmModalToggle,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Button, {
        key: "confirm",
        variant: "primary",
        onClick: this.handleCreateTemplateEnd
      }, "Confirm"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.handleConfirmModalToggle
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, null, "You've chosen 'Classic' CoS type. cosTemplateDN attribute is set to ", this.state.createdDefiniton, "."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, null, "Do you want to create a CoS template now?"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, null, "It will be added as a child to this entry: '", this.state.createdDefiniton, "'"))))));
    var addCoSSteps = [{
      id: 1,
      name: this.props.firstStep[0].name,
      component: this.props.firstStep[0].component,
      canJumpTo: stepIdReached >= 1 && stepIdReached < 9,
      hideBackButton: true
    }, {
      id: 2,
      name: 'Select Type',
      component: namingValAndTypeStep,
      enableNext: namingVal === '' ? false : true,
      canJumpTo: stepIdReached >= 2 && stepIdReached < 9
    }, ...(cosType === 'pointer' ? [{
      id: 3,
      name: 'Select CoS Template',
      component: selectCoSTemplate,
      canJumpTo: stepIdReached >= 3 && stepIdReached < 9,
      enableNext: this.state.cosTemplateDNSelected !== ''
    }] : []), {
      id: 4,
      name: 'Select CoS Attributes',
      component: cosAttributesStep,
      canJumpTo: stepIdReached >= 4 && stepIdReached < 9,
      enableNext: this.state.cosAttrs.length > 0
    }, {
      id: 5,
      name: 'Configure CoS Attributes',
      component: cosConfigAttributesStep,
      canJumpTo: stepIdReached >= 5 && stepIdReached < 9,
      enableNext: this.state.cosAttrs.length > 0
    }, ...(cosType !== 'pointer' ? [{
      id: 6,
      name: 'Select CoS Specifier',
      component: cosSpecifierStep,
      canJumpTo: stepIdReached >= 6 && stepIdReached < 9,
      enableNext: this.state.cosspecAttr !== ''
    }] : []), {
      id: 7,
      name: 'Create CoS',
      component: cosCreationStep,
      nextButtonText: 'Create',
      canJumpTo: stepIdReached >= 7 && stepIdReached < 9
    }, {
      id: 8,
      name: 'Review Result',
      component: cosReviewStep,
      nextButtonText: 'Finish',
      canJumpTo: stepIdReached >= 8 && stepIdReached < 9,
      hideBackButton: true,
      enableNext: !this.state.adding
    }, ...(this.state.cosType === 'classic' && resultVariant !== 'danger' ? [{
      id: 9,
      name: 'Create Templates',
      component: cosReviewStep,
      nextButtonText: 'Finish',
      canJumpTo: stepIdReached > 9,
      hideBackButton: true,
      enableNext: !this.state.adding
    }] : [])];
    var title = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, "Parent DN: \xA0\xA0", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, this.props.wizardEntryDn));
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_36__.Wizard, {
      isOpen: this.props.isWizardOpen,
      onClose: this.props.toggleOpenWizard,
      onNext: this.onNext,
      onBack: this.onBack,
      title: "Add A CoS Definition",
      description: title,
      steps: addCoSSteps
    });
  }

}

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AddCoS);

/***/ }),

/***/ "./src/lib/ldap_editor/wizards/operations/addCosTemplate.jsx":
/*!*******************************************************************!*\
  !*** ./src/lib/ldap_editor/wizards/operations/addCosTemplate.jsx ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/Dropdown.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/dropdownConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/BadgeToggle.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextList.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextListItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/NumberInput/NumberInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Bullseye/Bullseye.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Title/Title.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SearchInput/SearchInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Pagination/Pagination.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/Alert.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleListItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/Card.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardBody.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleList.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardTitle.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Wizard/Wizard.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/wrappable.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/headerCol.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Table.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableTypes.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Header.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Body.js");
/* harmony import */ var _lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../lib/utils.jsx */ "./src/lib/ldap_editor/lib/utils.jsx");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/info-circle-icon.js");
/* harmony import */ var _lib_editableTable_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../lib/editableTable.jsx */ "./src/lib/ldap_editor/lib/editableTable.jsx");
/* harmony import */ var _addCosDefinition_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./addCosDefinition.jsx */ "./src/lib/ldap_editor/wizards/operations/addCosDefinition.jsx");
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }









class AddCosTemplate extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    var _this;

    super(props);
    _this = this;

    _defineProperty(this, "isAttributeSingleValued", attr => {
      return this.singleValuedAttributes.includes(attr.toLowerCase());
    });

    _defineProperty(this, "isAttributeRequired", attr => {
      return this.requiredAttributes.includes(attr);
    });

    _defineProperty(this, "enableNextStep", yes => {
      this.setState({
        validMods: yes
      });
    });

    _defineProperty(this, "saveCurrentRows", editableTableData => {
      var validMods = true;
      var namingVal = this.state.namingVal;
      var namingAttrVal = this.state.namingAttrVal;

      var _iterator = _createForOfIteratorHelper(editableTableData),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var row = _step.value;

          if (row.val === "") {
            validMods = false;
            break;
          }

          if (row.id === this.state.namingRowID) {
            namingVal = row.val;
            namingAttrVal = row.attr + "=" + row.val;
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      this.setState({
        editableTableData,
        validMods,
        namingVal,
        namingAttrVal
      });
    });

    _defineProperty(this, "onSetPageOc", (_event, pageNumber) => {
      this.setState({
        pageOc: pageNumber,
        pagedRowsOc: this.getItemsToShow(pageNumber, this.state.perPageOc, 'ObjectClassTable')
      });
    });

    _defineProperty(this, "onSetPageAttr", (_event, pageNumber) => {
      this.setState({
        pageAttr: pageNumber,
        pagedRowsAttr: this.getItemsToShow(pageNumber, this.state.perPageAttr, 'AttributeTable')
      });
    });

    _defineProperty(this, "onPerPageSelectOc", (_event, perPage) => {
      this.setState({
        pageOc: 1,
        perPageOc: perPage,
        pagedRowsOc: this.getItemsToShow(1, perPage, 'ObjectClassTable')
      });
    });

    _defineProperty(this, "onPerPageSelectAttr", (_event, perPage) => {
      this.setState({
        pageAttr: 1,
        perPageAttr: perPage,
        pagedRowsAttr: this.getItemsToShow(1, perPage, 'AttributeTable')
      });
    });

    _defineProperty(this, "onSelectOc", (event, isSelected, rowId) => {
      // Process only the entries in the current page ( pagedRowsOc )
      var rows = [...this.state.pagedRowsOc];
      rows[rowId].selected = isSelected; // Find the entry in the full array and set 'isAttributeSelected' accordingly
      // The property 'selected' is used to build the attribute table.
      // The row ID cannot be used since it changes with the pagination.

      var ocName = this.state.pagedRowsOc[rowId].cells[0];
      var allItems = [...this.state.rowsOc];
      var index = allItems.findIndex(item => item.cells[0] === ocName);
      allItems[index].selected = isSelected;
      var selectedObjectClasses = [...this.state.selectedObjectClasses];

      if (isSelected) {
        // Add to selected OC
        selectedObjectClasses.push(allItems[index]);
      } else {
        // Remove OC from selected list
        selectedObjectClasses = selectedObjectClasses.filter(row => row.cells[0] !== allItems[index].cells[0]);
      }

      var attrsToRemove = [];

      if (!isSelected) {
        // Removing an objectclass, this will impact the entry as we might have to remove attributes
        var ocAttrs = allItems[index].cells[1].toLowerCase().replace(/\s/g, '').split(',');
        ocAttrs = ocAttrs.concat(allItems[index].cells[2].toLowerCase().replace(/\s/g, '').split(','));
        var currAttrs = [];

        var _iterator2 = _createForOfIteratorHelper(selectedObjectClasses),
            _step2;

        try {
          for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
            var oc = _step2.value;
            // Gather all the allowed attributes
            currAttrs = currAttrs.concat(oc.cells[1].toLowerCase().replace(/\s/g, '').split(','));
            currAttrs = currAttrs.concat(oc.cells[2].toLowerCase().replace(/\s/g, '').split(','));
          }
        } catch (err) {
          _iterator2.e(err);
        } finally {
          _iterator2.f();
        }

        var _iterator3 = _createForOfIteratorHelper(ocAttrs),
            _step3;

        try {
          for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
            var attr = _step3.value;

            if (currAttrs.indexOf(attr) === -1) {
              // No other OC allows this attribute, it must go
              attrsToRemove.push(attr);
            }
          }
        } catch (err) {
          _iterator3.e(err);
        } finally {
          _iterator3.f();
        }
      }

      this.setState({
        rowsOc: allItems,
        pagedRowsOc: rows,
        selectedObjectClasses,
        attrsToRemove
      }, () => {
        this.updateAttributeTableRows();
      });
    });

    _defineProperty(this, "onSelectAttr", (event, isSelected, rowId) => {
      var newEditableData = this.state.editableTableData;
      var rows; // Quick hack until the code is upgraded to a version that supports "disableCheckbox"

      if (this.state.pagedRowsAttr[rowId].disableCheckbox === true) {
        return;
      } // End hack.
      // Process only the entries in the current page ( pagedRowsAttr )


      rows = [...this.state.pagedRowsAttr];
      rows[rowId].selected = isSelected; // Find the entry in the full array and set 'isAttributeSelected' accordingly
      // The property 'isAttributeSelected' is used to build the LDAP entry to add.
      // The row ID cannot be used since it changes with the pagination.

      var attrName = this.state.pagedRowsAttr[rowId].cells[0];
      var allItems = [...this.state.rowsAttr];
      var index = allItems.findIndex(item => item.cells[0] === attrName);
      allItems[index].isAttributeSelected = isSelected;
      var selectedAttributes = allItems.filter(item => item.isAttributeSelected).map(attrObj => [attrObj.attributeName, attrObj.cells[1]]); // Update the table rows as needed

      var rowAttr = rows[rowId].attributeName.toLowerCase();
      var found = this.state.editableTableData.filter(item => item.attr.toLowerCase() === rowAttr);

      if (isSelected) {
        if (found.length === 0 && rowAttr !== 'objectclass') {
          var obj = {};
          obj.id = (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.generateUniqueId)();
          obj.attr = rows[rowId].attributeName;
          obj.val = "";
          obj.namingAttr = false;
          obj.required = false;
          newEditableData = [...newEditableData, obj];
        }
      } else if (found.length > 0) {
        // Remove the row if present
        newEditableData = this.state.editableTableData.filter(item => item.attr.toLowerCase() !== rowAttr);
      }

      var validMods = true;

      var _iterator4 = _createForOfIteratorHelper(newEditableData),
          _step4;

      try {
        for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
          var row = _step4.value;

          if (row.val === "") {
            validMods = false;
          }
        }
      } catch (err) {
        _iterator4.e(err);
      } finally {
        _iterator4.f();
      }

      this.setState({
        rowsAttr: allItems,
        pagedRowsAttr: rows,
        editableTableData: newEditableData,
        selectedAttributes,
        validMods
      });
    });

    _defineProperty(this, "updateAttributeTableRows", () => {
      var ocToProcess = [...this.state.selectedObjectClasses];
      var rowsAttr = [];
      var attrList = [];
      var namingRowID = this.state.namingRowID;
      var namingAttr = this.state.namingAttr;
      var namingVal = this.state.namingVal;
      var cospriority = this.state.cospriority;

      for (var _i = 0, _ocToProcess = ocToProcess; _i < _ocToProcess.length; _i++) {
        var oc = _ocToProcess[_i];
        // Rebuild the attribute arrays.
        var required = oc.cells[1].split(',');
        var optional = oc.cells[2].split(',');

        var _iterator5 = _createForOfIteratorHelper(required),
            _step5;

        try {
          var _loop = function _loop() {
            var attr = _step5.value;
            attr = attr.trim().toLowerCase();

            if (attr === '') {
              return "continue";
            }

            if (!attrList.includes(attr)) {
              attrList.push(attr);
              rowsAttr.push({
                selected: true,
                disableCheckbox: true,
                // TODO: Hack until upgrading!
                isAttributeSelected: true,
                attributeName: attr,
                cells: [{
                  title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, attr))
                }, oc.cells[0]]
              });
            } // Loop over entry attributes and add the attribute, with an
            // empty value, to the editableTableData


            var found = _this.state.editableTableData.filter(item => item.attr.toLowerCase() === attr);

            if (found.length === 0 && attr !== 'objectclass') {
              var new_id = (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.generateUniqueId)();

              if (namingRowID === -1) {
                namingRowID = new_id;
                namingAttr = attr;
              }

              var obj = {};
              obj.id = new_id;
              obj.attr = attr;

              if (attr.toLowerCase() == 'cn') {
                obj.val = namingVal;
              } else if (attr.toLowerCase() == 'cospriority') {
                obj.val = cospriority;
              } else {
                obj.val = '';
              }

              obj.namingAttr = false;
              obj.required = true;

              _this.setState(prevState => ({
                editableTableData: [...prevState.editableTableData, obj],
                validMods: false,
                namingRowID: namingRowID,
                namingAttr: namingAttr
              }));
            }
          };

          for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
            var _ret = _loop();

            if (_ret === "continue") continue;
          }
        } catch (err) {
          _iterator5.e(err);
        } finally {
          _iterator5.f();
        }

        var _iterator6 = _createForOfIteratorHelper(optional),
            _step6;

        try {
          for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
            var attr = _step6.value;
            attr = attr.trim();

            if (attr === '') {
              continue;
            }

            if (!attrList.includes(attr)) {
              var selected = false;

              var _iterator7 = _createForOfIteratorHelper(this.state.editableTableData),
                  _step7;

              try {
                for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
                  var existingRow = _step7.value;

                  if (existingRow.attr.toLowerCase() === attr.toLowerCase()) {
                    selected = true;
                    break;
                  }
                }
              } catch (err) {
                _iterator7.e(err);
              } finally {
                _iterator7.f();
              }

              attrList.push(attr);
              rowsAttr.push({
                attributeName: attr,
                isAttributeSelected: selected,
                selected: selected,
                cells: [attr, oc.cells[0]]
              });
            }
          }
        } catch (err) {
          _iterator6.e(err);
        } finally {
          _iterator6.f();
        }
      } // Update the rows where user can select the attributes.


      rowsAttr.sort((a, b) => a.attributeName > b.attributeName ? 1 : -1);
      this.setState({
        rowsAttr,
        selectedAttributes: rowsAttr.filter(item => item.isAttributeSelected).map(attrObj => [attrObj.attributeName, attrObj.cells[1]]),
        itemCountAttr: rowsAttr.length
      }, () => {
        // getItemsToShow() expects rowAttrs to be updated already, so we
        // have to do this callback
        this.setState({
          pagedRowsAttr: this.getItemsToShow(this.state.pageAttr, this.state.perPageAttr, 'AttributeTable')
        });
      });
    });

    _defineProperty(this, "generateLdifData", () => {
      var objectClassData = ['top'];
      var attribute = this.state.namingAttr;
      var value = this.state.namingVal;
      var valueData = [];

      var _iterator8 = _createForOfIteratorHelper(this.state.selectedObjectClasses),
          _step8;

      try {
        for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
          var oc = _step8.value;

          if (oc && !objectClassData.includes(oc.cells[0])) {
            objectClassData.push(oc.cells[0]);
          }
        }
      } catch (err) {
        _iterator8.e(err);
      } finally {
        _iterator8.f();
      }

      var _iterator9 = _createForOfIteratorHelper(this.state.editableTableData),
          _step9;

      try {
        for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
          var item = _step9.value;
          var attrName = item.attr;
          valueData.push("".concat(attrName, ": ").concat(item.val));
        }
      } catch (err) {
        _iterator9.e(err);
      } finally {
        _iterator9.f();
      }

      var ocArray = objectClassData.map(oc => "ObjectClass: ".concat(oc));
      var dnLine = "dn: ".concat(attribute, "=").concat(value, ",").concat(this.props.wizardEntryDn);
      var ldifArray = [dnLine, ...ocArray, ...valueData]; // Hide userpassword value

      var cleanLdifArray = [...ldifArray];

      for (var idx in cleanLdifArray) {
        if (cleanLdifArray[idx].toLowerCase().startsWith("userpassword")) {
          cleanLdifArray[idx] = "userpassword: ********";
          break;
        }
      }

      this.setState({
        ldifArray,
        cleanLdifArray
      });
    });

    _defineProperty(this, "onOCDropDownToggle", isOpen => {
      this.setState({
        isOCDropDownOpen: isOpen
      });
    });

    _defineProperty(this, "onOCDropDownSelect", event => {
      this.setState((prevState, props) => {
        return {
          isOCDropDownOpen: !prevState.isOCDropDownOpen
        };
      });
    });

    _defineProperty(this, "buildOCDropdown", () => {
      var _this$state = this.state,
          isOCDropDownOpen = _this$state.isOCDropDownOpen,
          selectedObjectClasses = _this$state.selectedObjectClasses;
      var numSelected = this.state.rowsOc.filter(item => item.selected).length;
      var items = this.state.selectedObjectClasses.map(oc => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.DropdownItem, {
        key: oc.cells[0]
      }, oc.cells[0]));
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Dropdown, {
        className: "ds-dropdown-padding",
        onSelect: this.onOCDropDownSelect,
        position: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.DropdownPosition.left,
        toggle: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.BadgeToggle, {
          id: "toggle-oc-select",
          onToggle: this.onOCDropDownToggle
        }, numSelected !== 0 ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, numSelected, " selected ") : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, "0 selected ")),
        isOpen: isOCDropDownOpen,
        dropdownItems: items
      });
    });

    _defineProperty(this, "onAttrDropDownToggle", isOpen => {
      this.setState({
        isAttrDropDownOpen: isOpen
      });
    });

    _defineProperty(this, "onAttrDropDownSelect", event => {
      this.setState((prevState, props) => {
        return {
          isAttrDropDownOpen: !prevState.isAttrDropDownOpen
        };
      });
    });

    _defineProperty(this, "buildAttrDropdown", () => {
      var _this$state2 = this.state,
          isAttrDropDownOpen = _this$state2.isAttrDropDownOpen,
          selectedAttributes = _this$state2.selectedAttributes;
      var numSelected = selectedAttributes.length;
      var items = selectedAttributes.map(attr => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.DropdownItem, {
        key: attr[0]
      }, attr[0]));
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Dropdown, {
        className: "ds-dropdown-padding",
        onSelect: this.onAttrDropDownSelect,
        position: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.DropdownPosition.left,
        toggle: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.BadgeToggle, {
          id: "toggle-attr-select",
          onToggle: this.onAttrDropDownToggle
        }, numSelected !== 0 ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, numSelected, " selected ") : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, "0 selected ")),
        isOpen: isAttrDropDownOpen,
        dropdownItems: items
      });
    });

    _defineProperty(this, "setNamingRowID", namingRowID => {
      var namingAttrVal = "";
      var namingAttr = "";
      var namingVal = "";
      var rows = this.state.editableTableData;

      var _iterator10 = _createForOfIteratorHelper(rows),
          _step10;

      try {
        for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
          var row = _step10.value;

          if (row.id === namingRowID) {
            namingAttrVal = row.attr + "=" + row.val;
            namingAttr = row.attr;
            namingVal = row.val;
            break;
          }
        }
      } catch (err) {
        _iterator10.e(err);
      } finally {
        _iterator10.f();
      }

      this.setState({
        namingRowID,
        namingAttrVal,
        namingAttr,
        namingVal
      });
    });

    this.originalEntryRows = [];
    this.singleValuedAttributes = ['cn'];
    this.requiredAttributes = ['dn'];
    this.operationColumns = [{
      title: 'Statement'
    }, {
      title: 'Attribute'
    }, {
      title: 'Value',
      cellTransforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.breakWord]
    }];
    this.state = {
      loading: true,
      isOCDropDownOpen: false,
      isAttrDropDownOpen: false,
      namingAttributeData: ['', ''],
      namingAttrPropsName: '',
      namingRowID: -1,
      namingAttr: "",
      namingVal: "",
      cospriority: 0,
      editableTableData: [],
      ldifArray: [],
      cleanLdifArray: [],
      validMods: false,
      commandOutput: '',
      resultVariant: 'default',
      stepIdReached: this.props.stepReached,
      itemCountOc: 0,
      pageOc: 1,
      perPageOc: 6,
      itemCountAttr: 0,
      pageAttr: 1,
      perPageAttr: 10,
      columnsAttr: [{
        title: 'Attribute Name',
        cellTransforms: [(0,_patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.headerCol)()]
      }, {
        title: 'From ObjectClass'
      }],
      columnsOc: [{
        title: 'ObjectClass Name',
        cellTransforms: [(0,_patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.headerCol)()]
      }, {
        title: 'Required Attributes',
        cellTransforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.breakWord]
      }, {
        title: 'Optional Attributes',
        cellTransforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.breakWord]
      }],
      rowsOc: [],
      rowsAttr: [],
      rowsValues: [],
      pagedRowsOc: [],
      pagedRowsAttr: [],
      selectedObjectClasses: [],
      selectedAttributes: [],
      attrsToRemove: [],
      adding: true,
      goBackToCoSDefinition: false,
      createdTemplate: "",
      isConfirmModalOpen: false,
      createTemplateEnd: false
    };

    this.handleConfirmModalToggle = () => {
      this.setState(_ref => {
        var isConfirmModalOpen = _ref.isConfirmModalOpen;
        return {
          isConfirmModalOpen: !isConfirmModalOpen
        };
      });
    };

    this.handleCreateTemplateEnd = () => {
      this.setState({
        createTemplateEnd: true
      }, () => {
        this.props.onReload();
      });
    };

    this.onMinusConfig = id => {
      this.setState({
        [id]: Number(this.state[id]) - 1
      });
    };

    this.onConfigChange = (event, id, min, max) => {
      var maxValue = this.maxValue;

      if (max !== 0) {
        maxValue = max;
      }

      var newValue = isNaN(event.target.value) ? 0 : Number(event.target.value);
      this.setState({
        [id]: newValue > maxValue ? maxValue : newValue < min ? min : newValue
      });
    };

    this.onPlusConfig = id => {
      this.setState({
        [id]: Number(this.state[id]) + 1
      });
    };

    this.onNext = _ref2 => {
      var id = _ref2.id;
      this.setState({
        stepIdReached: this.state.stepIdReached < id ? id : this.state.stepIdReached
      }); // The function updateValuesTableRows() is called upon new seletion(s)
      // Make sure the values table is updated in case no selection was made.

      if (id === 4) {
        // Just call this function in order to make sure the values table is up-to-date
        // even after navigating back and forth.
        this.updateAttributeTableRows();
      } else if (id === 5) {
        // Remove attributes from removed objectclasses
        this.cleanUpEntry();
      } else if (id === 6) {
        // Generate the LDIF data at step 5
        this.generateLdifData();
      } else if (id === 7) {
        // Create the LDAP entry.
        (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.createLdapEntry)(this.props.editorLdapServer, this.state.ldifArray, result => {
          var myDn = this.state.ldifArray[0].substring(4);
          this.setState({
            commandOutput: result.output,
            commandOutput: result.errorCode === 0 ? 'Successfully added entry!' : 'Failed to add entry, error: ' + result.errorCode,
            resultVariant: result.errorCode === 0 ? 'success' : 'danger',
            adding: false,
            createdTemplate: myDn
          }, () => {
            this.props.onReload();
          });
          var opInfo = {
            operationType: 'ADD',
            resultCode: result.errorCode,
            time: Date.now(),
            entryDn: myDn,
            relativeDn: this.state.namingAttrVal
          };
          this.props.setWizardOperationInfo(opInfo);
        });
      } else if (id === 8 && this.props.cosDefCreateMoreTemplate) {
        this.setState({
          isConfirmModalOpen: true
        });
      } else if (id === 8 && this.props.definitionWizardEntryDn !== '') {
        this.setState({
          goBackToCoSDefinition: true
        }, () => {
          this.props.onReload();
        });
      }
    };

    this.toggleOpenWizard = () => {
      if (this.props.definitionWizardEntryDn !== '') {
        this.setState({
          goBackToCoSDefinition: true
        }, () => {
          this.props.onReload();
        });
      } else {
        this.props.toggleOpenWizard();
      }
    };

    this.handleCreateTemplate = () => {
      this.setState({
        goBackToCoSDefinition: true
      });
    };

    this.cleanUpEntry = () => {
      var newRows = [];
      var validMods = true;

      var _iterator11 = _createForOfIteratorHelper(this.state.editableTableData),
          _step11;

      try {
        for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
          var row = _step11.value;
          var attr = row.attr.toLowerCase();

          if (this.state.attrsToRemove.indexOf(attr) === -1) {
            if (row.val === "") {
              validMods = false;
            }

            newRows.push(row);
          }
        }
      } catch (err) {
        _iterator11.e(err);
      } finally {
        _iterator11.f();
      }

      this.setState({
        editableTableData: newRows,
        validMods
      });
    };

    this.onOCSearchChange = (value, event) => {
      var ocRows = [];
      var allOCs = [];
      var val = value.toLowerCase(); // Get fresh list of Objectclasses andwhat is selected

      this.props.allObjectclasses.map(oc => {
        var selected = false;
        var selectionDisabled = false;

        var _iterator12 = _createForOfIteratorHelper(this.state.selectedObjectClasses),
            _step12;

        try {
          for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
            var selectedOC = _step12.value;

            if (selectedOC.cells[0].toLowerCase() === oc.name.toLowerCase()) {
              selected = true;
              break;
            }
          }
        } catch (err) {
          _iterator12.e(err);
        } finally {
          _iterator12.f();
        }

        if (oc.name === "top") {
          // Can not remove objectclass=top
          selectionDisabled = true;
        } else if (oc.name === 'costemplate') {
          selectionDisabled = true;
          selected = true;
        }

        allOCs.push({
          cells: [oc.name, oc.required.join(', '), oc.optional.join(', ')],
          selected: selected,
          disableSelection: selectionDisabled
        });
      }); // Process search filter on the entire list

      if (value !== "") {
        var _iterator13 = _createForOfIteratorHelper(allOCs),
            _step13;

        try {
          for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {
            var row = _step13.value;
            var name = row.cells[0].toLowerCase();
            var reqAttrs = row.cells[1].toLowerCase();
            var optAttrs = row.cells[2].toLowerCase();

            if (name.includes(val) || reqAttrs.includes(val) || optAttrs.includes(val)) {
              ocRows.push(row);
            }
          }
        } catch (err) {
          _iterator13.e(err);
        } finally {
          _iterator13.f();
        }
      } else {
        // Restore entire rowsOc list
        ocRows = allOCs;
      }

      this.setState({
        rowsOc: ocRows,
        pagedRowsOc: ocRows.slice(0, this.state.perPageOc)
      });
    }; // End constructor().

  }

  componentDidMount() {
    var ocArray = [];
    (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.getSingleValuedAttributes)(this.props.editorLdapServer, myAttrs => {
      this.singleValuedAttributes = [...myAttrs];
    });
    this.props.allObjectclasses.map(oc => {
      var selectionDisabled = false;
      var selected = false;

      if (oc.name === "top") {
        // Can not remove objectclass=top
        selectionDisabled = true;
      }

      if (oc.name === 'costemplate') {
        selectionDisabled = true;
        selected = true; // For costemplate, make all of the attribute

        ocArray.push({
          cells: [oc.name, oc.required.concat(oc.optional).join(', '), ''],
          selected: selected,
          disableSelection: selectionDisabled
        });
        var selectedOC = [...this.state.selectedObjectClasses];
        selectedOC.push(ocArray[ocArray.length - 1]);
        this.setState({
          selectedObjectClasses: selectedOC
        });
      } else {
        ocArray.push({
          cells: [oc.name, oc.required.join(', '), oc.optional.join(', ')],
          selected: selected,
          disableSelection: selectionDisabled
        });
      }
    });
    this.setState({
      itemCountOc: ocArray.length,
      rowsOc: ocArray,
      pagedRowsOc: ocArray.slice(0, this.state.perPageOc),
      loading: false
    });
  }

  getItemsToShow(page, perPage, option) {
    var start = (page - 1) * perPage;
    var end = page * perPage;
    var newRows = option === 'ObjectClassTable' ? this.state.rowsOc.slice(start, end) : option === 'AttributeTable' ? this.state.rowsAttr.slice(start, end) : [];
    return newRows;
  }

  handleChange(e) {
    var attr = e.target.id;
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [attr]: value
    });
  }

  render() {
    var _this$state3 = this.state,
        loading = _this$state3.loading,
        itemCountOc = _this$state3.itemCountOc,
        pageOc = _this$state3.pageOc,
        perPageOc = _this$state3.perPageOc,
        columnsOc = _this$state3.columnsOc,
        pagedRowsOc = _this$state3.pagedRowsOc,
        itemCountAttr = _this$state3.itemCountAttr,
        pageAttr = _this$state3.pageAttr,
        perPageAttr = _this$state3.perPageAttr,
        columnsAttr = _this$state3.columnsAttr,
        pagedRowsAttr = _this$state3.pagedRowsAttr,
        commandOutput = _this$state3.commandOutput,
        namingAttr = _this$state3.namingAttr,
        namingVal = _this$state3.namingVal,
        cospriority = _this$state3.cospriority,
        stepIdReached = _this$state3.stepIdReached,
        ldifArray = _this$state3.ldifArray,
        resultVariant = _this$state3.resultVariant,
        editableTableData = _this$state3.editableTableData,
        validMods = _this$state3.validMods,
        cleanLdifArray = _this$state3.cleanLdifArray,
        selectedAttributes = _this$state3.selectedAttributes,
        selectedObjectClasses = _this$state3.selectedObjectClasses,
        goBackToCoSDefinition = _this$state3.goBackToCoSDefinition,
        createTemplateEnd = _this$state3.createTemplateEnd;

    if (createTemplateEnd) {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(AddCosTemplate, {
        isWizardOpen: this.props.isWizardOpen,
        toggleOpenWizard: this.props.toggleOpenWizard,
        wizardEntryDn: this.props.wizardEntryDn,
        editorLdapServer: this.props.editorLdapServer,
        setWizardOperationInfo: this.props.setWizardOperationInfo,
        firstStep: this.props.firstStep,
        onReload: this.props.onReload,
        allObjectclasses: this.props.allObjectclasses,
        treeViewRootSuffixes: this.props.treeViewRootSuffixes,
        stepReached: 2,
        cosDefCreateMoreTemplate: true
      });
    } else if (goBackToCoSDefinition) {
      var myDn = this.state.createdTemplate;

      if (resultVariant === 'danger') {
        myDn = "";
      }

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_addCosDefinition_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
        isWizardOpen: this.props.isWizardOpen,
        toggleOpenWizard: this.props.toggleOpenWizard,
        wizardEntryDn: this.props.definitionWizardEntryDn,
        editorLdapServer: this.props.editorLdapServer,
        setWizardOperationInfo: this.props.setWizardOperationInfo,
        firstStep: this.props.firstStep,
        onReload: this.props.onReload,
        allObjectclasses: this.props.allObjectclasses,
        treeViewRootSuffixes: this.props.treeViewRootSuffixes,
        createdTemplateDN: myDn,
        stepReached: 2,
        cosDefName: this.props.cosDefName,
        cosDefDesc: this.props.cosDefDesc,
        cosDefType: this.props.cosDefType
      });
    }

    var namingValAndPriority = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextVariants.h3
    }, "Select Name And CoS Priority"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, null, "The CoS template entry contains the value or values of the attributes generated by the CoS logic. The CoS template entry contains a general object class of cosTemplate. The CoS template entries for a given CoS are stored in the directory tree along with the CoS definition."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, null, "The relative distinguished name (RDN) of the template entry is determined by one of the following:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextList, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TextListItem, null, "The DN of the template entry alone. This type of template is associated with a pointer CoS definition."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TextListItem, null, "The value of one of the target entry's attributes. The attribute used to provide the relative DN to the template entry is specified in the CoS definition entry using the cosIndirectSpecifier attribute. This type of template is associated with an indirect CoS definition."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TextListItem, null, "By a combination of the DN of the subtree where the CoS performs a one level search for templates and the value of one of the target entry's attributes. This type of template is associated with a classic CoS definition.")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, null, "Please, consult official documentation for more information and examples.")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Form, {
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 3,
      className: "ds-label"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, null, "CoS Template Name"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.TextInput, {
      value: namingVal,
      type: "text",
      id: "namingVal",
      "aria-describedby": "namingVal",
      name: "namingVal",
      onChange: (str, e) => {
        this.handleChange(e);
      },
      validated: this.state.namingVal === '' ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, null, "CoS Priority ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Tooltip, {
      position: "bottom",
      content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, "Specifies which template provides the attribute value when CoS templates compete to provide an attribute value. This attribute represents the global priority of a template. A priority of zero is the highest priority.")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("a", {
      className: "ds-font-size-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_20__.InfoCircleIcon, {
      className: "ds-info-icon"
    })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.NumberInput, {
      value: cospriority,
      min: 0,
      max: 2147483647,
      onMinus: () => {
        this.onMinusConfig("cospriority");
      },
      onChange: e => {
        this.onConfigChange(e, "cospriority", 0, 2147483647);
      },
      onPlus: () => {
        this.onPlusConfig("cospriority");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    })))));
    var objectClassStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-container"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextVariants.h3
    }, "Select ObjectClasses")), this.buildOCDropdown()), loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Bullseye, {
      className: "ds-margin-top-xlg",
      key: "add-entry-bulleye"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.Title, {
      headingLevel: "h3",
      size: "lg",
      key: "loading-title"
    }, "Loading ObjectClasses ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.Spinner, {
      className: "ds-center",
      size: "lg",
      key: "loading-spinner"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: loading ? "ds-hidden" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 5
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.SearchInput, {
      className: "ds-font-size-md",
      placeholder: "Search Objectclasses",
      value: this.state.searchValue,
      onChange: this.onOCSearchChange,
      onClear: evt => this.onOCSearchChange('', evt)
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 7
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.Pagination, {
      value: "ObjectClassTable",
      itemCount: itemCountOc,
      page: pageOc,
      perPage: perPageOc,
      onSetPage: this.onSetPageOc,
      widgetId: "pagination-step-objectclass",
      onPerPageSelect: this.onPerPageSelectOc,
      variant: "top",
      isCompact: true
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_27__.Table, {
      cells: columnsOc,
      rows: pagedRowsOc,
      canSelectAll: false,
      onSelect: this.onSelectOc,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_28__.TableVariant.compact,
      "aria-label": "Pagination All ObjectClasses"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_29__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_30__.TableBody, null))));
    var attributeStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-container"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextVariants.h3
    }, "Select Attributes")), this.buildAttrDropdown()), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_27__.Table, {
      className: "ds-margin-top",
      cells: columnsAttr,
      rows: pagedRowsAttr,
      onSelect: this.onSelectAttr,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_28__.TableVariant.compact,
      "aria-label": "Pagination Attributes",
      canSelectAll: false
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_29__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_30__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.Pagination, {
      itemCount: itemCountAttr,
      page: pageAttr,
      perPage: perPageAttr,
      onSetPage: this.onSetPageAttr,
      widgetId: "pagination-step-attributes",
      onPerPageSelect: this.onPerPageSelectAttr,
      dropDirection: "up",
      isCompact: true
    }));
    var myTitle = 'DN ( Distinguished Name )';
    var entryValuesStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__.Alert, {
      variant: namingAttr === '' || namingVal === '' ? 'warning' : 'success',
      isInline: true,
      title: myTitle
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Entry DN:\xA0\xA0\xA0"), namingAttr ? namingAttr : "??????", "=", namingVal ? namingVal : "??????", ",", this.props.wizardEntryDn), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextVariants.h3
    }, "Set Attribute Values")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_lib_editableTable_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], {
      key: editableTableData,
      wizardEntryDn: this.props.wizardEntryDn,
      editableTableData: editableTableData,
      isAttributeSingleValued: this.isAttributeSingleValued,
      isAttributeRequired: this.isAttributeRequired,
      enableNextStep: this.enableNextStep,
      saveCurrentRows: this.saveCurrentRows,
      allObjectclasses: this.props.allObjectclasses,
      namingRowID: this.state.namingRowID,
      namingAttr: this.state.namingAttr,
      setNamingRowID: this.setNamingRowID
    }));
    var ldifListItems = cleanLdifArray.map((line, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_32__.SimpleListItem, {
      key: index,
      isCurrent: line.startsWith('dn: ')
    }, line));
    var ldifStatementsStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-addons-bottom-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__.Alert, {
      variant: "info",
      isInline: true,
      title: "LDIF Statements"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_33__.Card, {
      isSelectable: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_34__.CardBody, null, ldifListItems.length > 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_35__.SimpleList, {
      "aria-label": "LDIF data User"
    }, ldifListItems))));
    var nb = -1;
    var ldifLines = ldifArray.map(line => {
      nb++;
      return {
        data: line,
        id: nb
      };
    });
    var entryReviewStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-addons-bottom-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__.Alert, {
      variant: resultVariant,
      isInline: true,
      title: "Result for Entry Modification"
    }, commandOutput, this.state.adding && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.Spinner, {
      className: "ds-left-margin",
      size: "md"
    }), "\xA0\xA0Adding entry ..."))), resultVariant === 'danger' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_33__.Card, {
      isSelectable: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_36__.CardTitle, null, "LDIF Data"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_34__.CardBody, null, ldifLines.map(line => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("h6", {
      key: line.id
    }, line.data)))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_37__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_37__.ModalVariant.small,
      title: "Create CoS Template",
      isOpen: this.state.isConfirmModalOpen,
      onClose: this.handleConfirmModalToggle,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_38__.Button, {
        key: "confirm",
        variant: "primary",
        onClick: this.handleCreateTemplateEnd
      }, "Create Template"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_38__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.handleConfirmModalToggle
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextContent, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, null, "You've chosen 'Classic' CoS type. cosTemplateDN attribute is set to ", this.props.wizardEntryDn, "."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, null, "Do you want to create a CoS template now?"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Text, null, "It will be added as a child to this entry: '", this.props.wizardEntryDn, "'"))))));
    var finishButtonName;

    if (this.props.cosDefCreateMoreTemplate) {
      finishButtonName = 'Create More Templates';
    } else if (this.props.definitionWizardEntryDn !== '') {
      finishButtonName = 'Back to CoS Definition';
    } else {
      finishButtonName = 'Finish';
    }

    var addEntrySteps = [...(this.props.definitionWizardEntryDn !== '' || this.props.cosDefCreateMoreTemplate ? [] : [{
      id: 1,
      name: this.props.firstStep[0].name,
      component: this.props.firstStep[0].component,
      canJumpTo: stepIdReached >= 1 && stepIdReached < 8,
      hideBackButton: true
    }]), {
      id: 2,
      name: 'Select Name & Priority',
      component: namingValAndPriority,
      enableNext: namingVal === '' ? false : true,
      canJumpTo: stepIdReached >= 2 && stepIdReached < 8
    }, {
      id: 3,
      name: 'Select ObjectClasses',
      component: objectClassStep,
      canJumpTo: stepIdReached >= 3 && stepIdReached < 8,
      enableNext: selectedObjectClasses.length > 1
    }, {
      id: 4,
      name: 'Select Attributes',
      component: attributeStep,
      canJumpTo: stepIdReached >= 4 && stepIdReached < 8,
      enableNext: selectedAttributes.length > 0
    }, {
      id: 5,
      name: 'Edit Values',
      component: entryValuesStep,
      canJumpTo: stepIdReached >= 5 && stepIdReached < 8,
      enableNext: validMods
    }, {
      id: 6,
      name: 'LDIF Statements',
      component: ldifStatementsStep,
      nextButtonText: 'Create Entry',
      canJumpTo: stepIdReached >= 6 && stepIdReached < 8
    }, {
      id: 7,
      name: 'Review Result',
      component: entryReviewStep,
      nextButtonText: finishButtonName,
      canJumpTo: stepIdReached >= 7 && stepIdReached < 8,
      hideBackButton: true,
      enableNext: !this.state.adding
    }, ...(this.props.definitionWizardEntryDn !== '' || this.props.cosDefCreateMoreTemplate ? [{
      id: 8,
      name: this.props.cosDefCreateMoreTemplate ? 'Create More Templates' : 'Back to CoS Definition',
      component: entryReviewStep,
      nextButtonText: 'Finish',
      canJumpTo: stepIdReached >= 7 && stepIdReached < 8,
      hideBackButton: true
    }] : [])];
    var title = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, "Parent DN: \xA0\xA0", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, this.props.wizardEntryDn));
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_39__.Wizard, {
      isOpen: this.props.isWizardOpen,
      onClose: this.toggleOpenWizard,
      steps: addEntrySteps,
      title: "Add CoS Template",
      description: title,
      onNext: this.onNext
    });
  }

}

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AddCosTemplate);

/***/ }),

/***/ "./src/lib/ldap_editor/wizards/operations/addGroup.jsx":
/*!*************************************************************!*\
  !*** ./src/lib/ldap_editor/wizards/operations/addGroup.jsx ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Radio/Radio.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/NumberInput/NumberInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Label/Label.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SearchInput/SearchInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelector.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/Card.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardBody.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleListItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/Alert.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleList.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardTitle.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Wizard/Wizard.js");
/* harmony import */ var _lib_ldapNavigator_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../lib/ldapNavigator.jsx */ "./src/lib/ldap_editor/lib/ldapNavigator.jsx");
/* harmony import */ var _lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../lib/utils.jsx */ "./src/lib/ldap_editor/lib/utils.jsx");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/info-circle-icon.js");
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }







class AddGroup extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props); // gid range

    _defineProperty(this, "generateLdifData", () => {
      var objectClassData = ['objectClass: top'];
      var valueData = [];
      var memberAttr = "";

      if (this.state.posixGroup) {
        objectClassData.push('objectClass: groupOfNames');
        objectClassData.push('objectClass: posixGroup');
        memberAttr = "member";
      } else {
        if (this.state.memberAttr === "uniquemember") {
          objectClassData.push('objectClass: groupOfUniqueNames');
          memberAttr = "uniquemember";
        } else {
          objectClassData.push('objectClass: groupOfNames');
          memberAttr = "member";
        }
      }

      if (this.state.groupDesc !== "") {
        valueData.push("description: ".concat(this.state.groupDesc));
      }

      if (this.state.posixGroup && this.state.gidNumber > 0) {
        valueData.push("gidNumber: ".concat(this.state.gidNumber));
      }

      var _iterator = _createForOfIteratorHelper(this.state.usersChosenOptions),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var userObj = _step.value;
          var dn_val = userObj.props.title.replace(/^dn: /, "");
          valueData.push("".concat(memberAttr, ": ").concat(dn_val));
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      var ldifArray = ["dn: cn=".concat(this.state.groupName, ",").concat(this.props.wizardEntryDn), ...objectClassData, "cn: ".concat(this.state.groupName), ...valueData];
      this.setState({
        ldifArray
      });
    });

    this.minValue = 0;
    this.maxValue = 1878982656;
    this.state = {
      parentDN: "",
      groupName: "",
      isTreeLoading: false,
      groupType: "Basic Group",
      isOpenType: false,
      memberAttr: "member",
      members: [],
      searching: false,
      searchPattern: "",
      showLDAPNavModal: false,
      usersSearchBaseDn: "",
      usersAvailableOptions: [],
      usersChosenOptions: [],
      ldifArray: [],
      resultVariant: 'default',
      commandOutput: "",
      stepIdReached: 0,
      noEmptyValue: false,
      adding: true,
      posixGroup: false,
      gidNumber: 0,
      groupDesc: ""
    };

    this.handleBaseDnSelection = treeViewItem => {
      this.setState({
        usersSearchBaseDn: treeViewItem.dn
      });
    };

    this.showTreeLoadingState = isTreeLoading => {
      this.setState({
        isTreeLoading,
        searching: isTreeLoading ? true : false
      });
    };

    this.openLDAPNavModal = () => {
      this.setState({
        showLDAPNavModal: true
      });
    };

    this.closeLDAPNavModal = () => {
      this.setState({
        showLDAPNavModal: false
      });
    };

    this.onNext = _ref => {
      var id = _ref.id;
      this.setState({
        stepIdReached: this.state.stepIdReached < id ? id : this.state.stepIdReached
      });

      if (id === 4) {
        // Generate the LDIF data.
        this.generateLdifData();
      } else if (id === 5) {
        // Create the LDAP entry.
        var myLdifArray = this.state.ldifArray;
        (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.createLdapEntry)(this.props.editorLdapServer, myLdifArray, result => {
          this.setState({
            commandOutput: result.errorCode === 0 ? 'Group successfully created!' : 'Failed to create group, error: ' + result.errorCode,
            resultVariant: result.errorCode === 0 ? 'success' : 'danger',
            adding: false
          }, () => {
            this.props.onReload();
          }); // Update the wizard operation information.

          var myDn = myLdifArray[0].substring(4);
          var relativeDn = myLdifArray[3].replace(": ", "="); // cn val

          var opInfo = {
            operationType: 'ADD',
            resultCode: result.errorCode,
            time: Date.now(),
            entryDn: myDn,
            relativeDn: relativeDn
          };
          this.props.setWizardOperationInfo(opInfo);
        });
      }
    };

    this.onBack = _ref2 => {
      var id = _ref2.id;

      if (id === 4) {
        this.updateValuesTableRows(true);
      }
    };

    this.handleSearchClick = () => {
      this.setState({
        isSearchRunning: true,
        usersAvailableOptions: []
      }, () => {
        this.getEntries();
      });
    };

    this.handleSearchPattern = searchPattern => {
      this.setState({
        searchPattern
      });
    };

    this.getEntries = () => {
      var baseDn = this.state.usersSearchBaseDn;
      var pattern = this.state.searchPattern;
      var filter = pattern === '' ? '(|(objectClass=person)(objectClass=nsPerson))' : "(&(|(objectClass=person)(objectClass=nsPerson)(objectClass=nsAccount)(objectClass=nsOrgPerson)(objectClass=posixAccount))(|(cn=*".concat(pattern, "*)(uid=").concat(pattern, ")))");
      var attrs = 'cn uid';
      var params = {
        serverId: this.props.editorLdapServer,
        baseDn: baseDn,
        scope: 'sub',
        filter: filter,
        attributes: attrs
      };
      (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.runGenericSearch)(params, resultArray => {
        var newOptionsArray = resultArray.map(result => {
          var lines = result.split('\n'); // TODO: Currently picking the first value found.
          // Might be worth to take the value that is used as RDN in case of multiple values.
          // Handle base64-encoded data:

          var pos0 = lines[0].indexOf(':: ');
          var pos1 = lines[1].indexOf(':: ');
          var dnLine = lines[0];

          if (pos0 > 0) {
            var decoded = decodeLine(dnLine);
            dnLine = "".concat(decoded[0], ": ").concat(decoded[1]);
          }

          var value = pos1 === -1 ? lines[1].split(': ')[1] : decodeLine(lines[1])[1];
          return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", {
            title: dnLine
          }, value);
        });
        this.setState({
          usersAvailableOptions: newOptionsArray,
          isSearchRunning: false
        });
      });
    };

    this.removeDuplicates = options => {
      var titles = options.map(item => item.props.title);
      var noDuplicates = options.filter((item, index) => {
        return titles.indexOf(item.props.title) === index;
      });
      return noDuplicates;
    };

    this.usersOnListChange = (newAvailableOptions, newChosenOptions) => {
      var newAvailNoDups = this.removeDuplicates(newAvailableOptions);
      var newChosenNoDups = this.removeDuplicates(newChosenOptions);
      this.setState({
        usersAvailableOptions: newAvailNoDups.sort(),
        usersChosenOptions: newChosenNoDups.sort()
      });
    };

    this.handleRadioChange = (_, event) => {
      this.setState({
        memberAttr: event.currentTarget.id
      });
    }; // Group Type handling


    this.onToggleType = isOpenType => {
      this.setState({
        isOpenType
      });
    };

    this.onSelectType = (event, selection) => {
      this.setState({
        posixGroup: selection === "Posix Group",
        groupType: selection,
        isOpenType: false
      });
    }; // gid/uid input handling


    this.onMinusConfig = id => {
      if (Number(this.state[id]) - 1 < 1) {
        return;
      }

      this.setState({
        [id]: Number(this.state[id]) - 1
      });
    };

    this.onConfigChange = (event, id, min) => {
      var newValue = isNaN(event.target.value) ? 0 : Number(event.target.value);
      this.setState({
        [id]: newValue > this.maxValue ? this.maxValue : newValue < min ? min : newValue
      });
    };

    this.onPlusConfig = id => {
      this.setState({
        [id]: Number(this.state[id]) + 1
      });
    };

    this.handleChange = this.handleChange.bind(this);
  }

  componentDidMount() {
    this.setState({
      parentDN: this.props.wizardEntryDn,
      usersSearchBaseDn: this.props.wizardEntryDn
    });
  }

  handleChange(e) {
    var attr = e.target.id;
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [attr]: value
    });
  }

  render() {
    var _this$state = this.state,
        groupName = _this$state.groupName,
        usersSearchBaseDn = _this$state.usersSearchBaseDn,
        usersAvailableOptions = _this$state.usersAvailableOptions,
        usersChosenOptions = _this$state.usersChosenOptions,
        showLDAPNavModal = _this$state.showLDAPNavModal,
        ldifArray = _this$state.ldifArray,
        resultVariant = _this$state.resultVariant,
        commandOutput = _this$state.commandOutput,
        stepIdReached = _this$state.stepIdReached,
        groupDesc = _this$state.groupDesc;
    var groupSelectStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-container"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextVariants.h3
    }, "Select Group Type"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.SelectVariant.single,
      className: "ds-margin-top-lg",
      "aria-label": "Select group type",
      onToggle: this.onToggleType,
      onSelect: this.onSelectType,
      selections: this.state.groupType,
      isOpen: this.state.isOpenType
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.SelectOption, {
      key: "group",
      value: "Basic Group"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.SelectOption, {
      key: "posix",
      value: "Posix Group"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.TextContent, {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextVariants.h6,
      className: "ds-margin-top-lg ds-font-size-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Basic Group"), " - This type of group can use membership attributes: member, or uniqueMember common set of objectclasses and attributes."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextVariants.h6,
      className: "ds-margin-top-lg ds-font-size-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Posix Group"), " - This type of group uses the 'GroupOfNames' and 'PosixGroup' objectclasses which allows for attributes like ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, "gidNumber"), ", etc"))));
    var groupNameStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextVariants.h3
    }, "Select Name")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Form, {
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 2,
      className: "ds-label"
    }, "Group Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      value: groupName,
      type: "text",
      id: "groupName",
      "aria-describedby": "groupName",
      name: "groupName",
      onChange: (str, e) => {
        this.handleChange(e);
      },
      validated: this.state.groupName === '' ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      title: "Optional description for this group."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 2,
      className: "ds-label"
    }, "Group Description"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      value: groupDesc,
      type: "text",
      id: "groupDesc",
      "aria-describedby": "groupDesc",
      name: "groupDesc",
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), !this.state.posixGroup && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.TextContent, {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextVariants.h5
    }, "Choose The Membership")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-left-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Radio, {
      name: "memberAttrGroup",
      id: "member",
      value: "member",
      label: "member",
      isChecked: this.state.memberAttr === 'member',
      onChange: this.handleRadioChange,
      description: "This group uses objectclass 'GroupOfNames'."
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Radio, {
      name: "memberAttrGroup",
      id: "uniquemember",
      value: "uniquemember",
      label: "uniquemember",
      isChecked: this.state.memberAttr === 'uniquemember',
      onChange: this.handleRadioChange,
      description: "This group uses objectclass 'GroupOfUniqueNames'.",
      className: "ds-margin-top"
    }))), this.state.posixGroup && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      title: "This setting corresponds to the attribute: gidNumber.  The gid must be greater than zero for this attribute to be set.",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      className: "ds-label",
      span: 2
    }, "Group ID Number"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.NumberInput, {
      value: this.state.gidNumber,
      min: this.minValue,
      max: this.maxValue,
      onMinus: () => {
        this.onMinusConfig("gidNumber");
      },
      onChange: e => {
        this.onConfigChange(e, "gidNumber", 0);
      },
      onPlus: () => {
        this.onPlusConfig("gidNumber");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))))));
    var selectMembersStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Form, {
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextVariants.h3
    }, "Add Members To The Group"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 12,
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Label, {
      onClick: this.openLDAPNavModal,
      href: "#",
      variant: "outline",
      color: "blue",
      icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_16__.InfoCircleIcon, null)
    }, "Search Base DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, "\xA0\xA0", usersSearchBaseDn)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 12,
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.SearchInput, {
      placeholder: "Find members...",
      value: this.state.searchPattern,
      onChange: this.handleSearchPattern,
      onSearch: this.handleSearchClick,
      onClear: () => {
        this.handleSearchPattern('');
      }
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 12,
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.DualListSelector, {
      availableOptions: usersAvailableOptions,
      chosenOptions: usersChosenOptions,
      availableOptionsTitle: "Available Members",
      chosenOptionsTitle: "Chosen Members",
      onListChange: this.usersOnListChange,
      id: "usersSelector"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.ModalVariant.medium,
      title: "Choose A Branch To Search",
      isOpen: showLDAPNavModal,
      onClose: this.closeLDAPNavModal,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Button, {
        key: "confirm",
        variant: "primary",
        onClick: this.closeLDAPNavModal
      }, "Done")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.Card, {
      isSelectable: true,
      className: "ds-indent ds-margin-bottom-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.CardBody, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_lib_ldapNavigator_jsx__WEBPACK_IMPORTED_MODULE_1__["default"], {
      treeItems: [...this.props.treeViewRootSuffixes],
      editorLdapServer: this.props.editorLdapServer,
      skipLeafEntries: true,
      handleNodeOnClick: this.handleBaseDnSelection,
      showTreeLoadingState: this.showTreeLoadingState
    })))))));
    var ldifListItems = ldifArray.map((line, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.SimpleListItem, {
      key: index,
      isCurrent: line.startsWith('dn: ')
    }, line));
    var groupCreationStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.Alert, {
      variant: "info",
      isInline: true,
      title: "LDIF Content for Group Creation"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.Card, {
      isSelectable: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.CardBody, null, ldifListItems.length > 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.SimpleList, {
      "aria-label": "LDIF data User"
    }, ldifListItems))));
    var nb = -1;
    var ldifLines = ldifArray.map(line => {
      nb++;
      return {
        data: line,
        id: nb
      };
    });
    var groupReviewStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.Alert, {
      variant: resultVariant,
      isInline: true,
      title: "Result for Group Creation"
    }, commandOutput, this.state.adding && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.Spinner, {
      className: "ds-left-margin",
      size: "md"
    }), "\xA0\xA0Adding group ...")), resultVariant === 'danger' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.Card, {
      isSelectable: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__.CardTitle, null, "LDIF Data"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.CardBody, null, ldifLines.map(line => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("h6", {
      key: line.id
    }, line.data)))));
    var addGroupSteps = [{
      id: 1,
      name: 'Select Group Type',
      component: groupSelectStep,
      canJumpTo: stepIdReached >= 1 && stepIdReached < 5,
      hideBackButton: true
    }, {
      id: 2,
      name: 'Select Name',
      component: groupNameStep,
      canJumpTo: stepIdReached >= 2 && stepIdReached < 5,
      enableNext: groupName === '' ? false : true
    }, {
      id: 3,
      name: 'Add Members',
      component: selectMembersStep,
      canJumpTo: stepIdReached >= 3 && stepIdReached < 5
    }, {
      id: 4,
      name: 'Create Group',
      component: groupCreationStep,
      nextButtonText: 'Create',
      canJumpTo: stepIdReached >= 4 && stepIdReached < 5
    }, {
      id: 5,
      name: 'Review Result',
      component: groupReviewStep,
      nextButtonText: 'Finish',
      canJumpTo: stepIdReached >= 5,
      hideBackButton: true,
      enableNext: !this.state.adding
    }];
    var title = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, "Parent DN: \xA0\xA0", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, this.props.wizardEntryDn));
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__.Wizard, {
      isOpen: this.props.isWizardOpen,
      onClose: this.props.toggleOpenWizard,
      onNext: this.onNext,
      onBack: this.onBack,
      title: "Add A Group",
      description: title,
      steps: addGroupSteps
    });
  }

}

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AddGroup);

/***/ }),

/***/ "./src/lib/ldap_editor/wizards/operations/addLdapEntry.jsx":
/*!*****************************************************************!*\
  !*** ./src/lib/ldap_editor/wizards/operations/addLdapEntry.jsx ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/Dropdown.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/dropdownConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/BadgeToggle.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Bullseye/Bullseye.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Title/Title.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SearchInput/SearchInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Pagination/Pagination.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/Alert.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleListItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/Card.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardBody.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleList.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardTitle.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Wizard/Wizard.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/wrappable.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/headerCol.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Table.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableTypes.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Header.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Body.js");
/* harmony import */ var _lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../lib/utils.jsx */ "./src/lib/ldap_editor/lib/utils.jsx");
/* harmony import */ var _lib_editableTable_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../lib/editableTable.jsx */ "./src/lib/ldap_editor/lib/editableTable.jsx");
/* harmony import */ var _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../lib/constants.jsx */ "./src/lib/ldap_editor/lib/constants.jsx");
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }








class AddLdapEntry extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    var _this;

    super(props);
    _this = this;

    _defineProperty(this, "isAttributeSingleValued", attr => {
      return this.singleValuedAttributes.includes(attr.toLowerCase());
    });

    _defineProperty(this, "isAttributeRequired", attr => {
      return this.requiredAttributes.includes(attr);
    });

    _defineProperty(this, "enableNextStep", yes => {
      this.setState({
        validMods: yes
      });
    });

    _defineProperty(this, "saveCurrentRows", editableTableData => {
      var validMods = true;
      var namingVal = this.state.namingVal;
      var namingAttrVal = this.state.namingAttrVal;

      var _iterator = _createForOfIteratorHelper(editableTableData),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var row = _step.value;

          if (row.val === "") {
            validMods = false;
            break;
          }

          if (row.id === this.state.namingRowID) {
            namingVal = row.val;
            namingAttrVal = row.attr + "=" + row.val;
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      this.setState({
        editableTableData,
        validMods,
        namingVal,
        namingAttrVal
      });
    });

    _defineProperty(this, "onSetPageOc", (_event, pageNumber) => {
      this.setState({
        pageOc: pageNumber,
        pagedRowsOc: this.getItemsToShow(pageNumber, this.state.perPageOc, 'ObjectClassTable')
      });
    });

    _defineProperty(this, "onSetPageAttr", (_event, pageNumber) => {
      this.setState({
        pageAttr: pageNumber,
        pagedRowsAttr: this.getItemsToShow(pageNumber, this.state.perPageAttr, 'AttributeTable')
      });
    });

    _defineProperty(this, "onPerPageSelectOc", (_event, perPage) => {
      this.setState({
        pageOc: 1,
        perPageOc: perPage,
        pagedRowsOc: this.getItemsToShow(1, perPage, 'ObjectClassTable')
      });
    });

    _defineProperty(this, "onPerPageSelectAttr", (_event, perPage) => {
      this.setState({
        pageAttr: 1,
        perPageAttr: perPage,
        pagedRowsAttr: this.getItemsToShow(1, perPage, 'AttributeTable')
      });
    });

    _defineProperty(this, "onSelectOc", (event, isSelected, rowId) => {
      // Process only the entries in the current page ( pagedRowsOc )
      var rows = [...this.state.pagedRowsOc];
      rows[rowId].selected = isSelected; // Find the entry in the full array and set 'isAttributeSelected' accordingly
      // The property 'selected' is used to build the attribute table.
      // The row ID cannot be used since it changes with the pagination.

      var ocName = this.state.pagedRowsOc[rowId].cells[0];
      var allItems = [...this.state.rowsOc];
      var index = allItems.findIndex(item => item.cells[0] === ocName);
      allItems[index].selected = isSelected;
      var selectedObjectClasses = [...this.state.selectedObjectClasses];

      if (isSelected) {
        // Add to selected OC
        selectedObjectClasses.push(allItems[index]);
      } else {
        // Remove OC from selected list
        selectedObjectClasses = selectedObjectClasses.filter(row => row.cells[0] !== allItems[index].cells[0]);
      }

      var attrsToRemove = [];

      if (!isSelected) {
        // Removing an objectclass, this will impact the entry as we might have to remove attributes
        var ocAttrs = allItems[index].cells[1].toLowerCase().replace(/\s/g, '').split(',');
        ocAttrs = ocAttrs.concat(allItems[index].cells[2].toLowerCase().replace(/\s/g, '').split(','));
        var currAttrs = [];

        var _iterator2 = _createForOfIteratorHelper(selectedObjectClasses),
            _step2;

        try {
          for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
            var oc = _step2.value;
            // Gather all the allowed attributes
            currAttrs = currAttrs.concat(oc.cells[1].toLowerCase().replace(/\s/g, '').split(','));
            currAttrs = currAttrs.concat(oc.cells[2].toLowerCase().replace(/\s/g, '').split(','));
          }
        } catch (err) {
          _iterator2.e(err);
        } finally {
          _iterator2.f();
        }

        var _iterator3 = _createForOfIteratorHelper(ocAttrs),
            _step3;

        try {
          for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
            var attr = _step3.value;

            if (currAttrs.indexOf(attr) === -1) {
              // No other OC allows this attribute, it must go
              attrsToRemove.push(attr);
            }
          }
        } catch (err) {
          _iterator3.e(err);
        } finally {
          _iterator3.f();
        }
      }

      this.setState({
        rowsOc: allItems,
        pagedRowsOc: rows,
        selectedObjectClasses,
        attrsToRemove
      }, () => {
        this.updateAttributeTableRows();
      });
    });

    _defineProperty(this, "onSelectAttr", (event, isSelected, rowId) => {
      var newEditableData = this.state.editableTableData;
      var rows; // Quick hack until the code is upgraded to a version that supports "disableCheckbox"

      if (this.state.pagedRowsAttr[rowId].disableCheckbox === true) {
        return;
      } // End hack.
      // Process only the entries in the current page ( pagedRowsAttr )


      rows = [...this.state.pagedRowsAttr];
      rows[rowId].selected = isSelected; // Find the entry in the full array and set 'isAttributeSelected' accordingly
      // The property 'isAttributeSelected' is used to build the LDAP entry to add.
      // The row ID cannot be used since it changes with the pagination.

      var attrName = this.state.pagedRowsAttr[rowId].cells[0];
      var allItems = [...this.state.rowsAttr];
      var index = allItems.findIndex(item => item.cells[0] === attrName);
      allItems[index].isAttributeSelected = isSelected;
      var selectedAttributes = allItems.filter(item => item.isAttributeSelected).map(attrObj => [attrObj.attributeName, attrObj.cells[1]]); // Update the table rows as needed

      var rowAttr = rows[rowId].attributeName.toLowerCase();
      var found = this.state.editableTableData.filter(item => item.attr.toLowerCase() === rowAttr);

      if (isSelected) {
        if (found.length === 0 && rowAttr !== 'objectclass') {
          var obj = {};
          obj.id = (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.generateUniqueId)();
          obj.attr = rows[rowId].attributeName;
          obj.val = "";
          obj.namingAttr = false;
          obj.required = false;
          newEditableData = [...newEditableData, obj];
        }
      } else if (found.length > 0) {
        // Remove the row if present
        newEditableData = this.state.editableTableData.filter(item => item.attr.toLowerCase() !== rowAttr);
      }

      var validMods = true;

      var _iterator4 = _createForOfIteratorHelper(newEditableData),
          _step4;

      try {
        for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
          var row = _step4.value;

          if (row.val === "") {
            validMods = false;
          }
        }
      } catch (err) {
        _iterator4.e(err);
      } finally {
        _iterator4.f();
      }

      this.setState({
        rowsAttr: allItems,
        pagedRowsAttr: rows,
        editableTableData: newEditableData,
        selectedAttributes,
        validMods
      });
    });

    _defineProperty(this, "updateAttributeTableRows", () => {
      var ocToProcess = [...this.state.selectedObjectClasses];
      var rowsAttr = [];
      var attrList = [];
      var namingRowID = this.state.namingRowID;
      var namingAttr = this.state.namingAttr;
      var isNamingAttr = false;

      for (var _i = 0, _ocToProcess = ocToProcess; _i < _ocToProcess.length; _i++) {
        var oc = _ocToProcess[_i];
        // Rebuild the attribute arrays.
        var required = oc.cells[1].split(',');
        var optional = oc.cells[2].split(',');

        var _iterator5 = _createForOfIteratorHelper(required),
            _step5;

        try {
          var _loop = function _loop() {
            var attr = _step5.value;
            attr = attr.trim().toLowerCase();

            if (attr === '') {
              return "continue";
            }

            if (!attrList.includes(attr)) {
              attrList.push(attr);
              rowsAttr.push({
                selected: true,
                disableCheckbox: true,
                // TODO: Hack until upgrading!
                isAttributeSelected: true,
                attributeName: attr,
                cells: [{
                  title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, attr))
                }, oc.cells[0]]
              });
            } // Loop over entry attributes and add the attribute, with an
            // empty value, to the editableTableData


            var found = _this.state.editableTableData.filter(item => item.attr.toLowerCase() === attr);

            if (found.length === 0 && attr !== 'objectclass') {
              var new_id = (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.generateUniqueId)();

              if (namingRowID === -1) {
                namingRowID = new_id;
                namingAttr = attr;
                isNamingAttr = true;
              }

              var obj = {};
              obj.id = new_id;
              obj.attr = attr;
              obj.val = "";
              obj.namingAttr = false;
              obj.required = true;

              _this.setState(prevState => ({
                editableTableData: [...prevState.editableTableData, obj],
                validMods: false,
                namingRowID: namingRowID,
                namingAttr: namingAttr
              }));
            }
          };

          for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
            var _ret = _loop();

            if (_ret === "continue") continue;
          }
        } catch (err) {
          _iterator5.e(err);
        } finally {
          _iterator5.f();
        }

        var _iterator6 = _createForOfIteratorHelper(optional),
            _step6;

        try {
          for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
            var attr = _step6.value;
            attr = attr.trim();

            if (attr === '') {
              continue;
            }

            if (!attrList.includes(attr)) {
              var selected = false;

              var _iterator7 = _createForOfIteratorHelper(this.state.editableTableData),
                  _step7;

              try {
                for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
                  var existingRow = _step7.value;

                  if (existingRow.attr.toLowerCase() === attr.toLowerCase()) {
                    selected = true;
                    break;
                  }
                }
              } catch (err) {
                _iterator7.e(err);
              } finally {
                _iterator7.f();
              }

              attrList.push(attr);
              rowsAttr.push({
                attributeName: attr,
                isAttributeSelected: selected,
                selected: selected,
                cells: [attr, oc.cells[0]]
              });
            }
          }
        } catch (err) {
          _iterator6.e(err);
        } finally {
          _iterator6.f();
        }
      } // Update the rows where user can select the attributes.


      rowsAttr.sort((a, b) => a.attributeName > b.attributeName ? 1 : -1);
      this.setState({
        rowsAttr,
        selectedAttributes: rowsAttr.filter(item => item.isAttributeSelected).map(attrObj => [attrObj.attributeName, attrObj.cells[1]]),
        itemCountAttr: rowsAttr.length
      }, () => {
        // getItemsToShow() expects rowAttrs to be updated already, so we
        // have to do this callback
        this.setState({
          pagedRowsAttr: this.getItemsToShow(this.state.pageAttr, this.state.perPageAttr, 'AttributeTable')
        });
      });
    });

    _defineProperty(this, "generateLdifData", () => {
      var objectClassData = ['top'];
      var attribute = this.state.namingAttr;
      var value = this.state.namingVal;
      var valueData = [];

      var _iterator8 = _createForOfIteratorHelper(this.state.selectedObjectClasses),
          _step8;

      try {
        for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
          var oc = _step8.value;

          if (oc && !objectClassData.includes(oc.cells[0])) {
            objectClassData.push(oc.cells[0]);
          }
        }
      } catch (err) {
        _iterator8.e(err);
      } finally {
        _iterator8.f();
      }

      var _iterator9 = _createForOfIteratorHelper(this.state.editableTableData),
          _step9;

      try {
        for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
          var item = _step9.value;
          var attrName = item.attr;
          valueData.push("".concat(attrName, ": ").concat(item.val));
        }
      } catch (err) {
        _iterator9.e(err);
      } finally {
        _iterator9.f();
      }

      var ocArray = objectClassData.map(oc => "ObjectClass: ".concat(oc));
      var dnLine = "dn: ".concat(attribute, "=").concat(value, ",").concat(this.props.wizardEntryDn);
      var ldifArray = [dnLine, ...ocArray, ...valueData]; // Hide userpassword value

      var cleanLdifArray = [...ldifArray];

      for (var idx in cleanLdifArray) {
        if (cleanLdifArray[idx].toLowerCase().startsWith("userpassword")) {
          cleanLdifArray[idx] = "userpassword: ********";
          break;
        }
      }

      this.setState({
        ldifArray,
        cleanLdifArray
      });
    });

    _defineProperty(this, "onOCDropDownToggle", isOpen => {
      this.setState({
        isOCDropDownOpen: isOpen
      });
    });

    _defineProperty(this, "onOCDropDownSelect", event => {
      this.setState((prevState, props) => {
        return {
          isOCDropDownOpen: !prevState.isOCDropDownOpen
        };
      });
    });

    _defineProperty(this, "buildOCDropdown", () => {
      var _this$state = this.state,
          isOCDropDownOpen = _this$state.isOCDropDownOpen,
          selectedObjectClasses = _this$state.selectedObjectClasses;
      var numSelected = this.state.rowsOc.filter(item => item.selected).length;
      var items = this.state.selectedObjectClasses.map(oc => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.DropdownItem, {
        key: oc.cells[0]
      }, oc.cells[0]));
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Dropdown, {
        className: "ds-dropdown-padding",
        onSelect: this.onOCDropDownSelect,
        position: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.DropdownPosition.left,
        toggle: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.BadgeToggle, {
          id: "toggle-oc-select",
          onToggle: this.onOCDropDownToggle
        }, numSelected !== 0 ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, numSelected, " selected ") : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, "0 selected ")),
        isOpen: isOCDropDownOpen,
        dropdownItems: items
      });
    });

    _defineProperty(this, "onAttrDropDownToggle", isOpen => {
      this.setState({
        isAttrDropDownOpen: isOpen
      });
    });

    _defineProperty(this, "onAttrDropDownSelect", event => {
      this.setState((prevState, props) => {
        return {
          isAttrDropDownOpen: !prevState.isAttrDropDownOpen
        };
      });
    });

    _defineProperty(this, "buildAttrDropdown", () => {
      var _this$state2 = this.state,
          isAttrDropDownOpen = _this$state2.isAttrDropDownOpen,
          selectedAttributes = _this$state2.selectedAttributes;
      var numSelected = selectedAttributes.length;
      var items = selectedAttributes.map(attr => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.DropdownItem, {
        key: attr[0]
      }, attr[0]));
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Dropdown, {
        className: "ds-dropdown-padding",
        onSelect: this.onAttrDropDownSelect,
        position: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.DropdownPosition.left,
        toggle: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.BadgeToggle, {
          id: "toggle-attr-select",
          onToggle: this.onAttrDropDownToggle
        }, numSelected !== 0 ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, numSelected, " selected ") : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, "0 selected ")),
        isOpen: isAttrDropDownOpen,
        dropdownItems: items
      });
    });

    _defineProperty(this, "setNamingRowID", namingRowID => {
      var namingAttrVal = "";
      var namingAttr = "";
      var namingVal = "";
      var rows = this.state.editableTableData;

      var _iterator10 = _createForOfIteratorHelper(rows),
          _step10;

      try {
        for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
          var row = _step10.value;

          if (row.id === namingRowID) {
            namingAttrVal = row.attr + "=" + row.val;
            namingAttr = row.attr;
            namingVal = row.val;
            break;
          }
        }
      } catch (err) {
        _iterator10.e(err);
      } finally {
        _iterator10.f();
      }

      this.setState({
        namingRowID,
        namingAttrVal,
        namingAttr,
        namingVal
      });
    });

    this.originalEntryRows = [];
    this.singleValuedAttributes = [];
    this.requiredAttributes = ['dn'];
    this.operationColumns = [{
      title: 'Statement'
    }, {
      title: 'Attribute'
    }, {
      title: 'Value',
      cellTransforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.breakWord]
    }];
    this.state = {
      loading: true,
      isOCDropDownOpen: false,
      isAttrDropDownOpen: false,
      namingAttributeData: ['', ''],
      namingAttrPropsName: '',
      namingRowID: -1,
      namingVal: '',
      editableTableData: [],
      statementRows: [],
      ldifArray: [],
      cleanLdifArray: [],
      validMods: false,
      commandOutput: '',
      resultVariant: 'default',
      stepIdReached: 1,
      itemCountOc: 0,
      pageOc: 1,
      perPageOc: 6,
      itemCountAttr: 0,
      pageAttr: 1,
      perPageAttr: 10,
      columnsAttr: [{
        title: 'Attribute Name',
        cellTransforms: [(0,_patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.headerCol)()]
      }, {
        title: 'From ObjectClass'
      }],
      columnsOc: [{
        title: 'ObjectClass Name',
        cellTransforms: [(0,_patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.headerCol)()]
      }, {
        title: 'Required Attributes',
        cellTransforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.breakWord]
      }, {
        title: 'Optional Attributes',
        cellTransforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.breakWord]
      }],
      rowsOc: [],
      rowsAttr: [],
      rowsValues: [],
      pagedRowsOc: [],
      pagedRowsAttr: [],
      selectedObjectClasses: [],
      selectedAttributes: [],
      attrsToRemove: [],
      namingAttr: "",
      adding: true
    };

    this.onNext = _ref => {
      var id = _ref.id;
      this.setState({
        stepIdReached: this.state.stepIdReached < id ? id : this.state.stepIdReached
      }); // The function updateValuesTableRows() is called upon new seletion(s)
      // Make sure the values table is updated in case no selection was made.

      if (id === 2) {
        // Just call this function in order to make sure the values table is up-to-date
        // even after navigating back and forth.
        this.updateAttributeTableRows();
      } else if (id === 3) {
        // Remove attributes from removed objectclasses
        this.cleanUpEntry();
      } else if (id === 4) {
        // Generate the LDIF data at step 4.
        this.generateLdifData();
      } else if (id === 5) {
        // Create the LDAP entry.
        (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.createLdapEntry)(this.props.editorLdapServer, this.state.ldifArray, result => {
          this.setState({
            commandOutput: result.output,
            commandOutput: result.errorCode === 0 ? 'Successfully added entry!' : 'Failed to add entry, error: ' + result.errorCode,
            resultVariant: result.errorCode === 0 ? 'success' : 'danger',
            adding: false
          }, () => {
            this.props.onReload();
          });
          var myDn = this.state.ldifArray[0].substring(4);
          var opInfo = {
            operationType: 'ADD',
            resultCode: result.errorCode,
            time: Date.now(),
            entryDn: myDn,
            relativeDn: this.state.namingAttrVal
          };
          this.props.setWizardOperationInfo(opInfo);
        });
      }
    };

    this.cleanUpEntry = () => {
      var newRows = [];
      var validMods = true;

      var _iterator11 = _createForOfIteratorHelper(this.state.editableTableData),
          _step11;

      try {
        for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
          var row = _step11.value;
          var attr = row.attr.toLowerCase();

          if (this.state.attrsToRemove.indexOf(attr) === -1) {
            if (row.val === "") {
              validMods = false;
            }

            newRows.push(row);
          }
        }
      } catch (err) {
        _iterator11.e(err);
      } finally {
        _iterator11.f();
      }

      this.setState({
        editableTableData: newRows,
        validMods
      });
    };

    this.onOCSearchChange = (value, event) => {
      var ocRows = [];
      var allOCs = [];
      var val = value.toLowerCase(); // Get fresh list of Objectclasses andwhat is selected

      this.props.allObjectclasses.map(oc => {
        var selected = false;
        var selectionDisabled = false;

        var _iterator12 = _createForOfIteratorHelper(this.state.selectedObjectClasses),
            _step12;

        try {
          for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
            var selectedOC = _step12.value;

            if (selectedOC.cells[0].toLowerCase() === oc.name.toLowerCase()) {
              selected = true;
              break;
            }
          }
        } catch (err) {
          _iterator12.e(err);
        } finally {
          _iterator12.f();
        }

        if (oc.name === "top") {
          // Can not remove objectclass=top
          selectionDisabled = true;
        }

        allOCs.push({
          cells: [oc.name, oc.required.join(', '), oc.optional.join(', ')],
          selected: selected,
          disableSelection: selectionDisabled
        });
      }); // Process search filter on the entire list

      if (value !== "") {
        var _iterator13 = _createForOfIteratorHelper(allOCs),
            _step13;

        try {
          for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {
            var row = _step13.value;
            var name = row.cells[0].toLowerCase();
            var reqAttrs = row.cells[1].toLowerCase();
            var optAttrs = row.cells[2].toLowerCase();

            if (name.includes(val) || reqAttrs.includes(val) || optAttrs.includes(val)) {
              ocRows.push(row);
            }
          }
        } catch (err) {
          _iterator13.e(err);
        } finally {
          _iterator13.f();
        }
      } else {
        // Restore entire rowsOc list
        ocRows = allOCs;
      }

      this.setState({
        rowsOc: ocRows,
        pagedRowsOc: ocRows.slice(0, this.state.perPageOc)
      });
    }; // End constructor().

  }

  componentDidMount() {
    var ocArray = [];
    (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.getSingleValuedAttributes)(this.props.editorLdapServer, myAttrs => {
      this.singleValuedAttributes = [...myAttrs];
    });
    this.props.allObjectclasses.map(oc => {
      var selectionDisabled = false;

      if (oc.name === "top") {
        // Can not remove objectclass=top
        selectionDisabled = true;
      }

      ocArray.push({
        cells: [oc.name, oc.required.join(', '), oc.optional.join(', ')],
        selected: false,
        disableSelection: selectionDisabled
      });
    });
    this.setState({
      itemCountOc: ocArray.length,
      rowsOc: ocArray,
      pagedRowsOc: ocArray.slice(0, this.state.perPageOc),
      loading: false
    });
  }

  getItemsToShow(page, perPage, option) {
    var start = (page - 1) * perPage;
    var end = page * perPage;
    var newRows = option === 'ObjectClassTable' ? this.state.rowsOc.slice(start, end) : option === 'AttributeTable' ? this.state.rowsAttr.slice(start, end) : [];
    return newRows;
  }

  render() {
    var _this$state3 = this.state,
        loading = _this$state3.loading,
        itemCountOc = _this$state3.itemCountOc,
        pageOc = _this$state3.pageOc,
        perPageOc = _this$state3.perPageOc,
        columnsOc = _this$state3.columnsOc,
        pagedRowsOc = _this$state3.pagedRowsOc,
        itemCountAttr = _this$state3.itemCountAttr,
        pageAttr = _this$state3.pageAttr,
        perPageAttr = _this$state3.perPageAttr,
        columnsAttr = _this$state3.columnsAttr,
        pagedRowsAttr = _this$state3.pagedRowsAttr,
        commandOutput = _this$state3.commandOutput,
        namingAttr = _this$state3.namingAttr,
        namingVal = _this$state3.namingVal,
        stepIdReached = _this$state3.stepIdReached,
        itemCount = _this$state3.itemCount,
        pageAddUser = _this$state3.pageAddUser,
        perPageAddUser = _this$state3.perPageAddUser,
        ldifArray = _this$state3.ldifArray,
        statementRows = _this$state3.statementRows,
        resultVariant = _this$state3.resultVariant,
        editableTableData = _this$state3.editableTableData,
        numOfChanges = _this$state3.numOfChanges,
        validMods = _this$state3.validMods,
        cleanLdifArray = _this$state3.cleanLdifArray,
        selectedAttributes = _this$state3.selectedAttributes,
        selectedObjectClasses = _this$state3.selectedObjectClasses;
    var loadingStateRows = [{
      heightAuto: true,
      cells: [{
        props: {
          colSpan: 8
        },
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Bullseye, {
          key: "add-entry-bulleye"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Title, {
          headingLevel: "h2",
          size: "lg",
          key: "loading-title"
        }, "Loading..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("center", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Spinner, {
          size: "xl",
          key: "loading-spinner"
        })))
      }, 'Loading...', 'Loading...']
    }];
    var objectClassStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-container"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextVariants.h3
    }, "Select ObjectClasses")), this.buildOCDropdown()), loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Bullseye, {
      className: "ds-margin-top-xlg",
      key: "add-entry-bulleye"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Title, {
      headingLevel: "h3",
      size: "lg",
      key: "loading-title"
    }, "Loading ObjectClasses ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Spinner, {
      className: "ds-center",
      size: "lg",
      key: "loading-spinner"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: loading ? "ds-hidden" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Grid, {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
      span: 5
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.SearchInput, {
      className: "ds-font-size-md",
      placeholder: "Search Objectclasses",
      value: this.state.searchValue,
      onChange: this.onOCSearchChange,
      onClear: evt => this.onOCSearchChange('', evt)
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.GridItem, {
      span: 7
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Pagination, {
      value: "ObjectClassTable",
      itemCount: itemCountOc,
      page: pageOc,
      perPage: perPageOc,
      onSetPage: this.onSetPageOc,
      widgetId: "pagination-step-objectclass",
      onPerPageSelect: this.onPerPageSelectOc,
      variant: "top",
      isCompact: true
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_19__.Table, {
      cells: columnsOc,
      rows: pagedRowsOc,
      canSelectAll: false,
      onSelect: this.onSelectOc,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_20__.TableVariant.compact,
      "aria-label": "Pagination All ObjectClasses"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_21__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_22__.TableBody, null))));
    var attributeStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-container"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextVariants.h3
    }, "Select Attributes")), this.buildAttrDropdown()), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_19__.Table, {
      className: "ds-margin-top",
      cells: columnsAttr,
      rows: pagedRowsAttr,
      onSelect: this.onSelectAttr,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_20__.TableVariant.compact,
      "aria-label": "Pagination Attributes",
      canSelectAll: false
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_21__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_22__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Pagination, {
      itemCount: itemCountAttr,
      page: pageAttr,
      perPage: perPageAttr,
      onSetPage: this.onSetPageAttr,
      widgetId: "pagination-step-attributes",
      onPerPageSelect: this.onPerPageSelectAttr,
      dropDirection: "up",
      isCompact: true
    }));
    var myTitle = 'DN ( Distinguished Name )';
    var entryValuesStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.Alert, {
      variant: namingAttr === '' || namingVal === '' ? 'warning' : 'success',
      isInline: true,
      title: myTitle
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Entry DN:\xA0\xA0\xA0"), namingAttr ? namingAttr : "??????", "=", namingVal ? namingVal : "??????", ",", this.props.wizardEntryDn), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextContent, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextVariants.h3
    }, "Set Attribute Values")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_lib_editableTable_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], {
      key: editableTableData,
      wizardEntryDn: this.props.wizardEntryDn,
      editableTableData: editableTableData,
      isAttributeSingleValued: this.isAttributeSingleValued,
      isAttributeRequired: this.isAttributeRequired,
      enableNextStep: this.enableNextStep,
      saveCurrentRows: this.saveCurrentRows,
      allObjectclasses: this.props.allObjectclasses,
      namingRowID: this.state.namingRowID,
      namingAttr: this.state.namingAttr,
      setNamingRowID: this.setNamingRowID
    }));
    var ldifListItems = cleanLdifArray.map((line, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.SimpleListItem, {
      key: index,
      isCurrent: line.startsWith('dn: ')
    }, line));
    var ldifStatementsStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-addons-bottom-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.Alert, {
      variant: "info",
      isInline: true,
      title: "LDIF Statements"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Card, {
      isSelectable: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.CardBody, null, ldifListItems.length > 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__.SimpleList, {
      "aria-label": "LDIF data User"
    }, ldifListItems))));
    var nb = -1;
    var ldifLines = ldifArray.map(line => {
      nb++;
      return {
        data: line,
        id: nb
      };
    });
    var entryReviewStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-addons-bottom-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.Alert, {
      variant: resultVariant,
      isInline: true,
      title: "Result for Entry Modification"
    }, commandOutput, this.state.adding && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Spinner, {
      className: "ds-left-margin",
      size: "md"
    }), "\xA0\xA0Adding entry ..."))), resultVariant === 'danger' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Card, {
      isSelectable: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__.CardTitle, null, "LDIF Data"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.CardBody, null, ldifLines.map(line => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("h6", {
      key: line.id
    }, line.data)))));
    var addEntrySteps = [{
      id: 1,
      name: 'Select ObjectClasses',
      component: objectClassStep,
      canJumpTo: stepIdReached >= 1 && stepIdReached < 5,
      enableNext: selectedObjectClasses.length > 0
    }, {
      id: 2,
      name: 'Select Attributes',
      component: attributeStep,
      canJumpTo: stepIdReached >= 2 && stepIdReached < 5,
      enableNext: selectedAttributes.length > 0
    }, {
      id: 3,
      name: 'Edit Values',
      component: entryValuesStep,
      canJumpTo: stepIdReached >= 3 && stepIdReached < 5,
      enableNext: validMods
    }, {
      id: 4,
      name: 'LDIF Statements',
      component: ldifStatementsStep,
      nextButtonText: 'Create Entry',
      canJumpTo: stepIdReached >= 4 && stepIdReached < 5
    }, {
      id: 5,
      name: 'Review Result',
      component: entryReviewStep,
      nextButtonText: 'Finish',
      canJumpTo: stepIdReached > 5,
      hideBackButton: true,
      enableNext: !this.state.adding
    }];
    var title = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, "Parent DN: \xA0\xA0", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, this.props.wizardEntryDn));
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_29__.Wizard, {
      isOpen: this.props.isWizardOpen,
      onClose: this.props.toggleOpenWizard,
      steps: addEntrySteps,
      title: "Add An LDAP Entry",
      description: title,
      onNext: this.onNext
    });
  }

}

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AddLdapEntry);

/***/ }),

/***/ "./src/lib/ldap_editor/wizards/operations/addRole.jsx":
/*!************************************************************!*\
  !*** ./src/lib/ldap_editor/wizards/operations/addRole.jsx ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/Dropdown.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/dropdownConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/BadgeToggle.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Radio/Radio.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Label/Label.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SearchInput/SearchInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/DualListSelector/DualListSelector.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/Card.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardBody.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Pagination/Pagination.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/Alert.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleListItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleList.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardTitle.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Wizard/Wizard.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/headerCol.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Table.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableTypes.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Header.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Body.js");
/* harmony import */ var _lib_editableTable_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../lib/editableTable.jsx */ "./src/lib/ldap_editor/lib/editableTable.jsx");
/* harmony import */ var _lib_ldapNavigator_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../lib/ldapNavigator.jsx */ "./src/lib/ldap_editor/lib/ldapNavigator.jsx");
/* harmony import */ var _lib_utils_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../lib/utils.jsx */ "./src/lib/ldap_editor/lib/utils.jsx");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/info-circle-icon.js");
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }









class AddRole extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "onSetpageAddRole", (_event, pageNumber) => {
      this.setState({
        pageAddRole: pageNumber,
        pagedRowsRole: this.getAttributesToShow(pageNumber, this.state.perpageAddRole)
      });
    });

    _defineProperty(this, "onPerPageSelectAddRole", (_event, perPage) => {
      this.setState({
        pageAddRole: 1,
        perpageAddRole: perPage,
        pagedRowsRole: this.getAttributesToShow(1, perPage)
      });
    });

    _defineProperty(this, "isAttributeSingleValued", attr => {
      return this.singleValuedAttributes.includes(attr);
    });

    _defineProperty(this, "isAttributeRequired", attr => {
      return this.requiredAttributes.includes(attr);
    });

    _defineProperty(this, "onSelect", (event, isSelected, rowId) => {
      var rows;
      var selectedAttributes;

      if (rowId === -1) {
        // Process the full table entries ( rowsRole )
        rows = this.state.rowsRole.map(oneRow => {
          oneRow.selected = isSelected;
          oneRow.isAttributeSelected = isSelected;
          return oneRow;
        }); // Quick hack until the code is upgraded to a version that supports "disableCheckbox"
        // Both 'cn' and 'sn' ( first 2 elements in the table ) are mandatory.
        // TODO: https://www.patternfly.org/v4/components/table#selectable
        // ==> disableSelection: true

        rows[0].selected = true;
        rows[0].isAttributeSelected = true;
        selectedAttributes = ['cn'];

        if (this.state.roleType === 'filtered') {
          selectedAttributes.push('nsRoleFilter');
          rows[1].selected = true;
          rows[1].isAttributeSelected = true;
        } else if (this.state.roleType === 'nested') {
          selectedAttributes.push('nsRoleDN');
          rows[1].selected = true;
          rows[1].isAttributeSelected = true;
        }

        this.setState({
          rowsRole: rows,
          allAttributesSelected: isSelected,
          selectedAttributes
        }, () => {
          this.setState({
            pagedRowsRole: this.getAttributesToShow(this.state.pageAddRole, this.state.perpageAddRole)
          });
          this.updateValuesTableRows();
        });
      } else {
        // Quick hack until the code is upgraded to a version that supports "disableCheckbox"
        if (this.state.pagedRowsRole[rowId].disableCheckbox === true) {
          return;
        } // End hack.
        // Process only the entries in the current page ( pagedRowsRole )


        rows = [...this.state.pagedRowsRole];
        rows[rowId].selected = isSelected; // Find the entry in the full array and set 'isAttributeSelected' accordingly
        // The property 'isAttributeSelected' is used to build the LDAP entry to add.
        // The row ID cannot be used since it changes with the pagination.

        var attrName = this.state.pagedRowsRole[rowId].cells[0];
        var allItems = [...this.state.rowsRole];
        var index = allItems.findIndex(item => item.cells[0] === attrName);
        allItems[index].isAttributeSelected = isSelected;

        var _selectedAttributes = allItems.filter(item => item.isAttributeSelected).map(selectedAttr => selectedAttr.cells[0]);

        this.setState({
          rowsRole: allItems,
          pagedRowsRole: rows,
          selectedAttributes: _selectedAttributes
        }, () => this.updateValuesTableRows());
      }
    });

    _defineProperty(this, "updateValuesTableRows", skipAttributeSelection => {
      var newSelectedAttrs = this.state.allAttributesSelected ? ['cn', ...this.roleDefinitionArray, ...this.filteredRoleDefinitionArray, ...this.nestedRoleDefinitionArray] : [...this.state.selectedAttributes];
      var namingRowID = this.state.namingRowID;
      var namingAttrVal = this.state.namingAttrVal;
      var editableTableData = [];
      var namingAttr = this.state.namingAttr;
      var namingVal = this.state.namingVal;

      if (this.state.savedRows.length === 0) {
        editableTableData = newSelectedAttrs.map(attrName => {
          var obj = {
            id: (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_3__.generateUniqueId)(),
            attr: attrName,
            val: namingVal ? namingVal : '',
            required: false,
            namingAttr: false
          };
          return obj;
        });
        editableTableData.sort((a, b) => a.attr > b.attr ? 1 : -1);
        namingRowID = editableTableData[0].id, namingAttrVal = editableTableData[0].attr + "=" + editableTableData[0].val;
        namingAttr = editableTableData[0].attr;
        namingVal = editableTableData[0].val;

        if (this.state.roleType === 'nested') {
          var _iterator = _createForOfIteratorHelper(this.state.rolesChosenOptions),
              _step;

          try {
            var _loop = function _loop() {
              var userObj = _step.value;
              var dn_val = userObj.props.title.replace(/^dn: /, "");
              editableTableData = editableTableData.filter(item => item.attr.toLowerCase() !== 'nsroledn' || item.val !== dn_val);
              editableTableData.push({
                id: (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_3__.generateUniqueId)(),
                attr: 'nsRoleDN',
                val: dn_val,
                required: true,
                namingAttr: false
              });
            };

            for (_iterator.s(); !(_step = _iterator.n()).done;) {
              _loop();
            }
          } catch (err) {
            _iterator.e(err);
          } finally {
            _iterator.f();
          }
        }

        this.setState({
          savedRows: editableTableData
        });
      } else {
        if (skipAttributeSelection) {
          // Do not check the attribute selection ( because it has not changed ).
          editableTableData = [...this.state.savedRows];
        } else {
          var arrayOfAttrObjects = [...this.state.savedRows];

          var _iterator2 = _createForOfIteratorHelper(newSelectedAttrs),
              _step2;

          try {
            var _loop2 = function _loop2() {
              var myAttr = _step2.value;
              var found = arrayOfAttrObjects.find(el => el.attr === myAttr);

              if (found === undefined) {
                // The new attribute was not in the list of saved attributes, add it.
                arrayOfAttrObjects.push({
                  id: (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_3__.generateUniqueId)(),
                  attr: myAttr,
                  val: '',
                  required: false,
                  namingAttr: false
                });
              }
            };

            for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
              _loop2();
            } // Remove the newly unselected attribute(s).

          } catch (err) {
            _iterator2.e(err);
          } finally {
            _iterator2.f();
          }

          editableTableData = arrayOfAttrObjects.filter(datum => {
            var attrName = datum.attr;
            var found = newSelectedAttrs.find(attr => attr === attrName);
            return found !== undefined;
          }); // Sort the rows

          editableTableData.sort((a, b) => a.attr > b.attr ? 1 : -1);

          if (this.state.namingRowID === -1) {
            namingRowID = editableTableData[0].id;
          }
        }

        if (this.state.roleType === 'nested') {
          var _iterator3 = _createForOfIteratorHelper(this.state.rolesChosenOptions),
              _step3;

          try {
            var _loop3 = function _loop3() {
              var userObj = _step3.value;
              var dn_val = userObj.props.title.replace(/^dn: /, "");
              editableTableData = editableTableData.filter(item => item.attr.toLowerCase() !== 'nsroledn' || item.val !== dn_val);
              editableTableData.push({
                id: (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_3__.generateUniqueId)(),
                attr: 'nsRoleDN',
                val: dn_val,
                required: true,
                namingAttr: false
              });
            };

            for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
              _loop3();
            }
          } catch (err) {
            _iterator3.e(err);
          } finally {
            _iterator3.f();
          }
        }

        this.setState({
          savedRows: editableTableData
        });
      } // Update the attributes to process.


      this.setState({
        editableTableData,
        rdn: editableTableData[0].attr,
        namingRowID,
        namingAttrVal,
        namingAttr,
        namingVal
      });
    });

    _defineProperty(this, "enableNextStep", noEmptyValue => {
      this.setState({
        noEmptyValue
      });
    });

    _defineProperty(this, "setNamingRowID", namingRowID => {
      var namingAttrVal = "";
      var namingAttr = "";
      var namingVal = "";
      var rows = this.state.savedRows;

      if (rows.length === 0) {
        rows = this.state.editableTableData;
      }

      var _iterator4 = _createForOfIteratorHelper(rows),
          _step4;

      try {
        for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
          var row = _step4.value;

          if (row.id === namingRowID) {
            namingAttrVal = row.attr + "=" + row.val;
            namingAttr = row.attr;
            namingVal = row.val;
            break;
          }
        }
      } catch (err) {
        _iterator4.e(err);
      } finally {
        _iterator4.f();
      }

      this.setState({
        namingRowID,
        namingAttrVal,
        namingAttr,
        namingVal
      });
    });

    _defineProperty(this, "onAttrDropDownToggle", isOpen => {
      this.setState({
        isAttrDropDownOpen: isOpen
      });
    });

    _defineProperty(this, "onAttrDropDownSelect", event => {
      this.setState((prevState, props) => {
        return {
          isAttrDropDownOpen: !prevState.isAttrDropDownOpen
        };
      });
    });

    _defineProperty(this, "buildAttrDropdown", () => {
      var _this$state = this.state,
          isAttrDropDownOpen = _this$state.isAttrDropDownOpen,
          selectedAttributes = _this$state.selectedAttributes;
      var numSelected = selectedAttributes.length;
      var items = selectedAttributes.map(attr => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.DropdownItem, {
        key: attr
      }, attr));
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Dropdown, {
        className: "ds-dropdown-padding",
        onSelect: this.onAttrDropDownSelect,
        position: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.DropdownPosition.left,
        toggle: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.BadgeToggle, {
          id: "toggle-attr-select",
          onToggle: this.onAttrDropDownToggle
        }, numSelected !== 0 ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, numSelected, " selected ") : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, "0 selected ")),
        isOpen: isAttrDropDownOpen,
        dropdownItems: items
      });
    });

    _defineProperty(this, "saveCurrentRows", (savedRows, namingID) => {
      this.setState({
        savedRows
      }, () => {
        // Update the naming information after the new rows have been saved.
        if (namingID != -1) {
          // The namingIndex is set to -1 if the row is not the naming one.
          this.setNamingRowID(namingID);
        }
      });
    });

    _defineProperty(this, "generateLdifData", () => {
      var objectClassData = ['ObjectClass: top', 'ObjectClass: LdapSubEntry', 'ObjectClass: nsRoleDefinition'];

      if (this.state.roleType === 'managed') {
        objectClassData.push('ObjectClass: nsSimpleRoleDefinition', 'ObjectClass: nsManagedRoleDefinition');
      } else if (this.state.roleType === 'filtered') {
        objectClassData.push('ObjectClass: nsComplexRoleDefinition', 'ObjectClass: nsFilteredRoleDefinition');
      } else if (this.state.roleType === 'nested') {
        objectClassData.push('ObjectClass: nsComplexRoleDefinition', 'ObjectClass: nsNestedRoleDefinition');
      }

      var valueData = [];

      var _iterator5 = _createForOfIteratorHelper(this.state.savedRows),
          _step5;

      try {
        for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
          var item = _step5.value;
          var attrName = item.attr;
          valueData.push("".concat(attrName, ": ").concat(item.val));

          if (objectClassData.length === 5) {
            // There will a maximum of 5 ObjectClasses.
            continue;
          } // TODO: Find a better logic!
          //if ((!objectClassData.includes('ObjectClass: InetOrgPerson')) &&
          //this.inetorgPersonArray.includes(attrName)) {
          //    objectClassData.push('ObjectClass: InetOrgPerson');
          //}
          //if (!objectClassData.includes('ObjectClass: OrganizationalPerson') &&
          //this.organizationalPersonArray.includes(attrName)) {
          //    objectClassData.push('ObjectClass: OrganizationalPerson');
          //}

        }
      } catch (err) {
        _iterator5.e(err);
      } finally {
        _iterator5.f();
      }

      var ldifArray = ["dn: ".concat(this.state.namingAttrVal, ",").concat(this.props.wizardEntryDn), ...objectClassData, ...valueData];
      this.setState({
        ldifArray
      });
    });

    this.roleDefinitionArray = ['description', 'nsRoleScopeDN'];
    this.filteredRoleDefinitionArray = ['nsRoleFilter'];
    this.nestedRoleDefinitionArray = ['nsRoleDN'];
    this.singleValuedAttributes = ['nsRoleFilter', 'nsRoleDN', 'nsRoleScopeDN'];
    this.requiredAttributes = ['cn', 'nsRoleFilter', 'nsRoleDN'];
    this.attributeValidationRules = [{
      name: 'required',
      validator: value => value.trim() !== '',
      errorText: 'This field is required'
    }];
    this.state = {
      alertVariant: 'info',
      namingRowID: -1,
      namingAttrVal: '',
      namingAttr: '',
      namingVal: '',
      ldifArray: [],
      cleanLdifArray: [],
      savedRows: [],
      commandOutput: '',
      resultVariant: 'default',
      allAttributesSelected: false,
      stepIdReached: 0,
      // currentStepId: 1,
      itemCountAddRole: 0,
      pageAddRole: 1,
      perpageAddRole: 10,
      columnsRole: [{
        title: 'Attribute Name',
        cellTransforms: [(0,_patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.headerCol)()]
      }, {
        title: 'From ObjectClass'
      }],
      rowsRole: [],
      pagedRowsRole: [],
      selectedAttributes: ['cn'],
      isAttrDropDownOpen: false,
      // Values
      noEmptyValue: false,
      columnsValues: ['Attribute', 'Value'],
      // Review step
      reviewValue: '',
      reviewInvalidText: 'Invalid LDIF',
      reviewIsValid: true,
      reviewValidated: 'default',
      // reviewHelperText: 'LDIF data'
      editableTableData: [],
      rdn: "",
      rdnValue: "",
      parentDN: "",
      isTreeLoading: false,
      roleType: "managed",
      roleDNs: [],
      searching: false,
      searchPattern: "",
      showLDAPNavModal: false,
      rolesSearchBaseDn: "",
      rolesAvailableOptions: [],
      rolesChosenOptions: [],
      adding: true
    };

    this.handleBaseDnSelection = treeViewItem => {
      this.setState({
        rolesSearchBaseDn: treeViewItem.dn
      });
    };

    this.showTreeLoadingState = isTreeLoading => {
      this.setState({
        isTreeLoading,
        searching: isTreeLoading ? true : false
      });
    };

    this.openLDAPNavModal = () => {
      this.setState({
        showLDAPNavModal: true
      });
    };

    this.closeLDAPNavModal = () => {
      this.setState({
        showLDAPNavModal: false
      });
    };

    this.onNext = _ref => {
      var id = _ref.id;
      this.setState({
        stepIdReached: this.state.stepIdReached < id ? id : this.state.stepIdReached
      });

      if (id === 3) {
        // Update the attributes table.
        this.updateAttributesTableRows();
        this.updateValuesTableRows();
      } else if (id === 4) {
        // Update the values table.
        this.updateValuesTableRows();
      } else if (id === 5) {
        // Generate the LDIF data.
        this.generateLdifData();
      } else if (id === 6) {
        // Create the LDAP entry.
        var myLdifArray = this.state.ldifArray;
        (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_3__.createLdapEntry)(this.props.editorLdapServer, myLdifArray, result => {
          this.setState({
            commandOutput: result.errorCode === 0 ? 'Role successfully created!' : 'Failed to create role, error: ' + result.errorCode,
            resultVariant: result.errorCode === 0 ? 'success' : 'danger',
            adding: false
          }, () => {
            this.props.onReload();
          }); // Update the wizard operation information.

          var myDn = myLdifArray[0].substring(4);
          var relativeDn = myLdifArray[6].replace(": ", "="); // cn val

          var opInfo = {
            operationType: 'ADD',
            resultCode: result.errorCode,
            time: Date.now(),
            entryDn: myDn,
            relativeDn: relativeDn
          };
          this.props.setWizardOperationInfo(opInfo);
        });
      }
    };

    this.onBack = _ref2 => {
      var id = _ref2.id;

      if (id === 4) {
        // true ==> Do not check the attribute selection when navigating back.
        this.updateValuesTableRows(true);
      }
    };

    this.handleSearchClick = () => {
      this.setState({
        isSearchRunning: true,
        rolesAvailableOptions: []
      }, () => {
        this.getEntries();
      });
    };

    this.handleSearchPattern = searchPattern => {
      this.setState({
        searchPattern
      });
    };

    this.getEntries = () => {
      var baseDn = this.state.rolesSearchBaseDn;
      var pattern = this.state.searchPattern;
      var filter = pattern === '' ? '(|(objectClass=LDAPsubentry)(objectClass=nsRoleDefinition))' : "(&(|(objectClass=LDAPsubentry)(objectClass=nsRoleDefinition)(objectClass=nsSimpleRoleDefinition)(objectClass=nsComplexRoleDefinition)(objectClass=nsManagedRoleDefinition)(objectClass=nsFilteredRoleDefinition)(objectClass=nsNestedRoleDefinition))(|(cn=*".concat(pattern, "*)(uid=").concat(pattern, ")))");
      var attrs = 'cn';
      var params = {
        serverId: this.props.editorLdapServer,
        baseDn: baseDn,
        scope: 'sub',
        filter: filter,
        attributes: attrs
      };
      (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_3__.runGenericSearch)(params, resultArray => {
        var newOptionsArray = resultArray.map(result => {
          var lines = result.split('\n'); // TODO: Currently picking the first value found.
          // Might be worth to take the value that is used as RDN in case of multiple values.
          // Handle base64-encoded data:

          var pos0 = lines[0].indexOf(':: ');
          var pos1 = lines[1].indexOf(':: ');
          var dnLine = lines[0];

          if (pos0 > 0) {
            var decoded = decodeLine(dnLine);
            dnLine = "".concat(decoded[0], ": ").concat(decoded[1]);
          }

          var value = pos1 === -1 ? lines[1].split(': ')[1] : decodeLine(lines[1])[1];
          return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", {
            title: dnLine
          }, value);
        });
        this.setState({
          rolesAvailableOptions: newOptionsArray,
          isSearchRunning: false
        });
      });
    };

    this.removeDuplicates = options => {
      var titles = options.map(item => item.props.title);
      var noDuplicates = options.filter((item, index) => {
        return titles.indexOf(item.props.title) === index;
      });
      return noDuplicates;
    };

    this.usersOnListChange = (newAvailableOptions, newChosenOptions) => {
      var newAvailNoDups = this.removeDuplicates(newAvailableOptions);
      var newChosenNoDups = this.removeDuplicates(newChosenOptions);
      this.setState({
        rolesAvailableOptions: newAvailNoDups.sort(),
        rolesChosenOptions: newChosenNoDups.sort()
      });
    };

    this.handleRadioChange = (_, event) => {
      this.setState({
        roleType: event.currentTarget.id
      });
    };

    this.handleChange = this.handleChange.bind(this);
  }

  updateAttributesTableRows() {
    var attributesArray = [];
    attributesArray.push({
      cells: ['cn', 'LdapSubEntry'],
      selected: true,
      isAttributeSelected: true,
      disableCheckbox: true
    });
    this.roleDefinitionArray.map(attr => {
      attributesArray.push({
        cells: [attr, 'nsRoleDefinition']
      });
    });

    if (this.state.roleType === 'filtered') {
      this.filteredRoleDefinitionArray.map(attr => {
        attributesArray.push({
          cells: [attr, 'nsFilteredRoleDefinition'],
          selected: true,
          isAttributeSelected: true,
          disableCheckbox: true
        });
      });
    } else if (this.state.roleType === 'nested') {
      this.nestedRoleDefinitionArray.map(attr => {
        attributesArray.push({
          cells: [attr, 'nsNestedRoleDefinition'],
          selected: true,
          isAttributeSelected: true,
          disableCheckbox: true
        });
      });
    } // Sort the attributes


    attributesArray.sort((a, b) => a.cells[0] > b.cells[0] ? 1 : -1);
    this.setState({
      selectedAttributes: ['cn', ...(this.state.roleType === 'filtered' ? ['nsRoleFilter'] : []), ...(this.state.roleType === 'nested' ? ['nsRoleDN'] : [])],
      itemCountAddRole: attributesArray.length,
      rowsRole: attributesArray,
      pagedRowsRole: attributesArray.slice(0, this.state.perpageAddRole),
      parentDN: this.props.wizardEntryDn,
      rolesSearchBaseDn: this.props.wizardEntryDn
    });
  }

  componentDidMount() {
    this.setState({
      parentDN: this.props.wizardEntryDn,
      rolesSearchBaseDn: this.props.wizardEntryDn
    });
  }

  getAttributesToShow(page, perPage) {
    var start = (page - 1) * perPage;
    var end = page * perPage;
    var newRows = this.state.rowsRole.slice(start, end);
    return newRows;
  }

  handleChange(e) {
    var attr = e.target.id;
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [attr]: value
    });
  }

  render() {
    var _this$state2 = this.state,
        itemCountAddRole = _this$state2.itemCountAddRole,
        pageAddRole = _this$state2.pageAddRole,
        perpageAddRole = _this$state2.perpageAddRole,
        columnsRole = _this$state2.columnsRole,
        pagedRowsRole = _this$state2.pagedRowsRole,
        ldifArray = _this$state2.ldifArray,
        cleanLdifArray = _this$state2.cleanLdifArray,
        columnsValues = _this$state2.columnsValues,
        noEmptyValue = _this$state2.noEmptyValue,
        alertVariant = _this$state2.alertVariant,
        namingAttrVal = _this$state2.namingAttrVal,
        namingAttr = _this$state2.namingAttr,
        resultVariant = _this$state2.resultVariant,
        editableTableData = _this$state2.editableTableData,
        stepIdReached = _this$state2.stepIdReached,
        namingVal = _this$state2.namingVal,
        rolesSearchBaseDn = _this$state2.rolesSearchBaseDn,
        rolesAvailableOptions = _this$state2.rolesAvailableOptions,
        rolesChosenOptions = _this$state2.rolesChosenOptions,
        showLDAPNavModal = _this$state2.showLDAPNavModal,
        commandOutput = _this$state2.commandOutput,
        roleType = _this$state2.roleType;
    var rdnValue = namingVal;
    var myTitle = namingAttrVal === '' || rdnValue === '' ? 'Invalid Naming Attribute - Empty Value!' : 'DN ( Distinguished Name )';
    var namingValAndTypeStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextVariants.h3
    }, "Select Name And Role Type")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Form, {
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Grid, {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 2,
      className: "ds-label"
    }, "Role Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      value: namingVal,
      type: "text",
      id: "namingVal",
      "aria-describedby": "namingVal",
      name: "namingVal",
      onChange: (str, e) => {
        this.handleChange(e);
      },
      validated: this.state.namingVal === '' ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextContent, {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextVariants.h5
    }, "Choose Role Type")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-left-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Radio, {
      name: "roleType",
      id: "managed",
      value: "managed",
      label: "Managed",
      isChecked: this.state.roleType === 'managed',
      onChange: this.handleRadioChange,
      description: "This attribute uses objectclass 'RoleOfNames'"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Radio, {
      name: "roleType",
      id: "filtered",
      value: "filtered",
      label: "Filtered",
      isChecked: this.state.roleType === 'filtered',
      onChange: this.handleRadioChange,
      description: "This attribute uses objectclass 'RoleOfUniqueNames'",
      className: "ds-margin-top"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Radio, {
      name: "roleType",
      id: "nested",
      value: "nested",
      label: "Nested",
      isChecked: this.state.roleType === 'nested',
      onChange: this.handleRadioChange,
      description: "This attribute uses objectclass 'RoleOfUniqueNames'",
      className: "ds-margin-top"
    }))));
    var addRolesStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Form, {
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextVariants.h3
    }, "Add Roles to the Nested Role"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 12,
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.Label, {
      onClick: this.openLDAPNavModal,
      href: "#",
      variant: "outline",
      color: "blue",
      icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_18__.InfoCircleIcon, null)
    }, "Search Base DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, "\xA0\xA0", rolesSearchBaseDn)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 12,
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.SearchInput, {
      placeholder: "Find roles...",
      value: this.state.searchPattern,
      onChange: this.handleSearchPattern,
      onSearch: this.handleSearchClick,
      onClear: () => {
        this.handleSearchPattern('');
      }
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 12,
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.DualListSelector, {
      availableOptions: rolesAvailableOptions,
      chosenOptions: rolesChosenOptions,
      availableOptionsTitle: "Available Roles",
      chosenOptionsTitle: "Chosen Roles",
      onListChange: this.usersOnListChange,
      id: "usersSelector"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.ModalVariant.medium,
      title: "Choose A Branch To Search",
      isOpen: showLDAPNavModal,
      onClose: this.closeLDAPNavModal,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Button, {
        key: "confirm",
        variant: "primary",
        onClick: this.closeLDAPNavModal
      }, "Done")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.Card, {
      isSelectable: true,
      className: "ds-indent ds-margin-bottom-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.CardBody, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_lib_ldapNavigator_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], {
      treeItems: [...this.props.treeViewRootSuffixes],
      editorLdapServer: this.props.editorLdapServer,
      skipLeafEntries: true,
      handleNodeOnClick: this.handleBaseDnSelection,
      showTreeLoadingState: this.showTreeLoadingState
    })))))));
    var roleAttributesStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-container"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextVariants.h3
    }, "Select Entry Attributes")), this.buildAttrDropdown()), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Pagination, {
      itemCount: itemCountAddRole,
      page: pageAddRole,
      perPage: perpageAddRole,
      onSetPage: this.onSetpageAddRole,
      widgetId: "pagination-options-menu-add-role",
      onPerPageSelect: this.onPerPageSelectAddRole,
      isCompact: true
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_26__.Table, {
      cells: columnsRole,
      rows: pagedRowsRole,
      onSelect: this.onSelect,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_27__.TableVariant.compact,
      "aria-label": "Pagination Role Attributes"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_28__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_29__.TableBody, null)));
    var roleValuesStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Form, {
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      className: "ds-margin-top",
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_30__.Alert, {
      variant: namingAttr === '' || namingVal === '' ? 'warning' : 'success',
      isInline: true,
      title: myTitle
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Entry DN:\xA0\xA0\xA0"), namingAttr ? namingAttr : "??????", "=", namingVal ? namingVal : "??????", ",", this.props.wizardEntryDn)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 12,
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextVariants.h3
    }, "Set Attribute Values"))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      className: "ds-left-margin",
      span: 11
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_lib_editableTable_jsx__WEBPACK_IMPORTED_MODULE_1__["default"], {
      editableTableData: editableTableData,
      isAttributeSingleValued: this.isAttributeSingleValued,
      isAttributeRequired: this.isAttributeRequired,
      enableNextStep: this.enableNextStep,
      setNamingRowID: this.setNamingRowID,
      saveCurrentRows: this.saveCurrentRows,
      namingRowID: this.state.namingRowID,
      namingAttr: this.state.namingAttr
    })));
    var ldifListItems = ldifArray.map((line, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__.SimpleListItem, {
      key: index,
      isCurrent: line.startsWith('dn: ')
    }, line));
    var roleCreationStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_30__.Alert, {
      variant: "info",
      isInline: true,
      title: "LDIF Content for Role Creation"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.Card, {
      isSelectable: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.CardBody, null, ldifListItems.length > 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_32__.SimpleList, {
      "aria-label": "LDIF data User"
    }, ldifListItems))));
    var nb = -1;
    var ldifLines = ldifArray.map(line => {
      nb++;
      return {
        data: line,
        id: nb
      };
    });
    var roleReviewStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_30__.Alert, {
      variant: resultVariant,
      isInline: true,
      title: "Result for Role Creation"
    }, commandOutput, this.state.adding && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_33__.Spinner, {
      className: "ds-left-margin",
      size: "md"
    }), "\xA0\xA0Adding Role ...")), resultVariant === 'danger' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.Card, {
      isSelectable: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_34__.CardTitle, null, "LDIF Data"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.CardBody, null, ldifLines.map(line => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("h6", {
      key: line.id
    }, line.data)))));
    var addRoleSteps = [{
      id: 1,
      name: 'Select Name & Type',
      component: namingValAndTypeStep,
      enableNext: namingVal === '' ? false : true,
      hideBackButton: true
    }, ...(roleType === 'nested' ? [{
      id: 2,
      name: 'Add Nested Roles',
      component: addRolesStep,
      canJumpTo: stepIdReached >= 2 && stepIdReached < 6
    }] : []), {
      id: 3,
      name: 'Select Attributes',
      component: roleAttributesStep,
      canJumpTo: stepIdReached >= 3 && stepIdReached < 6
    }, {
      id: 4,
      name: 'Set Values',
      component: roleValuesStep,
      canJumpTo: stepIdReached >= 4 && stepIdReached < 6,
      enableNext: noEmptyValue
    }, {
      id: 5,
      name: 'Create Role',
      component: roleCreationStep,
      nextButtonText: 'Create',
      canJumpTo: stepIdReached >= 5 && stepIdReached < 6
    }, {
      id: 6,
      name: 'Review Result',
      component: roleReviewStep,
      nextButtonText: 'Finish',
      canJumpTo: stepIdReached >= 5,
      hideBackButton: true,
      enableNext: !this.state.adding
    }];
    var title = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, "Parent DN: \xA0\xA0", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, this.props.wizardEntryDn));
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_35__.Wizard, {
      isOpen: this.props.isWizardOpen,
      onClose: this.props.toggleOpenWizard,
      onNext: this.onNext,
      onBack: this.onBack,
      title: "Add A Role",
      description: title,
      steps: addRoleSteps
    });
  }

}

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AddRole);

/***/ }),

/***/ "./src/lib/ldap_editor/wizards/operations/addUser.jsx":
/*!************************************************************!*\
  !*** ./src/lib/ldap_editor/wizards/operations/addUser.jsx ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/Dropdown.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/dropdownConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/BadgeToggle.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Pagination/Pagination.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/Alert.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleListItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/Card.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardBody.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleList.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardTitle.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Wizard/Wizard.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/headerCol.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Table.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableTypes.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Header.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Body.js");
/* harmony import */ var _lib_editableTable_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../lib/editableTable.jsx */ "./src/lib/ldap_editor/lib/editableTable.jsx");
/* harmony import */ var _lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../lib/utils.jsx */ "./src/lib/ldap_editor/lib/utils.jsx");
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }







class AddUser extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props); // Objectclasses

    _defineProperty(this, "onSetPageAddUser", (_event, pageNumber) => {
      this.setState({
        pageAddUser: pageNumber,
        pagedRowsUser: this.getAttributesToShow(pageNumber, this.state.perPageAddUser)
      });
    });

    _defineProperty(this, "onPerPageSelectAddUser", (_event, perPage) => {
      this.setState({
        pageAddUser: 1,
        perPageAddUser: perPage,
        pagedRowsUser: this.getAttributesToShow(1, perPage)
      });
    });

    _defineProperty(this, "isAttributeSingleValued", attr => {
      return this.singleValuedAttrs[this.state.accountType].includes(attr);
    });

    _defineProperty(this, "isAttributeRequired", attr => {
      return this.requiredAttrs[this.state.accountType].includes(attr);
    });

    _defineProperty(this, "onSelect", (event, isSelected, rowId) => {
      var rows; // Quick hack until the code is upgraded to a version that supports "disableCheckbox"

      if (this.state.pagedRowsUser[rowId].disableCheckbox === true) {
        return;
      } // End hack.
      // Process only the entries in the current page ( pagedRowsUser )


      rows = [...this.state.pagedRowsUser];
      rows[rowId].selected = isSelected; // Find the entry in the full array and set 'isAttributeSelected' accordingly
      // The property 'isAttributeSelected' is used to build the LDAP entry to add.
      // The row ID cannot be used since it changes with the pagination.

      var attrName = this.state.pagedRowsUser[rowId].cells[0];
      var allItems = [...this.state.rowsUser];
      var index = allItems.findIndex(item => item.cells[0] === attrName);
      allItems[index].isAttributeSelected = isSelected;
      var selectedAttributes = allItems.filter(item => item.isAttributeSelected).map(selectedAttr => selectedAttr.cells[0]);
      this.setState({
        rowsUser: allItems,
        pagedRowsUser: rows,
        selectedAttributes
      }, () => this.updateValuesTableRows());
    });

    _defineProperty(this, "updateValuesTableRows", skipAttributeSelection => {
      var newSelectedAttrs = [...this.state.selectedAttributes];
      var namingRowID = this.state.namingRowID;
      var namingAttrVal = this.state.namingAttrVal;
      var editableTableData = [];
      var namingAttr = this.state.namingAttr;
      var namingVal = this.state.namingVal;

      if (this.state.savedRows.length === 0) {
        editableTableData = newSelectedAttrs.map(attrName => {
          var obj = {
            id: (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.generateUniqueId)(),
            attr: attrName,
            val: '',
            required: false,
            namingAttr: false
          };
          return obj;
        });
        editableTableData.sort((a, b) => a.attr > b.attr ? 1 : -1);
        namingRowID = editableTableData[0].id, namingAttrVal = editableTableData[0].attr + "=" + editableTableData[0].val;
        namingAttr = editableTableData[0].attr;
        namingVal = editableTableData[0].val;
      } else {
        if (skipAttributeSelection) {
          // Do not check the attribute selection ( because it has not changed ).
          editableTableData = [...this.state.savedRows];
        } else {
          var arrayOfAttrObjects = [...this.state.savedRows];

          var _iterator = _createForOfIteratorHelper(newSelectedAttrs),
              _step;

          try {
            var _loop = function _loop() {
              var myAttr = _step.value;
              var found = arrayOfAttrObjects.find(el => el.attr === myAttr);

              if (found === undefined) {
                // The new attribute was not in the list of saved attributes, add it.
                arrayOfAttrObjects.push({
                  id: (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.generateUniqueId)(),
                  attr: myAttr,
                  val: '',
                  required: false,
                  namingAttr: false
                });
              }
            };

            for (_iterator.s(); !(_step = _iterator.n()).done;) {
              _loop();
            } // Remove the newly unselected attribute(s).

          } catch (err) {
            _iterator.e(err);
          } finally {
            _iterator.f();
          }

          editableTableData = arrayOfAttrObjects.filter(datum => {
            var attrName = datum.attr;
            var found = newSelectedAttrs.find(attr => attr === attrName);
            return found !== undefined;
          }); // Sort the rows

          editableTableData.sort((a, b) => a.attr > b.attr ? 1 : -1);

          if (this.state.namingRowID === -1) {
            namingRowID = editableTableData[0].id;
          }
        }
      } // Update the attributes to process.


      this.setState({
        editableTableData,
        rdn: editableTableData[0].attr,
        namingRowID,
        namingAttrVal,
        namingAttr,
        namingVal
      });
    });

    _defineProperty(this, "enableNextStep", noEmptyValue => {
      this.setState({
        noEmptyValue
      });
    });

    _defineProperty(this, "setNamingRowID", namingRowID => {
      var namingAttrVal = "";
      var namingAttr = "";
      var namingVal = "";
      var rows = this.state.savedRows;

      if (rows.length === 0) {
        rows = this.state.editableTableData;
      }

      var _iterator2 = _createForOfIteratorHelper(rows),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var row = _step2.value;

          if (row.id === namingRowID) {
            namingAttrVal = row.attr + "=" + row.val;
            namingAttr = row.attr;
            namingVal = row.val;
            break;
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      this.setState({
        namingRowID,
        namingAttrVal,
        namingAttr,
        namingVal
      });
    });

    _defineProperty(this, "onAttrDropDownToggle", isOpen => {
      this.setState({
        isAttrDropDownOpen: isOpen
      });
    });

    _defineProperty(this, "onAttrDropDownSelect", event => {
      this.setState((prevState, props) => {
        return {
          isAttrDropDownOpen: !prevState.isAttrDropDownOpen
        };
      });
    });

    _defineProperty(this, "buildAttrDropdown", () => {
      var _this$state = this.state,
          isAttrDropDownOpen = _this$state.isAttrDropDownOpen,
          selectedAttributes = _this$state.selectedAttributes;
      var numSelected = selectedAttributes.length;
      var items = selectedAttributes.map(attr => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.DropdownItem, {
        key: attr
      }, attr));
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Dropdown, {
        className: "ds-dropdown-padding",
        onSelect: this.onAttrDropDownSelect,
        position: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.DropdownPosition.left,
        toggle: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.BadgeToggle, {
          id: "toggle-attr-select",
          onToggle: this.onAttrDropDownToggle
        }, numSelected !== 0 ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, numSelected, " selected ") : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, "0 selected ")),
        isOpen: isAttrDropDownOpen,
        dropdownItems: items
      });
    });

    _defineProperty(this, "saveCurrentRows", (savedRows, namingID) => {
      this.setState({
        savedRows
      }, () => {
        // Update the naming information after the new rows have been saved.
        if (namingID != -1) {
          // The namingIndex is set to -1 if the row is not the naming one.
          this.setNamingRowID(namingID);
        }
      });
    });

    _defineProperty(this, "generateLdifData", () => {
      var objectClassData = this.userObjectclasses[this.state.accountType];
      var valueData = [];

      var _iterator3 = _createForOfIteratorHelper(this.state.savedRows),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var item = _step3.value;
          var attrName = item.attr;
          valueData.push("".concat(attrName, ": ").concat(item.val));
        }
      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }

      var ldifArray = ["dn: ".concat(this.state.namingAttrVal, ",").concat(this.props.wizardEntryDn), ...objectClassData, ...valueData];
      var cleanLdifArray = [...ldifArray];

      for (var idx in cleanLdifArray) {
        if (cleanLdifArray[idx].toLowerCase().startsWith("userpassword")) {
          cleanLdifArray[idx] = "userpassword: ********";
          break;
        }
      }

      this.setState({
        ldifArray,
        cleanLdifArray
      });
    });

    this.userObjectclasses = {
      'Basic Account': ['objectclass: top', 'objectClass: nsPerson', 'objectClass: nsAccount', 'objectClass: nsOrgPerson'],
      'Posix Account': ['objectclass: top', 'objectClass: nsPerson', 'objectClass: nsAccount', 'objectClass: nsOrgPerson', 'objectClass: posixAccount'],
      'Service Account': ['objectclass: top', 'objectClass: applicationProcess', 'objectClass: nsAccount']
    };
    this.allowedAttrs = {
      'Basic Account': ['businessCategory', 'carLicense', 'departmentNumber', 'description', 'employeeNumber', 'employeeType', 'homePhone', 'homePostalAddress', 'initials', 'jpegPhoto', 'labeledURI', 'legalName', 'mail', 'manager', 'mobile', 'nsRoleDN', 'o', 'pager', 'photo', 'preferredLanguage', 'nsCertSubjectDN', 'nsSshPublicKey', 'roomNumber', 'seeAlso', 'telephoneNumber', 'uid', 'userCertificate', 'userPassword', 'userSMIMECertificate', 'userPKCS12', 'x500UniqueIdentifier'],
      'Posix Account': ['businessCategory', 'carLicense', 'departmentNumber', 'description', 'employeeNumber', 'employeeType', 'homePhone', 'homePostalAddress', 'initials', 'jpegPhoto', 'labeledURI', 'legalName', 'mail', 'manager', 'mobile', 'nsRoleDN', 'o', 'pager', 'photo', 'preferredLanguage', 'nsCertSubjectDN', 'nsSshPublicKey', 'roomNumber', 'seeAlso', 'telephoneNumber', 'userCertificate', 'userPassword', 'userSMIMECertificate', 'userPKCS12', 'x500UniqueIdentifier', 'loginShell', 'gecos'],
      'Service Account': ['seeAlso', 'ou', 'l', 'description', 'userCertificate', 'nsCertSubjectDN', 'nsRoleDN', 'nsSshPublicKey', 'userPassword']
    };
    this.requiredAttrs = {
      'Basic Account': ['cn', 'displayName'],
      'Posix Account': ['cn', 'uid', 'uidNumber', 'gidNumber', 'homeDirectory', 'displayName'],
      'Service Account': ['cn']
    };
    this.singleValuedAttrs = {
      'Basic Account': ['preferredDeliveryMethod', 'displayName', 'employeeNumber', 'preferredLanguage', 'userPassword'],
      'Posix Account': ['preferredDeliveryMethod', 'displayName', 'employeeNumber', 'preferredLanguage', 'userPassword', 'uidNumber', 'gidNumber', 'homeDirectory', 'loginShell', 'gecos'],
      'Service Account': ['userpassword']
    };
    this.attributeValidationRules = [{
      name: 'required',
      validator: value => value.trim() !== '',
      errorText: 'This field is required'
    }];
    this.state = {
      alertVariant: 'info',
      namingRowID: -1,
      namingAttrVal: '',
      namingAttr: '',
      namingVal: '',
      ldifArray: [],
      cleanLdifArray: [],
      savedRows: [],
      commandOutput: '',
      resultVariant: 'default',
      stepIdReached: 1,
      itemCountAddUser: 0,
      pageAddUser: 1,
      perPageAddUser: 10,
      columnsUser: [{
        title: 'Attribute Name',
        cellTransforms: [(0,_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.headerCol)()]
      }],
      rowsUser: [],
      pagedRowsUser: [],
      selectedAttributes: [],
      isAttrDropDownOpen: false,
      // Values
      noEmptyValue: false,
      columnsValues: ['Attribute', 'Value'],
      // Review step
      reviewValue: '',
      reviewInvalidText: 'Invalid LDIF',
      reviewIsValid: true,
      reviewValidated: 'default',
      editableTableData: [],
      rdn: "",
      rdnValue: "",
      adding: true,
      accountType: "Basic Account",
      isOpenType: false
    };

    this.onNext = _ref => {
      var id = _ref.id;
      this.setState({
        stepIdReached: this.state.stepIdReached < id ? id : this.state.stepIdReached
      });

      if (id === 4) {
        // Update the values table.
        this.updateValuesTableRows();
      } else if (id === 5) {
        // Generate the LDIF data.
        this.generateLdifData();
      } else if (id === 6) {
        // Create the LDAP entry.
        var myLdifArray = this.state.ldifArray;
        (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.createLdapEntry)(this.props.editorLdapServer, myLdifArray, result => {
          this.setState({
            commandOutput: result.errorCode === 0 ? 'Successfully added user!' : 'Failed to add user, error: ' + result.errorCode,
            resultVariant: result.errorCode === 0 ? 'success' : 'danger',
            adding: false
          }, () => {
            this.props.onReload();
          }); // Update the wizard operation information.

          var myDn = myLdifArray[0].substring(4);
          var opInfo = {
            operationType: 'ADD',
            resultCode: result.errorCode,
            time: Date.now(),
            entryDn: myDn,
            relativeDn: this.state.namingAttrVal
          };
          this.props.setWizardOperationInfo(opInfo);
        });
      }
    };

    this.onBack = _ref2 => {
      var id = _ref2.id;

      if (id === 4) {
        // true ==> Do not check the attribute selection when navigating back.
        this.updateValuesTableRows(true);
      }
    };

    this.onToggleType = isOpenType => {
      this.setState({
        isOpenType
      });
    };

    this.onSelectType = (event, selection) => {
      var attributesArray = [];
      var selectedAttrs = [];
      this.allowedAttrs[selection].map(attr => {
        attributesArray.push({
          cells: [attr]
        });
      });
      this.requiredAttrs[selection].map(attr => {
        attributesArray.push({
          cells: [attr],
          selected: true,
          isAttributeSelected: true,
          disableCheckbox: true
        });
      });
      selectedAttrs = [...this.requiredAttrs[selection]]; // Sort the attributes

      attributesArray.sort((a, b) => a.cells[0] > b.cells[0] ? 1 : -1);
      this.setState({
        itemCountAddUser: attributesArray.length,
        rowsUser: attributesArray,
        pagedRowsUser: attributesArray.slice(0, this.state.perPageAddUser),
        accountType: selection,
        selectedAttributes: selectedAttrs,
        isOpenType: false
      });
    }; // End constructor().

  }

  componentDidMount() {
    var attributesArray = []; // Set the default poisx user attributes

    this.allowedAttrs[this.state.accountType].map(attr => {
      attributesArray.push({
        cells: [attr]
      });
    });
    this.requiredAttrs[this.state.accountType].map(attr => {
      attributesArray.push({
        cells: [attr],
        selected: true,
        isAttributeSelected: true,
        disableCheckbox: true
      });
    }); // Sort the attributes

    attributesArray.sort((a, b) => a.cells[0] > b.cells[0] ? 1 : -1);
    this.setState({
      itemCountAddUser: attributesArray.length,
      rowsUser: attributesArray,
      pagedRowsUser: attributesArray.slice(0, this.state.perPageAddUser),
      selectedAttributes: [...this.requiredAttrs[this.state.accountType]]
    });
  }

  getAttributesToShow(page, perPage) {
    var start = (page - 1) * perPage;
    var end = page * perPage;
    var newRows = this.state.rowsUser.slice(start, end);
    return newRows;
  }

  render() {
    var _this$state2 = this.state,
        commandOutput = _this$state2.commandOutput,
        itemCountAddUser = _this$state2.itemCountAddUser,
        pageAddUser = _this$state2.pageAddUser,
        perPageAddUser = _this$state2.perPageAddUser,
        columnsUser = _this$state2.columnsUser,
        pagedRowsUser = _this$state2.pagedRowsUser,
        ldifArray = _this$state2.ldifArray,
        cleanLdifArray = _this$state2.cleanLdifArray,
        columnsValues = _this$state2.columnsValues,
        noEmptyValue = _this$state2.noEmptyValue,
        alertVariant = _this$state2.alertVariant,
        namingAttrVal = _this$state2.namingAttrVal,
        namingAttr = _this$state2.namingAttr,
        namingVal = _this$state2.namingVal,
        resultVariant = _this$state2.resultVariant,
        editableTableData = _this$state2.editableTableData,
        stepIdReached = _this$state2.stepIdReached;
    var rdnValue = namingVal;
    var myTitle = namingAttrVal === '' || rdnValue === '' ? 'Invalid Naming Attribute - Empty Value!' : 'DN ( Distinguished Name )';
    var userSelectStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-container"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextVariants.h3
    }, "Select Entry Type"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.SelectVariant.single,
      className: "ds-margin-top-lg",
      "aria-label": "Select user type",
      onToggle: this.onToggleType,
      onSelect: this.onSelectType,
      selections: this.state.accountType,
      isOpen: this.state.isOpenType
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.SelectOption, {
      key: "user",
      value: "Basic Account"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.SelectOption, {
      key: "posix",
      value: "Posix Account"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.SelectOption, {
      key: "service",
      value: "Service Account"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextContent, {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextVariants.h6,
      className: "ds-margin-top-lg ds-font-size-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Basic Account"), " - This type of user entry uses a common set of objectclasses (nsPerson, nsAccount, and nsOrgPerson)."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextVariants.h6,
      className: "ds-margin-top-lg ds-font-size-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Posix Account"), " - This type of user entry uses a similar set of objectclasses as the ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, "Basic Account"), " (nsPerson, nsAccount, nsOrgPerson, and posixAccount), but it includes POSIX attributes like: ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, "uidNumber, gidNumber, homeDirectory, loginShell, and gecos"), "."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextVariants.h6,
      className: "ds-margin-top-lg ds-font-size-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Service Account"), " - This type of entry uses a bare minimum of objectclasses (nsAccount, and applicationProcess) and attributes to create a simple object used to represent a service (not a user identity)."))));
    var userAttributesStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-container"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextVariants.h3
    }, "Select Entry Attributes")), this.buildAttrDropdown()), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Pagination, {
      itemCount: itemCountAddUser,
      page: pageAddUser,
      perPage: perPageAddUser,
      onSetPage: this.onSetPageAddUser,
      widgetId: "pagination-options-menu-add-user",
      onPerPageSelect: this.onPerPageSelectAddUser,
      isCompact: true
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_14__.Table, {
      cells: columnsUser,
      rows: pagedRowsUser,
      onSelect: this.onSelect,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_15__.TableVariant.compact,
      "aria-label": "Pagination User Attributes",
      canSelectAll: false
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_16__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_17__.TableBody, null)));
    var userValuesStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Form, {
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.GridItem, {
      className: "ds-margin-top",
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.Alert, {
      variant: namingAttr === '' || namingVal === '' ? 'warning' : 'success',
      isInline: true,
      title: myTitle
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Entry DN:\xA0\xA0\xA0"), namingAttr ? namingAttr : "??????", "=", namingVal ? namingVal : "??????", ",", this.props.wizardEntryDn)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.GridItem, {
      span: 12,
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextVariants.h3
    }, "Set Attribute Values"))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.GridItem, {
      className: "ds-left-margin",
      span: 11
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_lib_editableTable_jsx__WEBPACK_IMPORTED_MODULE_1__["default"], {
      editableTableData: editableTableData,
      isAttributeSingleValued: this.isAttributeSingleValued,
      isAttributeRequired: this.isAttributeRequired,
      enableNextStep: this.enableNextStep,
      setNamingRowID: this.setNamingRowID,
      saveCurrentRows: this.saveCurrentRows,
      namingRowID: this.state.namingRowID,
      namingAttr: this.state.namingAttr
    })));
    var ldifListItems = cleanLdifArray.map((line, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.SimpleListItem, {
      key: index,
      isCurrent: line.startsWith('dn: ')
    }, line));
    var userCreationStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.Alert, {
      variant: "info",
      isInline: true,
      title: "LDIF Content for User Creation"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.Card, {
      isSelectable: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.CardBody, null, ldifListItems.length > 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.SimpleList, {
      "aria-label": "LDIF data User"
    }, ldifListItems))));
    var nb = -1;
    var ldifLines = ldifArray.map(line => {
      nb++;
      return {
        data: line,
        id: nb
      };
    });
    var userReviewStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.Alert, {
      variant: resultVariant,
      isInline: true,
      title: "Result for User Creation"
    }, commandOutput, this.state.adding && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.Spinner, {
      className: "ds-left-margin",
      size: "md"
    }), "\xA0\xA0Adding user ...")), resultVariant === 'danger' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.Card, {
      isSelectable: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__.CardTitle, null, "LDIF Data"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.CardBody, null, ldifLines.map(line => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("h6", {
      key: line.id
    }, line.data)))));
    var addUserSteps = [{
      id: 1,
      name: this.props.firstStep[0].name,
      component: this.props.firstStep[0].component,
      canJumpTo: stepIdReached >= 1 && stepIdReached < 6,
      hideBackButton: true
    }, {
      id: 2,
      name: 'Choose User Type',
      component: userSelectStep,
      canJumpTo: stepIdReached >= 2 && stepIdReached < 6
    }, {
      id: 3,
      name: 'Select Attributes',
      component: userAttributesStep,
      canJumpTo: stepIdReached >= 3 && stepIdReached < 6
    }, {
      id: 4,
      name: 'Set Values',
      component: userValuesStep,
      canJumpTo: stepIdReached >= 4 && stepIdReached < 6,
      enableNext: noEmptyValue
    }, {
      id: 5,
      name: 'Create User',
      component: userCreationStep,
      nextButtonText: 'Create User',
      canJumpTo: stepIdReached >= 5 && stepIdReached < 6
    }, {
      id: 6,
      name: 'Review Result',
      component: userReviewStep,
      nextButtonText: 'Finish',
      canJumpTo: stepIdReached >= 6,
      hideBackButton: true,
      enableNext: !this.state.adding
    }];
    var title = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, "Parent DN: \xA0\xA0", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, this.props.wizardEntryDn));
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__.Wizard, {
      isOpen: this.props.isWizardOpen,
      onClose: this.props.toggleOpenWizard,
      onNext: this.onNext,
      onBack: this.onBack,
      title: "Add A User",
      description: title,
      steps: addUserSteps
    });
  }

}

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AddUser);

/***/ }),

/***/ "./src/lib/ldap_editor/wizards/operations/editLdapEntry.jsx":
/*!******************************************************************!*\
  !*** ./src/lib/ldap_editor/wizards/operations/editLdapEntry.jsx ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Label/Label.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/LabelGroup/LabelGroup.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/DropdownItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/Dropdown.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/dropdownConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Dropdown/BadgeToggle.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Bullseye/Bullseye.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Title/Title.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SearchInput/SearchInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Pagination/Pagination.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleListItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/Alert.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/Card.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardBody.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleList.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardTitle.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Wizard/Wizard.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/wrappable.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/headerCol.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Table.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableTypes.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Header.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Body.js");
/* harmony import */ var _lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../lib/utils.jsx */ "./src/lib/ldap_editor/lib/utils.jsx");
/* harmony import */ var _lib_editableTable_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../lib/editableTable.jsx */ "./src/lib/ldap_editor/lib/editableTable.jsx");
/* harmony import */ var _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../lib/constants.jsx */ "./src/lib/ldap_editor/lib/constants.jsx");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }








class EditLdapEntry extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    var _this;

    super(props);
    _this = this;

    _defineProperty(this, "isAttributeSingleValued", attr => {
      return this.singleValuedAttributes.includes(attr.toLowerCase());
    });

    _defineProperty(this, "isAttributeRequired", attr => {
      return this.requiredAttributes.includes(attr);
    });

    _defineProperty(this, "enableNextStep", yes => {
      this.setState({
        validMods: yes
      });
    });

    _defineProperty(this, "saveCurrentRows", editableTableData => {
      var validMods = true;

      var _iterator = _createForOfIteratorHelper(editableTableData),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var row = _step.value;

          if (row.val === "") {
            validMods = false;
            break;
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      this.setState({
        editableTableData,
        validMods
      });
    });

    _defineProperty(this, "onSetPageOc", (_event, pageNumber) => {
      this.setState({
        pageOc: pageNumber,
        pagedRowsOc: this.getItemsToShow(pageNumber, this.state.perPageOc, 'ObjectClassTable')
      });
    });

    _defineProperty(this, "onSetPageAttr", (_event, pageNumber) => {
      this.setState({
        pageAttr: pageNumber,
        pagedRowsAttr: this.getItemsToShow(pageNumber, this.state.perPageAttr, 'AttributeTable')
      });
    });

    _defineProperty(this, "onPerPageSelectOc", (_event, perPage) => {
      this.setState({
        pageOc: 1,
        perPageOc: perPage,
        pagedRowsOc: this.getItemsToShow(1, perPage, 'ObjectClassTable')
      });
    });

    _defineProperty(this, "onPerPageSelectAttr", (_event, perPage) => {
      this.setState({
        pageAttr: 1,
        perPageAttr: perPage,
        pagedRowsAttr: this.getItemsToShow(1, perPage, 'AttributeTable')
      });
    });

    _defineProperty(this, "onSelectOc", (event, isSelected, rowId) => {
      // Process only the entries in the current page ( pagedRowsOc )
      var rows = [...this.state.pagedRowsOc];
      rows[rowId].selected = isSelected; // Find the entry in the full array and set 'isAttributeSelected' accordingly
      // The property 'selected' is used to build the attribute table.
      // The row ID cannot be used since it changes with the pagination.

      var ocName = this.state.pagedRowsOc[rowId].cells[0];
      var allItems = [...this.state.rowsOc];
      var index = allItems.findIndex(item => item.cells[0] === ocName);
      allItems[index].selected = isSelected;
      var selectedObjectClasses = [...this.state.selectedObjectClasses];

      if (isSelected) {
        // Add to selected OC
        selectedObjectClasses.push(allItems[index]);
      } else {
        // Remove OC from selected list
        selectedObjectClasses = selectedObjectClasses.filter(row => row.cells[0] !== allItems[index].cells[0]);
      }

      var attrsToRemove = [];

      if (!isSelected) {
        // Removing an objectclass, this will impact the entry as we might have to remove attributes
        var ocAttrs = allItems[index].cells[1].toLowerCase().replace(/\s/g, '').split(',');
        ocAttrs = ocAttrs.concat(allItems[index].cells[2].toLowerCase().replace(/\s/g, '').split(','));
        var currAttrs = [];

        var _iterator2 = _createForOfIteratorHelper(selectedObjectClasses),
            _step2;

        try {
          for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
            var oc = _step2.value;
            // Gather all the allowed attributes
            currAttrs = currAttrs.concat(oc.cells[1].toLowerCase().replace(/\s/g, '').split(','));
            currAttrs = currAttrs.concat(oc.cells[2].toLowerCase().replace(/\s/g, '').split(','));
          }
        } catch (err) {
          _iterator2.e(err);
        } finally {
          _iterator2.f();
        }

        var _iterator3 = _createForOfIteratorHelper(ocAttrs),
            _step3;

        try {
          for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
            var attr = _step3.value;

            if (currAttrs.indexOf(attr) === -1) {
              // No other OC allows this attribute, it must go
              attrsToRemove.push(attr);
            }
          }
        } catch (err) {
          _iterator3.e(err);
        } finally {
          _iterator3.f();
        }
      }

      this.setState({
        rowsOc: allItems,
        pagedRowsOc: rows,
        selectedObjectClasses,
        attrsToRemove
      }, () => {
        this.updateAttributeTableRows();
      });
    });

    _defineProperty(this, "onSelectAttr", (event, isSelected, rowId) => {
      var newEditableData = this.state.editableTableData;
      var rows; // Quick hack until the code is upgraded to a version that supports "disableCheckbox"

      if (this.state.pagedRowsAttr[rowId].disableCheckbox === true) {
        return;
      } // End hack.
      // Process only the entries in the current page ( pagedRowsAttr )


      rows = [...this.state.pagedRowsAttr];
      rows[rowId].selected = isSelected; // Find the entry in the full array and set 'isAttributeSelected' accordingly
      // The property 'isAttributeSelected' is used to build the LDAP entry to add.
      // The row ID cannot be used since it changes with the pagination.

      var attrName = this.state.pagedRowsAttr[rowId].cells[0];
      var allItems = [...this.state.rowsAttr];
      var index = allItems.findIndex(item => item.cells[0] === attrName);
      allItems[index].isAttributeSelected = isSelected;
      var selectedAttributes = allItems.filter(item => item.isAttributeSelected).map(attrObj => [attrObj.attributeName, attrObj.cells[1]]); // Update the table rows as needed

      var rowAttr = rows[rowId].attributeName.toLowerCase();
      var found = this.state.editableTableData.filter(item => item.attr.toLowerCase() === rowAttr);

      if (isSelected) {
        if (found.length === 0 && rowAttr !== 'objectclass') {
          var obj = {};
          obj.id = (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.generateUniqueId)();
          obj.attr = rows[rowId].attributeName;
          obj.val = "";
          obj.namingAttr = false;
          obj.required = false;
          newEditableData = [...newEditableData, obj];
        }
      } else if (found.length > 0) {
        // Remove the row if present
        newEditableData = this.state.editableTableData.filter(item => item.attr.toLowerCase() !== rowAttr);
      }

      var validMods = true;

      var _iterator4 = _createForOfIteratorHelper(newEditableData),
          _step4;

      try {
        for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
          var row = _step4.value;

          if (row.val === "") {
            validMods = false;
          }
        }
      } catch (err) {
        _iterator4.e(err);
      } finally {
        _iterator4.f();
      }

      this.setState({
        rowsAttr: allItems,
        pagedRowsAttr: rows,
        editableTableData: newEditableData,
        selectedAttributes,
        validMods
      });
    });

    _defineProperty(this, "updateAttributeTableRows", () => {
      var ocToProcess = [...this.state.selectedObjectClasses];
      var rowsAttr = [];
      var attrList = [];
      ocToProcess.map(oc => {
        // Rebuild the attribute arrays.
        var required = oc.cells[1].split(',');
        var optional = oc.cells[2].split(',');

        var _iterator5 = _createForOfIteratorHelper(required),
            _step5;

        try {
          var _loop = function _loop() {
            var attr = _step5.value;
            attr = attr.trim().toLowerCase();

            if (attr === '') {
              return "continue";
            }

            if (!attrList.includes(attr)) {
              attrList.push(attr);
              rowsAttr.push({
                selected: true,
                disableCheckbox: true,
                // TODO: Hack until upgrading!
                isAttributeSelected: true,
                attributeName: attr,
                cells: [{
                  title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, attr))
                }, oc.cells[0]]
              });
            } // Loop over entry attributes and add the attribute, with an
            // empty value, to the editableTableData


            var found = _this.state.editableTableData.filter(item => item.attr.toLowerCase() === attr);

            if (found.length === 0 && attr !== 'objectclass') {
              var obj = {};
              obj.id = (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.generateUniqueId)();
              obj.attr = attr;
              obj.val = "";
              obj.namingAttr = false;
              obj.required = false;

              _this.setState(prevState => ({
                editableTableData: [...prevState.editableTableData, obj],
                validMods: false
              }));
            }
          };

          for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
            var _ret = _loop();

            if (_ret === "continue") continue;
          }
        } catch (err) {
          _iterator5.e(err);
        } finally {
          _iterator5.f();
        }

        var _iterator6 = _createForOfIteratorHelper(optional),
            _step6;

        try {
          for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
            var attr = _step6.value;
            attr = attr.trim();

            if (attr === '') {
              continue;
            }

            if (!attrList.includes(attr)) {
              var _selected = false;

              var _iterator9 = _createForOfIteratorHelper(this.state.editableTableData),
                  _step9;

              try {
                for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
                  var _existingRow = _step9.value;

                  if (_existingRow.attr.toLowerCase() === attr.toLowerCase()) {
                    _selected = true;
                    break;
                  }
                }
              } catch (err) {
                _iterator9.e(err);
              } finally {
                _iterator9.f();
              }

              attrList.push(attr);
              rowsAttr.push({
                attributeName: attr,
                isAttributeSelected: _selected,
                selected: _selected,
                cells: [attr, oc.cells[0]]
              });
            }
          } // If we're editing a user then add nsRoleDN attribute to the possible list

        } catch (err) {
          _iterator6.e(err);
        } finally {
          _iterator6.f();
        }

        var personOC = false;

        var _iterator7 = _createForOfIteratorHelper(this.state.selectedObjectClasses),
            _step7;

        try {
          for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
            var existingOC = _step7.value;

            if (existingOC.cells[0].toLowerCase() === 'person' || existingOC.cells[0].toLowerCase() === 'nsperson') {
              personOC = true;
              break;
            }
          }
        } catch (err) {
          _iterator7.e(err);
        } finally {
          _iterator7.f();
        }

        var roleDNAttr = 'nsRoleDN';

        if (personOC && !attrList.includes(roleDNAttr)) {
          var selected = false;

          var _iterator8 = _createForOfIteratorHelper(this.state.editableTableData),
              _step8;

          try {
            for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
              var existingRow = _step8.value;

              if (existingRow.attr.toLowerCase() === roleDNAttr.toLowerCase()) {
                selected = true;
                break;
              }
            }
          } catch (err) {
            _iterator8.e(err);
          } finally {
            _iterator8.f();
          }

          attrList.push(roleDNAttr);
          rowsAttr.push({
            attributeName: roleDNAttr,
            isAttributeSelected: selected,
            selected: selected,
            cells: [roleDNAttr, '']
          });
        }
      }); // Update the rows where user can select the attributes.

      rowsAttr.sort((a, b) => a.attributeName > b.attributeName ? 1 : -1);
      this.setState({
        rowsAttr,
        selectedAttributes: rowsAttr.filter(item => item.isAttributeSelected).map(attrObj => [attrObj.attributeName, attrObj.cells[1]]),
        itemCountAttr: rowsAttr.length
      }, () => {
        // getItemsToShow() expects rowAttrs to be updated already, so we
        // have to do this callback
        this.setState({
          pagedRowsAttr: this.getItemsToShow(this.state.pageAttr, this.state.perPageAttr, 'AttributeTable')
        });
      });
    });

    _defineProperty(this, "generateLdifData", () => {
      var statementRows = [];
      var ldifArray = [];
      var ldifArrayClean = []; // Masks userpassword

      var updateArray = [];
      var addArray = [];
      var removeArray = [];
      var numOfChanges = 0; // Check for row changes

      var _iterator10 = _createForOfIteratorHelper(this.originalEntryRows),
          _step10;

      try {
        var _loop3 = function _loop3() {
          var originalRow = _step10.value;

          // Check if the value has been changed by comparing
          // the unique IDs and the values.
          var matchingObj = _this.state.editableTableData.find(elt => elt.id === originalRow.id); // Check if original row was removed


          if (!matchingObj) {
            removeArray.push(originalRow);
            return "continue";
          } // Now check the value.


          var sameValue = matchingObj.val === originalRow.val;

          if (sameValue) {
            updateArray.push(_objectSpread({}, originalRow));
          } else {
            // Value has changed.
            var myNewObject = _objectSpread(_objectSpread({}, originalRow), {}, {
              op: _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.LDAP_OPERATIONS.replace,
              new: matchingObj.val
            });

            if (matchingObj.encodedValue) {
              myNewObject.encodedValue = matchingObj.encodedValue;
            }

            updateArray.push(myNewObject);
          }
        };

        for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
          var _ret2 = _loop3();

          if (_ret2 === "continue") continue;
        } // Check for new rows

      } catch (err) {
        _iterator10.e(err);
      } finally {
        _iterator10.f();
      }

      var _iterator11 = _createForOfIteratorHelper(this.state.editableTableData),
          _step11;

      try {
        for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
          var savedRow = _step11.value;
          var found = false;

          var _iterator14 = _createForOfIteratorHelper(this.originalEntryRows),
              _step14;

          try {
            for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {
              var originalRow = _step14.value;

              if (originalRow.id === savedRow.id) {
                // Found, its not new
                found = true;
                break;
              }
            }
          } catch (err) {
            _iterator14.e(err);
          } finally {
            _iterator14.f();
          }

          if (!found) {
            // Add new row
            addArray.push(savedRow);
          }

          found = false;
        }
      } catch (err) {
        _iterator11.e(err);
      } finally {
        _iterator11.f();
      }

      var _loop2 = function _loop2() {
        var datum = _updateArray[_i];
        var myAttr = datum.attr;
        var myVal = datum.val;
        var isUserPwd = myAttr.toLowerCase() === "userpassword";

        if (myAttr === 'dn') {
          // Entry DN.
          ldifArray.push("dn: ".concat(myVal)); // DN line.

          ldifArray.push('changetype: modify'); // To modify the entry.
        }

        if (datum.op === undefined) {
          // Unchanged value.
          statementRows.push({
            cells: [{
              title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Label, null, "Keep")
            }, myAttr, myVal]
          });
        } else {
          // Value was updated.
          if (ldifArray.length >= 4) {
            // There was already a first round of attribute replacement.
            ldifArray.push('-');
          }

          var sameAttrArray = _this.originalEntryRows.filter(obj => obj.attr === myAttr);

          var mySeparator = _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.BINARY_ATTRIBUTES.includes(myAttr.toLowerCase()) ? '::' : ':';

          if (sameAttrArray.length > 1) {
            // The attribute has multiple values.
            // We need to delete the specific value and add the new one.
            ldifArray.push("delete: ".concat(myAttr));
            ldifArray.push("".concat(myAttr, ": ").concat(myVal));
            ldifArray.push('-');
            ldifArray.push("add: ".concat(myAttr));
          } else {
            // There is a single value for the attribute.
            // A "replace" statement is enough.
            ldifArray.push("replace: ".concat(myAttr));
          }

          var valueToUse = datum.encodedValue ? datum.encodedValue : datum.new; // foldLine() will return the line as is ( in an array though )
          // if its length is smaller than 78.
          // Otherwise the line is broken into smaller ones ( 78 characters max per line ).

          var remainingData = (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.foldLine)("".concat(myAttr).concat(mySeparator, " ").concat(valueToUse));
          ldifArray.push(...remainingData);
          numOfChanges++;

          if (isUserPwd) {
            datum.new = "********";
            myVal = "********";
          }

          statementRows.push({
            cells: [{
              title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Label, {
                color: "orange"
              }, "Replace")
            }, myAttr, {
              title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.LabelGroup, {
                isVertical: true
              }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Label, {
                variant: "outline",
                color: "red"
              }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("em", null, "old:"), "\u2002", myVal), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Label, {
                variant: "outline",
                color: "blue",
                isTruncated: true
              }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("em", null, "new:"), "\u2002", datum.new))
            }]
          });
        }
      };

      for (var _i = 0, _updateArray = updateArray; _i < _updateArray.length; _i++) {
        _loop2();
      } // End updateArray loop.
      // Loop add rows


      for (var _i2 = 0, _addArray = addArray; _i2 < _addArray.length; _i2++) {
        var datum = _addArray[_i2];
        var myAttr = datum.attr;
        var myVal = datum.val;
        var isUserPwd = myAttr.toLowerCase() === "userpassword";
        numOfChanges++; // Update LDIF array

        if (ldifArray.length >= 4) {
          // There was already a first round of attribute replacement.
          ldifArray.push('-');
        }

        ldifArray.push('add: ' + myAttr);
        var remainingData = (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.foldLine)("".concat(myAttr, ": ").concat(myVal));
        ldifArray.push(...remainingData);

        if (isUserPwd) {
          myVal = "********";
        } // Update Table


        statementRows.push({
          cells: [{
            title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Label, {
              color: "orange"
            }, "Add")
          }, myAttr, {
            title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Label, {
              variant: "outline",
              color: "blue",
              isTruncated: true
            }, myVal)
          }]
        });
      } // Loop delete rows


      for (var _i3 = 0, _removeArray = removeArray; _i3 < _removeArray.length; _i3++) {
        var _datum = _removeArray[_i3];
        var _myAttr = _datum.attr;
        var _myVal = _datum.val;

        var _isUserPwd = _myAttr.toLowerCase() === "userpassword"; // Update LDIF array


        if (ldifArray.length >= 4) {
          // There was already a first round of attribute replacement.
          ldifArray.push('-');
        }

        ldifArray.push('delete: ' + _myAttr);
        numOfChanges++;

        if (!_isUserPwd) {
          var _remainingData = (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.foldLine)("".concat(_myAttr, ": ").concat(_myVal));

          ldifArray.push(..._remainingData);
        } else {
          _myVal = "********";
        } // Update Table


        statementRows.push({
          cells: [{
            title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Label, {
              color: "red"
            }, "Delete")
          }, _myAttr, {
            title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Label, {
              variant: "outline",
              color: "blue",
              isTruncated: true
            }, _myVal)
          }]
        });
      } // Handle Objectclass changes


      var origOCs = this.state.origOC.map(oc => {
        return oc.cells[0].toLowerCase();
      });
      var newOCs = this.state.selectedObjectClasses.map(oc => {
        return oc.cells[0].toLowerCase();
      });

      var _iterator12 = _createForOfIteratorHelper(origOCs),
          _step12;

      try {
        for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
          var oldOC = _step12.value;

          if (newOCs.indexOf(oldOC) === -1) {
            if (ldifArray.length >= 4) {
              ldifArray.push('-');
            }

            ldifArray.push('delete: objectClass');
            ldifArray.push('objectClass: ' + oldOC);
            statementRows.push({
              cells: [{
                title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Label, {
                  color: "red"
                }, "Delete")
              }, 'objectClass', {
                title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Label, {
                  variant: "outline",
                  color: "blue",
                  isTruncated: true
                }, oldOC)
              }]
            });
            numOfChanges++;
          }
        }
      } catch (err) {
        _iterator12.e(err);
      } finally {
        _iterator12.f();
      }

      var _iterator13 = _createForOfIteratorHelper(newOCs),
          _step13;

      try {
        for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {
          var newOC = _step13.value;

          if (origOCs.indexOf(newOC) === -1) {
            if (ldifArray.length >= 4) {
              ldifArray.push('-');
            }

            ldifArray.push('add: objectClass');
            ldifArray.push('objectClass: ' + newOC);
            statementRows.push({
              cells: [{
                title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Label, {
                  color: "orange"
                }, "Add")
              }, 'objectClass', {
                title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Label, {
                  variant: "outline",
                  color: "blue",
                  isTruncated: true
                }, newOC)
              }]
            });
            numOfChanges++;
          }
        } // Hide userpassword value

      } catch (err) {
        _iterator13.e(err);
      } finally {
        _iterator13.f();
      }

      var cleanLdifArray = [...ldifArray];

      for (var idx in cleanLdifArray) {
        if (cleanLdifArray[idx].toLowerCase().startsWith("userpassword")) {
          cleanLdifArray[idx] = "userpassword: ********";
          break;
        }
      }

      this.setState({
        statementRows,
        ldifArray,
        cleanLdifArray,
        numOfChanges: numOfChanges
      });
    });

    _defineProperty(this, "onOCDropDownToggle", isOpen => {
      this.setState({
        isOCDropDownOpen: isOpen
      });
    });

    _defineProperty(this, "onOCDropDownSelect", event => {
      this.setState((prevState, props) => {
        return {
          isOCDropDownOpen: !prevState.isOCDropDownOpen
        };
      });
    });

    _defineProperty(this, "buildOCDropdown", () => {
      var _this$state = this.state,
          isOCDropDownOpen = _this$state.isOCDropDownOpen,
          selectedObjectClasses = _this$state.selectedObjectClasses;
      var numSelected = this.state.rowsOc.filter(item => item.selected).length;
      var items = this.state.selectedObjectClasses.map(oc => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.DropdownItem, {
        key: oc.cells[0]
      }, oc.cells[0]));
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Dropdown, {
        className: "ds-dropdown-padding",
        onSelect: this.onOCDropDownSelect,
        position: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.DropdownPosition.left,
        toggle: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.BadgeToggle, {
          id: "toggle-oc-select",
          onToggle: this.onOCDropDownToggle
        }, numSelected !== 0 ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, numSelected, " selected ") : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, "0 selected ")),
        isOpen: isOCDropDownOpen,
        dropdownItems: items
      });
    });

    _defineProperty(this, "onAttrDropDownToggle", isOpen => {
      this.setState({
        isAttrDropDownOpen: isOpen
      });
    });

    _defineProperty(this, "onAttrDropDownSelect", event => {
      this.setState((prevState, props) => {
        return {
          isAttrDropDownOpen: !prevState.isAttrDropDownOpen
        };
      });
    });

    _defineProperty(this, "buildAttrDropdown", () => {
      var _this$state2 = this.state,
          isAttrDropDownOpen = _this$state2.isAttrDropDownOpen,
          selectedAttributes = _this$state2.selectedAttributes;
      var numSelected = selectedAttributes.length;
      var items = selectedAttributes.map(attr => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.DropdownItem, {
        key: attr[0]
      }, attr[0]));
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Dropdown, {
        className: "ds-dropdown-padding",
        onSelect: this.onAttrDropDownSelect,
        position: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.DropdownPosition.left,
        toggle: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.BadgeToggle, {
          id: "toggle-attr-select",
          onToggle: this.onAttrDropDownToggle
        }, numSelected !== 0 ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, numSelected, " selected ") : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, "0 selected ")),
        isOpen: isAttrDropDownOpen,
        dropdownItems: items
      });
    });

    this.originalEntryRows = [];
    this.singleValuedAttributes = [];
    this.requiredAttributes = ['dn'];
    this.operationColumns = [{
      title: 'Statement'
    }, {
      title: 'Attribute'
    }, {
      title: 'Value',
      cellTransforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.breakWord]
    }];
    this.state = {
      loading: true,
      isOCDropDownOpen: false,
      isAttrDropDownOpen: false,
      namingAttributeData: ['', ''],
      namingAttrPropsName: '',
      namingRowIndex: -1,
      namingAttribute: '',
      namingValue: '',
      editableTableData: [],
      statementRows: [],
      ldifArray: [],
      cleanLdifArray: [],
      validMods: false,
      commandOutput: '',
      resultVariant: 'default',
      stepIdReached: 1,
      itemCountOc: 0,
      pageOc: 1,
      perPageOc: 6,
      itemCountAttr: 0,
      pageAttr: 1,
      perPageAttr: 10,
      columnsAttr: [{
        title: 'Attribute Name',
        cellTransforms: [(0,_patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__.headerCol)()]
      }, {
        title: 'From ObjectClass'
      }],
      columnsOc: [{
        title: 'ObjectClass Name',
        cellTransforms: [(0,_patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__.headerCol)()]
      }, {
        title: 'Required Attributes',
        cellTransforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.breakWord]
      }, {
        title: 'Optional Attributes',
        cellTransforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.breakWord]
      }],
      rowsOc: [],
      rowsAttr: [],
      pagedRowsOc: [],
      pagedRowsAttr: [],
      selectedObjectClasses: [],
      selectedAttributes: [],
      attrsToRemove: [],
      modifying: true
    };

    this.onNext = _ref => {
      var id = _ref.id;
      this.setState({
        stepIdReached: this.state.stepIdReached < id ? id : this.state.stepIdReached
      }); // The function updateValuesTableRows() is called upon new seletion(s)
      // Make sure the values table is updated in case no selection was made.

      if (id === 2) {
        // Just call this function in order to make sure the values table is up-to-date
        // even after navigating back and forth.
        this.updateAttributeTableRows();
      } else if (id === 3) {
        // Remove attributes from removed objectclasses
        this.cleanUpEntry();
      } else if (id === 4) {
        // Generate the LDIF data at step 4.
        this.generateLdifData();
      } else if (id === 6) {
        var params = {
          serverId: this.props.editorLdapServer
        };
        (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.modifyLdapEntry)(params, this.state.ldifArray, result => {
          if (result.errorCode === 0) {
            result.output = "Successfully modified entry";
          }

          this.setState({
            commandOutput: result.output,
            commandOutput: result.errorCode === 0 ? 'Successfully modified entry!' : 'Failed to modify entry, error: ' + result.errorCode,
            resultVariant: result.errorCode === 0 ? 'success' : 'danger',
            modifying: false
          }, () => {
            this.props.onReload();
          }); // refreshes tableView

          var opInfo = {
            // This is what refreshes treeView
            operationType: 'MODIFY',
            resultCode: result.errorCode,
            time: Date.now()
          };
          this.props.setWizardOperationInfo(opInfo);
        });
      }
    };

    this.cleanUpEntry = () => {
      var newRows = [];
      var validMods = true;

      var _iterator15 = _createForOfIteratorHelper(this.state.editableTableData),
          _step15;

      try {
        for (_iterator15.s(); !(_step15 = _iterator15.n()).done;) {
          var row = _step15.value;
          var attr = row.attr.toLowerCase();

          if (this.state.attrsToRemove.indexOf(attr) === -1) {
            if (row.val === "") {
              validMods = false;
            }

            newRows.push(row);
          }
        }
      } catch (err) {
        _iterator15.e(err);
      } finally {
        _iterator15.f();
      }

      this.setState({
        editableTableData: newRows,
        validMods
      });
    };

    this.onOCSearchChange = (value, event) => {
      var ocRows = [];
      var allOCs = [];
      var val = value.toLowerCase(); // Get fresh list of Objectclasses andwhat is selected

      this.props.allObjectclasses.map(oc => {
        var selected = false;
        var selectionDisabled = false;

        var _iterator16 = _createForOfIteratorHelper(this.state.selectedObjectClasses),
            _step16;

        try {
          for (_iterator16.s(); !(_step16 = _iterator16.n()).done;) {
            var selectedOC = _step16.value;

            if (selectedOC.cells[0].toLowerCase() === oc.name.toLowerCase()) {
              selected = true;
              break;
            }
          }
        } catch (err) {
          _iterator16.e(err);
        } finally {
          _iterator16.f();
        }

        if (oc.name === "top") {
          // Can not remove objectclass=top
          selectionDisabled = true;
        }

        allOCs.push({
          cells: [oc.name, oc.required.join(', '), oc.optional.join(', ')],
          selected: selected,
          disableSelection: selectionDisabled
        });
      }); // Process search filter on the entire list

      if (value !== "") {
        var _iterator17 = _createForOfIteratorHelper(allOCs),
            _step17;

        try {
          for (_iterator17.s(); !(_step17 = _iterator17.n()).done;) {
            var row = _step17.value;
            var name = row.cells[0].toLowerCase();
            var reqAttrs = row.cells[1].toLowerCase();
            var optAttrs = row.cells[2].toLowerCase();

            if (name.includes(val) || reqAttrs.includes(val) || optAttrs.includes(val)) {
              ocRows.push(row);
            }
          }
        } catch (err) {
          _iterator17.e(err);
        } finally {
          _iterator17.f();
        }
      } else {
        // Restore entire rowsOc list
        ocRows = allOCs;
      }

      this.setState({
        rowsOc: ocRows,
        pagedRowsOc: ocRows.slice(0, this.state.perPageOc)
      });
    }; // End constructor().

  }

  componentDidMount() {
    var ocArray = [];
    (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.getSingleValuedAttributes)(this.props.editorLdapServer, myAttrs => {
      this.singleValuedAttributes = [...myAttrs];
    });
    (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.getBaseLevelEntryAttributes)(this.props.editorLdapServer, this.props.wizardEntryDn, entryDetails => {
      var objectclasses = [];
      var rdnInfo = (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.getRdnInfo)(this.props.wizardEntryDn);
      var namingAttr = "";
      var namingValue = "";
      var namingIndex = -1;
      var attrPropsName = "";
      entryDetails.filter(data => data.attribute + data.value !== '' && // Filter out empty lines
      data.attribute !== '???: ') // and data for empty suffix(es) and in case of failure.
      .map((line, index) => {
        var obj = {};
        var attr = line.attribute;
        var attrLowerCase = attr.trim().toLowerCase();
        var namingAttribute = false;
        var val = line.value.substring(1).trim();

        if (attrLowerCase === "objectclass") {
          objectclasses.push(val);
        } else {
          // Base64 encoded values
          if (line.attribute === "dn") {//return;
          }

          if (line.value.substring(0, 2) === '::') {
            val = line.value.substring(3);

            if (_lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.BINARY_ATTRIBUTES.includes(attrLowerCase)) {
              // obj.fileUpload = true;
              // obj.isDisabled = true;
              if (attrLowerCase === 'jpegphoto') {
                var myPhoto = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("img", {
                  src: "data:image/png;base64,".concat(val),
                  alt: "",
                  style: {
                    width: '48px'
                  } // height will adjust automatically.

                });
                val = myPhoto;
              } else if (attrLowerCase === 'nssymmetrickey') {
                // TODO: Check why the decoding of 'nssymmetrickey is failing...
                //   https://access.redhat.com/documentation/en-us/red_hat_directory_server/10
                //   /html/configuration_command_and_file_reference/core_server_configuration_reference#cnchangelog5-nsSymmetricKey
                //
                // Just show the encoded value at the moment.
                val = line.value.substring(3);
              }
            } else {
              // The value likely contains accented characters or has a trailing space.
              val = (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.b64DecodeUnicode)(line.value.substring(3));
            }
          } else {
            // Check for naming attribute
            if (attr === rdnInfo.rdnAttr && val === rdnInfo.rdnVal) {
              namingAttribute = true;
              namingAttr = attr;
              namingValue = val;
            }
          }

          obj.id = (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_1__.generateUniqueId)();
          obj.attr = attr;
          obj.val = val;
          obj.namingAttr = namingAttribute;
          obj.required = namingAttribute;
          this.originalEntryRows.push(obj);
        }
      }); // Mark the existing objectclass classes as selected

      this.props.allObjectclasses.map(oc => {
        var selected = false;
        var selectionDisabled = false;

        var _iterator18 = _createForOfIteratorHelper(objectclasses),
            _step18;

        try {
          for (_iterator18.s(); !(_step18 = _iterator18.n()).done;) {
            var entryOC = _step18.value;

            if (entryOC.toLowerCase() === oc.name.toLowerCase()) {
              // Mark required attributes with selected OC's
              var _iterator19 = _createForOfIteratorHelper(this.originalEntryRows),
                  _step19;

              try {
                for (_iterator19.s(); !(_step19 = _iterator19.n()).done;) {
                  var row = _step19.value;

                  if (oc.required.includes(row.attr) || row.attr === "dn") {
                    row.required = true;
                  }
                }
              } catch (err) {
                _iterator19.e(err);
              } finally {
                _iterator19.f();
              }

              selected = true;
              break;
            }
          }
        } catch (err) {
          _iterator18.e(err);
        } finally {
          _iterator18.f();
        }

        if (oc.name === "top") {
          // Can not remove objectclass=top
          selectionDisabled = true;
        }

        ocArray.push({
          cells: [oc.name, oc.required.join(', '), oc.optional.join(', ')],
          selected: selected,
          disableSelection: selectionDisabled
        });
      });
      var selectedObjectClasses = ocArray.filter(item => item.selected);
      this.setState({
        itemCountOc: ocArray.length,
        rowsOc: ocArray,
        pagedRowsOc: ocArray.slice(0, this.state.perPageOc),
        selectedObjectClasses,
        editableTableData: [...this.originalEntryRows],
        objectclasses: objectclasses,
        namingAttribute: namingAttr,
        namingValue: namingValue,
        origAttrs: JSON.parse(JSON.stringify(this.originalEntryRows)),
        origOC: JSON.parse(JSON.stringify(selectedObjectClasses)),
        loading: false
      }, () => {
        this.updateAttributeTableRows();
      });
    });
  }

  getItemsToShow(page, perPage, option) {
    var start = (page - 1) * perPage;
    var end = page * perPage;
    var newRows = option === 'ObjectClassTable' ? this.state.rowsOc.slice(start, end) : option === 'AttributeTable' ? this.state.rowsAttr.slice(start, end) : [];
    return newRows;
  }

  render() {
    var _this$state3 = this.state,
        loading = _this$state3.loading,
        itemCountOc = _this$state3.itemCountOc,
        pageOc = _this$state3.pageOc,
        perPageOc = _this$state3.perPageOc,
        columnsOc = _this$state3.columnsOc,
        pagedRowsOc = _this$state3.pagedRowsOc,
        itemCountAttr = _this$state3.itemCountAttr,
        pageAttr = _this$state3.pageAttr,
        perPageAttr = _this$state3.perPageAttr,
        columnsAttr = _this$state3.columnsAttr,
        pagedRowsAttr = _this$state3.pagedRowsAttr,
        commandOutput = _this$state3.commandOutput,
        namingAttribute = _this$state3.namingAttribute,
        namingValue = _this$state3.namingValue,
        stepIdReached = _this$state3.stepIdReached,
        itemCount = _this$state3.itemCount,
        pageAddUser = _this$state3.pageAddUser,
        perPageAddUser = _this$state3.perPageAddUser,
        ldifArray = _this$state3.ldifArray,
        statementRows = _this$state3.statementRows,
        resultVariant = _this$state3.resultVariant,
        editableTableData = _this$state3.editableTableData,
        numOfChanges = _this$state3.numOfChanges,
        validMods = _this$state3.validMods,
        cleanLdifArray = _this$state3.cleanLdifArray;
    var loadingStateRows = [{
      heightAuto: true,
      cells: [{
        props: {
          colSpan: 8
        },
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Bullseye, {
          key: "add-entry-bulleye"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Title, {
          headingLevel: "h2",
          size: "lg",
          key: "loading-title"
        }, "Loading..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("center", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Spinner, {
          size: "xl",
          key: "loading-spinner"
        })))
      }, 'Loading...', 'Loading...']
    }];
    var objectClassStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-container"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextVariants.h3
    }, "Select ObjectClasses")), this.buildOCDropdown()), loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Bullseye, {
      className: "ds-margin-top-xlg",
      key: "add-entry-bulleye"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Title, {
      headingLevel: "h3",
      size: "lg",
      key: "loading-title"
    }, "Loading ObjectClasses ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Spinner, {
      className: "ds-center",
      size: "lg",
      key: "loading-spinner"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: loading ? "ds-hidden" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.Grid, {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
      span: 5
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.SearchInput, {
      className: "ds-font-size-md",
      placeholder: "Search Objectclasses",
      value: this.state.searchValue,
      onChange: this.onOCSearchChange,
      onClear: evt => this.onOCSearchChange('', evt)
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
      span: 7
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Pagination, {
      value: "ObjectClassTable",
      itemCount: this.state.itemCountOc,
      page: this.state.pageOc,
      perPage: this.state.perPageOc,
      onSetPage: this.onSetPageOc,
      widgetId: "pagination-step-objectclass",
      onPerPageSelect: this.onPerPageSelectOc,
      variant: "top",
      isCompact: true
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_21__.Table, {
      cells: columnsOc,
      rows: pagedRowsOc,
      canSelectAll: false,
      onSelect: this.onSelectOc,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_22__.TableVariant.compact,
      "aria-label": "Pagination All ObjectClasses"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_23__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_24__.TableBody, null))));
    var attributeStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-container"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextVariants.h3
    }, "Select Attributes")), this.buildAttrDropdown()), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_21__.Table, {
      className: "ds-margin-top",
      cells: columnsAttr,
      rows: pagedRowsAttr,
      onSelect: this.onSelectAttr,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_22__.TableVariant.compact,
      "aria-label": "Pagination Attributes",
      canSelectAll: false
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_23__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_24__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Pagination, {
      itemCount: itemCountAttr,
      page: pageAttr,
      perPage: perPageAttr,
      onSetPage: this.onSetPageAttr,
      widgetId: "pagination-step-attributes",
      onPerPageSelect: this.onPerPageSelectAttr,
      dropDirection: "up",
      isCompact: true
    }));
    var myTitle = 'DN ( Distinguished Name )';
    var entryValuesStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextVariants.h3
    }, "Edit Attribute Values")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_lib_editableTable_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], {
      key: editableTableData,
      wizardEntryDn: this.props.wizardEntryDn,
      editableTableData: editableTableData,
      quickUpdate: true,
      isAttributeSingleValued: this.isAttributeSingleValued,
      isAttributeRequired: this.isAttributeRequired,
      enableNextStep: this.enableNextStep,
      saveCurrentRows: this.saveCurrentRows,
      allObjectclasses: this.props.allObjectclasses,
      disableNamingChange: true
    }));
    var ldifListItems = cleanLdifArray.map((line, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.SimpleListItem, {
      key: index,
      isCurrent: line.startsWith('dn: ')
    }, line));
    var ldifStatementsStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-addons-bottom-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.Alert, {
      variant: "info",
      isInline: true,
      title: "LDIF Statements"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__.Card, {
      isSelectable: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__.CardBody, null, ldifListItems.length > 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_29__.SimpleList, {
      "aria-label": "LDIF data User"
    }, ldifListItems))));
    var nb = -1;
    var ldifLines = ldifArray.map(line => {
      nb++;
      return {
        data: line,
        id: nb
      };
    });
    var entryReviewStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-addons-bottom-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.Alert, {
      variant: resultVariant,
      isInline: true,
      title: "Result for Entry Modification"
    }, commandOutput, this.state.adding && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Spinner, {
      className: "ds-left-margin",
      size: "md"
    }), "\xA0\xA0Modifying entry ..."))), resultVariant === 'danger' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__.Card, {
      isSelectable: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_30__.CardTitle, null, "LDIF Data"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__.CardBody, null, ldifLines.map(line => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("h6", {
      key: line.id
    }, line.data)))));
    var editEntrySteps = [{
      id: 1,
      name: 'Select ObjectClasses',
      component: objectClassStep,
      canJumpTo: stepIdReached >= 1 && stepIdReached < 6,
      enableNext: this.state.selectedObjectClasses.length > 0,
      hideBackButton: true
    }, {
      id: 2,
      name: 'Select Attributes',
      component: attributeStep,
      canJumpTo: stepIdReached >= 2 && stepIdReached < 6
    }, {
      id: 3,
      name: 'Edit Values',
      component: entryValuesStep,
      canJumpTo: stepIdReached >= 3 && stepIdReached < 6,
      enableNext: validMods
    }, {
      id: 4,
      name: 'View Changes',
      component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_21__.Table, {
        "aria-label": "Statement Table",
        variant: "compact",
        cells: this.operationColumns,
        rows: statementRows
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_23__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_24__.TableBody, null)),
      canJumpTo: stepIdReached >= 4 && stepIdReached < 6,
      enableNext: numOfChanges > 0
    }, {
      id: 5,
      name: 'LDIF Statements',
      component: ldifStatementsStep,
      nextButtonText: 'Modify Entry',
      canJumpTo: stepIdReached >= 5 && stepIdReached < 6
    }, {
      id: 6,
      name: 'Review Result',
      component: entryReviewStep,
      nextButtonText: 'Finish',
      canJumpTo: stepIdReached > 6,
      hideBackButton: true,
      enableNext: !this.state.modifying
    }];
    var title = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, "Entry DN: \xA0\xA0", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, this.props.wizardEntryDn));
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_31__.Wizard, {
      isOpen: this.props.isWizardOpen,
      onClose: this.props.toggleOpenWizard,
      steps: editEntrySteps,
      title: "Edit An LDAP Entry",
      description: title,
      onNext: this.onNext
    });
  }

}

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (EditLdapEntry);

/***/ }),

/***/ "./src/lib/ldap_editor/wizards/operations/genericUpdate.jsx":
/*!******************************************************************!*\
  !*** ./src/lib/ldap_editor/wizards/operations/genericUpdate.jsx ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Pagination/Pagination.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/Alert.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleListItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/Card.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardBody.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleList.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardTitle.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Wizard/Wizard.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/headerCol.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Table.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableTypes.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Header.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Body.js");
/* harmony import */ var _lib_editableTable_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../lib/editableTable.jsx */ "./src/lib/ldap_editor/lib/editableTable.jsx");
/* harmony import */ var _lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../lib/utils.jsx */ "./src/lib/ldap_editor/lib/utils.jsx");
/* harmony import */ var _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../lib/constants.jsx */ "./src/lib/ldap_editor/lib/constants.jsx");
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }








class GenericUpdate extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "onSetPage", (_event, pageNumber) => {
      this.setState({
        page: pageNumber,
        pagedRowsAttrs: this.getAttributesToShow(pageNumber, this.state.perPage)
      });
    });

    _defineProperty(this, "onPerPageSelect", (_event, perPage) => {
      this.setState({
        page: 1,
        perPage: perPage,
        pagedRowsAttrs: this.getAttributesToShow(1, perPage)
      });
    });

    _defineProperty(this, "isAttributeSingleValued", attr => {
      return _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.SINGLE_VALUED_ATTRS.includes(attr);
    });

    _defineProperty(this, "isAttributeRequired", attr => {
      switch (this.props.entryType) {
        case _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.ENTRY_TYPE.user:
          return _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.PERSON_REQ_ATTRS.includes(attr);

        case _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.ENTRY_TYPE.ou:
          return _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.OU_REQ_ATTRS.includes(attr);

        case _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.ENTRY_TYPE.other:
          return _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.PERSON_REQ_ATTRS.includes(attr);

        default:
          console.log("Unknown type of LDAP entry (".concat(this.props.entryType, ")"));
      }
    });

    _defineProperty(this, "onSelect", (event, isSelected, rowId) => {
      var rows;

      if (rowId === -1) {
        // Process the full table entries ( rowsAttrs )
        rows = this.state.rowsAttrs.map(oneRow => {
          // Change only the state of rows which can be selected.
          if (oneRow.disableSelection === false) {
            oneRow.selected = isSelected;
            oneRow.isAttributeSelected = isSelected;
          }

          return oneRow;
        });
        /* TEKO - May 27th 2021 - BEGIN
        // Quick hack until the code is upgraded to a version that supports "disableCheckbox"
        // Both 'cn' and 'sn' ( first 2 elements in the table ) are mandatory.
        // TODO: https://www.patternfly.org/v4/components/table#selectable
        // ==> disableSelection: true
        rows[0].selected = true;
        rows[1].selected = true;
        rows[0].isAttributeSelected = true;
        rows[1].isAttributeSelected = true;
        const selectedAttributes = ['cn', 'sn']; */

        this.setState({
          rowsAttrs: rows,
          allAttributesSelected: isSelected // TEKO - May 2021 // selectedAttributes

        }, () => {
          this.setState({
            pagedRowsAttrs: this.getAttributesToShow(this.state.page, this.state.perPage)
          });
          this.updateValuesTableRows();
        });
      } else {
        // Quick hack until the code is upgraded to a version that supports "disableCheckbox"
        // if (this.state.pagedRowsAttrs[rowId].disableCheckbox === true) {
        if (this.state.pagedRowsAttrs[rowId].disableSelection === true) {
          return;
        } // End hack.
        // Process only the entries in the current page ( pagedRowsAttrs )


        rows = [...this.state.pagedRowsAttrs];
        rows[rowId].selected = isSelected; // Find the entry in the full array and set 'isAttributeSelected' accordingly
        // The property 'isAttributeSelected' is used to build the LDAP entry to add.
        // The row ID cannot be used since it changes with the pagination.

        var attrName = this.state.pagedRowsAttrs[rowId].cells[0];
        var allItems = [...this.state.rowsAttrs];
        var index = allItems.findIndex(item => item.cells[0] === attrName);
        allItems[index].isAttributeSelected = isSelected;
        var selectedAttributes = allItems.filter(item => item.isAttributeSelected).map(selectedAttr => selectedAttr.cells[0]);
        this.setState({
          rowsAttrs: allItems,
          pagedRowsAttrs: rows,
          selectedAttributes
        }, () => this.updateValuesTableRows());
      }
    });

    _defineProperty(this, "updateValuesTableRows", skipAttributeSelection => {
      var newSelectedAttrs = this.state.allAttributesSelected ? ['cn', 'sn', ..._lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.PERSON_OPT_ATTRS, ..._lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.ORG_PERSON_ATTRS, ..._lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.INET_ORG_ATTRS] : [...this.state.selectedAttributes];
      var editableTableData = [];
      var namingRowID = this.state.namingRowID;
      var namingAttrVal = this.state.namingAttrVal;

      if (this.state.savedRows.length === 0) {
        editableTableData = newSelectedAttrs.map(attrName => {
          var obj = {
            id: (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.generateUniqueId)(),
            attr: attrName,
            val: '',
            required: false,
            namingAttr: false
          };
          return obj;
        });
        editableTableData.sort((a, b) => a.attr > b.attr ? 1 : -1);

        if (this.props.entryType == _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.ENTRY_TYPE.ou) {
          // Organizational Unit
          var _iterator = _createForOfIteratorHelper(editableTableData),
              _step;

          try {
            for (_iterator.s(); !(_step = _iterator.n()).done;) {
              var attr = _step.value;

              if (attr.attr === "ou") {
                // OU naming attribute
                namingRowID = attr.id, namingAttrVal = editableTableData[0].attr + "=" + editableTableData[0].val;
                break;
              }
            }
          } catch (err) {
            _iterator.e(err);
          } finally {
            _iterator.f();
          }
        } else {
          // Other
          namingRowID = editableTableData[0].id, namingAttrVal = editableTableData[0].attr + "=" + editableTableData[0].val;
        }
      } else {
        if (skipAttributeSelection) {
          // Do not check the attribute selection ( because it has not changed ).
          editableTableData = [...this.state.savedRows];
        } else {
          var arrayOfAttrObjects = [...this.state.savedRows];

          var _iterator2 = _createForOfIteratorHelper(newSelectedAttrs),
              _step2;

          try {
            var _loop = function _loop() {
              var myAttr = _step2.value;
              var found = arrayOfAttrObjects.find(el => el.attr === myAttr);

              if (found === undefined) {
                // The new attribute was not in the list of saved attributes.
                // Add it.
                arrayOfAttrObjects.push({
                  id: (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.generateUniqueId)(),
                  attr: myAttr,
                  val: '',
                  required: false,
                  namingAttr: false
                });
              }
            };

            for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
              _loop();
            } // Remove the newly unselected attribute(s).

          } catch (err) {
            _iterator2.e(err);
          } finally {
            _iterator2.f();
          }

          editableTableData = arrayOfAttrObjects.filter(datum => {
            var attrName = datum.attr;
            var found = newSelectedAttrs.find(attr => attr === attrName);
            return found !== undefined;
          }); // Sort the rows

          editableTableData.sort((a, b) => a.attr > b.attr ? 1 : -1);

          if (this.props.entryType == _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.ENTRY_TYPE.ou && namingRowID === -1) {
            // Organizational Unit
            var _iterator3 = _createForOfIteratorHelper(editableTableData),
                _step3;

            try {
              for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
                var _attr = _step3.value;

                if (_attr.attr === "ou") {
                  // OU naming attribute
                  namingRowID = _attr.id, namingAttrVal = editableTableData[0].attr + "=" + editableTableData[0].val;
                  break;
                }
              }
            } catch (err) {
              _iterator3.e(err);
            } finally {
              _iterator3.f();
            }
          }
        }
      } // Update the attributes to process.


      this.setState({
        editableTableData,
        rdn: editableTableData[0].attr,
        namingRowID,
        namingAttrVal
      });
    });

    _defineProperty(this, "enableNextStep", noEmptyValue => {
      this.setState({
        noEmptyValue
      });
    });

    _defineProperty(this, "setNamingRowID", namingRowID => {
      var namingAttrVal = "";

      var _iterator4 = _createForOfIteratorHelper(this.state.savedRows),
          _step4;

      try {
        for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
          var row = _step4.value;

          if (row.id === namingRowID) {
            namingAttrVal = row.attr + "=" + row.val;
            break;
          }
        }
      } catch (err) {
        _iterator4.e(err);
      } finally {
        _iterator4.f();
      }

      this.setState({
        namingRowID,
        namingAttrVal: namingAttrVal
      });
    });

    _defineProperty(this, "saveCurrentRows", (savedRows, namingID) => {
      this.setState({
        savedRows
      }, () => {
        // Update the naming information after the new rows have been saved.
        if (namingID != -1) {
          // The namingID is set to -1 if the row is not the naming one.
          this.setNamingRowID(namingID);
        }
      });
    });

    _defineProperty(this, "generateLdifData", () => {
      switch (this.props.entryType) {
        case _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.ENTRY_TYPE.user:
          this.generateLdifDataUser();
          break;

        case _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.ENTRY_TYPE.ou:
          this.generateLdifDataOu();
          break;

        case _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.ENTRY_TYPE.other:
          this.generateLdifDataOther();
          break;

        default:
          console.log("Unknown type of LDAP entry (".concat(this.props.entryType, ")"));
      }
    });

    _defineProperty(this, "generateLdifDataUser", () => {
      // ObjectClass 'Person' is required.
      var objectClassData = ['ObjectClass: top', 'ObjectClass: Person'];

      if (this.state.allAttributesSelected) {
        objectClassData.push('ObjectClass: OrganizationalPerson', 'ObjectClass: InetOrgPerson');
      }

      var valueData = [];

      var _iterator5 = _createForOfIteratorHelper(this.state.savedRows),
          _step5;

      try {
        for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
          var item = _step5.value;
          var attrName = item.attr;
          valueData.push("".concat(attrName, ": ").concat(item.val));

          if (objectClassData.length === 4) {
            // There will a maximum of 4 ObjectClasses.
            continue;
          } // TODO: Find a better logic!


          if (!objectClassData.includes('ObjectClass: InetOrgPerson') && _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.INET_ORG_ATTRS.includes(attrName)) {
            objectClassData.push('ObjectClass: InetOrgPerson');
          }

          if (!objectClassData.includes('ObjectClass: OrganizationalPerson') && _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.ORG_PERSON_ATTRS.includes(attrName)) {
            objectClassData.push('ObjectClass: OrganizationalPerson');
          }
        }
      } catch (err) {
        _iterator5.e(err);
      } finally {
        _iterator5.f();
      }

      var ldifArray = ["dn: ".concat(this.state.namingAttrVal, ",").concat(this.props.wizardEntryDn), ...objectClassData, ...valueData];
      this.setState({
        ldifArray
      });
    });

    _defineProperty(this, "generateLdifDataOu", () => {
      var objectClassData = ['ObjectClass: top', 'ObjectClass: organizationalUnit'];
      var valueData = [];
      var rdnValue = "";

      var _iterator6 = _createForOfIteratorHelper(this.state.savedRows),
          _step6;

      try {
        for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
          var item = _step6.value;
          var attrName = item.attr;
          valueData.push("".concat(attrName, ": ").concat(item.val));

          if (attrName == "ou") {
            rdnValue = item.val;
          }
        }
      } catch (err) {
        _iterator6.e(err);
      } finally {
        _iterator6.f();
      }

      var ldifArray = ["dn: ou=".concat(rdnValue, ",").concat(this.props.wizardEntryDn), ...objectClassData, ...valueData];
      this.setState({
        ldifArray
      });
    });

    this.attributeValidationRules = [{
      name: 'required',
      validator: value => value.trim() !== '',
      errorText: 'This field is required'
    }];
    this.state = {
      alertVariant: 'info',
      namingRowID: -1,
      namingAttrVal: '',
      ldifArray: [],
      savedRows: [],
      commandOutput: '',
      resultVariant: 'default',
      allAttributesSelected: false,
      stepIdReached: 1,
      itemCount: 0,
      page: 1,
      perPage: 10,
      columnsAttrs: [{
        title: 'Attribute Name',
        cellTransforms: [(0,_patternfly_react_table__WEBPACK_IMPORTED_MODULE_4__.headerCol)()]
      }, {
        title: 'From ObjectClass'
      }],
      rowsAttrs: [],
      pagedRowsAttrs: [],
      selectedAttributes: [],
      // Values
      noEmptyValue: false,
      columnsValues: ['Attribute', 'Value'],
      rowsValues: [],
      // Review step
      reviewValue: '',
      reviewInvalidText: 'Invalid LDIF',
      reviewIsValid: true,
      reviewValidated: 'default',
      editableTableData: [],
      namingAttr: '',
      adding: true
    };

    this.onNext = _ref => {
      var id = _ref.id;
      this.setState({
        stepIdReached: this.state.stepIdReached < id ? id : this.state.stepIdReached
      });

      if (id === 3) {
        // Update the values table.
        this.updateValuesTableRows();
      } else if (id === 4) {
        // Generate the LDIF data.
        this.generateLdifData();
      } else if (id === 5) {
        // Create the LDAP entry.
        var myLdifArray = this.state.ldifArray;
        (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.createLdapEntry)(this.props.editorLdapServer, myLdifArray, result => {
          this.setState({
            commandOutput: result.errorCode === 0 ? 'Successfully added entry!' : 'Failed to add entry, error: ' + result.errorCode,
            resultVariant: result.errorCode === 0 ? 'success' : 'danger',
            adding: false
          }, () => {
            this.props.onReload();
          }); // Update the wizard operation information.

          var myDn = myLdifArray[0].substring(4);
          var opInfo = {
            operationType: 'ADD',
            resultCode: result.errorCode,
            time: Date.now(),
            entryDn: myDn,
            relativeDn: this.state.namingAttrVal
          };
          this.props.setWizardOperationInfo(opInfo);
        });
      }
    };

    this.onBack = _ref2 => {
      var id = _ref2.id;

      if (id === 3) {
        // true ==> Do not check the attribute selection when navigating back.
        this.updateValuesTableRows(true);
      }
    }; // End constructor().

  }

  componentDidMount() {
    console.log('In GenericUpdate - componentDidMount()'); // TODO:
    // Use an ldapsearch request on the schema entry.
    // Check with RHDS Engineering ( dsconf? to retrieve the list of attrs for a given oc)
    // FIXME:
    // disableCheckbox doesn't exist for version 2020.06!
    // Need to upgrade...

    var attributesArray = [];
    var namingAttr = '';

    switch (this.props.entryType) {
      case _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.ENTRY_TYPE.user:
        this.requiredAttributes = ['cn', 'sn'];
        attributesArray.push({
          cells: ['cn', 'Person'],
          selected: true,
          isAttributeSelected: true,
          // disableCheckbox: true
          disableSelection: true
        });
        attributesArray.push({
          cells: ['sn', 'Person'],
          selected: true,
          isAttributeSelected: true,
          // disableCheckbox: true
          disableSelection: true
        });
        _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.PERSON_OPT_ATTRS.map(attr => {
          attributesArray.push({
            cells: [attr, 'Person']
          });
        });
        _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.ORG_PERSON_ATTRS.map(attr => {
          attributesArray.push({
            cells: [attr, 'OrganizationalPerson']
          });
        });
        _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.INET_ORG_ATTRS.map(attr => {
          attributesArray.push({
            cells: [attr, 'InetOrgPerson']
          });
        });
        break;

      case _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.ENTRY_TYPE.ou:
        this.requiredAttributes = ['ou'];
        attributesArray.push({
          cells: ['ou', 'OrganizationalUnit'],
          selected: true,
          isAttributeSelected: true,
          // disableCheckbox: true
          disableSelection: true,
          namingAttrVal: ""
        });
        _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.OU_OPT_ATTRS.map(attr => {
          attributesArray.push({
            cells: [attr, 'OrganizationalUnit']
          });
        });
        namingAttr = 'ou';
        break;

      case _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.ENTRY_TYPE.other:
        break;

      default:
        console.log("Unknown type of LDAP entry (".concat(this.props.entryType, ")"));
    }

    this.setState({
      selectedAttributes: [...this.requiredAttributes],
      itemCount: attributesArray.length,
      rowsAttrs: attributesArray,
      pagedRowsAttrs: attributesArray.slice(0, this.state.perPage),
      namingAttr: namingAttr
    });
  }

  getAttributesToShow(page, perPage) {
    var start = (page - 1) * perPage;
    var end = page * perPage;
    var newRows = this.state.rowsAttrs.slice(start, end);
    return newRows;
  }

  render() {
    var _this$state = this.state,
        commandOutput = _this$state.commandOutput,
        itemCount = _this$state.itemCount,
        page = _this$state.page,
        perPage = _this$state.perPage,
        columnsAttrs = _this$state.columnsAttrs,
        pagedRowsAttrs = _this$state.pagedRowsAttrs,
        ldifArray = _this$state.ldifArray,
        noEmptyValue = _this$state.noEmptyValue,
        alertVariant = _this$state.alertVariant,
        namingAttrVal = _this$state.namingAttrVal,
        stepIdReached = _this$state.stepIdReached,
        resultVariant = _this$state.resultVariant;
    var attributesStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextVariants.h3
    }, "Select Entry Attributes")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Pagination, {
      itemCount: itemCount,
      page: page,
      perPage: perPage,
      onSetPage: this.onSetPage,
      widgetId: "pagination-options-menu-add-entry",
      onPerPageSelect: this.onPerPageSelect,
      isCompact: true
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.Table, {
      cells: columnsAttrs,
      rows: pagedRowsAttrs,
      onSelect: this.onSelect,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableVariant.compact,
      "aria-label": "Pagination Attributes"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__.TableBody, null))); // const myTitle = (namingAttrVal === '' || namingAttrVal.split('=')[1] === '')

    var rdnValue = namingAttrVal.split('=')[1];
    var myTitle = namingAttrVal === '' || rdnValue === '' ? 'Invalid RDN - Empty Value!' : 'DN ( Distinguished Name )';
    var missingRdn = rdnValue === '' || rdnValue === undefined;
    var valuesStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Alert, {
      variant: alertVariant,
      isInline: true,
      title: myTitle
    }, !missingRdn && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, "The full DN of the entry will be: ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, namingAttrVal, ",", this.props.wizardEntryDn))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_lib_editableTable_jsx__WEBPACK_IMPORTED_MODULE_1__["default"], {
      editableTableData: this.state.editableTableData,
      isAttributeSingleValued: this.isAttributeSingleValued,
      isAttributeRequired: this.isAttributeRequired,
      enableNextStep: this.enableNextStep,
      setNamingRowID: this.setNamingRowID,
      namingRowID: this.state.namingRowID,
      saveCurrentRows: this.saveCurrentRows,
      namingAttr: this.state.namingAttr
    }));
    var ldifListItems = ldifArray.map((line, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.SimpleListItem, {
      key: index,
      isCurrent: line.startsWith('dn: ')
    }, line));
    var creationStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Alert, {
      variant: "info",
      isInline: true,
      title: "LDIF Content for Entry Creation"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Card, {
      isSelectable: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.CardBody, null, ldifListItems.length > 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.SimpleList, {
      "aria-label": "LDIF data"
    }, ldifListItems))));
    var nb = -1;
    var ldifLines = ldifArray.map(line => {
      nb++;
      return {
        data: line,
        id: nb
      };
    });
    var reviewStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Alert, {
      variant: resultVariant,
      isInline: true,
      title: "Result for Entry Creation"
    }, commandOutput, this.state.adding && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.Spinner, {
      className: "ds-left-margin",
      size: "md"
    }), "\xA0\xA0Adding entry ...")), resultVariant === 'danger' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Card, {
      isSelectable: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.CardTitle, null, "LDIF Data"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.CardBody, null, ldifLines.map(line => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("h6", {
      key: line.id
    }, line.data)))));
    var creationStepName = this.props.entryType === _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.ENTRY_TYPE.user ? 'Create User' : this.props.entryType === _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.ENTRY_TYPE.ou ? 'Create Organizational Unit' : 'Create LDAP Entry';
    var addSteps = [{
      id: 1,
      name: this.props.firstStep[0].name,
      component: this.props.firstStep[0].component,
      canJumpTo: stepIdReached >= 1 && stepIdReached < 5,
      hideBackButton: true
    }, {
      id: 2,
      name: 'Select Attributes',
      component: attributesStep,
      canJumpTo: stepIdReached >= 2 && stepIdReached < 5
    }, {
      id: 3,
      name: 'Set Values',
      component: valuesStep,
      canJumpTo: stepIdReached >= 3 && stepIdReached < 5,
      enableNext: noEmptyValue
    }, {
      id: 4,
      name: creationStepName,
      component: creationStep,
      nextButtonText: 'Create',
      canJumpTo: stepIdReached >= 4 && stepIdReached < 5
    }, {
      id: 5,
      name: 'Review Result',
      component: reviewStep,
      nextButtonText: 'Finish',
      canJumpTo: stepIdReached >= 5 && stepIdReached < 5,
      hideBackButton: true,
      enableNext: !this.state.adding
    }]; // TODO - Update this for groups, roles, cos, etc

    var wizardTitle = this.props.entryType === _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.ENTRY_TYPE.user ? 'Add A New User' : this.props.entryType === _lib_constants_jsx__WEBPACK_IMPORTED_MODULE_3__.ENTRY_TYPE.ou ? 'Add An Organizational Unit' : 'Add A New LDAP Entry';
    var desc = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, "Parent DN: \xA0\xA0", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong", null, this.props.wizardEntryDn));
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Wizard, {
      isOpen: this.props.isWizardOpen,
      onClose: this.props.toggleOpenWizard,
      onNext: this.onNext,
      onBack: this.onBack,
      title: wizardTitle,
      description: desc,
      steps: addSteps
    });
  }

}

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (GenericUpdate);

/***/ }),

/***/ "./src/lib/ldap_editor/wizards/operations/renameEntry.jsx":
/*!****************************************************************!*\
  !*** ./src/lib/ldap_editor/wizards/operations/renameEntry.jsx ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Label/Label.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardBody.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/LabelGroup/LabelGroup.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleListItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Alert/Alert.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/Card.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleList.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardTitle.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Wizard/Wizard.js");
/* harmony import */ var _lib_ldapNavigator_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../lib/ldapNavigator.jsx */ "./src/lib/ldap_editor/lib/ldapNavigator.jsx");
/* harmony import */ var _lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../lib/utils.jsx */ "./src/lib/ldap_editor/lib/utils.jsx");
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }






class RenameEntry extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      stepIdReached: 1,
      baseDn: "",
      isTreeLoading: false,
      searching: false,
      renaming: true,
      currRdnAttr: "",
      currRdnVal: "",
      currRdnSuffix: "",
      deleteOldRdn: true,
      newRdnAttr: "",
      newRdnVal: "",
      newRdnSuffix: "",
      nextEnabled: false,
      allowedAttrs: [],
      ldifArray: [],
      resultVariant: "success",
      commandOutput: ""
    };

    this.onNext = _ref => {
      var id = _ref.id;
      this.setState({
        stepIdReached: this.state.stepIdReached < id ? id : this.state.stepIdReached
      });

      if (id === 4) {
        // Generate LDIF changes to review
        this.generateLdifData();
      } else if (id === 5) {
        // Do the modrdn
        var params = {
          serverId: this.props.editorLdapServer
        };
        (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.modifyLdapEntry)(params, this.state.ldifArray, result => {
          var opInfo = {
            operationType: 'MODRDN',
            resultCode: result.errorCode,
            time: Date.now()
          };
          this.props.setWizardOperationInfo(opInfo);
          this.props.onModrdnReload();

          if (result.errorCode === 0) {
            result.output = "Successfully renamed entry";
          }

          this.setState({
            commandOutput: result.errorCode === 0 ? 'Successfully renamed entry!' : 'Failed to rename entry, error: ' + result.errorCode,
            resultVariant: result.errorCode === 0 ? 'success' : 'danger',
            renaming: false
          });
        });
      }
    };

    this.handleBaseDnSelection = treeViewItem => {
      if (treeViewItem.dn.toLowerCase().includes(this.props.wizardEntryDn.toLowerCase())) {
        this.props.addNotification("warning", "Can not select a subtree that is the current entry, or a child of the current entry.");
        return;
      }

      this.setState({
        newRdnSuffix: treeViewItem.dn
      });
    };

    this.showTreeLoadingState = isTreeLoading => {
      this.setState({
        isTreeLoading,
        searching: isTreeLoading ? true : false
      });
    };

    this.handleRdnAttrChange = attr => {
      this.setState({
        newRdnAttr: attr
      });
    };

    this.handleRdnValChange = val => {
      this.setState({
        newRdnVal: val
      });
    };

    this.handleDelRdnChange = checked => {
      this.setState({
        deleteOldRdn: checked
      });
    };

    this.generateLdifData = this.generateLdifData.bind(this);
  }

  componentDidMount() {
    (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.getBaseLevelEntryAttributes)(this.props.editorLdapServer, this.props.wizardEntryDn, entryDetails => {
      var objectclasses = [];
      var allowedAttrs = [];
      var rdnInfo = (0,_lib_utils_jsx__WEBPACK_IMPORTED_MODULE_2__.getRdnInfo)(this.props.wizardEntryDn);
      entryDetails.filter(data => data.attribute + data.value !== '' && // Filter out empty lines
      data.attribute !== '???: ') // and data for empty suffix(es) and in case of failure.
      .map((line, index) => {
        var attr = line.attribute;
        var attrLowerCase = attr.trim().toLowerCase();
        var val = line.value.substring(1).trim().toLowerCase();

        if (attrLowerCase === "objectclass") {
          objectclasses.push(val);
        }
      }); // Gather all the allowed attributes for the rdn attr

      for (var _i = 0, _objectclasses = objectclasses; _i < _objectclasses.length; _i++) {
        var entryOC = _objectclasses[_i];

        var _iterator = _createForOfIteratorHelper(this.props.allObjectclasses),
            _step;

        try {
          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            var oc = _step.value;

            if (oc.name.toLowerCase() === entryOC) {
              var _iterator2 = _createForOfIteratorHelper(oc.required),
                  _step2;

              try {
                for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
                  var attr = _step2.value;

                  if (allowedAttrs.indexOf(attr) === -1) {
                    allowedAttrs.push(attr);
                  }
                }
              } catch (err) {
                _iterator2.e(err);
              } finally {
                _iterator2.f();
              }

              var _iterator3 = _createForOfIteratorHelper(oc.optional),
                  _step3;

              try {
                for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
                  var _attr = _step3.value;

                  if (allowedAttrs.indexOf(_attr) === -1) {
                    allowedAttrs.push(_attr);
                  }
                }
              } catch (err) {
                _iterator3.e(err);
              } finally {
                _iterator3.f();
              }
            }
          }
        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }
      }

      var rdnSuffix = this.props.wizardEntryDn.replace(rdnInfo.rdnAttr + "=" + rdnInfo.rdnVal + ",", "").trim();
      this.setState({
        allowedAttrs,
        currRdnAttr: rdnInfo.rdnAttr,
        currRdnVal: rdnInfo.rdnVal,
        currRdnSuffix: rdnSuffix,
        newRdnAttr: rdnInfo.rdnAttr,
        newRdnVal: rdnInfo.rdnVal,
        newRdnSuffix: rdnSuffix,
        baseDn: rdnSuffix
      });
    });
  }

  generateLdifData() {
    var ldifArray = [];
    ldifArray.push("dn: ".concat(this.props.wizardEntryDn)); // DN line.

    ldifArray.push('changetype: modrdn');
    ldifArray.push("newrdn: ".concat(this.state.newRdnAttr, "=").concat(this.state.newRdnVal));

    if (this.state.deleteOldRdn) {
      ldifArray.push("deleteoldrdn: 1");
    } else {
      ldifArray.push("deleteoldrdn: 0");
    }

    if (this.state.newRdnSuffix !== this.state.currRdnSuffix) {
      ldifArray.push("newsuperior: ".concat(this.state.newRdnSuffix));
    }

    this.setState({
      ldifArray
    });
  }

  render() {
    var _this$state = this.state,
        allowedAttrs = _this$state.allowedAttrs,
        stepIdReached = _this$state.stepIdReached,
        nextEnabled = _this$state.nextEnabled,
        newRdnAttr = _this$state.newRdnAttr,
        newRdnVal = _this$state.newRdnVal,
        newRdnSuffix = _this$state.newRdnSuffix,
        ldifArray = _this$state.ldifArray,
        resultVariant = _this$state.resultVariant,
        commandOutput = _this$state.commandOutput,
        currRdnAttr = _this$state.currRdnAttr,
        currRdnVal = _this$state.currRdnVal,
        currRdnSuffix = _this$state.currRdnSuffix;
    var attrValStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextVariants.h2
    }, "Select The Naming Attribute And Value")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Naming Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.FormSelect, {
      id: "naming-attr",
      value: newRdnAttr,
      onChange: (str, e) => {
        this.handleRdnAttrChange(str);
      },
      "aria-label": "FormSelect Input"
    }, allowedAttrs.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.FormSelectOption, {
      key: attr,
      value: attr,
      label: attr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "New Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextInput, {
      value: newRdnVal,
      type: "text",
      id: "naming-val",
      "aria-describedby": "horizontal-form-name-helper",
      name: "rdnVal",
      onChange: (str, e) => {
        this.handleRdnValChange(str);
      },
      validated: newRdnVal === "" ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.ValidatedOptions["default"]
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      title: "Removes the old RDN attribute from the entry, otherwise this attribute remains in the entry and references the old RDN."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Checkbox, {
      className: "ds-margin-top-lg",
      id: "deleteoldrdn",
      isChecked: this.state.deleteOldRdn,
      onChange: this.handleDelRdnChange,
      label: "Delete the old RDN attribute from the entry"
    }))));
    var locationStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextVariants.h2
    }, "Select The Entry Location"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextVariants.h5,
      className: "ds-indent ds-margin-top-lg",
      title: "The superior DN where the entry will be located under."
    }, "Parent Subtree \xA0\xA0", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Label, {
      color: "blue"
    }, newRdnSuffix))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.CardBody, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_lib_ldapNavigator_jsx__WEBPACK_IMPORTED_MODULE_1__["default"], {
      treeItems: [...this.props.treeViewRootSuffixes],
      editorLdapServer: this.props.editorLdapServer,
      handleNodeOnClick: this.handleBaseDnSelection,
      showTreeLoadingState: this.showTreeLoadingState
    }))); // Build the New RDN Labels

    var intactRdn = newRdnAttr + "=" + newRdnVal;
    var rdnAttrLabel = newRdnAttr !== currRdnAttr || newRdnVal !== currRdnVal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Label, {
      color: "blue"
    }, newRdnAttr, "=", newRdnVal) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-lower-field"
    }, intactRdn);
    var rdnSuffixLabel = newRdnSuffix !== currRdnSuffix ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Label, {
      color: "blue"
    }, newRdnSuffix) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-lower-field"
    }, newRdnSuffix); // Build the Current RDN labels

    var intactCurrRdn = currRdnAttr + "=" + currRdnVal;
    var rdnCurrAttrLabel = currRdnAttr !== newRdnAttr || newRdnVal !== currRdnVal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Label, {
      variant: "outline",
      color: "grey"
    }, currRdnAttr, "=", currRdnVal) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-lower-field"
    }, intactCurrRdn);
    var rdnCurrSuffixLabel = newRdnSuffix !== currRdnSuffix ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Label, {
      variant: "outline",
      color: "grey"
    }, currRdnSuffix) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-lower-field"
    }, currRdnSuffix);
    var reviewChangesStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextVariants.h2
    }, "Review Changes")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2,
      className: "ds-label"
    }, "Original DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.LabelGroup, null, rdnCurrAttrLabel, ",", rdnCurrSuffixLabel))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2,
      className: "ds-label"
    }, "New DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.LabelGroup, null, rdnAttrLabel, ",", rdnSuffixLabel))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: !this.state.deleteOldRdn ? "ds-hidden" : "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      title: "This attribute will be removed from the entry so that there is no trace of the old RDN in the entry."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2,
      className: "ds-label"
    }, "Remove Old Rdn"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Label, {
      color: "orange"
    }, currRdnAttr, ": ", currRdnVal)))));
    var ldifListItems = ldifArray.map((line, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SimpleListItem, {
      key: index,
      isCurrent: line.startsWith('dn: ')
    }, line));
    var ldifStatementsStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-addons-bottom-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Alert, {
      variant: "info",
      isInline: true,
      title: "LDIF Statements"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.Card, {
      isSelectable: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.CardBody, null, ldifListItems.length > 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.SimpleList, {
      "aria-label": "LDIF data modrdn"
    }, ldifListItems))));
    var nb = -1;
    var ldifLines = ldifArray.map(line => {
      nb++;
      return {
        data: line,
        id: nb
      };
    });
    var reviewStep = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-addons-bottom-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Alert, {
      variant: resultVariant,
      isInline: true,
      title: "Result for Entry Modification"
    }, commandOutput, this.state.renaming && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Spinner, {
      className: "ds-left-margin",
      size: "md"
    }), "\xA0\xA0Renaming entry ..."))), resultVariant === 'danger' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.Card, {
      isSelectable: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.CardTitle, null, "LDIF Data"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.CardBody, null, ldifLines.map(line => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("h6", {
      key: line.id
    }, line.data)))));
    var renameSteps = [{
      id: 1,
      name: 'Set Naming Attribute',
      component: attrValStep,
      canJumpTo: stepIdReached < 5,
      hideBackButton: true,
      enableNext: newRdnVal !== ""
    }, {
      id: 2,
      name: 'Set Entry Location',
      component: locationStep,
      canJumpTo: stepIdReached < 5 && newRdnVal !== "",
      enableNext: newRdnVal !== "" && (newRdnVal !== currRdnVal || newRdnAttr !== currRdnAttr || newRdnSuffix !== currRdnSuffix)
    }, {
      id: 3,
      name: 'Review Changes',
      component: reviewChangesStep,
      canJumpTo: stepIdReached >= 3 && stepIdReached < 5
    }, {
      id: 4,
      name: 'LDIF Statements',
      component: ldifStatementsStep,
      nextButtonText: 'Change Entry Name',
      canJumpTo: stepIdReached > +4 && stepIdReached < 5
    }, {
      id: 5,
      name: 'Review Result',
      component: reviewStep,
      nextButtonText: 'Finish',
      canJumpTo: stepIdReached > 5,
      hideBackButton: true,
      enableNext: !this.state.renaming
    }];
    var desc = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, "Old DN: \xA0\xA0\xA0", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, currRdnAttr, "=", currRdnVal, ",", currRdnSuffix), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("br", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("br", null), "New DN: \xA0\xA0", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, newRdnAttr, "=", newRdnVal, ",", newRdnSuffix));
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.Wizard, {
      isOpen: this.props.isWizardOpen,
      onClose: this.props.toggleOpenWizard,
      onNext: this.onNext,
      title: "Rename LDAP Entry",
      description: desc,
      steps: renameSteps
    });
  }

}

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RenameEntry);

/***/ }),

/***/ "./src/lib/monitor/accesslog.jsx":
/*!***************************************!*\
  !*** ./src/lib/monitor/accesslog.jsx ***!
  \***************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "AccessLogMonitor": () => (/* binding */ AccessLogMonitor),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_14__);
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextArea/TextArea.js");
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
/* harmony import */ var _fortawesome_fontawesome_svg_core_styles_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core/styles.css */ "./node_modules/@fortawesome/fontawesome-svg-core/styles.css");







class AccessLogMonitor extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      accesslogData: "",
      accessReloading: false,
      accesslog_cont_refresh: "",
      accessRefreshing: false,
      accessLines: "50"
    };
    this.refreshAccessLog = this.refreshAccessLog.bind(this);
    this.handleAccessChange = this.handleAccessChange.bind(this);
    this.accessRefreshCont = this.accessRefreshCont.bind(this);
  }

  componentDidUpdate() {
    // Set the textarea to be scrolled down to the bottom
    var textarea = document.getElementById('accesslog-area');
    textarea.scrollTop = textarea.scrollHeight;
  }

  componentDidMount() {
    this.props.enableTree();
    this.refreshAccessLog();
  }

  componentWillUnmount() {
    // Stop the continuous log refresh interval
    clearInterval(this.state.accesslog_cont_refresh);
  }

  accessRefreshCont(e) {
    if (e.target.checked) {
      this.state.accesslog_cont_refresh = setInterval(this.refreshAccessLog, 2000);
    } else {
      clearInterval(this.state.accesslog_cont_refresh);
    }

    this.setState({
      accessRefreshing: e.target.checked
    });
  }

  handleAccessChange(e) {
    var value = e.target.value;
    this.setState(() => ({
      accessLines: value
    }), this.refreshAccessLog);
  }

  refreshAccessLog() {
    this.setState({
      accessReloading: true
    });
    var cmd = ["tail", "-" + this.state.accessLines, this.props.logLocation];
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.setState(() => ({
        accesslogData: content,
        accessReloading: false
      }));
    }).fail(() => {
      // Notification of failure (could only be server down)
      this.setState({
        accessReloading: false
      });
    });
  }

  render() {
    var spinner = "";

    if (this.state.accessReloading) {
      spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Spinner, {
        isSVG: true,
        size: "sm"
      }), "Reloading access log...");
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      id: "monitor-log-access-page"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h3
    }, "Access Log ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__.FontAwesomeIcon, {
      size: "lg",
      className: "ds-left-margin ds-refresh",
      icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_9__.faSyncAlt,
      title: "Refresh access log",
      onClick: this.refreshAccessLog
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 9,
      className: "ds-float-left"
    }, spinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      className: "ds-margin-top-lg ds-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormSelect, {
      id: "accessLines",
      value: this.state.accessLines,
      onChange: (value, event) => {
        this.handleAccessChange(event);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "50",
      value: "50",
      label: "50"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "100",
      value: "100",
      label: "100"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "200",
      value: "200",
      label: "200"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "300",
      value: "300",
      label: "300"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "400",
      value: "400",
      label: "400"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "500",
      value: "500",
      label: "500"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "1000",
      value: "1000",
      label: "1000"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "2000",
      value: "2000",
      label: "2000"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "5000",
      value: "5000",
      label: "5000"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "10000",
      value: "10000",
      label: "10000"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "50000",
      value: "50000",
      label: "50000"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-float-right"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "accessRefreshing",
      isChecked: this.state.accessRefreshing,
      onChange: (checked, e) => {
        this.accessRefreshCont(e);
      },
      label: "Continuously Refresh"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextArea, {
      id: "accesslog-area",
      resizeOrientation: "vertical",
      className: "ds-logarea ds-margin-top-lg",
      value: this.state.accesslogData,
      "aria-label": "text area example"
    })));
  }

} // Props and defaultProps

AccessLogMonitor.propTypes = {
  logLocation: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string),
  enableTree: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func)
};
AccessLogMonitor.defaultProps = {
  logLocation: ""
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AccessLogMonitor);

/***/ }),

/***/ "./src/lib/monitor/auditfaillog.jsx":
/*!******************************************!*\
  !*** ./src/lib/monitor/auditfaillog.jsx ***!
  \******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "AuditFailLogMonitor": () => (/* binding */ AuditFailLogMonitor),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_14__);
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextArea/TextArea.js");
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
/* harmony import */ var _fortawesome_fontawesome_svg_core_styles_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core/styles.css */ "./node_modules/@fortawesome/fontawesome-svg-core/styles.css");







class AuditFailLogMonitor extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      auditfaillogData: "",
      auditfailReloading: false,
      auditfaillog_cont_refresh: "",
      auditfailRefreshing: false,
      auditfailLines: "50"
    };
    this.refreshAuditFailLog = this.refreshAuditFailLog.bind(this);
    this.handleAuditFailChange = this.handleAuditFailChange.bind(this);
    this.auditFailRefreshCont = this.auditFailRefreshCont.bind(this);
  }

  componentWillUnmount() {
    // Stop the continuous log refresh interval
    clearInterval(this.state.auditfaillog_cont_refresh);
  }

  componentDidUpdate() {
    // Set the textarea to be scrolled down to the bottom
    var textarea = document.getElementById('auditfaillog-area');
    textarea.scrollTop = textarea.scrollHeight;
  }

  componentDidMount() {
    this.props.enableTree();
    this.refreshAuditFailLog();
  }

  refreshAuditFailLog() {
    this.setState({
      auditfailReloading: true
    });
    var cmd = ["tail", "-" + this.state.auditfailLines, this.props.logLocation];
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.setState(() => ({
        auditfaillogData: content,
        auditfailReloading: false
      }));
    });
  }

  auditFailRefreshCont(e) {
    if (e.target.checked) {
      this.state.auditfaillog_cont_refresh = setInterval(this.refreshAuditFailLog, 2000);
    } else {
      clearInterval(this.state.auditfaillog_cont_refresh);
    }

    this.setState({
      auditfailRefreshing: e.target.checked
    });
  }

  handleAuditFailChange(e) {
    var value = e.target.value;
    this.setState(() => ({
      auditfailLines: value
    }), this.refreshAuditFailLog);
  }

  render() {
    var spinner = "";

    if (this.state.auditfailReloading) {
      spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Spinner, {
        size: "sm"
      }), "Reloading audit failure log...");
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      id: "monitor-log-auditfail-page"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h3
    }, "Audit Failure Log ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__.FontAwesomeIcon, {
      size: "lg",
      className: "ds-left-margin ds-refresh",
      icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_9__.faSyncAlt,
      title: "Refresh audit failure log",
      onClick: this.refreshAuditFailLog
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 9,
      className: "ds-float-left"
    }, spinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      className: "ds-margin-top-lg ds-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormSelect, {
      id: "auditfailLines",
      value: this.state.auditfailLines,
      onChange: (value, event) => {
        this.handleAuditFailChange(event);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "50",
      value: "50",
      label: "50"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "100",
      value: "100",
      label: "100"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "200",
      value: "200",
      label: "200"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "300",
      value: "300",
      label: "300"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "400",
      value: "400",
      label: "400"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "500",
      value: "500",
      label: "500"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "1000",
      value: "1000",
      label: "1000"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "2000",
      value: "2000",
      label: "2000"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "5000",
      value: "5000",
      label: "5000"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "10000",
      value: "10000",
      label: "10000"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "50000",
      value: "50000",
      label: "50000"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-float-right"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "auditfailRefreshing",
      isChecked: this.state.auditfailRefreshing,
      onChange: (checked, e) => {
        this.auditFailRefreshCont(e);
      },
      label: "Continuously Refresh"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextArea, {
      id: "auditfaillog-area",
      resizeOrientation: "vertical",
      className: "ds-logarea ds-margin-top-lg",
      value: this.state.auditfaillogData,
      "aria-label": "text area example"
    })));
  }

} // Props and defaultProps

AuditFailLogMonitor.propTypes = {
  logLocation: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string),
  enableTree: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func)
};
AuditFailLogMonitor.defaultProps = {
  logLocation: ""
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AuditFailLogMonitor);

/***/ }),

/***/ "./src/lib/monitor/auditlog.jsx":
/*!**************************************!*\
  !*** ./src/lib/monitor/auditlog.jsx ***!
  \**************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "AuditLogMonitor": () => (/* binding */ AuditLogMonitor),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_14__);
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextArea/TextArea.js");
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
/* harmony import */ var _fortawesome_fontawesome_svg_core_styles_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core/styles.css */ "./node_modules/@fortawesome/fontawesome-svg-core/styles.css");







class AuditLogMonitor extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      auditlogData: "",
      auditReloading: false,
      auditlog_cont_refresh: "",
      auditRefreshing: false,
      auditLines: "50"
    };
    this.refreshAuditLog = this.refreshAuditLog.bind(this);
    this.handleAuditChange = this.handleAuditChange.bind(this);
    this.auditRefreshCont = this.auditRefreshCont.bind(this);
  }

  componentWillUnmount() {
    // Stop the continuous log refresh interval
    clearInterval(this.state.auditlog_cont_refresh);
  }

  componentDidUpdate() {
    // Set the textarea to be scrolled down to the bottom
    var textarea = document.getElementById('auditlog-area');
    textarea.scrollTop = textarea.scrollHeight;
  }

  componentDidMount() {
    this.props.enableTree();
    this.refreshAuditLog();
  }

  refreshAuditLog() {
    this.setState({
      auditReloading: true
    });
    var cmd = ["tail", "-" + this.state.auditLines, this.props.logLocation];
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.setState(() => ({
        auditlogData: content,
        auditReloading: false
      }));
    });
  }

  auditRefreshCont(e) {
    if (e.target.checked) {
      this.state.auditlog_cont_refresh = setInterval(this.refreshAuditLog, 2000);
    } else {
      clearInterval(this.state.auditlog_cont_refresh);
    }

    this.setState({
      auditRefreshing: e.target.checked
    });
  }

  handleAuditChange(e) {
    var value = e.target.value;
    this.setState(() => ({
      auditLines: value
    }), this.refreshAuditLog);
  }

  render() {
    var spinner = "";

    if (this.state.auditReloading) {
      spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Spinner, {
        size: "sm"
      }), "Reloading audit log...");
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      id: "monitor-log-audit-page"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h3
    }, "Audit Log ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__.FontAwesomeIcon, {
      size: "lg",
      className: "ds-left-margin ds-refresh",
      icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_9__.faSyncAlt,
      title: "Refresh audit log",
      onClick: this.refreshAuditLog
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 9,
      className: "ds-float-left"
    }, spinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      className: "ds-margin-top-lg ds-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormSelect, {
      id: "accessLines",
      value: this.state.auditLines,
      onChange: (value, event) => {
        this.handleAuditChange(event);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "50",
      value: "50",
      label: "50"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "100",
      value: "100",
      label: "100"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "200",
      value: "200",
      label: "200"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "300",
      value: "300",
      label: "300"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "400",
      value: "400",
      label: "400"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "500",
      value: "500",
      label: "500"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "1000",
      value: "1000",
      label: "1000"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "2000",
      value: "2000",
      label: "2000"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "5000",
      value: "5000",
      label: "5000"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "10000",
      value: "10000",
      label: "10000"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "50000",
      value: "50000",
      label: "50000"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-float-right"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "auditRefreshing",
      isChecked: this.state.auditRefreshing,
      onChange: (checked, e) => {
        this.auditRefreshCont(e);
      },
      label: "Continuously Refresh"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextArea, {
      id: "auditlog-area",
      resizeOrientation: "vertical",
      className: "ds-logarea ds-margin-top-lg",
      value: this.state.auditlogData,
      "aria-label": "text area example"
    })));
  }

} // Props and defaultProps

AuditLogMonitor.propTypes = {
  logLocation: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string),
  enableTree: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func)
};
AuditLogMonitor.defaultProps = {
  logLocation: ""
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AuditLogMonitor);

/***/ }),

/***/ "./src/lib/monitor/chainingMonitor.jsx":
/*!*********************************************!*\
  !*** ./src/lib/monitor/chainingMonitor.jsx ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ChainingMonitor": () => (/* binding */ ChainingMonitor),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
/* harmony import */ var _fortawesome_fontawesome_svg_core_styles_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core/styles.css */ "./node_modules/@fortawesome/fontawesome-svg-core/styles.css");






class ChainingMonitor extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  componentDidMount() {
    this.props.enableTree();
  }

  render() {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      id: "monitor-server-page"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Form, {
      isHorizontal: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextVariants.h2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__.FontAwesomeIcon, {
      size: "sm",
      icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_6__.faLink
    }), " ", this.props.suffix, " (", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, this.props.bename), ") ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_1__.FontAwesomeIcon, {
      className: "ds-left-margin ds-refresh",
      icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_6__.faSyncAlt,
      title: "Refresh chaining monitor",
      onClick: () => this.props.reload(this.props.suffix)
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, "Add Operations"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, this.props.data.nsaddcount)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, "Delete Operations"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, this.props.data.nsdeletecount))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, "Modify Operations"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, this.props.data.nsmodifycount)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, "ModRDN Operations"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, this.props.data.nsrenamecount))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, "Base Searches"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, this.props.data.nssearchbasecount)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, "One-Level Searches"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, this.props.data.nssearchonelevelcount))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, "Subtree Searches"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, this.props.data.nssearchsubtreecount)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, "Abandon Operations"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, this.props.data.nsabandoncount))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, "Bind Operations"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, this.props.data.nsbindcount)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, "Unbind Operations"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, this.props.data.nsunbindcount))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, "Compare Operations"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, this.props.data.nscomparecount)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, "Outgoing Connections"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, this.props.data.nsopenopconnectioncount))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, "Outgoing Bind Connections"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, this.props.data.nsopenbindconnectioncount)))));
  }

}
ChainingMonitor.propTypes = {
  suffix: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
  bename: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
  data: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
  enableTree: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func)
};
ChainingMonitor.defaultProps = {
  suffix: "",
  bename: "",
  data: {}
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ChainingMonitor);

/***/ }),

/***/ "./src/lib/monitor/dbMonitor.jsx":
/*!***************************************!*\
  !*** ./src/lib/monitor/dbMonitor.jsx ***!
  \***************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DatabaseMonitor": () => (/* binding */ DatabaseMonitor),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_19__);
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/Card.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardBody.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-charts */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/ChartTheme.js");
/* harmony import */ var _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-charts */ "./node_modules/@patternfly/react-charts/dist/esm/components/Chart/Chart.js");
/* harmony import */ var _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-charts */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartVoronoiContainer/ChartVoronoiContainer.js");
/* harmony import */ var _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-charts */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartAxis/ChartAxis.js");
/* harmony import */ var _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-charts */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartGroup/ChartGroup.js");
/* harmony import */ var _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-charts */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartArea/ChartArea.js");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");






class DatabaseMonitor extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      activeTabKey: 0,
      data: {},
      loading: true,
      // refresh charts
      cache_refresh: "",
      count: 10,
      ndnCount: 5,
      dbCacheList: [],
      ndnCacheList: [],
      ndnCacheUtilList: []
    }; // Toggle currently active tab

    this.handleNavSelect = (event, tabIndex) => {
      this.setState({
        activeTabKey: tabIndex
      });
    };

    this.startCacheRefresh = this.startCacheRefresh.bind(this);
    this.refreshCache = this.refreshCache.bind(this);
  }

  componentDidMount() {
    this.resetChartData();
    this.refreshCache();
    this.startCacheRefresh();
    this.props.enableTree();
  }

  componentWillUnmount() {
    this.stopCacheRefresh();
  }

  resetChartData() {
    this.setState({
      data: {
        dbcachehitratio: [0],
        dbcachetries: [0],
        dbcachehits: [0],
        dbcachepagein: [0],
        dbcachepageout: [0],
        dbcacheroevict: [0],
        dbcacherwevict: [0],
        normalizeddncachehitratio: [0],
        maxnormalizeddncachesize: [0],
        currentnormalizeddncachesize: [0],
        normalizeddncachetries: [0],
        normalizeddncachehits: [0],
        normalizeddncacheevictions: [0],
        currentnormalizeddncachecount: [0],
        normalizeddncachethreadsize: [0],
        normalizeddncachethreadslots: [0]
      },
      dbCacheList: [{
        name: "",
        x: "1",
        y: 0
      }, {
        name: "",
        x: "2",
        y: 0
      }, {
        name: "",
        x: "3",
        y: 0
      }, {
        name: "",
        x: "4",
        y: 0
      }, {
        name: "",
        x: "5",
        y: 0
      }, {
        name: "",
        x: "6",
        y: 0
      }, {
        name: "",
        x: "7",
        y: 0
      }, {
        name: "",
        x: "8",
        y: 0
      }, {
        name: "",
        x: "9",
        y: 0
      }, {
        name: "",
        x: "10",
        y: 0
      }],
      ndnCacheList: [{
        name: "",
        x: "1",
        y: 0
      }, {
        name: "",
        x: "2",
        y: 0
      }, {
        name: "",
        x: "3",
        y: 0
      }, {
        name: "",
        x: "4",
        y: 0
      }, {
        name: "",
        x: "5",
        y: 0
      }],
      ndnCacheUtilList: [{
        name: "",
        x: "1",
        y: 0
      }, {
        name: "",
        x: "2",
        y: 0
      }, {
        name: "",
        x: "3",
        y: 0
      }, {
        name: "",
        x: "4",
        y: 0
      }, {
        name: "",
        x: "5",
        y: 0
      }]
    });
  }

  refreshCache() {
    // Search for db cache stat and update state
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "ldbm"];
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var count = this.state.count + 1;
      var ndnCount = this.state.ndnCount + 1;

      if (count > 100) {
        // Keep progress count in check
        count = 1;
      } // Build up the DB Cache chart data


      var dbratio = config.attrs.dbcachehitratio[0];
      var chart_data = this.state.dbCacheList;
      chart_data.shift();
      chart_data.push({
        name: "Cache Hit Ratio",
        x: count.toString(),
        y: parseInt(dbratio)
      }); // Build up the NDN Cache chart data

      var ndnratio = config.attrs.normalizeddncachehitratio[0];
      var ndn_chart_data = this.state.ndnCacheList;
      ndn_chart_data.shift();
      ndn_chart_data.push({
        name: "Cache Hit Ratio",
        x: count.toString(),
        y: parseInt(ndnratio)
      }); // Build up the DB Cache Util chart data

      var ndn_util_chart_data = this.state.ndnCacheUtilList;
      var currNDNSize = parseInt(config.attrs.currentnormalizeddncachesize[0]);
      var maxNDNSize = parseInt(config.attrs.maxnormalizeddncachesize[0]);
      var ndn_utilization = currNDNSize / maxNDNSize * 100;
      ndn_util_chart_data.shift();
      ndn_util_chart_data.push({
        name: "Cache Utilization",
        x: ndnCount.toString(),
        y: parseInt(ndn_utilization)
      });
      this.setState({
        data: config.attrs,
        loading: false,
        dbCacheList: chart_data,
        ndnCacheList: ndn_chart_data,
        ndnCacheUtilList: ndn_util_chart_data,
        count: count,
        ndnCount: ndnCount
      });
    }).fail(() => {
      this.resetChartData();
    });
  }

  startCacheRefresh() {
    this.state.cache_refresh = setInterval(this.refreshCache, 2000);
  }

  stopCacheRefresh() {
    clearInterval(this.state.cache_refresh);
  }

  render() {
    var chartColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_3__.ChartThemeColor.green;
    var ndnChartColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_3__.ChartThemeColor.green;
    var ndnUtilColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_3__.ChartThemeColor.green;
    var dbcachehit = 0;
    var ndncachehit = 0;
    var ndncachemax = 0;
    var ndncachecurr = 0;
    var utilratio = 0;
    var content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top-xlg ds-center"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextVariants.h3
    }, "Loading database monitor information ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Spinner, {
      className: "ds-margin-top-lg",
      size: "xl"
    }));

    if (!this.state.loading) {
      dbcachehit = parseInt(this.state.data.dbcachehitratio[0]);
      ndncachehit = parseInt(this.state.data.normalizeddncachehitratio[0]);
      ndncachemax = parseInt(this.state.data.maxnormalizeddncachesize[0]);
      ndncachecurr = parseInt(this.state.data.currentnormalizeddncachesize[0]);
      utilratio = Math.round(ndncachecurr / ndncachemax * 100);

      if (utilratio == 0) {
        // Just round up to 1
        utilratio = 1;
      } // Database cache


      if (dbcachehit > 89) {
        chartColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_3__.ChartThemeColor.green;
      } else if (dbcachehit > 74) {
        chartColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_3__.ChartThemeColor.orange;
      } else {
        chartColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_3__.ChartThemeColor.purple;
      } // NDN cache ratio


      if (ndncachehit > 89) {
        ndnChartColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_3__.ChartThemeColor.green;
      } else if (ndncachehit > 74) {
        ndnChartColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_3__.ChartThemeColor.orange;
      } else {
        ndnChartColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_3__.ChartThemeColor.purple;
      } // NDN cache utilization


      if (utilratio > 95) {
        ndnUtilColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_3__.ChartThemeColor.purple;
      } else if (utilratio > 90) {
        ndnUtilColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_3__.ChartThemeColor.orange;
      } else {
        ndnUtilColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_3__.ChartThemeColor.green;
      }

      content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Tabs, {
        activeKey: this.state.activeTabKey,
        onSelect: this.handleNavSelect
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Tab, {
        eventKey: 0,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TabTitleText, null, "Database Cache")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Card, {
        isSelectable: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.CardBody, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-container"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextContent, {
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextVariants.h3
      }, "Cache Hit Ratio")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextVariants.h2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, dbcachehit, "%")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-left",
        style: {
          height: '200px',
          width: '500px'
        }
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_12__.Chart, {
        ariaDesc: "Database Cache",
        ariaTitle: "Live Database Cache Statistics",
        containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_13__.ChartVoronoiContainer, {
          labels: _ref => {
            var datum = _ref.datum;
            return "".concat(datum.name, ": ").concat(datum.y);
          },
          constrainToVisibleArea: true
        }),
        height: 200,
        maxDomain: {
          y: 100
        },
        minDomain: {
          y: 0
        },
        padding: {
          bottom: 30,
          left: 40,
          top: 10,
          right: 10
        },
        width: 500,
        themeColor: chartColor
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_14__.ChartAxis, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_14__.ChartAxis, {
        dependentAxis: true,
        showGrid: true,
        tickValues: [25, 50, 75, 100]
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_15__.ChartGroup, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_16__.ChartArea, {
        data: this.state.dbCacheList
      })))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.Grid, {
        hasGutter: true,
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 3
      }, "Database Cache Hit Ratio:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.state.data.dbcachehitratio, "%")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 3
      }, "Database Cache Tries:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.numToCommas)(this.state.data.dbcachetries))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 3
      }, "Database Cache Hits:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.numToCommas)(this.state.data.dbcachehits))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 3
      }, "Cache Pages Read:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.numToCommas)(this.state.data.dbcachepagein))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 3
      }, "Cache Pages Written:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.numToCommas)(this.state.data.dbcachepageout))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 3
      }, "Read-Only Page Evictions:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.numToCommas)(this.state.data.dbcacheroevict))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 3
      }, "Read-Write Page Evictions:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.numToCommas)(this.state.data.dbcacherwevict))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Tab, {
        eventKey: 1,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TabTitleText, null, "Normalized DN Cache")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.Grid, {
        hasGutter: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Card, {
        isSelectable: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.CardBody, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-container"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextContent, {
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextVariants.h3
      }, "Cache Hit Ratio")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextVariants.h2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, ndncachehit, "%")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-left",
        style: {
          height: '200px',
          width: '350px'
        }
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_12__.Chart, {
        ariaDesc: "NDN Cache",
        ariaTitle: "Live Normalized DN Cache Statistics",
        containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_13__.ChartVoronoiContainer, {
          labels: _ref2 => {
            var datum = _ref2.datum;
            return "".concat(datum.name, ": ").concat(datum.y);
          },
          constrainToVisibleArea: true
        }),
        height: 200,
        maxDomain: {
          y: 100
        },
        minDomain: {
          y: 0
        },
        padding: {
          bottom: 40,
          left: 60,
          top: 10,
          right: 15
        },
        width: 350,
        themeColor: ndnChartColor
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_14__.ChartAxis, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_14__.ChartAxis, {
        dependentAxis: true,
        showGrid: true,
        tickValues: [25, 50, 75, 100]
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_15__.ChartGroup, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_16__.ChartArea, {
        data: this.state.ndnCacheList
      })))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Card, {
        isSelectable: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.CardBody, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-container"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextContent, {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextVariants.h2
      }, "Cache Utilization")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextVariants.h3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, utilratio, "%"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextContent, {
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextVariants.h5
      }, "Cached DN's")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.numToCommas)(this.state.data.currentnormalizeddncachecount[0]))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-left",
        style: {
          height: '200px',
          width: '350px'
        }
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_12__.Chart, {
        ariaDesc: "NDN Cache Utilization",
        ariaTitle: "Live Normalized DN Cache Utilization Statistics",
        containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_13__.ChartVoronoiContainer, {
          labels: _ref3 => {
            var datum = _ref3.datum;
            return "".concat(datum.name, ": ").concat(datum.y);
          },
          constrainToVisibleArea: true
        }),
        height: 200,
        maxDomain: {
          y: 100
        },
        minDomain: {
          y: 0
        },
        padding: {
          bottom: 40,
          left: 60,
          top: 10,
          right: 15
        },
        width: 350,
        themeColor: ndnUtilColor
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_14__.ChartAxis, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_14__.ChartAxis, {
        dependentAxis: true,
        showGrid: true,
        tickValues: [25, 50, 75, 100]
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_15__.ChartGroup, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_16__.ChartArea, {
        data: this.state.ndnCacheUtilList
      }))))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.Grid, {
        hasGutter: true,
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 3
      }, "NDN Cache Hit Ratio:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.state.data.normalizeddncachehitratio, "%")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 3
      }, "NDN Cache Max Size:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.displayBytes)(this.state.data.maxnormalizeddncachesize))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 3
      }, "NDN Cache Tries:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.numToCommas)(this.state.data.normalizeddncachetries))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 3
      }, "NDN Current Cache Size:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.displayBytes)(this.state.data.currentnormalizeddncachesize))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 3
      }, "NDN Cache Hits:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.numToCommas)(this.state.data.normalizeddncachehits))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 3
      }, "NDN Cache DN Count:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.numToCommas)(this.state.data.currentnormalizeddncachecount))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 3
      }, "NDN Cache Evictions:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.numToCommas)(this.state.data.normalizeddncacheevictions))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 3
      }, "NDN Cache Thread Size:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.numToCommas)(this.state.data.normalizeddncachethreadsize))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 3
      }, "NDN Cache Thread Slots:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.numToCommas)(this.state.data.normalizeddncachethreadslots)))))));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      id: "db-content"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Text, {
      className: "ds-sub-header",
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextVariants.h2
    }, "Database Performance Statistics")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top-lg"
    }, content));
  }

} // Prop types and defaults

DatabaseMonitor.propTypes = {
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().string),
  enableTree: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func)
};
DatabaseMonitor.defaultProps = {
  serverId: ""
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DatabaseMonitor);

/***/ }),

/***/ "./src/lib/monitor/errorlog.jsx":
/*!**************************************!*\
  !*** ./src/lib/monitor/errorlog.jsx ***!
  \**************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ErrorLogMonitor": () => (/* binding */ ErrorLogMonitor),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_14__);
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextArea/TextArea.js");
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
/* harmony import */ var _fortawesome_fontawesome_svg_core_styles_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core/styles.css */ "./node_modules/@fortawesome/fontawesome-svg-core/styles.css");
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }








class ErrorLogMonitor extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      errorlogData: "",
      errorReloading: false,
      errorlog_cont_refresh: "",
      errorRefreshing: false,
      errorSevLevel: "Everything",
      errorLines: "50"
    }; // Build the log severity sev_levels

    var sev_emerg = " - EMERG - ";
    var sev_crit = " - CRIT - ";
    var sev_alert = " - ALERT - ";
    var sev_err = " - ERR - ";
    var sev_warn = " - WARN - ";
    var sev_notice = " - NOTICE - ";
    var sev_info = " - INFO - ";
    var sev_debug = " - DEBUG - ";
    this.sev_levels = {
      Emergency: sev_emerg,
      Critical: sev_crit,
      Alert: sev_alert,
      Error: sev_err,
      Warning: sev_warn,
      Notice: sev_notice,
      Info: sev_info,
      Debug: sev_debug
    };
    this.sev_all_errs = [sev_emerg, sev_crit, sev_alert, sev_err];
    this.sev_all_info = [sev_warn, sev_notice, sev_info, sev_debug];
    this.refreshErrorLog = this.refreshErrorLog.bind(this);
    this.errorRefreshCont = this.errorRefreshCont.bind(this);
    this.handleErrorChange = this.handleErrorChange.bind(this);
    this.handleSevChange = this.handleSevChange.bind(this);
  }

  componentDidUpdate() {
    // Set the textarea to be scrolled down to the bottom
    var textarea = document.getElementById('errorslog-area');
    textarea.scrollTop = textarea.scrollHeight;
  }

  componentDidMount() {
    this.props.enableTree();
    this.refreshErrorLog();
  }

  componentWillUnmount() {
    // Stop the continuous log refresh interval
    clearInterval(this.state.errorlog_cont_refresh);
  }

  refreshErrorLog() {
    this.setState({
      errorReloading: true
    });
    var cmd = ["tail", "-" + this.state.errorLines, this.props.logLocation];
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(data => {
      if (this.state.errorSevLevel != "Everything") {
        // Filter Data
        var lines = data.split('\n');
        var new_data = "";

        for (var i = 0; i < lines.length; i++) {
          var line = "";

          if (this.state.errorSevLevel == "Error Messages") {
            var _iterator = _createForOfIteratorHelper(this.sev_all_errs),
                _step;

            try {
              for (_iterator.s(); !(_step = _iterator.n()).done;) {
                var lev = _step.value;

                if (lines[i].indexOf(lev) != -1) {
                  line = lines[i] + "\n";
                }
              }
            } catch (err) {
              _iterator.e(err);
            } finally {
              _iterator.f();
            }
          } else if (this.state.errorSevLevel == "Info Messages") {
            var _iterator2 = _createForOfIteratorHelper(this.sev_all_info),
                _step2;

            try {
              for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
                var _lev = _step2.value;

                if (lines[i].indexOf(_lev) != -1) {
                  line = lines[i] + "\n";
                }
              }
            } catch (err) {
              _iterator2.e(err);
            } finally {
              _iterator2.f();
            }
          } else if (lines[i].indexOf(this.sev_levels[this.state.errorSevLevel]) != -1) {
            line = lines[i] + "\n";
          } // Add the filtered line to new data


          new_data += line;
        }

        data = new_data;
      }

      this.setState(() => ({
        errorlogData: data,
        errorReloading: false
      }));
    });
  }

  errorRefreshCont(e) {
    if (e.target.checked) {
      this.state.errorlog_cont_refresh = setInterval(this.refreshErrorLog, 2000);
    } else {
      clearInterval(this.state.errorlog_cont_refresh);
    }

    this.setState({
      errorRefreshing: e.target.checked
    });
  }

  handleErrorChange(e) {
    var value = e.target.value;
    this.setState(() => ({
      errorLines: value
    }), this.refreshErrorLog);
  }

  handleSevChange(e) {
    var value = e.target.value;
    this.setState({
      errorSevLevel: value
    }, this.refreshErrorLog);
  }

  render() {
    var spinner = "";

    if (this.state.errorReloading) {
      spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Spinner, {
        size: "sm"
      }), "Reloading errors log...");
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      id: "monitor-log-errors-page"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h3
    }, "Errors Log ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__.FontAwesomeIcon, {
      size: "lg",
      className: "ds-left-margin ds-refresh",
      icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_9__.faSyncAlt,
      title: "Refresh error log",
      onClick: this.refreshErrorLog
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 9,
      className: "ds-float-left"
    }, spinner)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      className: "ds-margin-top-lg ds-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormSelect, {
      id: "errorLines",
      value: this.state.errorLines,
      onChange: (value, event) => {
        this.handleErrorChange(event);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "50",
      value: "50",
      label: "50"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "100",
      value: "100",
      label: "100"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "200",
      value: "200",
      label: "200"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "300",
      value: "300",
      label: "300"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "400",
      value: "400",
      label: "400"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "500",
      value: "500",
      label: "500"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "1000",
      value: "1000",
      label: "1000"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "2000",
      value: "2000",
      label: "2000"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "5000",
      value: "5000",
      label: "5000"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "10000",
      value: "10000",
      label: "10000"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "50000",
      value: "50000",
      label: "50000"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      offset: 4,
      span: 4
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-container"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-label"
    }, "Filter"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormSelect, {
      className: "ds-left-margin",
      value: this.state.errorSevLevel,
      onChange: (value, event) => {
        this.handleSevChange(event);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "Everything",
      value: "Everything",
      label: "Everything"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "Error Messages",
      value: "Error Messages",
      label: "Error Messages"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "Info Messages",
      value: "Info Messages",
      label: "Info Messages"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      isDisabled: true,
      key: "disabled",
      value: "disabled",
      label: "---------------"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "Emergency",
      value: "Emergency",
      label: "Emergency"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "Alert",
      value: "Alert",
      label: "Alert"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "Critical",
      value: "Critical",
      label: "Critical"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "Warning",
      value: "Warning",
      label: "Warning"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "Notice",
      value: "Notice",
      label: "Notice"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "Info",
      value: "Info",
      label: "Info"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: "Debug",
      value: "Debug",
      label: "Debug"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 4
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-float-right"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "errorRefreshing",
      isChecked: this.state.errorRefreshing,
      onChange: (checked, e) => {
        this.errorRefreshCont(e);
      },
      label: "Continuously Refresh"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.TextArea, {
      id: "errorslog-area",
      resizeOrientation: "vertical",
      className: "ds-logarea ds-margin-top-lg",
      value: this.state.errorlogData,
      "aria-label": "text area example"
    })));
  }

} // Props and defaultProps

ErrorLogMonitor.propTypes = {
  logLocation: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string),
  enableTree: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func)
};
ErrorLogMonitor.defaultProps = {
  logLocation: ""
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ErrorLogMonitor);

/***/ }),

/***/ "./src/lib/monitor/monitorModals.jsx":
/*!*******************************************!*\
  !*** ./src/lib/monitor/monitorModals.jsx ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "TaskLogModal": () => (/* binding */ TaskLogModal),
/* harmony export */   "AgmtDetailsModal": () => (/* binding */ AgmtDetailsModal),
/* harmony export */   "ConflictCompareModal": () => (/* binding */ ConflictCompareModal),
/* harmony export */   "ReportCredentialsModal": () => (/* binding */ ReportCredentialsModal),
/* harmony export */   "ReportAliasesModal": () => (/* binding */ ReportAliasesModal),
/* harmony export */   "ReportLoginModal": () => (/* binding */ ReportLoginModal),
/* harmony export */   "FullReportContent": () => (/* binding */ FullReportContent)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextArea/TextArea.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Radio/Radio.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/NumberInput/NumberInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/copy-icon.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_19__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _monitorTables_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./monitorTables.jsx */ "./src/lib/monitor/monitorTables.jsx");
/* harmony import */ var _patternfly_react_icons_dist_js_icons_outlined_question_circle_icon__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-icons/dist/js/icons/outlined-question-circle-icon */ "./node_modules/@patternfly/react-icons/dist/js/icons/outlined-question-circle-icon.js");
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }









class TaskLogModal extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  render() {
    var _this$props = this.props,
        showModal = _this$props.showModal,
        closeHandler = _this$props.closeHandler,
        logData = _this$props.logData;
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.ModalVariant.medium,
      title: "Task Log",
      isOpen: showModal,
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Close")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextArea, {
      resizeOrientation: "vertical",
      className: "ds-logarea",
      value: logData,
      "aria-label": "text area example"
    })));
  }

}

class AgmtDetailsModal extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  render() {
    var _this$props2 = this.props,
        showModal = _this$props2.showModal,
        closeHandler = _this$props2.closeHandler,
        agmt = _this$props2.agmt; // Format status dates from agmt

    var convertedDate = {};
    var dateAttrs = ['last-update-start', 'last-update-end', 'last-init-start', 'last-init-end'];

    for (var _i = 0, _dateAttrs = dateAttrs; _i < _dateAttrs.length; _i++) {
      var attr = _dateAttrs[_i];

      if (agmt[attr][0] == "19700101000000Z") {
        convertedDate[attr] = "Unavailable";
      } else {
        convertedDate[attr] = (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(agmt[attr][0]);
      }
    }

    var btnList = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Button, {
      key: "cancel",
      variant: "link",
      onClick: closeHandler
    }, "Cancel")];
    var title = "Replication Agreement Details (" + agmt['agmt-name'] + ")";
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.ModalVariant.medium,
      title: title,
      isOpen: showModal,
      onClose: closeHandler,
      actions: btnList
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Form, {
      isHorizontal: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Replica")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, agmt.replica))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Agreement Enabled")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, agmt['replica-enabled']))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Last Init Started")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, convertedDate['last-init-start']))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Last Init Ended")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, convertedDate['last-init-end']))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Last Initialization Status")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextArea, {
      resizeOrientation: "vertical",
      className: "ds-textarea",
      value: agmt['last-init-status'],
      "aria-label": "text area example"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Replication In Progress")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, agmt['update-in-progress']))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Changes Sent")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, agmt['number-changes-sent']))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Last Update Started")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, convertedDate['last-update-start']))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Last Update Ended")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, convertedDate['last-update-end']))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Last Update Status")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextArea, {
      resizeOrientation: "vertical",
      className: "ds-textarea",
      value: agmt['last-update-status'],
      "aria-label": "text area example"
    })))));
  }

}

class ConflictCompareModal extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  render() {
    var _this$props3 = this.props,
        showModal = _this$props3.showModal,
        conflictEntry = _this$props3.conflictEntry,
        validEntry = _this$props3.validEntry,
        closeHandler = _this$props3.closeHandler,
        saveHandler = _this$props3.saveHandler,
        handleChange = _this$props3.handleChange,
        handleRadioChange = _this$props3.handleRadioChange,
        convertConflictRadio = _this$props3.convertConflictRadio,
        deleteConflictRadio = _this$props3.deleteConflictRadio,
        swapConflictRadio = _this$props3.swapConflictRadio,
        newRDN = _this$props3.newRDN;
    var ignoreAttrs = ['createtimestamp', 'creatorsname', 'modifytimestamp', 'modifiersname', 'entryid', 'entrydn', 'parentid', 'numsubordinates'];
    var conflict = "dn: " + conflictEntry.dn + "\n";
    var valid = "dn: " + validEntry.dn + "\n";
    var conflictChildren = "0";
    var validChildren = "0";
    var orig_rdn = newRDN;

    if (newRDN == "") {
      // Create an example rdn value based off the conflict rdn
      orig_rdn = conflictEntry.dn.split('+');
      orig_rdn = orig_rdn[0] + "-MUST_CHANGE";
    }

    for (var key in conflictEntry.attrs) {
      if (key == "numsubordinates") {
        conflictChildren = conflictEntry.attrs[key];
      }

      if (!ignoreAttrs.includes(key)) {
        var _iterator = _createForOfIteratorHelper(conflictEntry.attrs[key]),
            _step;

        try {
          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            var attr = _step.value;
            conflict += key + ": " + attr + "\n";
          }
        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }
      }
    }

    for (var _key in validEntry.attrs) {
      if (_key == "numsubordinates") {
        validChildren = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("font", {
          color: "red"
        }, validEntry.attrs[_key]);
      }

      if (!ignoreAttrs.includes(_key)) {
        var _iterator2 = _createForOfIteratorHelper(validEntry.attrs[_key]),
            _step2;

        try {
          for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
            var _attr = _step2.value;
            valid += _key + ": " + _attr + "\n";
          }
        } catch (err) {
          _iterator2.e(err);
        } finally {
          _iterator2.f();
        }
      }
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.ModalVariant.medium,
      title: "Resolve Replication Conflict",
      isOpen: showModal,
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Button, {
        key: "confirm",
        variant: "primary",
        onClick: () => saveHandler(conflictEntry.dn)
      }, "Resolve Conflict"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextVariants.h4
    }, "Valid Entry"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("p", {
      className: "ds-margin-top ds-right-align ds-font-size-sm"
    }, "Child Entries: ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, validChildren))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextArea, {
      id: "conflictValid",
      resizeOrientation: "vertical",
      className: "ds-conflict",
      value: valid,
      isReadOnly: true
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-margin-top-lg",
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextVariants.h4
    }, "Conflict Entry"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-margin-top-lg",
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("p", {
      className: "ds-margin-top ds-right-align ds-font-size-sm"
    }, "Child Entries: ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, conflictChildren))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextArea, {
      id: "conflictConflict",
      resizeOrientation: "vertical",
      className: "ds-conflict",
      value: conflict,
      isReadOnly: true
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-container"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Radio, {
      name: "resolve-choice",
      onChange: handleRadioChange,
      label: "Delete Conflict Entry",
      id: "deleteConflictRadio",
      isChecked: deleteConflictRadio
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-left-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Tooltip, {
      position: "top",
      content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, "This will delete the conflict entry, and the \"valid\" entry will remain intact.")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_outlined_question_circle_icon__WEBPACK_IMPORTED_MODULE_13__["default"], null)))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-container ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Radio, {
      name: "resolve-choice",
      onChange: handleRadioChange,
      label: "Swap Conflict Entry With Valid Entry",
      id: "swapConflictRadio",
      isChecked: swapConflictRadio
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-left-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Tooltip, {
      className: "ds-margin-left",
      position: "top",
      content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, "This will replace the \"valid\" entry with the conflict entry, but keeping the valid entry DN intact.")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_outlined_question_circle_icon__WEBPACK_IMPORTED_MODULE_13__["default"], null)))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-container ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Radio, {
      name: "resolve-choice",
      onChange: handleRadioChange,
      label: "Convert Conflict Entry Into New Entry",
      id: "convertConflictRadio",
      isChecked: convertConflictRadio
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-left-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Tooltip, {
      position: "top",
      content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, "The conflict entry uses a multi-valued RDN to specify the original DN and it's nsUniqueID.  To convert the conflict entry to a new entry you must provide a new RDN attribute/value for the new entry. \"RDN_ATTRIBUTE=VALUE\".  For example: cn=my_new_entry")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_outlined_question_circle_icon__WEBPACK_IMPORTED_MODULE_13__["default"], null)))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top ds-margin-left-sm"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      placeholder: "Enter new RDN here",
      type: "text",
      onChange: handleChange,
      "aria-label": "new rdn label",
      id: "convertRDN",
      value: orig_rdn,
      isDisabled: !convertConflictRadio
    })))));
  }

}

class ReportCredentialsModal extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  render() {
    var _this$props4 = this.props,
        handleFieldChange = _this$props4.handleFieldChange,
        showModal = _this$props4.showModal,
        closeHandler = _this$props4.closeHandler,
        newEntry = _this$props4.newEntry,
        hostname = _this$props4.hostname,
        port = _this$props4.port,
        binddn = _this$props4.binddn,
        pwInputInterractive = _this$props4.pwInputInterractive,
        bindpw = _this$props4.bindpw,
        addConfig = _this$props4.addConfig,
        editConfig = _this$props4.editConfig,
        onMinusConfig = _this$props4.onMinusConfig,
        onPlusConfig = _this$props4.onPlusConfig,
        onConfigChange = _this$props4.onConfigChange;
    var title = (newEntry ? "Add" : "Edit") + " Report Credentials";
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.ModalVariant.medium,
      title: title,
      isOpen: showModal,
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Button, {
        key: "save",
        variant: "primary",
        onClick: newEntry ? addConfig : editConfig,
        isDisabled: hostname == "" || binddn == "" || bindpw == ""
      }, "Save"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Hostname"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      value: hostname,
      type: "text",
      id: "credsHostname",
      "aria-describedby": "cachememsize",
      name: "credsHostname",
      onChange: (str, e) => {
        handleFieldChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Port"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.NumberInput, {
      value: port,
      min: 1,
      max: 65534,
      onMinus: () => {
        onMinusConfig("credsPort");
      },
      onChange: e => {
        onConfigChange(e, "credsPort", 1);
      },
      onPlus: () => {
        onPlusConfig("credsPort");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      title: "Bind DN for the specified instances"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Bind DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      value: binddn,
      type: "text",
      id: "credsBinddn",
      "aria-describedby": "cachememsize",
      name: "credsBinddn",
      onChange: (str, e) => {
        handleFieldChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      title: "Bind password for the specified instances"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      value: bindpw,
      type: "password",
      id: "credsBindpw",
      "aria-describedby": "cachememsize",
      name: "credsBindpw",
      isDisabled: pwInputInterractive,
      onChange: (str, e) => {
        handleFieldChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      title: "Input the password interactively"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Interractive Input"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Checkbox, {
      isChecked: pwInputInterractive,
      id: "pwInputInterractive",
      onChange: (checked, e) => {
        handleFieldChange(e);
      }
    })))))));
  }

}

class ReportAliasesModal extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  render() {
    var _this$props5 = this.props,
        handleFieldChange = _this$props5.handleFieldChange,
        showModal = _this$props5.showModal,
        closeHandler = _this$props5.closeHandler,
        newEntry = _this$props5.newEntry,
        hostname = _this$props5.hostname,
        port = _this$props5.port,
        alias = _this$props5.alias,
        addConfig = _this$props5.addConfig,
        editConfig = _this$props5.editConfig,
        onMinusConfig = _this$props5.onMinusConfig,
        onPlusConfig = _this$props5.onPlusConfig,
        onConfigChange = _this$props5.onConfigChange;
    var title = (newEntry ? "Add" : "Edit") + " Report Alias";
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.ModalVariant.medium,
      title: title,
      isOpen: showModal,
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Button, {
        key: "confirm",
        variant: "primary",
        onClick: newEntry ? addConfig : editConfig,
        isDisabled: alias == "" || hostname == ""
      }, "Save"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      title: "Alias name for the instance"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Alias"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      value: alias,
      type: "text",
      id: "aliasName",
      "aria-describedby": "aliasName",
      name: "aliasName",
      onChange: (str, e) => {
        handleFieldChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      title: "An instance hostname"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Hostname"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      value: hostname,
      type: "text",
      id: "aliasHostname",
      "aria-describedby": "aliasHostname",
      name: "aliasHostname",
      onChange: (str, e) => {
        handleFieldChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      title: "An instance port"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Port"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.NumberInput, {
      value: port,
      min: 1,
      max: 65534,
      onMinus: () => {
        onMinusConfig("aliasPort");
      },
      onChange: e => {
        onConfigChange(e, "aliasPort", 1);
      },
      onPlus: () => {
        onPlusConfig("aliasPort");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    })))))));
  }

}

class ReportLoginModal extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  render() {
    var _this$props6 = this.props,
        showModal = _this$props6.showModal,
        closeHandler = _this$props6.closeHandler,
        handleChange = _this$props6.handleChange,
        processCredsInput = _this$props6.processCredsInput,
        instanceName = _this$props6.instanceName,
        disableBinddn = _this$props6.disableBinddn,
        loginBinddn = _this$props6.loginBinddn,
        loginBindpw = _this$props6.loginBindpw;
    var title = "Replication Login Credentials for " + instanceName;
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.ModalVariant.medium,
      title: title,
      isOpen: showModal,
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Button, {
        key: "confirm",
        variant: "primary",
        isDisabled: loginBinddn == "" || loginBindpw == "",
        onClick: processCredsInput
      }, "Confirm Credentials Input"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextVariants.h5
    }, "In order to get the replication agreement lag times and state, the authentication credentials to the remote replicas must be provided.")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextVariants.h5
    }, "Bind DN was acquired from ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Replica Credentials"), " table. If you want to bind as another user, change or remove the Bind DN there.")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      className: "ds-margin-top-lg",
      title: "Bind DN for the instance"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Bind DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      value: loginBinddn,
      type: "text",
      id: "loginBinddn",
      "aria-describedby": "loginBinddn",
      name: "loginBinddn",
      isDisabled: disableBinddn,
      onChange: (str, e) => {
        handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      title: "Password for the Bind DN"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextInput, {
      value: loginBindpw,
      type: "password",
      id: "loginBindpw",
      "aria-describedby": "loginBindpw",
      name: "loginBindpw",
      onChange: (str, e) => {
        handleChange(e);
      }
    })))));
  }

}

class FullReportContent extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      oneTableReport: false,
      showDisabledAgreements: false
    };
    this.handleSwitchChange = this.handleSwitchChange.bind(this);
  }

  handleSwitchChange(e) {
    if (typeof e === "boolean") {
      // Handle Switch object
      this.setState({
        oneTableReport: e
      });
    } else {
      this.setState({
        [e.target.id]: e.target.checked
      });
    }
  }

  render() {
    var _this$props7 = this.props,
        reportData = _this$props7.reportData,
        handleRefresh = _this$props7.handleRefresh,
        reportRefreshing = _this$props7.reportRefreshing,
        reportLoading = _this$props7.reportLoading;
    var suppliers = [];
    var supplierName;
    var supplierData;
    var resultGrids = [];
    var spinner = "";

    if (reportLoading) {
      spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
        title: "Do the refresh every few seconds"
      }, reportRefreshing ? "Refreshing" : "Loading", " the report...", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.Spinner, {
        className: "ds-left-margin",
        size: "lg"
      }));
    }

    var reportHeader = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Text, {
      className: "ds-margin-top-xlg",
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextVariants.h4
    }, "There is no report, you must first generate the report in the ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Prepare Report"), " tab."));

    if (reportData.length > 0) {
      reportHeader = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Form, {
        isHorizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
        span: 8
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Checkbox, {
        title: "Display all agreements including the disabled ones and the ones we failed to connect to",
        isChecked: this.state.showDisabledAgreements,
        id: "showDisabledAgreements",
        onChange: (checked, e) => {
          this.handleSwitchChange(e);
        },
        label: "Show Disabled Agreements"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
        span: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Button, {
        key: "refresh",
        variant: "secondary",
        onClick: handleRefresh,
        className: "ds-float-right"
      }, "Refresh Report")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Checkbox, {
        isChecked: this.state.oneTableReport,
        onChange: (checked, e) => {
          this.handleSwitchChange(e);
        },
        id: "oneTableReport",
        title: "Show all data in one table (it makes it easier to check lag times)",
        label: "Table View"
      })))));
    }

    if (this.state.oneTableReport) {
      var _iterator3 = _createForOfIteratorHelper(reportData),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var supplier = _step3.value;

          var _iterator4 = _createForOfIteratorHelper(supplier.data),
              _step4;

          try {
            for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
              var replica = _step4.value;
              var idx = replica.agmts_status.length;
              var agmts = JSON.parse(JSON.stringify(replica.agmts_status));

              while (idx--) {
                if (!this.state.showDisabledAgreements && 'replica-enabled' in agmts[idx] && agmts[idx]['replica-enabled'][0] == "off") {
                  // remove disabled agmt
                  agmts.splice(idx, 1);
                }
              }

              resultGrids = resultGrids.concat(agmts);
            }
          } catch (err) {
            _iterator4.e(err);
          } finally {
            _iterator4.f();
          }
        }
      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }

      suppliers = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_2__.ReportSingleTable, {
        key: resultGrids,
        rows: resultGrids,
        viewAgmt: this.props.viewAgmt
      }))];
    } else {
      var _iterator5 = _createForOfIteratorHelper(reportData),
          _step5;

      try {
        for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
          var _supplier = _step5.value;
          var s_data = _supplier.data;

          if (s_data.length === 1 && (s_data[0].replica_status.startsWith("Unavailable") || s_data[0].replica_status.startsWith("Unreachable"))) {
            supplierData = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Text, {
              className: "ds-margin-top-xlg",
              component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextVariants.h4
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Can not get replication information from Replica:"), "\xA0\xA0", s_data[0].replica_status)));
          } else {
            // Create deep copy of supplier data, so we can filter it
            // without changing the original data
            var supData = JSON.parse(JSON.stringify(_supplier.data));

            var _iterator6 = _createForOfIteratorHelper(supData),
                _step6;

            try {
              for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
                var _replica = _step6.value;
                var _idx = _replica.agmts_status.length;

                while (_idx--) {
                  if (!this.state.showDisabledAgreements && 'replica-enabled' in _replica.agmts_status[_idx] && _replica.agmts_status[_idx]['replica-enabled'][0] == "off") {
                    // remove disabled agmt
                    _replica.agmts_status.splice(_idx, 1);
                  }
                }
              }
            } catch (err) {
              _iterator6.e(err);
            } finally {
              _iterator6.f();
            }

            supplierData = supData.map(replica => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
              key: replica.replica_root + replica.replica_id
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
              span: 2
            }, "Replica Root"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
              span: 10
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, replica.replica_root)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
              span: 2
            }, "Replica ID"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
              span: 10
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, replica.replica_id)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
              span: 2
            }, "Max CSN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
              span: 10
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, replica.maxcsn)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
              span: 2
            }, "Replica Status"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
              span: 10
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, replica.replica_status)), "agmts_status" in replica && replica.agmts_status.length > 0 && "agmt-name" in replica.agmts_status[0] ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_2__.ReportConsumersTable, {
              key: replica.agmts_status,
              rows: replica.agmts_status,
              viewAgmt: this.props.viewAgmt
            }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Text, {
              component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextVariants.h4
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, "No Agreements Were Found"))))));
          }

          supplierName = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
            className: "ds-margin-top-xlg",
            key: _supplier.name
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextContent, {
            title: "Supplier host:port (and alias if applicable)"
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Text, {
            component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextVariants.h2
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_18__.CopyIcon, null), "\xA0\xA0", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Supplier:"), "\xA0\xA0", _supplier.name)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null), supplierData);
          suppliers.push(supplierName);
        }
      } catch (err) {
        _iterator5.e(err);
      } finally {
        _iterator5.f();
      }
    }

    var report = suppliers.map(supplier => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      key: supplier.key
    }, supplier));

    if (reportLoading) {
      report = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
        span: 12,
        className: "ds-center ds-margin-top"
      }, spinner);
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, reportHeader, report, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null));
  }

} // Prototypes and defaultProps


AgmtDetailsModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  agmt: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().object)
};
AgmtDetailsModal.defaultProps = {
  showModal: false,
  agmt: {}
};
TaskLogModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  logData: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().string)
};
TaskLogModal.defaultProps = {
  showModal: false,
  agreement: ""
};
ConflictCompareModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().bool),
  conflictEntry: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().object),
  validEntry: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().object),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func)
};
ConflictCompareModal.defaultProps = {
  showModal: false,
  conflictEntry: {
    dn: "",
    attrs: []
  },
  validEntry: {}
};
ReportCredentialsModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  handleFieldChange: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  hostname: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().string),
  port: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().number),
  binddn: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().string),
  bindpw: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().string),
  pwInputInterractive: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().bool),
  newEntry: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().bool),
  addConfig: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  editConfig: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func)
};
ReportCredentialsModal.defaultProps = {
  showModal: false,
  hostname: "",
  port: 389,
  binddn: "",
  bindpw: "",
  pwInputInterractive: false,
  newEntry: false
};
ReportAliasesModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  handleFieldChange: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  hostname: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().string),
  port: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().number),
  alias: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().string),
  newEntry: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().bool),
  addConfig: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  editConfig: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func)
};
ReportAliasesModal.defaultProps = {
  showModal: false,
  hostname: "",
  port: 389,
  alias: "",
  newEntry: false
};
ReportLoginModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  processCredsInput: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  instanceName: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().string),
  disableBinddn: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().bool),
  loginBinddn: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().string),
  loginBindpw: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().string)
};
ReportLoginModal.defaultProps = {
  showModal: false,
  instanceName: "",
  disableBinddn: false,
  loginBinddn: "",
  loginBindpw: ""
};
FullReportContent.propTypes = {
  reportData: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().array),
  handleRefresh: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  reportRefreshing: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().bool)
};
FullReportContent.defaultProps = {
  reportData: [],
  reportRefreshTimeout: 5,
  reportRefreshing: false
};


/***/ }),

/***/ "./src/lib/monitor/monitorTables.jsx":
/*!*******************************************!*\
  !*** ./src/lib/monitor/monitorTables.jsx ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ConnectionTable": () => (/* binding */ ConnectionTable),
/* harmony export */   "CleanALLRUVTable": () => (/* binding */ CleanALLRUVTable),
/* harmony export */   "AbortCleanALLRUVTable": () => (/* binding */ AbortCleanALLRUVTable),
/* harmony export */   "WinsyncAgmtTable": () => (/* binding */ WinsyncAgmtTable),
/* harmony export */   "AgmtTable": () => (/* binding */ AgmtTable),
/* harmony export */   "ConflictTable": () => (/* binding */ ConflictTable),
/* harmony export */   "GlueTable": () => (/* binding */ GlueTable),
/* harmony export */   "ReportCredentialsTable": () => (/* binding */ ReportCredentialsTable),
/* harmony export */   "ReportAliasesTable": () => (/* binding */ ReportAliasesTable),
/* harmony export */   "ReportConsumersTable": () => (/* binding */ ReportConsumersTable),
/* harmony export */   "ReportSingleTable": () => (/* binding */ ReportSingleTable),
/* harmony export */   "DiskTable": () => (/* binding */ DiskTable)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Pagination/Pagination.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SearchInput/SearchInput.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/sortable.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/collapsible.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/SortColumn.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Table.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableTypes.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Header.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Body.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/info.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/cellWidth.js");
/* harmony import */ var _patternfly_react_icons_dist_js_icons_exclamation_triangle_icon__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-icons/dist/js/icons/exclamation-triangle-icon */ "./node_modules/@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_19__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }








class AbortCleanALLRUVTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'Task',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable],
        cellFormatters: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.expandable]
      }, {
        title: 'Created',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, {
        title: 'Replica ID',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, {
        title: 'Status',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, {
        title: ''
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage,
        page: 1
      });
    };

    this.onSort = this.onSort.bind(this);
    this.onCollapse = this.onCollapse.bind(this);
    this.getLog = this.getLog.bind(this);
  }

  getLog(log) {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextVariants.h5
    }, log));
  }

  componentDidMount() {
    var rows = [];
    var columns = [...this.state.columns];
    var count = 0;

    var _iterator = _createForOfIteratorHelper(this.props.tasks),
        _step;

    try {
      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        var task = _step.value;
        rows.push({
          isOpen: false,
          cells: [task.attrs.cn[0], (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(task.attrs.nstaskcreated[0]), task.attrs['replica-id'][0], task.attrs.nstaskstatus[0]]
        });
        rows.push({
          parent: count,
          fullWidth: true,
          cells: [{
            title: this.getLog(task.attrs.nstasklog[0])
          }]
        });
        count += 2;
      }
    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }

    if (rows.length == 0) {
      rows = [{
        cells: ['No Tasks']
      }];
      columns = [{
        title: 'Abort CleanAllRUV Tasks'
      }];
    }

    this.setState({
      rows: rows,
      columns: columns
    });
  }

  onCollapse(event, rowKey, isOpen) {
    var _this$state = this.state,
        rows = _this$state.rows,
        perPage = _this$state.perPage,
        page = _this$state.page;
    var index = perPage * (page - 1) * 2 + rowKey; // Adjust for page set

    rows[index].isOpen = isOpen;
    this.setState({
      rows
    });
  }

  onSort(_event, index, direction) {
    var sorted_tasks = [];
    var rows = [];
    var count = 0; // Convert the conns into a sortable array based on the column indexes

    var _iterator2 = _createForOfIteratorHelper(this.props.tasks),
        _step2;

    try {
      for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
        var _task = _step2.value;
        sorted_tasks.push({
          task: _task,
          1: _task.attrs.cn[0],
          2: (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(_task.attrs.nstaskcreated[0]),
          3: _task.attrs['replica-id'][0],
          4: _task.attrs.nstaskstatus[0]
        });
      } // Sort the connections and build the new rows

    } catch (err) {
      _iterator2.e(err);
    } finally {
      _iterator2.f();
    }

    sorted_tasks.sort((a, b) => a[index] > b[index] ? 1 : -1);

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.SortByDirection.asc) {
      sorted_tasks.reverse();
    }

    for (var _i = 0, _sorted_tasks = sorted_tasks; _i < _sorted_tasks.length; _i++) {
      var task = _sorted_tasks[_i];
      task = task.task;
      rows.push({
        isOpen: false,
        cells: [task.attrs.cn[0], (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(task.attrs.nstaskcreated[0]), task.attrs['replica-id'][0], task.attrs.nstaskstatus[0]]
      });
      rows.push({
        parent: count,
        fullWidth: true,
        cells: [{
          title: this.getLog(task.attrs.nstasklog[0])
        }]
      });
      count += 2;
    }

    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: rows,
      page: 1
    });
  }

  render() {
    var _this$state2 = this.state,
        columns = _this$state2.columns,
        rows = _this$state2.rows,
        perPage = _this$state2.perPage,
        page = _this$state2.page,
        sortBy = _this$state2.sortBy;
    var origRows = [...rows];
    var startIdx = (perPage * page - perPage) * 2;
    var tableRows = origRows.splice(startIdx, perPage * 2);

    for (var idx = 1, count = 0; idx < tableRows.length; idx += 2, count += 2) {
      // Rewrite parent index to match new spliced array
      tableRows[idx].parent = count;
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.Table, {
      className: "ds-margin-top",
      "aria-label": "Expandable table",
      cells: columns,
      rows: tableRows,
      onCollapse: this.onCollapse,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.TableVariant.compact,
      sortBy: sortBy,
      onSort: this.onSort
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Pagination, {
      itemCount: this.props.tasks.length,
      widgetId: "pagination-options-menu-bottom",
      perPage: this.state.perPage,
      page: this.state.page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

class CleanALLRUVTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'Task',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable],
        cellFormatters: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.expandable]
      }, {
        title: 'Created',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, {
        title: 'Replica ID',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, {
        title: 'Status',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, {
        title: ''
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage,
        page: 1
      });
    };

    this.onSort = this.onSort.bind(this);
    this.onCollapse = this.onCollapse.bind(this);
    this.getLog = this.getLog.bind(this);
  }

  getLog(log) {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextVariants.h5
    }, log));
  }

  componentDidMount() {
    var rows = [];
    var columns = [...this.state.columns];
    var count = 0;

    var _iterator3 = _createForOfIteratorHelper(this.props.tasks),
        _step3;

    try {
      for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
        var task = _step3.value;
        rows.push({
          isOpen: false,
          cells: [task.attrs.cn[0], (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(task.attrs.nstaskcreated[0]), task.attrs['replica-id'][0], task.attrs.nstaskstatus[0]]
        });
        rows.push({
          parent: count,
          fullWidth: true,
          cells: [{
            title: this.getLog(task.attrs.nstasklog[0])
          }]
        });
        count += 2;
      }
    } catch (err) {
      _iterator3.e(err);
    } finally {
      _iterator3.f();
    }

    if (rows.length == 0) {
      rows = [{
        cells: ['No Tasks']
      }];
      columns = [{
        title: 'CleanAllRUV Tasks'
      }];
    }

    this.setState({
      rows: rows,
      columns: columns
    });
  }

  onCollapse(event, rowKey, isOpen) {
    var _this$state3 = this.state,
        rows = _this$state3.rows,
        perPage = _this$state3.perPage,
        page = _this$state3.page;
    var index = perPage * (page - 1) * 2 + rowKey; // Adjust for page set

    rows[index].isOpen = isOpen;
    this.setState({
      rows
    });
  }

  onSort(_event, index, direction) {
    var sorted_tasks = [];
    var rows = [];
    var count = 0; // Convert the conns into a sortable array based on the column indexes

    var _iterator4 = _createForOfIteratorHelper(this.props.tasks),
        _step4;

    try {
      for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
        var _task2 = _step4.value;
        sorted_tasks.push({
          task: _task2,
          1: _task2.attrs.cn[0],
          2: (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(_task2.attrs.nstaskcreated[0]),
          3: _task2.attrs['replica-id'][0],
          4: _task2.attrs.nstaskstatus[0]
        });
      } // Sort the connections and build the new rows

    } catch (err) {
      _iterator4.e(err);
    } finally {
      _iterator4.f();
    }

    sorted_tasks.sort((a, b) => a[index] > b[index] ? 1 : -1);

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.SortByDirection.asc) {
      sorted_tasks.reverse();
    }

    for (var _i2 = 0, _sorted_tasks2 = sorted_tasks; _i2 < _sorted_tasks2.length; _i2++) {
      var task = _sorted_tasks2[_i2];
      task = task.task;
      rows.push({
        isOpen: false,
        cells: [task.attrs.cn[0], (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(task.attrs.nstaskcreated[0]), task.attrs['replica-id'][0], task.attrs.nstaskstatus[0]]
      });
      rows.push({
        parent: count,
        fullWidth: true,
        cells: [{
          title: this.getLog(task.attrs.nstasklog[0])
        }]
      });
      count += 2;
    }

    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: rows,
      page: 1
    });
  }

  render() {
    var _this$state4 = this.state,
        columns = _this$state4.columns,
        rows = _this$state4.rows,
        perPage = _this$state4.perPage,
        page = _this$state4.page,
        sortBy = _this$state4.sortBy;
    var origRows = [...rows];
    var startIdx = (perPage * page - perPage) * 2;
    var tableRows = origRows.splice(startIdx, perPage * 2);

    for (var idx = 1, count = 0; idx < tableRows.length; idx += 2, count += 2) {
      // Rewrite parent index to match new spliced array
      tableRows[idx].parent = count;
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.Table, {
      className: "ds-margin-top",
      "aria-label": "Expandable table",
      cells: columns,
      rows: tableRows,
      onCollapse: this.onCollapse,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.TableVariant.compact,
      sortBy: sortBy,
      onSort: this.onSort
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Pagination, {
      itemCount: this.props.tasks.length,
      widgetId: "pagination-options-menu-bottom",
      perPage: this.state.perPage,
      page: this.state.page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

class WinsyncAgmtTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'Agreement',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable],
        cellFormatters: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.expandable]
      }, {
        title: 'Replica',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, {
        title: 'Enabled',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, {
        title: ''
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage,
        page: 1
      });
    };

    this.onSort = this.onSort.bind(this);
    this.onCollapse = this.onCollapse.bind(this);
    this.getExpandedRow = this.getExpandedRow.bind(this);
  }

  getExpandedRow(agmt) {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Grid, {
      className: "ds-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Session In Progress:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt['update-in-progress'][0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Changes Sent:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt['number-changes-sent'][0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Last Init Started:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(agmt['last-init-start'][0]))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Last Init Ended:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(agmt['last-init-end'][0]))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Last Init Status:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt['last-init-status'][0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Last Updated Started:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(agmt['last-update-start'][0]))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Last Update Ended:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(agmt['last-update-end'][0]))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Last Update Status:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt['last-update-status'][0])));
  }

  getWakeupButton(name) {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Button, {
      id: name,
      variant: "primary",
      onClick: this.props.pokeAgmt,
      title: "Awaken the winsync replication agreement",
      isSmall: true
    }, "Poke");
  }

  componentDidMount() {
    var rows = [];
    var columns = [...this.state.columns];
    var count = 0;

    var _iterator5 = _createForOfIteratorHelper(this.props.agmts),
        _step5;

    try {
      for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
        var agmt = _step5.value;
        rows.push({
          isOpen: false,
          cells: [agmt['agmt-name'][0], agmt.replica[0], agmt['replica-enabled'][0], {
            title: this.getWakeupButton(agmt['agmt-name'][0])
          }]
        });
        rows.push({
          parent: count,
          fullWidth: true,
          cells: [{
            title: this.getExpandedRow(agmt)
          }]
        });
        count += 2;
      }
    } catch (err) {
      _iterator5.e(err);
    } finally {
      _iterator5.f();
    }

    if (rows.length == 0) {
      rows = [{
        cells: ['No Agreements']
      }];
      columns = [{
        title: 'Winsync Agreements'
      }];
    }

    this.setState({
      rows: rows,
      columns: columns
    });
  }

  onCollapse(event, rowKey, isOpen) {
    var _this$state5 = this.state,
        rows = _this$state5.rows,
        perPage = _this$state5.perPage,
        page = _this$state5.page;
    var index = perPage * (page - 1) * 2 + rowKey; // Adjust for page set

    rows[index].isOpen = isOpen;
    this.setState({
      rows
    });
  }

  onSort(_event, index, direction) {
    var sorted_agmts = [];
    var rows = [];
    var count = 0; // Convert the conns into a sortable array based on the column indexes

    var _iterator6 = _createForOfIteratorHelper(this.props.agmts),
        _step6;

    try {
      for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
        var _agmt = _step6.value;
        sorted_agmts.push({
          agmt: _agmt,
          1: _agmt['agmt-name'][0],
          2: _agmt.replica[0],
          3: _agmt['replica-enabled'][0]
        });
      } // Sort the connections and build the new rows

    } catch (err) {
      _iterator6.e(err);
    } finally {
      _iterator6.f();
    }

    sorted_agmts.sort((a, b) => a[index] > b[index] ? 1 : -1);

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.SortByDirection.asc) {
      sorted_agmts.reverse();
    }

    for (var _i3 = 0, _sorted_agmts = sorted_agmts; _i3 < _sorted_agmts.length; _i3++) {
      var agmt = _sorted_agmts[_i3];
      agmt = agmt.agmt;
      rows.push({
        isOpen: false,
        cells: [agmt['agmt-name'][0], agmt.replica[0], agmt['replica-enabled'][0], {
          title: this.getWakeupButton(agmt['agmt-name'][0])
        }]
      });
      rows.push({
        parent: count,
        fullWidth: true,
        cells: [{
          title: this.getExpandedRow(agmt)
        }]
      });
      count += 2;
    }

    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: rows,
      page: 1
    });
  }

  render() {
    var _this$state6 = this.state,
        columns = _this$state6.columns,
        rows = _this$state6.rows,
        perPage = _this$state6.perPage,
        page = _this$state6.page,
        sortBy = _this$state6.sortBy; // We are using an expandable list, so every row has a child row with an
    // index that points back to the parent.  So when we splice the rows for
    // pagination we have to treat each connection as two rows, and we need
    // to rewrite the child's parent index to point to the correct location
    // in the new spliced array

    var origRows = [...rows];
    var startIdx = (perPage * page - perPage) * 2;
    var tableRows = origRows.splice(startIdx, perPage * 2);

    for (var idx = 1, count = 0; idx < tableRows.length; idx += 2, count += 2) {
      // Rewrite parent index to match new spliced array
      tableRows[idx].parent = count;
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.Table, {
      className: "ds-margin-top",
      "aria-label": "Expandable table",
      cells: columns,
      rows: tableRows,
      onCollapse: this.onCollapse,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.TableVariant.compact,
      sortBy: sortBy,
      onSort: this.onSort
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Pagination, {
      itemCount: this.props.agmts.length,
      widgetId: "pagination-options-menu-bottom",
      perPage: this.state.perPage,
      page: this.state.page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

class AgmtTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'Agreement',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable],
        cellFormatters: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.expandable]
      }, {
        title: 'Replica',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, {
        title: 'Enabled',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, {
        title: ''
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage,
        page: 1
      });
    };

    this.onSort = this.onSort.bind(this);
    this.onCollapse = this.onCollapse.bind(this);
    this.getExpandedRow = this.getExpandedRow.bind(this);
  }

  getExpandedRow(agmt) {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Grid, {
      className: "ds-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Session In Progress:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt['update-in-progress'][0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Changes Sent:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt['number-changes-sent'][0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Changes Skipped:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt['number-changes-skipped'][0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Reap Active:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt['reap-active'][0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Last Init Started:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(agmt['last-init-start'][0]))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Last Init Ended:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(agmt['last-init-end'][0]))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Last Init Status:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt['last-init-status'][0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Last Updated Started:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(agmt['last-update-start'][0]))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Last Update Ended:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(agmt['last-update-end'][0]))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Last Update Status:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt['last-update-status'][0])));
  }

  getWakeupButton(name) {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Button, {
      id: name,
      variant: "primary",
      onClick: this.props.pokeAgmt,
      title: "Awaken the replication agreement",
      isSmall: true
    }, "Poke");
  }

  componentDidMount() {
    var rows = [];
    var columns = [...this.state.columns];
    var count = 0;

    var _iterator7 = _createForOfIteratorHelper(this.props.agmts),
        _step7;

    try {
      for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
        var agmt = _step7.value;
        rows.push({
          isOpen: false,
          cells: [agmt['agmt-name'][0], agmt.replica[0], agmt['replica-enabled'][0], {
            title: this.getWakeupButton(agmt['agmt-name'][0])
          }]
        });
        rows.push({
          parent: count,
          fullWidth: true,
          cells: [{
            title: this.getExpandedRow(agmt)
          }]
        });
        count += 2;
      }
    } catch (err) {
      _iterator7.e(err);
    } finally {
      _iterator7.f();
    }

    if (rows.length == 0) {
      rows = [{
        cells: ['No Agreements']
      }];
      columns = [{
        title: 'Replication Agreements'
      }];
    }

    this.setState({
      rows: rows,
      columns: columns
    });
  }

  onCollapse(event, rowKey, isOpen) {
    var _this$state7 = this.state,
        rows = _this$state7.rows,
        perPage = _this$state7.perPage,
        page = _this$state7.page;
    var index = perPage * (page - 1) * 2 + rowKey; // Adjust for page set

    rows[index].isOpen = isOpen;
    this.setState({
      rows
    });
  }

  onSort(_event, index, direction) {
    var sorted_agmts = [];
    var rows = [];
    var count = 0; // Convert the conns into a sortable array based on the column indexes

    var _iterator8 = _createForOfIteratorHelper(this.props.agmts),
        _step8;

    try {
      for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
        var _agmt2 = _step8.value;
        sorted_agmts.push({
          agmt: _agmt2,
          1: _agmt2['agmt-name'][0],
          2: _agmt2.replica[0],
          3: _agmt2['replica-enabled'][0]
        });
      } // Sort the connections and build the new rows

    } catch (err) {
      _iterator8.e(err);
    } finally {
      _iterator8.f();
    }

    sorted_agmts.sort((a, b) => a[index] > b[index] ? 1 : -1);

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.SortByDirection.asc) {
      sorted_agmts.reverse();
    }

    for (var _i4 = 0, _sorted_agmts2 = sorted_agmts; _i4 < _sorted_agmts2.length; _i4++) {
      var agmt = _sorted_agmts2[_i4];
      agmt = agmt.agmt;
      rows.push({
        isOpen: false,
        cells: [agmt['agmt-name'][0], agmt.replica[0], agmt['replica-enabled'][0], {
          title: this.getWakeupButton(agmt['agmt-name'][0])
        }]
      });
      rows.push({
        parent: count,
        fullWidth: true,
        cells: [{
          title: this.getExpandedRow(agmt)
        }]
      });
      count += 2;
    }

    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: rows,
      page: 1
    });
  }

  render() {
    // This is an expandable list
    var _this$state8 = this.state,
        columns = _this$state8.columns,
        rows = _this$state8.rows,
        perPage = _this$state8.perPage,
        page = _this$state8.page,
        sortBy = _this$state8.sortBy;
    var origRows = [...rows];
    var startIdx = (perPage * page - perPage) * 2;
    var tableRows = origRows.splice(startIdx, perPage * 2);

    for (var idx = 1, count = 0; idx < tableRows.length; idx += 2, count += 2) {
      // Rewrite parent index to match new spliced array
      tableRows[idx].parent = count;
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.Table, {
      className: "ds-margin-top",
      "aria-label": "Expandable table",
      cells: columns,
      rows: tableRows,
      onCollapse: this.onCollapse,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.TableVariant.compact,
      sortBy: sortBy,
      onSort: this.onSort
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Pagination, {
      itemCount: this.props.agmts.length,
      widgetId: "pagination-options-menu-bottom",
      perPage: this.state.perPage,
      page: this.state.page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

class ConnectionTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'Connection Opened',
        cellFormatters: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.expandable],
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, {
        title: 'IP Address',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, {
        title: 'Conn ID',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, {
        title: 'Bind DN',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, {
        title: 'Max Threads',
        transforms: [(0,_patternfly_react_table__WEBPACK_IMPORTED_MODULE_15__.info)({
          tooltip: 'If connection is currently at "Max Threads" then it will block new operations'
        }), _patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage,
        page: 1
      });
    };

    this.onSort = this.onSort.bind(this);
    this.onCollapse = this.onCollapse.bind(this);
    this.onSearchChange = this.onSearchChange.bind(this);
    this.getExpandedRow = this.getExpandedRow.bind(this);
  }

  getExpandedRow(ip, conn_date, parts) {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Grid, {
      className: "ds-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "IP Address:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 4
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, ip)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "File Descriptor:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, parts[0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Connection Opened:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 4
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, conn_date)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Operations Started:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, parts[2])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Connection ID:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 4
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, parts[9])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Operations Finished:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, parts[3])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Bind DN:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 4
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, parts[5])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Read/write Blocked:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, parts[4])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 6
    }, "Connection Currently At Max Threads:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, parts[6] == "1" ? "Yes" : "No")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 6
    }, "Number Of Times Connection Hit Max Threads:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, parts[7])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 6
    }, "Number Of Operations Blocked By Max Threads:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, parts[8])));
  }

  componentDidMount() {
    // connection: %s:%s:%s:%s:%s:%s:%s:%s:%s:ip=%s
    //
    // parts:
    //   0 = file descriptor
    //   1 = connection start date
    //   2 = ops initiated
    //   3 = ops completed
    //   4 = r/w blocked
    //   5 = bind DN
    //   6 = connection is currently at max threads (1 = yes, 0 = no)
    //   7 = number of times connection hit max threads
    //   8 = number of operations blocked by max threads
    //   9 = connection ID
    //   10 = IP address (ip=###################)
    //
    // This is too many items to fit in the table, we have to pick and choose
    // what "we" think are the most useful stats...
    var rows = [];
    var count = 0;

    var _iterator9 = _createForOfIteratorHelper(this.props.conns),
        _step9;

    try {
      for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
        var conn = _step9.value;
        var ip_parts = conn.split(':ip=');
        var parts = conn.split(':', 10); // Process the IP address

        var ip = ip_parts[1];

        if (ip == "local") {
          ip = "LDAPI";
        }

        var conn_date = (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(parts[1]);
        rows.push({
          isOpen: false,
          cells: [conn_date, ip, parts[9], parts[5], parts[6] == "1" ? "Yes" : "No"]
        });
        rows.push({
          parent: count,
          fullWidth: true,
          cells: [{
            title: this.getExpandedRow(ip, conn_date, parts)
          }]
        });
        count += 2;
      }
    } catch (err) {
      _iterator9.e(err);
    } finally {
      _iterator9.f();
    }

    this.setState({
      rows: rows
    });
  }

  onCollapse(event, rowKey, isOpen) {
    var _this$state9 = this.state,
        rows = _this$state9.rows,
        perPage = _this$state9.perPage,
        page = _this$state9.page;
    var index = perPage * (page - 1) * 2 + rowKey; // Adjust for page set

    rows[index].isOpen = isOpen;
    this.setState({
      rows
    });
  }

  onSearchChange(value, event) {
    var rows = [];
    var count = 0;

    var _iterator10 = _createForOfIteratorHelper(this.props.conns),
        _step10;

    try {
      for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
        var conn = _step10.value;
        var ip_parts = conn.split(':ip=');
        var parts = conn.split(':', 10); // Process the IP address

        var ip = ip_parts[1];

        if (ip == "local") {
          ip = "LDAPI";
        }

        var conn_date = (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(parts[1]);
        var val = value.toLowerCase();
        var conn_raw = conn.toLowerCase(); // Check for matches of all the parts

        if (val != "" && conn_raw.indexOf(val) == -1 && ip.toLowerCase().indexOf(val) == -1 && conn_date.indexOf(value) == -1) {
          // Not a match
          continue;
        }

        rows.push({
          isOpen: false,
          cells: [conn_date, ip, parts[9], parts[5], parts[6] == "1" ? "Yes" : "No"]
        });
        rows.push({
          parent: count,
          fullWidth: true,
          cells: [{
            title: this.getExpandedRow(ip, conn_date, parts)
          }]
        });
        count += 2;
      }
    } catch (err) {
      _iterator10.e(err);
    } finally {
      _iterator10.f();
    }

    this.setState({
      rows: rows,
      value: value,
      page: 1
    });
  }

  onSort(_event, index, direction) {
    var sorted_conns = [];
    var rows = [];
    var count = 0; // Convert the conns into a sortable array based on the column indexes

    var _iterator11 = _createForOfIteratorHelper(this.props.conns),
        _step11;

    try {
      for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
        var _conn = _step11.value;

        var _ip_parts = _conn.split(':ip=');

        var _parts = _conn.split(':', 10);

        var _ip = _ip_parts[1];

        if (_ip == "local") {
          _ip = "LDAPI";
        }

        var _conn_date = (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(_parts[1]);

        sorted_conns.push({
          raw: _conn,
          1: _conn_date,
          2: _ip,
          3: _parts[9],
          4: _parts[5],
          5: _parts[6]
        });
      } // Sort the connections and build the new rows

    } catch (err) {
      _iterator11.e(err);
    } finally {
      _iterator11.f();
    }

    sorted_conns.sort((a, b) => a[index] > b[index] ? 1 : -1);

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.SortByDirection.asc) {
      sorted_conns.reverse();
    }

    for (var _i5 = 0, _sorted_conns = sorted_conns; _i5 < _sorted_conns.length; _i5++) {
      var conn = _sorted_conns[_i5];
      var raw_conn = conn.raw;
      var ip_parts = raw_conn.split(':ip=');
      var parts = raw_conn.split(':', 10); // Process the IP address

      var ip = ip_parts[1];

      if (ip == "local") {
        ip = "LDAPI";
      }

      var conn_date = (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(parts[1]);
      rows.push({
        isOpen: false,
        cells: [conn_date, ip, parts[9], parts[5], parts[6] == "1" ? "Yes" : "No"]
      });
      rows.push({
        parent: count,
        fullWidth: true,
        cells: [{
          title: this.getExpandedRow(ip, conn_date, parts)
        }]
      });
      count += 2;
    }

    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: rows,
      page: 1
    });
  }

  render() {
    var _this$state10 = this.state,
        columns = _this$state10.columns,
        rows = _this$state10.rows,
        perPage = _this$state10.perPage,
        page = _this$state10.page,
        sortBy = _this$state10.sortBy;
    var origRows = [...rows];
    var startIdx = (perPage * page - perPage) * 2;
    var tableRows = origRows.splice(startIdx, perPage * 2);

    for (var idx = 1, count = 0; idx < tableRows.length; idx += 2, count += 2) {
      // Rewrite parent index to match new spliced array
      tableRows[idx].parent = count;
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextVariants.h4
    }, "Client Connections:", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", {
      className: "ds-left-margin"
    }, this.props.conns.length))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.SearchInput, {
      className: "ds-margin-top-xlg",
      placeholder: "Search connections",
      value: this.state.value,
      onChange: this.onSearchChange,
      onClear: evt => this.onSearchChange('', evt)
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.Table, {
      className: "ds-margin-top",
      "aria-label": "Expandable table",
      cells: columns,
      rows: tableRows,
      onCollapse: this.onCollapse,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.TableVariant.compact,
      sortBy: sortBy,
      onSort: this.onSort
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Pagination, {
      itemCount: this.props.conns.length,
      widgetId: "pagination-options-menu-bottom",
      perPage: this.state.perPage,
      page: this.state.page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

class GlueTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      dropdownIsOpen: false,
      columns: [{
        title: 'Glue Entry',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable, (0,_patternfly_react_table__WEBPACK_IMPORTED_MODULE_17__.cellWidth)(12)]
      }, {
        title: 'Description',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, {
        title: 'Created',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage,
        page: 1
      });
    };

    this.onSort = this.onSort.bind(this);
  }

  componentDidMount() {
    var rows = [];
    var columns = this.state.columns;

    var _iterator12 = _createForOfIteratorHelper(this.props.glues),
        _step12;

    try {
      for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
        var glue = _step12.value;
        rows.push({
          cells: [glue.dn, glue.attrs.nsds5replconflict[0], (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(glue.attrs.createtimestamp[0])]
        });
      }
    } catch (err) {
      _iterator12.e(err);
    } finally {
      _iterator12.f();
    }

    this.setState({
      rows: rows,
      columns: columns
    });
  }

  onCollapse(event, rowKey, isOpen) {
    var _this$state11 = this.state,
        rows = _this$state11.rows,
        perPage = _this$state11.perPage,
        page = _this$state11.page;
    var index = perPage * (page - 1) * 2 + rowKey; // Adjust for page set

    rows[index].isOpen = isOpen;
    this.setState({
      rows
    });
  }

  onSort(_event, index, direction) {
    var sorted_glues = [];
    var rows = []; // Convert the conns into a sortable array

    var _iterator13 = _createForOfIteratorHelper(this.props.glues),
        _step13;

    try {
      for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {
        var _glue = _step13.value;
        sorted_glues.push({
          1: _glue.dn,
          2: _glue.attrs.nsds5replconflict[0],
          3: (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(_glue.attrs.createtimestamp[0])
        });
      } // Sort the connections and build the new rows

    } catch (err) {
      _iterator13.e(err);
    } finally {
      _iterator13.f();
    }

    sorted_glues.sort((a, b) => a[index] > b[index] ? 1 : -1);

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.SortByDirection.asc) {
      sorted_glues.reverse();
    }

    for (var _i6 = 0, _sorted_glues = sorted_glues; _i6 < _sorted_glues.length; _i6++) {
      var glue = _sorted_glues[_i6];
      rows.push({
        isOpen: false,
        cells: [glue['1'], glue['2'], glue['3']]
      });
    }

    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: rows,
      page: 1
    });
  }

  actions() {
    return [{
      title: 'Convert Glue Entry',
      onClick: (event, rowId, rowData, extra) => this.props.convertGlue(rowData.cells[0])
    }, {
      title: 'Delete Glue Entry',
      onClick: (event, rowId, rowData, extra) => this.props.deleteGlue(rowData.cells[0])
    }];
  }

  render() {
    var _this$state12 = this.state,
        perPage = _this$state12.perPage,
        page = _this$state12.page,
        sortBy = _this$state12.sortBy;
    var rows = JSON.parse(JSON.stringify(this.state.rows)); // Deep copy

    var columns = this.state.columns;
    var has_rows = true;

    if (rows.length == 0) {
      has_rows = false;
      rows = [{
        cells: ['No Glue Entries']
      }];
      columns = [{
        title: 'Replication Conflict Glue Entries'
      }];
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.Table, {
      className: "ds-margin-top",
      "aria-label": "glue table",
      cells: columns,
      rows: rows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.TableVariant.compact,
      sortBy: sortBy,
      onSort: this.onSort,
      actions: has_rows ? this.actions() : null,
      dropdownPosition: "right",
      dropdownDirection: "bottom"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Pagination, {
      itemCount: this.props.glues.length,
      widgetId: "pagination-options-menu-bottom",
      perPage: perPage,
      page: page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

class ConflictTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'Conflict DN',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, {
        title: 'Description',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, {
        title: 'Created',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, {
        title: ''
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage
      });
    };

    this.onSort = this.onSort.bind(this);
    this.getResolveButton = this.getResolveButton.bind(this);
  }

  getResolveButton(name) {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Button, {
      id: name,
      variant: "primary",
      isSmall: true,
      onClick: () => {
        this.props.resolveConflict(name);
      }
    }, "Resolve");
  }

  componentDidMount() {
    var rows = [];
    var columns = this.state.columns;

    var _iterator14 = _createForOfIteratorHelper(this.props.conflicts),
        _step14;

    try {
      for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {
        var conflict = _step14.value;
        rows.push({
          isOpen: false,
          cells: [conflict.dn, conflict.attrs.nsds5replconflict[0], (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(conflict.attrs.createtimestamp[0]), {
            title: this.getResolveButton(conflict.dn)
          }]
        });
      }
    } catch (err) {
      _iterator14.e(err);
    } finally {
      _iterator14.f();
    }

    if (rows.length == 0) {
      rows = [{
        cells: ['No Conflict Entries']
      }];
      columns = [{
        title: 'Replication Conflict Entries'
      }];
    }

    this.setState({
      rows: rows,
      columns: columns
    });
  }

  onSort(_event, index, direction) {
    var sorted_conflicts = [];
    var rows = []; // Convert the conns into a sortable array

    var _iterator15 = _createForOfIteratorHelper(this.props.conflicts),
        _step15;

    try {
      for (_iterator15.s(); !(_step15 = _iterator15.n()).done;) {
        var _conflict = _step15.value;
        sorted_conflicts.push({
          1: _conflict.dn,
          2: _conflict.attrs.nsds5replconflict[0],
          3: (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(_conflict.attrs.createtimestamp[0])
        });
      } // Sort the connections and build the new rows

    } catch (err) {
      _iterator15.e(err);
    } finally {
      _iterator15.f();
    }

    sorted_conflicts.sort((a, b) => a[index] > b[index] ? 1 : -1);

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.SortByDirection.asc) {
      sorted_conflicts.reverse();
    }

    for (var _i7 = 0, _sorted_conflicts = sorted_conflicts; _i7 < _sorted_conflicts.length; _i7++) {
      var conflict = _sorted_conflicts[_i7];
      rows.push({
        isOpen: false,
        cells: [conflict['1'], conflict['2'], conflict['3'], {
          title: this.getResolveButton(conflict['1'])
        }]
      });
    }

    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: rows,
      page: 1
    });
  }

  render() {
    var _this$state13 = this.state,
        columns = _this$state13.columns,
        rows = _this$state13.rows,
        perPage = _this$state13.perPage,
        page = _this$state13.page,
        sortBy = _this$state13.sortBy;
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.Table, {
      className: "ds-margin-top",
      "aria-label": "conflict table",
      cells: columns,
      rows: rows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.TableVariant.compact,
      sortBy: sortBy,
      onSort: this.onSort
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Pagination, {
      itemCount: this.props.conflicts.length,
      widgetId: "pagination-options-menu-bottom",
      perPage: perPage,
      page: page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

class DiskTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      sortBy: {},
      columns: [{
        title: 'Disk Partition',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, {
        title: 'Disk Size',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, {
        title: 'Used Space',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, {
        title: 'Available Space',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }]
    };
    this.onSort = this.onSort.bind(this);
  }

  onSort(_event, index, direction) {
    var sortedRows = this.props.rows.sort((a, b) => a[index] < b[index] ? -1 : a[index] > b[index] ? 1 : 0);
    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: direction === _patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.SortByDirection.asc ? sortedRows : sortedRows.reverse()
    });
  }

  render() {
    var _this$state14 = this.state,
        columns = _this$state14.columns,
        sortBy = _this$state14.sortBy;
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.Table, {
      "aria-label": "Sortable Table",
      sortBy: sortBy,
      onSort: this.onSort,
      cells: columns,
      rows: this.props.rows
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableBody, null)));
  }

}

class ReportAliasesTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      sortBy: {},
      dropdownIsOpen: false,
      columns: [{
        title: 'Alias',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, {
        title: 'Connection Data',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }]
    };
  }

  actions() {
    return [{
      title: 'Edit Alias',
      onClick: (event, rowId, rowData, extra) => this.props.editConfig(rowData[0], rowData[1])
    }, {
      title: 'Delete Alias',
      onClick: (event, rowId, rowData, extra) => this.props.deleteConfig(rowData[0])
    }];
  }

  render() {
    var columns = this.state.columns;
    var rows = JSON.parse(JSON.stringify(this.props.rows)); // Deep copy

    var has_rows = true;

    if (rows.length == 0) {
      has_rows = false;
      rows = [{
        cells: ['No Aliases']
      }];
      columns = [{
        title: 'Instance Aliases'
      }];
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Text, {
      className: "ds-center ds-margin-bottom",
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextVariants.h4
    }, "Replica Naming Aliases")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.Table, {
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.TableVariant.compact,
      "aria-label": "Sortable Table",
      sortBy: this.props.sortBy,
      onSort: this.props.onSort,
      cells: columns,
      rows: rows,
      actions: has_rows ? this.actions() : null,
      dropdownPosition: "right",
      dropdownDirection: "bottom"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableBody, null)));
  }

}

class ReportCredentialsTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      dropdownIsOpen: false,
      columns: [{
        title: 'Connection Data',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, // connData
      {
        title: 'Bind DN',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, // credsBinddn
      {
        title: 'Password',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      } // credsBindpw
      ]
    };
  }

  actions() {
    return [{
      title: 'Edit Connection',
      onClick: (event, rowId, rowData, extra) => this.props.editConfig(rowData.cells[0], rowData.cells[1], rowData.credsBindpw, rowData.pwInteractive)
    }, {
      title: 'Delete Connection',
      onClick: (event, rowId, rowData, extra) => this.props.deleteConfig(rowData.cells[0])
    }];
  }

  render() {
    var columns = this.state.columns;
    var rows = [];
    var has_rows = true;

    if (this.props.rows.length == 0) {
      has_rows = false;
      rows = [{
        cells: ['No Credentials']
      }];
      columns = [{
        title: 'Credentials Table'
      }];
    } else {
      var _iterator16 = _createForOfIteratorHelper(this.props.rows),
          _step16;

      try {
        for (_iterator16.s(); !(_step16 = _iterator16.n()).done;) {
          var row = _step16.value;
          row = JSON.parse(JSON.stringify(row)); // Deep copy

          var pwInteractive = row.pwInputInterractive;
          var pwField = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, "Interactive Input is set");

          if (!pwInteractive) {
            if (row.credsBindpw == "") {
              pwField = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, "Both Password or Interactive Input flag are not set");
            } else {
              pwField = "********";
            }
          }

          rows.push({
            cells: [row.connData, row.credsBinddn, {
              title: pwField
            }],
            credsBindpw: row.credsBindpw,
            pwInteractive: pwInteractive
          });
        }
      } catch (err) {
        _iterator16.e(err);
      } finally {
        _iterator16.f();
      }
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Text, {
      className: "ds-center ds-margin-bottom",
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextVariants.h4
    }, "Replication Report Credentials")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.Table, {
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.TableVariant.compact,
      "aria-label": "Cred Table",
      sortBy: this.props.sortBy,
      onSort: this.props.onSort,
      cells: columns,
      rows: rows,
      actions: has_rows ? this.actions() : null,
      dropdownPosition: "right",
      dropdownDirection: "bottom"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableBody, null)));
  }

}

class ReportSingleTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'Supplier',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable],
        cellFormatters: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.expandable]
      }, {
        title: 'Agreement',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, {
        title: 'Status',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, {
        title: 'Lag',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }]
    };
    this.onSort = this.onSort.bind(this);
    this.onCollapse = this.onCollapse.bind(this);
    this.getExpandedRow = this.getExpandedRow.bind(this);
  }

  getExpandedRow(agmt) {
    if (agmt['agmt-name'][0] == "-") {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextVariants.h4
      }, "No agreement information"));
    }

    var replEnabled;

    if (agmt['replica-enabled'] == "off") {
      replEnabled = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
        className: "ds-warning-icon"
      }, agmt['replica-enabled'][0], " ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_exclamation_triangle_icon__WEBPACK_IMPORTED_MODULE_18__["default"], null));
    } else {
      replEnabled = agmt['replica-enabled'][0];
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Grid, {
      className: "ds-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Suffix & Replica ID:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt.replicaName[0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Replica Server Status:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt.replicaStatus[0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Replication Enabled:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, replEnabled)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Session In Progress:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt['update-in-progress'][0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Consumer:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt.replica[0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Changes Sent:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt['number-changes-sent'][0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Changes Skipped:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt['number-changes-skipped'][0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Reap Active:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt['reap-active'][0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Last Init Started:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(agmt['last-init-start'][0]))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Last Init Ended:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(agmt['last-init-end'][0]))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Last Init Status:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt['last-init-status'][0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Last Updated Started:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(agmt['last-update-start'][0]))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Last Update Ended:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(agmt['last-update-end'][0]))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Last Update Status:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt['last-update-status'][0])));
  }

  componentDidMount() {
    var rows = [];
    var columns = [...this.state.columns];
    var agmtName;
    var count = 0;

    var _iterator17 = _createForOfIteratorHelper(this.props.rows),
        _step17;

    try {
      for (_iterator17.s(); !(_step17 = _iterator17.n()).done;) {
        var replica = _step17.value;

        if (!('agmt-name' in replica)) {
          replica['agmt-name'] = ["-"];
        }

        if (!('replica' in replica)) {
          replica.replica = ["-"];
        }

        if (!('replica-enabled' in replica)) {
          replica['replica-enabled'] = ["-"];
        }

        if (!('replication-lag-time' in replica)) {
          replica['replication-lag-time'] = ["-"];
        }

        if (!('replication-status' in replica)) {
          replica['replication-status'] = ['-'];
        }

        if (replica['replica-enabled'][0] == "off") {
          agmtName = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
            className: "ds-warning-icon",
            title: "Agreement is disabled"
          }, replica['agmt-name'][0], " ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_exclamation_triangle_icon__WEBPACK_IMPORTED_MODULE_18__["default"], null));
        } else {
          agmtName = replica['agmt-name'][0];
        }

        rows.push({
          isOpen: false,
          cells: [replica.supplierName[0], {
            title: agmtName
          }, replica['replication-status'][0], replica['replication-lag-time'][0]]
        }, {
          parent: count,
          fullWidth: true,
          cells: [{
            title: this.getExpandedRow(replica)
          }]
        });
        count += 2;
      }
    } catch (err) {
      _iterator17.e(err);
    } finally {
      _iterator17.f();
    }

    if (rows.length == 0) {
      rows = [{
        cells: ['No Agreements']
      }];
      columns = [{
        title: 'Replication Agreements'
      }];
    }

    this.setState({
      rows: rows,
      columns: columns
    });
  }

  onCollapse(event, rowKey, isOpen) {
    var rows = this.state.rows; // const index = (perPage * (page - 1) * 2) + rowKey; // Adjust for page set

    rows[rowKey].isOpen = isOpen;
    this.setState({
      rows
    });
  }

  onSort(_event, index, direction) {
    var sorted_agmts = [];
    var rows = [];
    var count = 0; // Convert the conns into a sortable array based on the column indexes

    var _iterator18 = _createForOfIteratorHelper(this.props.rows),
        _step18;

    try {
      for (_iterator18.s(); !(_step18 = _iterator18.n()).done;) {
        var _agmt3 = _step18.value;
        sorted_agmts.push({
          agmt: _agmt3,
          1: _agmt3.supplierName[0],
          2: _agmt3['agmt-name'][0],
          3: ['replication-status'][0],
          4: _agmt3['replication-lag-time'][0],
          enabled: _agmt3['replica-enabled'] !== "off"
        });
      } // Sort the connections and build the new rows

    } catch (err) {
      _iterator18.e(err);
    } finally {
      _iterator18.f();
    }

    sorted_agmts.sort((a, b) => a[index] > b[index] ? 1 : -1);

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.SortByDirection.asc) {
      sorted_agmts.reverse();
    }

    for (var _i8 = 0, _sorted_agmts3 = sorted_agmts; _i8 < _sorted_agmts3.length; _i8++) {
      var agmt = _sorted_agmts3[_i8];
      var agmtName = void 0;

      if (agmt['replica-enabled'] == "off") {
        agmtName = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
          className: "ds-warning-icon",
          title: "Agreement is disabled"
        }, agmt['agmt-name'][0], " ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_exclamation_triangle_icon__WEBPACK_IMPORTED_MODULE_18__["default"], null));
      } else {
        agmtName = agmt['agmt-name'][0];
      }

      agmt = agmt.agmt;
      rows.push({
        isOpen: false,
        cells: [agmt.supplierName[0], {
          title: agmtName
        }, agmt['replication-status'][0], agmt['replication-lag-time'][0]],
        enabled: agmt.enabled
      });
      rows.push({
        parent: count,
        fullWidth: true,
        cells: [{
          title: this.getExpandedRow(agmt)
        }]
      });
      count += 2;
    }

    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: rows
    });
  }

  render() {
    // This is an expandable list
    var _this$state15 = this.state,
        columns = _this$state15.columns,
        rows = _this$state15.rows,
        sortBy = _this$state15.sortBy;
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.Table, {
      className: "ds-margin-top",
      "aria-label": "Expandable table",
      cells: columns,
      rows: rows,
      onCollapse: this.onCollapse,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.TableVariant.compact,
      sortBy: sortBy,
      onSort: this.onSort
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableBody, null)));
  }

}

class ReportConsumersTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      sortBy: {},
      rows: [],
      columns: [{
        title: 'Agreement Name',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable],
        cellFormatters: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.expandable]
      }, {
        title: 'Enabled',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, {
        title: 'Status',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }, {
        title: 'Lag',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.sortable]
      }]
    };
    this.onSort = this.onSort.bind(this);
    this.onCollapse = this.onCollapse.bind(this);
    this.getExpandedRow = this.getExpandedRow.bind(this);
  }

  getExpandedRow(agmt) {
    var replEnabled;

    if (agmt['agmt-name'][0] == "-") {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextVariants.h4
      }, "No agreement information"));
    }

    if (agmt['replica-enabled'] == "off") {
      replEnabled = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
        className: "ds-warning-icon"
      }, agmt['replica-enabled'][0], " ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_exclamation_triangle_icon__WEBPACK_IMPORTED_MODULE_18__["default"], null));
    } else {
      replEnabled = agmt['replica-enabled'][0];
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Grid, {
      className: "ds-margin-left"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Suffix & Replica ID:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt.replicaName[0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Replica Server Status:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt.replicaStatus[0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Replication Enabled:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, replEnabled)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Session In Progress:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt['update-in-progress'][0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Consumer:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt.replica[0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Changes Sent:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt['number-changes-sent'][0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Changes Skipped:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt['number-changes-skipped'][0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Reap Active:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt['reap-active'][0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Last Init Started:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(agmt['last-init-start'][0]))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Last Init Ended:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(agmt['last-init-end'][0]))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Last Init Status:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt['last-init-status'][0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Last Updated Started:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(agmt['last-update-start'][0]))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Last Update Ended:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_1__.get_date_string)(agmt['last-update-end'][0]))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 3
    }, "Last Update Status:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, agmt['last-update-status'][0])));
  }

  componentDidMount() {
    var rows = [];
    var columns = [...this.state.columns];
    var count = 0;

    var _iterator19 = _createForOfIteratorHelper(this.props.rows),
        _step19;

    try {
      for (_iterator19.s(); !(_step19 = _iterator19.n()).done;) {
        var replica = _step19.value;
        var replEnabled = void 0;

        if (!('agmt-name' in replica)) {
          replica['agmt-name'] = ["-"];
        }

        if (!('replica-enabled' in replica)) {
          replica['replica-enabled'] = ["-"];
        }

        if (!('replication-lag-time' in replica)) {
          replica['replication-lag-time'] = ["-"];
        }

        if (!('replication-status' in replica)) {
          replica['replication-status'] = ['-'];
        }

        if (replica['replica-enabled'] == "off") {
          replEnabled = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
            className: "ds-warning-icon",
            title: "Agreement is disabled"
          }, replica['replica-enabled'][0], " ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_exclamation_triangle_icon__WEBPACK_IMPORTED_MODULE_18__["default"], null));
        } else {
          replEnabled = replica['replica-enabled'][0];
        }

        rows.push({
          isOpen: false,
          cells: [replica['agmt-name'][0], {
            title: replEnabled
          }, replica['replication-status'][0], replica['replication-lag-time'][0]]
        }, {
          parent: count,
          fullWidth: true,
          cells: [{
            title: this.getExpandedRow(replica)
          }]
        });
        count += 2;
      }
    } catch (err) {
      _iterator19.e(err);
    } finally {
      _iterator19.f();
    }

    if (rows.length == 0) {
      rows = [{
        cells: ['No Agreements']
      }];
      columns = [{
        title: 'Replication Agreements'
      }];
    }

    this.setState({
      rows: rows,
      columns: columns
    });
  }

  onCollapse(event, rowKey, isOpen) {
    var rows = this.state.rows; // const index = (perPage * (page - 1) * 2) + rowKey; // Adjust for page set

    rows[rowKey].isOpen = isOpen;
    this.setState({
      rows
    });
  }

  onSort(_event, index, direction) {
    var sorted_agmts = [];
    var rows = [];
    var count = 0; // Convert the conns into a sortable array based on the column indexes

    var _iterator20 = _createForOfIteratorHelper(this.props.rows),
        _step20;

    try {
      for (_iterator20.s(); !(_step20 = _iterator20.n()).done;) {
        var _agmt4 = _step20.value;
        sorted_agmts.push({
          agmt: _agmt4,
          1: _agmt4['agmt-name'][0],
          2: _agmt4['agmt-enabled'][0],
          3: _agmt4['replication-status'][0],
          4: _agmt4['replication-lag-time'][0]
        });
      } // Sort the connections and build the new rows

    } catch (err) {
      _iterator20.e(err);
    } finally {
      _iterator20.f();
    }

    sorted_agmts.sort((a, b) => a[index] > b[index] ? 1 : -1);

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.SortByDirection.asc) {
      sorted_agmts.reverse();
    }

    for (var _i9 = 0, _sorted_agmts4 = sorted_agmts; _i9 < _sorted_agmts4.length; _i9++) {
      var agmt = _sorted_agmts4[_i9];
      var replEnabled = void 0;
      agmt = agmt.agmt;

      if (agmt['replica-enabled'] == "off") {
        replEnabled = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
          className: "ds-warning-icon",
          title: "Agreement is disabled"
        }, agmt['replica-enabled'][0], " ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_exclamation_triangle_icon__WEBPACK_IMPORTED_MODULE_18__["default"], null));
      } else {
        replEnabled = agmt['replica-enabled'][0];
      }

      rows.push({
        isOpen: false,
        cells: [agmt['agmt-name'][0], {
          title: replEnabled
        }, agmt['replication-status'][0], agmt['replication-lag-time'][0]]
      });
      rows.push({
        parent: count,
        fullWidth: true,
        cells: [{
          title: this.getExpandedRow(agmt)
        }]
      });
      count += 2;
    }

    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: rows
    });
  }

  render() {
    // This is an expandable list
    var _this$state16 = this.state,
        columns = _this$state16.columns,
        rows = _this$state16.rows,
        sortBy = _this$state16.sortBy;
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.Table, {
      className: "ds-margin-top",
      "aria-label": "Expandable consumer table",
      cells: columns,
      rows: rows,
      onCollapse: this.onCollapse,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.TableVariant.compact,
      sortBy: sortBy,
      onSort: this.onSort
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableBody, null)));
  }

} // Proptypes and defaults


AgmtTable.propTypes = {
  agmts: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().array),
  pokeAgmt: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func)
};
AgmtTable.defaultProps = {
  agmts: []
};
WinsyncAgmtTable.propTypes = {
  agmts: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().array),
  pokeAgmt: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func)
};
WinsyncAgmtTable.defaultProps = {
  agmts: []
};
ConnectionTable.propTypes = {
  conns: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().array)
};
ConnectionTable.defaultProps = {
  conns: []
};
CleanALLRUVTable.propTypes = {
  tasks: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().array)
};
CleanALLRUVTable.defaultProps = {
  tasks: []
};
AbortCleanALLRUVTable.propTypes = {
  tasks: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().array)
};
AbortCleanALLRUVTable.defaultProps = {
  tasks: []
};
ConflictTable.propTypes = {
  conflicts: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().array),
  resolveConflict: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func)
};
ConflictTable.defaultProps = {
  conflicts: []
};
GlueTable.propTypes = {
  glues: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().array),
  convertGlue: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  deleteGlue: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func)
};
GlueTable.defaultProps = {
  glues: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().array)
};
ReportCredentialsTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().array),
  editConfig: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  deleteConfig: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func)
};
ReportCredentialsTable.defaultProps = {
  rows: []
};
ReportAliasesTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().array),
  editConfig: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func),
  deleteConfig: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().func)
};
ReportAliasesTable.defaultProps = {
  rows: []
};
ReportConsumersTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().array)
};
ReportConsumersTable.defaultProps = {
  rows: []
};
ReportSingleTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().array)
};
ReportSingleTable.defaultProps = {
  rows: []
};
DiskTable.defaultProps = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_19___default().array)
};
DiskTable.defaultProps = {
  rows: []
};


/***/ }),

/***/ "./src/lib/monitor/replMonitor.jsx":
/*!*****************************************!*\
  !*** ./src/lib/monitor/replMonitor.jsx ***!
  \*****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ReplMonitor": () => (/* binding */ ReplMonitor),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_15__);
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _monitorTables_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./monitorTables.jsx */ "./src/lib/monitor/monitorTables.jsx");
/* harmony import */ var _monitorModals_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./monitorModals.jsx */ "./src/lib/monitor/monitorModals.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/ExpandableSection/ExpandableSection.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/SortColumn.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }










var _ = (cockpit__WEBPACK_IMPORTED_MODULE_1___default().gettext);
class ReplMonitor extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      activeTabKey: 0,
      activeTabReplKey: 0,
      activeTabTaskKey: 0,
      activeTabConflictKey: 0,
      logData: "",
      showBindModal: false,
      showLogModal: false,
      showFullReportModal: false,
      showReportLoginModal: false,
      showCredentialsModal: false,
      showAliasesModal: false,
      showCompareModal: false,
      showConfirmDeleteGlue: false,
      showConfirmConvertGlue: false,
      showConfirmSwapConflict: false,
      showConfirmConvertConflict: false,
      showConfirmDeleteConflict: false,
      modalSpinning: false,
      modalChecked: false,
      lagAgmts: [],
      credsData: [],
      aliasData: [],
      reportData: [],
      agmt: "",
      convertRDN: "",
      glueEntry: "",
      conflictEntry: "",
      binddn: "cn=Directory Manager",
      bindpw: "",
      errObj: {},
      aliasList: [],
      newEntry: false,
      initCreds: true,
      isExpanded: false,
      fullReportProcess: {},
      interruptLoginCredsInput: false,
      doFullReportCleanup: false,
      reportRefreshing: false,
      reportLoading: false,
      credsInstanceName: "",
      disableBinddn: false,
      loginBinddn: "",
      loginBindpw: "",
      inputLoginData: false,
      credsHostname: "",
      credsPort: 389,
      credsBinddn: "cn=Directory Manager",
      credsBindpw: "",
      pwInputInterractive: false,
      aliasHostname: "",
      aliasPort: 389,
      aliasName: "",
      credentialsList: [],
      dynamicCredentialsList: [],
      credSortBy: {},
      aliasesList: [],
      aliasSortBy: {},
      deleteConflictRadio: true,
      swapConflictRadio: false,
      convertConflictRadio: false
    };

    this.onToggle = isExpanded => {
      this.setState({
        isExpanded
      });
    }; // Toggle currently active tab


    this.handleNavSelect = (event, tabIndex) => {
      this.setState({
        activeTabKey: tabIndex
      });
    }; // Toggle currently active tab


    this.handleNavTaskSelect = (event, tabIndex) => {
      this.setState({
        activeTabTaskKey: tabIndex
      });
    }; // Toggle currently active tab


    this.handleNavConflictSelect = (event, tabIndex) => {
      this.setState({
        activeTabConflictKey: tabIndex
      });
    }; // Toggle currently active tab


    this.handleNavReplSelect = (event, tabIndex) => {
      this.setState({
        activeTabReplKey: tabIndex
      });
    };

    this.maxValue = 65534;
    this.handleFieldChange = this.handleFieldChange.bind(this);
    this.handleReportNavSelect = this.handleReportNavSelect.bind(this);
    this.pokeAgmt = this.pokeAgmt.bind(this);
    this.pokeWinsyncAgmt = this.pokeWinsyncAgmt.bind(this);
    this.showAgmtModalRemote = this.showAgmtModalRemote.bind(this);
    this.closeAgmtModal = this.closeAgmtModal.bind(this);
    this.viewCleanLog = this.viewCleanLog.bind(this);
    this.viewAbortLog = this.viewAbortLog.bind(this);
    this.closeLogModal = this.closeLogModal.bind(this);
    this.closeReportLoginModal = this.closeReportLoginModal.bind(this); // Replication report functions

    this.addCreds = this.addCreds.bind(this);
    this.editCreds = this.editCreds.bind(this);
    this.removeCreds = this.removeCreds.bind(this);
    this.openCredsModal = this.openCredsModal.bind(this);
    this.showAddCredsModal = this.showAddCredsModal.bind(this);
    this.showEditCredsModal = this.showEditCredsModal.bind(this);
    this.closeCredsModal = this.closeCredsModal.bind(this);
    this.onCredSort = this.onCredSort.bind(this);
    this.addAliases = this.addAliases.bind(this);
    this.editAliases = this.editAliases.bind(this);
    this.removeAliases = this.removeAliases.bind(this);
    this.openAliasesModal = this.openAliasesModal.bind(this);
    this.showAddAliasesModal = this.showAddAliasesModal.bind(this);
    this.showEditAliasesModal = this.showEditAliasesModal.bind(this);
    this.closeAliasesModal = this.closeAliasesModal.bind(this);
    this.onAliasSort = this.onAliasSort.bind(this);
    this.doFullReport = this.doFullReport.bind(this);
    this.processCredsInput = this.processCredsInput.bind(this);
    this.closeReportModal = this.closeReportModal.bind(this);
    this.refreshFullReport = this.refreshFullReport.bind(this); // Conflict entry functions

    this.convertConflict = this.convertConflict.bind(this);
    this.swapConflict = this.swapConflict.bind(this);
    this.deleteConflict = this.deleteConflict.bind(this);
    this.resolveConflict = this.resolveConflict.bind(this);
    this.convertGlue = this.convertGlue.bind(this);
    this.deleteGlue = this.deleteGlue.bind(this);
    this.closeCompareModal = this.closeCompareModal.bind(this);
    this.confirmDeleteGlue = this.confirmDeleteGlue.bind(this);
    this.confirmConvertGlue = this.confirmConvertGlue.bind(this);
    this.closeConfirmDeleteGlue = this.closeConfirmDeleteGlue.bind(this);
    this.closeConfirmConvertGlue = this.closeConfirmConvertGlue.bind(this);
    this.handleRadioChange = this.handleRadioChange.bind(this);
    this.handleChange = this.handleChange.bind(this);
    this.handleConflictConversion = this.handleConflictConversion.bind(this);
    this.confirmDeleteConflict = this.confirmDeleteConflict.bind(this);
    this.confirmConvertConflict = this.confirmConvertConflict.bind(this);
    this.confirmSwapConflict = this.confirmSwapConflict.bind(this);
    this.closeConfirmDeleteConflict = this.closeConfirmDeleteConflict.bind(this);
    this.closeConfirmConvertConflict = this.closeConfirmConvertConflict.bind(this);
    this.closeConfirmSwapConflict = this.closeConfirmSwapConflict.bind(this);
    this.onMinusConfig = this.onMinusConfig.bind(this);
    this.onConfigChange = this.onConfigChange.bind(this);
    this.onPlusConfig = this.onPlusConfig.bind(this);
  }

  componentDidUpdate(prevProps, prevState) {
    if (!prevState.showReportLoginModal && this.state.showReportLoginModal) {
      // When the login modal turned on
      // We set timeout to close it and stop the report
      if (this.timer) window.clearTimeout(this.timer);
      this.timer = window.setTimeout(() => {
        this.setState({
          showFullReportModal: false
        });
        this.timer = null;
      }, 300);
    }

    if (prevState.showReportLoginModal && !this.state.showReportLoginModal) {
      // When the login modal turned off
      // We clear the timeout
      if (this.timer) window.clearTimeout(this.timer);
    }
  }

  componentWillUnmount() {
    // It's important to do so we don't get the error
    // on the unmounted component
    if (this.timer) window.clearTimeout(this.timer);
  }

  componentDidMount() {
    var _this = this;

    if (this.state.initCreds) {
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get", "nsslapd-port", "nsslapd-localhost", "nsslapd-rootdn"];
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("ReplMonitor", "add credentials during componentDidMount", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_1___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        var config = JSON.parse(content);
        this.setState(prevState => ({
          credentialsList: [...prevState.credentialsList, {
            connData: "".concat(config.attrs["nsslapd-localhost"][0], ":").concat(config.attrs["nsslapd-port"][0]),
            credsBinddn: config.attrs["nsslapd-rootdn"][0],
            credsBindpw: "",
            pwInputInterractive: true
          }]
        }));

        var _iterator = _createForOfIteratorHelper(this.props.data.replAgmts),
            _step;

        try {
          var _loop = function _loop() {
            var agmt = _step.value;

            _this.setState(prevState => ({
              credentialsList: [...prevState.credentialsList, {
                connData: "".concat(agmt.replica),
                credsBinddn: config.attrs["nsslapd-rootdn"][0],
                credsBindpw: "",
                pwInputInterractive: true
              }],
              initCreds: false
            }));
          };

          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            _loop();
          }
        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }
      }).fail(err => {
        var errMsg = JSON.parse(err);
        this.props.addNotification("error", "Failed to get config nsslapd-port, nsslapd-localhost and nasslapd-rootdn: ".concat(errMsg.desc));
      });
    }

    this.props.enableTree();
  }

  onMinusConfig(id) {
    this.setState({
      [id]: Number(this.state[id]) - 1
    });
  }

  onConfigChange(event, id, min) {
    var newValue = isNaN(event.target.value) ? 0 : Number(event.target.value);
    this.setState({
      [id]: newValue > this.maxValue ? this.maxValue : newValue < min ? min : newValue
    });
  }

  onPlusConfig(id) {
    this.setState({
      [id]: Number(this.state[id]) + 1
    });
  }

  handleRadioChange(value, evt) {
    // Handle the radio button changes
    var radioID = {
      swapConflictRadio: false,
      deleteConflictRadio: false,
      convertConflictRadio: false
    };
    radioID[evt.target.id] = value;
    this.setState({
      swapConflictRadio: radioID.swapConflictRadio,
      deleteConflictRadio: radioID.deleteConflictRadio,
      convertConflictRadio: radioID.convertConflictRadio
    });
  }

  handleChange(value, evt) {
    // PF 4 version
    if (evt.target.type === 'number') {
      if (value) {
        value = parseInt(value);
      } else {
        value = 1;
      }
    }

    this.setState({
      [evt.target.id]: value
    });
  }

  handleFieldChange(e) {
    // PF 3 version
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;

    if (e.target.type === 'number') {
      if (e.target.value) {
        value = parseInt(e.target.value);
      } else {
        value = 1;
      }
    }

    this.setState({
      [e.target.id]: value
    });
  }

  convertConflict() {
    this.setState({
      modalSpinning: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-conflict", "convert", this.state.conflictEntry, "--new-rdn=" + this.state.convertRDN];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("convertConflict", "convert conflict entry", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_1___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reloadConflicts();
      this.props.addNotification("success", "Replication conflict entry was converted into a valid entry");
      this.setState({
        showCompareModal: false
      });
      this.closeConfirmConvertConflict();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to convert conflict entry entry: ".concat(this.state.conflictEntry, " - ").concat(errMsg.desc));
      this.closeConfirmConvertConflict();
    });
  }

  swapConflict() {
    this.setState({
      modalSpinning: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-conflict", "swap", this.state.conflictEntry];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("swapConflict", "swap in conflict entry", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_1___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reloadConflicts();
      this.props.addNotification("success", "Replication Conflict Entry is now the Valid Entry");
      this.setState({
        showCompareModal: false
      });
      this.closeConfirmSwapConflict();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to swap in conflict entry: ".concat(this.state.conflictEntry, " - ").concat(errMsg.desc));
      this.closeConfirmSwapConflict();
    });
  }

  deleteConflict() {
    this.setState({
      modalSpinning: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-conflict", "delete", this.state.conflictEntry];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("deleteConflict", "Delete conflict entry", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_1___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reloadConflicts();
      this.props.addNotification("success", "Replication conflict entry was deleted");
      this.setState({
        showCompareModal: false
      });
      this.closeConfirmConvertConflict();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to delete conflict entry: ".concat(this.state.conflictEntry, " - ").concat(errMsg.desc));
      this.closeConfirmDeleteConflict();
    });
  }

  resolveConflict(dn) {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-conflict", "compare", dn];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("resolveConflict", "Compare conflict entry with valid entry", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_1___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var entries = JSON.parse(content);
      this.setState({
        cmpConflictEntry: entries.items[0],
        cmpValidEntry: entries.items[1],
        showCompareModal: true,
        deleteConflictRadio: true,
        swapConflictRadio: false,
        convertConflictRadio: false,
        convertRDN: ""
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to get conflict entries: ".concat(dn, " - ").concat(errMsg.desc));
    });
  }

  confirmConvertGlue(dn) {
    this.setState({
      showConfirmConvertGlue: true,
      glueEntry: dn,
      modalChecked: false,
      modalSpinning: false
    });
  }

  closeConfirmConvertGlue() {
    this.setState({
      showConfirmConvertGlue: false,
      glueEntry: "",
      modalChecked: false,
      modalSpinning: false
    });
  }

  convertGlue() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-conflict", "convert-glue", this.state.glueEntry];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("convertGlue", "Convert glue entry to normal entry", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_1___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reloadConflicts();
      this.props.addNotification("success", "Replication glue entry was converted");
      this.closeConfirmConvertGlue();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to convert glue entry: ".concat(this.state.glueEntry, " - ").concat(errMsg.desc));
      this.closeConfirmConvertGlue();
    });
  }

  confirmDeleteGlue(dn) {
    this.setState({
      showConfirmDeleteGlue: true,
      glueEntry: dn,
      modalChecked: false,
      modalSpinning: false
    });
  }

  deleteGlue() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-conflict", "delete-glue", this.state.glueEntry];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("deleteGlue", "Delete glue entry", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_1___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reloadConflicts();
      this.props.addNotification("success", "Replication glue entry was deleted");
      this.closeConfirmDeleteGlue();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to delete glue entry: ".concat(this.state.glueEntry, " - ").concat(errMsg.desc));
      this.closeConfirmDeleteGlue();
    });
  }

  closeConfirmDeleteGlue() {
    this.setState({
      showConfirmDeleteGlue: false,
      glueEntry: "",
      modalChecked: false,
      modalSpinning: false
    });
  }

  handleConflictConversion(dn) {
    // Follow the radio button and perform the conflict resolution
    if (this.state.deleteConflictRadio) {
      this.confirmDeleteConflict(dn);
    } else if (this.state.swapConflictRadio) {
      this.confirmSwapConflict(dn);
    } else {
      this.confirmConvertConflict(dn);
    }
  }

  confirmConvertConflict(dn) {
    if (this.state.convertRDN == "") {
      this.props.addNotification("error", "You must provide a RDN if you want to convert the Conflict Entry");
      return;
    }

    this.setState({
      showConfirmConvertConflict: true,
      conflictEntry: dn,
      modalChecked: false,
      modalSpinning: false
    });
  }

  closeConfirmConvertConflict() {
    this.setState({
      showConfirmConvertConflict: false,
      conflictEntry: "",
      modalChecked: false,
      modalSpinning: false,
      convertRDN: ""
    });
  }

  confirmSwapConflict(dn) {
    this.setState({
      showConfirmSwapConflict: true,
      conflictEntry: dn,
      modalChecked: false,
      modalSpinning: false
    });
  }

  closeConfirmSwapConflict() {
    this.setState({
      showConfirmSwapConflict: false,
      conflictEntry: "",
      modalChecked: false,
      modalSpinning: false
    });
  }

  confirmDeleteConflict(dn) {
    this.setState({
      showConfirmDeleteConflict: true,
      conflictEntry: dn,
      modalChecked: false,
      modalSpinning: false
    });
  }

  closeConfirmDeleteConflict() {
    this.setState({
      showConfirmDeleteConflict: false,
      conflictEntry: "",
      modalChecked: false,
      modalSpinning: false
    });
  }

  closeCompareModal() {
    this.setState({
      showCompareModal: false,
      modalChecked: false,
      modalSpinning: false
    });
  }

  handleNavSelect(key) {
    this.setState({
      activeKey: key
    });
  }

  handleReportNavSelect(key) {
    this.setState({
      activeReportKey: key
    });
  }

  closeLogModal() {
    this.setState({
      showLogModal: false
    });
  }

  viewCleanLog(name) {
    var logData = "";

    var _iterator2 = _createForOfIteratorHelper(this.props.data.cleanTasks),
        _step2;

    try {
      for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
        var task = _step2.value;

        if (task.attrs.cn[0] == name) {
          logData = task.attrs.nstasklog[0];
          break;
        }
      }
    } catch (err) {
      _iterator2.e(err);
    } finally {
      _iterator2.f();
    }

    this.setState({
      showLogModal: true,
      logData: logData
    });
  }

  viewAbortLog(name) {
    var logData = "";

    var _iterator3 = _createForOfIteratorHelper(this.props.data.abortTasks),
        _step3;

    try {
      for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
        var task = _step3.value;

        if (task.attrs.cn[0] == name) {
          logData = task.attrs.nstasklog[0];
          break;
        }
      }
    } catch (err) {
      _iterator3.e(err);
    } finally {
      _iterator3.f();
    }

    this.setState({
      showLogModal: true,
      logData: logData
    });
  }

  pokeAgmt(evt) {
    var agmt_name = evt.target.id;
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-agmt", "poke", "--suffix=" + this.props.suffix, agmt_name];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("pokeAgmt", "Awaken the agreement", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_1___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.addNotification("success", "Replication agreement has been poked");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to poke replication agreement ".concat(agmt_name, " - ").concat(errMsg.desc));
    });
  }

  pokeWinsyncAgmt(name) {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-winsync-agmt", "poke", "--suffix=" + this.props.suffix, name];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("pokeAgmt", "Awaken the agreement", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_1___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.addNotification("success", "Replication winsync agreement has been poked");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to poke replication winsync agreement ".concat(name, " - ").concat(errMsg.desc));
    });
  }

  showAgmtModalRemote(supplierName, replicaName, agmtName) {
    if (!agmtName) {
      this.props.addNotification("error", "The agreement doesn't exist!");
    } else {
      var _iterator4 = _createForOfIteratorHelper(this.state.reportData),
          _step4;

      try {
        for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
          var supplier = _step4.value;

          if (supplier.name == supplierName) {
            var _iterator5 = _createForOfIteratorHelper(supplier.data),
                _step5;

            try {
              for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
                var replica = _step5.value;

                if ("".concat(replica.replica_root, ":").concat(replica.replica_id) == replicaName) {
                  var _iterator6 = _createForOfIteratorHelper(replica.agmts_status),
                      _step6;

                  try {
                    for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
                      var agmt = _step6.value;

                      if (agmt['agmt-name'][0] == agmtName) {
                        this.setState({
                          showAgmtModal: true,
                          agmt: agmt
                        });
                        break;
                      }
                    }
                  } catch (err) {
                    _iterator6.e(err);
                  } finally {
                    _iterator6.f();
                  }
                }
              }
            } catch (err) {
              _iterator5.e(err);
            } finally {
              _iterator5.f();
            }
          }
        }
      } catch (err) {
        _iterator4.e(err);
      } finally {
        _iterator4.f();
      }
    }
  }

  closeAgmtModal() {
    this.setState({
      showAgmtModal: false
    });
  }

  changeCreds(action) {
    var _this$state = this.state,
        credentialsList = _this$state.credentialsList,
        oldCredsHostname = _this$state.oldCredsHostname,
        oldCredsPort = _this$state.oldCredsPort,
        credsHostname = _this$state.credsHostname,
        credsPort = _this$state.credsPort,
        credsBinddn = _this$state.credsBinddn,
        credsBindpw = _this$state.credsBindpw,
        pwInputInterractive = _this$state.pwInputInterractive;

    if (credsHostname === "" || credsPort === "" || credsBinddn === "") {
      this.props.addNotification("warning", "Host, Port, and Bind DN are required.");
    } else if (credsBindpw === "" && !pwInputInterractive) {
      this.props.addNotification("warning", "Password field can't be empty, if Interractive Input is not selected");
    } else {
      var credsExist = false;

      if (action == "add" && credentialsList.some(row => row.connData === "".concat(credsHostname, ":").concat(credsPort))) {
        credsExist = true;
      }

      if (action == "edit" && credentialsList.some(row => row.connData === "".concat(oldCredsHostname, ":").concat(oldCredsPort))) {
        this.setState({
          credentialsList: credentialsList.filter(row => row.connData !== "".concat(oldCredsHostname, ":").concat(oldCredsPort))
        });
      }

      if (!credsExist) {
        this.setState(prevState => ({
          credentialsList: [...prevState.credentialsList, {
            connData: "".concat(credsHostname, ":").concat(credsPort),
            credsBinddn: credsBinddn,
            credsBindpw: credsBindpw,
            pwInputInterractive: pwInputInterractive
          }]
        }));
      } else {
        this.props.addNotification("error", "Credentials \"".concat(credsHostname, ":").concat(credsPort, "\" already exists"));
      }

      this.closeCredsModal();
    }
  }

  addCreds() {
    this.changeCreds("add");
  }

  editCreds() {
    this.changeCreds("edit");
  }

  removeCreds(connData) {
    this.setState({
      credentialsList: this.state.credentialsList.filter(row => row.connData !== connData)
    });
  }

  openCredsModal() {
    this.setState({
      showCredentialsModal: true
    });
  }

  showAddCredsModal() {
    this.openCredsModal();
    this.setState({
      newEntry: true,
      oldCredsHostname: "",
      oldCredsPort: "",
      credsHostname: "",
      credsPort: 389,
      credsBinddn: "cn=Directory Manager",
      credsBindpw: "",
      pwInputInterractive: false
    });
  }

  showEditCredsModal(connData, bindDN, bindPW, pwInteractive) {
    this.openCredsModal();
    this.setState({
      newEntry: false,
      oldCredsHostname: connData.split(':')[0],
      oldCredsPort: connData.split(':')[1],
      credsHostname: connData.split(':')[0],
      credsPort: parseInt(connData.split(':')[1]),
      credsBinddn: bindDN,
      credsBindpw: bindPW,
      pwInputInterractive: pwInteractive
    });
  }

  closeCredsModal() {
    this.setState({
      showCredentialsModal: false
    });
  }

  onCredSort(_event, index, direction) {
    var sorted_creds = [];
    var rows = []; // Convert the aliases into a sortable array based on the column indexes

    var _iterator7 = _createForOfIteratorHelper(this.state.credentialsList),
        _step7;

    try {
      for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
        var row = _step7.value;
        sorted_creds.push({
          1: row.connData,
          2: row.credsBinddn,
          3: row.credsBindpw,
          4: row.pwInputInterractive
        });
      } // Sort the connections and build the new rows

    } catch (err) {
      _iterator7.e(err);
    } finally {
      _iterator7.f();
    }

    sorted_creds.sort((a, b) => a[index] > b[index] ? 1 : -1);

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.SortByDirection.asc) {
      sorted_creds.reverse();
    }

    for (var _i = 0, _sorted_creds = sorted_creds; _i < _sorted_creds.length; _i++) {
      var cred = _sorted_creds[_i];
      rows.push({
        connData: cred['1'],
        credsBinddn: cred['2'],
        credsBindpw: cred['3'],
        pwInputInterractive: cred['4']
      });
    }

    this.setState({
      credSortBy: {
        index,
        direction
      },
      credentialsList: rows
    });
  }

  onAliasSort(_event, index, direction) {
    var sorted_alias = [];
    var rows = []; // Convert the aliases into a sortable array based on the column indexes

    var _iterator8 = _createForOfIteratorHelper(this.state.aliasesList),
        _step8;

    try {
      for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
        var row = _step8.value;
        sorted_alias.push({
          1: row[0],
          2: row[1]
        });
      } // Sort the connections and build the new rows

    } catch (err) {
      _iterator8.e(err);
    } finally {
      _iterator8.f();
    }

    sorted_alias.sort((a, b) => a[index] > b[index] ? 1 : -1);

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.SortByDirection.asc) {
      sorted_alias.reverse();
    }

    for (var _i2 = 0, _sorted_alias = sorted_alias; _i2 < _sorted_alias.length; _i2++) {
      var alias = _sorted_alias[_i2];
      rows.push([alias['1'], alias['2']]);
    }

    this.setState({
      aliasSortBy: {
        index,
        direction
      },
      aliasesList: rows
    });
  }

  changeAlias(action) {
    var _this$state2 = this.state,
        aliasesList = _this$state2.aliasesList,
        aliasHostname = _this$state2.aliasHostname,
        aliasPort = _this$state2.aliasPort,
        oldAliasName = _this$state2.oldAliasName,
        aliasName = _this$state2.aliasName;
    var new_aliases = [...aliasesList];

    if (aliasPort === "" || aliasHostname === "" || aliasName === "") {
      this.props.addNotification("warning", "Host, Port, and Alias are required.");
    } else {
      var aliasExists = false;

      if (action == "add" && aliasesList.some(row => row[0] === aliasName)) {
        aliasExists = true;
      }

      if (action == "edit" && aliasesList.some(row => row[0] === oldAliasName)) {
        new_aliases = aliasesList.filter(row => row[0] !== oldAliasName);
      }

      if (!aliasExists) {
        var connData = "".concat(aliasHostname, ":").concat(aliasPort);
        new_aliases.push([aliasName, connData]);
        this.setState({
          aliasesList: new_aliases
        });
      } else {
        this.props.addNotification("error", "Alias \"".concat(aliasName, "\" already exists"));
      }

      this.closeAliasesModal();
    }
  }

  addAliases() {
    this.changeAlias("add");
  }

  editAliases() {
    this.changeAlias("edit");
  }

  removeAliases(alias) {
    this.setState({
      aliasesList: this.state.aliasesList.filter(row => row[0] !== alias)
    });
  }

  openAliasesModal() {
    this.setState({
      showAliasesModal: true
    });
  }

  showAddAliasesModal() {
    this.openAliasesModal();
    this.setState({
      newEntry: true,
      aliasHostname: "",
      aliasPort: 389,
      oldAliasName: "",
      aliasName: ""
    });
  }

  showEditAliasesModal(alias, connData) {
    this.openAliasesModal();
    this.setState({
      newEntry: false,
      aliasHostname: connData.split(':')[0],
      aliasPort: parseInt(connData.split(':')[1]),
      oldAliasName: alias,
      aliasName: alias
    });
  }

  closeAliasesModal() {
    this.setState({
      showAliasesModal: false
    });
  }

  refreshFullReport() {
    this.doFullReport();
    this.setState({
      reportRefreshing: true
    });
  }

  doFullReport() {
    // Initiate the report and continue the processing in the input window
    this.setState({
      reportLoading: true,
      activeTabKey: 1
    });
    var password = "";
    var credentials = [];
    var printCredentials = [];

    var _iterator9 = _createForOfIteratorHelper(this.state.credentialsList),
        _step9;

    try {
      for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
        var row = _step9.value;

        if (row.pwInputInterractive) {
          password = "*";
        } else {
          password = "".concat(row.credsBindpw);
        }

        credentials.push("".concat(row.connData, ":").concat(row.credsBinddn, ":").concat(password));
        printCredentials.push("".concat(row.connData, ":").concat(row.credsBinddn, ":********"));
      }
    } catch (err) {
      _iterator9.e(err);
    } finally {
      _iterator9.f();
    }

    var aliases = [];

    var _iterator10 = _createForOfIteratorHelper(this.state.aliasesList),
        _step10;

    try {
      for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
        var _row = _step10.value;
        aliases.push("".concat(_row[0], "=").concat(_row[1]));
      }
    } catch (err) {
      _iterator10.e(err);
    } finally {
      _iterator10.f();
    }

    var buffer = "";
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "monitor"];

    if (aliases.length != 0) {
      cmd = [...cmd, "-a"];

      var _iterator11 = _createForOfIteratorHelper(aliases),
          _step11;

      try {
        for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
          var value = _step11.value;
          cmd = [...cmd, value];
        }
      } catch (err) {
        _iterator11.e(err);
      } finally {
        _iterator11.f();
      }
    } // We should not print the passwords to console.log


    var printCmd = cmd;

    if (credentials.length != 0) {
      cmd = [...cmd, "-c"];

      var _iterator12 = _createForOfIteratorHelper(credentials),
          _step12;

      try {
        for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
          var _value = _step12.value;
          cmd = [...cmd, _value];
        }
      } catch (err) {
        _iterator12.e(err);
      } finally {
        _iterator12.f();
      }

      printCmd = [...printCmd, "-c"];

      var _iterator13 = _createForOfIteratorHelper(printCredentials),
          _step13;

      try {
        for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {
          var _value2 = _step13.value;
          printCmd = [...printCmd, _value2];
        }
      } catch (err) {
        _iterator13.e(err);
      } finally {
        _iterator13.f();
      }
    }

    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("doFullReport", "Get the report for the current instance topology", printCmd); // We need to set it here because 'input' will be run from inside

    var proc = cockpit__WEBPACK_IMPORTED_MODULE_1___default().spawn(cmd, {
      pty: true,
      environ: ["LC_ALL=C"],
      superuser: true,
      err: "message",
      directory: self.path
    }); // We use it in processCredsInput

    this.setState({
      fullReportProcess: proc
    });
    proc.done(data => {
      // Use the buffer from stream. 'data' is empty
      var report = JSON.parse(buffer); // We need to reparse the report data because agmts json wasn't parsed correctly because it was too nested

      var agmts_reparsed = [];
      var replica_reparsed = [];
      var supplier_reparsed = [];

      var _iterator14 = _createForOfIteratorHelper(report.items),
          _step14;

      try {
        for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {
          var supplier = _step14.value;
          replica_reparsed = [];

          var _iterator15 = _createForOfIteratorHelper(supplier.data),
              _step15;

          try {
            for (_iterator15.s(); !(_step15 = _iterator15.n()).done;) {
              var replica = _step15.value;
              agmts_reparsed = [];
              var agmts_done = false;

              if (replica.hasOwnProperty("agmts_status")) {
                var _iterator16 = _createForOfIteratorHelper(replica.agmts_status),
                    _step16;

                try {
                  for (_iterator16.s(); !(_step16 = _iterator16.n()).done;) {
                    var agmt = _step16.value;
                    // We need this for Agreement View Modal
                    agmt.supplierName = [supplier.name];
                    agmt.replicaName = ["".concat(replica.replica_root, ":").concat(replica.replica_id)];
                    agmt.replicaStatus = ["".concat(replica.replica_status)];
                    agmt.rowKey = ["".concat(supplier.name, ":").concat(replica.replica_root, ":").concat(replica.replica_id, ":").concat(agmt["agmt-name"])];
                    agmts_reparsed.push(agmt);
                    agmts_done = true;
                  }
                } catch (err) {
                  _iterator16.e(err);
                } finally {
                  _iterator16.f();
                }
              }

              if (!agmts_done) {
                var agmt_empty = {};
                agmt_empty.supplierName = [supplier.name];

                if (replica.replica_root || replica.replica_id) {
                  agmt_empty.replicaName = ["".concat(replica.replica_root || "", ":").concat(replica.replica_id || "")];
                } else {
                  agmt_empty.replicaName = [""];
                }

                agmt_empty.replicaStatus = ["".concat(replica.replica_status)];
                agmt_empty.rowKey = ["".concat(supplier.name, ":").concat(replica.replica_root, ":").concat(replica.replica_id, ":None")];
                agmts_reparsed.push(agmt_empty);
              }

              replica_reparsed.push(_objectSpread(_objectSpread({}, replica), {}, {
                agmts_status: agmts_reparsed
              }));
            }
          } catch (err) {
            _iterator15.e(err);
          } finally {
            _iterator15.f();
          }

          supplier_reparsed.push(_objectSpread(_objectSpread({}, supplier), {}, {
            data: replica_reparsed
          }));
        }
      } catch (err) {
        _iterator14.e(err);
      } finally {
        _iterator14.f();
      }

      var report_reparsed = _objectSpread(_objectSpread({}, report), {}, {
        items: supplier_reparsed
      });

      this.setState({
        reportData: report_reparsed.items,
        showFullReportModal: true,
        reportLoading: false,
        doFullReportCleanup: true
      });
    }).fail(_ => {
      var errMsg = JSON.parse(buffer);
      this.props.addNotification("error", "Sync report has failed - ".concat(errMsg.desc));
      this.setState({
        dynamicCredentialsList: [],
        reportLoading: false,
        doFullReportCleanup: true,
        activeReportKey: 1
      });
    }) // Stream is run each time as a new character arrives
    .stream(data => {
      buffer += data;
      var lines = buffer.split("\n");
      var last_line = lines[lines.length - 1];
      var found_creds = false; // Interractive Input is required
      // Check for Bind DN first

      if (last_line.startsWith("Enter a bind DN") && last_line.endsWith(": ")) {
        buffer = ""; // Get the instance name. We need it for fetching the creds data from stored state list

        this.setState({
          credsInstanceName: data.split("a bind DN for ")[1].split(": ")[0]
        }); // First check if DN is in the list already (either from previous run or during this execution)

        var _iterator17 = _createForOfIteratorHelper(this.state.dynamicCredentialsList),
            _step17;

        try {
          for (_iterator17.s(); !(_step17 = _iterator17.n()).done;) {
            var creds = _step17.value;

            if (creds.credsInstanceName == this.state.credsInstanceName) {
              found_creds = true;
              proc.input("".concat(creds.binddn, "\n"), true);
            }
          } // If we don't have the creds - open the modal window and ask the user for input

        } catch (err) {
          _iterator17.e(err);
        } finally {
          _iterator17.f();
        }

        if (!found_creds) {
          this.setState({
            showReportLoginModal: true,
            binddnRequired: true,
            disableBinddn: false,
            credsInstanceName: this.state.credsInstanceName,
            loginBinddn: "",
            loginBindpw: ""
          });
        } // Check for password

      } else if (last_line.startsWith("Enter a password") && last_line.endsWith(": ")) {
        buffer = ""; // Do the same logic for password but the string parsing is different

        this.setState({
          credsInstanceName: data.split(" on ")[1].split(": ")[0]
        });

        var _iterator18 = _createForOfIteratorHelper(this.state.dynamicCredentialsList),
            _step18;

        try {
          for (_iterator18.s(); !(_step18 = _iterator18.n()).done;) {
            var _creds = _step18.value;

            if (_creds.credsInstanceName == this.state.credsInstanceName) {
              found_creds = true;
              proc.input("".concat(_creds.bindpw, "\n"), true);
              this.setState({
                credsInstanceName: ""
              });
            }
          }
        } catch (err) {
          _iterator18.e(err);
        } finally {
          _iterator18.f();
        }

        if (!found_creds) {
          this.setState({
            showReportLoginModal: true,
            bindpwRequired: true,
            credsInstanceName: this.state.credsInstanceName,
            disableBinddn: true,
            loginBinddn: data.split("Enter a password for ")[1].split(" on")[0],
            loginBindpw: ""
          });
        }
      }
    });
  }

  closeReportLoginModal() {
    this.setState({
      showReportLoginModal: false,
      reportLoading: false,
      activeReportKey: 1
    });
  }

  processCredsInput() {
    var _this$state3 = this.state,
        loginBinddn = _this$state3.loginBinddn,
        loginBindpw = _this$state3.loginBindpw,
        credsInstanceName = _this$state3.credsInstanceName,
        fullReportProcess = _this$state3.fullReportProcess;

    if (loginBinddn == "" || loginBindpw == "") {
      this.props.addNotification("warning", "Bind DN and password are required.");
    } else {
      this.setState({
        showReportLoginModal: false,
        reportLoading: false
      }); // Store the temporary data in state

      this.setState(prevState => ({
        dynamicCredentialsList: [...prevState.dynamicCredentialsList, {
          binddn: loginBinddn,
          bindpw: loginBindpw,
          credsInstanceName: credsInstanceName
        }]
      })); // We wait for some input - put the right one here

      if (this.state.binddnRequired) {
        fullReportProcess.input("".concat(loginBinddn, "\n"), true);
        this.setState({
          binddnRequired: false
        });
      } else if (this.state.bindpwRequired) {
        // fullReportProcess.input(`${loginBindpw}\n`, true);
        fullReportProcess.input(loginBindpw + "\n", true);
        this.setState({
          bindpwRequired: false
        });
      }
    }
  }

  closeReportModal() {
    this.setState({
      showFullReportModal: false,
      reportLoading: false
    });
  }

  render() {
    var reportData = this.state.reportData;
    var credentialsList = this.state.credentialsList;
    var aliasesList = this.state.aliasesList;
    var replAgmts = this.props.data.replAgmts;
    var replWinsyncAgmts = this.props.data.replWinsyncAgmts;
    var cleanTasks = this.props.data.cleanTasks;
    var abortTasks = this.props.data.abortTasks;
    var conflictEntries = this.props.data.conflicts;
    var glueEntries = this.props.data.glues;
    var fullReportModal = "";
    var reportLoginModal = "";
    var reportCredentialsModal = "";
    var reportAliasesModal = "";
    var agmtDetailModal = "";
    var winsyncAgmtDetailModal = "";

    if (this.state.showReportLoginModal) {
      reportLoginModal = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_monitorModals_jsx__WEBPACK_IMPORTED_MODULE_5__.ReportLoginModal, {
        showModal: this.state.showReportLoginModal,
        closeHandler: this.closeReportLoginModal,
        handleChange: this.handleFieldChange,
        processCredsInput: this.processCredsInput,
        instanceName: this.state.credsInstanceName,
        disableBinddn: this.state.disableBinddn,
        loginBinddn: this.state.loginBinddn,
        loginBindpw: this.state.loginBindpw
      });
    }

    if (this.state.showCredentialsModal) {
      reportCredentialsModal = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_monitorModals_jsx__WEBPACK_IMPORTED_MODULE_5__.ReportCredentialsModal, {
        showModal: this.state.showCredentialsModal,
        closeHandler: this.closeCredsModal,
        handleFieldChange: this.handleFieldChange,
        onMinusConfig: this.onMinusConfig,
        onConfigChange: this.onConfigChange,
        onPlusConfig: this.onPlusConfig,
        newEntry: this.state.newEntry,
        hostname: this.state.credsHostname,
        port: this.state.credsPort,
        binddn: this.state.credsBinddn,
        bindpw: this.state.credsBindpw,
        pwInputInterractive: this.state.pwInputInterractive,
        addConfig: this.addCreds,
        editConfig: this.editCreds
      });
    }

    if (this.state.showAliasesModal) {
      reportAliasesModal = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_monitorModals_jsx__WEBPACK_IMPORTED_MODULE_5__.ReportAliasesModal, {
        showModal: this.state.showAliasesModal,
        closeHandler: this.closeAliasesModal,
        handleFieldChange: this.handleFieldChange,
        onMinusConfig: this.onMinusConfig,
        onConfigChange: this.onConfigChange,
        onPlusConfig: this.onPlusConfig,
        newEntry: this.state.newEntry,
        hostname: this.state.aliasHostname,
        port: this.state.aliasPort,
        alias: this.state.aliasName,
        addConfig: this.addAliases,
        editConfig: this.editAliases
      });
    }

    if (this.state.showAgmtModal) {
      agmtDetailModal = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_monitorModals_jsx__WEBPACK_IMPORTED_MODULE_5__.AgmtDetailsModal, {
        showModal: this.state.showAgmtModal,
        closeHandler: this.closeAgmtModal,
        agmt: this.state.agmt
      });
    }

    var reportBtnName = "Generate Report";
    var extraPrimaryProps = {};

    if (this.state.reportLoading) {
      reportBtnName = "Generating ...";
      extraPrimaryProps.spinnerAriaValueText = "Generating";
    }

    var reportContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-lg ds-indent ds-margin-bottom-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Tabs, {
      isBox: true,
      activeKey: this.state.activeTabKey,
      onSelect: this.handleNavSelect
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Tab, {
      eventKey: 0,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TabTitleText, null, _("Prepare Report"))
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.ExpandableSection, {
      toggleText: this.state.isExpanded ? 'Hide Help' : 'Show Help',
      onToggle: this.onToggle,
      isExpanded: this.state.isExpanded,
      className: "ds-margin-top-lg ds-left-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-left-indent-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextVariants.h3
    }, "How To Use Replication Sync Report")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("ol", {
      className: "ds-left-indent-md ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", null, "Update The ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Replication Credentials"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("ul", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", null, "\u2022 Initially, the table is populated with the local instance's replication agreements, which includes the local instance."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", null, "\u2022 Add the remaining replica server credentials from your replication topology."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", null, "\u2022 It is advised to use an ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Interactive Input"), " option for the password because it's more secure."))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", null, "Add ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Replica Aliases"), " (if desired)", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("ul", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", null, "\u2022 Adding aliases will make the report more readable."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", null, "\u2022 Each Replica can have one alias. For example, you can give names like this:", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, " Alias"), "=Main Supplier, ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Hostname"), "=192.168.122.01, ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Port"), "=38901"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", null, "\u2022 In the report result, the report will have an entry like this:", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, " Supplier: Main Supplier (192.168.122.01:38901)"), "."))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", null, "Press ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Generate Report"), " Button", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("ul", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", null, "\u2022 It will initiate the report creation."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("li", null, "\u2022 You may be asked for the credentials while the process is running through the agreements.")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("p", null))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Button, _extends({
      className: "ds-margin-top-lg",
      variant: "primary",
      onClick: this.doFullReport,
      title: "Use the specified credentials and display full topology report",
      isLoading: this.state.reportLoading,
      spinnerAriaValueText: this.state.reportLoading ? "Generating" : undefined
    }, extraPrimaryProps), reportBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_4__.ReportCredentialsTable, {
      rows: credentialsList,
      deleteConfig: this.removeCreds,
      editConfig: this.showEditCredsModal,
      sortBy: this.state.credSortBy,
      onSort: this.onCredSort
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Button, {
      className: "ds-margin-top",
      variant: "secondary",
      onClick: this.showAddCredsModal
    }, "Add Credentials"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_4__.ReportAliasesTable, {
      rows: aliasesList,
      deleteConfig: this.removeAliases,
      editConfig: this.showEditAliasesModal,
      sortBy: this.state.aliasSortBy,
      onSort: this.onAliasSort
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Button, {
      className: "ds-margin-top",
      variant: "secondary",
      onClick: this.showAddAliasesModal
    }, "Add Alias")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Tab, {
      isHidden: reportData.length == 0,
      eventKey: 1,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TabTitleText, null, _("Report Result"))
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-indent ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_monitorModals_jsx__WEBPACK_IMPORTED_MODULE_5__.FullReportContent, {
      reportData: reportData,
      viewAgmt: this.showAgmtModalRemote,
      handleRefresh: this.refreshFullReport,
      reportRefreshing: this.state.reportRefreshing,
      reportLoading: this.state.reportLoading
    })))));
    var taskContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Tabs, {
      isBox: true,
      activeKey: this.state.activeTabTaskKey,
      onSelect: this.handleNavTaskSelect
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Tab, {
      eventKey: 0,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TabTitleText, null, "CleanAllRUV Tasks ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("font", {
        size: "2"
      }, "(", cleanTasks.length, ")"))
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-indent ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_4__.CleanALLRUVTable, {
      tasks: cleanTasks,
      viewLog: this.viewCleanLog
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Tab, {
      eventKey: 1,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TabTitleText, null, "Abort CleanAllRUV Tasks ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("font", {
        size: "2"
      }, "(", abortTasks.length, ")"))
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-indent ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_4__.AbortCleanALLRUVTable, {
      tasks: abortTasks,
      viewLog: this.viewAbortLog
    })))));
    var conflictContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Tabs, {
      isBox: true,
      activeKey: this.state.activeTabConflictKey,
      onSelect: this.handleNavConflictSelect
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Tab, {
      eventKey: 0,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TabTitleText, null, "Conflict Entries ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("font", {
        size: "2"
      }, "(", conflictEntries.length, ")"))
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-indent ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Tooltip, {
      content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, "Replication conflict entries occur when two entries are created with the same DN (or name) on different servers at about the same time.  The automatic conflict resolution procedure renames the entry created last.  Its RDN is changed into a multi-valued RDN that includes the entry's original RDN and it's unique identifier (nsUniqueId).  There are several ways to resolve a conflict, but choosing which option to use is up to you.")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("a", {
      className: "ds-indent ds-font-size-sm"
    }, "What Is A Replication Conflict Entry?")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_4__.ConflictTable, {
      conflicts: conflictEntries,
      resolveConflict: this.resolveConflict,
      key: conflictEntries
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Tab, {
      eventKey: 1,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TabTitleText, null, "Glue Entries ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("font", {
        size: "2"
      }, "(", glueEntries.length, ")"))
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-indent ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Tooltip, {
      content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, "When a ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Delete"), " operation is replicated and the consumer server finds that the entry to be deleted has child entries, the conflict resolution procedure creates a \"", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, "glue entry"), "\" to avoid having orphaned entries in the database.  In the same way, when an ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Add"), " operation is replicated and the consumer server cannot find the parent entry, the conflict resolution procedure creates a \"", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, "glue entry"), "\", representing the \"parent entry\", so that the new entry is not an orphaned entry.  You can choose to convert the glue entry, or remove the glue entry and all its child entries.")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("a", {
      className: "ds-indent ds-font-size-sm"
    }, "What Is A Replication Glue Entry?")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_4__.GlueTable, {
      glues: glueEntries,
      convertGlue: this.confirmConvertGlue,
      deleteGlue: this.confirmDeleteGlue,
      key: glueEntries
    })))));
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      id: "monitor-suffix-page",
      className: "ds-tab-table"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Tabs, {
      activeKey: this.state.activeTabReplKey,
      onSelect: this.handleNavReplSelect
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Tab, {
      eventKey: 0,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TabTitleText, null, "Synchronization Report")
    }, reportContent), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Tab, {
      eventKey: 1,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TabTitleText, null, "Agreements ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("font", {
        size: "2"
      }, "(", replAgmts.length, ")"))
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-indent ds-tab-table"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_4__.AgmtTable, {
      agmts: replAgmts,
      pokeAgmt: this.pokeAgmt
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Tab, {
      eventKey: 2,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TabTitleText, null, "Winsync ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("font", {
        size: "2"
      }, "(", replWinsyncAgmts.length, ")"))
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-indent ds-tab-table"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_4__.WinsyncAgmtTable, {
      agmts: replWinsyncAgmts,
      pokeAgmt: this.pokeWinsyncAgmt
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Tab, {
      eventKey: 3,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TabTitleText, null, "Tasks ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("font", {
        size: "2"
      }, "(", cleanTasks.length + abortTasks.length, ")"))
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-indent ds-tab-table"
    }, taskContent)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Tab, {
      eventKey: 4,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TabTitleText, null, "Conflict Entries ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("font", {
        size: "2"
      }, "(", conflictEntries.length + glueEntries.length, ")"))
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-indent ds-tab-table"
    }, conflictContent))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_monitorModals_jsx__WEBPACK_IMPORTED_MODULE_5__.TaskLogModal, {
      showModal: this.state.showLogModal,
      closeHandler: this.closeLogModal,
      logData: this.state.logData
    }), fullReportModal, reportLoginModal, reportCredentialsModal, reportAliasesModal, agmtDetailModal, winsyncAgmtDetailModal, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_monitorModals_jsx__WEBPACK_IMPORTED_MODULE_5__.ConflictCompareModal, {
      showModal: this.state.showCompareModal,
      conflictEntry: this.state.cmpConflictEntry,
      validEntry: this.state.cmpValidEntry,
      swapConflictRadio: this.state.swapConflictRadio,
      convertConflictRadio: this.state.convertConflictRadio,
      deleteConflictRadio: this.state.deleteConflictRadio,
      newRDN: this.state.convertRDN,
      closeHandler: this.closeCompareModal,
      saveHandler: this.handleConflictConversion,
      handleChange: this.handleChange,
      handleRadioChange: this.handleRadioChange
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__.DoubleConfirmModal, {
      showModal: this.state.showConfirmDeleteGlue,
      closeHandler: this.closeConfirmDeleteGlue,
      handleChange: this.handleFieldChange,
      actionHandler: this.deleteGlue,
      spinning: this.state.modalSpinning,
      item: this.state.glueEntry,
      checked: this.state.modalChecked,
      mTitle: "Delete Glue Entry",
      mMsg: "Are you really sure you want to delete this glue entry and its child entries?",
      mSpinningMsg: "Deleting Glue Entry ...",
      mBtnName: "Delete Glue"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__.DoubleConfirmModal, {
      showModal: this.state.showConfirmConvertGlue,
      closeHandler: this.closeConfirmConvertGlue,
      handleChange: this.handleFieldChange,
      actionHandler: this.convertGlue,
      spinning: this.state.modalSpinning,
      item: this.state.glueEntry,
      checked: this.state.modalChecked,
      mTitle: "Convert Glue Entry",
      mMsg: "Are you really sure you want to convert this glue entry to a regular entry?",
      mSpinningMsg: "Converting Glue Entry ...",
      mBtnName: "Convert Glue"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__.DoubleConfirmModal, {
      showModal: this.state.showConfirmConvertConflict,
      closeHandler: this.closeConfirmConvertConflict,
      handleChange: this.handleFieldChange,
      actionHandler: this.convertConflict,
      spinning: this.state.modalSpinning,
      item: this.state.conflictEntry,
      checked: this.state.modalChecked,
      mTitle: "Convert Conflict Entry Into New Entry",
      mMsg: "Are you really sure you want to convert this conflict entry?",
      mSpinningMsg: "Converting Conflict Entry ...",
      mBtnName: "Convert Conflict"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__.DoubleConfirmModal, {
      showModal: this.state.showConfirmSwapConflict,
      closeHandler: this.closeConfirmSwapConflict,
      handleChange: this.handleFieldChange,
      actionHandler: this.swapConflict,
      spinning: this.state.modalSpinning,
      item: this.state.conflictEntry,
      checked: this.state.modalChecked,
      mTitle: "Swap Conflict Entry",
      mMsg: "Are you really sure you want to swap this conflict entry with the valid entry?",
      mSpinningMsg: "Swapping Conflict Entry ...",
      mBtnName: "Swap Conflict"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__.DoubleConfirmModal, {
      showModal: this.state.showConfirmDeleteConflict,
      closeHandler: this.closeConfirmDeleteConflict,
      handleChange: this.handleFieldChange,
      actionHandler: this.deleteConflict,
      spinning: this.state.modalSpinning,
      item: this.state.conflictEntry,
      checked: this.state.modalChecked,
      mTitle: "Delete Replication Conflict Entry",
      mMsg: "Are you really sure you want to delete this conflict entry?",
      mSpinningMsg: "Deleting Conflict Entry ...",
      mBtnName: "Delete Conflict"
    }));
  }

} // Props and defaultProps

ReplMonitor.propTypes = {
  data: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().object),
  suffix: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().string),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().string),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func),
  reloadConflicts: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func),
  enableTree: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func)
};
ReplMonitor.defaultProps = {
  data: {},
  suffix: "",
  serverId: ""
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ReplMonitor);

/***/ }),

/***/ "./src/lib/monitor/serverMonitor.jsx":
/*!*******************************************!*\
  !*** ./src/lib/monitor/serverMonitor.jsx ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ServerMonitor": () => (/* binding */ ServerMonitor),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_22__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _monitorTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./monitorTables.jsx */ "./src/lib/monitor/monitorTables.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/Card.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardBody.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-charts */ "./node_modules/@patternfly/react-charts/dist/esm/components/Chart/Chart.js");
/* harmony import */ var _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-charts */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartVoronoiContainer/ChartVoronoiContainer.js");
/* harmony import */ var _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-charts */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartAxis/ChartAxis.js");
/* harmony import */ var _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-charts */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartGroup/ChartGroup.js");
/* harmony import */ var _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-charts */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartArea/ChartArea.js");
/* harmony import */ var _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-charts */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/ChartTheme.js");
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }










class ServerMonitor extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    var initChart = [];

    for (var idx = 1; idx <= 10; idx++) {
      initChart.push({
        name: '',
        x: idx.toString(),
        y: 0
      });
    }

    this.state = {
      activeKey: 0,
      count: 10,
      port: 389,
      secure_port: 636,
      conn_highmark: 1000,
      cpu_tick_values: [25, 50, 75, 100],
      mem_tick_values: [25, 50, 75, 100],
      conn_tick_values: [250, 500, 750, 1000],
      mem_ratio: 0,
      chart_refresh: "",
      initChart: initChart,
      cpuChart: [...initChart],
      memVirtChart: [...initChart],
      memResChart: [...initChart],
      connChart: [...initChart]
    };

    this.handleNavSelect = (event, tabIndex) => {
      this.setState({
        activeKey: tabIndex
      });
    };

    this.startRefresh = this.startRefresh.bind(this);
    this.refreshCharts = this.refreshCharts.bind(this);
    this.stopRefresh = this.stopRefresh.bind(this);
  }

  componentDidMount() {
    this.props.enableTree();
    this.refreshCharts();
    this.startRefresh();
  }

  componentWillUnmount() {
    this.stopRefresh();
  }

  getPorts() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get", "nsslapd-port", "nsslapd-secureport"];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("getPorts", "Get the server port numbers", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      this.setState({
        port: config.attrs['nsslapd-port'][0],
        secure_port: config.attrs['nsslapd-secureport'] === undefined ? "-1" : config.attrs['nsslapd-secureport'][0]
      });
    });
  }

  resetChartData() {
    this.setState({
      conn_highmark: 1000,
      cpu_tick_values: [25, 50, 75, 100],
      mem_tick_values: [],
      conn_tick_values: [250, 500, 750, 1000],
      cpuChart: [...this.state.initChart],
      memVirtChart: [...this.state.initChart],
      memResChart: [...this.state.initChart],
      connChart: [...this.state.initChart]
    });
  }

  refreshCharts() {
    var cmd = "ps -ef | grep -v grep | grep dirsrv/slapd-" + this.props.serverId;
    var cpu = 0;
    var pid = 0;
    var max_mem = 0;
    var virt_mem = 0;
    var res_mem = 0;
    var current_conns = 0;
    var conn_highmark = this.state.conn_highmark;
    var cpu_tick_values = this.state.cpu_tick_values;
    var conn_tick_values = this.state.conn_tick_values;
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("refreshCharts", "Get server pid", [cmd]);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().script(cmd, [], {
      superuser: true,
      err: "message"
    }).done(output => {
      pid = output.split(/\s+/)[1];
      var cpu_cmd = "top -n 1 -b -p " + pid + " | tail -1";
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("refreshCharts", "Get cpu and memory stats", [cpu_cmd]);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().script(cpu_cmd, [], {
        superuser: true,
        err: "message"
      }).done(top_output => {
        var top_parts = top_output.trim().split(/\s+/);
        virt_mem = top_parts[4];
        res_mem = top_parts[5];
        cpu = parseInt(top_parts[8]);
        var mem_cmd = "awk '/MemTotal/{print $2}' /proc/meminfo";
        (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("refreshCharts", "Get total memory", [mem_cmd]);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default().script(mem_cmd, [], {
          superuser: true,
          err: "message"
        }).done(mem_output => {
          max_mem = parseInt(mem_output);
          var conn_cmd = "netstat -anp | grep ':" + this.state.port + "\\|:" + this.state.secure_port + "' | grep ESTABLISHED | grep ns-slapd | wc -l";
          (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("refreshCharts", "Get current count", [conn_cmd]);
          cockpit__WEBPACK_IMPORTED_MODULE_0___default().script(conn_cmd, [], {
            superuser: true,
            err: "message"
          }).done(conn_output => {
            current_conns = parseInt(conn_output);
            var count = this.state.count + 1; // This is used by all the charts

            if (count == 100) {
              // Keep progress count in check
              count = 1;
            } // Adjust CPU chart ticks if CPU goes above 100%


            if (cpu > 100) {
              var resize = true;

              var _iterator = _createForOfIteratorHelper(this.state.cpuChart),
                  _step;

              try {
                for (_iterator.s(); !(_step = _iterator.n()).done;) {
                  var stat = _step.value;

                  if (stat.y > cpu) {
                    // There is already a higher CPU in the data
                    resize = false;
                    break;
                  }
                }
              } catch (err) {
                _iterator.e(err);
              } finally {
                _iterator.f();
              }

              if (resize) {
                var incr = Math.ceil(cpu / 4);
                cpu_tick_values = [incr, incr += incr, incr += incr, cpu];
              }
            } else {
              var okToReset = true;

              var _iterator2 = _createForOfIteratorHelper(this.state.cpuChart),
                  _step2;

              try {
                for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
                  var _stat = _step2.value;

                  if (_stat.y > 100) {
                    okToReset = false;
                    break;
                  }
                }
              } catch (err) {
                _iterator2.e(err);
              } finally {
                _iterator2.f();
              }

              if (okToReset) {
                cpu_tick_values = [25, 50, 75, 100];
              }
            } // Set conn tick values


            if (current_conns > conn_highmark) {
              conn_highmark = Math.ceil(current_conns / 1000) * 1000;
              var conn_incr = Math.ceil(conn_highmark / 4);
              var tick = conn_incr;
              conn_tick_values = [tick, tick += conn_incr, tick += conn_incr, tick += conn_incr];
            }

            var cpuChart = this.state.cpuChart;
            cpuChart.shift();
            cpuChart.push({
              name: "CPU",
              x: count.toString(),
              y: parseInt(cpu)
            });
            var memVirtChart = this.state.memVirtChart;
            memVirtChart.shift();
            memVirtChart.push({
              name: "Virtual Memory",
              x: count.toString(),
              y: parseInt(Math.round(virt_mem / max_mem * 100))
            });
            var memResChart = this.state.memResChart;
            memResChart.shift();
            memResChart.push({
              name: "Resident Memory",
              x: count.toString(),
              y: parseInt(Math.round(res_mem / max_mem * 100))
            });
            var connChart = this.state.connChart;
            connChart.shift();
            connChart.push({
              name: "Connections",
              x: count.toString(),
              y: parseInt(current_conns)
            });
            this.setState({
              count: count,
              cpu_tick_values: cpu_tick_values,
              conn_tick_values: conn_tick_values,
              cpuChart: cpuChart,
              memVirtChart: memVirtChart,
              memResChart: memResChart,
              connChart: connChart,
              conn_highmark: conn_highmark,
              current_conns: current_conns,
              mem_virt_size: virt_mem,
              mem_res_size: res_mem,
              mem_ratio: Math.round(virt_mem / max_mem * 100),
              cpu: cpu
            });
          }).fail(() => {
            this.resetChartData();
          });
        }).fail(() => {
          this.resetChartData();
        });
      }).fail(() => {
        this.resetChartData();
      });
    }).fail(() => {
      this.resetChartData();
    });
  }

  startRefresh() {
    this.state.chart_refresh = setInterval(this.refreshCharts, 3000);
  }

  stopRefresh() {
    clearInterval(this.state.chart_refresh);
  }

  render() {
    var _this$state = this.state,
        cpu = _this$state.cpu,
        connChart = _this$state.connChart,
        cpuChart = _this$state.cpuChart,
        current_conns = _this$state.current_conns,
        memResChart = _this$state.memResChart,
        memVirtChart = _this$state.memVirtChart,
        mem_virt_size = _this$state.mem_virt_size,
        mem_res_size = _this$state.mem_res_size,
        mem_ratio = _this$state.mem_ratio; // Generate start time and uptime

    var startTime = this.props.data.starttime[0];
    var currTime = this.props.data.currenttime[0];
    var startDate = (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.get_date_string)(this.props.data.starttime[0]);
    var uptime = (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.get_date_diff)(startTime, currTime);
    var conn_tick_values = this.state.conn_tick_values;
    var cpu_tick_values = this.state.cpu_tick_values;
    var mem_tick_values = this.state.mem_tick_values; // Adjust chart if CPU goes above 100%

    if (cpu > 100) {
      var incr = Math.ceil(cpu / 4);
      cpu_tick_values = [incr, incr += incr, incr += incr, incr += incr];
    } else {
      var okToReset = true;

      var _iterator3 = _createForOfIteratorHelper(cpuChart),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var stat = _step3.value;

          if (stat.y > 100) {
            okToReset = false;
            break;
          }
        }
      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }

      if (okToReset) {
        cpu_tick_values = [25, 50, 75, 100];
      }
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      id: "monitor-server-page"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h3
    }, "Server Statistics ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__.FontAwesomeIcon, {
      size: "lg",
      className: "ds-left-margin ds-refresh",
      icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_9__.faSyncAlt,
      title: "Refresh suffix monitor",
      onClick: this.props.reload
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Tabs, {
      className: "ds-margin-top-lg",
      activeKey: this.state.activeKey,
      onSelect: this.handleNavSelect
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Tab, {
      eventKey: 0,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TabTitleText, null, "Resource Charts")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Card, {
      className: "ds-margin-top-lg",
      isSelectable: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.CardBody, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: "2",
      className: "ds-center",
      title: "Established client connections to the server"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h5
    }, "Connections")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, current_conns)))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: "10",
      style: {
        height: '175px',
        width: '600px'
      }
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_15__.Chart, {
      ariaDesc: "connection stats",
      ariaTitle: "Live Connection Statistics",
      containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_16__.ChartVoronoiContainer, {
        labels: _ref => {
          var datum = _ref.datum;
          return "".concat(datum.name, ": ").concat(datum.y);
        },
        constrainToVisibleArea: true
      }),
      height: 175,
      minDomain: {
        y: 0
      },
      padding: {
        bottom: 30,
        left: 50,
        top: 10,
        right: 15
      },
      width: 600
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_17__.ChartAxis, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_17__.ChartAxis, {
      dependentAxis: true,
      showGrid: true,
      tickValues: conn_tick_values
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_18__.ChartGroup, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_19__.ChartArea, {
      data: connChart
    }))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      className: "ds-margin-top-lg",
      hasGutter: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Card, {
      isSelectable: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.CardBody, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      className: "ds-center",
      span: "4"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h5
    }, "Memory Usage")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, mem_ratio, "%"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
      className: "ds-margin-top-lg",
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h5
    }, "Virtual Size")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.displayKBytes)(mem_virt_size)))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
      className: "ds-margin-top-lg",
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h5
    }, "Resident Size")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.displayKBytes)(mem_res_size))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: "8",
      style: {
        height: '225px'
      }
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_15__.Chart, {
      ariaDesc: "Server Memory Utilization",
      ariaTitle: "Live Server Memory Statistics",
      containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_16__.ChartVoronoiContainer, {
        labels: _ref2 => {
          var datum = _ref2.datum;
          return "".concat(datum.name, ": ").concat(datum.y);
        },
        constrainToVisibleArea: true
      }),
      height: 225,
      minDomain: {
        y: 0
      },
      padding: {
        bottom: 30,
        left: 40,
        top: 10,
        right: 15
      },
      themeColor: _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_20__.ChartThemeColor.multiUnordered
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_17__.ChartAxis, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_17__.ChartAxis, {
      dependentAxis: true,
      showGrid: true,
      tickValues: mem_tick_values
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_18__.ChartGroup, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_19__.ChartArea, {
      data: memVirtChart,
      interpolation: "monotoneX"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_19__.ChartArea, {
      data: memResChart,
      interpolation: "monotoneX"
    })))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Card, {
      isSelectable: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.CardBody, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: "4",
      className: "ds-center"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
      className: "ds-margin-top-xlg",
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h5
    }, "CPU Usage")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, cpu, "%")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: "8",
      style: {
        height: '225px'
      }
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_15__.Chart, {
      ariaDesc: "cpu",
      ariaTitle: "Server CPU Usage",
      containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_16__.ChartVoronoiContainer, {
        labels: _ref3 => {
          var datum = _ref3.datum;
          return "".concat(datum.name, ": ").concat(datum.y);
        },
        constrainToVisibleArea: true
      }),
      height: 225,
      minDomain: {
        y: 0
      },
      padding: {
        bottom: 30,
        left: 40,
        top: 10,
        right: 15
      },
      themeColor: _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_20__.ChartThemeColor.multiUnordered
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_17__.ChartAxis, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_17__.ChartAxis, {
      dependentAxis: true,
      showGrid: true,
      tickValues: cpu_tick_values
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_18__.ChartGroup, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_19__.ChartArea, {
      data: cpuChart,
      interpolation: "monotoneX"
    })))))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Tab, {
      eventKey: 1,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TabTitleText, null, "Server Stats")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      hasGutter: true,
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3
    }, "Server Instance"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, "slapd-" + this.props.serverId)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3
    }, "Version"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.data.version)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3
    }, "Server Started"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, startDate)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3
    }, "Server Uptime"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, uptime)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3
    }, "Worker Threads"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.data.threads)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3
    }, "Threads Waiting To Read"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.data.readwaiters)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3
    }, "Conns At Max Threads"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.data.currentconnectionsatmaxthreads)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3
    }, "Conns Exceeded Max Threads"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.data.maxthreadsperconnhits)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3
    }, "Total Connections"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.data.totalconnections)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3
    }, "Current Connections"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.data.currentconnections)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3
    }, "Operations Started"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.data.opsinitiated)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3
    }, "Operations Completed"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.data.opscompleted)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3
    }, "Entries Returned To Clients"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.data.entriessent)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3
    }, "Bytes Sent to Clients"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.data.bytessent)))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Tab, {
      eventKey: 2,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TabTitleText, null, "Connection Table")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_3__.ConnectionTable, {
      conns: this.props.data.connection
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Tab, {
      eventKey: 3,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TabTitleText, null, "Disk Space")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_monitorTables_jsx__WEBPACK_IMPORTED_MODULE_3__.DiskTable, {
      rows: this.props.disks
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.Button, {
      className: "ds-margin-top",
      onClick: this.props.reloadDisks
    }, "Refresh")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Tab, {
      eventKey: 4,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TabTitleText, null, "SNMP Counters")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      className: "ds-margin-top-xlg",
      hasGutter: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 4
    }, "Anonymous Binds"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.snmpData.anonymousbinds)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 4
    }, "Referrals"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.snmpData.referrals)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 4
    }, "Unauthenticated Binds"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.snmpData.unauthbinds)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 4
    }, "Returned Referrals"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.snmpData.referralsreturned)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 4
    }, "Simple Auth Binds"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.snmpData.simpleauthbinds)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 4
    }, "Bind Security Errors"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.snmpData.bindsecurityerrors)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 4
    }, "Strong Auth Binds"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.snmpData.strongauthbinds)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 4
    }, "Security Errors"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.snmpData.securityerrors)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 4
    }, "Initiated Operations"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.snmpData.inops)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 4
    }, "Errors"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.snmpData.errors)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 4
    }, "Compare Operations"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.snmpData.compareops)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 4
    }, "Current Connections"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.snmpData.connections)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 4
    }, "Add Operations"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.snmpData.addentryops)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 4
    }, "Total Connections"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.snmpData.connectionseq)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 4
    }, "Delete Operations"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.snmpData.removeentryops)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 4
    }, "Conns in Max Threads"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.snmpData.connectionsinmaxthreads)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 4
    }, "Modify Operations"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.snmpData.modifyentryops)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 4
    }, "Conns Exceeded Max Threads"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.snmpData.connectionsmaxthreadscount)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 4
    }, "ModRDN Operations"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.snmpData.modifyrdnops)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 4
    }, "Bytes Received"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.snmpData.bytesrecv)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 4
    }, "Search Operations"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.snmpData.searchops)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 4
    }, "Bytes Sent"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.snmpData.bytessent)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 4
    }, "One Level Searches"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.snmpData.onelevelsearchops)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 4
    }, "Entries Returned"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.snmpData.entriesreturned)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 4
    }, "Whole Tree Searches"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.snmpData.wholesubtreesearchops))))));
  }

}
ServerMonitor.propTypes = {
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().string),
  data: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().object),
  reload: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().func),
  enableTree: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().func)
};
ServerMonitor.defaultProps = {
  serverId: "",
  data: {}
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ServerMonitor);

/***/ }),

/***/ "./src/lib/monitor/suffixMonitor.jsx":
/*!*******************************************!*\
  !*** ./src/lib/monitor/suffixMonitor.jsx ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SuffixMonitor": () => (/* binding */ SuffixMonitor),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_21__);
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/Card.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Card/CardBody.js");
/* harmony import */ var _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-charts */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartTheme/ChartTheme.js");
/* harmony import */ var _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-charts */ "./node_modules/@patternfly/react-charts/dist/esm/components/Chart/Chart.js");
/* harmony import */ var _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-charts */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartVoronoiContainer/ChartVoronoiContainer.js");
/* harmony import */ var _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-charts */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartAxis/ChartAxis.js");
/* harmony import */ var _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-charts */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartGroup/ChartGroup.js");
/* harmony import */ var _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-charts */ "./node_modules/@patternfly/react-charts/dist/esm/components/ChartArea/ChartArea.js");
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");








class SuffixMonitor extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      activeTabKey: 0,
      data: {},
      loading: true,
      // refresh charts
      cache_refresh: "",
      count: 10,
      utilCount: 5,
      entryCacheList: [],
      entryUtilCacheList: [],
      dnCacheList: [],
      dnCacheUtilList: []
    }; // Toggle currently active tab

    this.handleNavSelect = (event, tabIndex) => {
      this.setState({
        activeTabKey: tabIndex
      });
    };

    this.startCacheRefresh = this.startCacheRefresh.bind(this);
    this.refreshSuffixCache = this.refreshSuffixCache.bind(this);
  }

  componentDidMount() {
    this.resetChartData();
    this.refreshSuffixCache();
    this.startCacheRefresh();
    this.props.enableTree();
  }

  componentWillUnmount() {
    this.stopCacheRefresh();
  }

  resetChartData() {
    this.setState({
      data: {
        // Entry cache
        entrycachehitratio: [0],
        entrycachetries: [0],
        entrycachehits: [0],
        maxentrycachesize: [0],
        currententrycachesize: [0],
        maxentrycachecount: [0],
        currententrycachecount: [0],
        // DN cache
        dncachehitratio: [0],
        dncachetries: [0],
        dncachehits: [0],
        maxdncachesize: [0],
        currentdncachesize: [0],
        maxdncachecount: [0],
        currentdncachecount: [0]
      },
      entryCacheList: [{
        name: "",
        x: "1",
        y: 0
      }, {
        name: "",
        x: "2",
        y: 0
      }, {
        name: "",
        x: "3",
        y: 0
      }, {
        name: "",
        x: "4",
        y: 0
      }, {
        name: "",
        x: "5",
        y: 0
      }, {
        name: "",
        x: "6",
        y: 0
      }, {
        name: "",
        x: "7",
        y: 0
      }, {
        name: "",
        x: "8",
        y: 0
      }, {
        name: "",
        x: "9",
        y: 0
      }, {
        name: "",
        x: "10",
        y: 0
      }],
      entryUtilCacheList: [{
        name: "",
        x: "1",
        y: 0
      }, {
        name: "",
        x: "2",
        y: 0
      }, {
        name: "",
        x: "3",
        y: 0
      }, {
        name: "",
        x: "4",
        y: 0
      }, {
        name: "",
        x: "5",
        y: 0
      }],
      dnCacheList: [{
        name: "",
        x: "1",
        y: 0
      }, {
        name: "",
        x: "2",
        y: 0
      }, {
        name: "",
        x: "3",
        y: 0
      }, {
        name: "",
        x: "4",
        y: 0
      }, {
        name: "",
        x: "5",
        y: 0
      }, {
        name: "",
        x: "6",
        y: 0
      }, {
        name: "",
        x: "7",
        y: 0
      }, {
        name: "",
        x: "8",
        y: 0
      }, {
        name: "",
        x: "9",
        y: 0
      }, {
        name: "",
        x: "10",
        y: 0
      }],
      dnCacheUtilList: [{
        name: "",
        x: "1",
        y: 0
      }, {
        name: "",
        x: "2",
        y: 0
      }, {
        name: "",
        x: "3",
        y: 0
      }, {
        name: "",
        x: "4",
        y: 0
      }, {
        name: "",
        x: "5",
        y: 0
      }]
    });
  }

  refreshSuffixCache() {
    // Search for db cache stat and update state
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "backend", this.props.suffix];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("refreshSuffixCache", "Get suffix monitor", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var count = this.state.count + 1;
      var utilCount = this.state.utilCount + 1;

      if (count > 100) {
        // Keep progress count in check
        count = 1;
      } // Build up the Entry Cache chart data


      var entryRatio = config.attrs.entrycachehitratio[0];
      var entry_data = this.state.entryCacheList;
      entry_data.shift();
      entry_data.push({
        name: "Cache Hit Ratio",
        x: count.toString(),
        y: parseInt(entryRatio)
      }); // Build up the Entry Util chart data

      var entry_util_data = this.state.entryUtilCacheList;
      var maxsize = config.attrs.maxentrycachesize[0];
      var currsize = config.attrs.currententrycachesize[0];
      var utilratio = Math.round(currsize / maxsize * 100);

      if (utilratio == 0) {
        utilratio = 1;
      }

      entry_util_data.shift();
      entry_util_data.push({
        name: "Cache Utilization",
        x: utilCount.toString(),
        y: parseInt(utilratio)
      }); // Build up the DN Cache chart data

      var dnratio = config.attrs.dncachehitratio[0];
      var dn_data = this.state.dnCacheList;
      dn_data.shift();
      dn_data.push({
        name: "Cache Hit Ratio",
        x: count.toString(),
        y: parseInt(dnratio)
      }); // Build up the DN Cache Util chart data

      var dn_util_data = this.state.dnCacheUtilList;
      currsize = parseInt(config.attrs.currentdncachesize[0]);
      maxsize = parseInt(config.attrs.maxdncachesize[0]);
      utilratio = currsize / maxsize * 100;

      if (utilratio == 0) {
        utilratio = 1;
      }

      dn_util_data.shift();
      dn_util_data.push({
        name: "Cache Utilization",
        x: utilCount.toString(),
        y: parseInt(utilratio)
      });
      this.setState({
        data: config.attrs,
        loading: false,
        entryCacheList: entry_data,
        entryUtilCacheList: entry_util_data,
        dnCacheList: dn_data,
        dnCacheUtilList: dn_util_data,
        count: count,
        utilCount: utilCount
      });
    }).fail(() => {
      this.resetChartData();
    });
  }

  startCacheRefresh() {
    this.state.cache_refresh = setInterval(this.refreshSuffixCache, 2000);
  }

  stopCacheRefresh() {
    clearInterval(this.state.cache_refresh);
  }

  render() {
    var entryChartColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_4__.ChartThemeColor.green;
    var entryUtilChartColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_4__.ChartThemeColor.green;
    var dnChartColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_4__.ChartThemeColor.green;
    var dnUtilChartColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_4__.ChartThemeColor.green;
    var cachehit = 1;
    var cachemax = 0;
    var cachecurr = 0;
    var cachecount = 0;
    var utilratio = 1; // DN cache

    var dncachehit = 0;
    var dncachemax = 0;
    var dncachecurr = 0;
    var dncachecount = 0;
    var dnutilratio = 1;
    var suffixIcon = _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__.faTree;

    if (this.props.dbtype == "subsuffix") {
      suffixIcon = _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__.faLeaf;
    }

    var content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top-xlg ds-center"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h3
    }, "Loading Suffix Monitor Information ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Spinner, {
      className: "ds-margin-top-lg",
      size: "xl"
    }));

    if (!this.state.loading) {
      // Entry cache
      cachehit = parseInt(this.state.data.entrycachehitratio[0]);
      cachemax = parseInt(this.state.data.maxentrycachesize[0]);
      cachecurr = parseInt(this.state.data.currententrycachesize[0]);
      cachecount = parseInt(this.state.data.currententrycachecount[0]);
      utilratio = Math.round(cachecurr / cachemax * 100); // DN cache

      dncachehit = parseInt(this.state.data.dncachehitratio[0]);
      dncachemax = parseInt(this.state.data.maxdncachesize[0]);
      dncachecurr = parseInt(this.state.data.currentdncachesize[0]);
      dncachecount = parseInt(this.state.data.currentdncachecount[0]);
      dnutilratio = Math.round(dncachecurr / dncachemax * 100); // Adjust ratios if needed

      if (utilratio == 0) {
        utilratio = 1;
      }

      if (dnutilratio == 0) {
        dnutilratio = 1;
      } // Entry cache chart color


      if (cachehit > 89) {
        entryChartColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_4__.ChartThemeColor.green;
      } else if (cachehit > 74) {
        entryChartColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_4__.ChartThemeColor.orange;
      } else {
        entryChartColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_4__.ChartThemeColor.purple;
      } // Entry cache utilization


      if (utilratio > 95) {
        entryUtilChartColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_4__.ChartThemeColor.purple;
      } else if (utilratio > 90) {
        entryUtilChartColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_4__.ChartThemeColor.orange;
      } else {
        entryUtilChartColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_4__.ChartThemeColor.green;
      } // DN cache chart color


      if (dncachehit > 89) {
        dnChartColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_4__.ChartThemeColor.green;
      } else if (dncachehit > 74) {
        dnChartColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_4__.ChartThemeColor.orange;
      } else {
        dnChartColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_4__.ChartThemeColor.purple;
      } // DN cache utilization


      if (dnutilratio > 95) {
        dnUtilChartColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_4__.ChartThemeColor.purple;
      } else if (dnutilratio > 90) {
        dnUtilChartColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_4__.ChartThemeColor.orange;
      } else {
        dnUtilChartColor = _patternfly_react_charts__WEBPACK_IMPORTED_MODULE_4__.ChartThemeColor.green;
      }

      content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        id: "monitor-suffix-page"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Tabs, {
        activeKey: this.state.activeTabKey,
        onSelect: this.handleNavSelect
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Tab, {
        eventKey: 0,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TabTitleText, null, "Entry Cache")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Grid, {
        hasGutter: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Card, {
        isSelectable: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.CardBody, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-container"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
        className: "ds-margin-top",
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h3
      }, "Cache Hit Ratio")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
        className: "ds-margin-top",
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, cachehit, "%")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-left",
        style: {
          height: '200px',
          width: '350px'
        }
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_16__.Chart, {
        ariaDesc: "Entry Cache",
        ariaTitle: "Live Entry Cache Statistics",
        containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_17__.ChartVoronoiContainer, {
          labels: _ref => {
            var datum = _ref.datum;
            return "".concat(datum.name, ": ").concat(datum.y);
          },
          constrainToVisibleArea: true
        }),
        height: 200,
        maxDomain: {
          y: 100
        },
        minDomain: {
          y: 0
        },
        padding: {
          bottom: 40,
          left: 60,
          top: 10,
          right: 15
        },
        width: 350,
        themeColor: entryChartColor
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_18__.ChartAxis, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_18__.ChartAxis, {
        dependentAxis: true,
        showGrid: true,
        tickValues: [25, 50, 75, 100]
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_19__.ChartGroup, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_20__.ChartArea, {
        data: this.state.entryCacheList
      })))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Card, {
        isSelectable: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.CardBody, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-container"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
        className: "ds-margin-top",
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h3
      }, "Cache Utilization")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, utilratio, "%"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
        className: "ds-margin-top-lg",
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h5
      }, "Cached Entries")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, cachecount)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-left",
        style: {
          height: '200px',
          width: '350px'
        }
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_16__.Chart, {
        ariaDesc: "Entry Cache Utilization",
        ariaTitle: "Live Entry Cache Utilization Statistics",
        containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_17__.ChartVoronoiContainer, {
          labels: _ref2 => {
            var datum = _ref2.datum;
            return "".concat(datum.name, ": ").concat(datum.y);
          },
          constrainToVisibleArea: true
        }),
        height: 200,
        maxDomain: {
          y: 100
        },
        minDomain: {
          y: 0
        },
        padding: {
          bottom: 40,
          left: 60,
          top: 10,
          right: 15
        },
        width: 350,
        themeColor: entryUtilChartColor
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_18__.ChartAxis, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_18__.ChartAxis, {
        dependentAxis: true,
        showGrid: true,
        tickValues: [25, 50, 75, 100]
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_19__.ChartGroup, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_20__.ChartArea, {
        data: this.state.entryUtilCacheList
      })))))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Grid, {
        hasGutter: true,
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 3
      }, "Entry Cache Hit Ratio:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.state.data.entrycachehitratio[0], "%")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 3
      }, "Entry Cache Max Size:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.displayBytes)(cachemax), " ")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 3
      }, "Entry Cache Hits:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.numToCommas)(this.state.data.entrycachehits[0]))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 3
      }, "Entry Cache Current Size:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.displayBytes)(cachecurr))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 3
      }, "Entry Cache Tries:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.numToCommas)(this.state.data.entrycachetries[0]))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 3
      }, "Entry Cache Max Entries:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.numToCommas)(this.state.data.maxentrycachecount[0]))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 3
      }, "Entry Cache Count:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.numToCommas)(this.state.data.currententrycachecount[0]))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Tab, {
        eventKey: 1,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TabTitleText, null, "DN Cache")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Grid, {
        hasGutter: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Card, {
        isSelectable: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.CardBody, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-container"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
        className: "ds-margin-top",
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h3
      }, "Cache Hit Ratio")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
        className: "ds-margin-top",
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, dncachehit, "%")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-left",
        style: {
          height: '200px',
          width: '350px'
        }
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_16__.Chart, {
        ariaDesc: "DN Cache",
        ariaTitle: "Live DN Cache Statistics",
        containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_17__.ChartVoronoiContainer, {
          labels: _ref3 => {
            var datum = _ref3.datum;
            return "".concat(datum.name, ": ").concat(datum.y);
          },
          constrainToVisibleArea: true
        }),
        height: 200,
        maxDomain: {
          y: 100
        },
        minDomain: {
          y: 0
        },
        padding: {
          bottom: 40,
          left: 60,
          top: 10,
          right: 15
        },
        width: 350,
        themeColor: dnChartColor
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_18__.ChartAxis, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_18__.ChartAxis, {
        dependentAxis: true,
        showGrid: true,
        tickValues: [25, 50, 75, 100]
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_19__.ChartGroup, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_20__.ChartArea, {
        data: this.state.dnCacheList
      })))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 6
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Card, {
        isSelectable: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.CardBody, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-container"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
        className: "ds-margin-top",
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h3
      }, "Cache Utilization")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, dnutilratio, "%"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
        className: "ds-margin-top-lg",
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h5
      }, "Cached DN's")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.numToCommas)(dncachecount))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-left",
        style: {
          height: '200px',
          width: '350px'
        }
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_16__.Chart, {
        ariaDesc: "DN Cache Utilization",
        ariaTitle: "Live DN Cache Utilization Statistics",
        containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_17__.ChartVoronoiContainer, {
          labels: _ref4 => {
            var datum = _ref4.datum;
            return "".concat(datum.name, ": ").concat(datum.y);
          },
          constrainToVisibleArea: true
        }),
        height: 200,
        maxDomain: {
          y: 100
        },
        minDomain: {
          y: 0
        },
        padding: {
          bottom: 40,
          left: 60,
          top: 10,
          right: 15
        },
        width: 350,
        themeColor: dnUtilChartColor
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_18__.ChartAxis, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_18__.ChartAxis, {
        dependentAxis: true,
        showGrid: true,
        tickValues: [25, 50, 75, 100]
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_19__.ChartGroup, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_charts__WEBPACK_IMPORTED_MODULE_20__.ChartArea, {
        data: this.state.dnCacheUtilList
      })))))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Grid, {
        hasGutter: true,
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 3
      }, "DN Cache Hit Ratio:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.state.data.dncachehitratio[0], "%")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 3
      }, "DN Cache Max Size:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.displayBytes)(dncachemax))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 3
      }, "DN Cache Hits:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.numToCommas)(this.state.data.dncachehits[0]))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 3
      }, "DN Cache Current Size:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.displayBytes)(dncachecurr))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 3
      }, "DN Cache Tries:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.numToCommas)(this.state.data.dncachetries[0]))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 3
      }, "DN Cache Max Count:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.numToCommas)(this.state.data.maxdncachecount[0]))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 3
      }, "DN Cache Current Count:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.numToCommas)(this.state.data.currentdncachecount[0])))))));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__.FontAwesomeIcon, {
      size: "sm",
      icon: suffixIcon
    }), " ", this.props.suffix, " (", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.props.bename), ")")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top-lg"
    }, content));
  }

}
SuffixMonitor.propTypes = {
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().string),
  suffix: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().string),
  bename: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().string),
  enableTree: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func)
};
SuffixMonitor.defaultProps = {
  serverId: "",
  suffix: "",
  bename: ""
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SuffixMonitor);

/***/ }),

/***/ "./src/lib/notifications.jsx":
/*!***********************************!*\
  !*** ./src/lib/notifications.jsx ***!
  \***********************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "DoubleConfirmModal": () => (/* binding */ DoubleConfirmModal)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }




class DoubleConfirmModal extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  render() {
    var _this$props = this.props,
        showModal = _this$props.showModal,
        closeHandler = _this$props.closeHandler,
        handleChange = _this$props.handleChange,
        actionHandler = _this$props.actionHandler,
        checked = _this$props.checked,
        spinning = _this$props.spinning,
        item = _this$props.item,
        mTitle = _this$props.mTitle,
        mMsg = _this$props.mMsg,
        mSpinningMsg = _this$props.mSpinningMsg,
        mBtnName = _this$props.mBtnName;
    var saveDisabled = true;
    var btnName = mBtnName;
    var extraPrimaryProps = {};

    if (checked) {
      saveDisabled = false;
    }

    if (spinning) {
      btnName = mSpinningMsg;
      extraPrimaryProps.spinnerAriaValueText = "Loading";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.ModalVariant.small,
      title: mTitle,
      titleIconVariant: "warning",
      isOpen: showModal,
      "aria-labelledby": "ds-modal",
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Button, _extends({
        key: "confirm",
        isLoading: spinning,
        spinnerAriaValueText: spinning ? "Loading" : undefined,
        variant: "primary",
        onClick: actionHandler,
        isDisabled: saveDisabled
      }, extraPrimaryProps), btnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Text, {
      className: "ds-margin-top",
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextVariants.h3
    }, mMsg)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Text, {
      className: "ds-center ds-margin-top-xlg",
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextVariants.h4
    }, item)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      sm: 12,
      className: "ds-center"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Checkbox, {
      id: "modalChecked",
      isChecked: checked,
      onChange: (checked, e) => {
        handleChange(e);
      },
      label: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Yes"), ", I am sure.")
    })))));
  }

}
DoubleConfirmModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func),
  handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func),
  actionHandler: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func),
  spinning: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
  item: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
  checked: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
  mTitle: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
  mMsg: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
  mSpinningMsg: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
  mBtnName: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string)
};
DoubleConfirmModal.defaultProps = {
  showModal: false,
  spinning: false,
  item: "",
  checked: false,
  mTitle: "",
  mMsg: "",
  mSpinningMsg: "",
  mBtnName: ""
};

/***/ }),

/***/ "./src/lib/plugins/accountPolicy.jsx":
/*!*******************************************!*\
  !*** ./src/lib/plugins/accountPolicy.jsx ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormHelperText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_17__);
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }







 // Use default account policy name

class AccountPolicy extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  componentDidMount() {
    this.updateFields();
  }

  componentDidUpdate(prevProps) {
    if (this.props.rows !== prevProps.rows) {
      this.updateFields();
    }
  }

  constructor(props) {
    super(props);
    this.updateFields = this.updateFields.bind(this);
    this.handleChange = this.handleChange.bind(this);
    this.handleFieldChange = this.handleFieldChange.bind(this);
    this.handleModalChange = this.handleModalChange.bind(this);
    this.handleCheckboxChange = this.handleCheckboxChange.bind(this);
    this.openModal = this.openModal.bind(this);
    this.closeModal = this.closeModal.bind(this);
    this.addConfig = this.addConfig.bind(this);
    this.editConfig = this.editConfig.bind(this);
    this.deleteConfig = this.deleteConfig.bind(this);
    this.saveConfig = this.saveConfig.bind(this);
    this.cmdOperation = this.cmdOperation.bind(this);
    this.showConfirmDelete = this.showConfirmDelete.bind(this);
    this.closeConfirmDelete = this.closeConfirmDelete.bind(this);
    this.sharedConfigExists = this.sharedConfigExists.bind(this);
    this.validateConfig = this.validateConfig.bind(this);
    this.state = {
      attributes: [],
      // Main config
      configArea: "",
      _configArea: "",
      error: [],
      saveBtnDisabled: true,
      saving: false,
      addingModal: false,
      savingModal: false,
      sharedConfigExists: false,
      // Modal Config
      configDN: "",
      altStateAttrName: "",
      alwaysRecordLogin: false,
      alwaysRecordLoginAttr: "",
      limitAttrName: "",
      specAttrName: "",
      stateAttrName: "",
      _configDN: "",
      _altStateAttrName: [],
      _alwaysRecordLogin: false,
      _alwaysRecordLoginAttr: "",
      _limitAttrName: "",
      _specAttrName: "",
      _stateAttrName: "",
      errorModal: {},
      saveBtnDisabledModal: true,
      modalChecked: false,
      modalSpinning: false,
      configEntryModalShow: false,
      fixupModalShow: false,
      newEntry: false,
      isRecordLoginOpen: false,
      isSpecificAttrOpen: false,
      isStateAttrOpen: false,
      isAltStateAttrOpen: false,
      isLimitAttrOpen: false,
      showConfirmDelete: false
    }; // Always Record Login Attribute

    this.onRecordLoginSelect = (event, selection) => {
      if (selection == this.state.alwaysRecordLoginAttr) {
        this.onRecordLoginClear();
      } else {
        this.setState({
          alwaysRecordLoginAttr: selection,
          isRecordLoginOpen: false
        }, () => {
          this.validateConfig();
        });
      }
    };

    this.onRecordLoginToggle = isRecordLoginOpen => {
      this.setState({
        isRecordLoginOpen
      });
    };

    this.onRecordLoginClear = () => {
      this.setState({
        alwaysRecordLoginAttr: "",
        isRecordLoginOpen: false
      });
    }; // Specific Attribute


    this.onSpecificAttrSelect = (event, selection) => {
      if (selection == this.state.specAttrName) {
        this.onSpecificAttrClear();
      } else {
        this.setState({
          specAttrName: selection,
          isSpecificAttrOpen: false
        }, () => {
          this.validateConfig();
        });
      }
    };

    this.onSpecificAttrToggle = isSpecificAttrOpen => {
      this.setState({
        isSpecificAttrOpen
      });
    };

    this.onSpecificAttrClear = () => {
      this.setState({
        specAttrName: [],
        isSpecificAttrOpen: false
      });
    }; // State Attribute


    this.onStateAttrSelect = (event, selection) => {
      if (selection == this.state.stateAttrName) {
        this.onStateAttrClear();
      } else {
        this.setState({
          stateAttrName: selection,
          isStateAttrOpen: false
        }, () => {
          this.validateConfig();
        });
      }
    };

    this.onStateAttrToggle = isStateAttrOpen => {
      this.setState({
        isStateAttrOpen
      });
    };

    this.onStateAttrClear = () => {
      this.setState({
        stateAttrName: [],
        isStateAttrOpen: false
      });
    }; // Alternative State Attribute


    this.onAlternativeStateSelect = (event, selection) => {
      if (selection == this.state.altStateAttrName) {
        this.onAlternativeStateClear();
      } else {
        this.setState({
          altStateAttrName: selection,
          isAltStateAttrOpen: false
        }, () => {
          this.validateConfig();
        });
      }
    };

    this.onAlternativeStateToggle = isAltStateAttrOpen => {
      this.setState({
        isAltStateAttrOpen
      });
    };

    this.onAlternativeStateClear = () => {
      this.setState({
        altStateAttrName: [],
        isAltStateAttrOpen: false
      });
    }; // Limit Attribute


    this.onLimitAttrSelect = (event, selection) => {
      if (selection == this.state.limitAttrName) {
        this.onLimitAttrClear();
      } else {
        this.setState({
          limitAttrName: selection,
          isLimitAttrOpen: false
        }, () => {
          this.validateConfig();
        });
      }
    };

    this.onLimitAttrToggle = isLimitAttrOpen => {
      this.setState({
        isLimitAttrOpen
      });
    };

    this.onLimitAttrClear = () => {
      this.setState({
        limitAttrName: [],
        isLimitAttrOpen: false
      });
    };
  }

  showConfirmDelete() {
    this.setState({
      showConfirmDelete: true,
      modalChecked: false,
      modalSpinning: false
    });
  }

  closeConfirmDelete() {
    this.setState({
      showConfirmDelete: false,
      modalChecked: false,
      modalSpinning: false
    });
  }

  sharedConfigExists() {
    if (this.state.configArea) {
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "account-policy", "config-entry", "show", this.state.configArea];
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("sharedConfigExists", "Check if Account Policy config entry exists", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        this.setState({
          sharedConfigExists: true
        });
      }).fail(_ => {
        this.props.addNotification("warning", "Warning! Account Policy config entry \"".concat(this.state.configArea, "\" doesn't exist!"));
        this.setState({
          sharedConfigExists: false
        });
      });
    }
  }

  openModal() {
    if (!this.state.configArea) {
      this.setState({
        configEntryModalShow: true,
        newEntry: true,
        configDN: "",
        altStateAttrName: "createTimestamp",
        alwaysRecordLogin: false,
        alwaysRecordLoginAttr: "lastLoginTime",
        limitAttrName: "accountInactivityLimit",
        specAttrName: "acctPolicySubentry",
        stateAttrName: "lastLoginTime",
        _configDN: "",
        _altStateAttrName: "createTimestamp",
        _alwaysRecordLogin: false,
        _alwaysRecordLoginAttr: "lastLoginTime",
        _limitAttrName: "accountInactivityLimit",
        _specAttrName: "acctPolicySubentry",
        _stateAttrName: "lastLoginTime",
        savingModal: false,
        saveBtnDisabledModal: true
      });
    } else {
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "account-policy", "config-entry", "show", this.state.configArea];
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("openModal", "Fetch the Account Policy Plugin config entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        var configEntry = JSON.parse(content).attrs;
        this.setState({
          configEntryModalShow: true,
          newEntry: false,
          savingModal: false,
          saveBtnDisabledModal: true,
          configDN: this.state.configArea,
          _configDN: this.state.configArea,
          altStateAttrName: configEntry.altstateattrname === undefined ? "createTimestamp" : configEntry.altstateattrname[0],
          alwaysRecordLogin: !(configEntry.alwaysrecordlogin === undefined || configEntry.alwaysrecordlogin[0] == "no"),
          alwaysRecordLoginAttr: configEntry.alwaysrecordloginattr === undefined ? "lastLoginTime" : configEntry.alwaysrecordloginattr[0],
          limitAttrName: configEntry.limitattrname === undefined ? "accountInactivityLimit" : configEntry.limitattrname[0],
          specAttrName: configEntry.specattrname === undefined ? "acctPolicySubentry" : configEntry.specattrname[0],
          stateAttrName: configEntry.stateattrname === undefined ? "lastLoginTime" : configEntry.stateattrname[0],
          // original values
          _altStateAttrName: configEntry.altstateattrname === undefined ? "createTimestamp" : configEntry.altstateattrname[0],
          _alwaysRecordLogin: !(configEntry.alwaysrecordlogin === undefined || configEntry.alwaysrecordlogin[0] == "no"),
          _alwaysRecordLoginAttr: configEntry.alwaysrecordloginattr === undefined ? "lastLoginTime" : configEntry.alwaysrecordloginattr[0],
          _limitAttrName: configEntry.limitattrname === undefined ? "accountInactivityLimit" : configEntry.limitattrname[0],
          _specAttrName: configEntry.specattrname === undefined ? "acctPolicySubentry" : configEntry.specattrname[0],
          _stateAttrName: configEntry.stateattrname === undefined ? "lastLoginTime" : configEntry.stateattrname[0]
        });
      }).fail(_ => {
        this.setState({
          configEntryModalShow: true,
          newEntry: true,
          configDN: this.state.configArea,
          altStateAttrName: "createTimestamp",
          alwaysRecordLogin: false,
          alwaysRecordLoginAttr: "lastLoginTime",
          limitAttrName: "accountInactivityLimit",
          specAttrName: "acctPolicySubentry",
          stateAttrName: "lastLoginTime",
          _altStateAttrName: "createTimestamp",
          _alwaysRecordLogin: false,
          _alwaysRecordLoginAttr: "lastLoginTime",
          _limitAttrName: "accountInactivityLimit",
          _specAttrName: "acctPolicySubentry",
          _stateAttrName: "lastLoginTime",
          saveBtnDisabledModal: false // We preset the form so it's ready to save

        });
      });
    }
  }

  closeModal() {
    this.setState({
      configEntryModalShow: false
    });
  }

  cmdOperation(action) {
    var _this$state = this.state,
        configDN = _this$state.configDN,
        altStateAttrName = _this$state.altStateAttrName,
        alwaysRecordLogin = _this$state.alwaysRecordLogin,
        alwaysRecordLoginAttr = _this$state.alwaysRecordLoginAttr,
        limitAttrName = _this$state.limitAttrName,
        specAttrName = _this$state.specAttrName,
        stateAttrName = _this$state.stateAttrName;
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "account-policy", "config-entry", action, configDN, "--always-record-login", alwaysRecordLogin ? "yes" : "no"];
    cmd = [...cmd, "--alt-state-attr"];

    if (altStateAttrName != "") {
      cmd = [...cmd, altStateAttrName];
    } else if (action == "add") {
      cmd = [...cmd, ""];
    } else {
      cmd = [...cmd, "delete"];
    }

    cmd = [...cmd, "--always-record-login-attr"];

    if (alwaysRecordLoginAttr != "") {
      cmd = [...cmd, alwaysRecordLoginAttr];
    } else if (action == "add") {
      cmd = [...cmd, ""];
    } else {
      cmd = [...cmd, "delete"];
    }

    cmd = [...cmd, "--limit-attr"];

    if (limitAttrName != "") {
      cmd = [...cmd, limitAttrName];
    } else if (action == "add") {
      cmd = [...cmd, ""];
    } else {
      cmd = [...cmd, "delete"];
    }

    cmd = [...cmd, "--spec-attr"];

    if (specAttrName != "") {
      cmd = [...cmd, specAttrName];
    } else if (action == "add") {
      cmd = [...cmd, ""];
    } else {
      cmd = [...cmd, "delete"];
    }

    cmd = [...cmd, "--state-attr"];

    if (stateAttrName != "") {
      cmd = [...cmd, stateAttrName];
    } else if (action == "add") {
      cmd = [...cmd, ""];
    } else {
      cmd = [...cmd, "delete"];
    }

    if (action == "add") {
      this.setState({
        addingModal: true
      });
    } else {
      this.setState({
        savingModal: true
      });
    }

    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("accountPolicyOperation", "Do the ".concat(action, " operation on the Account Policy Plugin"), cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("accountPolicyOperation", "Result", content);
      this.props.addNotification("success", "Config entry ".concat(configDN, " was successfully ").concat(action, "ed"));
      this.props.pluginListHandler();
      this.closeModal();

      if (action == "add") {
        this.setState({
          addingModal: false
        });
      } else {
        this.setState({
          savingModal: false
        });
      }
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error during the config entry ".concat(action, " operation - ").concat(errMsg.desc));
      this.props.pluginListHandler();
      this.closeModal();

      if (action == "add") {
        this.setState({
          addingModal: false
        });
      } else {
        this.setState({
          savingModal: false
        });
      }
    });
  }

  deleteConfig() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "account-policy", "config-entry", "delete", this.state.configDN];
    this.setState({
      modalSpinning: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("deleteConfig", "Delete the Account Policy Plugin config entry", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("deleteConfig", "Result", content);
      this.props.addNotification("success", "Config entry ".concat(this.state.configDN, " was successfully deleted"));
      this.props.pluginListHandler();
      this.closeConfirmDelete();
      this.closeModal();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error during the config entry removal operation - ".concat(errMsg.desc));
      this.props.pluginListHandler();
      this.closeConfirmDelete();
      this.closeModal();
    });
  }

  addConfig() {
    this.cmdOperation("add");
  }

  editConfig() {
    this.cmdOperation("set");
  }

  handleCheckboxChange(checked, e) {
    this.setState({
      [e.target.id]: checked
    }, () => {
      this.validateConfig();
    });
  }

  validateConfig() {
    var errObj = {};
    var all_good = true;
    var dnAttrs = ['configDN'];

    for (var _i = 0, _dnAttrs = dnAttrs; _i < _dnAttrs.length; _i++) {
      var attr = _dnAttrs[_i];

      if (this.state[attr] != "" && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.valid_dn)(this.state[attr])) {
        errObj[attr] = true;
        all_good = false;
      }
    }

    if (all_good) {
      // Check for value differences to see if the save btn should be enabled
      all_good = false;
      var attrs = ['configDN', 'altStateAttrName', 'alwaysRecordLogin', 'alwaysRecordLoginAttr', 'limitAttrName', 'stateAttrName'];

      for (var _i2 = 0, _attrs = attrs; _i2 < _attrs.length; _i2++) {
        var check_attr = _attrs[_i2];

        if (this.state[check_attr] != this.state['_' + check_attr]) {
          all_good = true;
          break;
        }
      }
    }

    this.setState({
      saveBtnDisabledModal: !all_good,
      errorModal: errObj
    });
  }

  handleFieldChange(e) {
    var attr = e.target.id; // always configArea

    var value = e.target.value;
    var saveBtnDisabled = true;
    var errObj = {};
    errObj[attr] = false;

    if (value != "") {
      if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.valid_dn)(value)) {
        errObj[attr] = true;
      } else if (value != this.state['_' + attr]) {
        // New valid value, enable save button
        saveBtnDisabled = false;
      }
    } else if (value != this.state['_' + attr]) {
      // New valid value, enable save button
      saveBtnDisabled = false;
    }

    this.setState({
      [attr]: value,
      error: errObj,
      saveBtnDisabled: saveBtnDisabled
    });
  }

  handleModalChange(e) {
    this.setState({
      [e.target.id]: e.target.value
    }, () => {
      this.validateConfig();
    });
  }

  handleChange(e) {
    // Generic handler for things that don't need validating
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [e.target.id]: value
    });
  }

  updateFields() {
    if (this.props.rows.length > 0) {
      var pluginRow = this.props.rows.find(row => row.cn[0] === "Account Policy Plugin");
      this.setState({
        configArea: pluginRow.nsslapd_pluginconfigarea === undefined ? "" : pluginRow.nsslapd_pluginconfigarea[0]
      }, () => {
        this.sharedConfigExists();
      });
    }
  }

  saveConfig() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "account-policy", "set", "--config-entry", this.state.configArea || "delete"];
    this.setState({
      saving: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("saveConfig", "Save Account Policy Plugin", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.addNotification("success", "Successfully updated Account Policy Plugin");
      this.setState({
        saving: false
      });
      this.props.pluginListHandler();
    }).fail(err => {
      var errMsg = JSON.parse(err);

      if ('info' in errMsg) {
        errMsg = errMsg.desc + " " + errMsg.info;
      } else {
        errMsg = errMsg.desc;
      }

      this.props.addNotification("error", "Error during update - ".concat(errMsg));
      this.setState({
        saving: false
      });
      this.props.pluginListHandler();
    });
  }

  render() {
    var _this$state2 = this.state,
        configArea = _this$state2.configArea,
        configDN = _this$state2.configDN,
        altStateAttrName = _this$state2.altStateAttrName,
        alwaysRecordLogin = _this$state2.alwaysRecordLogin,
        alwaysRecordLoginAttr = _this$state2.alwaysRecordLoginAttr,
        limitAttrName = _this$state2.limitAttrName,
        specAttrName = _this$state2.specAttrName,
        stateAttrName = _this$state2.stateAttrName,
        newEntry = _this$state2.newEntry,
        configEntryModalShow = _this$state2.configEntryModalShow,
        error = _this$state2.error,
        errorModal = _this$state2.errorModal,
        saveBtnDisabled = _this$state2.saveBtnDisabled,
        saveBtnDisabledModal = _this$state2.saveBtnDisabledModal,
        saving = _this$state2.saving,
        savingModal = _this$state2.savingModal,
        addingModal = _this$state2.addingModal;
    var extraPrimaryProps = {};
    var saveBtnText = "Save Config";

    if (saving) {
      // Main plugin config
      saveBtnText = "Saving ...";
    }

    var modalButtons = [];

    if (!newEntry) {
      modalButtons = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, {
        key: "del",
        variant: "primary",
        onClick: this.showConfirmDelete
      }, "Delete Config"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, _extends({
        key: "save",
        variant: "primary",
        onClick: this.editConfig,
        isDisabled: saveBtnDisabledModal,
        isLoading: savingModal,
        spinnerAriaValueText: savingModal ? "Saving" : undefined
      }, extraPrimaryProps), savingModal ? "Saving ..." : "Save Config"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.closeModal
      }, "Cancel")];
    } else {
      modalButtons = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, _extends({
        key: "add",
        variant: "primary",
        onClick: this.addConfig,
        isDisabled: saveBtnDisabledModal,
        isLoading: addingModal,
        spinnerAriaValueText: addingModal ? "Saving" : undefined
      }, extraPrimaryProps), addingModal ? "Adding ..." : "Add Config"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.closeModal
      }, "Cancel")];
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: this.state.saving || this.state.savingModal || this.state.addingModal ? "ds-disabled" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ModalVariant.medium,
      title: "Manage Account Policy Plugin Shared Config Entry",
      isOpen: configEntryModalShow,
      "aria-labelledby": "ds-modal",
      onClose: this.closeModal,
      actions: modalButtons
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Form, {
      isHorizontal: true,
      autoComplete: "no"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "DN of the config entry"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 4,
      className: "ds-label"
    }, "Config DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextInput, {
      value: configDN,
      type: "text",
      id: "configDN",
      "aria-describedby": "horizontal-form-name-helper",
      name: "configDN",
      onChange: (str, e) => {
        this.handleModalChange(e);
      },
      validated: errorModal.configDN ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.ValidatedOptions["default"],
      isDisabled: newEntry
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.FormHelperText, {
      isError: true,
      isHidden: !errorModal.configDN
    }, "Value must be a valid DN"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "Specifies the attribute to store the time of the last successful login in this attribute in the users directory entry (alwaysRecordLoginAttr)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 4,
      className: "ds-label"
    }, "Always Record Login Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 4
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.SelectVariant.typeahead,
      typeAheadAriaLabel: "Type an attribute name",
      onToggle: this.onRecordLoginToggle,
      onSelect: this.onRecordLoginSelect,
      onClear: this.onRecordLoginClear,
      selections: alwaysRecordLoginAttr,
      isOpen: this.state.isRecordLoginOpen,
      "aria-labelledby": "typeAhead-record-login",
      placeholderText: "Type an attribute name ...",
      noResultsFoundText: "There are no matching entries"
    }, this.props.attributes.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
      key: index,
      value: attr
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 4
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Checkbox, {
      id: "alwaysRecordLogin",
      className: "ds-left-margin",
      isChecked: alwaysRecordLogin,
      title: "Sets that every entry records its last login time (alwaysRecordLogin)",
      onChange: this.handleCheckboxChange,
      label: "Always Record Login"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "Specifies the attribute to identify which entries are account policy configuration entries (specAttrName)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 4,
      className: "ds-label"
    }, "Specific Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.SelectVariant.typeahead,
      typeAheadAriaLabel: "Type an attribute name",
      onToggle: this.onSpecificAttrToggle,
      onSelect: this.onSpecificAttrSelect,
      onClear: this.onSpecificAttrClear,
      selections: specAttrName,
      isOpen: this.state.isSpecificAttrOpen,
      "aria-labelledby": "typeAhead-specific-attr",
      placeholderText: "Type an attribute name ...",
      noResultsFoundText: "There are no matching entries"
    }, this.props.attributes.map(attr => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
      key: attr,
      value: attr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "Specifies the primary time attribute used to evaluate an account policy (stateAttrName)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 4,
      className: "ds-label"
    }, "State Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.SelectVariant.typeahead,
      typeAheadAriaLabel: "Type an attribute name",
      onToggle: this.onStateAttrToggle,
      onSelect: this.onStateAttrSelect,
      onClear: this.onStateAttrClear,
      selections: stateAttrName,
      isOpen: this.state.isStateAttrOpen,
      "aria-labelledby": "typeAhead-state-attr",
      placeholderText: "Type an attribute name ...",
      noResultsFoundText: "There are no matching entries"
    }, this.props.attributes.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
      key: index,
      value: attr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "Provides a backup attribute for the server to reference to evaluate the expiration time (altStateAttrName)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 4,
      className: "ds-label"
    }, "Alternative State Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.SelectVariant.typeahead,
      typeAheadAriaLabel: "Type an attribute name",
      onToggle: this.onAlternativeStateToggle,
      onSelect: this.onAlternativeStateSelect,
      onClear: this.onAlternativeStateClear,
      selections: altStateAttrName,
      isOpen: this.state.isAltStateAttrOpen,
      "aria-labelledby": "typeAhead-alt-state-attr",
      placeholderText: "Type an attribute name ...",
      noResultsFoundText: "There are no matching entries"
    }, this.props.attributes.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
      key: index,
      value: attr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "Specifies the attribute within the policy to use for the account inactivation limit (limitAttrName)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 4,
      className: "ds-label"
    }, "Limit Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.SelectVariant.typeahead,
      typeAheadAriaLabel: "Type an attribute name",
      onToggle: this.onLimitAttrToggle,
      onSelect: this.onLimitAttrSelect,
      onClear: this.onLimitAttrClear,
      selections: limitAttrName,
      isOpen: this.state.isLimitAttrOpen,
      "aria-labelledby": "typeAhead-limit-attr",
      placeholderText: "Type an attribute name ...",
      noResultsFoundText: "There are no matching entries"
    }, this.props.attributes.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
      key: index,
      value: attr
    }))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], {
      rows: this.props.rows,
      serverId: this.props.serverId,
      cn: "Account Policy Plugin",
      pluginName: "Account Policy",
      cmdName: "account-policy",
      savePluginHandler: this.props.savePluginHandler,
      pluginListHandler: this.props.pluginListHandler,
      addNotification: this.props.addNotification,
      toggleLoadingHandler: this.props.toggleLoadingHandler
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "DN of the shared config entry (nsslapd-pluginConfigArea)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Shared Config Entry"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 7
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextInput, {
      value: configArea,
      type: "text",
      id: "configArea",
      "aria-describedby": "horizontal-form-name-helper",
      name: "configArea",
      onChange: (str, e) => {
        this.handleFieldChange(e);
      },
      validated: error.configArea ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.FormHelperText, {
      isError: true,
      isHidden: !error.configArea
    }, "Value must be a valid DN")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, {
      className: "ds-left-margin",
      key: "manage",
      variant: "primary",
      onClick: this.openModal,
      isDisabled: saveBtnDisabled
    }, this.state.sharedConfigExists ? "Manage Config" : "Create Config")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, _extends({
      className: "ds-margin-top-lg",
      key: "at",
      isLoading: saving,
      spinnerAriaValueText: saving ? "Loading" : undefined,
      variant: "primary",
      onClick: this.saveConfig
    }, extraPrimaryProps, {
      isDisabled: saveBtnDisabled
    }), saveBtnText)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_4__.DoubleConfirmModal, {
      showModal: this.state.showConfirmDelete,
      closeHandler: this.closeConfirmDelete,
      handleChange: this.handleChange,
      actionHandler: this.deleteConfig,
      spinning: this.state.modalSpinning,
      item: this.state.configDN,
      checked: this.state.modalChecked,
      mTitle: "Delete Account Policy Config Entry",
      mMsg: "Are you sure you want to delete this config entry?",
      mSpinningMsg: "Deleting ...",
      mBtnName: "Delete"
    }));
  }

}

AccountPolicy.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().array),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().string),
  savePluginHandler: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().func),
  pluginListHandler: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().func),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().func),
  toggleLoadingHandler: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().func)
};
AccountPolicy.defaultProps = {
  rows: [],
  serverId: ""
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AccountPolicy);

/***/ }),

/***/ "./src/lib/plugins/attributeUniqueness.jsx":
/*!*************************************************!*\
  !*** ./src/lib/plugins/attributeUniqueness.jsx ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Switch/Switch.js");
/* harmony import */ var _pluginTables_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./pluginTables.jsx */ "./src/lib/plugins/pluginTables.jsx");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_20__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }










class AttributeUniqueness extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  componentDidMount() {
    if (this.props.wasActiveList.includes(5)) {
      if (this.state.firstLoad) {
        this.loadConfigs();
      }
    }
  }

  constructor(props) {
    super(props);
    this.state = {
      firstLoad: true,
      configRows: [],
      modalChecked: false,
      modalSpinning: false,
      tableKey: 0,
      saveBtnDisabled: true,
      error: {},
      configName: "",
      configEnabled: false,
      attrNames: [],
      subtrees: [],
      subtreesOptions: [],
      acrossAllSubtrees: false,
      topEntryOc: "",
      subtreeEnriesOc: "",
      _configName: "",
      _configEnabled: false,
      _attrNames: [],
      _subtrees: [],
      _subtreesOptions: [],
      _acrossAllSubtrees: false,
      _topEntryOc: "",
      _subtreeEnriesOc: "",
      newEntry: false,
      showConfigModal: false,
      showConfirmDelete: false,
      isAttributeNameOpen: false,
      isSubtreesOpen: false
    };
    this.handleSwitchChange = this.handleSwitchChange.bind(this);
    this.handleChange = this.handleChange.bind(this);
    this.handleFieldChange = this.handleFieldChange.bind(this);
    this.handleTypeaheadChange = this.handleTypeaheadChange.bind(this);
    this.loadConfigs = this.loadConfigs.bind(this);
    this.showEditConfigModal = this.showEditConfigModal.bind(this);
    this.showAddConfigModal = this.showAddConfigModal.bind(this);
    this.closeModal = this.closeModal.bind(this);
    this.openModal = this.openModal.bind(this);
    this.cmdOperation = this.cmdOperation.bind(this);
    this.closeConfirmDelete = this.closeConfirmDelete.bind(this);
    this.showConfirmDelete = this.showConfirmDelete.bind(this);
    this.deleteConfig = this.deleteConfig.bind(this);
    this.addConfig = this.addConfig.bind(this);
    this.editConfig = this.editConfig.bind(this);
    this.validateConfig = this.validateConfig.bind(this); // Attribute Name

    this.onAttributeNameSelect = (event, selection) => {
      if (this.state.attrNames.includes(selection)) {
        this.setState(prevState => ({
          attrNames: prevState.attrNames.filter(item => item !== selection),
          isAttributeNameOpen: false
        }), () => {
          this.validateConfig();
        });
      } else {
        this.setState(prevState => ({
          attrNames: [...prevState.attrNames, selection],
          isAttributeNameOpen: false
        }), () => {
          this.validateConfig();
        });
      }
    };

    this.onAttributeNameToggle = isAttributeNameOpen => {
      this.setState({
        isAttributeNameOpen
      }, () => {
        this.validateConfig();
      });
    };

    this.onAttributeNameClear = () => {
      this.setState({
        attrNames: [],
        isAttributeNameOpen: false
      }, () => {
        this.validateConfig();
      });
    }; // Subtrees


    this.onSubtreesSelect = (event, selection) => {
      if (this.state.subtrees.includes(selection)) {
        this.setState(prevState => ({
          subtrees: prevState.subtrees.filter(item => item !== selection),
          isAttributeNameOpen: false
        }), () => {
          this.validateConfig();
        });
      } else {
        this.setState(prevState => ({
          subtrees: [...prevState.subtrees, selection],
          isAttributeNameOpen: false
        }), () => {
          this.validateConfig();
        });
      }
    };

    this.onSubtreesToggle = isSubtreesOpen => {
      this.setState({
        isSubtreesOpen
      }, () => {
        this.validateConfig();
      });
    };

    this.onSubtreesClear = () => {
      this.setState({
        subtrees: [],
        isSubtreesOpen: false
      }, () => {
        this.validateConfig();
      });
    };

    this.onSubtreesCreateOption = newValue => {
      if (!this.state.subtreesOptions.includes(newValue)) {
        this.setState({
          subtreesOptions: [...this.state.subtreesOptions, newValue],
          isSubtreesOpen: false
        }, () => {
          this.validateConfig();
        });
      }
    };
  }

  validateConfig() {
    var errObj = {};
    var all_good = true; // Must have a subtree and attribute set

    for (var _i = 0, _arr = ['attrNames', 'subtrees']; _i < _arr.length; _i++) {
      var attrList = _arr[_i];

      if (this.state[attrList].length == 0) {
        errObj[attrList] = true;
        all_good = false;
      }
    } // Validate the subtree dn's


    var _iterator = _createForOfIteratorHelper(this.state.subtrees),
        _step;

    try {
      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        var dn = _step.value;

        if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.valid_dn)(dn)) {
          errObj.subtrees = true;
          all_good = false;
          break;
        }
      }
    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }

    if (this.state.configName == "") {
      errObj.configName = true;
      all_good = false;
    }

    if (all_good) {
      // Check for value differences to see if the save btn should be enabled
      all_good = false;
      var attrLists = ['subtrees', 'attrNames'];

      for (var _i2 = 0, _attrLists = attrLists; _i2 < _attrLists.length; _i2++) {
        var check_attr = _attrLists[_i2];

        if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.listsEqual)(this.state[check_attr], this.state['_' + check_attr])) {
          all_good = true;
          break;
        }
      }

      var configAttrs = ['acrossAllSubtrees', 'topEntryOc', 'subtreeEnriesOc', 'configEnabled'];

      for (var _i3 = 0, _configAttrs = configAttrs; _i3 < _configAttrs.length; _i3++) {
        var _check_attr = _configAttrs[_i3];

        if (this.state[_check_attr] != this.state['_' + _check_attr]) {
          all_good = true;
          break;
        }
      }
    }

    this.setState({
      saveBtnDisabled: !all_good,
      error: errObj
    });
  }

  handleSwitchChange(value) {
    this.setState({
      configEnabled: value
    }, () => {
      this.validateConfig();
    });
  }

  handleChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [e.target.id]: value
    });
  }

  handleFieldChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [e.target.id]: value
    }, () => {
      this.validateConfig();
    });
  }

  handleTypeaheadChange(values) {
    // When typaheads allow new values, an object is returned
    // instead of string.  Grab the "label" in this case
    var new_values = [];

    var _iterator2 = _createForOfIteratorHelper(values),
        _step2;

    try {
      for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
        var val = _step2.value;

        if (val != "") {
          if (typeof val === 'object') {
            val = val.label;
          }

          new_values.push(val);
        }
      }
    } catch (err) {
      _iterator2.e(err);
    } finally {
      _iterator2.f();
    }

    this.setState({
      subtrees: new_values
    });
  }

  loadConfigs() {
    this.setState({
      firstLoad: false
    });
    this.props.pluginListHandler(); // Get all the attributes and matching rules now

    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "attr-uniq", "list"];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)("loadConfigs", "Get Attribute Uniqueness Plugin configs", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var myObject = JSON.parse(content);
      var tableKey = this.state.tableKey + 1;
      this.setState({
        configRows: myObject.items.map(item => item.attrs),
        tableKey: tableKey
      });
    }).fail(err => {
      if (err != 0) {
        var errMsg = JSON.parse(err);
        console.log("loadConfigs failed", errMsg.desc);
      }
    });
  }

  showEditConfigModal(name) {
    this.openModal(name);
  }

  showAddConfigModal(rowData) {
    this.openModal();
  }

  openModal(name) {
    if (!name) {
      this.setState({
        configEntryModalShow: true,
        newEntry: true,
        configEnabled: false,
        configName: "",
        attrNames: [],
        subtrees: [],
        acrossAllSubtrees: false,
        topEntryOc: "",
        subtreeEnriesOc: ""
      });
    } else {
      var configAttrNamesList = [];
      var configSubtreesList = [];
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "attr-uniq", "show", name];
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)("openModal", "Fetch the Attribute Uniqueness Plugin config entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        var configEntry = JSON.parse(content).attrs;
        this.setState({
          configEntryModalShow: true,
          newEntry: false,
          configName: configEntry.cn === undefined ? "" : configEntry.cn[0],
          configEnabled: !(configEntry["nsslapd-pluginenabled"] === undefined || configEntry["nsslapd-pluginenabled"][0] == "off"),
          acrossAllSubtrees: !(configEntry["uniqueness-across-all-subtrees"] === undefined || configEntry["uniqueness-across-all-subtrees"][0] == "off"),
          topEntryOc: configEntry["uniqueness-top-entry-oc"] === undefined ? "" : configEntry["uniqueness-top-entry-oc"][0],
          subtreeEnriesOc: configEntry["uniqueness-subtree-entries-oc"] === undefined ? "" : configEntry["uniqueness-subtree-entries-oc"][0],
          _configEnabled: !(configEntry["nsslapd-pluginenabled"] === undefined || configEntry["nsslapd-pluginenabled"][0] == "off"),
          _acrossAllSubtrees: !(configEntry["uniqueness-across-all-subtrees"] === undefined || configEntry["uniqueness-across-all-subtrees"][0] == "off"),
          _topEntryOc: configEntry["uniqueness-top-entry-oc"] === undefined ? "" : configEntry["uniqueness-top-entry-oc"][0],
          _subtreeEnriesOc: configEntry["uniqueness-subtree-entries-oc"] === undefined ? "" : configEntry["uniqueness-subtree-entries-oc"][0]
        });

        if (configEntry["uniqueness-attribute-name"] === undefined) {
          this.setState({
            attrNames: [],
            _attrNames: []
          });
        } else {
          var _iterator3 = _createForOfIteratorHelper(configEntry["uniqueness-attribute-name"]),
              _step3;

          try {
            for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
              var value = _step3.value;
              configAttrNamesList = [...configAttrNamesList, value];
            }
          } catch (err) {
            _iterator3.e(err);
          } finally {
            _iterator3.f();
          }

          this.setState({
            attrNames: configAttrNamesList,
            _attrNames: [...configAttrNamesList]
          });
        }

        if (configEntry["uniqueness-subtrees"] === undefined) {
          this.setState({
            subtrees: [],
            _subtrees: []
          });
        } else {
          var _iterator4 = _createForOfIteratorHelper(configEntry["uniqueness-subtrees"]),
              _step4;

          try {
            for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
              var _value = _step4.value;
              configSubtreesList = [...configSubtreesList, _value];
            }
          } catch (err) {
            _iterator4.e(err);
          } finally {
            _iterator4.f();
          }

          this.setState({
            subtrees: configSubtreesList,
            _subtrees: [...configSubtreesList]
          });
        }
      }).fail(_ => {
        this.setState({
          configEntryModalShow: true,
          newEntry: true,
          configName: "",
          attrNames: [],
          subtrees: [],
          acrossAllSubtrees: false,
          topEntryOc: "",
          subtreeEnriesOc: "",
          configEnabled: false
        });
      });
    }
  }

  closeModal() {
    this.setState({
      configEntryModalShow: false
    });
  }

  cmdOperation(action) {
    var _this$state = this.state,
        configName = _this$state.configName,
        configEnabled = _this$state.configEnabled,
        attrNames = _this$state.attrNames,
        subtrees = _this$state.subtrees,
        acrossAllSubtrees = _this$state.acrossAllSubtrees,
        topEntryOc = _this$state.topEntryOc,
        subtreeEnriesOc = _this$state.subtreeEnriesOc;
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "attr-uniq", action, configName, "--enabled", configEnabled ? "on" : "off", "--across-all-subtrees", acrossAllSubtrees ? "on" : "off"];

    if (subtrees.length == 0 && subtreeEnriesOc.length == 0) {
      // There mustr a subtree or entry OC sets
      this.props.addNotification("error", "There must be at least one Subtree or Subtree Entries OC set");
      return;
    }

    this.setState({
      saving: true
    }); // Delete attributes if the user set an empty value to the field

    if (!(action == "add" && attrNames.length == 0)) {
      cmd = [...cmd, "--attr-name"];

      if (attrNames.length != 0) {
        var _iterator5 = _createForOfIteratorHelper(attrNames),
            _step5;

        try {
          for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
            var value = _step5.value;
            cmd = [...cmd, value];
          }
        } catch (err) {
          _iterator5.e(err);
        } finally {
          _iterator5.f();
        }
      } else if (action == "add") {
        cmd = [...cmd, ""];
      } else {
        cmd = [...cmd, "delete"];
      }
    }

    if (!(action == "add" && subtrees.length == 0)) {
      cmd = [...cmd, "--subtree"];

      if (subtrees.length != 0) {
        var _iterator6 = _createForOfIteratorHelper(subtrees),
            _step6;

        try {
          for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
            var _value2 = _step6.value;
            cmd = [...cmd, _value2];
          }
        } catch (err) {
          _iterator6.e(err);
        } finally {
          _iterator6.f();
        }
      } else if (action == "add") {
        cmd = [...cmd, ""];
      } else {
        cmd = [...cmd, "delete"];
      }
    }

    cmd = [...cmd, "--top-entry-oc"];

    if (topEntryOc.length != 0) {
      cmd = [...cmd, topEntryOc];
    } else if (action == "add") {
      cmd = [...cmd, ""];
    } else {
      cmd = [...cmd, "delete"];
    }

    cmd = [...cmd, "--subtree-entries-oc"];

    if (subtreeEnriesOc.length != 0) {
      cmd = [...cmd, subtreeEnriesOc];
    } else if (action == "add") {
      cmd = [...cmd, ""];
    } else {
      cmd = [...cmd, "delete"];
    }

    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)("attrUniqOperation", "Do the ".concat(action, " operation on the Attribute Uniqueness Plugin"), cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("attrUniqOperation", "Result", content);
      this.props.addNotification("success", "The ".concat(action, " operation was successfully done on \"").concat(configName, "\" entry"));
      this.loadConfigs();
      this.closeModal();
      this.setState({
        saving: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error during the config entry ".concat(action, " operation - ").concat(errMsg.desc));
      this.loadConfigs();
      this.closeModal();
      this.setState({
        saving: false
      });
    });
  }

  showConfirmDelete(name) {
    this.setState({
      showConfirmDelete: true,
      modalChecked: false,
      modalSpinning: false,
      deleteName: name
    });
  }

  closeConfirmDelete() {
    this.setState({
      showConfirmDelete: false,
      modalChecked: false,
      modalSpinning: false,
      deleteName: ""
    });
  }

  deleteConfig() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "attr-uniq", "delete", this.state.deleteName];
    this.setState({
      modalSpinning: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)("deleteConfig", "Delete the Attribute Uniqueness Plugin config entry", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("deleteConfig", "Result", content);
      this.props.addNotification("success", "Config entry ".concat(this.state.deleteName, " was successfully deleted"));
      this.loadConfigs();
      this.closeModal();
      this.closeConfirmDelete();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error during the config entry removal operation - ".concat(errMsg.desc));
      this.loadConfigs();
      this.closeConfirmDelete();
      this.closeModal();
    });
  }

  addConfig() {
    this.cmdOperation("add");
  }

  editConfig() {
    this.cmdOperation("set");
  }

  render() {
    var _this$state2 = this.state,
        configEntryModalShow = _this$state2.configEntryModalShow,
        configName = _this$state2.configName,
        attrNames = _this$state2.attrNames,
        subtrees = _this$state2.subtrees,
        acrossAllSubtrees = _this$state2.acrossAllSubtrees,
        configEnabled = _this$state2.configEnabled,
        topEntryOc = _this$state2.topEntryOc,
        subtreeEnriesOc = _this$state2.subtreeEnriesOc,
        newEntry = _this$state2.newEntry;
    var title = (newEntry ? "Add" : "Edit") + " Attribute Uniqueness Plugin Config Entry";
    var saveBtnName = (newEntry ? "Add" : "Save") + " Config";
    var extraPrimaryProps = {};

    if (this.state.saving) {
      if (newEntry) {
        saveBtnName = "Adding Config ...";
      } else {
        saveBtnName = "Saving Config ...";
      }

      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: this.state.saving || this.state.modalSpinning ? "ds-disabled" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ModalVariant.medium,
      title: title,
      "aria-labelledby": "ds-modal",
      isOpen: configEntryModalShow,
      onClose: this.closeModal,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Button, _extends({
        className: "ds-margin-top",
        key: "confirm",
        variant: "primary",
        onClick: newEntry ? this.addConfig : this.editConfig,
        isDisabled: this.state.saveBtnDisabled,
        isLoading: this.state.saving,
        spinnerAriaValueText: this.state.saving ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.closeModal
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-top",
      title: "Sets the name of the plug-in configuration record. (cn) You can use any string, but \"attribute_name Attribute Uniqueness\" is recommended."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Config Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      value: configName,
      type: "text",
      id: "configName",
      "aria-describedby": "horizontal-form-name-helper",
      name: "configName",
      isDisabled: !newEntry,
      onChange: (str, e) => {
        this.handleFieldChange(e);
      },
      validated: this.state.error.configName || this.state.configName == "" ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      title: "Sets the name of the attribute whose values must be unique. This attribute is multi-valued. (uniqueness-attribute-name)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Attribute Names"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type an attribute",
      onToggle: this.onAttributeNameToggle,
      onSelect: this.onAttributeNameSelect,
      onClear: this.onAttributeNameClear,
      selections: attrNames,
      isOpen: this.state.isAttributeNameOpen,
      "aria-labelledby": "typeAhead-attr-name",
      placeholderText: "Type an attribute name...",
      noResultsFoundText: "There are no matching attributes",
      validated: this.state.error.attrNames ? "error" : "default"
    }, this.props.attributes.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
      key: index,
      value: attr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      title: "Sets the DN under which the plug-in checks for uniqueness of the attributes value. This attribute is multi-valued (uniqueness-subtrees)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Subtrees"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type a subtree DN",
      onToggle: this.onSubtreesToggle,
      onSelect: this.onSubtreesSelect,
      onClear: this.onSubtreesClear,
      selections: subtrees,
      isOpen: this.state.isSubtreesOpen,
      "aria-labelledby": "typeAhead-subtrees",
      placeholderText: "Type a subtree DN...",
      noResultsFoundText: "There are no matching entries",
      isCreatable: true,
      onCreateOption: this.onSubtreesCreateOption,
      validated: this.state.error.subtrees ? "error" : "default"
    }, [""].map((dn, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
      key: index,
      value: dn
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      title: "Verifies that the value of the attribute set in uniqueness-attribute-name is unique in this subtree (uniqueness-top-entry-oc)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Top Entry OC"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.FormSelect, {
      id: "topEntryOc",
      value: topEntryOc,
      onChange: (value, event) => {
        this.handleFieldChange(event);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.FormSelectOption, {
      key: "no-setting",
      value: "",
      label: "-"
    }), this.props.objectClasses.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.FormSelectOption, {
      key: attr,
      value: attr,
      label: attr
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      sm: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "acrossAllSubtrees",
      className: "ds-left-margin",
      isChecked: acrossAllSubtrees,
      title: "If enabled (on), the plug-in checks that the attribute is unique across all subtrees set. If you set the attribute to off, uniqueness is only enforced within the subtree of the updated entry (uniqueness-across-all-subtrees)",
      onChange: (checked, e) => {
        this.handleFieldChange(e);
      },
      label: "Across All Subtrees"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      title: "Verifies if an attribute is unique, if the entry contains the objectclass set in this parameter (uniqueness-subtree-entries-oc)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Subtree Entry's OC"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.FormSelect, {
      id: "subtreeEnriesOc",
      value: subtreeEnriesOc,
      onChange: (value, event) => {
        this.handleFieldChange(event);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.FormSelectOption, {
      key: "no_setting",
      value: "",
      label: "-"
    }), this.props.objectClasses.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.FormSelectOption, {
      key: index,
      value: attr,
      label: attr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-bottom",
      title: "Identifies whether or not the config is enabled."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Enable config"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Switch, {
      id: "configEnabled",
      label: "Configuration is enabled",
      labelOff: "Configuration is disabled",
      isChecked: configEnabled,
      onChange: this.handleSwitchChange
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_4__["default"], {
      removeSwitch: true,
      rows: this.props.rows,
      key: this.state.configRows,
      serverId: this.props.serverId,
      cn: "attribute uniqueness",
      pluginName: "Attribute Uniqueness",
      cmdName: "attr-uniq",
      savePluginHandler: this.props.savePluginHandler,
      pluginListHandler: this.props.pluginListHandler,
      addNotification: this.props.addNotification,
      toggleLoadingHandler: this.props.toggleLoadingHandler
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_2__.AttrUniqConfigTable, {
      key: this.state.tableKey,
      rows: this.state.configRows,
      editConfig: this.showEditConfigModal,
      deleteConfig: this.showConfirmDelete
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Button, {
      key: "add-config",
      variant: "primary",
      onClick: this.showAddConfigModal
    }, "Add Config")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__.DoubleConfirmModal, {
      showModal: this.state.showConfirmDelete,
      closeHandler: this.closeConfirmDelete,
      handleChange: this.handleChange,
      actionHandler: this.deleteConfig,
      spinning: this.state.modalSpinning,
      item: this.state.deleteName,
      checked: this.state.modalChecked,
      mTitle: "Delete Attribute Uniqueness Configuration",
      mMsg: "Are you sure you want to delete this configuration?",
      mSpinningMsg: "Deleting attribute uniqueness configuration...",
      mBtnName: "Delete Configuration"
    }));
  }

}

AttributeUniqueness.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_20___default().array),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_20___default().string),
  savePluginHandler: (prop_types__WEBPACK_IMPORTED_MODULE_20___default().func),
  pluginListHandler: (prop_types__WEBPACK_IMPORTED_MODULE_20___default().func),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_20___default().func),
  toggleLoadingHandler: (prop_types__WEBPACK_IMPORTED_MODULE_20___default().func),
  objectClasses: (prop_types__WEBPACK_IMPORTED_MODULE_20___default().array)
};
AttributeUniqueness.defaultProps = {
  rows: [],
  serverId: "",
  objectClasses: []
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AttributeUniqueness);

/***/ }),

/***/ "./src/lib/plugins/autoMembership.jsx":
/*!********************************************!*\
  !*** ./src/lib/plugins/autoMembership.jsx ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/arrow-right-icon.js");
/* harmony import */ var _pluginTables_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./pluginTables.jsx */ "./src/lib/plugins/pluginTables.jsx");
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_21__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }











class AutoMembership extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  componentDidMount() {
    if (this.props.wasActiveList.includes(5)) {
      if (this.state.firstLoad) {
        this.loadDefinitions();
      }
    }
  }

  constructor(props) {
    super(props);
    this.state = {
      firstLoad: true,
      definitionRows: [],
      regexRows: [],
      _regexRows: [],
      regexesToDelete: [],
      modalSpinning: false,
      modalChecked: false,
      saving: false,
      savingRegex: false,
      saveBtnDisabled: true,
      saveRegexBtnDisabled: true,
      error: {},
      errorRegex: {},
      // Definition settings
      definitionName: "",
      defaultGroup: "",
      filter: "",
      groupingAttrMember: "",
      groupingAttrEntry: "",
      scope: "",
      _definitionName: "",
      _defaultGroup: "",
      _filter: "",
      _groupingAttrMember: "",
      _groupingAttrEntry: "",
      _scope: "",
      // Regex settings
      regexName: "",
      regexTargetGroup: "",
      regexExclusive: [],
      regexInclusive: [],
      _regexName: "",
      _regexTargetGroup: "",
      _regexExclusive: [],
      _excludeOptions: [],
      _regexInclusive: [],
      isRegexExcludeOpen: false,
      excludeOptions: [],
      isRegexIncludeOpen: false,
      includeOptions: [],
      regexTableKey: 0,
      newDefinitionEntry: false,
      newRegexEntry: false,
      definitionEntryModalShow: false,
      regexEntryModalShow: false,
      showConfirmDelete: false
    }; // This vastly improves rendering performance during handleChange()

    var attrs = [...this.props.attributes, 'dn'].sort();
    this.attrRows = attrs.map(attr => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: attr,
      value: attr,
      label: attr
    }));

    this.onRegexExcludeSelect = (event, selection) => {
      var regexExclusive = this.state.regexExclusive;

      if (regexExclusive.includes(selection)) {
        this.setState(prevState => ({
          regexExclusive: prevState.regexExclusive.filter(item => item !== selection),
          isRegexExcludeOpen: false
        }), () => {
          this.validateRegex();
        });
      } else {
        this.setState(prevState => ({
          regexExclusive: [...prevState.regexExclusive, selection],
          isRegexExcludeOpen: false
        }), () => {
          this.validateRegex();
        });
      }
    };

    this.onCreateRegexExcludeOption = newValue => {
      if (!this.state.excludeOptions.includes(newValue)) {
        this.setState({
          excludeOptions: [...this.state.excludeOptions, newValue],
          isRegexExcludeOpen: false
        });
      }
    };

    this.onRegexExcludeToggle = isRegexExcludeOpen => {
      this.setState({
        isRegexExcludeOpen
      });
    };

    this.clearRegexExcludeSelection = () => {
      this.setState({
        regexExclusive: [],
        isRegexExcludeOpen: false
      }, () => {
        this.validateRegex();
      });
    };

    this.onRegexIncludeSelect = (event, selection) => {
      var regexInclusive = this.state.regexInclusive;

      if (regexInclusive.includes(selection)) {
        this.setState(prevState => ({
          regexInclusive: prevState.regexInclusive.filter(item => item !== selection),
          isRegexIncludeOpen: false
        }), () => {
          this.validateRegex();
        });
      } else {
        this.setState(prevState => ({
          regexInclusive: [...prevState.regexInclusive, selection],
          isRegexIncludeOpen: false
        }), () => {
          this.validateRegex();
        });
      }
    };

    this.onCreateRegexIncludeOption = newValue => {
      if (!this.state.includeOptions.includes(newValue)) {
        this.setState({
          includeOptions: [...this.state.includeOptions, newValue],
          isRegexIncludeOpen: false
        });
      }
    };

    this.onRegexIncludeToggle = isRegexIncludeOpen => {
      this.setState({
        isRegexIncludeOpen
      });
    };

    this.clearRegexIncludeSelection = () => {
      this.setState({
        regexInclusive: [],
        isRegexIncludeOpen: false
      }, () => {
        this.validateRegex();
      });
    };

    this.validateModal = this.validateModal.bind(this);
    this.validateRegex = this.validateRegex.bind(this);
    this.handleChange = this.handleChange.bind(this);
    this.handleRegexChange = this.handleRegexChange.bind(this);
    this.handleFieldChange = this.handleFieldChange.bind(this);
    this.loadDefinitions = this.loadDefinitions.bind(this);
    this.loadRegexes = this.loadRegexes.bind(this);
    this.openModal = this.openModal.bind(this);
    this.closeModal = this.closeModal.bind(this);
    this.showEditDefinitionModal = this.showEditDefinitionModal.bind(this);
    this.showAddDefinitionModal = this.showAddDefinitionModal.bind(this);
    this.cmdOperation = this.cmdOperation.bind(this);
    this.deleteDefinition = this.deleteDefinition.bind(this);
    this.addDefinition = this.addDefinition.bind(this);
    this.editDefinition = this.editDefinition.bind(this);
    this.openRegexModal = this.openRegexModal.bind(this);
    this.closeRegexModal = this.closeRegexModal.bind(this);
    this.showEditRegexModal = this.showEditRegexModal.bind(this);
    this.showAddRegexModal = this.showAddRegexModal.bind(this);
    this.cmdRegexOperation = this.cmdRegexOperation.bind(this);
    this.deleteRegex = this.deleteRegex.bind(this);
    this.addRegex = this.addRegex.bind(this);
    this.editRegex = this.editRegex.bind(this);
    this.showConfirmDelete = this.showConfirmDelete.bind(this);
    this.closeConfirmDelete = this.closeConfirmDelete.bind(this);
  }

  validateModal() {
    var error = {};
    var all_good = true;
    var dnAttrs = ['defaultGroup', 'scope'];
    var reqAttrs = ['definitionName', 'scope', 'filter', 'groupingAttrMember', 'groupingAttrEntry'];

    for (var _i = 0, _reqAttrs = reqAttrs; _i < _reqAttrs.length; _i++) {
      var attr = _reqAttrs[_i];

      if (this.state[attr] == "") {
        error[attr] = true;
        all_good = false;
      }
    }

    for (var _i2 = 0, _dnAttrs = dnAttrs; _i2 < _dnAttrs.length; _i2++) {
      var _attr = _dnAttrs[_i2];

      if (this.state[_attr] != "" && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(this.state[_attr])) {
        error[_attr] = true;
        all_good = false;
      }
    }

    if (all_good) {
      // Check for value differences to see if the save btn should be enabled
      all_good = false;
      var attrs = ['definitionName', 'defaultGroup', 'filter', 'groupingAttrMember', 'groupingAttrEntry', 'scope'];

      for (var _i3 = 0, _attrs = attrs; _i3 < _attrs.length; _i3++) {
        var check_attr = _attrs[_i3];

        if (this.state[check_attr] != this.state['_' + check_attr]) {
          all_good = true;
          break;
        }
      } // If regexes changed, we need to check that here too


      if (this.state.regexRows.length != this.state._regexRows.length) {
        all_good = true;
      }

      if (!all_good) {
        var _iterator = _createForOfIteratorHelper(this.state.regexRows),
            _step;

        try {
          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            var _row = _step.value;
            var _found = false;

            var _iterator4 = _createForOfIteratorHelper(this.state._regexRows),
                _step4;

            try {
              for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
                var _orig_row = _step4.value;

                if (_orig_row.cn[0] == _row.cn[0]) {
                  _found = true;

                  if (_orig_row.automembertargetgroup[0] != _row.automembertargetgroup[0]) {
                    all_good = true;
                    break;
                  }

                  for (var _i4 = 0, _arr = ['automemberinclusiveregex', 'automemberexclusiveregex']; _i4 < _arr.length; _i4++) {
                    var _attr2 = _arr[_i4];

                    if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.listsEqual)(_orig_row[_attr2], _row[_attr2])) {
                      all_good = true;
                      break;
                    }
                  }
                }
              }
            } catch (err) {
              _iterator4.e(err);
            } finally {
              _iterator4.f();
            }

            if (!_found) {
              all_good = true;
              break;
            }
          }
        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }

        if (!all_good) {
          // Go backwards and check if original rows is different
          var _iterator2 = _createForOfIteratorHelper(this.state._regexRows),
              _step2;

          try {
            for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
              var orig_row = _step2.value;
              var found = false;

              var _iterator3 = _createForOfIteratorHelper(this.state.regexRows),
                  _step3;

              try {
                for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
                  var row = _step3.value;

                  if (orig_row.cn[0] == row.cn[0]) {
                    found = true;
                  }
                }
              } catch (err) {
                _iterator3.e(err);
              } finally {
                _iterator3.f();
              }

              if (!found) {
                all_good = true;
                break;
              }
            }
          } catch (err) {
            _iterator2.e(err);
          } finally {
            _iterator2.f();
          }
        }
      }
    }

    this.setState({
      saveBtnDisabled: !all_good,
      error: error
    });
  }

  validateRegex() {
    var error = {};
    var all_good = true;
    var dnAttrs = ['regexTargetGroup'];
    var reqAttrs = ['regexName', 'regexTargetGroup'];

    for (var _i5 = 0, _reqAttrs2 = reqAttrs; _i5 < _reqAttrs2.length; _i5++) {
      var attr = _reqAttrs2[_i5];

      if (this.state[attr] == "") {
        error[attr] = true;
        all_good = false;
      }
    }

    for (var _i6 = 0, _dnAttrs2 = dnAttrs; _i6 < _dnAttrs2.length; _i6++) {
      var _attr3 = _dnAttrs2[_i6];

      if (this.state[_attr3] != "" && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(this.state[_attr3])) {
        error[_attr3] = true;
        all_good = false;
      }
    }

    if (all_good) {
      // Check for value differences to see if the save btn should be enabled
      all_good = false;
      var attrs = ['regexTargetGroup'];
      var attrsList = ['regexExclusive', 'regexInclusive'];

      for (var _i7 = 0, _attrs2 = attrs; _i7 < _attrs2.length; _i7++) {
        var check_attr = _attrs2[_i7];

        if (this.state[check_attr] != this.state['_' + check_attr]) {
          all_good = true;
          break;
        }
      }

      for (var _i8 = 0, _attrsList = attrsList; _i8 < _attrsList.length; _i8++) {
        var _check_attr = _attrsList[_i8];

        if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.listsEqual)(this.state[_check_attr], this.state['_' + _check_attr])) {
          all_good = true;
          break;
        }
      }
    }

    this.setState({
      saveRegexBtnDisabled: !all_good,
      error: error
    }, () => {
      this.validateModal();
    });
  }

  handleChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [e.target.id]: value
    });
  }

  handleFieldChange(e) {
    var value = e.target.value;
    this.setState({
      [e.target.id]: value
    }, () => {
      this.validateModal();
    });
  }

  handleRegexChange(e) {
    var value = e.target.value;
    this.setState({
      [e.target.id]: value
    }, () => {
      this.validateRegex();
    });
  }

  loadDefinitions() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "automember", "list", "definitions"];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("loadDefinitions", "Get Auto Membership Plugin definitions", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var myObject = JSON.parse(content);
      this.setState({
        definitionRows: myObject.items.map(item => item.attrs),
        firstLoad: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);

      if (err != 0) {
        console.log("loadDefinitions failed", errMsg.desc);
      }
    });
  }

  initRegexRows(rows) {
    var _iterator5 = _createForOfIteratorHelper(rows),
        _step5;

    try {
      for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
        var row = _step5.value;

        if (row.automembertargetgroup === undefined) {
          row.automembertargetgroup = "";
        }

        if (row.automemberexclusiveregex === undefined) {
          row.automemberexclusiveregex = [];
        }

        if (row.automemberinclusiveregex === undefined) {
          row.automemberinclusiveregex = [];
        }
      }
    } catch (err) {
      _iterator5.e(err);
    } finally {
      _iterator5.f();
    }
  }

  loadRegexes(defName) {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "automember", "list", "regexes", defName];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("loadRegexes", "Get Auto Membership Plugin regexes", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var myObject = JSON.parse(content);
      var regexTableKey = this.state.regexTableKey + 1;
      var rows = myObject.items.map(item => item.attrs);
      this.initRegexRows(rows);
      this.setState({
        regexRows: rows,
        _regexRows: JSON.parse(JSON.stringify(rows)),
        regexTableKey: regexTableKey
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);

      if (err != 0) {
        console.log("loadRegexes failed", errMsg.desc);
      }
    });
  }

  showEditDefinitionModal(rowData) {
    this.openModal(rowData);
  }

  showAddDefinitionModal(rowData) {
    this.openModal();
  }

  openModal(name) {
    if (!name) {
      this.setState({
        definitionEntryModalShow: true,
        newDefinitionEntry: true,
        regexRows: [],
        definitionName: "",
        defaultGroup: "",
        filter: "",
        groupingAttrMember: "",
        groupingAttrEntry: "",
        scope: "",
        saveBtnDisabled: true
      });
    } else {
      this.loadRegexes(name);
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "automember", "definition", name, "show"];
      this.props.toggleLoadingHandler();
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("openModal", "Fetch the Auto Membership Plugin definition entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        var definitionEntry = JSON.parse(content).attrs;
        this.setState({
          saveBtnDisabled: true,
          definitionEntryModalShow: true,
          newDefinitionEntry: false,
          definitionName: definitionEntry.cn === undefined ? "" : definitionEntry.cn[0],
          defaultGroup: definitionEntry.automemberdefaultgroup === undefined ? "" : definitionEntry.automemberdefaultgroup[0],
          filter: definitionEntry.automemberfilter === undefined ? "" : definitionEntry.automemberfilter[0],
          scope: definitionEntry.automemberscope === undefined ? "" : definitionEntry.automemberscope[0],
          _definitionName: definitionEntry.cn === undefined ? "" : definitionEntry.cn[0],
          _defaultGroup: definitionEntry.automemberdefaultgroup === undefined ? "" : definitionEntry.automemberdefaultgroup[0],
          _filter: definitionEntry.automemberfilter === undefined ? "" : definitionEntry.automemberfilter[0],
          _scope: definitionEntry.automemberscope === undefined ? "" : definitionEntry.automemberscope[0]
        });

        if (definitionEntry.automembergroupingattr === undefined) {
          this.setState({
            groupingAttrMember: "",
            groupingAttrEntry: "",
            _groupingAttrMember: "",
            _groupingAttrEntry: ""
          });
        } else {
          var groupingAttr = definitionEntry.automembergroupingattr[0];
          this.setState({
            groupingAttrMember: groupingAttr.split(":")[0],
            groupingAttrEntry: groupingAttr.split(":")[1],
            _groupingAttrMember: groupingAttr.split(":")[0],
            _groupingAttrEntry: groupingAttr.split(":")[1]
          });
        }

        this.props.toggleLoadingHandler();
      }).fail(_ => {
        this.setState({
          definitionEntryModalShow: true,
          newDefinitionEntry: true,
          regexRows: [],
          definitionName: "",
          defaultGroup: "",
          filter: "",
          groupingAttrMember: "",
          groupingAttrEntry: "",
          scope: "",
          _definitionName: "",
          _defaultGroup: "",
          _filter: "",
          _groupingAttrMember: "",
          _groupingAttrEntry: "",
          _scope: ""
        });
        this.props.toggleLoadingHandler();
      });
    }
  }

  showEditRegexModal(name) {
    this.openRegexModal(name);
  }

  showAddRegexModal() {
    this.openRegexModal();
  }

  closeModal() {
    this.setState({
      definitionEntryModalShow: false,
      saving: false
    });
  }

  closeRegexModal() {
    this.setState({
      regexEntryModalShow: false
    });
  }

  cmdOperation(action) {
    var _this$state = this.state,
        definitionName = _this$state.definitionName,
        defaultGroup = _this$state.defaultGroup,
        filter = _this$state.filter,
        groupingAttrMember = _this$state.groupingAttrMember,
        groupingAttrEntry = _this$state.groupingAttrEntry,
        scope = _this$state.scope;

    if (definitionName === "" || scope === "" || filter === "" || groupingAttrMember == "" || groupingAttrEntry === "") {
      this.props.addNotification("warning", "Name, Scope, Filter and Grouping Attribute are required.");
    } else {
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "automember", "definition", definitionName, action, "--default-group", defaultGroup || action == "add" ? defaultGroup : "delete", "--filter", filter || action == "add" ? filter : "delete", "--scope", scope || action == "add" ? scope : "delete"];
      cmd = [...cmd, "--grouping-attr"];

      if (groupingAttrMember != "" && groupingAttrEntry != "") {
        cmd = [...cmd, "".concat(groupingAttrMember, ":").concat(groupingAttrEntry)];
      } else if (action == "add") {
        cmd = [...cmd, ""];
      } else {
        cmd = [...cmd, "delete"];
      }

      this.setState({
        saving: true
      });
      this.props.toggleLoadingHandler();
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("AutoMembershipOperation", "Do the ".concat(action, " operation on the Auto Membership Plugin"), cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        console.info("AutoMembershipOperation", "Result", content);
        this.props.addNotification("success", "The ".concat(action, " operation was successfully done on \"").concat(definitionName, "\" entry"));
        this.loadDefinitions();
        this.purgeRegexUpdate();
        this.closeModal();
        this.props.toggleLoadingHandler();
      }).fail(err => {
        var errMsg = JSON.parse(err);

        if (errMsg.desc.indexOf("nothing to set") === 0) {
          this.props.addNotification("error", "Error during the definition entry ".concat(action, " operation - ").concat(errMsg.desc));
        } else {
          this.purgeRegexUpdate();
        }

        this.loadDefinitions();
        this.closeModal();
        this.props.toggleLoadingHandler();
      });
    }
  }

  purgeRegexUpdate() {
    var _this = this;

    var _this$state2 = this.state,
        definitionName = _this$state2.definitionName,
        regexesToDelete = _this$state2.regexesToDelete,
        regexRows = _this$state2.regexRows;

    var _iterator6 = _createForOfIteratorHelper(regexesToDelete),
        _step6;

    try {
      var _loop = function _loop() {
        var regexToDelete = _step6.value;
        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this.props.serverId + ".socket", "plugin", "automember", "definition", definitionName, "regex", regexToDelete, "delete"];
        (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("AutoMembershipRegexOperation", "Do the delete operation on the Auto Membership Plugin Regex Entry", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(content => {
          console.info("AutoMembershipRegexOperation", "Result", "The delete operation was successfully done on \"".concat(regexToDelete, "\" entry"));
        }).fail(err => {
          var errMsg = JSON.parse(err);

          _this.props.addNotification("error", "Error during the regex \"".concat(regexToDelete, "\" entry delete operation - ").concat(errMsg.desc));
        });
      };

      for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
        _loop();
      }
    } catch (err) {
      _iterator6.e(err);
    } finally {
      _iterator6.f();
    }

    var _iterator7 = _createForOfIteratorHelper(regexRows),
        _step7;

    try {
      var _loop2 = function _loop2() {
        var row = _step7.value;
        var action = "";
        var regexName = "";

        if (row.needsadd !== undefined) {
          action = "add";
          regexName = row.cn[0];
        } else if (row.needsupdate !== undefined) {
          action = "set";
          regexName = row.cn[0];
        } else {
          return "continue";
        }

        var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + _this.props.serverId + ".socket", "plugin", "automember", "definition", definitionName, "regex", regexName, action];
        var regexTargetGroup = row.automembertargetgroup[0];
        var regexExclusive = row.automemberexclusiveregex === undefined ? [] : row.automemberexclusiveregex;
        var regexInclusive = row.automemberinclusiveregex === undefined ? [] : row.automemberinclusiveregex;

        if (!(action == "add" && regexTargetGroup == 0)) {
          cmd = [...cmd, "--target-group"];

          if (regexTargetGroup) {
            cmd = [...cmd, regexTargetGroup];
          } else if (action == "add") {
            cmd = [...cmd, ""];
          } else {
            cmd = [...cmd, "delete"];
          }
        }

        if (!(action == "add" && regexExclusive.length == 0)) {
          cmd = [...cmd, "--exclusive"];

          if (regexExclusive.length != 0) {
            var _iterator8 = _createForOfIteratorHelper(regexExclusive),
                _step8;

            try {
              for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
                var regex = _step8.value;
                cmd = [...cmd, regex];
              }
            } catch (err) {
              _iterator8.e(err);
            } finally {
              _iterator8.f();
            }
          } else if (action == "add") {
            cmd = [...cmd, ""];
          } else {
            cmd = [...cmd, "delete"];
          }
        }

        if (!(action == "add" && regexInclusive.length == 0)) {
          cmd = [...cmd, "--inclusive"];

          if (regexInclusive.length != 0) {
            var _iterator9 = _createForOfIteratorHelper(regexInclusive),
                _step9;

            try {
              for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
                var _regex = _step9.value;
                cmd = [...cmd, _regex];
              }
            } catch (err) {
              _iterator9.e(err);
            } finally {
              _iterator9.f();
            }
          } else if (action == "add") {
            cmd = [...cmd, ""];
          } else {
            cmd = [...cmd, "delete"];
          }
        }

        (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("AutoMembershipRegexOperation", "Do the ".concat(action, " operation on the Auto Membership Plugin Regex Entry"), cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(content => {
          console.info("AutoMembershipRegexOperation", "Result", "The ".concat(action, " operation was successfully done on \"").concat(regexName, "\" entry"));
        }).fail(err => {
          var errMsg = JSON.parse(err);

          _this.props.addNotification("error", "Error during the regex \"".concat(regexName, "\" entry ").concat(action, " operation - ").concat(errMsg.desc));
        });
      };

      for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
        var _ret = _loop2();

        if (_ret === "continue") continue;
      }
    } catch (err) {
      _iterator7.e(err);
    } finally {
      _iterator7.f();
    }
  }

  showConfirmDelete(definitionName) {
    this.setState({
      showConfirmDelete: true,
      modalChecked: false,
      modalSpinning: false,
      deleteName: definitionName
    });
  }

  closeConfirmDelete() {
    this.setState({
      showConfirmDelete: false,
      modalChecked: false,
      modalSpinning: false
    });
  }

  deleteDefinition() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "automember", "definition", this.state.deleteName, "delete"];
    this.setState({
      modalSpinning: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("deleteDefinition", "Delete the Auto Membership Plugin definition entry", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("deleteDefinition", "Result", content);
      this.props.addNotification("success", "Definition entry ".concat(this.state.deleteName, " was successfully deleted"));
      this.loadDefinitions();
      this.closeConfirmDelete();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error during the definition entry removal operation - ".concat(errMsg.desc));
      this.loadDefinitions();
      this.closeConfirmDelete();
    });
  }

  addDefinition() {
    this.cmdOperation("add");
  }

  editDefinition() {
    this.cmdOperation("set");
  }

  openRegexModal(name) {
    if (name) {
      var regexEntry = this.state.regexRows.filter(row => row.cn[0] === name)[0];
      var exclusiveRegexList = [];
      var inclusiveRegexList = []; // Get all the attributes and matching rules now

      if (regexEntry.automemberexclusiveregex === undefined) {
        this.setState({
          regexExclusive: [],
          _regexExclusive: []
        });
      } else {
        var _iterator10 = _createForOfIteratorHelper(regexEntry.automemberexclusiveregex),
            _step10;

        try {
          for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
            var value = _step10.value;
            exclusiveRegexList = [...exclusiveRegexList, value];
          }
        } catch (err) {
          _iterator10.e(err);
        } finally {
          _iterator10.f();
        }

        this.setState({
          regexExclusive: exclusiveRegexList,
          _regexExclusive: [...exclusiveRegexList]
        });
      }

      if (regexEntry.automemberinclusiveregex === undefined) {
        this.setState({
          regexInclusive: [],
          _regexInclusive: []
        });
      } else {
        var _iterator11 = _createForOfIteratorHelper(regexEntry.automemberinclusiveregex),
            _step11;

        try {
          for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
            var _value = _step11.value;
            inclusiveRegexList = [...inclusiveRegexList, _value];
          }
        } catch (err) {
          _iterator11.e(err);
        } finally {
          _iterator11.f();
        }

        this.setState({
          regexInclusive: inclusiveRegexList,
          _regexInclusive: [...inclusiveRegexList]
        });
      }

      this.setState({
        regexEntryModalShow: true,
        newRegexEntry: false,
        regexName: regexEntry.cn[0],
        regexTargetGroup: regexEntry.automembertargetgroup === undefined ? "" : regexEntry.automembertargetgroup[0],
        _regexName: regexEntry.cn[0],
        _regexTargetGroup: regexEntry.automembertargetgroup === undefined ? "" : regexEntry.automembertargetgroup[0],
        saveRegexBtnDisabled: true
      });
    } else {
      this.setState({
        regexEntryModalShow: true,
        newRegexEntry: true,
        regexName: "",
        regexExclusive: [],
        regexInclusive: [],
        regexTargetGroup: "",
        _regexName: "",
        _regexExclusive: [],
        _regexInclusive: [],
        _regexTargetGroup: "",
        saveRegexBtnDisabled: true
      });
    }
  }

  cmdRegexOperation(action) {
    var _this$state3 = this.state,
        regexRows = _this$state3.regexRows,
        regexName = _this$state3.regexName,
        regexExclusive = _this$state3.regexExclusive,
        regexInclusive = _this$state3.regexInclusive,
        regexTargetGroup = _this$state3.regexTargetGroup;
    var regexExists = false;

    if (regexRows.some(row => row.cn[0] === regexName)) {
      regexExists = true;
    }

    if (regexName === "" || regexTargetGroup === "") {
      this.props.addNotification("warning", "Name and Target Group are required.");
    } else {
      var regexTableKey = this.state.regexTableKey + 1;

      if (action == "add") {
        if (!regexExists) {
          this.setState(prevState => ({
            regexRows: [...prevState.regexRows, {
              cn: [regexName],
              automembertargetgroup: [regexTargetGroup],
              automemberexclusiveregex: regexExclusive.length !== 0 ? [...regexExclusive] : [],
              automemberinclusiveregex: regexInclusive.length !== 0 ? [...regexInclusive] : [],
              needsadd: true
            }],
            regexTableKey: regexTableKey
          }), () => {
            this.validateModal();
          });
        } else {
          this.props.addNotification("error", "Regex \"".concat(regexName, "\" already exists"));
        }
      } else if (action == "set") {
        if (regexExists) {
          this.setState({
            regexRows: regexRows.filter(row => row.cn[0] !== regexName)
          });
          this.setState(prevState => ({
            regexRows: [...prevState.regexRows, {
              cn: [regexName],
              automembertargetgroup: [regexTargetGroup],
              automemberexclusiveregex: regexExclusive.length !== 0 ? [...regexExclusive] : [],
              automemberinclusiveregex: regexInclusive.length !== 0 ? [...regexInclusive] : [],
              needsupdate: true
            }],
            regexTableKey: regexTableKey
          }), () => {
            this.validateModal();
          });
        } else {
          this.props.addNotification("error", "Regex \"".concat(regexName, "\" does not exist - \"").concat(action, "\" is impossible"));
        }
      }

      this.closeRegexModal();
    }
  }

  deleteRegex(regexName) {
    var regexRows = this.state.regexRows;
    var regexTableKey = this.state.regexTableKey + 1;

    if (regexRows.some(row => row.cn[0] === regexName)) {
      this.setState({
        regexRows: regexRows.filter(row => row.cn[0] !== regexName),
        regexTableKey: regexTableKey
      });
      this.setState(prevState => ({
        regexesToDelete: [...prevState.regexesToDelete, regexName]
      }), () => {
        this.validateModal();
      });
    } else {
      this.props.addNotification("error", "Regex \"".concat(regexName, "\" does not exist - impossible to delete"));
    }
  }

  addRegex() {
    this.cmdRegexOperation("add");
  }

  editRegex() {
    this.cmdRegexOperation("set");
  }

  render() {
    var _this$state4 = this.state,
        regexRows = _this$state4.regexRows,
        definitionEntryModalShow = _this$state4.definitionEntryModalShow,
        definitionName = _this$state4.definitionName,
        defaultGroup = _this$state4.defaultGroup,
        scope = _this$state4.scope,
        filter = _this$state4.filter,
        newDefinitionEntry = _this$state4.newDefinitionEntry,
        regexEntryModalShow = _this$state4.regexEntryModalShow,
        newRegexEntry = _this$state4.newRegexEntry,
        groupingAttrEntry = _this$state4.groupingAttrEntry,
        groupingAttrMember = _this$state4.groupingAttrMember,
        regexName = _this$state4.regexName,
        regexExclusive = _this$state4.regexExclusive,
        regexInclusive = _this$state4.regexInclusive,
        regexTargetGroup = _this$state4.regexTargetGroup,
        saving = _this$state4.saving,
        saveBtnDisabled = _this$state4.saveBtnDisabled,
        saveRegexBtnDisabled = _this$state4.saveRegexBtnDisabled,
        firstLoad = _this$state4.firstLoad;
    var title = (newDefinitionEntry ? "Add" : "Edit") + " Auto Membership Plugin Definition Entry";
    var extraPrimaryProps = {};
    var saveBtnText = newDefinitionEntry ? "Add Definition" : "Save Definition";

    if (saving) {
      // Main plugin config
      saveBtnText = newDefinitionEntry ? "Adding ..." : "Saving ...";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: saving || firstLoad ? "ds-disabled" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ModalVariant.medium,
      title: title,
      isOpen: definitionEntryModalShow,
      "aria-labelledby": "ds-modal",
      onClose: this.closeModal,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, _extends({
        key: "confirm",
        variant: "primary",
        onClick: newDefinitionEntry ? this.addDefinition : this.editDefinition,
        isDisabled: saveBtnDisabled,
        isLoading: saving,
        spinnerAriaValueText: saving ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.closeModal
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Definition Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextInput, {
      value: definitionName,
      type: "text",
      id: "definitionName",
      "aria-describedby": "horizontal-form-name-helper",
      name: "definitionName",
      onChange: (str, e) => {
        this.handleFieldChange(e);
      },
      isDisabled: !newDefinitionEntry,
      validated: this.state.error.definitionName || definitionName == "" ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      title: "Sets the subtree DN to search for entries (autoMemberScope)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Subtree Scope"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextInput, {
      value: scope,
      type: "text",
      id: "scope",
      "aria-describedby": "horizontal-form-name-helper",
      name: "scope",
      onChange: (str, e) => {
        this.handleFieldChange(e);
      },
      validated: this.state.error.scope || scope == "" ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      title: "Sets a standard LDAP search filter to use to search for matching entries (autoMemberFilter)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Entry Filter"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextInput, {
      value: filter,
      type: "text",
      id: "filter",
      "aria-describedby": "horizontal-form-name-helper",
      name: "filter",
      onChange: (str, e) => {
        this.handleFieldChange(e);
      },
      validated: this.state.error.filter || filter == "" ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      title: "Specifies the name of the member attribute in the group entry and the attribute in the object entry that supplies the member attribute value, in the format group_member_attr:entry_attr (autoMemberGroupingAttr)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Grouping Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 4
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.FormSelect, {
      id: "groupingAttrMember",
      value: groupingAttrMember,
      onChange: (value, event) => {
        this.handleFieldChange(event);
      },
      "aria-label": "FormSelect Input",
      validated: groupingAttrMember == "" ? "error" : "default"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: "no-setting",
      value: "",
      label: "-"
    }), this.attrRows)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-center",
      span: 1
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_15__.ArrowRightIcon, {
      className: "ds-lower-field-lg"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 4
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.FormSelect, {
      id: "groupingAttrEntry",
      value: groupingAttrEntry,
      onChange: (value, event) => {
        this.handleFieldChange(event);
      },
      "aria-label": "FormSelect Input",
      validated: groupingAttrEntry == "" ? "error" : "default"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: "no-setting",
      value: "",
      label: "-"
    }), this.attrRows))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      title: "Sets an optional default or fallback group to add the entry to as a member (autoMemberDefaultGroup)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Default Group"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextInput, {
      value: defaultGroup,
      type: "text",
      id: "defaultGroup",
      "aria-describedby": "horizontal-form-name-helper",
      name: "defaultGroup",
      onChange: (str, e) => {
        this.handleFieldChange(e);
      },
      validated: this.state.error.defaultGroup ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions["default"]
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.Text, {
      className: "ds-center",
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.TextVariants.h3
    }, "Membership Regular Expressions")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_2__.AutoMembershipRegexTable, {
      rows: regexRows,
      key: this.state.regexTableKey,
      editConfig: this.showEditRegexModal,
      deleteConfig: this.deleteRegex
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
      variant: "secondary",
      onClick: this.showAddRegexModal
    }, "Add Regex"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ModalVariant.medium,
      title: "Manage Auto Membership Plugin Regex Entry",
      isOpen: regexEntryModalShow,
      "aria-labelledby": "ds-modal",
      onClose: this.closeRegexModal,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
        key: "confirm",
        variant: "primary",
        isDisabled: saveRegexBtnDisabled,
        onClick: newRegexEntry ? this.addRegex : this.editRegex
      }, "Save"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.closeRegexModal
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Regex Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextInput, {
      value: regexName,
      type: "text",
      id: "regexName",
      "aria-describedby": "horizontal-form-name-helper",
      name: "regexName",
      onChange: (str, e) => {
        this.handleRegexChange(e);
      },
      isDisabled: !newRegexEntry,
      validated: this.state.errorRegex.regexName ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      title: "Sets a single regular expression to use to identify entries to exclude (autoMemberExclusiveRegex)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Exclusive Regex"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type a regex",
      onToggle: this.onRegexExcludeToggle,
      onSelect: this.onRegexExcludeSelect,
      onClear: this.clearRegexExcludeSelection,
      selections: regexExclusive,
      isOpen: this.state.isRegexExcludeOpen,
      "aria-labelledby": "typeAhead-excl-regex",
      placeholderText: "Type a regex...",
      isCreatable: true,
      onCreateOption: this.onCreateRegexExcludeOption
    }, [].map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.SelectOption, {
      key: index,
      value: attr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      title: "Sets a single regular expression to use to identify entries to exclude (autoMemberExclusiveRegex)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Inclusive Regex"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type a regex",
      onToggle: this.onRegexIncludeToggle,
      onSelect: this.onRegexIncludeSelect,
      onClear: this.clearRegexIncludeSelection,
      selections: regexInclusive,
      isOpen: this.state.isRegexIncludeOpen,
      "aria-labelledby": "typeAhead-incl-regex",
      placeholderText: "Type a regex...",
      isCreatable: true,
      onCreateOption: this.onCreateRegexIncludeOption
    }, [].map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.SelectOption, {
      key: index,
      value: attr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      title: "Sets which group to add the entry to as a member, if it meets the regular expression conditions (autoMemberTargetGroup)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Target Group"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextInput, {
      value: regexTargetGroup,
      type: "text",
      id: "regexTargetGroup",
      "aria-describedby": "horizontal-form-name-helper",
      name: "regexTargetGroup",
      onChange: (str, e) => {
        this.handleRegexChange(e);
      },
      validated: this.state.errorRegex.regexTargetGroup ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions["default"]
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
      rows: this.props.rows,
      serverId: this.props.serverId,
      cn: "Auto Membership Plugin",
      pluginName: "Auto Membership",
      cmdName: "automember",
      savePluginHandler: this.props.savePluginHandler,
      pluginListHandler: this.props.pluginListHandler,
      addNotification: this.props.addNotification,
      toggleLoadingHandler: this.props.toggleLoadingHandler
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_2__.AutoMembershipDefinitionTable, {
      rows: this.state.definitionRows,
      key: this.state.definitionRows,
      editConfig: this.showEditDefinitionModal,
      deleteConfig: this.showConfirmDelete
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
      variant: "primary",
      onClick: this.showAddDefinitionModal
    }, "Add Definition")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__.DoubleConfirmModal, {
      showModal: this.state.showConfirmDelete,
      closeHandler: this.closeConfirmDelete,
      handleChange: this.handleChange,
      actionHandler: this.deleteDefinition,
      spinning: this.state.modalSpinning,
      item: this.state.deleteName,
      checked: this.state.modalChecked,
      mTitle: "Delete Autemebership Configuration",
      mMsg: "Are you sure you want to delete this configuration?",
      mSpinningMsg: "Deleting Configuration...",
      mBtnName: "Delete Configuration"
    }));
  }

}

AutoMembership.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().array),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().string),
  savePluginHandler: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func),
  pluginListHandler: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func),
  toggleLoadingHandler: (prop_types__WEBPACK_IMPORTED_MODULE_21___default().func)
};
AutoMembership.defaultProps = {
  rows: [],
  serverId: ""
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AutoMembership);

/***/ }),

/***/ "./src/lib/plugins/dna.jsx":
/*!*********************************!*\
  !*** ./src/lib/plugins/dna.jsx ***!
  \*********************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/NumberInput/NumberInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _pluginTables_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./pluginTables.jsx */ "./src/lib/plugins/pluginTables.jsx");
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_26__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }










class DNAPlugin extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      firstLoad: true,
      configRows: [],
      sharedConfigRows: [],
      activeTabKey: 1,
      tableKey: 1,
      modalSpinning: false,
      modalChecked: false,
      deleteItem: "",
      loading: true,
      error: {},
      validatedBindMethod: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions["default"],
      validatedBindMethodText: "",
      validatedConnProtocol: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions["default"],
      validatedConnText: "",
      configName: "",
      prefix: "",
      nextValue: "",
      maxValue: "",
      interval: "",
      magicRegen: "",
      filter: "",
      scope: "",
      remoteBindDN: "",
      remoteBindCred: "",
      sharedConfigEntry: "",
      threshold: "",
      nextRange: "",
      rangeRequestTimeout: "",
      showDeleteConfirm: false,
      saving: false,
      sharedBaseDN: "",
      sharedHostname: "",
      sharedPort: "",
      sharedSecurePort: "",
      sharedRemainingValues: "",
      sharedRemoteBindMethod: "",
      sharedRemoteConnProtocol: "",
      showSharedDeleteConfirm: false,
      savingShared: false,
      newEntry: false,
      configEntryModalShow: false,
      sharedConfigEntryModalShow: false,
      // typeahead
      isOpen: false,
      selected: [],
      saveBtnDisabled: true
    };

    this.onToggle = isOpen => {
      this.setState({
        isOpen
      });
    };

    this.clearSelection = () => {
      this.setState({
        selected: [],
        isOpen: false
      }, () => {
        this.validateConfig();
      });
    };

    this.onSelect = (event, selection) => {
      var selected = this.state.selected;

      if (selected.includes(selection)) {
        this.setState(prevState => ({
          selected: prevState.selected.filter(item => item !== selection),
          isOpen: false
        }), () => {
          this.validateConfig();
        });
      } else {
        this.setState(prevState => ({
          selected: [...prevState.selected, selection],
          isOpen: false
        }), () => {
          this.validateConfig();
        });
      }
    };

    this.maxValue = 20000000;

    this.onMinusConfig = id => {
      this.setState({
        [id]: Number(this.state[id]) - 1
      }, () => {
        this.validateConfig();
      });
    };

    this.onConfigChange = (event, id, min) => {
      var newValue = isNaN(event.target.value) ? 0 : Number(event.target.value);
      this.setState({
        [id]: newValue > this.maxValue ? this.maxValue : newValue < min ? min : newValue
      }, () => {
        this.validateConfig();
      });
    };

    this.onPlusConfig = id => {
      this.setState({
        [id]: Number(this.state[id]) + 1
      }, () => {
        this.validateConfig();
      });
    };

    this.handleNavSelect = (event, tabIndex) => {
      this.setState({
        activeTabKey: tabIndex
      });
    };

    this.handleFieldChange = this.handleFieldChange.bind(this);
    this.loadConfigs = this.loadConfigs.bind(this);
    this.loadSharedConfigs = this.loadSharedConfigs.bind(this);
    this.validateConfig = this.validateConfig.bind(this);
    this.openModal = this.openModal.bind(this);
    this.closeModal = this.closeModal.bind(this);
    this.showEditConfigModal = this.showEditConfigModal.bind(this);
    this.showAddConfigModal = this.showAddConfigModal.bind(this);
    this.cmdOperation = this.cmdOperation.bind(this);
    this.deleteConfig = this.deleteConfig.bind(this);
    this.addConfig = this.addConfig.bind(this);
    this.editConfig = this.editConfig.bind(this);
    this.openSharedModal = this.openSharedModal.bind(this);
    this.closeSharedModal = this.closeSharedModal.bind(this);
    this.showEditSharedConfigModal = this.showEditSharedConfigModal.bind(this);
    this.deleteSharedConfig = this.deleteSharedConfig.bind(this);
    this.editSharedConfig = this.editSharedConfig.bind(this);
    this.showDeleteConfirm = this.showDeleteConfirm.bind(this);
    this.closeDeleteConfirm = this.closeDeleteConfirm.bind(this);
    this.showSharedDeleteConfirm = this.showSharedDeleteConfirm.bind(this);
    this.closeSharedDeleteConfirm = this.closeSharedDeleteConfirm.bind(this);
    this.handleConfirmChange = this.handleConfirmChange.bind(this);
  }

  componentDidMount() {
    if (this.props.wasActiveList.includes(5)) {
      if (this.state.firstLoad) {
        this.loadConfigs();
      }
    }
  }

  showDeleteConfirm(item) {
    this.setState({
      deleteItem: item,
      showDeleteConfirm: true,
      modalSpinning: false,
      modalChecked: false
    });
  }

  closeDeleteConfirm() {
    this.setState({
      deleteItem: "",
      showDeleteConfirm: false,
      modalSpinning: false,
      modalChecked: false
    });
  }

  showSharedDeleteConfirm(item) {
    this.setState({
      deleteItem: item,
      showSharedDeleteConfirm: true,
      modalSpinning: false,
      modalChecked: false
    });
  }

  closeSharedDeleteConfirm() {
    this.setState({
      deleteItem: "",
      showSharedDeleteConfirm: false,
      modalSpinning: false,
      modalChecked: false
    });
  }

  handleConfirmChange(e) {
    this.setState({
      modalChecked: e.target.checked
    });
  }

  handleFieldChange(str, e) {
    this.setState({
      [e.target.id]: e.target.value
    }, () => {
      this.validateConfig();
    });
  }

  loadConfigs() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "dna", "list", "configs"];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("loadConfigs", "Get DNA Plugin configs", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var myObject = JSON.parse(content);
      var tableKey = this.state.tableKey + 1;
      this.setState({
        configRows: myObject.items.map(item => item.attrs),
        tableKey: tableKey,
        loading: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);

      if (err != 0) {
        console.log("loadConfigs failed", errMsg.desc);
      }

      this.setState({
        loading: false
      });
    });
  }

  loadSharedConfigs(basedn) {
    if (basedn == "") {
      // No shared configs, reset table rows
      this.setState({
        sharedConfigRows: [],
        loading: false
      });
      return;
    }

    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "dna", "list", "shared-configs", basedn];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("loadSharedConfigs", "Get DNA Plugin shared configs", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var myObject = JSON.parse(content);
      this.setState({
        sharedConfigRows: myObject.items.map(item => item.attrs),
        firstLoad: false,
        loading: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);

      if (err != 0) {
        console.log("loadSharedConfigs failed", errMsg.desc);
      }
    });
  }

  showEditConfigModal(rowData) {
    this.openModal(rowData);
  }

  showAddConfigModal() {
    this.openModal();
  }

  openModal(name) {
    if (!name) {
      this.setState({
        configEntryModalShow: true,
        activeTabKey: 1,
        newEntry: true,
        configName: "",
        selected: [],
        prefix: "",
        nextValue: 1,
        maxValue: -1,
        interval: 1,
        magicRegen: "",
        filter: "",
        scope: "",
        remoteBindDN: "",
        remoteBindCred: "",
        sharedConfigEntry: "",
        threshold: 1,
        nextRange: "",
        rangeRequestTimeout: 600,
        sharedConfigRows: [],
        saveBtnDisabled: true,
        error: {}
      });
    } else {
      var dnaTypeList = [];
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "dna", "config", name, "show"];
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("openModal", "Fetch the DNA Plugin config entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        var configEntry = JSON.parse(content).attrs;
        var sharedCfgDN = "";

        if ("dnasharedcfgdn" in configEntry) {
          sharedCfgDN = configEntry.dnasharedcfgdn[0];
        } // Initialize Settings


        configEntry.dnaprefix === undefined ? configEntry.dnaprefix = "" : configEntry.dnaprefix = configEntry.dnaprefix[0];
        configEntry.dnanextvalue === undefined ? configEntry.dnanextvalue = "" : configEntry.dnanextvalue = configEntry.dnanextvalue[0];
        configEntry.dnamaxvalue === undefined ? configEntry.dnamaxvalue = "" : configEntry.dnamaxvalue = configEntry.dnamaxvalue[0];
        configEntry.dnainterval === undefined ? configEntry.dnainterval = "" : configEntry.dnainterval = configEntry.dnainterval[0];
        configEntry.dnamagicregen === undefined ? configEntry.dnamagicregen = "" : configEntry.dnamagicregen = configEntry.dnamagicregen[0];
        configEntry.dnafilter === undefined ? configEntry.dnafilter = "" : configEntry.dnafilter = configEntry.dnafilter[0];
        configEntry.dnascope === undefined ? configEntry.dnascope = "" : configEntry.dnascope = configEntry.dnascope[0];
        configEntry.dnaremotebinddn === undefined ? configEntry.dnaremotebinddn = "" : configEntry.dnaremotebinddn = configEntry.dnaremotebinddn[0];
        configEntry.dnaremotebindcred === undefined ? configEntry.dnaremotebindcred = "" : configEntry.dnaremotebindcred = configEntry.dnaremotebindcred[0];
        configEntry.dnasharedcfgdn === undefined ? configEntry.dnasharedcfgdn = "" : configEntry.dnasharedcfgdn = configEntry.dnasharedcfgdn[0];
        configEntry.dnathreshold === undefined ? configEntry.dnathreshold = "" : configEntry.dnathreshold = configEntry.dnathreshold[0];
        configEntry.dnanextrange === undefined ? configEntry.dnanextrange = "" : configEntry.dnanextrange = configEntry.dnanextrange[0];
        configEntry.dnarangerequesttimeout === undefined ? configEntry.dnarangerequesttimeout = "" : configEntry.dnarangerequesttimeout = configEntry.dnarangerequesttimeout[0];
        this.setState({
          configEntryModalShow: true,
          newEntry: false,
          activeTabKey: 1,
          configName: configEntry.cn[0],
          prefix: configEntry.dnaprefix,
          nextValue: Number(configEntry.dnanextvalue) == 0 ? 1 : Number(configEntry.dnanextvalue),
          maxValue: Number(configEntry.dnamaxvalue) == 0 ? -1 : Number(configEntry.dnamaxvalue),
          interval: Number(configEntry.dnainterval) == 0 ? 1 : Number(configEntry.dnainterval),
          magicRegen: configEntry.dnamagicregen,
          filter: configEntry.dnafilter,
          scope: configEntry.dnascope,
          remoteBindDN: configEntry.dnaremotebinddn,
          remoteBindCred: configEntry.dnaremotebindcred,
          sharedConfigEntry: configEntry.dnasharedcfgdn,
          threshold: Number(configEntry.dnathreshold) == 0 ? 1 : Number(configEntry.dnathreshold),
          nextRange: configEntry.dnanextrange,
          rangeRequestTimeout: Number(configEntry.dnarangerequesttimeout) == 0 ? 600 : Number(configEntry.dnarangerequesttimeout),
          // Preserve original values
          _prefix: configEntry.dnaprefix,
          _nextValue: Number(configEntry.dnanextvalue) == 0 ? 1 : Number(configEntry.dnanextvalue),
          _maxValue: Number(configEntry.dnamaxvalue) == 0 ? -1 : Number(configEntry.dnamaxvalue),
          _interval: Number(configEntry.dnainterval) == 0 ? 1 : Number(configEntry.dnainterval),
          _magicRegen: configEntry.dnamagicregen,
          _filter: configEntry.dnafilter,
          _scope: configEntry.dnascope,
          _remoteBindDN: configEntry.dnaremotebinddn,
          _remoteBindCred: configEntry.dnaremotebindcred,
          _sharedConfigEntry: configEntry.dnasharedcfgdn,
          _threshold: Number(configEntry.dnathreshold) == 0 ? 1 : Number(configEntry.dnathreshold),
          _nextRange: configEntry.dnanextrange,
          _rangeRequestTimeout: Number(configEntry.dnarangerequesttimeout) == 0 ? 600 : Number(configEntry.dnarangerequesttimeout),
          saveBtnDisabled: true,
          error: {}
        }, () => {
          this.loadSharedConfigs(sharedCfgDN);
        });

        if (configEntry.dnatype === undefined) {
          this.setState({
            selected: [],
            _selected: []
          });
        } else {
          var _iterator = _createForOfIteratorHelper(configEntry.dnatype),
              _step;

          try {
            for (_iterator.s(); !(_step = _iterator.n()).done;) {
              var value = _step.value;
              dnaTypeList = [...dnaTypeList, value];
            }
          } catch (err) {
            _iterator.e(err);
          } finally {
            _iterator.f();
          }

          this.setState({
            selected: dnaTypeList,
            _selected: [...dnaTypeList]
          });
        }
      }).fail(_ => {
        this.setState({
          configEntryModalShow: true,
          newEntry: true,
          configName: "",
          selected: [],
          prefix: "",
          nextValue: "",
          maxValue: "",
          interval: "",
          magicRegen: "",
          filter: "",
          scope: "",
          remoteBindDN: "",
          remoteBindCred: "",
          sharedConfigEntry: "",
          threshold: "",
          nextRange: "",
          rangeRequestTimeout: "",
          saveBtnDisabled: true
        });
      });
    }
  }

  showEditSharedConfigModal(sharedName) {
    this.openSharedModal(sharedName);
  }

  closeModal() {
    this.setState({
      configEntryModalShow: false
    });
  }

  closeSharedModal() {
    this.setState({
      sharedConfigEntryModalShow: false
    });
  }

  cmdOperation(action, muteError) {
    var _this$state = this.state,
        configName = _this$state.configName,
        selected = _this$state.selected,
        prefix = _this$state.prefix,
        nextValue = _this$state.nextValue,
        maxValue = _this$state.maxValue,
        interval = _this$state.interval,
        magicRegen = _this$state.magicRegen,
        filter = _this$state.filter,
        scope = _this$state.scope,
        remoteBindDN = _this$state.remoteBindDN,
        remoteBindCred = _this$state.remoteBindCred,
        sharedConfigEntry = _this$state.sharedConfigEntry,
        threshold = _this$state.threshold,
        nextRange = _this$state.nextRange,
        rangeRequestTimeout = _this$state.rangeRequestTimeout;
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "dna", "config", configName, action, "--prefix", prefix || action == "add" ? prefix : "delete", "--next-value=" + (nextValue || action == "add" ? nextValue : "delete"), "--max-value=" + (maxValue || action == "add" ? maxValue : "delete"), "--interval=" + (interval || action == "add" ? interval : "delete"), "--magic-regen", magicRegen || action == "add" ? magicRegen : "delete", "--filter", filter || action == "add" ? filter : "delete", "--scope", scope || action == "add" ? scope : "delete", "--remote-bind-dn", remoteBindDN || action == "add" ? remoteBindDN : "delete", "--remote-bind-cred", remoteBindCred || action == "add" ? remoteBindCred : "delete", "--shared-config-entry", sharedConfigEntry || action == "add" ? sharedConfigEntry : "delete", "--threshold=" + (threshold || action == "add" ? threshold : "delete"), "--next-range", nextRange || action == "add" ? nextRange : "delete", "--range-request-timeout=" + (rangeRequestTimeout || action == "add" ? rangeRequestTimeout : "delete")]; // Delete attributes if the user set an empty value to the field

    if (!(action == "add" && selected.length == 0)) {
      cmd = [...cmd, "--type"];

      if (selected.length != 0) {
        var _iterator2 = _createForOfIteratorHelper(selected),
            _step2;

        try {
          for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
            var value = _step2.value;
            cmd = [...cmd, value];
          }
        } catch (err) {
          _iterator2.e(err);
        } finally {
          _iterator2.f();
        }
      } else if (action == "add") {
        cmd = [...cmd, ""];
      } else {
        cmd = [...cmd, "delete"];
      }
    }

    this.setState({
      saving: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("DNAOperation", "Do the ".concat(action, " operation on the DNA Plugin"), cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("DNAOperation", "Result", content);
      this.props.addNotification("success", "The ".concat(action, " operation was successfully done on \"").concat(configName, "\" entry"));
      this.loadConfigs();
      this.closeModal();
      this.setState({
        saving: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);

      if (muteError !== true) {
        this.props.addNotification("error", "Error during the config entry ".concat(action, " operation - ").concat(errMsg.desc));
      }

      this.loadConfigs();
      this.closeModal();
      this.setState({
        saving: false
      });
    });
  }

  deleteConfig() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "dna", "config", this.state.deleteItem, "delete"];
    this.setState({
      modalSpinning: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("deleteConfig", "Delete the DNA Plugin config entry", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("deleteConfig", "Result", content);
      this.props.addNotification("success", "Config entry ".concat(this.state.deleteItem, " was successfully deleted"));
      this.closeDeleteConfirm();
      this.loadConfigs();
      this.closeModal();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error during the config entry removal operation - ".concat(errMsg.desc));
      this.closeDeleteConfirm();
      this.loadConfigs();
      this.closeModal();
    });
  }

  addConfig(muteError) {
    this.cmdOperation("add", muteError);
  }

  editConfig(muteError) {
    this.cmdOperation("set", muteError);
  }

  openSharedModal(sharedName) {
    if (sharedName) {
      // Get all the attributes and matching rules now
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "dna", "config", this.state.configName, "shared-config-entry", sharedName, "show"];
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("openSharedModal", "Fetch the DNA Plugin shared config entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        var configEntry = JSON.parse(content).attrs; // Initialize settings

        configEntry.dnahostname === undefined ? configEntry.dnahostname = "" : configEntry.dnahostname = configEntry.dnahostname[0];
        configEntry.dnaportnum === undefined ? configEntry.dnaportnum = "" : configEntry.dnaportnum = configEntry.dnaportnum[0];
        configEntry.dnasecureportnum === undefined ? configEntry.dnasecureportnum = "" : configEntry.dnasecureportnum = configEntry.dnasecureportnum[0];
        configEntry.dnaremainingvalues === undefined ? configEntry.dnaremainingvalues = "" : configEntry.dnaremainingvalues = configEntry.dnaremainingvalues[0];
        configEntry.dnaremotebindmethod === undefined ? configEntry.dnaremotebindmethod = "" : configEntry.dnaremotebindmethod = configEntry.dnaremotebindmethod[0];
        configEntry.dnaremoteconnprotocol === undefined ? configEntry.dnaremoteconnprotocol = "" : configEntry.dnaremoteconnprotocol = configEntry.dnaremoteconnprotocol[0];
        this.setState({
          sharedConfigEntryModalShow: true,
          sharedHostname: configEntry.dnahostname,
          sharedPort: configEntry.dnaportnum,
          sharedSecurePort: configEntry.dnasecureportnum,
          sharedRemainingValues: configEntry.dnaremainingvalues,
          sharedRemoteBindMethod: configEntry.dnaremotebindmethod,
          sharedRemoteConnProtocol: configEntry.dnaremoteconnprotocol,
          // Preserve settings
          _sharedRemoteBindMethod: configEntry.dnaremotebindmethod,
          _sharedRemoteConnProtocol: configEntry.dnaremoteconnprotocol,
          saveBtnDisabled: true
        });
      }).fail(_ => {
        this.setState({
          sharedConfigEntryModalShow: true,
          sharedBaseDN: "",
          sharedHostname: "",
          sharedPort: "",
          sharedSecurePort: "",
          sharedRemainingValues: "",
          sharedRemoteBindMethod: "",
          sharedRemoteConnProtocol: ""
        });
      });
    } else {
      this.setState({
        sharedConfigEntryModalShow: true,
        sharedBaseDN: "",
        sharedHostname: "",
        sharedPort: "",
        sharedSecurePort: "",
        sharedRemainingValues: "",
        sharedRemoteBindMethod: "",
        sharedRemoteConnProtocol: ""
      });
    }
  }

  editSharedConfig() {
    var _this$state2 = this.state,
        configName = _this$state2.configName,
        sharedHostname = _this$state2.sharedHostname,
        sharedPort = _this$state2.sharedPort,
        sharedRemoteBindMethod = _this$state2.sharedRemoteBindMethod,
        sharedRemoteConnProtocol = _this$state2.sharedRemoteConnProtocol;
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "dna", "config", configName, "shared-config-entry", sharedHostname + ":" + sharedPort, "set", "--remote-bind-method", sharedRemoteBindMethod || "delete", "--remote-conn-protocol", sharedRemoteConnProtocol || "delete"];
    this.setState({
      savingShared: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("editSharedConfig", "Do the set operation on the DNA Plugin Shared Entry", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.addNotification("success", "The set operation was successfully done on \"".concat(sharedHostname, ":").concat(sharedPort, "\" entry"));
      this.loadSharedConfigs(this.state.sharedConfigEntry);
      this.closeSharedModal();
      this.setState({
        savingShared: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error during the config entry set operation - ".concat(errMsg.desc));
      this.loadSharedConfigs(this.state.sharedConfigEntry);
      this.closeSharedModal();
      this.setState({
        savingShared: false
      });
    });
  }

  deleteSharedConfig() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "dna", "config", this.state.configName, "shared-config-entry", this.state.deleteItem, "delete"];
    this.setState({
      modalSpinning: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("deleteSharedConfig", "Delete the DNA Plugin Shared config entry", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("deleteSharedConfig", "Result", content);
      this.props.addNotification("success", "Shared config entry ".concat(this.state.deleteItem, " was successfully deleted"));
      this.closeSharedDeleteConfirm();
      this.loadSharedConfigs(this.state.sharedConfigEntry);
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error during the shared config entry removal operation - ".concat(errMsg.desc));
      this.closeSharedDeleteConfirm();
      this.loadSharedConfigs(this.state.sharedConfigEntry);
    });
  }

  validateSharedConfig(adding) {
    var validatedBindMethod = _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions["default"];
    var validatedBindMethodText = "";
    var validatedConnProtocol = _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions["default"];
    var validatedConnText = ""; // Handle the shared config remote bind settings validation

    if (this.state.sharedRemoteBindMethod == "SSL" && this.state.sharedRemoteConnProtocol != "TLS") {
      validatedBindMethodText = "You can not use 'SSL' if the connection protocol is not 'TLS'";
      validatedBindMethod = _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions.error;
    } else if (this.state.sharedRemoteBindMethod.startsWith("SASL") && this.state.sharedRemoteConnProtocol == "TLS") {
      validatedBindMethodText = "You can not use a 'SASL' method if the connection protocol is 'TLS'";
      validatedBindMethod = _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions.error;
    } else if (this.state.sharedRemoteBindMethod == "" && this.state.sharedRemoteConnProtocol != "" || this.state.sharedRemoteBindMethod != "" && this.state.sharedRemoteConnProtocol == "") {
      validatedBindMethodText = "You must either set, or unset, both preferences";
      validatedBindMethod = _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions.error;
    }

    if (this.state.sharedRemoteConnProtocol == "TLS" && this.state.sharedRemoteBindMethod.startsWith("SASL/")) {
      validatedConnText = "You can not use the 'TLS' protocol if the BindMethod is a 'SASL' method";
      validatedConnProtocol = _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions.error;
    } else if (this.state.sharedRemoteConnProtocol == "LDAP" && this.state.sharedRemoteBindMethod == "SSL") {
      validatedConnText = "You can not use the 'LDAP' protocol if the BindMethod is a 'TLS'";
      validatedConnProtocol = _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions.error;
    } else if (this.state.sharedRemoteConnProtocol == "" && this.state.sharedRemoteBindMethod != "" || this.state.sharedRemoteConnProtocol != "" && this.state.sharedRemoteBindMethod == "") {
      validatedConnText = "You must either set, or unset, both preferences";
      validatedConnProtocol = _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions.error;
    }

    var saveNotOK = validatedBindMethod != _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions["default"] || validatedConnProtocol != _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions["default"];

    if (!adding && !saveNotOK) {
      // Everything is valid, but if we are editing we can only save if
      // something was actually changed
      if (this.state._sharedRemoteConnProtocol == this.state.sharedRemoteConnProtocol && this.state._sharedRemoteBindMethod == this.state.sharedRemoteBindMethod) {
        // Nothing changed, so there is nothing to save
        saveNotOK = true;
      }
    }

    return {
      validatedBindMethodText: validatedBindMethodText,
      validatedBindMethod: validatedBindMethod,
      validatedConnText: validatedConnText,
      validatedConnProtocol: validatedConnProtocol,
      saveSharedNotOK: saveNotOK
    };
  }

  validateConfig() {
    var error = {};
    var all_good = true;
    var dnAttrs = ['sharedConfigEntry', 'scope'];
    var reqAttrs = ['configName', 'nextValue', 'filter', 'scope'];

    if (this.state.selected == "" || this.state.selected.length == 0) {
      all_good = false;
    }

    for (var _i = 0, _reqAttrs = reqAttrs; _i < _reqAttrs.length; _i++) {
      var attr = _reqAttrs[_i];

      if (this.state[attr] == "") {
        error[attr] = true;
        all_good = false;
      }
    }

    for (var _i2 = 0, _dnAttrs = dnAttrs; _i2 < _dnAttrs.length; _i2++) {
      var _attr = _dnAttrs[_i2];

      if (this.state[_attr] != "" && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(this.state[_attr])) {
        error[_attr] = true;
        all_good = false;
      }
    }

    if (all_good) {
      // Check for value differences to see if the save btn should be enabled
      all_good = false;
      var attrs = ['maxValue', 'interval', 'magicRegen', 'filter', 'scope', 'nextValue', 'remoteBindDN', 'remoteBindCred', 'sharedConfigEntry', 'threshold', 'nextRange', 'rangeRequestTimeout'];

      for (var _i3 = 0, _attrs = attrs; _i3 < _attrs.length; _i3++) {
        var check_attr = _attrs[_i3];

        if (this.state[check_attr] != this.state['_' + check_attr]) {
          all_good = true;
          break;
        }
      }

      if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.listsEqual)(this.state.selected, this.state._selected)) {
        all_good = true;
      }
    }

    this.setState({
      saveBtnDisabled: !all_good,
      error: error
    });
  }

  render() {
    var _this$state3 = this.state,
        sharedConfigRows = _this$state3.sharedConfigRows,
        configEntryModalShow = _this$state3.configEntryModalShow,
        configName = _this$state3.configName,
        newEntry = _this$state3.newEntry,
        rangeRequestTimeout = _this$state3.rangeRequestTimeout,
        sharedConfigEntry = _this$state3.sharedConfigEntry,
        sharedConfigEntryModalShow = _this$state3.sharedConfigEntryModalShow,
        sharedHostname = _this$state3.sharedHostname,
        sharedPort = _this$state3.sharedPort,
        sharedSecurePort = _this$state3.sharedSecurePort,
        sharedRemainingValues = _this$state3.sharedRemainingValues,
        sharedRemoteBindMethod = _this$state3.sharedRemoteBindMethod,
        sharedRemoteConnProtocol = _this$state3.sharedRemoteConnProtocol,
        magicRegen = _this$state3.magicRegen,
        scope = _this$state3.scope,
        filter = _this$state3.filter,
        selected = _this$state3.selected,
        nextValue = _this$state3.nextValue,
        maxValue = _this$state3.maxValue,
        interval = _this$state3.interval,
        saving = _this$state3.saving,
        savingShared = _this$state3.savingShared,
        saveBtnDisabled = _this$state3.saveBtnDisabled,
        threshold = _this$state3.threshold,
        error = _this$state3.error;
    var sharedResult = {};
    var bindMethodOptions = [{
      value: '',
      label: 'None'
    }, {
      value: 'SIMPLE',
      label: 'SIMPLE'
    }, {
      value: 'SSL',
      label: 'SSL'
    }, {
      value: 'SASL/GSSAPI',
      label: 'SASL/GSSAPI'
    }, {
      value: 'SASL/DIGEST-MD5',
      label: 'SASL/DIGEST-MD5'
    }];
    var connProtocolOptions = [{
      value: '',
      label: 'None'
    }, {
      value: 'LDAP',
      label: 'LDAP'
    }, {
      value: 'TLS',
      label: 'TLS'
    }]; // Optional config settings

    var modalConfigFields = {
      prefix: {
        name: "Prefix",
        value: this.state.prefix,
        id: 'prefix',
        type: 'text',
        help: "Defines a prefix that can be prepended to the generated number values for the attribute (dnaPrefix)"
      },
      remoteBindDN: {
        name: "Remote Bind DN",
        value: this.state.remoteBindDN,
        id: 'remoteBindDN',
        type: 'text',
        help: "Specifies the Replication Manager DN (dnaRemoteBindDN)"
      },
      remoteBindCred: {
        name: "Remote Bind Credentials",
        value: this.state.remoteBindCred,
        id: 'remoteBindCred',
        type: 'text',
        help: "Specifies the Replication Manager's password (dnaRemoteBindCred)"
      },
      nextRange: {
        name: "Next Range",
        value: this.state.nextRange,
        id: 'nextRange',
        type: 'text',
        help: "Defines the next range to use when the current range is exhausted.  Format is '####-####', or '1000-5000' (dnaNextRange)."
      }
    };
    sharedResult = this.validateSharedConfig(newEntry);
    var saveBtnName;
    var saveSharedBtnName = "Save Shared Config";

    if (newEntry) {
      saveBtnName = "Add Config";
    } else {
      saveBtnName = "Save Config";
    }

    var extraPrimaryProps = {};

    if (saving) {
      if (newEntry) {
        saveBtnName = "Adding Config ...";
      } else {
        saveBtnName = "Saving Config ...";
      }

      saveSharedBtnName = "Saving Config ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: saving || savingShared ? "ds-disabled" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ModalVariant.medium,
      title: newEntry ? "Create DNA Config Entry" : "Edit DNA Config Entry",
      isOpen: configEntryModalShow,
      "aria-labelledby": "ds-modal",
      onClose: this.closeModal,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, _extends({
        key: "saveshared",
        isDisabled: saveBtnDisabled,
        variant: "primary",
        onClick: newEntry ? this.addConfig : this.editConfig,
        isLoading: saving,
        spinnerAriaValueText: saving ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.closeModal
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Tabs, {
      activeKey: this.state.activeTabKey,
      onSelect: this.handleNavSelect
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Tab, {
      eventKey: 1,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TabTitleText, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, "DNA Configuration"))
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Form, {
      className: "ds-margin-top-xlg",
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Config Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TextInput, {
      value: configName,
      type: "text",
      id: "configName",
      "aria-describedby": "configName",
      name: "configName",
      onChange: this.handleFieldChange,
      isDisabled: !newEntry,
      validated: error.configName ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Grid, {
      title: "Sets which attributes that will have unique numbers generated for them (dnaType)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "DNA Managed Attributes"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type an attribute",
      onToggle: this.onToggle,
      onSelect: this.onSelect,
      onClear: this.clearSelection,
      selections: selected,
      isOpen: this.state.isOpen,
      "aria-labelledby": "typeAhead-1",
      placeholderText: "Type an attribute...",
      validated: selected.length == 0 ? 'error' : 'default'
    }, this.props.attributes.map(attr => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.SelectOption, {
      key: attr,
      value: attr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Grid, {
      title: "Sets an LDAP filter to use to search for and identify the entries to which to apply the distributed numeric assignment range (dnaFilter)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Filter"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TextInput, {
      value: filter,
      type: "text",
      id: "filter",
      "aria-describedby": "filter",
      name: "filter",
      onChange: this.handleFieldChange,
      validated: error.filter ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Grid, {
      title: "Sets the base DN to search for entries to which to apply the distributed numeric assignment (dnaScope)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Subtree Scope"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TextInput, {
      value: scope,
      type: "text",
      id: "scope",
      "aria-describedby": "scope",
      name: "scope",
      onChange: this.handleFieldChange,
      validated: error.scope ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Grid, {
      title: "Gives the next available number which can be assigned (dnaNextValue)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Next Value"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.NumberInput, {
      value: nextValue,
      min: 1,
      max: this.maxValue,
      onMinus: () => {
        this.onMinusConfig("nextValue");
      },
      onChange: e => {
        this.onConfigChange(e, "nextValue", 1);
      },
      onPlus: () => {
        this.onPlusConfig("nextValue");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Grid, {
      title: "Sets the maximum value that can be assigned for the range, default is -1 (dnaMaxValue)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Max Value"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.NumberInput, {
      value: maxValue,
      min: -1,
      max: this.maxValue,
      onMinus: () => {
        this.onMinusConfig("maxValue");
      },
      onChange: e => {
        this.onConfigChange(e, "maxValue", -1);
      },
      onPlus: () => {
        this.onPlusConfig("maxValue");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Grid, {
      title: "Sets a user-defined value that instructs the plug-in to assign a new value for the entry (dnaMagicRegen)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Magic Regeneration Value"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TextInput, {
      value: magicRegen,
      type: "text",
      id: "magicRegen",
      "aria-describedby": "magicRegen",
      name: "magicRegen",
      onChange: this.handleFieldChange,
      validated: error.magicRegen ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions["default"]
    }))), Object.entries(modalConfigFields).map(_ref => {
      var _ref2 = _slicedToArray(_ref, 2),
          id = _ref2[0],
          content = _ref2[1];

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Grid, {
        key: content.name,
        title: content.help
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
        className: "ds-label",
        span: 3
      }, content.name), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TextInput, {
        value: content.value,
        type: content.type,
        id: content.id,
        "aria-describedby": content.name,
        name: content.name,
        key: content.name,
        onChange: this.handleFieldChange,
        validated: error[content.id] ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions["default"]
      })));
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Grid, {
      title: "Sets a threshold of remaining available numbers in the range. When the server hits the threshold, it sends a request for a new range (dnaThreshold)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Threshold"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.NumberInput, {
      value: threshold,
      min: 1,
      max: this.maxValue,
      onMinus: () => {
        this.onMinusConfig("threshold");
      },
      onChange: e => {
        this.onConfigChange(e, "threshold", 1);
      },
      onPlus: () => {
        this.onPlusConfig("threshold");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Grid, {
      title: "Sets a timeout period, in seconds, for range requests so that the server does not stall waiting on a new range from one server and can request a range from a new server (dnaRangeRequestTimeout)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Range Request Timeout"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.NumberInput, {
      value: rangeRequestTimeout,
      min: 1,
      max: this.maxValue,
      onMinus: () => {
        this.onMinusConfig("rangeRequestTimeout");
      },
      onChange: e => {
        this.onConfigChange(e, "rangeRequestTimeout", 1);
      },
      onPlus: () => {
        this.onPlusConfig("rangeRequestTimeout");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Grid, {
      title: "Sets an interval, or increment, to add to the next DNA assigned number. If the next DNA number is '10', and the 'interval' is '1000', then the assigned value in the entry will be '1010' (dnaInterval)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Number Interval"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.NumberInput, {
      value: interval,
      min: 1,
      max: this.maxValue,
      onMinus: () => {
        this.onMinusConfig("interval");
      },
      onChange: e => {
        this.onConfigChange(e, "interval", 1);
      },
      onPlus: () => {
        this.onPlusConfig("interval");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Tab, {
      eventKey: 2,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TabTitleText, null, "Shared Config Settings")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Tooltip, {
      content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, "The DNA Shared Config Entry is an entry in the database that DNA configurations about remote replicas are stored under. Think of the Shared Config Entry as a container of DNA remote configurations.  These remote configurations are only used if the database is being replicated, otherwise these settings can be ignored. This entry must already be created prior to setting the", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, " Shared Config Entry"), " field.")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("a", {
      className: "ds-font-size-sm"
    }, "What is a Shared Config Entry?"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Form, {
      className: "ds-margin-top-lg",
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Grid, {
      title: "Defines a container entry DN for DNA remote server configuration that the servers can use to transfer ranges between one another (dnaSharedCfgDN)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Shared Config Entry DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TextInput, {
      value: sharedConfigEntry,
      type: "text",
      id: "sharedConfigEntry",
      "aria-describedby": "sharedConfigEntry",
      name: "sharedConfigEntry",
      onChange: this.handleFieldChange,
      validated: error.sharedConfigEntry ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions["default"]
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_2__.DNASharedTable, {
      rows: sharedConfigRows,
      key: sharedConfigRows,
      editConfig: this.showEditSharedConfigModal,
      deleteConfig: this.showSharedDeleteConfirm
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ModalVariant.medium,
      title: "Manage DNA Plugin Shared Config Entry",
      isOpen: sharedConfigEntryModalShow,
      "aria-labelledby": "ds-modal",
      onClose: this.closeSharedModal,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, _extends({
        key: "confirm",
        isDisabled: sharedResult.saveSharedNotOK,
        variant: "primary",
        onClick: this.editSharedConfig,
        isLoading: savingShared,
        spinnerAriaValueText: savingShared ? "Saving" : undefined
      }, extraPrimaryProps), saveSharedBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.closeSharedModal
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Grid, {
      hasGutter: true,
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 3
    }, "Hostname:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 4
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, sharedHostname)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 2
    }, "Port:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, sharedPort)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 3
    }, "Remaining Values:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 4
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, sharedRemainingValues)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 2
    }, "Secure Port:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, sharedSecurePort)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Text, {
      className: "ds-center",
      title: "Used with Replication to share ranges between replicas",
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.TextVariants.h3
    }, "Remote Authentication Preferences")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Remote Bind Method"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.FormSelect, {
      id: "sharedRemoteBindMethod",
      value: sharedRemoteBindMethod,
      onChange: this.handleFieldChange,
      "aria-label": "FormSelect Input",
      validated: sharedResult.validatedBindMethod
    }, bindMethodOptions.map((option, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.FormSelectOption, {
      key: index,
      value: option.value,
      label: option.label
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Connection Protocol"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.FormSelect, {
      id: "sharedRemoteConnProtocol",
      value: sharedRemoteConnProtocol,
      onChange: this.handleFieldChange,
      "aria-label": "FormSelect Input",
      validated: sharedResult.validatedConnProtocol
    }, connProtocolOptions.map((option, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.FormSelectOption, {
      key: index,
      value: option.value,
      label: option.label
    }))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top-xlg ds-center",
      hidden: !this.state.loading
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.TextVariants.h3
    }, "Loading DNA configuration")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Spinner, {
      size: "lg"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      hidden: this.state.loading
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
      rows: this.props.rows,
      key: this.state.configRows,
      serverId: this.props.serverId,
      cn: "Distributed Numeric Assignment Plugin",
      pluginName: "Distributed Numeric Assignment",
      cmdName: "dna",
      savePluginHandler: this.props.savePluginHandler,
      pluginListHandler: this.props.pluginListHandler,
      addNotification: this.props.addNotification,
      toggleLoadingHandler: this.props.toggleLoadingHandler
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_2__.DNATable, {
      rows: this.state.configRows,
      key: this.state.tableKey,
      editConfig: this.showEditConfigModal,
      deleteConfig: this.showDeleteConfirm
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
      className: "ds-margin-top",
      variant: "primary",
      onClick: this.showAddConfigModal
    }, "Add Config")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__.DoubleConfirmModal, {
      showModal: this.state.showDeleteConfirm,
      closeHandler: this.closeDeleteConfirm,
      handleChange: this.handleConfirmChange,
      actionHandler: this.deleteConfig,
      spinning: this.state.modalSpinning,
      item: this.state.configName,
      checked: this.state.modalChecked,
      mTitle: "Delete DNA Configuration",
      mMsg: "Are you really sure you want to delete this DNA configuration?",
      mSpinningMsg: "Deleting config ...",
      mBtnName: "Delete config"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__.DoubleConfirmModal, {
      showModal: this.state.showSharedDeleteConfirm,
      closeHandler: this.closeSharedDeleteConfirm,
      handleChange: this.handleConfirmChange,
      actionHandler: this.deleteSharedConfig,
      spinning: this.state.modalSpinning,
      item: this.state.sharedConfigEntry,
      checked: this.state.modalChecked,
      mTitle: "Delete Shared Config Entry",
      mMsg: "Are you really sure you want to delete this Shared Config Entry?",
      mSpinningMsg: "Deleting Shared Config ...",
      mBtnName: "Delete Shared Config"
    }));
  }

}

DNAPlugin.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().array),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  savePluginHandler: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func),
  pluginListHandler: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func),
  toggleLoadingHandler: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func)
};
DNAPlugin.defaultProps = {
  rows: [],
  serverId: ""
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DNAPlugin);

/***/ }),

/***/ "./src/lib/plugins/linkedAttributes.jsx":
/*!**********************************************!*\
  !*** ./src/lib/plugins/linkedAttributes.jsx ***!
  \**********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _pluginTables_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./pluginTables.jsx */ "./src/lib/plugins/pluginTables.jsx");
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_16__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }










class LinkedAttributes extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  componentDidMount() {
    if (this.props.wasActiveList.includes(5)) {
      if (this.state.firstLoad) {
        this.loadConfigs();
      }
    }
  }

  constructor(props) {
    super(props);
    this.state = {
      firstLoad: true,
      configRows: [],
      tableKey: 1,
      error: {},
      saveBtnDisabled: true,
      configName: "",
      linkType: [],
      managedType: [],
      linkScope: "",
      newEntry: false,
      showConfigModal: false,
      showConfirmDelete: false,
      modalChecked: false,
      modalSpinning: false,
      isLinkTypeOpen: false,
      isManagedTypeOpen: false
    }; // Link Type

    this.onLinkTypeSelect = (event, selection) => {
      if (this.state.linkType.includes(selection)) {
        this.setState(prevState => ({
          linkType: prevState.linkType.filter(item => item !== selection),
          isLinkTypeOpen: false
        }), () => {
          this.validate();
        });
      } else {
        this.setState(prevState => ({
          linkType: [...prevState.linkType, selection],
          isLinkTypeOpen: false
        }), () => {
          this.validate();
        });
      }
    };

    this.onLinkTypeToggle = isLinkTypeOpen => {
      this.setState({
        isLinkTypeOpen
      });
    };

    this.onLinkTypeClear = () => {
      this.setState({
        linkType: [],
        isLinkTypeOpen: false
      }, () => {
        this.validate();
      });
    }; // Managed Type


    this.onManagedTypeSelect = (event, selection) => {
      if (this.state.managedType.includes(selection)) {
        this.setState(prevState => ({
          managedType: prevState.managedType.filter(item => item !== selection),
          isManagedTypeOpen: false
        }), () => {
          this.validate();
        });
      } else {
        this.setState(prevState => ({
          managedType: [...prevState.managedType, selection],
          isManagedTypeOpen: false
        }), () => {
          this.validate();
        });
      }
    };

    this.onManagedTypeToggle = isManagedTypeOpen => {
      this.setState({
        isManagedTypeOpen
      });
    };

    this.onManagedTypeClear = () => {
      this.setState({
        managedType: [],
        isManagedTypeOpen: false
      }, () => {
        this.validate();
      });
    };

    this.handleFieldChange = this.handleFieldChange.bind(this);
    this.loadConfigs = this.loadConfigs.bind(this);
    this.showEditConfigModal = this.showEditConfigModal.bind(this);
    this.showConfirmDelete = this.showConfirmDelete.bind(this);
    this.showAddConfigModal = this.showAddConfigModal.bind(this);
    this.closeModal = this.closeModal.bind(this);
    this.openModal = this.openModal.bind(this);
    this.cmdOperation = this.cmdOperation.bind(this);
    this.deleteConfig = this.deleteConfig.bind(this);
    this.addConfig = this.addConfig.bind(this);
    this.editConfig = this.editConfig.bind(this);
    this.closeConfirmDelete = this.closeConfirmDelete.bind(this);
  }

  showConfirmDelete(name) {
    this.setState({
      showConfirmDelete: true,
      modalChecked: false,
      modalSpinning: false,
      deleteName: name
    });
  }

  closeConfirmDelete() {
    this.setState({
      showConfirmDelete: false,
      modalChecked: false,
      modalSpinning: false,
      deleteName: ""
    });
  }

  validate() {
    var errObj = {};
    var all_good = true;

    if (this.state.configName == "") {
      errObj.configName = true;
      all_good = false;
    }

    if (this.state.linkScope == "" || !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(this.state.linkScope)) {
      errObj.linkScope = true;
      all_good = false;
    }

    if (all_good) {
      // Check for value differences to see if the save btn should be enabled
      all_good = false;
      var attrs = ['linkScope', 'managedType', 'linkType', 'configName'];

      for (var _i = 0, _attrs = attrs; _i < _attrs.length; _i++) {
        var check_attr = _attrs[_i];

        if (this.state[check_attr] != this.state['_' + check_attr]) {
          all_good = true;
          break;
        }
      }
    }

    this.setState({
      saveBtnDisabled: !all_good,
      error: errObj
    });
  }

  handleFieldChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [e.target.id]: value
    }, () => {
      this.validate();
    });
  }

  loadConfigs() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "linked-attr", "list"];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("loadConfigs", "Get Linked Attributes Plugin configs", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var myObject = JSON.parse(content);
      var tableKey = this.state.tableKey + 1;
      this.setState({
        configRows: myObject.items.map(item => item.attrs),
        tableKey: tableKey,
        firstLoad: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);

      if (err != 0) {
        console.log("loadConfigs failed", errMsg.desc);
      }
    });
  }

  showEditConfigModal(rowData) {
    this.openModal(rowData);
  }

  showAddConfigModal(rowData) {
    this.openModal();
  }

  openModal(name) {
    if (!name) {
      this.setState({
        configEntryModalShow: true,
        newEntry: true,
        configName: "",
        linkType: [],
        managedType: [],
        linkScope: "",
        saveBtnDisabled: true
      });
    } else {
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "linked-attr", "config", name, "show"];
      this.props.toggleLoadingHandler();
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("openModal", "Fetch the Linked Attributes Plugin config entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        var configEntry = JSON.parse(content).attrs;
        this.setState({
          configEntryModalShow: true,
          saveBtnDisabled: true,
          newEntry: false,
          configName: configEntry.cn === undefined ? "" : configEntry.cn[0],
          linkType: configEntry.linktype === undefined ? [] : [configEntry.linktype[0]],
          managedType: configEntry.managedtype === undefined ? [] : [configEntry.managedtype[0]],
          linkScope: configEntry.linkscope === undefined ? "" : configEntry.linkscope[0]
        });
        this.props.toggleLoadingHandler();
      }).fail(_ => {
        this.setState({
          configEntryModalShow: true,
          newEntry: true,
          configName: "",
          linkType: [],
          managedType: [],
          linkScope: "",
          saveBtnDisabled: true
        });
        this.props.toggleLoadingHandler();
      });
    }
  }

  closeModal() {
    this.setState({
      configEntryModalShow: false
    });
  }

  cmdOperation(action) {
    var _this$state = this.state,
        configName = _this$state.configName,
        linkType = _this$state.linkType,
        managedType = _this$state.managedType,
        linkScope = _this$state.linkScope;
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "linked-attr", "config", configName, action, "--link-scope", linkScope || action == "add" ? linkScope : "delete"];
    cmd = [...cmd, "--link-type"];

    if (linkType.length != 0) {
      cmd = [...cmd, linkType[0]];
    } else if (action == "add") {
      cmd = [...cmd, ""];
    } else {
      cmd = [...cmd, "delete"];
    }

    cmd = [...cmd, "--managed-type"];

    if (managedType.length != 0) {
      cmd = [...cmd, managedType[0]];
    } else if (action == "add") {
      cmd = [...cmd, ""];
    } else {
      cmd = [...cmd, "delete"];
    }

    this.props.toggleLoadingHandler();
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("linkedAttributesOperation", "Do the ".concat(action, " operation on the Linked Attributes Plugin"), cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("linkedAttributesOperation", "Result", content);
      this.props.addNotification("success", "The ".concat(action, " operation was successfully done on \"").concat(configName, "\" entry"));
      this.loadConfigs();
      this.closeModal();
      this.props.toggleLoadingHandler();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error during the config entry ".concat(action, " operation - ").concat(errMsg.desc));
      this.loadConfigs();
      this.closeModal();
      this.props.toggleLoadingHandler();
    });
  }

  deleteConfig() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "linked-attr", "config", this.state.deleteName, "delete"];
    this.setState({
      modalSpinning: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("deleteConfig", "Delete the Linked Attributes Plugin config entry", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("deleteConfig", "Result", content);
      this.props.addNotification("success", "Config entry ".concat(this.state.deleteName, " was successfully deleted"));
      this.loadConfigs();
      this.closeModal();
      this.closeConfirmDelete();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error during the config entry removal operation - ".concat(errMsg.desc));
      this.loadConfigs();
      this.closeModal();
      this.closeConfirmDelete();
    });
  }

  addConfig() {
    this.cmdOperation("add");
  }

  editConfig() {
    this.cmdOperation("set");
  }

  render() {
    var _this$state2 = this.state,
        configEntryModalShow = _this$state2.configEntryModalShow,
        configName = _this$state2.configName,
        linkType = _this$state2.linkType,
        managedType = _this$state2.managedType,
        linkScope = _this$state2.linkScope,
        newEntry = _this$state2.newEntry,
        error = _this$state2.error,
        saveBtnDisabled = _this$state2.saveBtnDisabled,
        saving = _this$state2.saving,
        firstLoad = _this$state2.firstLoad;
    var title = (newEntry ? "Add" : "Edit") + " Linked Attributes Plugin Config Entry";
    var saveBtnName = (newEntry ? "Add" : "Save") + " Config";
    var extraPrimaryProps = {};

    if (saving) {
      if (newEntry) {
        saveBtnName = "Adding Config ...";
      } else {
        saveBtnName = "Saving Config ...";
      }

      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: saving || firstLoad ? "ds-disabled" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ModalVariant.medium,
      title: title,
      isOpen: configEntryModalShow,
      "aria-labelledby": "ds-modal",
      onClose: this.closeModal,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Button, _extends({
        key: "confirm",
        variant: "primary",
        onClick: newEntry ? this.addConfig : this.editConfig,
        isDisabled: saveBtnDisabled,
        isLoading: saving,
        spinnerAriaValueText: saving ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.closeModal
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      title: "The Linked Attributes configuration name"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Config Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      value: configName,
      type: "text",
      id: "configName",
      "aria-describedby": "horizontal-form-name-helper",
      name: "configName",
      onChange: (str, e) => {
        this.handleFieldChange(e);
      },
      validated: error.configName ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions["default"],
      isDisabled: !newEntry
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      title: "Sets the attribute that is managed manually by administrators (linkType)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Link Type"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.SelectVariant.typeahead,
      typeAheadAriaLabel: "Type an attribute name",
      onToggle: this.onLinkTypeToggle,
      onSelect: this.onLinkTypeSelect,
      onClear: this.onLinkTypeClear,
      selections: linkType,
      isOpen: this.state.isLinkTypeOpen,
      "aria-labelledby": "typeAhead-link-type",
      placeholderText: "Type an attribute...",
      noResultsFoundText: "There are no matching entries"
    }, this.props.attributes.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
      key: index,
      value: attr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      title: "Sets the attribute that is created dynamically by the plugin (managedType)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Managed Type"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.SelectVariant.typeahead,
      typeAheadAriaLabel: "Type an attribute name",
      onToggle: this.onManagedTypeToggle,
      onSelect: this.onManagedTypeSelect,
      onClear: this.onManagedTypeClear,
      selections: managedType,
      isOpen: this.state.isManagedTypeOpen,
      placeholderText: "Type an attribute...",
      "aria-labelledby": "typeAhead-managed-type",
      noResultsFoundText: "There are no matching entries"
    }, this.props.attributes.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
      key: index,
      value: attr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      title: "Sets the base DN that restricts the plugin to a specific part of the directory tree (linkScope)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Link Scope"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      value: linkScope,
      type: "text",
      id: "linkScope",
      "aria-describedby": "horizontal-form-name-helper",
      name: "linkScope",
      onChange: (str, e) => {
        this.handleFieldChange(e);
      },
      validated: error.linkScope ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions["default"]
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
      rows: this.props.rows,
      key: this.state.configRows,
      serverId: this.props.serverId,
      cn: "Linked Attributes",
      pluginName: "Linked Attributes",
      cmdName: "linked-attr",
      savePluginHandler: this.props.savePluginHandler,
      pluginListHandler: this.props.pluginListHandler,
      addNotification: this.props.addNotification,
      toggleLoadingHandler: this.props.toggleLoadingHandler
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_2__.LinkedAttributesTable, {
      rows: this.state.configRows,
      key: this.state.tableKey,
      editConfig: this.showEditConfigModal,
      deleteConfig: this.showConfirmDelete
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Button, {
      key: "addconf",
      variant: "primary",
      onClick: this.showAddConfigModal
    }, "Add Config")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__.DoubleConfirmModal, {
      showModal: this.state.showConfirmDelete,
      closeHandler: this.closeConfirmDelete,
      handleChange: this.handleFieldChange,
      actionHandler: this.deleteConfig,
      spinning: this.state.modalSpinning,
      item: this.state.deleteName,
      checked: this.state.modalChecked,
      mTitle: "Delete Linked Attribute Configuration",
      mMsg: "Are you sure you want to delete this configuration?",
      mSpinningMsg: "Deleting Configuration...",
      mBtnName: "Delete Configuration"
    }));
  }

}

LinkedAttributes.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().array),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string),
  savePluginHandler: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),
  pluginListHandler: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),
  toggleLoadingHandler: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func)
};
LinkedAttributes.defaultProps = {
  rows: [],
  serverId: ""
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (LinkedAttributes);

/***/ }),

/***/ "./src/lib/plugins/managedEntries.jsx":
/*!********************************************!*\
  !*** ./src/lib/plugins/managedEntries.jsx ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormGroup.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleList.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleListItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js");
/* harmony import */ var _pluginTables_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./pluginTables.jsx */ "./src/lib/plugins/pluginTables.jsx");
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_26__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }










class ManagedEntries extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      configArea: "",
      attributes: [],
      activeTabKey: 1,
      tableKey: 1,
      wasActiveList: [],
      saveNotOK: false,
      createNotOK: false,
      loading: false,
      // Templates
      templateRows: [],
      templateOptions: [],
      isRDNOpen: false,
      templateDN: "",
      templateRDNAttr: "",
      templateStaticAttr: [],
      templateMappedAttr: [],
      selectedMappedAttr: "",
      selectedStaticAttr: "",
      staticAttr: "",
      staticValue: "",
      mappedValue: "",
      mappedAttr: "",
      templateAddStaticShow: false,
      templateAddMappedShow: false,
      templateModalShow: false,
      showTempDeleteConfirm: false,
      newTemplateEntry: false,
      showStaticAttrDeleteConfirm: false,
      showMappedAttrDeleteConfirm: false,
      // Definitions
      saveDefOK: false,
      configRows: [],
      configName: "",
      originScope: "",
      originFilter: "",
      managedBase: "",
      managedTemplate: "",
      newDefEntry: false,
      configEntryModalShow: false,
      defCreateDisabled: false,
      showDefDeleteConfirm: false,
      // Validation
      addStaticValueValidated: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions["default"],
      addMappedValueValidated: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions["default"]
    };

    this.handleNavSelect = (event, tabIndex) => {
      var wasActiveList = this.state.wasActiveList;

      if (!wasActiveList.includes(tabIndex)) {
        var newList = wasActiveList.concat(tabIndex);
        this.setState({
          wasActiveList: newList,
          activeTabKey: tabIndex
        });
      } else {
        this.setState({
          activeTabKey: tabIndex
        });
      }
    }; // Template RDN


    this.onRDNSelect = (event, selection) => {
      this.setState({
        templateRDNAttr: selection,
        isRDNOpen: false
      });
    };

    this.onRDNToggle = isRDNOpen => {
      this.setState({
        isRDNOpen
      });
    };

    this.clearRDNSelection = () => {
      this.setState({
        templateRDNAttr: "",
        isRDNOpen: false
      });
    }; // Template Add static attrs


    this.onStaticSelect = (event, selection) => {
      this.setState({
        staticAttr: selection,
        isStaticOpen: false
      });
    };

    this.onStaticToggle = isStaticOpen => {
      this.setState({
        isStaticOpen
      });
    };

    this.toggleLoading = () => {
      this.setState(prevState => ({
        loading: !prevState.loading
      }));
    };

    this.clearStaticSelection = () => {
      this.setState({
        staticAttr: [],
        isStaticOpen: false
      });
    }; // Template Add Mapped attrs


    this.onMappedSelect = (event, selection) => {
      this.setState({
        mappedAttr: selection,
        isMappedOpen: false
      });
    };

    this.onMappedToggle = isMappedOpen => {
      this.setState({
        isMappedOpen
      });
    };

    this.clearMappedSelection = () => {
      this.setState({
        mappedAttr: [],
        isMappedOpen: false
      });
    }; // Template static attributes simple list selection


    this.onStaticListSelect = (selectedItem, selectedItemProps) => {
      this.setState({
        selectedStaticAttr: selectedItem.current.textContent
      });
    }; // Template mapped attributes sinmple list selection


    this.onMappedListSelect = (selectedItem, selectedItemProps) => {
      this.setState({
        selectedMappedAttr: selectedItem.current.textContent
      });
    }; // General


    this.handleFieldChange = this.handleFieldChange.bind(this);
    this.updateFields = this.updateFields.bind(this);
    this.loadConfigs = this.loadConfigs.bind(this);
    this.getAttributes = this.getAttributes.bind(this);
    this.handleConfirmChange = this.handleConfirmChange.bind(this); // Definition functions

    this.openDefModal = this.openDefModal.bind(this);
    this.closeDefModal = this.closeDefModal.bind(this);
    this.showEditDefModal = this.showEditDefModal.bind(this);
    this.cmdDefOperation = this.cmdDefOperation.bind(this);
    this.showEditDefModal = this.showEditDefModal.bind(this);
    this.showAddDefModal = this.showAddDefModal.bind(this);
    this.deleteDefConfig = this.deleteDefConfig.bind(this);
    this.addDefConfig = this.addDefConfig.bind(this);
    this.editDefConfig = this.editDefConfig.bind(this);
    this.showDefDeleteConfirm = this.showDefDeleteConfirm.bind(this);
    this.closeDefDeleteConfirm = this.closeDefDeleteConfirm.bind(this); // Template functions

    this.cmdTemplateOperation = this.cmdTemplateOperation.bind(this);
    this.showEditTempModal = this.showEditTempModal.bind(this);
    this.openTempModal = this.openTempModal.bind(this);
    this.closeTempModal = this.closeTempModal.bind(this);
    this.showAddTempModal = this.showAddTempModal.bind(this);
    this.deleteTemplate = this.deleteTemplate.bind(this);
    this.addTemplate = this.addTemplate.bind(this);
    this.editTemplate = this.editTemplate.bind(this);
    this.openStaticAttrModal = this.openStaticAttrModal.bind(this);
    this.closeStaticAttrModal = this.closeStaticAttrModal.bind(this);
    this.deleteStaticAttribute = this.deleteStaticAttribute.bind(this);
    this.openMappedAttrModal = this.openMappedAttrModal.bind(this);
    this.closeMappedAttrModal = this.closeMappedAttrModal.bind(this);
    this.deleteMappedAttribute = this.deleteMappedAttribute.bind(this);
    this.addStaticAttrToList = this.addStaticAttrToList.bind(this);
    this.addMappedAttrToList = this.addMappedAttrToList.bind(this);
    this.showTempDeleteConfirm = this.showTempDeleteConfirm.bind(this);
    this.closeTempDeleteConfirm = this.closeTempDeleteConfirm.bind(this);
    this.showMappedAttrDeleteConfirm = this.showMappedAttrDeleteConfirm.bind(this);
    this.closeMappedAttrDeleteConfirm = this.closeMappedAttrDeleteConfirm.bind(this);
    this.showStaticAttrDeleteConfirm = this.showStaticAttrDeleteConfirm.bind(this);
    this.closeStaticAttrDeleteConfirm = this.closeStaticAttrDeleteConfirm.bind(this);
  }

  componentDidMount() {
    this.updateFields();
  }

  handleFieldChange(str, e) {
    var value = e.target.value;
    var id = e.target.id;
    this.setState({
      [id]: value
    });
  }

  showTempDeleteConfirm(dn) {
    this.setState({
      templateDN: dn,
      showTempDeleteConfirm: true,
      modalChecked: false
    });
  }

  closeTempDeleteConfirm() {
    this.setState({
      showTempDeleteConfirm: false
    });
  }

  showDefDeleteConfirm(name) {
    this.setState({
      configName: name,
      showDefDeleteConfirm: true,
      modalChecked: false
    });
  }

  closeDefDeleteConfirm() {
    this.setState({
      showDefDeleteConfirm: false
    });
  }

  loadConfigs() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "managed-entries", "list", "templates"];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("loadConfigs", "Get Managed Entries templates", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var myObject = JSON.parse(content);
      var defCreateDisabled = false;
      var templateOptions = [];

      if (myObject.items.length == 0) {
        // We loaded the templates first to set the definition's
        // save btn.  You must have templates before you can
        // create the definition.
        defCreateDisabled = true;
      } else {
        var _iterator = _createForOfIteratorHelper(myObject.items),
            _step;

        try {
          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            var temp = _step.value;
            templateOptions.push({
              value: temp.dn,
              label: temp.dn
            });
          }
        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }
      }

      this.setState({
        showDefDeleteConfirm: false,
        templateRows: myObject.items.map(item => item.attrs),
        defCreateDisabled: defCreateDisabled,
        templateOptions: templateOptions,
        managedTemplate: templateOptions.length ? templateOptions[0].value : ""
      }); //
      // Get the Definitions
      //

      cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "managed-entries", "list", "configs"];
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("loadConfigs", "Get Managed Entries Plugin definitions", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        var myObject = JSON.parse(content);
        var tableKey = this.state.tableKey + 1;
        this.setState({
          configRows: myObject.items.map(item => item.attrs),
          tableKey: tableKey,
          loading: false
        });
      }).fail(err => {
        var errMsg = JSON.parse(err);

        if (err != 0) {
          console.log("loadConfigs failed getting definitions", errMsg.desc);
        }

        this.setState({
          loading: false
        });
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);

      if (err != 0) {
        console.log("loadConfigs failed getting templates", errMsg.desc);
      }

      this.setState({
        loading: false
      });
    });
  }

  showEditTempModal(entrydn) {
    this.openTempModal(entrydn);
  }

  showAddTempModal() {
    this.openTempModal();
  }

  openTempModal(entrydn) {
    this.getAttributes();

    if (entrydn == "" || entrydn === undefined) {
      this.setState({
        newTemplateEntry: true,
        templateDN: "",
        templateRDNAttr: "",
        templateStaticAttr: [],
        templateMappedAttr: [],
        saveTempOK: false,
        templateModalShow: true
      });
    } else {
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "managed-entries", "template", entrydn, "show"];
      this.toggleLoading();
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("openTempModal", "Fetch the Managed Entries template entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        var configEntry = JSON.parse(content).attrs;
        configEntry.meprdnattr === undefined ? configEntry.meprdnattr = "" : configEntry.meprdnattr = configEntry.meprdnattr[0];

        if (configEntry.mepstaticattr === undefined) {
          configEntry.mepstaticattr = [];
        }

        if (configEntry.mepmappedattr === undefined) {
          configEntry.mepmappedattr = [];
        }

        this.setState({
          newTemplateEntry: false,
          templateModalShow: true,
          saveTempOK: false,
          templateDN: entrydn,
          templateRDNAttr: configEntry.meprdnattr,
          templateStaticAttr: configEntry.mepstaticattr,
          templateMappedAttr: configEntry.mepmappedattr,
          // Preserve original Settings
          _templateDN: entrydn,
          _templateRDNAttr: configEntry.meprdnattr,
          _templateStaticAttr: [...configEntry.mepstaticattr],
          _templateMappedAttr: [...configEntry.mepmappedattr]
        }, this.toggleLoading());
      }).fail(_ => {
        this.setState({
          newTemplateEntry: true,
          templateDN: "",
          templateRDNAttr: "",
          templateStaticAttr: [],
          templateMappedAttr: []
        }, this.toggleLoading());
      });
    }
  }

  addStaticAttrToList() {
    // Add the selected static attribute to the state list
    var value = this.state.staticAttr + ": " + this.state.staticValue;
    var values = this.state.templateStaticAttr;
    values.push(value);
    this.setState({
      templateStaticAttr: values,
      templateAddStaticShow: false
    });
  }

  deleteStaticAttribute() {
    // delete the selected static attribute from the state list
    var attrList = this.state.templateStaticAttr;

    for (var i = 0; i < attrList.length; i++) {
      if (attrList[i] === this.state.selectedStaticAttr) {
        attrList.splice(i, 1);
      }
    }

    this.setState({
      selectedStaticAttr: "",
      templateStaticAttr: attrList,
      showStaticAttrDeleteConfirm: false,
      modalChecked: false
    });
  }

  addMappedAttrToList() {
    // Add the selected mapped attribute to the state list
    var values = this.state.templateMappedAttr;
    values.push(this.state.mappedAttr + ": " + this.state.mappedValue);
    this.setState(prevState => ({
      templateMappedAttr: values,
      templateAddMappedShow: false
    }));
  }

  showMappedAttrDeleteConfirm() {
    if (this.state.selectedMappedAttr != "") {
      this.setState({
        showMappedAttrDeleteConfirm: true,
        modalChecked: false
      });
    }
  }

  closeMappedAttrDeleteConfirm() {
    this.setState({
      showMappedAttrDeleteConfirm: false
    });
  }

  showStaticAttrDeleteConfirm() {
    if (this.state.selectedStaticAttr != "") {
      this.setState({
        showStaticAttrDeleteConfirm: true,
        modalChecked: false
      });
    }
  }

  closeStaticAttrDeleteConfirm() {
    this.setState({
      showStaticAttrDeleteConfirm: false
    });
  }

  deleteMappedAttribute() {
    // delete the selected static attribute from the state list
    var attrList = this.state.templateMappedAttr;

    for (var i = 0; i < attrList.length; i++) {
      if (attrList[i] === this.state.selectedMappedAttr) {
        attrList.splice(i, 1);
      }
    }

    this.setState({
      selectedMappedAttr: "",
      templateMappedAttr: attrList,
      showMappedAttrDeleteConfirm: false,
      modalChecked: false
    });
  }

  closeTempModal() {
    this.setState({
      templateModalShow: false
    });
  }

  openMappedAttrModal() {
    this.setState({
      templateAddMappedShow: true,
      modalChecked: false,
      modalSpinning: false,
      mappedValue: "",
      mappedAttr: ""
    });
  }

  closeMappedAttrModal() {
    this.setState({
      templateAddMappedShow: false
    });
  }

  openStaticAttrModal() {
    this.setState({
      templateAddStaticShow: true,
      modalChecked: false,
      modalSpinning: false,
      staticValue: "",
      staticAttr: ""
    });
  }

  closeStaticAttrModal() {
    this.setState({
      templateAddStaticShow: false
    });
  }

  showEditDefModal(rowData) {
    this.openDefModal(rowData);
  }

  showAddDefModal(rowData) {
    this.openDefModal();
  } // Definition modal


  openDefModal(name) {
    this.getAttributes();

    if (!name) {
      this.setState({
        configEntryModalShow: true,
        newDefEntry: true,
        configName: "",
        originScope: "",
        originFilter: "",
        managedBase: ""
      });
    } else {
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "managed-entries", "config", name, "show"];
      this.toggleLoading();
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("openDefModal", "Fetch the Managed Entries Plugin definition config entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        var configEntry = JSON.parse(content).attrs; // Initialize settings

        configEntry.originscope === undefined ? configEntry.originscope = "" : configEntry.originscope = configEntry.originscope[0];
        configEntry.originfilter === undefined ? configEntry.originfilter = "" : configEntry.originfilter = configEntry.originfilter[0];
        configEntry.managedbase === undefined ? configEntry.managedbase = "" : configEntry.managedbase = configEntry.managedbase[0];
        configEntry.managedtemplate === undefined ? configEntry.managedtemplate = "" : configEntry.managedtemplate = configEntry.managedtemplate[0];
        this.setState({
          configEntryModalShow: true,
          newDefEntry: false,
          configName: configEntry.cn[0],
          originScope: configEntry.originscope,
          originFilter: configEntry.originfilter,
          managedBase: configEntry.managedbase,
          managedTemplate: configEntry.managedtemplate,
          // Preserve original settings
          _originScope: configEntry.originscope,
          _originFilter: configEntry.originfilter,
          _managedBase: configEntry.managedbase,
          _managedTemplate: configEntry.managedtemplate
        }, this.toggleLoading());
      }).fail(_ => {
        this.setState({
          configEntryModalShow: true,
          newDefEntry: true,
          configName: "",
          originScope: "",
          originFilter: "",
          managedBase: ""
        }, this.toggleLoading());
      });
    }
  }

  closeDefModal() {
    this.setState({
      configEntryModalShow: false
    });
  }

  deleteDefConfig() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "managed-entries", "config", this.state.configName, "delete"];
    this.toggleLoading();
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("deleteDefConfig", "Delete the Managed Entries Plugin definition entry", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("deleteDefConfig", "Result", content);
      this.props.addNotification("success", "Definition entry ".concat(this.state.configName, " was successfully deleted"));
      this.loadConfigs();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error during the definition entry removal operation - ".concat(errMsg.desc));
      this.loadConfigs();
    });
  }

  addDefConfig() {
    this.cmdDefOperation("add");
  }

  editDefConfig() {
    this.cmdDefOperation("set");
  }

  cmdDefOperation(action) {
    // Update definition
    var _this$state = this.state,
        configName = _this$state.configName,
        originScope = _this$state.originScope,
        originFilter = _this$state.originFilter,
        managedBase = _this$state.managedBase,
        managedTemplate = _this$state.managedTemplate;
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "managed-entries", "config", configName, action, "--scope", originScope || action == "add" ? originScope : "delete", "--filter", originFilter || action == "add" ? originFilter : "delete", "--managed-base", managedBase || action == "add" ? managedBase : "delete", "--managed-template", managedTemplate || action == "add" ? managedTemplate : "delete"];
    this.toggleLoading();
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("cmdDefOperation", "Do the ".concat(action, " operation on the Managed Entries Plugin"), cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("cmdDefOperation", "Result", content);
      this.props.addNotification("success", "The ".concat(action, " operation was successfully done on \"").concat(configName, "\" entry"));
      this.loadConfigs();
      this.closeDefModal();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error during the config entry ".concat(action, " operation - ").concat(errMsg.desc));
      this.loadConfigs();
      this.closeDefModal();
    });
  }

  updateFields() {
    if (this.props.rows.length > 0) {
      var pluginRow = this.props.rows.find(row => row.cn[0] === "Managed Entries");
      this.setState({
        loading: true,
        configArea: pluginRow["nsslapd-pluginConfigArea"] === undefined ? "" : pluginRow["nsslapd-pluginConfigArea"][0]
      }, this.loadConfigs());
    }
  }

  cmdTemplateOperation(action) {
    var _this$state2 = this.state,
        templateDN = _this$state2.templateDN,
        templateRDNAttr = _this$state2.templateRDNAttr,
        templateStaticAttr = _this$state2.templateStaticAttr,
        templateMappedAttr = _this$state2.templateMappedAttr;
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "managed-entries", "template", templateDN, action];
    cmd = [...cmd, "--rdn-attr"];

    if (templateRDNAttr != "") {
      cmd = [...cmd, templateRDNAttr];
    } else if (action == "add") {
      cmd = [...cmd, ""];
    } else {
      cmd = [...cmd, "delete"];
    }

    if (templateStaticAttr.length != 0) {
      cmd = [...cmd, "--static-attr"];

      var _iterator2 = _createForOfIteratorHelper(templateStaticAttr),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var value = _step2.value;
          cmd = [...cmd, value];
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }
    } else if (action != "add") {
      cmd = [...cmd, "--static-attr", "delete"];
    }

    if (templateMappedAttr.length != 0) {
      cmd = [...cmd, "--mapped-attr"];

      var _iterator3 = _createForOfIteratorHelper(templateMappedAttr),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var _value = _step3.value;
          cmd = [...cmd, _value];
        }
      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }
    } else if (action != "add") {
      cmd = [...cmd, "--mapped-attr", "delete"];
    }

    this.toggleLoading();
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("cmdTemplateOperation", "Do the ".concat(action, " operation on the Managed Entries template"), cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.addNotification("success", "Config entry ".concat(templateDN, " was successfully ").concat(action, "ed"));
      this.loadConfigs();
      this.closeTempModal();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.closeTempModal();
      this.props.addNotification("error", "Error during the template entry ".concat(action, " operation - ").concat(errMsg.desc));
      this.toggleLoading();
    });
  }

  deleteTemplate() {
    var templateDN = this.state.templateDN;
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "managed-entries", "template", templateDN, "delete"];
    this.toggleLoading();
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("deleteTemplate", "Delete the Managed Entries Plugin template entry", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.addNotification("success", "Template entry ".concat(templateDN, " was successfully deleted"));
      this.loadConfigs();
      this.closeTempDeleteConfirm();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error during the template entry removal operation - ".concat(errMsg.desc));
      this.closeTempDeleteConfirm();
      this.toggleLoading();
    });
  }

  addTemplate() {
    this.cmdTemplateOperation("add");
  }

  editTemplate() {
    this.cmdTemplateOperation("set");
  }

  getAttributes() {
    var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("getAttributes", "Get attrs", attr_cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(attr_cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var attrContent = JSON.parse(content);
      var attrs = [];

      var _iterator4 = _createForOfIteratorHelper(attrContent.items),
          _step4;

      try {
        for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
          var _content = _step4.value;
          attrs.push(_content.name[0]);
        }
      } catch (err) {
        _iterator4.e(err);
      } finally {
        _iterator4.f();
      }

      this.setState({
        attributes: attrs
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to get attributes - ".concat(errMsg.desc));
    });
  }

  handleConfirmChange(e) {
    this.setState({
      modalChecked: e.target.checked
    });
  }

  validateDef(newDefEntry) {
    var defSaveDisabled = false;

    if (this.state.configName == "" || this.state.originScope == "" || !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(this.state.originScope) || this.state.originFilter == "" || this.state.managedBase == "" || !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(this.state.managedBase) || this.state.managedTemplate == "") {
      defSaveDisabled = true;
    } // If editing an entry we need to check if values were changed before
    // enabling the save button


    if (!newDefEntry && !defSaveDisabled) {
      if (this.state.originScope == this.state._originScope && this.state.originFilter == this.state._originFilter && this.state.managedBase == this.state._managedBase && this.state.managedTemplate == this.state._managedTemplate) {
        defSaveDisabled = true;
      }
    }

    return defSaveDisabled;
  }

  validateTempRdnToAttrMapping() {
    // The template RDN must have a mapped attribute
    var mappedMatchesRDN = false;

    var _iterator5 = _createForOfIteratorHelper(this.state.templateMappedAttr),
        _step5;

    try {
      for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
        var mAttr = _step5.value;

        if (mAttr.startsWith(this.state.templateRDNAttr + ":")) {
          mappedMatchesRDN = true;
          break;
        }
      }
    } catch (err) {
      _iterator5.e(err);
    } finally {
      _iterator5.f();
    }

    return mappedMatchesRDN;
  }

  validateTemp(newTemplateEntry) {
    var tempSaveDisabled = false;

    if (this.state.templateDN == "" || this.state.templateDN != "" && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(this.state.templateDN) || this.state.templateRDNAttr == "") {
      tempSaveDisabled = true;
    } // The template RDN must have a mapped attribute


    if (!this.validateTempRdnToAttrMapping()) {
      tempSaveDisabled = true;
    } // If editing an entry we need to check if values were changed before
    // enabling the save button


    if (!newTemplateEntry && !tempSaveDisabled) {
      if (this.state.templateDN == this.state._templateDN && this.state.templateRDNAttr == this.state._templateRDNAttr && (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.listsEqual)(this.state.templateMappedAttr, this.state._templateMappedAttr) && (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.listsEqual)(this.state.templateStaticAttr, this.state._templateStaticAttr)) {
        tempSaveDisabled = true;
      }
    }

    return tempSaveDisabled;
  }

  render() {
    var _this$state3 = this.state,
        configArea = _this$state3.configArea,
        configRows = _this$state3.configRows,
        attributes = _this$state3.attributes,
        configName = _this$state3.configName,
        originScope = _this$state3.originScope,
        originFilter = _this$state3.originFilter,
        managedBase = _this$state3.managedBase,
        managedTemplate = _this$state3.managedTemplate,
        templateDN = _this$state3.templateDN,
        templateRDNAttr = _this$state3.templateRDNAttr,
        templateStaticAttr = _this$state3.templateStaticAttr,
        templateMappedAttr = _this$state3.templateMappedAttr,
        templateOptions = _this$state3.templateOptions,
        newDefEntry = _this$state3.newDefEntry,
        configEntryModalShow = _this$state3.configEntryModalShow,
        newTemplateEntry = _this$state3.newTemplateEntry,
        templateAddStaticShow = _this$state3.templateAddStaticShow,
        templateAddMappedShow = _this$state3.templateAddMappedShow;
    var specificPluginCMD = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "managed-entries", "set", "--config-area", configArea || "delete"];
    var templateTitle = (newTemplateEntry ? "Add" : "Edit") + " Managed Entries Template Entry";
    var title = (newDefEntry ? "Add" : "Edit") + " Managed Entries Definition Entry";
    var defSaveDisabled = this.validateDef(newDefEntry);
    var tempSaveDisabled = this.validateTemp(newTemplateEntry);
    var templateRdnMappingOK = this.validateTempRdnToAttrMapping();
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ModalVariant.medium,
      "aria-labelledby": "ds-modal",
      title: title,
      isOpen: configEntryModalShow,
      onClose: this.closeDefModal,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
        key: "saveshared",
        isDisabled: defSaveDisabled,
        variant: "primary",
        onClick: newDefEntry ? this.addDefConfig : this.editDefConfig
      }, "Save Definition"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.closeDefModal
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Form, {
      className: "ds-margin-top-xlg",
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormGroup, {
      label: "Definition Name",
      fieldId: "configName",
      isRequired: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      value: configName,
      type: "text",
      id: "configName",
      "aria-describedby": "configName",
      name: "configName",
      onChange: this.handleFieldChange,
      isDisabled: !newDefEntry,
      isRequired: true
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormGroup, {
      label: "Subtree Scope",
      fieldId: "originScope",
      helperTextInvalid: "A valid DN must be provided",
      validated: originScope != "" && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(originScope) ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions["default"],
      title: "Sets the search base DN to use to find candidate entries (originScope)",
      isRequired: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      value: originScope,
      type: "text",
      id: "originScope",
      "aria-describedby": "originScope",
      name: "originScope",
      onChange: this.handleFieldChange,
      validated: originScope != "" && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(originScope) ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions["default"],
      isRequired: true
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormGroup, {
      label: "Filter",
      fieldId: "originFilter",
      title: "Sets the search filter to use to search for and identify the entries within the subtree which require a managed entry (originFilter)",
      isRequired: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      value: originFilter,
      type: "text",
      id: "originFilter",
      "aria-describedby": "originFilter",
      name: "originFilter",
      onChange: this.handleFieldChange,
      isRequired: true
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormGroup, {
      label: "Managed Base",
      fieldId: "managedBase",
      helperTextInvalid: "A valid DN must be provided",
      validated: managedBase != "" && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(managedBase) ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions["default"],
      title: "Sets the subtree where the managed entries are created (managedBase)",
      isRequired: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      value: managedBase,
      type: "text",
      id: "managedBase",
      "aria-describedby": "managedBase",
      name: "managedBase",
      onChange: this.handleFieldChange,
      validated: managedBase != "" && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(managedBase) ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions["default"],
      isRequired: true
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormGroup, {
      label: "Template",
      fieldId: "managedTemplate",
      title: "Choose which template to use for this definition",
      isRequired: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.FormSelect, {
      id: "managedTemplate",
      value: managedTemplate,
      onChange: this.handleFieldChange,
      "aria-label": "FormSelect Input"
    }, templateOptions.map((option, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormSelectOption, {
      key: index,
      value: option.value,
      label: option.label
    })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ModalVariant.medium,
      "aria-labelledby": "ds-modal",
      title: templateTitle,
      isOpen: this.state.templateModalShow,
      onClose: this.closeTempModal,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
        key: "savetemp",
        variant: "primary",
        onClick: newTemplateEntry ? this.addTemplate : this.editTemplate,
        isDisabled: tempSaveDisabled
      }, "Save Template"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.closeTempModal
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Form, {
      className: "ds-margin-top-xlg",
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormGroup, {
      label: "Template DN",
      fieldId: "templateDN",
      helperTextInvalid: "The template DN must be set to a valid DN",
      validated: templateDN != "" && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(templateDN) ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions["default"],
      title: "DN of the template entry",
      isRequired: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      value: templateDN,
      type: "text",
      id: "templateDN",
      "aria-describedby": "templateDN",
      name: "templateDN",
      onChange: this.handleFieldChange,
      isDisabled: !newTemplateEntry,
      validated: templateDN != "" && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(templateDN) ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions["default"]
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormGroup, {
      label: "RDN Attribute",
      fieldId: "templateDN",
      title: "DN of the template entry",
      isRequired: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectVariant.typeahead,
      typeAheadAriaLabel: "Type an attribute",
      onToggle: this.onRDNToggle,
      onSelect: this.onRDNSelect,
      onClear: this.clearRDNSelection,
      selections: templateRDNAttr,
      isOpen: this.state.isRDNOpen,
      "aria-labelledby": "typeAhead-rdn",
      placeholderText: "Type an attribute..."
    }, attributes.map(attr => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.SelectOption, {
      key: attr,
      value: attr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Form, {
      className: "ds-margin-top-lg",
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormGroup, {
      label: "Mapped Attributes",
      fieldId: "templateDN",
      title: "Dynamic attribute mappings",
      isRequired: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.SimpleList, {
      className: "ds-modal-list",
      onSelect: this.onMappedListSelect,
      "aria-label": "mappedAttrList"
    }, templateMappedAttr.length ? templateMappedAttr.map(attr => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.SimpleListItem, {
      id: attr,
      key: attr
    }, attr)) : ""), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("p", {
      hidden: templateRdnMappingOK,
      className: "ds-error-msg"
    }, "You must have at least one Mapped Attribute that matches the RDN Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
      className: "ds-margin-top",
      key: "addstatic",
      variant: "primary",
      onClick: this.openMappedAttrModal
    }, "Add Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
      className: "ds-left-margin",
      key: "delstatic",
      variant: "primary",
      isDisabled: this.state.selectedMappedAttr == "",
      onClick: this.showMappedAttrDeleteConfirm
    }, "Delete Attribute"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormGroup, {
      className: "ds-margin-top-lg",
      label: "Static Attributes",
      fieldId: "templateDN",
      title: "Static attribute mappings"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.SimpleList, {
      className: "ds-modal-list",
      onSelect: this.onStaticListSelect,
      "aria-label": "Simple List Example"
    }, templateStaticAttr.length ? templateStaticAttr.map(attr => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.SimpleListItem, {
      id: attr,
      key: attr
    }, attr)) : ""), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
      key: "addstatic",
      variant: "primary",
      onClick: this.openStaticAttrModal
    }, "Add Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
      className: "ds-left-margin",
      key: "delstatic",
      variant: "primary",
      isDisabled: this.state.selectedStaticAttr == "",
      onClick: this.showStaticAttrDeleteConfirm
    }, "Delete Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ModalVariant.small,
      "aria-labelledby": "ds-modal",
      title: "Add Static Attribute",
      isOpen: templateAddStaticShow,
      onClose: this.closeStaticAttrModal,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
        key: "saveshared",
        variant: "primary",
        onClick: this.addStaticAttrToList,
        isDisabled: !this.state.staticAttr.length || this.state.staticValue == ""
      }, "Add Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.closeStaticAttrModal
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Form, {
      className: "ds-margin-top",
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormGroup, {
      label: "Static Attribute",
      fieldId: "staticAttr",
      title: "The attribute that is set in the managed entry"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectVariant.typeahead,
      typeAheadAriaLabel: "Type an attribute",
      onToggle: this.onStaticToggle,
      onSelect: this.onStaticSelect,
      onClear: this.clearStaticSelection,
      selections: this.state.staticAttr,
      isOpen: this.state.isStaticOpen,
      "aria-labelledby": "typeAhead-static",
      placeholderText: "Type an attribute..."
    }, attributes.map(attr => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.SelectOption, {
      key: attr,
      value: attr
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormGroup, {
      className: "ds-margin-top-lg",
      label: "Attribute Value",
      fieldId: "staticValue",
      title: "The value set for the static attribute in the entry"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      value: this.state.staticValue,
      type: "text",
      id: "staticValue",
      "aria-describedby": "staticValue",
      name: "staticValue",
      onChange: this.handleFieldChange,
      isRequired: true
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ModalVariant.small,
      "aria-labelledby": "ds-modal",
      title: "Add Mapped Attribute",
      isOpen: templateAddMappedShow,
      onClose: this.closeMappedAttrModal,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
        key: "savemapped",
        variant: "primary",
        onClick: this.addMappedAttrToList,
        isDisabled: !this.state.mappedAttr.length || this.state.mappedValue == ""
      }, "Add Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.closeMappedAttrModal
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Form, {
      className: "ds-margin-top",
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormGroup, {
      label: "Mapped Attribute",
      fieldId: "mappedAttr",
      title: "The attribute that is set in the managed entry"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectVariant.typeahead,
      typeAheadAriaLabel: "Type an attribute",
      onToggle: this.onMappedToggle,
      onSelect: this.onMappedSelect,
      onClear: this.clearMappedSelection,
      selections: this.state.mappedAttr,
      isOpen: this.state.isMappedOpen,
      "aria-labelledby": "typeAhead-static",
      placeholderText: "Type an attribute..."
    }, attributes.map(attr => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.SelectOption, {
      key: attr,
      value: attr
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormGroup, {
      label: "Mapped Value",
      fieldId: "mappedValue",
      className: "ds-margin-top-lg",
      title: "The value set for the mapped attribute"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      value: this.state.mappedValue,
      type: "text",
      id: "mappedValue",
      "aria-describedby": "mappedValue",
      name: "mappedValue",
      onChange: this.handleFieldChange
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-center ds-margin-top-xlg",
      hidden: !this.state.loading
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.TextVariants.h3
    }, "Loading Managed Entries Configuration ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.Spinner, {
      className: "ds-margin-top",
      size: "lg"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      hidden: this.state.loading
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
      rows: this.props.rows,
      serverId: this.props.serverId,
      cn: "Managed Entries",
      pluginName: "Managed Entries",
      cmdName: "managed-entries",
      specificPluginCMD: specificPluginCMD,
      savePluginHandler: this.props.savePluginHandler,
      pluginListHandler: this.props.pluginListHandler,
      addNotification: this.props.addNotification,
      toggleLoadingHandler: this.toggleLoading
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Tabs, {
      activeKey: this.state.activeTabKey,
      onSelect: this.handleNavSelect
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.Tab, {
      eventKey: 1,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.TabTitleText, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, "Templates"))
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Tooltip, {
      content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, "Templates are used by Definitions to construct the \"Managed Entry\".  You must have at least one Template before you can create a Definition entry.")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("a", {
      className: "ds-font-size-sm"
    }, "What is a Template?"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_2__.ManagedTemplateTable, {
      rows: this.state.templateRows,
      key: this.state.templateRows,
      editConfig: this.showEditTempModal,
      deleteConfig: this.showTempDeleteConfirm
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
      className: "ds-left-margin",
      variant: "primary",
      onClick: this.showAddTempModal
    }, "Create Template")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.Tab, {
      eventKey: 2,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.TabTitleText, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, "Definitions"))
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Tooltip, {
      content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, "Definitions describe the criteria that entries must meet in order for its \"managed entry\" to be created.  The Managed entry will be created using the Template specified in its configuration. You can not create a Definition until there is at least one Template.")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("a", {
      className: "ds-font-size-sm"
    }, "What is a Definition?"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_2__.ManagedDefinitionTable, {
      rows: configRows,
      key: this.state.tableKey,
      editConfig: this.showEditDefModal,
      deleteConfig: this.showDefDeleteConfirm
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
      className: "ds-left-margin",
      variant: "primary",
      onClick: this.showAddDefModal,
      isDisabled: this.state.defCreateDisabled
    }, "Add Definition"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top-xlg"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Form, {
      className: "ds-margin-top-xlg",
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormGroup, {
      label: "Shared Config Area",
      fieldId: "configArea",
      helperTextInvalid: "The DN for the shared conifig area is invalid",
      validated: configArea != "" && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(configArea) ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ValidatedOptions["default"]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      value: configArea,
      type: "text",
      id: "configArea",
      "aria-describedby": "configArea",
      name: "configArea",
      onChange: this.handleFieldChange
    })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__.DoubleConfirmModal, {
      showModal: this.state.showTempDeleteConfirm,
      closeHandler: this.closeTempDeleteConfirm,
      handleChange: this.handleConfirmChange,
      actionHandler: this.deleteTemplate,
      spinning: this.state.modalSpinning,
      item: this.state.templateDN,
      checked: this.state.modalChecked,
      mTitle: "Delete Template Entry",
      mMsg: "Are you really sure you want to delete this template entry?",
      mSpinningMsg: "Deleting template ...",
      mBtnName: "Delete Template"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__.DoubleConfirmModal, {
      showModal: this.state.showDefDeleteConfirm,
      closeHandler: this.closeDefDeleteConfirm,
      handleChange: this.handleConfirmChange,
      actionHandler: this.deleteDefConfig,
      spinning: this.state.modalSpinning,
      item: this.state.configName,
      checked: this.state.modalChecked,
      mTitle: "Delete Definition Entry",
      mMsg: "Are you really sure you want to delete this definition entry?",
      mSpinningMsg: "Deleting definition ...",
      mBtnName: "Delete Definition"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__.DoubleConfirmModal, {
      showModal: this.state.showMappedAttrDeleteConfirm,
      closeHandler: this.closeMappedAttrDeleteConfirm,
      handleChange: this.handleConfirmChange,
      actionHandler: this.deleteMappedAttribute,
      spinning: this.state.modalSpinning,
      item: this.state.selectedMappedAttr,
      checked: this.state.modalChecked,
      mTitle: "Delete Mapped Attribute From Template",
      mMsg: "Are you really sure you want to delete this mapped attribute?",
      mSpinningMsg: "Deleting mapped attribute ...",
      mBtnName: "Delete Attribute"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__.DoubleConfirmModal, {
      showModal: this.state.showStaticAttrDeleteConfirm,
      closeHandler: this.closeStaticAttrDeleteConfirm,
      handleChange: this.handleConfirmChange,
      actionHandler: this.deleteStaticAttribute,
      spinning: this.state.modalSpinning,
      item: this.state.selectedStaticAttr,
      checked: this.state.modalChecked,
      mTitle: "Delete Static Attribute From Template",
      mMsg: "Are you really sure you want to delete this static attribute?",
      mSpinningMsg: "Deleting static attribute ...",
      mBtnName: "Delete Attribute"
    }));
  }

}

ManagedEntries.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().array),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  savePluginHandler: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func),
  pluginListHandler: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func)
};
ManagedEntries.defaultProps = {
  rows: [],
  serverId: ""
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ManagedEntries);

/***/ }),

/***/ "./src/lib/plugins/memberOf.jsx":
/*!**************************************!*\
  !*** ./src/lib/plugins/memberOf.jsx ***!
  \**************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormHelperText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_22__);
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/wrench-icon.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }










class MemberOf extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  componentDidMount(prevProps) {
    if (this.props.wasActiveList.includes(5)) {
      if (this.state.firstLoad) {
        this.updateFields();
      }
    }
  }

  componentDidUpdate(prevProps) {
    if (this.props.rows !== prevProps.rows) {
      this.updateFields();
    }
  }

  constructor(props) {
    super(props);
    this.updateFields = this.updateFields.bind(this);
    this.handleChange = this.handleChange.bind(this);
    this.handleFieldChange = this.handleFieldChange.bind(this);
    this.handleModalChange = this.handleModalChange.bind(this);
    this.openModal = this.openModal.bind(this);
    this.closeModal = this.closeModal.bind(this);
    this.addConfig = this.addConfig.bind(this);
    this.editConfig = this.editConfig.bind(this);
    this.deleteConfig = this.deleteConfig.bind(this);
    this.cmdOperation = this.cmdOperation.bind(this);
    this.runFixup = this.runFixup.bind(this);
    this.toggleFixupModal = this.toggleFixupModal.bind(this);
    this.saveConfig = this.saveConfig.bind(this);
    this.showConfirmDelete = this.showConfirmDelete.bind(this);
    this.closeConfirmDelete = this.closeConfirmDelete.bind(this);
    this.validateConfig = this.validateConfig.bind(this);
    this.validateModal = this.validateModal.bind(this);
    this.state = {
      firstLoad: true,
      error: {},
      errorModal: {},
      saveBtnDisabled: true,
      saveBtnDisabledModal: true,
      showConfirmDelete: false,
      modalCheck: false,
      modalSpinning: false,
      memberOfAttr: "",
      memberOfGroupAttr: [],
      memberOfEntryScope: [],
      memberOfEntryScopeOptions: [],
      memberOfEntryScopeExcludeSubtree: [],
      memberOfEntryScopeExcludeOptions: [],
      memberOfAutoAddOC: "",
      memberOfAllBackends: false,
      memberOfSkipNested: false,
      memberOfConfigEntry: "",
      configEntryModalShow: false,
      fixupModalShow: false,
      isSubtreeScopeOpen: false,
      isExcludeScopeOpen: false,
      configDN: "",
      configAttr: "",
      configGroupAttr: [],
      configEntryScope: [],
      configEntryScopeOptions: [],
      configEntryScopeExcludeSubtree: [],
      configEntryScopeExcludeOptions: [],
      configAutoAddOC: "",
      configAllBackends: false,
      configSkipNested: false,
      isConfigSubtreeScopeOpen: false,
      isConfigExcludeScopeOpen: false,
      newEntry: true,
      fixupDN: "",
      fixupFilter: "",
      isConfigAttrOpen: false,
      isConfigGroupAttrOpen: false,
      isConfigAutoAddOCOpen: false,
      isMemberOfAttrOpen: false,
      isMemberOfGroupAttrOpen: false,
      isMemberOfAutoAddOCOpen: false
    }; // Config Attribute

    this.onConfigAttrSelect = (event, selection) => {
      if (selection == this.state.configAttr) {
        this.onConfigAttrClear();
      } else {
        this.setState({
          configAttr: selection,
          isConfigAttrOpen: false
        }, () => {
          this.validateModal();
        });
      }
    };

    this.onConfigAttrToggle = isConfigAttrOpen => {
      this.setState({
        isConfigAttrOpen
      });
    };

    this.onConfigAttrClear = () => {
      this.setState({
        configAttr: "",
        isConfigAttrOpen: false
      }, () => {
        this.validateModal();
      });
    }; // Config Group Attribute


    this.onConfigGroupAttrSelect = (event, selection) => {
      if (this.state.configGroupAttr.includes(selection)) {
        this.setState(prevState => ({
          configGroupAttr: prevState.configGroupAttr.filter(item => item !== selection),
          isConfigGroupAttrOpen: false
        }), () => {
          this.validateModal();
        });
      } else {
        this.setState(prevState => ({
          configGroupAttr: [...prevState.configGroupAttr, selection],
          isConfigGroupAttrOpen: false
        }), () => {
          this.validateModal();
        });
      }
    };

    this.onConfigGroupAttrToggle = isConfigGroupAttrOpen => {
      this.setState({
        isConfigGroupAttrOpen
      });
    };

    this.onConfigGroupAttrClear = () => {
      this.setState({
        configGroupAttr: [],
        isConfigGroupAttrOpen: false
      }, () => {
        this.validateModal();
      });
    }; // MemberOf Attribute


    this.onMemberOfAttrSelect = (event, selection) => {
      if (selection == this.state.configAttr) {
        this.onMemberOfAttrClear();
      } else {
        this.setState({
          memberOfAttr: selection,
          isMemberOfAttrOpen: false
        }, () => {
          this.validateModal();
        });
      }
    };

    this.onMemberOfAttrToggle = isMemberOfAttrOpen => {
      this.setState({
        isMemberOfAttrOpen
      });
    };

    this.onMemberOfAttrClear = () => {
      this.setState({
        memberOfAttr: [],
        isMemberOfAttrOpen: false
      }, () => {
        this.validateConfig();
      });
    }; // MemberOf Group Attribute


    this.onMemberOfGroupAttrSelect = (event, selection) => {
      if (this.state.memberOfGroupAttr.includes(selection)) {
        this.setState(prevState => ({
          memberOfGroupAttr: prevState.memberOfGroupAttr.filter(item => item !== selection),
          isMemberOfGroupAttrOpen: false
        }), () => {
          this.validateConfig();
        });
      } else {
        this.setState(prevState => ({
          memberOfGroupAttr: [...prevState.memberOfGroupAttr, selection],
          isMemberOfGroupAttrOpen: false
        }), () => {
          this.validateConfig();
        });
      }
    };

    this.onMemberOfGroupAttrToggle = isMemberOfGroupAttrOpen => {
      this.setState({
        isMemberOfGroupAttrOpen
      });
    };

    this.onMemberOfGroupAttrClear = () => {
      this.setState({
        memberOfGroupAttr: [],
        isMemberOfGroupAttrOpen: false
      }, () => {
        this.validateConfig();
      });
    }; // Handle scope subtree


    this.onSubtreeScopeSelect = (event, selection) => {
      if (this.state.memberOfEntryScope.includes(selection)) {
        this.setState(prevState => ({
          memberOfEntryScope: prevState.memberOfEntryScope.filter(item => item !== selection),
          isSubtreeScopeOpen: false
        }), () => {
          this.validateConfig();
        });
      } else {
        this.setState(prevState => ({
          memberOfEntryScope: [...prevState.memberOfEntryScope, selection],
          isSubtreeScopeOpen: false
        }), () => {
          this.validateConfig();
        });
      }
    };

    this.onSubtreeScopeToggle = isSubtreeScopeOpen => {
      this.setState({
        isSubtreeScopeOpen
      }, () => {
        this.validateConfig();
      });
    };

    this.onSubtreeScopeClear = () => {
      this.setState({
        memberOfEntryScope: [],
        isSubtreeScopeOpen: false
      }, () => {
        this.validateConfig();
      });
    };

    this.onSubtreeScopeCreateOption = newValue => {
      if (!this.state.memberOfEntryScopeOptions.includes(newValue)) {
        this.setState({
          memberOfEntryScopeOptions: [...this.state.memberOfEntryScopeOptions, newValue],
          isSubtreeScopeOpen: false
        }, () => {
          this.validateConfig();
        });
      }
    }; // Handle Exclude Scope subtree


    this.onExcludeScopeSelect = (event, selection) => {
      if (this.state.memberOfEntryScopeExcludeSubtree.includes(selection)) {
        this.setState(prevState => ({
          memberOfEntryScopeExcludeSubtree: prevState.memberOfEntryScopeExcludeSubtree.filter(item => item !== selection),
          isExcludeScopeOpen: false
        }), () => {
          this.validateConfig();
        });
      } else {
        this.setState(prevState => ({
          memberOfEntryScopeExcludeSubtree: [...prevState.memberOfEntryScopeExcludeSubtree, selection],
          isExcludeScopeOpen: false
        }), () => {
          this.validateConfig();
        });
      }
    };

    this.onExcludeScopeToggle = isExcludeScopeOpen => {
      this.setState({
        isExcludeScopeOpen
      }, () => {
        this.validateConfig();
      });
    };

    this.onExcludeScopeClear = () => {
      this.setState({
        memberOfEntryScopeExcludeSubtree: [],
        isExcludeScopeOpen: false
      }, () => {
        this.validateConfig();
      });
    };

    this.onExcludeCreateOption = newValue => {
      if (!this.state.memberOfEntryScopeOptions.includes(newValue)) {
        this.setState({
          memberOfEntryScopeExcludeOptions: [...this.state.memberOfEntryScopeExcludeOptions, newValue],
          isExcludeScopeOpen: false
        }, () => {
          this.validateConfig();
        });
      }
    }; // Modal scope and exclude Scope
    // Handle scope subtree


    this.onConfigScopeSelect = (event, selection) => {
      if (this.state.configEntryScope.includes(selection)) {
        this.setState(prevState => ({
          configEntryScope: prevState.configEntryScope.filter(item => item !== selection),
          isConfigSubtreeScopeOpen: false
        }), () => {
          this.validateModal();
        });
      } else {
        this.setState(prevState => ({
          configEntryScope: [...prevState.configEntryScope, selection],
          isConfigSubtreeScopeOpen: false
        }), () => {
          this.validateModal();
        });
      }
    };

    this.onConfigScopeToggle = isConfigSubtreeScopeOpen => {
      this.setState({
        isConfigSubtreeScopeOpen
      }, () => {
        this.validateModal();
      });
    };

    this.onConfigScopeClear = () => {
      this.setState({
        configEntryScope: [],
        isConfigSubtreeScopeOpen: false
      }, () => {
        this.validateModal();
      });
    };

    this.onConfigCreateOption = newValue => {
      if (!this.state.configEntryScopeOptions.includes(newValue)) {
        this.setState({
          configEntryScopeOptions: [...this.state.configEntryScopeOptions, newValue],
          isConfigSubtreeScopeOpen: false
        }, () => {
          this.validateModal();
        });
      }
    }; // Handle Exclude Scope subtree


    this.onConfigExcludeScopeSelect = (event, selection) => {
      if (this.state.configEntryScopeExcludeSubtree.includes(selection)) {
        this.setState(prevState => ({
          configEntryScopeExcludeSubtree: prevState.configEntryScopeExcludeSubtree.filter(item => item !== selection),
          isConfigExcludeScopeOpen: false
        }), () => {
          this.validateModal();
        });
      } else {
        this.setState(prevState => ({
          configEntryScopeExcludeSubtree: [...prevState.configEntryScopeExcludeSubtree, selection],
          isConfigExcludeScopeOpen: false
        }), () => {
          this.validateModal();
        });
      }
    };

    this.onConfigExcludeScopeToggle = isConfigExcludeScopeOpen => {
      this.setState({
        isConfigExcludeScopeOpen
      }, () => {
        this.validateModal();
      });
    };

    this.onConfigExcludeScopeClear = () => {
      this.setState({
        configEntryScopeExcludeSubtree: [],
        isConfigExcludeScopeOpen: false
      }, () => {
        this.validateModal();
      });
    };

    this.onConfigExcludeCreateOption = newValue => {
      if (!this.state.configEntryScopeExcludeOptions.includes(newValue)) {
        this.setState({
          configEntryScopeExcludeOptions: [...this.state.configEntryScopeExcludeOptions, newValue],
          isConfigExcludeScopeOpen: false
        }, () => {
          this.validateModal();
        });
      }
    };
  }

  validateConfig() {
    var errObj = {};
    var all_good = true;
    var reqAttrs = ['memberOfAttr'];
    var reqLists = ['memberOfGroupAttr', 'memberOfEntryScope'];
    var dnAttrs = ['memberOfConfigEntry'];
    var dnLists = ['memberOfEntryScopeExcludeSubtree', 'memberOfEntryScope']; // Check required attributes

    for (var _i = 0, _reqAttrs = reqAttrs; _i < _reqAttrs.length; _i++) {
      var attr = _reqAttrs[_i];

      if (this.state[attr] == "") {
        all_good = false;
        errObj[attr] = true;
      }
    } // Check required Lists are not empty


    for (var _i2 = 0, _reqLists = reqLists; _i2 < _reqLists.length; _i2++) {
      var _attr = _reqLists[_i2];

      if (this.state[_attr].length == 0) {
        all_good = false;
        errObj[_attr] = true;
      }
    } // Check DN attrs


    for (var _i3 = 0, _dnAttrs = dnAttrs; _i3 < _dnAttrs.length; _i3++) {
      var _attr2 = _dnAttrs[_i3];

      if (this.state[_attr2] != "" && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(this.state[_attr2])) {
        errObj[_attr2] = true;
        all_good = false;
      }
    } // Validate the subtree lists


    for (var _i4 = 0, _dnLists = dnLists; _i4 < _dnLists.length; _i4++) {
      var dn_list = _dnLists[_i4];

      var _iterator = _createForOfIteratorHelper(this.state[dn_list]),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var dn = _step.value;

          if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(dn)) {
            errObj[dn_list] = true;
            all_good = false;
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }
    }

    if (all_good) {
      // Check for value differences to see if the save btn should be enabled
      all_good = false;
      var attrLists = ['memberOfEntryScope', 'memberOfEntryScopeExcludeSubtree', 'memberOfGroupAttr'];

      for (var _i5 = 0, _attrLists = attrLists; _i5 < _attrLists.length; _i5++) {
        var check_attr = _attrLists[_i5];

        if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.listsEqual)(this.state[check_attr], this.state['_' + check_attr])) {
          all_good = true;
          break;
        }
      }

      var configAttrs = ['memberOfAllBackends', 'memberOfSkipNested', 'memberOfConfigEntry', 'memberOfAttr', 'memberOfAutoAddOC'];

      for (var _i6 = 0, _configAttrs = configAttrs; _i6 < _configAttrs.length; _i6++) {
        var _check_attr = _configAttrs[_i6];

        if (this.state[_check_attr] != this.state['_' + _check_attr]) {
          all_good = true;
          break;
        }
      }
    }

    this.setState({
      saveBtnDisabled: !all_good,
      error: errObj
    });
  }

  validateModal() {
    var errObj = {};
    var all_good = true;
    var reqAttrs = ['configDN', 'configAttr'];
    var reqLists = ['configEntryScope', 'configGroupAttr'];
    var dnAttrs = ['configDN'];
    var dnLists = ['configEntryScope', 'configEntryScopeExcludeSubtree']; // Check required attributes

    for (var _i7 = 0, _reqAttrs2 = reqAttrs; _i7 < _reqAttrs2.length; _i7++) {
      var attr = _reqAttrs2[_i7];

      if (this.state[attr] == "") {
        all_good = false;
        errObj[attr] = true;
      }
    } // Check required Lists are not empty


    for (var _i8 = 0, _reqLists2 = reqLists; _i8 < _reqLists2.length; _i8++) {
      var _attr3 = _reqLists2[_i8];

      if (this.state[_attr3].length == 0) {
        all_good = false;
        errObj[_attr3] = true;
      }
    } // Check DN attrs


    for (var _i9 = 0, _dnAttrs2 = dnAttrs; _i9 < _dnAttrs2.length; _i9++) {
      var _attr4 = _dnAttrs2[_i9];

      if (this.state[_attr4] != "" && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(this.state[_attr4])) {
        errObj[_attr4] = true;
        all_good = false;
        break;
      }
    } // Validate the subtree lists


    for (var _i10 = 0, _dnLists2 = dnLists; _i10 < _dnLists2.length; _i10++) {
      var dn_list = _dnLists2[_i10];

      var _iterator2 = _createForOfIteratorHelper(this.state[dn_list]),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var dn = _step2.value;

          if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(dn)) {
            errObj[dn_list] = true;
            all_good = false;
          }
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }
    }

    if (all_good) {
      // Check for value differences to see if the save btn should be enabled
      all_good = false;
      var attrLists = ['configEntryScope', 'configEntryScopeExcludeSubtree', 'configGroupAttr'];

      for (var _i11 = 0, _attrLists2 = attrLists; _i11 < _attrLists2.length; _i11++) {
        var check_attr = _attrLists2[_i11];

        if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.listsEqual)(this.state[check_attr], this.state['_' + check_attr])) {
          all_good = true;
          break;
        }
      }

      var configAttrs = ['configDN', 'configAttr', 'configAutoAddOC', 'configAllBackends', 'configSkipNested'];

      for (var _i12 = 0, _configAttrs2 = configAttrs; _i12 < _configAttrs2.length; _i12++) {
        var _check_attr2 = _configAttrs2[_i12];

        if (this.state[_check_attr2] != this.state['_' + _check_attr2]) {
          all_good = true;
          break;
        }
      }
    }

    this.setState({
      saveBtnDisabledModal: !all_good,
      errorModal: errObj
    });
  }

  handleFieldChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [e.target.id]: value
    }, () => {
      this.validateConfig();
    });
  }

  handleModalChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [e.target.id]: value
    }, () => {
      this.validateModal();
    });
  }

  showConfirmDelete() {
    this.setState({
      showConfirmDelete: true,
      modalChecked: false,
      modalSpinning: false
    });
  }

  closeConfirmDelete() {
    this.setState({
      showConfirmDelete: false,
      modalChecked: false,
      modalSpinning: false
    });
  }

  handleChange(e) {
    // Generic handler for things that don't need validating
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [e.target.id]: value
    });
  }

  toggleFixupModal() {
    this.setState(prevState => ({
      fixupModalShow: !prevState.fixupModalShow,
      fixupDN: "",
      fixupFilter: ""
    }));
  }

  runFixup() {
    if (!this.state.fixupDN) {
      this.props.addNotification("warning", "Fixup DN is required.");
    } else {
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "memberof", "fixup", this.state.fixupDN];

      if (this.state.fixupFilter) {
        cmd = [...cmd, "--filter", this.state.fixupFilter];
      }

      this.props.toggleLoadingHandler();
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("runFixup", "Run fixup MemberOf Plugin ", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        this.props.addNotification("success", "Fixup task for ".concat(this.state.fixupDN, " was successfull"));
        this.props.toggleLoadingHandler();
        this.setState({
          fixupModalShow: false
        });
      }).fail(err => {
        var errMsg = JSON.parse(err);
        this.props.addNotification("error", "Fixup task for ".concat(this.state.fixupDN, " has failed ").concat(errMsg.desc));
        this.props.toggleLoadingHandler();
        this.setState({
          fixupModalShow: false
        });
      });
    }
  }

  openModal() {
    if (!this.state.memberOfConfigEntry) {
      this.setState({
        configEntryModalShow: true,
        newEntry: true,
        configDN: "",
        configAttr: "",
        configGroupAttr: [],
        configEntryScope: [],
        configEntryScopeExcludeSubtree: [],
        configAutoAddOC: "",
        configAllBackends: false,
        configSkipNested: false,
        saveBtnDisabledModal: true
      });
    } else {
      var configScopeList = [];
      var configExcludeScopeList = [];
      var configGroupAttrObjectList = [];
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "memberof", "config-entry", "show", this.state.memberOfConfigEntry];
      this.props.toggleLoadingHandler();
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("openMemberOfModal", "Fetch the MemberOf Plugin config entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        var configEntry = JSON.parse(content).attrs;
        this.setState({
          configEntryModalShow: true,
          newEntry: false,
          saveBtnDisabledModal: true,
          configDN: this.state.memberOfConfigEntry,
          configAttr: configEntry.memberofattr === undefined ? "" : configEntry.memberofattr[0],
          configAutoAddOC: configEntry.memberofautoaddoc === undefined ? "" : configEntry.memberofautoaddoc[0],
          configAllBackends: !(configEntry.memberofallbackends === undefined || configEntry.memberofallbackends[0] == "off"),
          configSkipNested: !(configEntry.memberofskipnested === undefined || configEntry.memberofskipnested[0] == "off"),
          configConfigEntry: configEntry["nsslapd-pluginConfigArea"] === undefined ? "" : configEntry["nsslapd-pluginConfigArea"][0]
        });

        if (configEntry.memberofgroupattr === undefined) {
          this.setState({
            configGroupAttr: []
          });
        } else {
          var _iterator3 = _createForOfIteratorHelper(configEntry.memberofgroupattr),
              _step3;

          try {
            for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
              var value = _step3.value;
              configGroupAttrObjectList = [...configGroupAttrObjectList, value];
            }
          } catch (err) {
            _iterator3.e(err);
          } finally {
            _iterator3.f();
          }

          this.setState({
            configGroupAttr: configGroupAttrObjectList
          });
        }

        if (configEntry.memberofentryscope === undefined) {
          this.setState({
            configEntryScope: []
          });
        } else {
          var _iterator4 = _createForOfIteratorHelper(configEntry.memberofentryscope),
              _step4;

          try {
            for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
              var _value = _step4.value;
              configScopeList = [...configScopeList, _value];
            }
          } catch (err) {
            _iterator4.e(err);
          } finally {
            _iterator4.f();
          }

          this.setState({
            configEntryScope: configScopeList
          });
        }

        if (configEntry.memberofentryscopeexcludesubtree === undefined) {
          this.setState({
            configEntryScopeExcludeSubtreeScope: []
          });
        } else {
          var _iterator5 = _createForOfIteratorHelper(configEntry.memberofentryscopeexcludesubtree),
              _step5;

          try {
            for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
              var _value2 = _step5.value;
              configExcludeScopeList = [...configExcludeScopeList, _value2];
            }
          } catch (err) {
            _iterator5.e(err);
          } finally {
            _iterator5.f();
          }

          this.setState({
            configEntryScopeExcludeSubtreeScope: configExcludeScopeList
          });
        }

        this.props.toggleLoadingHandler();
      }).fail(_ => {
        this.setState({
          configEntryModalShow: true,
          newEntry: true,
          configDN: this.state.memberOfConfigEntry,
          configAttr: [],
          configGroupAttr: [],
          configEntryScope: [],
          configEntryScopeExcludeSubtree: [],
          configAutoAddOC: "",
          configAllBackends: false,
          configSkipNested: false
        });
        this.props.toggleLoadingHandler();
      });
    }
  }

  closeModal() {
    this.setState({
      configEntryModalShow: false
    });
  }

  cmdOperation(action) {
    var _this$state = this.state,
        configDN = _this$state.configDN,
        configAttr = _this$state.configAttr,
        configGroupAttr = _this$state.configGroupAttr,
        configEntryScope = _this$state.configEntryScope,
        configEntryScopeExcludeSubtree = _this$state.configEntryScopeExcludeSubtree,
        configAutoAddOC = _this$state.configAutoAddOC,
        configAllBackends = _this$state.configAllBackends,
        configSkipNested = _this$state.configSkipNested;

    if (configAttr.length == 0 || configGroupAttr.length == 0) {
      this.props.addNotification("warning", "Config Attribute and Group Attribute are required.");
    } else {
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "memberof", "config-entry", action, configDN, "--attr", configAttr || action == "add" ? configAttr : "delete", "--allbackends", configAllBackends ? "on" : "off", "--skipnested", configSkipNested ? "on" : "off", "--autoaddoc", configAutoAddOC || action == "add" ? configAutoAddOC : "delete"]; // Delete attributes if the user set an empty value to the field

      cmd = [...cmd, "--scope"];

      if (configEntryScope.length != 0) {
        var _iterator6 = _createForOfIteratorHelper(configEntryScope),
            _step6;

        try {
          for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
            var value = _step6.value;
            cmd = [...cmd, value];
          }
        } catch (err) {
          _iterator6.e(err);
        } finally {
          _iterator6.f();
        }
      } else {
        cmd = [...cmd, "delete"];
      }

      cmd = [...cmd, "--exclude"];

      if (configEntryScopeExcludeSubtree.length != 0) {
        var _iterator7 = _createForOfIteratorHelper(configEntryScopeExcludeSubtree),
            _step7;

        try {
          for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
            var _value3 = _step7.value;
            cmd = [...cmd, _value3];
          }
        } catch (err) {
          _iterator7.e(err);
        } finally {
          _iterator7.f();
        }
      } else {
        cmd = [...cmd, "delete"];
      }

      cmd = [...cmd, "--groupattr"];

      if (configGroupAttr.length != 0) {
        var _iterator8 = _createForOfIteratorHelper(configGroupAttr),
            _step8;

        try {
          for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
            var _value4 = _step8.value;
            cmd = [...cmd, _value4];
          }
        } catch (err) {
          _iterator8.e(err);
        } finally {
          _iterator8.f();
        }
      } else {
        cmd = [...cmd, "delete"];
      }

      this.setState({
        savingModal: true
      });
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("memberOfOperation", "Do the ".concat(action, " operation on the MemberOf Plugin"), cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        console.info("memberOfOperation", "Result", content);
        this.props.addNotification("success", "Config entry ".concat(configDN, " was successfully ").concat(action == "set" ? "edit" : "add", "ed"));
        this.props.pluginListHandler();
        this.closeModal();
        this.setState({
          savingModal: false
        });
      }).fail(err => {
        var errMsg = JSON.parse(err);
        this.props.addNotification("error", "Error during the config entry ".concat(action, " operation - ").concat(errMsg.desc));
        this.props.pluginListHandler();
        this.closeModal();
        this.setState({
          savingModal: true
        });
      });
    }
  }

  deleteConfig() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "memberof", "config-entry", "delete", this.state.configDN];
    this.setState({
      modalSpinning: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("deleteConfig", "Delete the MemberOf Plugin config entry", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("deleteConfig", "Result", content);
      this.props.addNotification("success", "Config entry ".concat(this.state.configDN, " was successfully deleted"));
      this.props.pluginListHandler();
      this.closeModal();
      this.setState({
        modalSpinning: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error during the config entry removal operation - ".concat(errMsg.desc));
      this.props.pluginListHandler();
      this.closeModal();
      this.setState({
        modalSpinning: false
      });
    });
  }

  addConfig() {
    this.cmdOperation("add");
  }

  editConfig() {
    this.cmdOperation("set");
  }

  updateFields() {
    var memberOfGroupAttrObjectList = [];
    var memberOfEntryScopeList = [];
    var getSchemamemberOfExcludeScopeList = [];

    if (this.props.rows.length > 0) {
      var pluginRow = this.props.rows.find(row => row.cn[0] === "MemberOf Plugin");
      this.setState({
        memberOfAttr: pluginRow.memberofattr === undefined ? "" : pluginRow.memberofattr[0],
        memberOfAutoAddOC: pluginRow.memberofautoaddoc === undefined ? "" : pluginRow.memberofautoaddoc[0],
        memberOfAllBackends: !(pluginRow.memberofallbackends === undefined || pluginRow.memberofallbackends[0] == "off"),
        memberOfSkipNested: !(pluginRow.memberofskipnested === undefined || pluginRow.memberofskipnested[0] == "off"),
        memberOfConfigEntry: pluginRow["nsslapd-pluginConfigArea"] === undefined ? "" : pluginRow["nsslapd-pluginConfigArea"][0],
        _memberOfAttr: pluginRow.memberofattr === undefined ? "" : pluginRow.memberofattr[0],
        _memberOfAutoAddOC: pluginRow.memberofautoaddoc === undefined ? "" : pluginRow.memberofautoaddoc[0],
        _memberOfAllBackends: !(pluginRow.memberofallbackends === undefined || pluginRow.memberofallbackends[0] == "off"),
        _memberOfSkipNested: !(pluginRow.memberofskipnested === undefined || pluginRow.memberofskipnested[0] == "off"),
        _memberOfConfigEntry: pluginRow["nsslapd-pluginConfigArea"] === undefined ? "" : pluginRow["nsslapd-pluginConfigArea"][0]
      });

      if (pluginRow.memberofgroupattr === undefined) {
        this.setState({
          memberOfGroupAttr: [],
          _memberOfGroupAttr: []
        });
      } else {
        var _iterator9 = _createForOfIteratorHelper(pluginRow.memberofgroupattr),
            _step9;

        try {
          for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
            var value = _step9.value;
            memberOfGroupAttrObjectList = [...memberOfGroupAttrObjectList, value];
          }
        } catch (err) {
          _iterator9.e(err);
        } finally {
          _iterator9.f();
        }

        this.setState({
          memberOfGroupAttr: memberOfGroupAttrObjectList,
          _memberOfGroupAttr: [...memberOfGroupAttrObjectList]
        });
      }

      if (pluginRow.memberofentryscope === undefined) {
        this.setState({
          memberOfEntryScope: [],
          _memberOfEntryScope: []
        });
      } else {
        var _iterator10 = _createForOfIteratorHelper(pluginRow.memberofentryscope),
            _step10;

        try {
          for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
            var _value5 = _step10.value;
            memberOfEntryScopeList = [...memberOfEntryScopeList, _value5];
          }
        } catch (err) {
          _iterator10.e(err);
        } finally {
          _iterator10.f();
        }

        this.setState({
          memberOfEntryScope: memberOfEntryScopeList,
          _memberOfEntryScope: [...memberOfEntryScopeList]
        });
      }

      if (pluginRow.memberofentryscopeexcludesubtree === undefined) {
        this.setState({
          memberOfEntryScopeExcludeSubtree: [],
          _memberOfEntryScopeExcludeSubtree: []
        });
      } else {
        var _iterator11 = _createForOfIteratorHelper(pluginRow.memberofentryscopeexcludesubtree),
            _step11;

        try {
          for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
            var _value6 = _step11.value;
            getSchemamemberOfExcludeScopeList = [...getSchemamemberOfExcludeScopeList, _value6];
          }
        } catch (err) {
          _iterator11.e(err);
        } finally {
          _iterator11.f();
        }

        this.setState({
          memberOfEntryScopeExcludeSubtree: getSchemamemberOfExcludeScopeList,
          _memberOfEntryScopeExcludeSubtree: [...getSchemamemberOfExcludeScopeList]
        });
      }
    }

    this.setState({
      firstLoad: false
    });
  }

  saveConfig() {
    var _this$state2 = this.state,
        memberOfAttr = _this$state2.memberOfAttr,
        memberOfGroupAttr = _this$state2.memberOfGroupAttr,
        memberOfEntryScope = _this$state2.memberOfEntryScope,
        memberOfEntryScopeExcludeSubtree = _this$state2.memberOfEntryScopeExcludeSubtree,
        memberOfAutoAddOC = _this$state2.memberOfAutoAddOC,
        memberOfAllBackends = _this$state2.memberOfAllBackends,
        memberOfSkipNested = _this$state2.memberOfSkipNested,
        memberOfConfigEntry = _this$state2.memberOfConfigEntry;
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "memberof", "set", "--attr", memberOfAttr || "delete", "--config-entry", memberOfConfigEntry || "delete", "--allbackends", memberOfAllBackends ? "on" : "off", "--skipnested", memberOfSkipNested ? "on" : "off", "--autoaddoc", memberOfAutoAddOC || "delete"]; // Delete attributes if the user set an empty value to the field

    cmd = [...cmd, "--scope"];

    if (memberOfEntryScope.length != 0) {
      var _iterator12 = _createForOfIteratorHelper(memberOfEntryScope),
          _step12;

      try {
        for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
          var value = _step12.value;
          cmd = [...cmd, value];
        }
      } catch (err) {
        _iterator12.e(err);
      } finally {
        _iterator12.f();
      }
    } else {
      cmd = [...cmd, "delete"];
    }

    cmd = [...cmd, "--exclude"];

    if (memberOfEntryScopeExcludeSubtree.length != 0) {
      var _iterator13 = _createForOfIteratorHelper(memberOfEntryScopeExcludeSubtree),
          _step13;

      try {
        for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {
          var _value7 = _step13.value;
          cmd = [...cmd, _value7];
        }
      } catch (err) {
        _iterator13.e(err);
      } finally {
        _iterator13.f();
      }
    } else {
      cmd = [...cmd, "delete"];
    }

    cmd = [...cmd, "--groupattr"];

    if (memberOfGroupAttr.length != 0) {
      var _iterator14 = _createForOfIteratorHelper(memberOfGroupAttr),
          _step14;

      try {
        for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {
          var _value8 = _step14.value;
          cmd = [...cmd, _value8];
        }
      } catch (err) {
        _iterator14.e(err);
      } finally {
        _iterator14.f();
      }
    } else {
      cmd = [...cmd, "delete"];
    }

    this.setState({
      saving: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("saveConfig", "Save MemberOf Plugin", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.addNotification("success", "Successfully updated MemberOf Plugin");
      this.setState({
        saving: false
      });
      this.props.pluginListHandler();
    }).fail(err => {
      var errMsg = JSON.parse(err);

      if ('info' in errMsg) {
        errMsg = errMsg.desc + " " + errMsg.info;
      } else {
        errMsg = errMsg.desc;
      }

      this.props.addNotification("error", "Error during update - ".concat(errMsg));
      this.setState({
        saving: false
      });
      this.props.pluginListHandler();
    });
  }

  render() {
    var _this$state3 = this.state,
        memberOfAttr = _this$state3.memberOfAttr,
        memberOfGroupAttr = _this$state3.memberOfGroupAttr,
        memberOfEntryScope = _this$state3.memberOfEntryScope,
        memberOfEntryScopeExcludeSubtree = _this$state3.memberOfEntryScopeExcludeSubtree,
        memberOfAutoAddOC = _this$state3.memberOfAutoAddOC,
        memberOfAllBackends = _this$state3.memberOfAllBackends,
        memberOfSkipNested = _this$state3.memberOfSkipNested,
        memberOfConfigEntry = _this$state3.memberOfConfigEntry,
        configDN = _this$state3.configDN,
        configEntryModalShow = _this$state3.configEntryModalShow,
        configAttr = _this$state3.configAttr,
        configGroupAttr = _this$state3.configGroupAttr,
        configEntryScope = _this$state3.configEntryScope,
        configEntryScopeExcludeSubtree = _this$state3.configEntryScopeExcludeSubtree,
        configAutoAddOC = _this$state3.configAutoAddOC,
        configAllBackends = _this$state3.configAllBackends,
        configSkipNested = _this$state3.configSkipNested,
        newEntry = _this$state3.newEntry,
        fixupModalShow = _this$state3.fixupModalShow,
        fixupDN = _this$state3.fixupDN,
        fixupFilter = _this$state3.fixupFilter,
        error = _this$state3.error,
        errorModal = _this$state3.errorModal,
        saving = _this$state3.saving,
        savingModal = _this$state3.savingModal,
        saveBtnDisabled = _this$state3.saveBtnDisabled,
        saveBtnDisabledModal = _this$state3.saveBtnDisabledModal,
        isSubtreeScopeOpen = _this$state3.isSubtreeScopeOpen,
        isExcludeScopeOpen = _this$state3.isExcludeScopeOpen,
        isConfigExcludeScopeOpen = _this$state3.isConfigExcludeScopeOpen,
        isConfigSubtreeScopeOpen = _this$state3.isConfigSubtreeScopeOpen;
    var saveBtnName = "Save Config";
    var extraPrimaryProps = {};

    if (saving) {
      saveBtnName = "Saving Config ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    var modalButtons = [];

    if (!newEntry) {
      modalButtons = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, {
        key: "del",
        variant: "primary",
        onClick: this.showConfirmDelete
      }, "Delete Config"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, _extends({
        key: "save",
        variant: "primary",
        onClick: this.editConfig,
        isDisabled: saveBtnDisabledModal,
        isLoading: savingModal,
        spinnerAriaValueText: savingModal ? "Saving" : undefined
      }, extraPrimaryProps), savingModal ? "Saving ..." : "Save Config"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.closeModal
      }, "Cancel")];
    } else {
      modalButtons = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, _extends({
        key: "add",
        variant: "primary",
        onClick: this.addConfig,
        isDisabled: saveBtnDisabledModal,
        isLoading: savingModal,
        spinnerAriaValueText: savingModal ? "Saving" : undefined
      }, extraPrimaryProps), savingModal ? "Adding ..." : "Add Config"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.closeModal
      }, "Cancel")];
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ModalVariant.small,
      "aria-labelledby": "ds-modal",
      title: "MemberOf Plugin FixupTask",
      isOpen: fixupModalShow,
      onClose: this.toggleFixupModal,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, {
        key: "confirm",
        variant: "primary",
        onClick: this.runFixup,
        isDisabled: !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(fixupDN)
      }, "Run"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.toggleFixupModal
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Text, {
      className: "ds-margin-top",
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextVariants.h4
    }, "This task only needs to be run after enabling the plugin for the first time, or if the plugin configuration has changed in a way that will impact the group memberships.")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      className: "ds-margin-top",
      title: "Base DN that contains entries to fix up."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Subtree DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextInput, {
      value: fixupDN,
      type: "text",
      id: "fixupDN",
      "aria-describedby": "horizontal-form-name-helper",
      name: "fixupDN",
      onChange: (str, e) => {
        this.handleFieldChange(e);
      },
      validated: !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(fixupDN) ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.FormHelperText, {
      isError: true,
      isHidden: (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(fixupDN)
    }, "Value must be a valid DN"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      className: "ds-margin-bottom",
      title: "Optional. Filter for finding entries to fix up. For example:  (uid=*).  If omitted, all entries with objectclass 'inetuser', 'inetadmin', or 'nsmemberof' under the specified subtree DN will have their memberOf attribute regenerated."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Search Filter"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextInput, {
      value: fixupFilter,
      type: "text",
      id: "fixupFilter",
      "aria-describedby": "horizontal-form-name-helper",
      name: "fixupFilter",
      onChange: (str, e) => {
        this.handleFieldChange(e);
      }
    }))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ModalVariant.medium,
      "aria-labelledby": "ds-modal",
      title: "Manage MemberOf Plugin Shared Config Entry",
      isOpen: configEntryModalShow,
      onClose: this.closeModal,
      actions: modalButtons
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      className: "ds-margin-top",
      title: "The config entry full DN"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Config DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextInput, {
      value: configDN,
      type: "text",
      id: "configDN",
      "aria-describedby": "horizontal-form-name-helper",
      name: "configDN",
      onChange: (str, e) => {
        this.handleModalChange(e);
      },
      validated: errorModal.configDN ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions["default"],
      isDisabled: newEntry
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.FormHelperText, {
      isError: true,
      isHidden: !errorModal.configDN
    }, "Value must be a valid DN"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      title: "Specifies the attribute in the user entry for the Directory Server to manage to reflect group membership (memberOfAttr)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Membership Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.SelectVariant.typeahead,
      typeAheadAriaLabel: "Type a member attribute",
      onToggle: this.onConfigAttrToggle,
      onSelect: this.onConfigAttrSelect,
      onClear: this.onConfigAttrClear,
      selections: configAttr,
      isOpen: this.state.isConfigAttrOpen,
      "aria-labelledby": "typeAhead-config-attr",
      placeholderText: "Type a member attribute...",
      noResultsFoundText: "There are no matching entries",
      validated: errorModal.configAttr ? "error" : "default"
    }, ["memberOf"].map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.SelectOption, {
      key: index,
      value: attr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      className: "ds-margin-top",
      title: "Specifies the attribute in the group entry to use to identify the DNs of group members (memberOfGroupAttr)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Group Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type a member group attribute",
      onToggle: this.onConfigGroupAttrToggle,
      onSelect: this.onConfigGroupAttrSelect,
      onClear: this.onConfigGroupAttrClear,
      selections: configGroupAttr,
      isOpen: this.state.isConfigGroupAttrOpen,
      "aria-labelledby": "typeAhead-config-group-attr",
      placeholderText: "Type a member group attribute...",
      noResultsFoundText: "There are no matching entries",
      validated: errorModal.configGroupAttr ? "error" : "default"
    }, ["member", "memberCertificate", "uniqueMember"].map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.SelectOption, {
      key: index,
      value: attr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      className: "ds-margin-top",
      title: "Specifies backends or multiple-nested suffixes for the MemberOf plug-in to work on (memberOfEntryScope)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Subtree Scope"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type a subtree DN",
      onToggle: this.onConfigScopeToggle,
      onSelect: this.onConfigScopeSelect,
      onClear: this.onConfigScopeClear,
      selections: configEntryScope,
      isOpen: isConfigSubtreeScopeOpen,
      "aria-labelledby": "typeAhead-subtrees",
      placeholderText: "Type a subtree DN...",
      noResultsFoundText: "There are no matching entries",
      isCreatable: true,
      onCreateOption: this.onConfigCreateOption,
      validated: errorModal.configEntryScope ? "error" : "default"
    }, [""].map((dn, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.SelectOption, {
      key: index,
      value: dn
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.FormHelperText, {
      isError: true,
      isHidden: !errorModal.configEntryScope
    }, "Values must be valid DN's")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-left-margin",
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "configAllBackends",
      isChecked: configAllBackends,
      onChange: (checked, e) => {
        this.handleModalChange(e);
      },
      title: "Specifies whether to search the local suffix for user entries on all available suffixes (memberOfAllBackends)",
      label: "All Backends"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      title: "Specifies backends or multiple-nested suffixes for the MemberOf plug-in to exclude (memberOfEntryScopeExcludeSubtree)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Exclude Subtree"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type a subtree DN",
      onToggle: this.onConfigExcludeScopeToggle,
      onSelect: this.onConfigExcludeScopeSelect,
      onClear: this.onConfigExcludeScopeClear,
      selections: configEntryScopeExcludeSubtree,
      isOpen: isConfigExcludeScopeOpen,
      "aria-labelledby": "typeAhead-subtrees",
      placeholderText: "Type a subtree DN...",
      noResultsFoundText: "There are no matching entries",
      isCreatable: true,
      onCreateOption: this.onConfigExcludeCreateOption,
      validated: errorModal.configEntryScopeExcludeSubtree ? "error" : "default"
    }, [""].map((dn, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.SelectOption, {
      key: index,
      value: dn
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.FormHelperText, {
      isError: true,
      isHidden: !errorModal.configEntryScopeExcludeSubtree
    }, "Values must be valid DN's")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-left-margin",
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "configSkipNested",
      isChecked: configSkipNested,
      onChange: (checked, e) => {
        this.handleModalChange(e);
      },
      title: "Specifies wherher to skip nested groups or not (memberOfSkipNested)",
      label: "Skip Nested"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      title: "If an entry does not have an object class that allows the memberOf attribute then the memberOf plugin will automatically add the object class listed in the memberOfAutoAddOC parameter"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Auto Add OC"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.FormSelect, {
      id: "configAutoAddOC",
      value: configAutoAddOC,
      onChange: (value, event) => {
        this.handleFieldChange(event);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.FormSelectOption, {
      key: "no_setting2",
      value: "",
      label: "-"
    }), this.props.objectClasses.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.FormSelectOption, {
      key: attr,
      value: attr,
      label: attr
    }))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], {
      rows: this.props.rows,
      serverId: this.props.serverId,
      cn: "MemberOf Plugin",
      pluginName: "MemberOf",
      cmdName: "memberof",
      pluginListHandler: this.props.pluginListHandler,
      addNotification: this.props.addNotification,
      toggleLoadingHandler: this.props.toggleLoadingHandler
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      title: "Specifies the attribute in the user entry for the Directory Server to manage to reflect group membership (memberOfAttr)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Membership Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.SelectVariant.typeahead,
      typeAheadAriaLabel: "Type a member attribute",
      onToggle: this.onMemberOfAttrToggle,
      onSelect: this.onMemberOfAttrSelect,
      onClear: this.onMemberOfAttrClear,
      selections: memberOfAttr,
      isOpen: this.state.isMemberOfAttrOpen,
      "aria-labelledby": "typeAhead-memberof-attr",
      placeholderText: "Type a member attribute...",
      noResultsFoundText: "There are no matching entries",
      validated: error.memberOfAttr ? "error" : "default"
    }, ["memberOf"].map(attr => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.SelectOption, {
      key: attr,
      value: attr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      className: "ds-margin-top",
      title: "Specifies the attribute in the group entry to use to identify the DNs of group members (memberOfGroupAttr)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Group Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type a member group attribute",
      onToggle: this.onMemberOfGroupAttrToggle,
      onSelect: this.onMemberOfGroupAttrSelect,
      onClear: this.onMemberOfGroupAttrClear,
      selections: memberOfGroupAttr,
      isOpen: this.state.isMemberOfGroupAttrOpen,
      "aria-labelledby": "typeAhead-memberof-group-attr",
      placeholderText: "Type a member group attribute...",
      noResultsFoundText: "There are no matching entries",
      validated: error.memberOfGroupAttr ? "error" : "default"
    }, ["member", "memberCertificate", "uniqueMember"].map(attr => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.SelectOption, {
      key: attr,
      value: attr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      className: "ds-margin-top",
      title: "Specifies backends or multiple-nested suffixes for the MemberOf plug-in to work on (memberOfEntryScope)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Subtree Scope"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type a subtree DN",
      onToggle: this.onSubtreeScopeToggle,
      onSelect: this.onSubtreeScopeSelect,
      onClear: this.onSubtreeScopeClear,
      selections: memberOfEntryScope,
      isOpen: isSubtreeScopeOpen,
      "aria-labelledby": "typeAhead-subtrees",
      placeholderText: "Type a subtree DN...",
      noResultsFoundText: "There are no matching entries",
      isCreatable: true,
      onCreateOption: this.onSubtreeScopeCreateOption,
      validated: error.memberOfEntryScope ? "error" : "default"
    }, [""].map((dn, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.SelectOption, {
      key: index,
      value: dn
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.FormHelperText, {
      isError: true,
      isHidden: !error.memberOfEntryScope
    }, "A subtree is required, and values must be valid DN's")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-left-margin",
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "memberOfAllBackends",
      isChecked: memberOfAllBackends,
      onChange: (checked, e) => {
        this.handleFieldChange(e);
      },
      title: "Specifies whether to search the local suffix for user entries on all available suffixes (memberOfAllBackends)",
      label: "All Backends"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      title: "Specifies backends or multiple-nested suffixes for the MemberOf plug-in to exclude (memberOfEntryScopeExcludeSubtree)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Exclude Subtree"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type a subtree DN",
      onToggle: this.onExcludeScopeToggle,
      onSelect: this.onExcludeScopeSelect,
      onClear: this.onExcludeScopeClear,
      selections: memberOfEntryScopeExcludeSubtree,
      isOpen: isExcludeScopeOpen,
      "aria-labelledby": "typeAhead-subtrees",
      placeholderText: "Type a subtree DN...",
      noResultsFoundText: "There are no matching entries",
      isCreatable: true,
      onCreateOption: this.onExcludeCreateOption,
      validated: error.memberOfEntryScopeExcludeSubtree ? "error" : "default"
    }, [""].map((dn, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.SelectOption, {
      key: index,
      value: dn
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.FormHelperText, {
      isError: true,
      isHidden: !error.memberOfEntryScopeExcludeSubtree
    }, "Values must be valid DN's")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-left-margin",
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "memberOfSkipNested",
      isChecked: memberOfSkipNested,
      onChange: (checked, e) => {
        this.handleFieldChange(e);
      },
      title: "Specifies wherher to skip nested groups or not (memberOfSkipNested)",
      label: "Skip Nested"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      title: "The value to set as nsslapd-pluginConfigArea"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Shared Config Entry"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextInput, {
      value: memberOfConfigEntry,
      type: "text",
      id: "memberOfConfigEntry",
      "aria-describedby": "horizontal-form-name-helper",
      name: "memberOfConfigEntry",
      onChange: (str, e) => {
        this.handleFieldChange(e);
      },
      validated: error.memberOfConfigEntry ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.FormHelperText, {
      isError: true,
      isHidden: !error.memberOfConfigEntry
    }, "Value must be a valid DN")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-left-margin",
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, {
      variant: "primary",
      isDisabled: memberOfConfigEntry == "" || !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(memberOfConfigEntry),
      onClick: this.openModal
    }, "Manage"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      title: "If an entry does not have an object class that allows the memberOf attribute then the memberOf plugin will automatically add the object class listed in the memberOfAutoAddOC parameter"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Auto Add OC"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.FormSelect, {
      id: "memberOfAutoAddOC",
      value: memberOfAutoAddOC,
      onChange: (value, event) => {
        this.handleFieldChange(event);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.FormSelectOption, {
      key: "no_setting",
      value: "",
      label: "-"
    }), this.props.objectClasses.map(attr => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.FormSelectOption, {
      key: attr,
      value: attr,
      label: attr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      title: "The fixup task will add the memberOf attribute to entries that are missing it.  This is typically only run once after enabling or changing the plugin."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label ds-margin-top",
      span: 3
    }, "MemberOf Fixup Task", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_21__.WrenchIcon, {
      className: "ds-left-margin"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, {
      className: "ds-margin-top",
      variant: "secondary",
      onClick: this.toggleFixupModal
    }, "Run Task")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, _extends({
      className: "ds-margin-top-lg",
      key: "at",
      isLoading: saving,
      spinnerAriaValueText: saving ? "Loading" : undefined,
      variant: "primary",
      onClick: this.saveConfig
    }, extraPrimaryProps, {
      isDisabled: saveBtnDisabled
    }), saveBtnName)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__.DoubleConfirmModal, {
      showModal: this.state.showConfirmDelete,
      closeHandler: this.closeConfirmDelete,
      handleChange: this.handleChange,
      actionHandler: this.deleteConfig,
      spinning: this.state.modalSpinning,
      item: this.state.configDN,
      checked: this.state.modalChecked,
      mTitle: "Delete MemberOf Config Entry",
      mMsg: "Are you sure you want to delete this config entry?",
      mSpinningMsg: "Deleting ...",
      mBtnName: "Delete"
    }));
  }

}

MemberOf.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().array),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().string),
  pluginListHandler: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().func),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().func),
  objectClasses: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().array),
  toggleLoadingHandler: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().func)
};
MemberOf.defaultProps = {
  rows: [],
  serverId: "",
  objectClasses: []
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MemberOf);

/***/ }),

/***/ "./src/lib/plugins/passthroughAuthentication.jsx":
/*!*******************************************************!*\
  !*** ./src/lib/plugins/passthroughAuthentication.jsx ***!
  \*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/NumberInput/NumberInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js");
/* harmony import */ var _pluginTables_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./pluginTables.jsx */ "./src/lib/plugins/pluginTables.jsx");
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_23__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }










class PassthroughAuthentication extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  componentDidMount() {
    this.loadPAMConfigs();
    this.loadURLs();
  }

  constructor(props) {
    super(props);
    this.state = {
      firstLoad: true,
      pamConfigRows: [],
      urlRows: [],
      tableKey: 1,
      activeTabKey: 0,
      error: {},
      modalSpinning: false,
      modalChecked: false,
      pamConfigName: "",
      pamExcludeSuffix: [],
      pamIncludeSuffix: [],
      pamMissingSuffix: "",
      pamFilter: "",
      pamIDAttr: "",
      pamIDMapMethod: "RDN",
      pamFallback: false,
      pamSecure: false,
      pamService: "ldapserver",
      _pamConfigName: "",
      _pamExcludeSuffix: [],
      _pamIncludeSuffix: [],
      _pamMissingSuffix: "",
      _pamFilter: "",
      _pamIDAttr: "",
      _pamIDMapMethod: "RDN",
      _pamFallback: false,
      _pamSecure: false,
      _pamService: "ldapserver",
      isExcludeOpen: false,
      excludeOptions: [],
      isIncludeOpen: false,
      includeOptions: [],
      showConfirmDeleteConfig: false,
      saveBtnDisabledPAM: true,
      savingPAM: false,
      oldURL: "",
      urlConnType: "ldaps",
      urlAuthDS: "",
      urlSubtree: "",
      urlMaxConns: 3,
      urlMaxOps: 5,
      urlTimeout: 300,
      urlLDVer: "3",
      urlConnLifeTime: 300,
      urlStartTLS: false,
      _urlConnType: "ldaps",
      _urlAuthDS: "",
      _urlSubtree: "",
      _urlMaxConns: 3,
      _urlMaxOps: 5,
      _urlTimeout: 300,
      _urlLDVer: "3",
      _urlConnLifeTime: 300,
      _urlStartTLS: false,
      showConfirmDeleteURL: false,
      saveBtnDisabledPassthru: true,
      savingPassthru: false,
      newPAMConfigEntry: false,
      newURLEntry: false,
      pamConfigEntryModalShow: false,
      urlEntryModalShow: false
    }; // Toggle currently active tab

    this.handleNavSelect = (event, tabIndex) => {
      this.setState({
        activeTabKey: tabIndex
      });
    };

    this.onExcludeToggle = isExcludeOpen => {
      this.setState({
        isExcludeOpen
      });
    };

    this.clearExcludeSelection = () => {
      this.setState({
        pamExcludeSuffix: [],
        isExcludeOpen: false
      }, () => {
        this.validatePAM();
      });
    };

    this.onExcludeSelect = (event, selection) => {
      if (this.state.pamExcludeSuffix.includes(selection)) {
        this.setState(prevState => ({
          pamExcludeSuffix: prevState.pamExcludeSuffix.filter(item => item !== selection),
          isExcludeOpen: false
        }), () => {
          this.validatePAM();
        });
      } else {
        this.setState(prevState => ({
          pamExcludeSuffix: [...prevState.pamExcludeSuffix, selection],
          isExcludeOpen: false
        }), () => {
          this.validatePAM();
        });
      }
    };

    this.onCreateExcludeOption = newValue => {
      if (!this.state.excludeOptions.includes(newValue)) {
        this.setState({
          excludeOptions: [...this.state.excludeOptions, newValue],
          isExcludeOpen: false
        }, () => {
          this.validatePaAM();
        });
      }
    };

    this.onIncludeToggle = isIncludeOpen => {
      this.setState({
        isIncludeOpen
      });
    };

    this.clearIncludeSelection = () => {
      this.setState({
        pamIncludeSuffix: [],
        isIncludeOpen: false
      }, () => {
        this.validatePAM();
      });
    };

    this.onIncludeSelect = (event, selection) => {
      if (this.state.pamIncludeSuffix.includes(selection)) {
        this.setState(prevState => ({
          pamIncludeSuffix: prevState.pamIncludeSuffix.filter(item => item !== selection),
          isIncludeOpen: false
        }));
      } else {
        this.setState(prevState => ({
          pamIncludeSuffix: [...prevState.pamIncludeSuffix, selection],
          isIncludeOpen: false
        }));
      }
    };

    this.onCreateIncludeOption = newValue => {
      if (!this.state.includeOptions.includes(newValue)) {
        this.setState({
          includeOptions: [...this.state.includeOptions, newValue],
          isIncludeOpen: false
        });
      }
    };

    this.maxValue = 20000000;

    this.onMinusConfig = id => {
      this.setState({
        [id]: Number(this.state[id]) - 1
      }, () => {
        this.validatePassthru();
      });
    };

    this.onConfigChange = (event, id, min) => {
      var newValue = isNaN(event.target.value) ? 0 : Number(event.target.value);
      this.setState({
        [id]: newValue > this.maxValue ? this.maxValue : newValue < min ? min : newValue
      }, () => {
        this.validatePassthru();
      });
    };

    this.onPlusConfig = id => {
      this.setState({
        [id]: Number(this.state[id]) + 1
      }, () => {
        this.validatePassthru();
      });
    }; // This vastly improves rendering performance during handleChange()


    this.attrRows = this.props.attributes.map(attr => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: attr,
      value: attr,
      label: attr
    }));
    this.handlePassthruChange = this.handlePassthruChange.bind(this);
    this.handlePAMChange = this.handlePAMChange.bind(this);
    this.handleModalChange = this.handleModalChange.bind(this);
    this.validatePassthru = this.validatePassthru.bind(this);
    this.validatePAM = this.validatePAM.bind(this);
    this.loadPAMConfigs = this.loadPAMConfigs.bind(this);
    this.loadURLs = this.loadURLs.bind(this);
    this.openPAMModal = this.openPAMModal.bind(this);
    this.closePAMModal = this.closePAMModal.bind(this);
    this.showEditPAMConfigModal = this.showEditPAMConfigModal.bind(this);
    this.showAddPAMConfigModal = this.showAddPAMConfigModal.bind(this);
    this.cmdPAMOperation = this.cmdPAMOperation.bind(this);
    this.deletePAMConfig = this.deletePAMConfig.bind(this);
    this.addPAMConfig = this.addPAMConfig.bind(this);
    this.editPAMConfig = this.editPAMConfig.bind(this);
    this.openURLModal = this.openURLModal.bind(this);
    this.closeURLModal = this.closeURLModal.bind(this);
    this.showEditURLModal = this.showEditURLModal.bind(this);
    this.showAddURLModal = this.showAddURLModal.bind(this);
    this.cmdURLOperation = this.cmdURLOperation.bind(this);
    this.deleteURL = this.deleteURL.bind(this);
    this.addURL = this.addURL.bind(this);
    this.editURL = this.editURL.bind(this);
    this.showConfirmDeleteConfig = this.showConfirmDeleteConfig.bind(this);
    this.showConfirmDeleteURL = this.showConfirmDeleteURL.bind(this);
    this.closeConfirmDeleteConfig = this.closeConfirmDeleteConfig.bind(this);
    this.closeConfirmDeleteURL = this.closeConfirmDeleteURL.bind(this);
  }

  validatePassthru() {
    var errObj = {};
    var all_good = true;
    var reqAttrs = ['urlAuthDS', 'urlSubtree'];
    var dnAttrs = ['urlSubtree']; // Check we have our required attributes set

    for (var _i = 0, _reqAttrs = reqAttrs; _i < _reqAttrs.length; _i++) {
      var attr = _reqAttrs[_i];

      if (this.state[attr] == "") {
        errObj[attr] = true;
        all_good = false;
        break;
      }
    } // Check the DN's of our lists


    for (var _i2 = 0, _dnAttrs = dnAttrs; _i2 < _dnAttrs.length; _i2++) {
      var _attr = _dnAttrs[_i2];

      if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(this.state[_attr])) {
        errObj[_attr] = true;
        all_good = false;
        break;
      }
    }

    if (all_good) {
      // Check for value differences to see if the save btn should be enabled
      all_good = false;
      var configAttrs = ['urlSubtree', 'urlConnType', 'urlAuthDS', 'urlMaxConns', 'urlMaxOps', 'urlTimeout', 'urlLDVer', 'urlConnLifeTime', 'urlStartTLS'];

      for (var _i3 = 0, _configAttrs = configAttrs; _i3 < _configAttrs.length; _i3++) {
        var check_attr = _configAttrs[_i3];

        if (this.state[check_attr] != this.state['_' + check_attr]) {
          all_good = true;
          break;
        }
      }
    }

    this.setState({
      saveBtnDisabledPassthru: !all_good,
      error: errObj
    });
  }

  validatePAM() {
    var errObj = {};
    var all_good = true;
    var reqAttrs = ['pamConfigName', 'pamIDAttr'];
    var dnAttrLists = ['pamExcludeSuffix', 'pamExcludeSuffix']; // Check we have our required attributes set

    for (var _i4 = 0, _reqAttrs2 = reqAttrs; _i4 < _reqAttrs2.length; _i4++) {
      var attr = _reqAttrs2[_i4];

      if (this.state[attr] == "") {
        errObj[attr] = true;
        all_good = false;
        break;
      }
    } // Check the DN's of our lists


    for (var _i5 = 0, _dnAttrLists = dnAttrLists; _i5 < _dnAttrLists.length; _i5++) {
      var attrList = _dnAttrLists[_i5];

      var _iterator = _createForOfIteratorHelper(this.state[attrList]),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var dn = _step.value;

          if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.valid_dn)(dn)) {
            errObj[attrList] = true;
            all_good = false;
            break;
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }
    }

    if (all_good) {
      // Check for value differences to see if the save btn should be enabled
      all_good = false;
      var attrLists = ['pamExcludeSuffix', 'pamIncludeSuffix'];

      for (var _i6 = 0, _attrLists = attrLists; _i6 < _attrLists.length; _i6++) {
        var check_attr = _attrLists[_i6];

        if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.listsEqual)(this.state[check_attr], this.state['_' + check_attr])) {
          all_good = true;
          break;
        }
      }

      var configAttrs = ['pamConfigName', 'pamFilter', 'pamMissingSuffix', 'pamIDMapMethod', 'pamIDAttr', 'pamFallback', 'pamSecure', 'pamService'];

      for (var _i7 = 0, _configAttrs2 = configAttrs; _i7 < _configAttrs2.length; _i7++) {
        var _check_attr = _configAttrs2[_i7];

        if (this.state[_check_attr] != this.state['_' + _check_attr]) {
          all_good = true;
          break;
        }
      }
    }

    this.setState({
      saveBtnDisabledPAM: !all_good,
      error: errObj
    });
  }

  handlePassthruChange(e) {
    // Pass thru
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [e.target.id]: value
    }, () => {
      this.validatePassthru();
    });
  }

  handlePAMChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [e.target.id]: value
    }, () => {
      this.validatePAM();
    });
  }

  handleModalChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [e.target.id]: value
    });
  }

  showConfirmDeleteConfig(name) {
    this.setState({
      showConfirmDeleteConfig: true,
      modalChecked: false,
      modalSpinning: false,
      deleteName: name
    });
  }

  closeConfirmDeleteConfig() {
    this.setState({
      showConfirmDeleteConfig: false,
      modalChecked: false,
      modalSpinning: false,
      deleteName: ""
    });
  }

  showConfirmDeleteURL(name) {
    this.setState({
      showConfirmDeleteURL: true,
      modalChecked: false,
      modalSpinning: false,
      deleteName: name
    });
  }

  closeConfirmDeleteURL() {
    this.setState({
      showConfirmDeleteURL: false,
      modalChecked: false,
      modalSpinning: false,
      deleteName: ""
    });
  }

  loadPAMConfigs() {
    this.setState({
      firstLoad: false
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "pass-through-auth", "list", "pam-configs"];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("loadPAMConfigs", "Get PAM Passthough Authentication Plugin pamConfigs", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var myObject = JSON.parse(content);
      var tableKey = this.state.tableKey + 1;
      this.setState({
        pamConfigRows: myObject.items.map(item => item.attrs),
        tableKey: tableKey
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);

      if (err != 0) {
        console.log("loadPAMConfigs failed", errMsg.desc);
      }
    });
  }

  loadURLs() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "pass-through-auth", "list", "urls"];
    this.props.toggleLoadingHandler();
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("loadURLs", "Get PAM Passthough Authentication Plugin pamConfigs", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var myObject = JSON.parse(content);
      var tableKey = this.state.tableKey + 1;
      this.setState({
        urlRows: myObject.items,
        tableKey: tableKey
      });
      this.props.toggleLoadingHandler();
    }).fail(err => {
      var errMsg = JSON.parse(err);

      if (err != 0) {
        console.log("loadURLs failed", errMsg.desc);
      }

      this.props.toggleLoadingHandler();
    });
  }

  showEditPAMConfigModal(rowData) {
    this.openPAMModal(rowData);
  }

  showAddPAMConfigModal() {
    this.openPAMModal();
  }

  openPAMModal(name) {
    if (!name) {
      this.setState({
        pamConfigEntryModalShow: true,
        newPAMConfigEntry: true,
        pamConfigName: "",
        pamExcludeSuffix: [],
        pamIncludeSuffix: [],
        pamMissingSuffix: "",
        pamFilter: "",
        pamIDAttr: "",
        pamIDMapMethod: "RDN",
        pamFallback: false,
        pamSecure: false,
        pamService: "ldapserver",
        saveBtnDisabledPAM: true
      });
    } else {
      var pamExcludeSuffixList = [];
      var pamIncludeSuffixList = [];
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "pass-through-auth", "pam-config", name, "show"];
      this.props.toggleLoadingHandler();
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("openModal", "Fetch the PAM Passthough Authentication Plugin pamConfig entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        var pamConfigEntry = JSON.parse(content).attrs;
        var tableKey = this.state.tableKey + 1;

        if (pamConfigEntry.pamexcludesuffix !== undefined) {
          var _iterator2 = _createForOfIteratorHelper(pamConfigEntry.pamexcludesuffix),
              _step2;

          try {
            for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
              var value = _step2.value;
              pamExcludeSuffixList = [...pamExcludeSuffixList, value];
            }
          } catch (err) {
            _iterator2.e(err);
          } finally {
            _iterator2.f();
          }
        }

        if (pamConfigEntry.pamincludesuffix !== undefined) {
          var _iterator3 = _createForOfIteratorHelper(pamConfigEntry.pamincludesuffix),
              _step3;

          try {
            for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
              var _value = _step3.value;
              pamIncludeSuffixList = [...pamIncludeSuffixList, _value];
            }
          } catch (err) {
            _iterator3.e(err);
          } finally {
            _iterator3.f();
          }
        }

        this.setState({
          tableKey: tableKey,
          saveBtnDisabledPAM: true,
          pamConfigEntryModalShow: true,
          newPAMConfigEntry: false,
          pamExcludeSuffix: pamExcludeSuffixList,
          pamIncludeSuffix: pamIncludeSuffixList,
          pamIDAttr: pamConfigEntry.pamidattr[0],
          pamConfigName: pamConfigEntry.cn === undefined ? "" : pamConfigEntry.cn[0],
          pamMissingSuffix: pamConfigEntry.pammissingsuffix === undefined ? "" : pamConfigEntry.pammissingsuffix[0],
          pamFilter: pamConfigEntry.pamfilter === undefined ? "" : pamConfigEntry.pamfilter[0],
          pamIDMapMethod: pamConfigEntry.pamidmapmethod === undefined ? "RDN" : pamConfigEntry.pamidmapmethod[0],
          pamFallback: !(pamConfigEntry.pamfallback === undefined || pamConfigEntry.pamfallback[0] == "FALSE"),
          pamSecure: !(pamConfigEntry.pamsecure === undefined || pamConfigEntry.pamsecure[0] == "FALSE"),
          pamService: pamConfigEntry.pamservice === undefined ? "ldapserver" : pamConfigEntry.pamservice[0],
          // Backup values
          _pamExcludeSuffix: [...pamExcludeSuffixList],
          _pamIncludeSuffix: [...pamIncludeSuffixList],
          _pamIDAttr: pamConfigEntry.pamidattr[0],
          _pamConfigName: pamConfigEntry.cn === undefined ? "" : pamConfigEntry.cn[0],
          _pamMissingSuffix: pamConfigEntry.pammissingsuffix === undefined ? "" : pamConfigEntry.pammissingsuffix[0],
          _pamFilter: pamConfigEntry.pamfilter === undefined ? "" : pamConfigEntry.pamfilter[0],
          _pamIDMapMethod: pamConfigEntry.pamidmapmethod === undefined ? "ldapserver" : pamConfigEntry.pamidmapmethod[0],
          _pamFallback: !(pamConfigEntry.pamfallback === undefined || pamConfigEntry.pamfallback[0] == "FALSE"),
          _pamSecure: !(pamConfigEntry.pamsecure === undefined || pamConfigEntry.pamsecure[0] == "FALSE"),
          _pamService: pamConfigEntry.pamservice === undefined ? "ldapserver" : pamConfigEntry.pamservice[0]
        });
        this.props.toggleLoadingHandler();
      }).fail(_ => {
        this.setState({
          pamConfigEntryModalShow: true,
          newPAMConfigEntry: true,
          pamConfigName: "",
          pamExcludeSuffix: [],
          pamIncludeSuffix: [],
          pamMissingSuffix: "",
          pamFilter: "",
          pamIDAttr: "",
          pamIDMapMethod: "",
          pamFallback: false,
          pamSecure: false,
          pamService: "",
          saveBtnDisabledPAM: true
        });
        this.props.toggleLoadingHandler();
      });
    }
  }

  closePAMModal() {
    this.setState({
      pamConfigEntryModalShow: false,
      savingPAM: false
    });
  }

  deletePAMConfig() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "pass-through-auth", "pam-config", this.state.deleteName, "delete"];
    this.setState({
      modalSpinning: true
    });
    this.props.toggleLoadingHandler();
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("deletePAMConfig", "Delete the PAM Passthough Authentication Plugin pamConfig entry", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("deletePAMConfig", "Result", content);
      this.props.addNotification("success", "PAMConfig entry ".concat(this.state.deleteName, " was successfully deleted"));
      this.loadPAMConfigs();
      this.closeConfirmDeleteConfig();
      this.props.toggleLoadingHandler();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error during the pamConfig entry removal operation - ".concat(errMsg.desc));
      this.loadPAMConfigs();
      this.closeConfirmDeleteConfig();
      this.props.toggleLoadingHandler();
    });
  }

  addPAMConfig() {
    this.cmdPAMOperation("add");
  }

  editPAMConfig() {
    this.cmdPAMOperation("set");
  }

  cmdPAMOperation(action) {
    // Save table here too
    var _this$state = this.state,
        pamConfigName = _this$state.pamConfigName,
        pamExcludeSuffix = _this$state.pamExcludeSuffix,
        pamIncludeSuffix = _this$state.pamIncludeSuffix,
        pamMissingSuffix = _this$state.pamMissingSuffix,
        pamFilter = _this$state.pamFilter,
        pamIDAttr = _this$state.pamIDAttr,
        pamIDMapMethod = _this$state.pamIDMapMethod,
        pamFallback = _this$state.pamFallback,
        pamSecure = _this$state.pamSecure,
        pamService = _this$state.pamService;
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "pass-through-auth", "pam-config", pamConfigName, action, "--missing-suffix", pamMissingSuffix || action == "add" ? pamMissingSuffix : "delete", "--filter", pamFilter || action == "add" ? pamFilter : "delete", "--id_map_method", pamIDMapMethod || action == "add" ? pamIDMapMethod : "delete", "--fallback", pamFallback ? "TRUE" : "FALSE", "--secure", pamSecure ? "TRUE" : "FALSE", "--service", pamService || action == "add" ? pamService : "delete"];
    cmd = [...cmd, "--exclude-suffix"];

    if (pamExcludeSuffix.length != 0) {
      var _iterator4 = _createForOfIteratorHelper(pamExcludeSuffix),
          _step4;

      try {
        for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
          var value = _step4.value;
          cmd = [...cmd, value];
        }
      } catch (err) {
        _iterator4.e(err);
      } finally {
        _iterator4.f();
      }
    } else if (action == "add") {
      cmd = [...cmd, ""];
    } else {
      cmd = [...cmd, "delete"];
    }

    cmd = [...cmd, "--include-suffix"];

    if (pamIncludeSuffix.length != 0) {
      var _iterator5 = _createForOfIteratorHelper(pamIncludeSuffix),
          _step5;

      try {
        for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
          var _value2 = _step5.value;
          cmd = [...cmd, _value2];
        }
      } catch (err) {
        _iterator5.e(err);
      } finally {
        _iterator5.f();
      }
    } else if (action == "add") {
      cmd = [...cmd, ""];
    } else {
      cmd = [...cmd, "delete"];
    }

    cmd = [...cmd, "--id-attr"];

    if (pamIDAttr != "") {
      cmd = [...cmd, pamIDAttr];
    } else if (action == "add") {
      cmd = [...cmd, ""];
    } else {
      cmd = [...cmd, "delete"];
    }

    this.setState({
      savingPAM: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("pamPassthroughAuthOperation", "Do the ".concat(action, " operation on the PAM Passthough Authentication Plugin"), cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("pamPassthroughAuthOperation", "Result", content);
      this.props.addNotification("success", "The ".concat(action, " operation was successfully done on \"").concat(pamConfigName, "\" entry"));
      this.loadPAMConfigs();
      this.closePAMModal();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error during the pamConfig entry ".concat(action, " operation - ").concat(errMsg.desc));
      this.loadPAMConfigs();
      this.closePAMModal();
    });
  }

  showEditURLModal(rowData) {
    this.openURLModal(rowData);
  }

  showAddURLModal() {
    this.openURLModal();
  }

  openURLModal(url) {
    if (!url) {
      this.setState({
        urlEntryModalShow: true,
        newURLEntry: true,
        oldURL: "",
        urlConnType: "ldap",
        urlAuthDS: "",
        urlSubtree: "",
        urlMaxConns: "3",
        urlMaxOps: "5",
        urlTimeout: "300",
        urlLDVer: "3",
        urlConnLifeTime: "300",
        urlStartTLS: false,
        saveBtnDisabledPassthru: true
      });
    } else {
      var link = url.split(" ")[0];
      var params = url.split(" ")[1];
      this.setState({
        urlEntryModalShow: true,
        oldURL: url,
        newURLEntry: false,
        urlConnType: link.split(":")[0],
        urlAuthDS: link.split("/")[2],
        urlSubtree: link.split("/")[3],
        urlMaxConns: params.split(",")[0],
        urlMaxOps: params.split(",")[1],
        urlTimeout: params.split(",")[2],
        urlLDVer: params.split(",")[3],
        urlConnLifeTime: params.split(",")[4],
        urlStartTLS: !(params.split(",")[5] == "0"),
        saveBtnDisabledPassthru: true
      });
    }
  }

  closeURLModal() {
    this.setState({
      urlEntryModalShow: false,
      savingPassthru: false
    });
  }

  deleteURL() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "pass-through-auth", "url", "delete", this.state.deleteName];
    this.setState({
      modalSpinning: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("deleteURL", "Delete the Passthough Authentication Plugin URL entry", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("deleteURL", "Result", content);
      this.props.addNotification("success", "URL ".concat(this.state.deleteName, " was successfully deleted"));
      this.loadURLs();
      this.closeConfirmDeleteURL();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error during the URL removal operation - ".concat(errMsg.desc));
      this.loadURLs();
      this.closeConfirmDeleteURL();
    });
  }

  addURL() {
    this.cmdURLOperation("add");
  }

  editURL() {
    this.cmdURLOperation("modify");
  }

  cmdURLOperation(action) {
    var _this$state2 = this.state,
        oldURL = _this$state2.oldURL,
        urlConnType = _this$state2.urlConnType,
        urlAuthDS = _this$state2.urlAuthDS,
        urlSubtree = _this$state2.urlSubtree,
        urlMaxConns = _this$state2.urlMaxConns,
        urlMaxOps = _this$state2.urlMaxOps,
        urlTimeout = _this$state2.urlTimeout,
        urlLDVer = _this$state2.urlLDVer,
        urlConnLifeTime = _this$state2.urlConnLifeTime,
        urlStartTLS = _this$state2.urlStartTLS;
    var constructedURL = "".concat(urlConnType, "://").concat(urlAuthDS, "/").concat(urlSubtree, " ").concat(urlMaxConns, ",").concat(urlMaxOps, ",").concat(urlTimeout, ",").concat(urlLDVer, ",").concat(urlConnLifeTime, ",").concat(urlStartTLS ? "1" : "0");
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "pass-through-auth", "url", action];

    if (oldURL != "" && action == "modify") {
      cmd = [...cmd, oldURL, constructedURL];
    } else {
      cmd = [...cmd, constructedURL];
    }

    this.setState({
      savingPassthru: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_4__.log_cmd)("PassthroughAuthOperation", "Do the ".concat(action, " operation on the Passthough Authentication Plugin"), cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("PassthroughAuthOperation", "Result", content);
      this.props.addNotification("success", "The ".concat(action, " operation was successfully done on \"").concat(constructedURL, "\" entry"));
      this.loadURLs();
      this.closeURLModal();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error during the URL ".concat(action, " operation - ").concat(errMsg.desc));
      this.loadURLs();
      this.closeURLModal();
    });
  }

  render() {
    var _this$state3 = this.state,
        urlRows = _this$state3.urlRows,
        pamConfigRows = _this$state3.pamConfigRows,
        pamConfigName = _this$state3.pamConfigName,
        pamMissingSuffix = _this$state3.pamMissingSuffix,
        pamExcludeSuffix = _this$state3.pamExcludeSuffix,
        pamIncludeSuffix = _this$state3.pamIncludeSuffix,
        pamFilter = _this$state3.pamFilter,
        pamIDAttr = _this$state3.pamIDAttr,
        pamIDMapMethod = _this$state3.pamIDMapMethod,
        pamFallback = _this$state3.pamFallback,
        pamSecure = _this$state3.pamSecure,
        pamService = _this$state3.pamService,
        urlConnType = _this$state3.urlConnType,
        urlLDVer = _this$state3.urlLDVer,
        urlAuthDS = _this$state3.urlAuthDS,
        urlSubtree = _this$state3.urlSubtree,
        urlMaxConns = _this$state3.urlMaxConns,
        urlMaxOps = _this$state3.urlMaxOps,
        urlTimeout = _this$state3.urlTimeout,
        urlConnLifeTime = _this$state3.urlConnLifeTime,
        urlStartTLS = _this$state3.urlStartTLS,
        newPAMConfigEntry = _this$state3.newPAMConfigEntry,
        newURLEntry = _this$state3.newURLEntry,
        pamConfigEntryModalShow = _this$state3.pamConfigEntryModalShow,
        urlEntryModalShow = _this$state3.urlEntryModalShow,
        error = _this$state3.error,
        savingPAM = _this$state3.savingPAM,
        savingPassthru = _this$state3.savingPassthru;
    var modalURLFields = {
      urlAuthDS: {
        name: "Authentication Hostname",
        id: 'urlAuthDS',
        value: urlAuthDS,
        help: "The authenticating directory host name. The port number of the Directory Server can be given by adding a colon and then the port number. For example, dirserver.example.com:389. If the port number is not specified, the PTA server attempts to connect using either of the standard ports: Port 389 if ldap:// is specified in the URL. Port 636 if ldaps:// is specified in the URL."
      },
      urlSubtree: {
        name: "Subtree",
        id: 'urlSubtree',
        value: urlSubtree,
        help: "The pass-through subtree. The PTA Directory Server passes through bind requests to the authenticating Directory Server from all clients whose DN is in this subtree."
      }
    };
    var modalURLNumberFields = {
      urlMaxConns: {
        name: "Maximum Number of Connections",
        value: urlMaxConns,
        id: 'urlMaxConns',
        help: "The maximum number of connections the PTA directory can simultaneously open to the authenticating directory."
      },
      urlMaxOps: {
        name: "Maximum Number of Simultaneous Operations",
        value: urlMaxOps,
        id: 'urlMaxOps',
        help: "The maximum number of simultaneous operations (usually bind requests) the PTA directory can send to the authenticating directory within a single connection."
      },
      urlTimeout: {
        name: "Timeout",
        value: urlTimeout,
        id: 'urlTimeout',
        help: "The time limit, in seconds, that the PTA directory waits for a response from the authenticating Directory Server. If this timeout is exceeded, the server returns an error to the client. The default is 300 seconds (five minutes). Specify zero (0) to indicate no time limit should be enforced."
      },
      urlConnLifeTime: {
        name: "Connection Life Time",
        value: urlConnLifeTime,
        id: 'urlConnLifeTime',
        help: "The time limit, in seconds, within which a connection may be used."
      }
    };
    var saveBtnName = "Save Config";
    var extraPrimaryProps = {};

    if (this.state.savingPassthru || this.state.savingPAM) {
      saveBtnName = "Saving Config ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    var title = (newPAMConfigEntry ? "Add" : "Edit") + " PAM Passthough Auth Plugin Config Entry";
    var title_url = (newPAMConfigEntry ? "Add " : "Edit ") + "Pass-Though Authentication Plugin URL";
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: savingPAM || savingPassthru ? "ds-disabled" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ModalVariant.medium,
      "aria-labelledby": "ds-modal",
      title: title,
      isOpen: pamConfigEntryModalShow,
      onClose: this.closePAMModal,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, _extends({
        key: "confirm",
        variant: "primary",
        onClick: newPAMConfigEntry ? this.addPAMConfig : this.editPAMConfig,
        isDisabled: this.state.saveBtnDisabledPAM,
        isLoading: this.state.savingPAM,
        spinnerAriaValueText: this.state.savingPAM ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.closePAMModal
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Config Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextInput, {
      value: pamConfigName,
      type: "text",
      id: "pamConfigName",
      "aria-describedby": "horizontal-form-name-helper",
      name: "pamConfigName",
      onChange: (str, e) => {
        this.handlePAMChange(e);
      },
      isDisabled: !newPAMConfigEntry,
      validated: error.pamConfigName ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3,
      title: "Specifies a suffix to exclude from PAM authentication (pamExcludeSuffix)"
    }, "Exclude Suffix"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectVariant.typeaheadMulti,
      isCreatable: true,
      onCreateOption: this.onCreateExcludeOption,
      typeAheadAriaLabel: "Add a suffix",
      onToggle: this.onExcludeToggle,
      onSelect: this.onExcludeSelect,
      onClear: this.clearExcludeSelection,
      selections: pamExcludeSuffix,
      isOpen: this.state.isExcludeOpen,
      "aria-labelledby": "Add a suffix",
      placeholderText: "Type a suffix DN ..."
    }, this.state.excludeOptions.map((suffix, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.SelectOption, {
      key: index,
      value: suffix
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3,
      title: "Sets a suffix to include for PAM authentication (pamIncludeSuffix)"
    }, "Include Suffix"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectVariant.typeaheadMulti,
      isCreatable: true,
      onCreateOption: this.onCreateIncludeOption,
      typeAheadAriaLabel: "Add an include suffix",
      onToggle: this.onIncludeToggle,
      onSelect: this.onIncludeSelect,
      onClear: this.clearIncludeSelection,
      selections: pamIncludeSuffix,
      isOpen: this.state.isIncludeOpen,
      "aria-labelledby": "Add an include suffix",
      placeholderText: "Type a suffix DN ..."
    }, this.state.includeOptions.map((suffix, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.SelectOption, {
      key: index,
      value: suffix
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3,
      title: "Contains the attribute name which is used to hold the PAM user ID (pamIDAttr)"
    }, "ID Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.FormSelect, {
      id: "pamIDAttr",
      value: pamIDAttr,
      onChange: (value, event) => {
        this.handlePAMChange(event);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: "no_setting2",
      value: "",
      label: "Choose an attribute..."
    }), this.attrRows))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      title: "Identifies how to handle missing include or exclude suffixes (pamMissingSuffix)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Missing Suffix"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.FormSelect, {
      id: "pamMissingSuffix",
      value: pamMissingSuffix,
      onChange: (value, event) => {
        this.handlePAMChange(event);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: "ERROR",
      value: "ERROR",
      label: "ERROR"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: "ALLOW",
      value: "ALLOW",
      label: "ALLOW"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: "IGNORE",
      value: "IGNORE",
      label: "IGNORE"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      title: "Sets an LDAP filter to use to identify specific entries within the included suffixes for which to use PAM pass-through authentication (pamFilter)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Filter"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextInput, {
      value: pamFilter,
      type: "text",
      id: "pamFilter",
      "aria-describedby": "horizontal-form-name-helper",
      name: "pamFilter",
      onChange: (str, e) => {
        this.handlePAMChange(e);
      },
      validated: error.pamFilter ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      title: "Gives the method to use to map the LDAP bind DN to a PAM identity (pamIDMapMethod)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Map Method"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.FormSelect, {
      id: "pamIDMapMethod",
      value: pamIDMapMethod,
      onChange: (value, event) => {
        this.handlePAMChange(event);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: "RDN",
      value: "RDN",
      label: "RDN"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: "DN",
      value: "DN",
      label: "DN"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: "ENTRY",
      value: "ENTRY",
      label: "ENTRY"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      title: "Contains the service name to pass to PAM (pamService)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Service"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.FormSelect, {
      id: "pamService",
      value: pamService,
      onChange: (value, event) => {
        this.handlePAMChange(event);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: "ldapserver",
      value: "ldapserver",
      label: "ldapserver"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: "system-auth",
      value: "system-auth",
      label: "system-auth (For AD)"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Fallback Auth Enabled"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "pamFallback",
      isChecked: pamFallback,
      onChange: (checked, e) => {
        this.handlePAMChange(e);
      },
      title: "Sets whether to fallback to regular LDAP authentication if PAM authentication fails (pamFallback)"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Require Secure Connection"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "pamSecure",
      isChecked: pamSecure,
      onChange: (checked, e) => {
        this.handlePAMChange(e);
      },
      title: "Requires secure TLS connection for PAM authentication (pamSecure)"
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ModalVariant.medium,
      title: title_url,
      isOpen: urlEntryModalShow,
      onClose: this.closeURLModal,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, _extends({
        key: "confirm",
        variant: "primary",
        onClick: newURLEntry ? this.addURL : this.editURL,
        isDisabled: this.state.saveBtnDisabledPassthru,
        isLoading: this.state.savingPassthru,
        spinnerAriaValueText: this.state.savingPassthru ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.closeURLModal
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 5,
      title: "Defines whether TLS is used for communication between the two Directory Servers."
    }, "Connection Type"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 7
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.FormSelect, {
      id: "urlConnType",
      value: urlConnType,
      onChange: (value, event) => {
        this.handlePassthruChange(event);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: "urlldaps",
      value: "ldaps",
      label: "ldaps"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: "urlldap",
      value: "ldap",
      label: "ldap"
    })))), Object.entries(modalURLFields).map(_ref => {
      var _ref2 = _slicedToArray(_ref, 2),
          id = _ref2[0],
          content = _ref2[1];

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        key: id
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        span: 5,
        title: content.help
      }, content.name), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 7
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextInput, {
        value: content.value,
        type: "text",
        id: content.id,
        "aria-describedby": "horizontal-form-name-helper",
        name: content.name,
        onChange: (str, e) => {
          this.handlePassthruChange(e);
        },
        validated: error[content.id] ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ValidatedOptions["default"]
      })));
    }), Object.entries(modalURLNumberFields).map(_ref3 => {
      var _ref4 = _slicedToArray(_ref3, 2),
          id = _ref4[0],
          content = _ref4[1];

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        key: id
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        span: 5,
        title: content.help
      }, content.name), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 7
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.NumberInput, {
        value: content.value,
        min: -1,
        max: this.maxValue,
        onMinus: () => {
          this.onMinusConfig(content.id);
        },
        onChange: e => {
          this.onConfigChange(e, content.id, -1);
        },
        onPlus: () => {
          this.onPlusConfig(content.id);
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 8
      })));
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 5,
      title: "The version of the LDAP protocol used to connect to the authenticating directory. Directory Server supports LDAP version 2 and 3. The default is version 3, and Red Hat strongly recommends against using LDAPv2, which is old and will be deprecated."
    }, "Version"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 7
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.FormSelect, {
      id: "urlLDVer",
      value: urlLDVer,
      onChange: (value, event) => {
        this.handlePassthruChange(event);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: "LDAPv3",
      value: "3",
      label: "LDAPv3"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: "LDAPv2",
      value: "2",
      label: "LDAPv2"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 5
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Checkbox, {
      id: "urlStartTLS",
      isChecked: urlStartTLS,
      onChange: (checked, e) => {
        this.handlePassthruChange(e);
      },
      title: "A flag of whether to use Start TLS for the connection to the authenticating directory. Start TLS establishes a secure connection over the standard port, so it is useful for connecting using LDAP instead of LDAPS. The TLS server and CA certificates need to be available on both of the servers. To use Start TLS, the LDAP URL must use ldap:, not ldaps:.",
      label: "Enable StartTLS"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
      title: "The URL that will be added or modified after you click 'Save'"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      className: "ds-label",
      span: 5
    }, "Result URL"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
      span: 7
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, urlConnType, "://", urlAuthDS, "/", urlSubtree, " ", urlMaxConns, ",", urlMaxOps, ",", urlTimeout, ",", urlLDVer, ",", urlConnLifeTime, ",", urlStartTLS ? "1" : "0"))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
      rows: this.props.rows,
      serverId: this.props.serverId,
      cn: "Pass Through Authentication",
      pluginName: "Pass Through Authentication",
      cmdName: "pass-through-auth",
      savePluginHandler: this.props.savePluginHandler,
      pluginListHandler: this.props.pluginListHandler,
      addNotification: this.props.addNotification,
      toggleLoadingHandler: this.props.toggleLoadingHandler
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Tabs, {
      activeKey: this.state.activeTabKey,
      onSelect: this.handleNavSelect
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.Tab, {
      eventKey: 0,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.TabTitleText, null, "PTA Configurations")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_2__.PassthroughAuthURLsTable, {
      rows: urlRows,
      key: this.state.tableKey,
      editConfig: this.showEditURLModal,
      deleteConfig: this.showConfirmDeleteURL
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
      variant: "primary",
      onClick: this.showAddURLModal
    }, "Add URL"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.Tab, {
      eventKey: 1,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.TabTitleText, null, "PAM Configurations")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_2__.PassthroughAuthConfigsTable, {
      rows: pamConfigRows,
      key: this.state.tableKey,
      editConfig: this.showEditPAMConfigModal,
      deleteConfig: this.showConfirmDeleteConfig
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Button, {
      variant: "primary",
      onClick: this.showAddPAMConfigModal
    }, "Add Config"))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__.DoubleConfirmModal, {
      showModal: this.state.showConfirmDeleteConfig,
      closeHandler: this.closeConfirmDelete,
      handleChange: this.handleModalChange,
      actionHandler: this.deletePAMConfig,
      spinning: this.state.modalSpinning,
      item: this.state.deleteName,
      checked: this.state.modalChecked,
      mTitle: "Delete PAM Passthrough Configuration",
      mMsg: "Are you sure you want to delete this configuration?",
      mSpinningMsg: "Deleting Configuration...",
      mBtnName: "Delete Configuration"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__.DoubleConfirmModal, {
      showModal: this.state.showConfirmDeleteURL,
      closeHandler: this.closeConfirmDeleteURL,
      handleChange: this.handleModalChange,
      actionHandler: this.deleteURL,
      spinning: this.state.modalSpinning,
      item: this.state.deleteName,
      checked: this.state.modalChecked,
      mTitle: "Delete Passthru Authentication URL",
      mMsg: "Are you sure you want to delete this URL?",
      mSpinningMsg: "Deleting URL...",
      mBtnName: "Delete URL"
    }));
  }

}

PassthroughAuthentication.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().array),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().string),
  savePluginHandler: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().func),
  pluginListHandler: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().func),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().func),
  toggleLoadingHandler: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().func)
};
PassthroughAuthentication.defaultProps = {
  rows: [],
  serverId: ""
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PassthroughAuthentication);

/***/ }),

/***/ "./src/lib/plugins/pluginBasicConfig.jsx":
/*!***********************************************!*\
  !*** ./src/lib/plugins/pluginBasicConfig.jsx ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Switch/Switch.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/ExpandableSection/ExpandableSection.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");






class PluginBasicConfig extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.updateFields = this.updateFields.bind(this);
    this.updateSwitch = this.updateSwitch.bind(this);
    this.handleFieldChange = this.handleFieldChange.bind(this);
    this.handleSwitchChange = this.handleSwitchChange.bind(this);
    this.state = {
      disableSwitch: false,
      currentPluginEnabled: true,
      currentPluginType: "",
      currentPluginPath: "",
      currentPluginInitfunc: "",
      currentPluginId: "",
      currentPluginVendor: "",
      currentPluginVersion: "",
      currentPluginDescription: "",
      currentPluginDependsOnType: "",
      currentPluginDependsOnNamed: "",
      currentPluginPrecedence: "",
      isExpanded: false
    };

    this.onToggle = isExpanded => {
      this.setState({
        isExpanded
      });
    };
  }

  componentDidMount(prevProps) {
    this.updateFields();
  }

  componentDidUpdate(prevProps) {
    if (this.props.rows !== prevProps.rows) {
      this.updateFields();
    }
  }

  handleFieldChange(e) {
    e.preventDefault();
    this.setState({
      [e.target.id]: e.target.value
    });
  }

  handleSwitchChange() {
    var _this$props = this.props,
        pluginName = _this$props.pluginName,
        cmdName = _this$props.cmdName,
        serverId = _this$props.serverId,
        pluginListHandler = _this$props.pluginListHandler,
        addNotification = _this$props.addNotification,
        toggleLoadingHandler = _this$props.toggleLoadingHandler;
    var new_status = this.state.currentPluginEnabled ? "disable" : "enable";
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + serverId + ".socket", "plugin", cmdName, new_status];
    toggleLoadingHandler();
    this.setState({
      disableSwitch: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("handleSwitchChange", "Switch plugin states from the plugin tab", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("savePlugin", "Result", content);
      pluginListHandler();
      var successCheckCMD = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + serverId + ".socket", "config", "get", "nsslapd-dynamic-plugins"];
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("handleSwitchChange", "Get Dynamic Plugins attribute", successCheckCMD);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(successCheckCMD, {
        superuser: true,
        err: "message"
      }).done(content => {
        var config = JSON.parse(content);
        var dynamicPluginEnabled;

        if (config.attrs["nsslapd-dynamic-plugins"][0] === "on") {
          dynamicPluginEnabled = true;
        } else if (config.attrs["nsslapd-dynamic-plugins"][0] === "off") {
          dynamicPluginEnabled = false;
        } else {
          console.error("handleSwitchChange failed", "wrong nsslapd-dynamic-pluginc attribute value", config.attrs["nsslapd-dynamic-plugins"][0]);
        }

        addNotification("".concat(!dynamicPluginEnabled ? 'warning' : 'success'), "".concat(pluginName, " plugin was successfully ").concat(new_status, "d.\n                                    ").concat(!dynamicPluginEnabled ? 'Please, restart the instance.' : ''));
        toggleLoadingHandler();
      }).fail(err => {
        console.error("handleSwitchChange failed", "Failed to get nsslapd-dynamic-pluginc attribute value");
        addNotification("warning", "".concat(pluginName, " plugin was successfully ").concat(new_status, "d.\n                                    Please, restart the instance."));
        toggleLoadingHandler();
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      addNotification("error", "Error during ".concat(pluginName, " plugin modification - ").concat(errMsg.desc));
      toggleLoadingHandler();
      this.setState({
        disableSwitch: false
      });
    });
  }

  updateFields() {
    if (this.props.rows.length > 0) {
      var pluginRow = this.props.rows.find(row => row.cn[0] === this.props.cn);

      if (pluginRow) {
        this.setState({
          currentPluginType: pluginRow["nsslapd-pluginType"][0],
          currentPluginPath: pluginRow["nsslapd-pluginPath"][0],
          currentPluginInitfunc: pluginRow["nsslapd-pluginInitfunc"][0],
          currentPluginId: pluginRow["nsslapd-pluginId"][0],
          currentPluginVendor: pluginRow["nsslapd-pluginVendor"][0],
          currentPluginVersion: pluginRow["nsslapd-pluginVersion"][0],
          currentPluginDescription: pluginRow["nsslapd-pluginDescription"][0],
          currentPluginDependsOnType: pluginRow["nsslapd-plugin-depends-on-type"] === undefined ? "" : pluginRow["nsslapd-plugin-depends-on-type"][0],
          currentPluginDependsOnNamed: pluginRow["nsslapd-plugin-depends-on-named"] === undefined ? "" : pluginRow["nsslapd-plugin-depends-on-named"][0],
          currentPluginPrecedence: pluginRow["nsslapd-pluginprecedence"] === undefined ? "" : pluginRow["nsslapd-pluginprecedence"][0]
        });
      }
    }

    this.updateSwitch();
  }

  updateSwitch() {
    if (this.props.rows.length > 0) {
      var pluginRow = this.props.rows.find(row => row.cn[0] === this.props.cn);

      if (pluginRow) {
        var pluginEnabled = false;

        if (pluginRow["nsslapd-pluginEnabled"][0] === "on") {
          pluginEnabled = true;
        } else if (pluginRow["nsslapd-pluginEnabled"][0] === "off") {
          pluginEnabled = false;
        } else {
          console.error("openPluginModal failed", "wrong nsslapd-pluginenabled attribute value", pluginRow["nsslapd-pluginEnabled"][0]);
        }

        this.setState({
          currentPluginEnabled: pluginEnabled,
          disableSwitch: false
        });
      }
    }
  }

  render() {
    var disableSwitch = this.state.disableSwitch;
    var enabled = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("i", null, "Plugin is enabled");
    var disabled = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("i", null, "Plugin is disabled");
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Form, {
      isHorizontal: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9,
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h2
    }, this.props.pluginName, " Plugin"))), this.props.removeSwitch || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3,
      className: "ds-float-right ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Switch, {
      id: "this.props.pluginName",
      label: enabled,
      labelOff: disabled,
      isChecked: this.state.currentPluginEnabled,
      onChange: this.handleSwitchChange,
      isDisabled: disableSwitch
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-left-margin"
    }, this.props.children), this.state.currentPluginPath !== "" && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.ExpandableSection, {
      className: "ds-margin-top-lg",
      toggleText: this.state.isExpanded ? 'Hide Plugin Details' : 'Show Plugin Details',
      onToggle: this.onToggle,
      isExpanded: this.state.isExpanded
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      className: "ds-margin-left"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Form, {
      isHorizontal: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, "Plugin Type")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("i", null, this.state.currentPluginType))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, "Plugin Path")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("i", null, this.state.currentPluginPath))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, "Plugin Initfunc")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("i", null, this.state.currentPluginInitfunc))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, "Plugin Depends On Type")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("i", null, this.state.currentPluginDependsOnType))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, "Plugin Depends On Named")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("i", null, this.state.currentPluginDependsOnNamed))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, "Plugin Vendor")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("i", null, this.state.currentPluginVendor))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, "Plugin Version")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("i", null, this.state.currentPluginVersion))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, "Plugin Description")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("i", null, this.state.currentPluginDescription))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, "Plugin ID")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("i", null, this.state.currentPluginId))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, "Plugin Precedence")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 6
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("i", null, this.state.currentPluginPrecedence))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null))))));
  }

}

PluginBasicConfig.propTypes = {
  children: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().any.isRequired),
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().array),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
  cn: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
  pluginName: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
  cmdName: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
  removeSwitch: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool),
  pluginListHandler: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func),
  toggleLoadingHandler: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func)
};
PluginBasicConfig.defaultProps = {
  rows: [],
  serverId: "",
  cn: "",
  pluginName: "",
  cmdName: "",
  removeSwitch: false
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PluginBasicConfig);

/***/ }),

/***/ "./src/lib/plugins/pluginTables.jsx":
/*!******************************************!*\
  !*** ./src/lib/plugins/pluginTables.jsx ***!
  \******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "PluginTable": () => (/* binding */ PluginTable),
/* harmony export */   "AttrUniqConfigTable": () => (/* binding */ AttrUniqConfigTable),
/* harmony export */   "LinkedAttributesTable": () => (/* binding */ LinkedAttributesTable),
/* harmony export */   "DNATable": () => (/* binding */ DNATable),
/* harmony export */   "DNASharedTable": () => (/* binding */ DNASharedTable),
/* harmony export */   "AutoMembershipDefinitionTable": () => (/* binding */ AutoMembershipDefinitionTable),
/* harmony export */   "AutoMembershipRegexTable": () => (/* binding */ AutoMembershipRegexTable),
/* harmony export */   "ManagedDefinitionTable": () => (/* binding */ ManagedDefinitionTable),
/* harmony export */   "ManagedTemplateTable": () => (/* binding */ ManagedTemplateTable),
/* harmony export */   "PassthroughAuthURLsTable": () => (/* binding */ PassthroughAuthURLsTable),
/* harmony export */   "PassthroughAuthConfigsTable": () => (/* binding */ PassthroughAuthConfigsTable)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Switch/Switch.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SearchInput/SearchInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Pagination/Pagination.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/sortable.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/collapsible.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/SortColumn.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Table.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableTypes.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Header.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Body.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__);
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }






class PluginTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      dropdownIsOpen: false,
      columns: [{
        title: 'Plugin Name',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable],
        cellFormatters: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.expandable]
      }, {
        title: 'Plugin Type',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Enabled',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage,
        page: 1
      });
    };

    this.onSort = this.onSort.bind(this);
    this.onCollapse = this.onCollapse.bind(this);
    this.onSearchChange = this.onSearchChange.bind(this);
  }

  onCollapse(event, rowKey, isOpen) {
    var _this$state = this.state,
        rows = _this$state.rows,
        perPage = _this$state.perPage,
        page = _this$state.page;
    var index = perPage * (page - 1) * 2 + rowKey; // Adjust for page set

    rows[index].isOpen = isOpen;
    this.setState({
      rows
    });
  }

  onSort(_event, index, direction) {
    var sorted_rows = [];
    var rows = [];
    var count = 0; // Convert the rows pairings into a sortable array based on the column indexes

    for (var idx = 0; idx < this.state.rows.length; idx += 2) {
      sorted_rows.push({
        expandedRow: this.state.rows[idx + 1],
        1: this.state.rows[idx].cells[0],
        2: this.state.rows[idx].cells[1],
        3: this.state.rows[idx].cells[2]
      });
    } // Sort the rows and build the new rows


    sorted_rows.sort((a, b) => a[index] > b[index] ? 1 : -1);

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc) {
      sorted_rows.reverse();
    }

    for (var _i = 0, _sorted_rows = sorted_rows; _i < _sorted_rows.length; _i++) {
      var srow = _sorted_rows[_i];
      rows.push({
        isOpen: false,
        cells: [srow[1], srow[2], srow[3]]
      });
      srow.expandedRow.parent = count; // reset parent idx

      rows.push(srow.expandedRow);
      count += 2;
    }

    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: rows,
      page: 1
    });
  }

  onSearchChange(value, event) {
    var rows = [];
    var count = 0;

    var _iterator = _createForOfIteratorHelper(this.props.rows),
        _step;

    try {
      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        var row = _step.value;
        var val = value.toLowerCase(); // Check for matches of all the parts

        if (val != "" && row.cn[0].toLowerCase().indexOf(val) == -1 && row["nsslapd-pluginType"][0].toLowerCase().indexOf(val) == -1) {
          // Not a match
          continue;
        }

        rows.push({
          isOpen: false,
          cells: [row.cn[0], row["nsslapd-pluginType"][0], row["nsslapd-pluginEnabled"][0]]
        }, {
          parent: count,
          fullWidth: true,
          cells: [{
            title: this.getExpandedRow(row)
          }]
        });
        count += 2;
      }
    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }

    this.setState({
      rows: rows,
      value: value,
      page: 1
    });
  }

  getExpandedRow(rowData) {
    var dependsType = rowData["nsslapd-plugin-depends-on-type"] === undefined ? "" : rowData["nsslapd-plugin-depends-on-type"].join(", ");
    var dependsNamed = rowData["nsslapd-plugin-depends-on-named"] === undefined ? "" : rowData["nsslapd-plugin-depends-on-named"].join(", ");
    var precedence = rowData["nsslapd-pluginprecedence"] === undefined ? "" : rowData["nsslapd-pluginprecedence"][0];
    var plugin_enabled = rowData["nsslapd-pluginEnabled"][0] == "on"; // const plugin_name = (' ' + rowData["cn"][0]).slice(1);

    var plugin_name = rowData.cn[0];
    var enabled = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, "Plugin is enabled");
    var disabled = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, "Plugin is disabled");
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      className: "ds-left-indent-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 4
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Plugin Description:")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, rowData["nsslapd-pluginDescription"][0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 4
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Plugin Path:")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, rowData["nsslapd-pluginPath"][0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 4
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Plugin Init Function:")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, rowData["nsslapd-pluginInitfunc"][0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 4
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Plugin ID:")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, rowData["nsslapd-pluginId"][0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 4
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Plugin Vendor:")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, rowData["nsslapd-pluginVendor"][0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 4
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Plugin Version:")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, rowData["nsslapd-pluginVersion"][0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 4
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Plugin Depends On Named:")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, dependsNamed)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 4
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Plugin Depends On Type:")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, dependsType)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 4
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Plugin Precedence:")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, precedence)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 12,
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Switch, {
      id: plugin_name,
      key: plugin_name,
      label: enabled,
      labelOff: disabled,
      isChecked: plugin_enabled,
      onChange: () => {
        this.props.showConfirmToggle(plugin_name, plugin_enabled);
      }
    })));
  }

  componentDidMount() {
    var rows = [];
    var count = 0;

    var _iterator2 = _createForOfIteratorHelper(this.props.rows),
        _step2;

    try {
      for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
        var row = _step2.value;
        rows.push({
          isOpen: false,
          cells: [row.cn[0], row["nsslapd-pluginType"][0], row["nsslapd-pluginEnabled"][0]]
        }, {
          parent: count,
          fullWidth: true,
          cells: [{
            title: this.getExpandedRow(row)
          }]
        });
        count += 2;
      }
    } catch (err) {
      _iterator2.e(err);
    } finally {
      _iterator2.f();
    }

    this.setState({
      rows: rows
    });
  }

  render() {
    var _this$state2 = this.state,
        perPage = _this$state2.perPage,
        page = _this$state2.page,
        sortBy = _this$state2.sortBy,
        rows = _this$state2.rows,
        columns = _this$state2.columns;
    var origRows = [...rows];
    var startIdx = (perPage * page - perPage) * 2;
    var tableRows = origRows.splice(startIdx, perPage * 2);

    for (var idx = 1, count = 0; idx < tableRows.length; idx += 2, count += 2) {
      // Rewrite parent index to match new spliced array
      tableRows[idx].parent = count;
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: this.state.toggleSpinning ? "ds-disabled" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 5
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.SearchInput, {
      placeholder: "Search Plugins",
      value: this.state.value,
      onChange: this.onSearchChange,
      onClear: evt => this.onSearchChange('', evt)
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.Table, {
      className: "ds-margin-top",
      "aria-label": "all plugins table",
      cells: columns,
      rows: tableRows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableVariant.compact,
      sortBy: sortBy,
      onSort: this.onSort,
      onCollapse: this.onCollapse
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Pagination, {
      itemCount: this.state.rows.length / 2,
      widgetId: "pagination-options-menu-bottom",
      perPage: perPage,
      page: page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

PluginTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array)
};
PluginTable.defaultProps = {
  rows: []
};

class AttrUniqConfigTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'Config Name',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Attribute',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Enabled',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage
      });
    };

    this.onSort = this.onSort.bind(this);
    this.onSearchChange = this.onSearchChange.bind(this);
  }

  actions() {
    return [{
      title: 'Edit Config',
      onClick: (event, rowId, rowData, extra) => this.props.editConfig(rowData[0])
    }, {
      isSeparator: true
    }, {
      title: 'Delete Config',
      onClick: (event, rowId, rowData, extra) => this.props.deleteConfig(rowData[0])
    }];
  }

  componentDidMount() {
    // Copy the rows so we can handle sorting and searching
    var rows = [];

    var _iterator3 = _createForOfIteratorHelper(this.props.rows),
        _step3;

    try {
      for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
        var row = _step3.value;
        rows.push([row.cn[0], row['uniqueness-attribute-name'].join(", "), row["nsslapd-pluginenabled"][0]]);
      }
    } catch (err) {
      _iterator3.e(err);
    } finally {
      _iterator3.f();
    }

    this.setState({
      rows: rows
    });
  }

  onSort(_event, index, direction) {
    var sortedRows = this.state.rows.sort((a, b) => a[index] < b[index] ? -1 : a[index] > b[index] ? 1 : 0);
    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: direction === _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc ? sortedRows : sortedRows.reverse()
    });
  }

  onSearchChange(value, event) {
    var rows = [];
    var val = value.toLowerCase();

    var _iterator4 = _createForOfIteratorHelper(this.state.rows),
        _step4;

    try {
      for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
        var _row = _step4.value;

        if (val != "" && _row[0].indexOf(val) == -1 && _row[1].indexOf(val) == -1) {
          // Not a match, skip it
          continue;
        }

        rows.push([_row[0], _row[1], _row[2]]);
      }
    } catch (err) {
      _iterator4.e(err);
    } finally {
      _iterator4.f();
    }

    if (val == "") {
      // reset rows
      var _iterator5 = _createForOfIteratorHelper(this.props.rows),
          _step5;

      try {
        for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
          var row = _step5.value;
          rows.push([row.cn[0], row['uniqueness-attribute-name'].join(", "), row["nsslapd-pluginenabled"][0]]);
        }
      } catch (err) {
        _iterator5.e(err);
      } finally {
        _iterator5.f();
      }
    }

    this.setState({
      rows: rows,
      value: value,
      page: 1
    });
  }

  render() {
    var rows = JSON.parse(JSON.stringify(this.state.rows)); // Deep copy

    var columns = this.state.columns;
    var has_rows = true;
    var tableRows;

    if (rows.length == 0) {
      has_rows = false;
      columns = [{
        title: 'Attribute Uniqueness Configurations'
      }];
      tableRows = [{
        cells: ['No Configurations']
      }];
    } else {
      var startIdx = this.state.perPage * this.state.page - this.state.perPage;
      tableRows = rows.splice(startIdx, this.state.perPage);
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 5
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.SearchInput, {
      placeholder: "Search Configurations",
      value: this.state.value,
      onChange: this.onSearchChange,
      onClear: evt => this.onSearchChange('', evt)
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.Table, {
      className: "ds-margin-top",
      "aria-label": "glue table",
      cells: columns,
      rows: tableRows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableVariant.compact,
      sortBy: this.state.sortBy,
      onSort: this.onSort,
      actions: has_rows ? this.actions() : null,
      dropdownPosition: "right",
      dropdownDirection: "bottom"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Pagination, {
      itemCount: this.props.rows.length,
      widgetId: "pagination-options-menu-bottom",
      perPage: this.state.perPage,
      page: this.state.page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

AttrUniqConfigTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
  editConfig: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  deleteConfig: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)
};
AttrUniqConfigTable.defaultProps = {
  rows: []
};

class LinkedAttributesTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'Config Name',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Link Type',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Managed Type',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Link Scope',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage
      });
    };

    this.onSort = this.onSort.bind(this);
    this.onSearchChange = this.onSearchChange.bind(this);
  }

  actions() {
    return [{
      title: 'Edit Config',
      onClick: (event, rowId, rowData, extra) => this.props.editConfig(rowData[0])
    }, {
      isSeparator: true
    }, {
      title: 'Delete Config',
      onClick: (event, rowId, rowData, extra) => this.props.deleteConfig(rowData[0])
    }];
  }

  componentDidMount() {
    // Copy the rows so we can handle sorting and searching
    var rows = [];

    var _iterator6 = _createForOfIteratorHelper(this.props.rows),
        _step6;

    try {
      for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
        var row = _step6.value;
        var configName = row.cn === undefined ? "" : row.cn[0];
        var linkType = row.linktype === undefined ? "" : row.linktype[0];
        var managedType = row.managedtype === undefined ? "" : row.managedtype[0];
        var linkScope = row.linkscope === undefined ? "" : row.linkscope[0];
        rows.push([configName, linkType, managedType, linkScope]);
      }
    } catch (err) {
      _iterator6.e(err);
    } finally {
      _iterator6.f();
    }

    this.setState({
      rows: rows
    });
  }

  onSort(_event, index, direction) {
    var sortedRows = this.state.rows.sort((a, b) => a[index] < b[index] ? -1 : a[index] > b[index] ? 1 : 0);
    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: direction === _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc ? sortedRows : sortedRows.reverse()
    });
  }

  onSearchChange(value, event) {
    var rows = [];
    var val = value.toLowerCase();

    var _iterator7 = _createForOfIteratorHelper(this.state.rows),
        _step7;

    try {
      for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
        var _row2 = _step7.value;

        if (val != "" && _row2[0].indexOf(val) == -1 && _row2[1].indexOf(val) == -1 && _row2[2].indexOf(val) == -1 && _row2[3].indexOf(val) == -1) {
          // Not a match, skip it
          continue;
        }

        rows.push([_row2[0], _row2[1], _row2[2], _row2[3]]);
      }
    } catch (err) {
      _iterator7.e(err);
    } finally {
      _iterator7.f();
    }

    if (val == "") {
      // reset rows
      var _iterator8 = _createForOfIteratorHelper(this.props.rows),
          _step8;

      try {
        for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
          var row = _step8.value;
          var configName = row.cn === undefined ? "" : row.cn[0];
          var linkType = row.linktype === undefined ? "" : row.linktype[0];
          var managedType = row.managedtype === undefined ? "" : row.managedtype[0];
          var linkScope = row.linkscope === undefined ? "" : row.linkscope[0];
          rows.push([configName, linkType, managedType, linkScope]);
        }
      } catch (err) {
        _iterator8.e(err);
      } finally {
        _iterator8.f();
      }
    }

    this.setState({
      rows: rows,
      value: value,
      page: 1
    });
  }

  render() {
    var rows = JSON.parse(JSON.stringify(this.state.rows)); // Deep copy

    var columns = this.state.columns;
    var has_rows = true;
    var tableRows;

    if (rows.length == 0) {
      has_rows = false;
      columns = [{
        title: 'Linked Attributes Configurations'
      }];
      tableRows = [{
        cells: ['No Configurations']
      }];
    } else {
      var startIdx = this.state.perPage * this.state.page - this.state.perPage;
      tableRows = rows.splice(startIdx, this.state.perPage);
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 5
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.SearchInput, {
      placeholder: "Search Configurations",
      value: this.state.value,
      onChange: this.onSearchChange,
      onClear: evt => this.onSearchChange('', evt)
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.Table, {
      className: "ds-margin-top",
      "aria-label": "linked table",
      cells: columns,
      rows: tableRows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableVariant.compact,
      sortBy: this.state.sortBy,
      onSort: this.onSort,
      actions: has_rows ? this.actions() : null,
      dropdownPosition: "right",
      dropdownDirection: "bottom"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Pagination, {
      itemCount: this.props.rows.length,
      widgetId: "pagination-options-menu-bottom",
      perPage: this.state.perPage,
      page: this.state.page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

LinkedAttributesTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
  editConfig: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  deleteConfig: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)
};
LinkedAttributesTable.defaultProps = {
  rows: []
};

class DNATable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'Config Name',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Scope',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Filter',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Next Value',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage
      });
    };

    this.onSort = this.onSort.bind(this);
    this.onSearchChange = this.onSearchChange.bind(this);
  }

  componentDidMount() {
    // Copy the rows so we can handle sorting and searching
    var rows = [];

    var _iterator9 = _createForOfIteratorHelper(this.props.rows),
        _step9;

    try {
      for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
        var row = _step9.value;
        var configName = row.cn === undefined ? "" : row.cn[0];
        var nextValue = row.dnanextvalue === undefined ? "" : row.dnanextvalue[0];
        var filter = row.dnafilter === undefined ? "" : row.dnafilter[0];
        var scope = row.dnascope === undefined ? "" : row.dnascope[0];
        rows.push([configName, scope, filter, nextValue]);
      }
    } catch (err) {
      _iterator9.e(err);
    } finally {
      _iterator9.f();
    }

    this.setState({
      rows: rows
    });
  }

  onSort(_event, index, direction) {
    var sortedRows = this.state.rows.sort((a, b) => a[index] < b[index] ? -1 : a[index] > b[index] ? 1 : 0);
    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: direction === _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc ? sortedRows : sortedRows.reverse()
    });
  }

  onSearchChange(value, event) {
    var rows = [];
    var val = value.toLowerCase();

    var _iterator10 = _createForOfIteratorHelper(this.state.rows),
        _step10;

    try {
      for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
        var _row3 = _step10.value;

        if (val != "" && _row3[0].indexOf(val) == -1 && _row3[1].indexOf(val) == -1 && _row3[2].indexOf(val) == -1 && _row3[3].indexOf(val) == -1) {
          // Not a match, skip it
          continue;
        }

        rows.push([_row3[0], _row3[1], _row3[2], _row3[3]]);
      }
    } catch (err) {
      _iterator10.e(err);
    } finally {
      _iterator10.f();
    }

    if (val == "") {
      // reset rows
      var _iterator11 = _createForOfIteratorHelper(this.props.rows),
          _step11;

      try {
        for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
          var row = _step11.value;
          var configName = row.cn === undefined ? "" : row.cn[0];
          var nextValue = row.dnanextvalue === undefined ? "" : row.dnanextvalue[0];
          var filter = row.dnafilter === undefined ? "" : row.dnafilter[0];
          var scope = row.scope === undefined ? "" : row.scope[0];
          rows.push([configName, scope, filter, nextValue]);
        }
      } catch (err) {
        _iterator11.e(err);
      } finally {
        _iterator11.f();
      }
    }

    this.setState({
      rows: rows,
      value: value,
      page: 1
    });
  }

  actions() {
    return [{
      title: 'Edit Config',
      onClick: (event, rowId, rowData, extra) => this.props.editConfig(rowData[0])
    }, {
      isSeparator: true
    }, {
      title: 'Delete Config',
      onClick: (event, rowId, rowData, extra) => this.props.deleteConfig(rowData[0])
    }];
  }

  render() {
    var rows = JSON.parse(JSON.stringify(this.state.rows)); // Deep copy

    var columns = this.state.columns;
    var has_rows = true;
    var tableRows;

    if (rows.length == 0) {
      has_rows = false;
      columns = [{
        title: 'DNA Configurations'
      }];
      tableRows = [{
        cells: ['No Configurations']
      }];
    } else {
      var startIdx = this.state.perPage * this.state.page - this.state.perPage;
      tableRows = rows.splice(startIdx, this.state.perPage);
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 5
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.SearchInput, {
      placeholder: "Search Configurations",
      value: this.state.value,
      onChange: this.onSearchChange,
      onClear: evt => this.onSearchChange('', evt)
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.Table, {
      className: "ds-margin-top",
      "aria-label": "dna table",
      cells: columns,
      rows: tableRows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableVariant.compact,
      sortBy: this.state.sortBy,
      onSort: this.onSort,
      actions: has_rows ? this.actions() : null,
      dropdownPosition: "right",
      dropdownDirection: "bottom"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Pagination, {
      itemCount: this.props.rows.length,
      widgetId: "pagination-options-menu-bottom",
      perPage: this.state.perPage,
      page: this.state.page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

DNATable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
  editConfig: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  deleteConfig: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)
};
DNATable.defaultProps = {
  rows: []
};

class DNASharedTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'Hostname',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Port',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Remaining Values',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage
      });
    };

    this.onSort = this.onSort.bind(this);
    this.onSearchChange = this.onSearchChange.bind(this);
  }

  componentDidMount() {
    var rows = [];

    var _iterator12 = _createForOfIteratorHelper(this.props.rows),
        _step12;

    try {
      for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
        var row = _step12.value;
        rows.push([row.dnahostname[0], row.dnaportnum[0], row.dnaremainingvalues[0]]);
      }
    } catch (err) {
      _iterator12.e(err);
    } finally {
      _iterator12.f();
    }

    this.setState({
      rows: rows
    });
  }

  onSort(_event, index, direction) {
    var sortedRows = this.state.rows.sort((a, b) => a[index] < b[index] ? -1 : a[index] > b[index] ? 1 : 0);
    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: direction === _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc ? sortedRows : sortedRows.reverse()
    });
  }

  onSearchChange(value, event) {
    var rows = [];
    var val = value.toLowerCase();

    var _iterator13 = _createForOfIteratorHelper(this.state.rows),
        _step13;

    try {
      for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {
        var _row4 = _step13.value;

        if (val != "" && _row4[0].indexOf(val) == -1 && _row4[1].indexOf(val) == -1 && _row4[2].indexOf(val) == -1) {
          // Not a match, skip it
          continue;
        }

        rows.push([_row4[0], _row4[1], _row4[2]]);
      }
    } catch (err) {
      _iterator13.e(err);
    } finally {
      _iterator13.f();
    }

    if (val == "") {
      // reset rows
      var _iterator14 = _createForOfIteratorHelper(this.props.rows),
          _step14;

      try {
        for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {
          var row = _step14.value;
          rows.push([row.dnahostname[0], row.dnaportnum[0], row.dnaremainingvalues[0]]);
        }
      } catch (err) {
        _iterator14.e(err);
      } finally {
        _iterator14.f();
      }
    }

    this.setState({
      rows: rows,
      value: value,
      page: 1
    });
  }

  actions() {
    return [{
      title: 'Edit Config',
      onClick: (event, rowId, rowData, extra) => this.props.editConfig(rowData[0] + ":" + rowData[1])
    }, {
      isSeparator: true
    }, {
      title: 'Delete Config',
      onClick: (event, rowId, rowData, extra) => this.props.deleteConfig(rowData[0] + ":" + rowData[1])
    }];
  }

  render() {
    var rows = JSON.parse(JSON.stringify(this.state.rows)); // Deep copy

    var columns = this.state.columns;
    var has_rows = true;
    var tableRows;

    if (rows.length == 0) {
      has_rows = false;
      columns = [{
        title: 'DNA Shared Configurations'
      }];
      tableRows = [{
        cells: ['No Configurations']
      }];
    } else {
      var startIdx = this.state.perPage * this.state.page - this.state.perPage;
      tableRows = rows.splice(startIdx, this.state.perPage);
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 5
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.SearchInput, {
      placeholder: "Search Shared Configurations",
      value: this.state.value,
      onChange: this.onSearchChange,
      onClear: evt => this.onSearchChange('', evt)
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.Table, {
      className: "ds-margin-top",
      "aria-label": "dna shared table",
      cells: columns,
      rows: tableRows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableVariant.compact,
      sortBy: this.state.sortBy,
      onSort: this.onSort,
      actions: has_rows ? this.actions() : null,
      dropdownPosition: "right",
      dropdownDirection: "bottom"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Pagination, {
      itemCount: this.props.rows.length,
      widgetId: "pagination-options-menu-bottom",
      perPage: this.state.perPage,
      page: this.state.page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

DNASharedTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
  editConfig: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  deleteConfig: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)
};
DNASharedTable.defaultProps = {
  rows: []
};

class AutoMembershipDefinitionTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'Definition Name',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Default Group',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Scope',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Filter',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage
      });
    };

    this.onSort = this.onSort.bind(this);
    this.onSearchChange = this.onSearchChange.bind(this);
  }

  componentDidMount() {
    var rows = [];

    var _iterator15 = _createForOfIteratorHelper(this.props.rows),
        _step15;

    try {
      for (_iterator15.s(); !(_step15 = _iterator15.n()).done;) {
        var row = _step15.value;
        rows.push([row.cn[0], "automemberdefaultgroup" in row ? row.automemberdefaultgroup[0] : "", row.automemberscope[0], row.automemberfilter[0]]);
      }
    } catch (err) {
      _iterator15.e(err);
    } finally {
      _iterator15.f();
    }

    this.setState({
      rows: rows
    });
  }

  onSort(_event, index, direction) {
    var sortedRows = this.state.rows.sort((a, b) => a[index] < b[index] ? -1 : a[index] > b[index] ? 1 : 0);
    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: direction === _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc ? sortedRows : sortedRows.reverse()
    });
  }

  onSearchChange(value, event) {
    var rows = [];
    var val = value.toLowerCase();

    var _iterator16 = _createForOfIteratorHelper(this.state.rows),
        _step16;

    try {
      for (_iterator16.s(); !(_step16 = _iterator16.n()).done;) {
        var _row5 = _step16.value;

        if (val != "" && _row5[0].indexOf(val) == -1 && _row5[1].indexOf(val) == -1 && _row5[2].indexOf(val) == -1 && _row5[3].indexOf(val) == -1) {
          // Not a match, skip it
          continue;
        }

        rows.push([_row5[0], _row5[1], _row5[2], _row5[3]]);
      }
    } catch (err) {
      _iterator16.e(err);
    } finally {
      _iterator16.f();
    }

    if (val == "") {
      // reset rows
      var _iterator17 = _createForOfIteratorHelper(this.props.rows),
          _step17;

      try {
        for (_iterator17.s(); !(_step17 = _iterator17.n()).done;) {
          var row = _step17.value;
          rows.push([row.cn[0], row.automemberdefaultgroup[0], row.automemberscope[0], row.automemberfilter[0]]);
        }
      } catch (err) {
        _iterator17.e(err);
      } finally {
        _iterator17.f();
      }
    }

    this.setState({
      rows: rows,
      value: value,
      page: 1
    });
  }

  actions() {
    return [{
      title: 'Edit Config',
      onClick: (event, rowId, rowData, extra) => this.props.editConfig(rowData[0])
    }, {
      isSeparator: true
    }, {
      title: 'Delete Config',
      onClick: (event, rowId, rowData, extra) => this.props.deleteConfig(rowData[0])
    }];
  }

  render() {
    var rows = JSON.parse(JSON.stringify(this.state.rows)); // Deep copy

    var columns = this.state.columns;
    var has_rows = true;
    var tableRows;

    if (rows.length == 0) {
      has_rows = false;
      columns = [{
        title: 'Automembership Definitions'
      }];
      tableRows = [{
        cells: ['No Definitions']
      }];
    } else {
      var startIdx = this.state.perPage * this.state.page - this.state.perPage;
      tableRows = rows.splice(startIdx, this.state.perPage);
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 5
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.SearchInput, {
      className: "ds-margin-top-lg",
      placeholder: "Search Definitions",
      value: this.state.value,
      onChange: this.onSearchChange,
      onClear: evt => this.onSearchChange('', evt)
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.Table, {
      className: "ds-margin-top",
      "aria-label": "automember def table",
      cells: columns,
      rows: tableRows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableVariant.compact,
      sortBy: this.state.sortBy,
      onSort: this.onSort,
      actions: has_rows ? this.actions() : null,
      dropdownPosition: "right",
      dropdownDirection: "bottom"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Pagination, {
      itemCount: this.props.rows.length,
      widgetId: "pagination-options-menu-bottom",
      perPage: this.state.perPage,
      page: this.state.page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

AutoMembershipDefinitionTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
  editConfig: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  deleteConfig: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)
};
AutoMembershipDefinitionTable.defaultProps = {
  rows: []
};

class AutoMembershipRegexTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'Config Name',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Exclusive Regex',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Inclusive Regex',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Target Group',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage
      });
    };

    this.onSort = this.onSort.bind(this);
    this.onSearchChange = this.onSearchChange.bind(this);
  }

  componentDidMount() {
    var rows = [];

    var _iterator18 = _createForOfIteratorHelper(this.props.rows),
        _step18;

    try {
      for (_iterator18.s(); !(_step18 = _iterator18.n()).done;) {
        var row = _step18.value;
        var includeReg = row.automemberinclusiveregex === undefined ? "" : row.automemberinclusiveregex.join(", ");
        var excludeReg = row.automemberexclusiveregex === undefined ? "" : row.automemberexclusiveregex.join(", ");
        var targetGrp = row.automembertargetgroup === undefined ? "" : row.automembertargetgroup[0];
        rows.push([row.cn[0], excludeReg, includeReg, targetGrp]);
      }
    } catch (err) {
      _iterator18.e(err);
    } finally {
      _iterator18.f();
    }

    this.setState({
      rows: rows
    });
  }

  onSort(_event, index, direction) {
    var sortedRows = this.state.rows.sort((a, b) => a[index] < b[index] ? -1 : a[index] > b[index] ? 1 : 0);
    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: direction === _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc ? sortedRows : sortedRows.reverse()
    });
  }

  onSearchChange(value, event) {
    var rows = [];
    var val = value.toLowerCase();

    var _iterator19 = _createForOfIteratorHelper(this.state.rows),
        _step19;

    try {
      for (_iterator19.s(); !(_step19 = _iterator19.n()).done;) {
        var _row6 = _step19.value;

        if (val != "" && _row6[0].indexOf(val) == -1 && _row6[1].indexOf(val) == -1 && _row6[2].indexOf(val) == -1 && _row6[3].indexOf(val) == -1) {
          // Not a match, skip it
          continue;
        }

        rows.push([_row6[0], _row6[1], _row6[2], _row6[3]]);
      }
    } catch (err) {
      _iterator19.e(err);
    } finally {
      _iterator19.f();
    }

    if (val == "") {
      // reset rows
      var _iterator20 = _createForOfIteratorHelper(this.props.rows),
          _step20;

      try {
        for (_iterator20.s(); !(_step20 = _iterator20.n()).done;) {
          var row = _step20.value;
          var includeReg = row.automemberinclusiveregex === undefined ? "" : row.automemberinclusiveregex[0];
          var excludeReg = row.automemberexclusiveregex === undefined ? "" : row.automemberexclusiveregex[0];
          var targetGrp = row.automembertargetgroup === undefined ? "" : row.automembertargetgroup[0];
          rows.push([row.cn[0], excludeReg.join(", "), includeReg.join(", "), targetGrp]);
        }
      } catch (err) {
        _iterator20.e(err);
      } finally {
        _iterator20.f();
      }
    }

    this.setState({
      rows: rows,
      value: value,
      page: 1
    });
  }

  actions() {
    return [{
      title: 'Edit Config',
      onClick: (event, rowId, rowData, extra) => this.props.editConfig(rowData[0])
    }, {
      isSeparator: true
    }, {
      title: 'Delete Config',
      onClick: (event, rowId, rowData, extra) => this.props.deleteConfig(rowData[0])
    }];
  }

  render() {
    var rows = JSON.parse(JSON.stringify(this.state.rows)); // Deep copy

    var columns = this.state.columns;
    var has_rows = true;
    var tableRows;

    if (rows.length == 0) {
      has_rows = false;
      columns = [{
        title: 'Automembership Regular Expressions'
      }];
      tableRows = [{
        cells: ['No regular expressions']
      }];
    } else {
      var startIdx = this.state.perPage * this.state.page - this.state.perPage;
      tableRows = rows.splice(startIdx, this.state.perPage);
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 5
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.SearchInput, {
      className: "ds-margin-top-lg",
      placeholder: "Search Regular Expressions",
      value: this.state.value,
      onChange: this.onSearchChange,
      onClear: evt => this.onSearchChange('', evt)
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.Table, {
      className: "ds-margin-top",
      "aria-label": "automember regex table",
      cells: columns,
      rows: tableRows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableVariant.compact,
      sortBy: this.state.sortBy,
      onSort: this.onSort,
      actions: has_rows ? this.actions() : null,
      dropdownPosition: "right",
      dropdownDirection: "bottom"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Pagination, {
      itemCount: this.props.rows.length,
      widgetId: "pagination-options-menu-bottom",
      perPage: this.state.perPage,
      page: this.state.page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

AutoMembershipRegexTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
  editConfig: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  deleteConfig: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)
};
AutoMembershipRegexTable.defaultProps = {
  rows: []
};

class ManagedDefinitionTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'Config Name',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Scope',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Filter',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Managed Base',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage
      });
    };

    this.onSort = this.onSort.bind(this);
    this.onSearchChange = this.onSearchChange.bind(this);
  }

  componentDidMount() {
    var rows = [];

    var _iterator21 = _createForOfIteratorHelper(this.props.rows),
        _step21;

    try {
      for (_iterator21.s(); !(_step21 = _iterator21.n()).done;) {
        var row = _step21.value;
        var managedBase = row.managedbase === undefined ? "" : row.managedbase[0];
        var scope = row.originscope === undefined ? "" : row.originscope[0];
        var filter = row.originfilter === undefined ? "" : row.originfilter[0];
        rows.push([row.cn[0], scope, filter, managedBase]);
      }
    } catch (err) {
      _iterator21.e(err);
    } finally {
      _iterator21.f();
    }

    this.setState({
      rows: rows
    });
  }

  onSort(_event, index, direction) {
    var sortedRows = this.state.rows.sort((a, b) => a[index] < b[index] ? -1 : a[index] > b[index] ? 1 : 0);
    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: direction === _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc ? sortedRows : sortedRows.reverse()
    });
  }

  onSearchChange(value, event) {
    var rows = [];
    var val = value.toLowerCase();

    var _iterator22 = _createForOfIteratorHelper(this.state.rows),
        _step22;

    try {
      for (_iterator22.s(); !(_step22 = _iterator22.n()).done;) {
        var _row7 = _step22.value;

        if (val != "" && _row7[0].indexOf(val) == -1 && _row7[1].indexOf(val) == -1 && _row7[2].indexOf(val) == -1 && _row7[3].indexOf(val) == -1) {
          // Not a match, skip it
          continue;
        }

        rows.push([_row7[0], _row7[1], _row7[2], _row7[3]]);
      }
    } catch (err) {
      _iterator22.e(err);
    } finally {
      _iterator22.f();
    }

    if (val == "") {
      // reset rows
      var _iterator23 = _createForOfIteratorHelper(this.props.rows),
          _step23;

      try {
        for (_iterator23.s(); !(_step23 = _iterator23.n()).done;) {
          var row = _step23.value;
          var managedBase = row.managedbase === undefined ? "" : row.managedbase[0];
          var scope = row.originscope === undefined ? "" : row.originscope[0];
          var filter = row.originfilter === undefined ? "" : row.originfilter[0];
          rows.push([row.cn[0], scope, filter, managedBase]);
        }
      } catch (err) {
        _iterator23.e(err);
      } finally {
        _iterator23.f();
      }
    }

    this.setState({
      rows: rows,
      value: value,
      page: 1
    });
  }

  actions() {
    return [{
      title: 'Edit Config',
      onClick: (event, rowId, rowData, extra) => this.props.editConfig(rowData[0])
    }, {
      isSeparator: true
    }, {
      title: 'Delete Config',
      onClick: (event, rowId, rowData, extra) => this.props.deleteConfig(rowData[0])
    }];
  }

  render() {
    var rows = JSON.parse(JSON.stringify(this.state.rows)); // Deep copy

    var columns = this.state.columns;
    var has_rows = true;
    var tableRows;

    if (rows.length == 0) {
      has_rows = false;
      columns = [{
        title: 'Managed Entry Definitions'
      }];
      tableRows = [{
        cells: ['No definitions']
      }];
    } else {
      var startIdx = this.state.perPage * this.state.page - this.state.perPage;
      tableRows = rows.splice(startIdx, this.state.perPage);
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 5
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.SearchInput, {
      className: "ds-margin-top-lg",
      placeholder: "Search Definitions",
      value: this.state.value,
      onChange: this.onSearchChange,
      onClear: evt => this.onSearchChange('', evt)
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.Table, {
      className: "ds-margin-top",
      "aria-label": "managed def table",
      cells: columns,
      rows: tableRows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableVariant.compact,
      sortBy: this.state.sortBy,
      onSort: this.onSort,
      actions: has_rows ? this.actions() : null,
      dropdownPosition: "right",
      dropdownDirection: "bottom"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Pagination, {
      itemCount: this.props.rows.length,
      widgetId: "pagination-options-menu-bottom",
      perPage: this.state.perPage,
      page: this.state.page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

ManagedDefinitionTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
  editConfig: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  deleteConfig: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)
};
ManagedDefinitionTable.defaultProps = {
  rows: []
};

class ManagedTemplateTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'Template DN',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage
      });
    };

    this.onSort = this.onSort.bind(this);
    this.onSearchChange = this.onSearchChange.bind(this);
  }

  componentDidMount() {
    var rows = [];

    var _iterator24 = _createForOfIteratorHelper(this.props.rows),
        _step24;

    try {
      for (_iterator24.s(); !(_step24 = _iterator24.n()).done;) {
        var row = _step24.value;
        rows.push([row.entrydn[0]]);
      }
    } catch (err) {
      _iterator24.e(err);
    } finally {
      _iterator24.f();
    }

    this.setState({
      rows: rows
    });
  }

  onSort(_event, index, direction) {
    var sortedRows = this.state.rows.sort((a, b) => a[index] < b[index] ? -1 : a[index] > b[index] ? 1 : 0);
    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: direction === _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc ? sortedRows : sortedRows.reverse()
    });
  }

  onSearchChange(value, event) {
    var rows = [];
    var val = value.toLowerCase();

    var _iterator25 = _createForOfIteratorHelper(this.state.rows),
        _step25;

    try {
      for (_iterator25.s(); !(_step25 = _iterator25.n()).done;) {
        var _row8 = _step25.value;

        if (val != "" && _row8[0].indexOf(val) == -1) {
          // Not a match, skip it
          continue;
        }

        rows.push([_row8[0]]);
      }
    } catch (err) {
      _iterator25.e(err);
    } finally {
      _iterator25.f();
    }

    if (val == "") {
      // reset rows
      var _iterator26 = _createForOfIteratorHelper(this.props.rows),
          _step26;

      try {
        for (_iterator26.s(); !(_step26 = _iterator26.n()).done;) {
          var row = _step26.value;
          rows.push([row.entrydn[0]]);
        }
      } catch (err) {
        _iterator26.e(err);
      } finally {
        _iterator26.f();
      }
    }

    this.setState({
      rows: rows,
      value: value,
      page: 1
    });
  }

  actions() {
    return [{
      title: 'Edit Config',
      onClick: (event, rowId, rowData, extra) => this.props.editConfig(rowData[0])
    }, {
      isSeparator: true
    }, {
      title: 'Delete Config',
      onClick: (event, rowId, rowData, extra) => this.props.deleteConfig(rowData[0])
    }];
  }

  render() {
    var rows = JSON.parse(JSON.stringify(this.state.rows)); // Deep copy

    var columns = this.state.columns;
    var has_rows = true;
    var tableRows;

    if (rows.length == 0) {
      has_rows = false;
      columns = [{
        title: 'Managed Entry Templates'
      }];
      tableRows = [{
        cells: ['No templates']
      }];
    } else {
      var startIdx = this.state.perPage * this.state.page - this.state.perPage;
      tableRows = rows.splice(startIdx, this.state.perPage);
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 5
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.SearchInput, {
      placeholder: "Search Templates",
      className: "ds-margin-top-lg",
      value: this.state.value,
      onChange: this.onSearchChange,
      onClear: evt => this.onSearchChange('', evt)
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.Table, {
      className: "ds-margin-top",
      "aria-label": "managed template table",
      cells: columns,
      rows: tableRows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableVariant.compact,
      sortBy: this.state.sortBy,
      onSort: this.onSort,
      actions: has_rows ? this.actions() : null,
      dropdownPosition: "right",
      dropdownDirection: "bottom"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Pagination, {
      itemCount: this.props.rows.length,
      widgetId: "pagination-options-menu-bottom",
      perPage: this.state.perPage,
      page: this.state.page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

ManagedTemplateTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
  editConfig: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  deleteConfig: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)
};
ManagedTemplateTable.defaultProps = {
  rows: []
};

class PassthroughAuthURLsTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'URL',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage
      });
    };

    this.onSort = this.onSort.bind(this);
    this.onSearchChange = this.onSearchChange.bind(this);
  }

  componentDidMount() {
    var rows = [];

    var _iterator27 = _createForOfIteratorHelper(this.props.rows),
        _step27;

    try {
      for (_iterator27.s(); !(_step27 = _iterator27.n()).done;) {
        var row = _step27.value;
        rows.push([row.url]);
      }
    } catch (err) {
      _iterator27.e(err);
    } finally {
      _iterator27.f();
    }

    this.setState({
      rows: rows
    });
  }

  onSort(_event, index, direction) {
    var sortedRows = this.state.rows.sort((a, b) => a[index] < b[index] ? -1 : a[index] > b[index] ? 1 : 0);
    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: direction === _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc ? sortedRows : sortedRows.reverse()
    });
  }

  onSearchChange(value, event) {
    var rows = [];
    var val = value.toLowerCase();

    var _iterator28 = _createForOfIteratorHelper(this.state.rows),
        _step28;

    try {
      for (_iterator28.s(); !(_step28 = _iterator28.n()).done;) {
        var _row9 = _step28.value;

        if (val != "" && _row9[0].indexOf(val) == -1) {
          // Not a match, skip it
          continue;
        }

        rows.push([_row9[0]]);
      }
    } catch (err) {
      _iterator28.e(err);
    } finally {
      _iterator28.f();
    }

    if (val == "") {
      // reset rows
      var _iterator29 = _createForOfIteratorHelper(this.props.rows),
          _step29;

      try {
        for (_iterator29.s(); !(_step29 = _iterator29.n()).done;) {
          var row = _step29.value;
          rows.push([row.url]);
        }
      } catch (err) {
        _iterator29.e(err);
      } finally {
        _iterator29.f();
      }
    }

    this.setState({
      rows: rows,
      value: value,
      page: 1
    });
  }

  actions() {
    return [{
      title: 'Edit URL',
      onClick: (event, rowId, rowData, extra) => this.props.editConfig(rowData[0])
    }, {
      isSeparator: true
    }, {
      title: 'Delete URL',
      onClick: (event, rowId, rowData, extra) => this.props.deleteConfig(rowData[0])
    }];
  }

  render() {
    var rows = JSON.parse(JSON.stringify(this.state.rows)); // Deep copy

    var columns = this.state.columns;
    var has_rows = true;
    var tableRows;

    if (rows.length == 0) {
      has_rows = false;
      columns = [{
        title: 'Pass-Through Authentication URLs'
      }];
      tableRows = [{
        cells: ['No URLs']
      }];
    } else {
      var startIdx = this.state.perPage * this.state.page - this.state.perPage;
      tableRows = rows.splice(startIdx, this.state.perPage);
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 5
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.SearchInput, {
      placeholder: "Search",
      className: "ds-margin-top-lg",
      value: this.state.value,
      onChange: this.onSearchChange,
      onClear: evt => this.onSearchChange('', evt)
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.Table, {
      className: "ds-margin-top",
      "aria-label": "passthru url table",
      cells: columns,
      rows: tableRows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableVariant.compact,
      sortBy: this.state.sortBy,
      onSort: this.onSort,
      actions: has_rows ? this.actions() : null,
      dropdownPosition: "right",
      dropdownDirection: "bottom"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Pagination, {
      itemCount: this.props.rows.length,
      widgetId: "pagination-options-menu-bottom",
      perPage: this.state.perPage,
      page: this.state.page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

PassthroughAuthURLsTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
  editConfig: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  deleteConfig: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)
};
PassthroughAuthURLsTable.defaultProps = {
  rows: []
};

class PassthroughAuthConfigsTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'Config Name',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Attribute',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Map Method',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Filter',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage
      });
    };

    this.onSort = this.onSort.bind(this);
    this.onSearchChange = this.onSearchChange.bind(this);
  }

  componentDidMount() {
    var rows = [];

    var _iterator30 = _createForOfIteratorHelper(this.props.rows),
        _step30;

    try {
      for (_iterator30.s(); !(_step30 = _iterator30.n()).done;) {
        var row = _step30.value;
        var attr = row.pamidattr === undefined ? "" : row.pamidattr[0];
        var mapMethod = row.pamidmapmethod === undefined ? "" : row.pamidmapmethod[0];
        var filter = row.pamfilter === undefined ? "" : row.pamfilter[0];
        rows.push([row.cn[0], attr, mapMethod, filter]);
      }
    } catch (err) {
      _iterator30.e(err);
    } finally {
      _iterator30.f();
    }

    this.setState({
      rows: rows
    });
  }

  onSort(_event, index, direction) {
    var sortedRows = this.state.rows.sort((a, b) => a[index] < b[index] ? -1 : a[index] > b[index] ? 1 : 0);
    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: direction === _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc ? sortedRows : sortedRows.reverse()
    });
  }

  onSearchChange(value, event) {
    var rows = [];
    var val = value.toLowerCase();

    var _iterator31 = _createForOfIteratorHelper(this.state.rows),
        _step31;

    try {
      for (_iterator31.s(); !(_step31 = _iterator31.n()).done;) {
        var _row10 = _step31.value;

        if (val != "" && _row10[0].indexOf(val) == -1 && _row10[1].indexOf(val) == -1 && _row10[2].indexOf(val) == -1 && _row10[3].indexOf(val) == -1) {
          // Not a match, skip it
          continue;
        }

        rows.push([_row10[0], _row10[1], _row10[2], _row10[3]]);
      }
    } catch (err) {
      _iterator31.e(err);
    } finally {
      _iterator31.f();
    }

    if (val == "") {
      // reset rows
      var _iterator32 = _createForOfIteratorHelper(this.props.rows),
          _step32;

      try {
        for (_iterator32.s(); !(_step32 = _iterator32.n()).done;) {
          var row = _step32.value;
          var attr = row.pamidattr === undefined ? "" : row.pamidattr[0];
          var mapMethod = row.pamidmapmethod === undefined ? "" : row.pamidmapmethod[0];
          var filter = row.pamfilter === undefined ? "" : row.pamfilter[0];
          rows.push([row.cn[0], attr, mapMethod, filter]);
        }
      } catch (err) {
        _iterator32.e(err);
      } finally {
        _iterator32.f();
      }
    }

    this.setState({
      rows: rows,
      value: value,
      page: 1
    });
  }

  actions() {
    return [{
      title: 'Edit Config',
      onClick: (event, rowId, rowData, extra) => this.props.editConfig(rowData[0])
    }, {
      isSeparator: true
    }, {
      title: 'Delete Config',
      onClick: (event, rowId, rowData, extra) => this.props.deleteConfig(rowData[0])
    }];
  }

  render() {
    var rows = JSON.parse(JSON.stringify(this.state.rows)); // Deep copy

    var columns = this.state.columns;
    var has_rows = true;
    var tableRows;

    if (rows.length == 0) {
      has_rows = false;
      columns = [{
        title: 'PAM Configurations'
      }];
      tableRows = [{
        cells: ['No PAM configurations']
      }];
    } else {
      var startIdx = this.state.perPage * this.state.page - this.state.perPage;
      tableRows = rows.splice(startIdx, this.state.perPage);
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 5
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.SearchInput, {
      placeholder: "Search",
      className: "ds-margin-top-lg",
      value: this.state.value,
      onChange: this.onSearchChange,
      onClear: evt => this.onSearchChange('', evt)
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.Table, {
      className: "ds-margin-top",
      "aria-label": "pass config table",
      cells: columns,
      rows: tableRows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableVariant.compact,
      sortBy: this.state.sortBy,
      onSort: this.onSort,
      actions: has_rows ? this.actions() : null,
      dropdownPosition: "right",
      dropdownDirection: "bottom"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Pagination, {
      itemCount: this.props.rows.length,
      widgetId: "pagination-options-menu-bottom",
      perPage: this.state.perPage,
      page: this.state.page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

PassthroughAuthConfigsTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
  editConfig: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  deleteConfig: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)
};
PassthroughAuthConfigsTable.defaultProps = {
  rows: []
};


/***/ }),

/***/ "./src/lib/plugins/referentialIntegrity.jsx":
/*!**************************************************!*\
  !*** ./src/lib/plugins/referentialIntegrity.jsx ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormHelperText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/NumberInput/NumberInput.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_17__);
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }









class ReferentialIntegrity extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  componentDidMount(prevProps) {
    if (this.props.wasActiveList.includes(5)) {
      if (this.state.firstLoad) {
        this.updateFields();
      }
    }
  }

  componentDidUpdate(prevProps) {
    if (this.props.rows !== prevProps.rows) {
      this.updateFields();
    }
  }

  constructor(props) {
    super(props);
    this.state = {
      firstLoad: true,
      newEntry: true,
      isConfigMembershipAttrOpen: false,
      isMembershipAttrOpen: false,
      configEntryModalShow: false,
      saveBtnDisabled: true,
      saveBtnDisabledModal: true,
      saving: false,
      savingModal: false,
      modalSpinning: false,
      modalChecked: false,
      error: {},
      errorModal: {},
      showConfirmDelete: false,
      addSpinning: false,
      // Main settings
      updateDelay: "",
      membershipAttr: [],
      entryScope: "",
      excludeEntryScope: "",
      containerScope: "",
      logFile: "",
      referintConfigEntry: "",
      _updateDelay: "",
      _membershipAttr: [],
      _entryScope: "",
      _excludeEntryScope: "",
      _containerScope: "",
      _logFile: "",
      _referintConfigEntry: "",
      // Shared Config settings
      configDN: "",
      configUpdateDelay: "",
      configMembershipAttr: [],
      configEntryScope: "",
      configExcludeEntryScope: "",
      configContainerScope: "",
      configLogFile: "",
      _configDN: "",
      _configUpdateDelay: "",
      _configMembershipAttr: [],
      _configEntryScope: "",
      _configExcludeEntryScope: "",
      _configContainerScope: "",
      _configLogFile: ""
    }; // Config Membership Attribute

    this.onConfigMembershipAttrSelect = (event, selection) => {
      if (this.state.configMembershipAttr.includes(selection)) {
        this.setState(prevState => ({
          configMembershipAttr: prevState.configMembershipAttr.filter(item => item !== selection),
          isConfigMembershipAttrOpen: false
        }), () => {
          this.validateModal();
        });
      } else {
        this.setState(prevState => ({
          configMembershipAttr: [...prevState.configMembershipAttr, selection],
          isConfigMembershipAttrOpen: false
        }), () => {
          this.validateModal();
        });
      }
    };

    this.onConfigMembershipAttrToggle = isConfigMembershipAttrOpen => {
      this.setState({
        isConfigMembershipAttrOpen
      });
    };

    this.onConfigMembershipAttrClear = () => {
      this.setState({
        configMembershipAttr: [],
        isConfigMembershipAttrOpen: false
      });
    }; // Membership Attribute


    this.onMembershipAttrSelect = (event, selection) => {
      if (this.state.membershipAttr.includes(selection)) {
        this.setState(prevState => ({
          membershipAttr: prevState.membershipAttr.filter(item => item !== selection),
          isMembershipAttrOpen: false
        }), () => {
          this.validateConfig();
        });
      } else {
        this.setState(prevState => ({
          membershipAttr: [...prevState.membershipAttr, selection],
          isMembershipAttrOpen: false
        }), () => {
          this.validateConfig();
        });
      }
    };

    this.onMembershipAttrToggle = isMembershipAttrOpen => {
      this.setState({
        isMembershipAttrOpen
      });
    };

    this.onMembershipAttrClear = () => {
      this.setState({
        membershipAttr: [],
        isMembershipAttrOpen: false
      });
    };

    this.maxValue = 20000000;

    this.onMinusConfig = id => {
      this.setState({
        [id]: Number(this.state[id]) - 1
      }, () => {
        this.validateConfig();
      });
    };

    this.onConfigChange = (event, id, min) => {
      var newValue = isNaN(event.target.value) ? 0 : Number(event.target.value);
      this.setState({
        [id]: newValue > this.maxValue ? this.maxValue : newValue < min ? min : newValue
      }, () => {
        id.startsWith("config") ? this.validateModal() : this.validateConfig();
      });
    };

    this.onPlusConfig = id => {
      this.setState({
        [id]: Number(this.state[id]) + 1
      }, () => {
        this.validateConfig();
      });
    };

    this.updateFields = this.updateFields.bind(this);
    this.handleChange = this.handleChange.bind(this);
    this.handleFieldChange = this.handleFieldChange.bind(this);
    this.handleModalChange = this.handleModalChange.bind(this);
    this.openModal = this.openModal.bind(this);
    this.closeModal = this.closeModal.bind(this);
    this.addConfig = this.addConfig.bind(this);
    this.editConfig = this.editConfig.bind(this);
    this.deleteConfig = this.deleteConfig.bind(this);
    this.cmdConfigOperation = this.cmdConfigOperation.bind(this);
    this.validateConfig = this.validateConfig.bind(this);
    this.validateModal = this.validateModal.bind(this);
    this.saveConfig = this.saveConfig.bind(this);
    this.showConfirmDelete = this.showConfirmDelete.bind(this);
    this.closeConfirmDelete = this.closeConfirmDelete.bind(this);
  }

  showConfirmDelete() {
    this.setState({
      showConfirmDelete: true,
      modalChecked: false,
      modalSpinning: false
    });
  }

  closeConfirmDelete() {
    this.setState({
      showConfirmDelete: false,
      modalChecked: false,
      modalSpinning: false
    });
  }

  validateConfig() {
    var errObj = {};
    var all_good = true;
    var dnAttrs = ['entryScope', 'excludeEntryScope', 'containerScope', 'referintConfigEntry'];
    var reqAttrs = ['logFile'];

    for (var _i = 0, _dnAttrs = dnAttrs; _i < _dnAttrs.length; _i++) {
      var attr = _dnAttrs[_i];
      errObj[attr] = false;

      if (this.state[attr] != "" && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.valid_dn)(this.state[attr])) {
        errObj[attr] = true;
        all_good = false;
      }
    }

    for (var _i2 = 0, _reqAttrs = reqAttrs; _i2 < _reqAttrs.length; _i2++) {
      var _attr = _reqAttrs[_i2];

      if (this.state[_attr] == "") {
        errObj[_attr] = true;
        all_good = false;
      }
    }

    if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.file_is_path)(this.state.logFile)) {
      errObj.logFile = true;
      all_good = false;
    }

    errObj.membershipAttr = false;

    if (this.state.membershipAttr.length == 0) {
      errObj.membershipAttr = true;
      all_good = false;
    }

    if (all_good) {
      // Check for value differences to see if the save btn should be enabled
      all_good = false;
      var attrs = ['entryScope', 'excludeEntryScope', 'containerScope', 'referintConfigEntry', 'updateDelay', 'logFile'];

      for (var _i3 = 0, _attrs = attrs; _i3 < _attrs.length; _i3++) {
        var check_attr = _attrs[_i3];

        if (this.state[check_attr] != this.state['_' + check_attr]) {
          all_good = true;
          break;
        }
      }

      if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.listsEqual)(this.state.membershipAttr, this.state._membershipAttr)) {
        all_good = true;
      }
    }

    this.setState({
      saveBtnDisabled: !all_good,
      error: errObj
    });
    return all_good;
  }

  validateModal() {
    var errObj = {};
    var all_good = true;
    var dnAttrs = ['configDN', 'configEntryScope', 'configExcludeEntryScope', 'configContainerScope'];
    var reqAttrs = ['configDN', 'configLogFile'];

    for (var _i4 = 0, _dnAttrs2 = dnAttrs; _i4 < _dnAttrs2.length; _i4++) {
      var attr = _dnAttrs2[_i4];

      if (this.state[attr] != "" && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.valid_dn)(this.state[attr])) {
        errObj[attr] = true;
        all_good = false;
      }
    }

    for (var _i5 = 0, _reqAttrs2 = reqAttrs; _i5 < _reqAttrs2.length; _i5++) {
      var _attr2 = _reqAttrs2[_i5];

      if (this.state[_attr2] == "") {
        errObj[_attr2] = true;
        all_good = false;
      }
    }

    if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.file_is_path)(this.state.configLogFile)) {
      errObj.configLogFile = true;
      all_good = false;
    }

    errObj.configMembershipAttr = false;

    if (this.state.configMembershipAttr.length == 0) {
      errObj.configMembershipAttr = true;
      all_good = false;
    }

    if (all_good) {
      // Check for value differences to see if the save btn should be enabled
      all_good = false;
      var attrs = ['configDN', 'configEntryScope', 'configExcludeEntryScope', 'configContainerScope', 'configUpdateDelay'];

      for (var _i6 = 0, _attrs2 = attrs; _i6 < _attrs2.length; _i6++) {
        var check_attr = _attrs2[_i6];

        if (this.state[check_attr] != this.state['_' + check_attr]) {
          all_good = true;
          break;
        }
      }

      if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.listsEqual)(this.state.configMembershipAttr, this.state._configMembershipAttr)) {
        all_good = true;
      }
    }

    this.setState({
      saveBtnDisabledModal: !all_good,
      errorModal: errObj
    });
  }

  handleChange(e) {
    // Generic handler for things that don't need validating
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [e.target.id]: value
    });
  }

  handleFieldChange(e) {
    this.setState({
      [e.target.id]: e.target.value
    }, () => {
      this.validateConfig();
    });
  }

  handleModalChange(e) {
    this.setState({
      [e.target.id]: e.target.value
    }, () => {
      this.validateModal();
    });
  }

  saveConfig() {
    var _this$state = this.state,
        membershipAttr = _this$state.membershipAttr,
        entryScope = _this$state.entryScope,
        excludeEntryScope = _this$state.excludeEntryScope,
        containerScope = _this$state.containerScope,
        logFile = _this$state.logFile,
        referintConfigEntry = _this$state.referintConfigEntry;
    var updateDelay = this.state.updateDelay.toString();
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "referential-integrity", "set", "--update-delay", updateDelay || "delete", "--entry-scope", entryScope || "delete", "--exclude-entry-scope", excludeEntryScope || "delete", "--container-scope", containerScope || "delete", "--config-entry", referintConfigEntry || "delete", "--log-file", logFile || "delete"]; // Delete attributes if the user set an empty value to the field

    cmd = [...cmd, "--membership-attr"];

    if (membershipAttr.length != 0) {
      var _iterator = _createForOfIteratorHelper(membershipAttr),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var value = _step.value;
          cmd = [...cmd, value];
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }
    } else {
      cmd = [...cmd, "delete"];
    }

    this.setState({
      saving: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("saveConfig", "Save Referential Integrity Plugin", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("referintOperation", "Result", content);
      this.props.addNotification("success", "Successfully updated Referential Integrity Plugin");
      this.setState({
        saving: false
      });
      this.props.pluginListHandler();
    }).fail(err => {
      var errMsg = JSON.parse(err);

      if ('info' in errMsg) {
        errMsg = errMsg.desc + " " + errMsg.info;
      } else {
        errMsg = errMsg.desc;
      }

      this.props.addNotification("error", "Error during update - ".concat(errMsg));
      this.setState({
        saving: false
      });
      this.props.pluginListHandler();
    });
  }

  openModal() {
    if (!this.state.referintConfigEntry) {
      this.setState({
        configEntryModalShow: true,
        newEntry: true,
        configDN: "",
        configUpdateDelay: "0",
        configMembershipAttr: [],
        configEntryScope: "",
        configExcludeEntryScope: "",
        configContainerScope: "",
        configLogFile: "",
        _configDN: "",
        _configUpdateDelay: "",
        _configMembershipAttr: [],
        _configEntryScope: "",
        _configExcludeEntryScope: "",
        _configContainerScope: "",
        _configLogFile: "",
        addSpinning: false,
        savingModal: false
      });
    } else {
      var membershipAttrList = [];
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "referential-integrity", "config-entry", "show", this.state.referintConfigEntry];
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("openModal", "Fetch the Referential Integrity Plugin config entry", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        var pluginRow = JSON.parse(content).attrs;
        this.setState({
          configEntryModalShow: true,
          newEntry: false,
          configDN: this.state.referintConfigEntry,
          configUpdateDelay: pluginRow["referint-update-delay"] === undefined ? "" : pluginRow["referint-update-delay"][0],
          configEntryScope: pluginRow["nsslapd-pluginentryscope"] === undefined ? "" : pluginRow["nsslapd-pluginentryscope"][0],
          configExcludeEntryScope: pluginRow["nsslapd-pluginexcludeentryscope"] === undefined ? "" : pluginRow["nsslapd-pluginexcludeentryscope"][0],
          configContainerScope: pluginRow["nsslapd-plugincontainerscope"] === undefined ? "" : pluginRow["nsslapd-plugincontainerscope"][0],
          configLogFile: pluginRow["referint-logfile"] === undefined ? "" : pluginRow["referint-logfile"][0],
          _configUpdateDelay: pluginRow["referint-update-delay"] === undefined ? "" : pluginRow["referint-update-delay"][0],
          _configEntryScope: pluginRow["nsslapd-pluginentryscope"] === undefined ? "" : pluginRow["nsslapd-pluginentryscope"][0],
          _configExcludeEntryScope: pluginRow["nsslapd-pluginexcludeentryscope"] === undefined ? "" : pluginRow["nsslapd-pluginexcludeentryscope"][0],
          _configContainerScope: pluginRow["nsslapd-plugincontainerscope"] === undefined ? "" : pluginRow["nsslapd-plugincontainerscope"][0],
          _configLogFile: pluginRow["referint-logfile"] === undefined ? "" : pluginRow["referint-logfile"][0]
        });

        if (pluginRow["referint-membership-attr"] === undefined) {
          this.setState({
            configMembershipAttr: [],
            _configMembershipAttr: []
          });
        } else {
          var _iterator2 = _createForOfIteratorHelper(pluginRow["referint-membership-attr"]),
              _step2;

          try {
            for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
              var value = _step2.value;
              membershipAttrList = [...membershipAttrList, value];
            }
          } catch (err) {
            _iterator2.e(err);
          } finally {
            _iterator2.f();
          }

          this.setState({
            configMembershipAttr: membershipAttrList,
            _configMembershipAttr: [...membershipAttrList]
          });
        }
      }).fail(_ => {
        this.setState({
          configEntryModalShow: true,
          newEntry: true,
          configDN: this.state.referintConfigEntry,
          configUpdateDelay: "0",
          configMembershipAttr: [],
          configEntryScope: "",
          configExcludeEntryScope: "",
          configContainerScope: "",
          configLogFile: "",
          _configDN: this.state.referintConfigEntry,
          _configUpdateDelay: "",
          _configMembershipAttr: [],
          _configEntryScope: "",
          _configExcludeEntryScope: "",
          _configContainerScope: "",
          _configLogFile: "",
          savingModal: false
        });
      });
    }
  }

  closeModal() {
    this.setState({
      configEntryModalShow: false,
      savingModal: false,
      addSpinning: false,
      modalSpinning: false
    });
  }

  cmdConfigOperation(action) {
    var _this$state2 = this.state,
        configDN = _this$state2.configDN,
        configUpdateDelay = _this$state2.configUpdateDelay,
        configMembershipAttr = _this$state2.configMembershipAttr,
        configEntryScope = _this$state2.configEntryScope,
        configExcludeEntryScope = _this$state2.configExcludeEntryScope,
        configContainerScope = _this$state2.configContainerScope,
        configLogFile = _this$state2.configLogFile;
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "referential-integrity", "config-entry", action, configDN, "--update-delay", configUpdateDelay || action == "add" ? configUpdateDelay : "delete", "--entry-scope", configEntryScope || action == "add" ? configEntryScope : "delete", "--exclude-entry-scope", configExcludeEntryScope || action == "add" ? configExcludeEntryScope : "delete", "--container-scope", configContainerScope || action == "add" ? configContainerScope : "delete", "--log-file", configLogFile || action == "add" ? configLogFile : "delete"]; // Delete attributes if the user set an empty value to the field

    cmd = [...cmd, "--membership-attr"];

    if (configMembershipAttr.length != 0) {
      var _iterator3 = _createForOfIteratorHelper(configMembershipAttr),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var value = _step3.value;
          cmd = [...cmd, value];
        }
      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }
    } else if (action == "add") {
      cmd = [...cmd, ""];
    } else {
      cmd = [...cmd, "delete"];
    }

    var spinning = "savingModal";

    if (action == "add") {
      spinning = "addSpinning";
    }

    this.setState({
      [spinning]: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("referintOperation", "Do the ".concat(action, " operation on the Referential Integrity Plugin"), cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("referintOperation", "Result", content);
      this.props.addNotification("success", "Config entry ".concat(configDN, " was successfully ").concat(action, "ed"));
      this.props.pluginListHandler();
      this.closeModal();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error during the config entry ".concat(action, " operation - ").concat(errMsg.desc));
      this.props.pluginListHandler();
      this.closeModal();
    });
  }

  deleteConfig() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "referential-integrity", "config-entry", "delete", this.state.configDN];
    this.setState({
      modalSpinning: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("deleteConfig", "Delete the Referential Integrity Plugin config entry", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("deleteConfig", "Result", content);
      this.props.addNotification("success", "Config entry ".concat(this.state.configDN, " was successfully deleted"));
      this.props.pluginListHandler();
      this.closeConfirmDelete();
      this.closeModal();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error during the config entry removal operation - ".concat(errMsg.desc));
      this.props.pluginListHandler();
      this.closeConfirmDelete();
      this.closeModal();
    });
  }

  addConfig() {
    this.cmdConfigOperation("add");
  }

  editConfig() {
    this.cmdConfigOperation("set");
  }

  updateFields() {
    var membershipAttrList = [];

    if (this.props.rows.length > 0) {
      var pluginRow = this.props.rows.find(row => row.cn[0] === "referential integrity postoperation");
      this.setState({
        updateDelay: pluginRow["referint-update-delay"] === undefined ? "0" : pluginRow["referint-update-delay"][0],
        _updateDelay: pluginRow["referint-update-delay"] === undefined ? "0" : pluginRow["referint-update-delay"][0],
        entryScope: pluginRow["nsslapd-pluginentryscope"] === undefined ? "" : pluginRow["nsslapd-pluginentryscope"][0],
        _entryScope: pluginRow["nsslapd-pluginentryscope"] === undefined ? "" : pluginRow["nsslapd-pluginentryscope"][0],
        excludeEntryScope: pluginRow["nsslapd-pluginexcludeentryscope"] === undefined ? "" : pluginRow["nsslapd-pluginexcludeentryscope"][0],
        _excludeEntryScope: pluginRow["nsslapd-pluginexcludeentryscope"] === undefined ? "" : pluginRow["nsslapd-pluginexcludeentryscope"][0],
        containerScope: pluginRow["nsslapd-plugincontainerscope"] === undefined ? "" : pluginRow["nsslapd-plugincontainerscope"][0],
        _containerScope: pluginRow["nsslapd-plugincontainerscope"] === undefined ? "" : pluginRow["nsslapd-plugincontainerscope"][0],
        referintConfigEntry: pluginRow["nsslapd-pluginConfigArea"] === undefined ? "" : pluginRow["nsslapd-pluginConfigArea"][0],
        _referintConfigEntry: pluginRow["nsslapd-pluginConfigArea"] === undefined ? "" : pluginRow["nsslapd-pluginConfigArea"][0],
        logFile: pluginRow["referint-logfile"] === undefined ? "" : pluginRow["referint-logfile"][0],
        _logFile: pluginRow["referint-logfile"] === undefined ? "" : pluginRow["referint-logfile"][0]
      });

      if (pluginRow["referint-membership-attr"] === undefined) {
        this.setState({
          membershipAttr: [],
          _membershipAttr: []
        });
      } else {
        var _iterator4 = _createForOfIteratorHelper(pluginRow["referint-membership-attr"]),
            _step4;

        try {
          for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
            var value = _step4.value;
            membershipAttrList = [...membershipAttrList, value];
          }
        } catch (err) {
          _iterator4.e(err);
        } finally {
          _iterator4.f();
        }

        this.setState({
          membershipAttr: membershipAttrList,
          _membershipAttr: [...membershipAttrList]
        });
      }
    }
  }

  render() {
    var _this$state3 = this.state,
        updateDelay = _this$state3.updateDelay,
        membershipAttr = _this$state3.membershipAttr,
        entryScope = _this$state3.entryScope,
        excludeEntryScope = _this$state3.excludeEntryScope,
        containerScope = _this$state3.containerScope,
        logFile = _this$state3.logFile,
        referintConfigEntry = _this$state3.referintConfigEntry,
        configDN = _this$state3.configDN,
        configUpdateDelay = _this$state3.configUpdateDelay,
        configMembershipAttr = _this$state3.configMembershipAttr,
        configEntryScope = _this$state3.configEntryScope,
        configExcludeEntryScope = _this$state3.configExcludeEntryScope,
        configContainerScope = _this$state3.configContainerScope,
        configEntryModalShow = _this$state3.configEntryModalShow,
        configLogFile = _this$state3.configLogFile,
        newEntry = _this$state3.newEntry,
        saveBtnDisabled = _this$state3.saveBtnDisabled,
        saveBtnDisabledModal = _this$state3.saveBtnDisabledModal,
        saving = _this$state3.saving,
        savingModal = _this$state3.savingModal,
        addSpinning = _this$state3.addSpinning,
        modalSpinning = _this$state3.modalSpinning,
        error = _this$state3.error,
        errorModal = _this$state3.errorModal;
    var saveBtnText = "Save Config";
    var addBtnText = "Add Config";
    var extraPrimaryProps = {};

    if (savingModal) {
      saveBtnText = "Saving ...";
      addBtnText = "Adding ...";
      extraPrimaryProps.spinnerAriaValueText = "Loading";
    }

    var modalButtons = [];

    if (!newEntry) {
      modalButtons = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, {
        key: "del",
        variant: "primary",
        onClick: this.showConfirmDelete
      }, "Delete Config"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, _extends({
        key: "save",
        variant: "primary",
        onClick: this.editConfig,
        isDisabled: saveBtnDisabledModal,
        isLoading: savingModal,
        spinnerAriaValueText: savingModal ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.closeModal
      }, "Cancel")];
    } else {
      modalButtons = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, _extends({
        key: "add",
        variant: "primary",
        onClick: this.addConfig,
        isDisabled: saveBtnDisabledModal,
        isLoading: addSpinning,
        spinnerAriaValueText: addSpinning ? "Saving" : undefined
      }, extraPrimaryProps), addBtnText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.closeModal
      }, "Cancel")];
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: saving || savingModal || addSpinning || modalSpinning ? "ds-disabled" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.ModalVariant.medium,
      title: "Manage Referential Integrity Plugin Shared Config Entry",
      isOpen: configEntryModalShow,
      "aria-labelledby": "ds-modal",
      onClose: this.closeModal,
      actions: modalButtons
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      className: "ds-margin-top",
      title: "The config entry full DN"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Config DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextInput, {
      value: configDN,
      type: "text",
      id: "configDN",
      "aria-describedby": "horizontal-form-name-helper",
      name: "configDN",
      onChange: (str, e) => {
        this.handleModalChange(e);
      },
      validated: errorModal.configDN ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.ValidatedOptions["default"],
      isDisabled: !newEntry
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.FormHelperText, {
      isError: true,
      isHidden: !errorModal.configDN
    }, "Value must be a valid DN"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "Specifies attributes to check for and update (referint-membership-attr)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Membership Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type an attribute",
      onToggle: this.onConfigMembershipAttrToggle,
      onSelect: this.onConfigMembershipAttrSelect,
      onClear: this.onConfigMembershipAttrClear,
      selections: configMembershipAttr,
      isOpen: this.state.isConfigMembershipAttrOpen,
      "aria-labelledby": "typeAhead-config-membership-attr",
      placeholderText: "Type an attribute...",
      noResultsFoundText: "There are no matching entries",
      validated: errorModal.configMembershipAttr ? 'error' : 'default'
    }, this.props.attributes.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
      key: index,
      value: attr
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.FormHelperText, {
      isError: true,
      isHidden: !errorModal.configMembershipAttr
    }, "At least one attribute must be specified"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "Defines the subtree in which the plug-in looks for the delete or rename operations of a user entry (nsslapd-pluginEntryScope)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Entry Scope"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextInput, {
      value: configEntryScope,
      type: "text",
      id: "configEntryScope",
      "aria-describedby": "horizontal-form-name-helper",
      name: "configEntryScope",
      onChange: (str, e) => {
        this.handleModalChange(e);
      },
      validated: errorModal.configEntryScope ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.ValidatedOptions["default"]
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.FormHelperText, {
      isError: true,
      isHidden: !errorModal.configEntryScope
    }, "Value must be a valid DN")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "Defines the subtree in which the plug-in ignores any operations for deleting or renaming a user (nsslapd-pluginExcludeEntryScope)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Exclude Entry Scope"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextInput, {
      value: configExcludeEntryScope,
      type: "text",
      id: "configExcludeEntryScope",
      "aria-describedby": "horizontal-form-name-helper",
      name: "configExcludeEntryScope",
      onChange: (str, e) => {
        this.handleModalChange(e);
      },
      validated: errorModal.configExcludeEntryScope ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.FormHelperText, {
      isError: true,
      isHidden: !errorModal.configExcludeEntryScope
    }, "Value must be a valid DN"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "Specifies which branch the plug-in searches for the groups to which the user belongs. It only updates groups that are under the specified container branch, and leaves all other groups not updated (nsslapd-pluginContainerScope)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Container Scope"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextInput, {
      value: configContainerScope,
      type: "text",
      id: "configContainerScope",
      "aria-describedby": "horizontal-form-name-helper",
      name: "configContainerScope",
      onChange: (str, e) => {
        this.handleModalChange(e);
      },
      validated: errorModal.configContainerScope ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.FormHelperText, {
      isError: true,
      isHidden: !errorModal.configContainerScope
    }, "Value must be a valid DN"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "Specifies a path to the Referential integrity logfile. For example: /var/log/dirsrv/slapd-".concat(this.props.serverId, "/referint")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Logfile"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextInput, {
      value: configLogFile,
      type: "text",
      id: "configLogFile",
      "aria-describedby": "horizontal-form-name-helper",
      name: "configLogFile",
      onChange: (str, e) => {
        this.handleModalChange(e);
      },
      validated: errorModal.configLogFile ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.FormHelperText, {
      isError: true,
      isHidden: !errorModal.configLogFile
    }, "Invalid log file name"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "Sets the update interval in seconds. Special values: 0 - The check is performed immediately, -1 - No check is performed. (referint-update-delay)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Update Delay"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.NumberInput, {
      value: configUpdateDelay,
      min: -1,
      max: this.maxValue,
      onMinus: () => {
        this.onMinusConfig("configUpdateDelay");
      },
      onChange: e => {
        this.onConfigChange(e, "configUpdateDelay", -1);
      },
      onPlus: () => {
        this.onPlusConfig("configUpdateDelay");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], {
      rows: this.props.rows,
      serverId: this.props.serverId,
      cn: "referential integrity postoperation",
      pluginName: "Referential Integrity",
      cmdName: "referential-integrity",
      savePluginHandler: this.props.savePluginHandler,
      pluginListHandler: this.props.pluginListHandler,
      addNotification: this.props.addNotification,
      toggleLoadingHandler: this.props.toggleLoadingHandler,
      saveBtnDisabled: this.state.saveBtnDisabled
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "Specifies attributes to check for and update (referint-membership-attr)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Membership Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 7
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type an attribute",
      onToggle: this.onMembershipAttrToggle,
      onSelect: this.onMembershipAttrSelect,
      onClear: this.onMembershipAttrClear,
      selections: membershipAttr,
      isOpen: this.state.isMembershipAttrOpen,
      "aria-labelledby": "typeAhead-membership-attr",
      placeholderText: "Type an attribute...",
      noResultsFoundText: "There are no matching entries",
      validated: error.membershipAttr ? 'error' : 'default'
    }, this.props.attributes.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
      key: index,
      value: attr
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.FormHelperText, {
      isError: true,
      isHidden: !error.membershipAttr
    }, "At least one attribute needs to be specified"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "Defines the subtree in which the plug-in looks for the delete or rename operations of a user entry (nsslapd-pluginEntryScope)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Entry Scope"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 7
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextInput, {
      value: entryScope,
      type: "text",
      id: "entryScope",
      "aria-describedby": "horizontal-form-name-helper",
      name: "entryScope",
      onChange: (str, e) => {
        this.handleFieldChange(e);
      },
      validated: error.entryScope ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.FormHelperText, {
      isError: true,
      isHidden: !error.entryScope
    }, "The value must be a valid DN"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "Defines the subtree in which the plug-in ignores any operations for deleting or renaming a user (nsslapd-pluginExcludeEntryScope)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Exclude Entry Scope"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 7
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextInput, {
      value: excludeEntryScope,
      type: "text",
      id: "excludeEntryScope",
      "aria-describedby": "horizontal-form-name-helper",
      name: "excludeEntryScope",
      onChange: (str, e) => {
        this.handleFieldChange(e);
      },
      validated: error.excludeEntryScope ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.FormHelperText, {
      isError: true,
      isHidden: !error.excludeEntryScope
    }, "The value must be a valid DN"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "Specifies which branch the plug-in searches for the groups to which the user belongs. It only updates groups that are under the specified container branch, and leaves all other groups not updated (nsslapd-pluginContainerScope)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Container Scope"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 7
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextInput, {
      value: containerScope,
      type: "text",
      id: "containerScope",
      "aria-describedby": "horizontal-form-name-helper",
      name: "containerScope",
      onChange: (str, e) => {
        this.handleFieldChange(e);
      },
      validated: error.containerScope ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.FormHelperText, {
      isError: true,
      isHidden: !error.containerScope
    }, "The value must be a valid DN"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "Specifies a path to the Referential integrity logfile. For example: /var/log/dirsrv/slapd-".concat(this.props.serverId, "/referint")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Logfile"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 7
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextInput, {
      value: logFile,
      type: "text",
      id: "logFile",
      "aria-describedby": "horizontal-form-name-helper",
      name: "logFile",
      onChange: (str, e) => {
        this.handleFieldChange(e);
      },
      validated: error.logFile ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.FormHelperText, {
      isError: true,
      isHidden: !error.logFile
    }, "Invalid log nameN"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "Sets the update interval. Special values: 0 - The check is performed immediately, -1 - No check is performed (referint-update-delay)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Update Delay"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 7
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.NumberInput, {
      value: updateDelay,
      min: -1,
      max: this.maxValue,
      onMinus: () => {
        this.onMinusConfig("updateDelay");
      },
      onChange: e => {
        this.onConfigChange(e, "updateDelay", 0);
      },
      onPlus: () => {
        this.onPlusConfig("updateDelay");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8,
      unit: "Seconds"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "The value to set as nsslapd-pluginConfigArea"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Shared Config Entry"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 7
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextInput, {
      value: referintConfigEntry,
      type: "text",
      id: "referintConfigEntry",
      "aria-describedby": "horizontal-form-name-helper",
      name: "referintConfigEntry",
      onChange: (str, e) => {
        this.handleFieldChange(e);
      },
      validated: error.referintConfigEntry ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.FormHelperText, {
      isError: true,
      isHidden: !error.referintConfigEntry
    }, "The value must be a valid DN")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 1
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, {
      className: "ds-left-margin",
      variant: "primary",
      onClick: this.openModal
    }, "Manage")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, _extends({
      className: "ds-margin-top-lg",
      key: "at",
      isLoading: saving,
      spinnerAriaValueText: saving ? "Loading" : undefined,
      variant: "primary",
      onClick: this.saveConfig
    }, extraPrimaryProps, {
      isDisabled: saveBtnDisabled
    }), saveBtnText)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_4__.DoubleConfirmModal, {
      showModal: this.state.showConfirmDelete,
      closeHandler: this.closeConfirmDelete,
      handleChange: this.handleChange,
      actionHandler: this.deleteConfig,
      spinning: this.state.modalSpinning,
      item: this.state.configDN,
      checked: this.state.modalChecked,
      mTitle: "Delete RI Plugin Config Entry",
      mMsg: "Are you sure you want to delete this config entry?",
      mSpinningMsg: "Deleting ...",
      mBtnName: "Delete"
    }));
  }

}

ReferentialIntegrity.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().array),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().string),
  savePluginHandler: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().func),
  pluginListHandler: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().func),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().func),
  toggleLoadingHandler: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().func)
};
ReferentialIntegrity.defaultProps = {
  rows: [],
  serverId: ""
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ReferentialIntegrity);

/***/ }),

/***/ "./src/lib/plugins/retroChangelog.jsx":
/*!********************************************!*\
  !*** ./src/lib/plugins/retroChangelog.jsx ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormHelperText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/NumberInput/NumberInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_17__);
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }








class RetroChangelog extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  componentDidMount(prevProps) {
    if (this.state.firstLoad) {
      this.updateFields();
    }
  }

  componentDidUpdate(prevProps) {
    if (this.props.rows !== prevProps.rows) {
      this.updateFields();
    }
  }

  constructor(props) {
    super(props);
    this.state = {
      firstLoad: true,
      saveBtnDisabled: true,
      saving: false,
      error: {},
      // Config settings
      isReplicated: false,
      maxAge: 0,
      maxAgeUnit: "w",
      trimInterval: 300,
      excludeSuffix: [],
      excludeAttrs: [],
      // original values
      _isReplicated: false,
      _maxAge: 0,
      _maxAgeUnit: "w",
      _trimInterval: 300,
      _excludeSuffix: [],
      _excludeAttrs: [],
      isExcludeAttrOpen: false,
      isExcludeSuffixOpen: false
    };
    this.maxValue = 20000000;
    this.minValue = 0;

    this.onMinusConfig = () => {
      this.setState({
        maxAge: Number(this.state.maxAge) - 1
      }, () => {
        this.validate();
      });
    };

    this.onMaxAgeChange = event => {
      var newValue = isNaN(event.target.value) ? 0 : Number(event.target.value);
      this.setState({
        maxAge: newValue > this.maxValue ? this.maxValue : newValue < this.minValue ? this.minValue : newValue
      }, () => {
        this.validate();
      });
    };

    this.onPlusConfig = () => {
      this.setState({
        maxAge: Number(this.state.maxAge) + 1
      }, () => {
        this.validate();
      });
    };

    this.onMinusTrim = () => {
      this.setState({
        trimInterval: Number(this.state.trimInterval) - 1
      }, () => {
        this.validate();
      });
    };

    this.onTrimChange = event => {
      var newValue = isNaN(event.target.value) ? 0 : Number(event.target.value);
      this.setState({
        trimInterval: newValue > this.maxValue ? this.maxValue : newValue < this.minValue ? this.minValue : newValue
      }, () => {
        this.validate();
      });
    };

    this.onPlusTrim = () => {
      this.setState({
        trimInterval: Number(this.state.trimInterval) + 1
      }, () => {
        this.validate();
      });
    };

    this.onExcludeAttrSelect = (event, selection) => {
      if (this.state.excludeAttrs.includes(selection)) {
        this.setState(prevState => ({
          excludeAttrs: prevState.excludeAttrs.filter(item => item !== selection),
          isExcludeAttrOpen: false
        }), () => {
          this.validate();
        });
      } else {
        this.setState(prevState => ({
          excludeAttrs: [...prevState.excludeAttrs, selection],
          isExcludeAttrOpen: false
        }), () => {
          this.validate();
        });
      }
    };

    this.onExcludeAttrToggle = isExcludeAttrOpen => {
      this.setState({
        isExcludeAttrOpen
      });
    };

    this.onExcludeAttrClear = () => {
      this.setState({
        excludeAttrs: [],
        isExcludeAttrOpen: false
      }, () => {
        this.validate();
      });
    };

    this.onExcludeSuffixSelect = (event, selection) => {
      if (this.state.excludeSuffix.includes(selection)) {
        this.setState(prevState => ({
          excludeSuffix: prevState.excludeSuffix.filter(item => item !== selection),
          isExcludeSuffixOpen: false
        }), () => {
          this.validate();
        });
      } else {
        this.setState(prevState => ({
          excludeSuffix: [...prevState.excludeSuffix, selection],
          isExcludeSuffixOpen: false
        }), () => {
          this.validate();
        });
      }
    };

    this.onExcludeSuffixToggle = isExcludeSuffixOpen => {
      this.setState({
        isExcludeSuffixOpen
      }, () => {
        this.validate();
      });
    };

    this.onExcludeSuffixClear = () => {
      this.setState({
        excludeSuffix: [],
        isExcludeSuffixOpen: false
      }, () => {
        this.validate();
      });
    };

    this.onExcludeSuffixCreateOption = newValue => {
      if (!this.state.excludeSuffix.includes(newValue)) {
        this.setState({
          excludeSuffix: [...this.state.excludeSuffix, newValue],
          isExcludeSuffixOpen: false
        }, () => {
          this.validate();
        });
      }
    };

    this.updateFields = this.updateFields.bind(this);
    this.handleFieldChange = this.handleFieldChange.bind(this);
    this.validate = this.validate.bind(this);
    this.savePlugin = this.savePlugin.bind(this);
  }

  validate() {
    var errObj = {};
    var all_good = true;
    var dnAttrs = ['excludeSuffix']; // Check DN attrs

    for (var _i = 0, _dnAttrs = dnAttrs; _i < _dnAttrs.length; _i++) {
      var attr = _dnAttrs[_i];

      var _iterator = _createForOfIteratorHelper(this.state[attr]),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var dnAttr = _step.value;

          if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.valid_dn)(dnAttr)) {
            errObj[attr] = true;
            all_good = false;
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }
    }

    if (all_good) {
      // Check for value differences to see if the save btn should be enabled
      all_good = false;
      var attrs = ['isReplicated', 'maxAge', 'maxAgeUnit', 'trimInterval'];
      var attrLists = ['excludeSuffix', "excludeAttrs"];

      for (var _i2 = 0, _attrs = attrs; _i2 < _attrs.length; _i2++) {
        var check_attr = _attrs[_i2];

        if (this.state[check_attr] != this.state['_' + check_attr]) {
          all_good = true;
        }
      }

      for (var _i3 = 0, _attrLists = attrLists; _i3 < _attrLists.length; _i3++) {
        var check_list = _attrLists[_i3];

        if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.listsEqual)(this.state[check_list], this.state['_' + check_list])) {
          all_good = true;
          break;
        }
      }
    }

    this.setState({
      saveBtnDisabled: !all_good,
      error: errObj
    });
  }

  handleFieldChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [e.target.id]: value
    }, () => {
      this.validate();
    });
  }

  updateFields() {
    if (this.props.rows.length > 0) {
      var pluginRow = this.props.rows.find(row => row.cn[0] === "Retro Changelog Plugin");
      var maxAge = 0;
      var maxAgeUnit = "w";

      if (pluginRow["nsslapd-changelogmaxage"] !== undefined) {
        maxAge = Number(pluginRow["nsslapd-changelogmaxage"][0].slice(0, -1)) == 0 ? 0 : Number(pluginRow["nsslapd-changelogmaxage"][0].slice(0, -1));
        maxAgeUnit = pluginRow["nsslapd-changelogmaxage"][0] != "" ? pluginRow["nsslapd-changelogmaxage"][0].slice(-1).toLowerCase() : "w";
      }

      this.setState({
        isReplicated: !(pluginRow.isReplicated === undefined || pluginRow.isReplicated[0] == "FALSE"),
        excludeSuffix: pluginRow["nsslapd-exclude-suffix"] === undefined ? [] : pluginRow["nsslapd-exclude-suffix"],
        excludeAttrs: pluginRow["nsslapd-exclude-attrs"] === undefined ? [] : pluginRow["nsslapd-exclude-attrs"],
        maxAge: maxAge,
        maxAgeUnit: maxAgeUnit,
        trimInterval: pluginRow["nsslapd-changelog-trim-interval"] === undefined ? 300 : pluginRow["nsslapd-changelog-trim-interval"][0],
        _isReplicated: !(pluginRow.isReplicated === undefined || pluginRow.isReplicated[0] == "FALSE"),
        _excludeSuffix: pluginRow["nsslapd-exclude-suffix"] === undefined ? [] : pluginRow["nsslapd-exclude-suffix"],
        _excludeAttrs: pluginRow["nsslapd-exclude-attrs"] === undefined ? [] : pluginRow["nsslapd-exclude-attrs"],
        _maxAge: maxAge,
        _maxAgeUnit: maxAgeUnit,
        _trimInterval: pluginRow["nsslapd-changelog-trim-interval"] === undefined ? 300 : pluginRow["nsslapd-changelog-trim-interval"][0]
      });
    }
  }

  savePlugin() {
    var maxAge = this.state.maxAge.toString() + this.state.maxAgeUnit;
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "retro-changelog", "set", "--is-replicated", this.state.isReplicated ? "TRUE" : "FALSE", "--max-age", maxAge || "delete", "--trim-interval", this.state.trimInterval.toString() || "300"];

    if (this.state._excludeSuffix != this.state.excludeSuffix) {
      cmd = [...cmd, "--exclude-suffix"];

      if (this.state.excludeSuffix.length != 0) {
        var _iterator2 = _createForOfIteratorHelper(this.state.excludeSuffix),
            _step2;

        try {
          for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
            var value = _step2.value;
            cmd = [...cmd, value];
          }
        } catch (err) {
          _iterator2.e(err);
        } finally {
          _iterator2.f();
        }
      } else {
        cmd = [...cmd, "delete"];
      }
    }

    if (this.state._excludeAttrs != this.state.excludeAttrs) {
      cmd = [...cmd, "--exclude-attrs"];

      if (this.state.excludeAttrs.length != 0) {
        var _iterator3 = _createForOfIteratorHelper(this.state.excludeAttrs),
            _step3;

        try {
          for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
            var _value = _step3.value;
            cmd = [...cmd, _value];
          }
        } catch (err) {
          _iterator3.e(err);
        } finally {
          _iterator3.f();
        }
      } else {
        cmd = [...cmd, "delete"];
      }
    }

    this.setState({
      saving: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)('savePlugin', 'update retrocl', cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.addNotification("success", "Successfully updated the Retro Changelog");
      this.props.pluginListHandler();
      this.setState({
        saving: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to update Retro Changelog Plugin - ".concat(errMsg.desc));
      this.props.pluginListHandler();
      this.setState({
        saving: false
      });
    });
  }

  render() {
    var _this$state = this.state,
        isReplicated = _this$state.isReplicated,
        maxAge = _this$state.maxAge,
        maxAgeUnit = _this$state.maxAgeUnit,
        excludeSuffix = _this$state.excludeSuffix,
        excludeAttrs = _this$state.excludeAttrs,
        trimInterval = _this$state.trimInterval,
        saving = _this$state.saving,
        error = _this$state.error;
    var saveBtnName = "Save";
    var extraPrimaryProps = {};

    if (saving) {
      saveBtnName = "Saving ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: saving ? "ds-disabled" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], {
      rows: this.props.rows,
      serverId: this.props.serverId,
      cn: "Retro Changelog Plugin",
      pluginName: "Retro Changelog",
      cmdName: "retro-changelog",
      savePluginHandler: this.props.savePluginHandler,
      pluginListHandler: this.props.pluginListHandler,
      addNotification: this.props.addNotification,
      toggleLoadingHandler: this.props.toggleLoadingHandler
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      title: "This attribute specifies the suffix which will be excluded from the scope of the plugin (nsslapd-exclude-suffix)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      className: "ds-label",
      span: 2
    }, "Exclude Suffix"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 5
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type a suffix",
      onToggle: this.onExcludeSuffixToggle,
      onSelect: this.onExcludeSuffixSelect,
      onClear: this.onExcludeSuffixClear,
      selections: excludeSuffix,
      isOpen: this.state.isExcludeSuffixOpen,
      "aria-labelledby": "typeAhead-config-exclude-suffix",
      placeholderText: "Type a suffix...",
      noResultsFoundText: "There are no matching entries",
      isCreatable: true,
      onCreateOption: this.onSubtreeScopeCreateOption,
      validated: error.excludeSuffix ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.ValidatedOptions["default"]
    }, [""].map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.SelectOption, {
      key: index,
      value: attr
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormHelperText, {
      isError: true,
      isHidden: !error.excludeSuffix
    }, "Values must be valid DN !")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      className: "ds-left-margin",
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "isReplicated",
      isChecked: isReplicated,
      onChange: (checked, e) => {
        this.handleFieldChange(e);
      },
      title: "Sets a flag to indicate on a change in the changelog whether the change is newly made on that server or whether it was replicated over from another server (isReplicated)",
      label: "Is Replicated"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      title: "This specifies attribute which will be excluded from the scope of the plugin (nsslapd-exclude-attrs)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      className: "ds-label",
      span: 2
    }, "Exclude attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type an attribute",
      onToggle: this.onExcludeAttrToggle,
      onSelect: this.onExcludeAttrSelect,
      onClear: this.onExcludeAttrClear,
      selections: excludeAttrs,
      isOpen: this.state.isExcludeAttrOpen,
      "aria-labelledby": "typeAhead-config-exclude-attr",
      placeholderText: "Type an attribute...",
      noResultsFoundText: "There are no matching entries",
      validated: error.excludeAttrs ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.ValidatedOptions["default"]
    }, this.props.attributes.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.SelectOption, {
      key: index,
      value: attr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      title: "Specifies the maximum age of any entry in the changelog before it is trimmed from the database (nsslapd-changelogmaxage)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      className: "ds-label",
      span: 2
    }, "Max Age"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.NumberInput, {
      value: maxAge,
      min: 0,
      max: this.maxValue,
      onMinus: this.onMinusConfig,
      onChange: this.onMaxAgeChange,
      onPlus: this.onPlusConfig,
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.FormSelect, {
      className: "ds-margin-left",
      id: "maxAgeUnit",
      value: maxAgeUnit,
      onChange: (value, event) => {
        this.handleFieldChange(event);
      },
      "aria-label": "FormSelect Input",
      isDisabled: maxAge == 0
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.FormSelectOption, {
      key: "1",
      value: "w",
      label: "Weeks"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.FormSelectOption, {
      key: "2",
      value: "d",
      label: "Days"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.FormSelectOption, {
      key: "3",
      value: "h",
      label: "Hours"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.FormSelectOption, {
      key: "4",
      value: "m",
      label: "Minutes"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      className: "ds-margin-top",
      title: "Sets in seconds how often the plugin checks if changes can be trimmed from the database based on the entry's max age (nsslapd-changelog-trim-interval)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      className: "ds-label",
      span: 2
    }, "Trimming Interval"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.NumberInput, {
      value: trimInterval,
      min: 0,
      max: this.maxValue,
      onMinus: this.onMinusTrim,
      onChange: this.onTrimChange,
      onPlus: this.onPlusTrim,
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Button, _extends({
      className: "ds-margin-top-xlg",
      variant: "primary",
      onClick: this.savePlugin,
      isDisabled: this.state.saveBtnDisabled,
      isLoading: this.state.saving,
      spinnerAriaValueText: this.state.saving ? "Saving" : undefined
    }, extraPrimaryProps), saveBtnName)));
  }

}

RetroChangelog.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().array),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().string),
  savePluginHandler: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().func),
  pluginListHandler: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().func),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().func),
  toggleLoadingHandler: (prop_types__WEBPACK_IMPORTED_MODULE_17___default().func)
};
RetroChangelog.defaultProps = {
  rows: [],
  serverId: ""
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RetroChangelog);

/***/ }),

/***/ "./src/lib/plugins/rootDNAccessControl.jsx":
/*!*************************************************!*\
  !*** ./src/lib/plugins/rootDNAccessControl.jsx ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TimePicker/TimePicker.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormHelperText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_14__);
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }








class RootDNAccessControl extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  componentDidMount(prevProps) {
    this.updateFields();
  }

  componentDidUpdate(prevProps) {
    if (this.props.rows !== prevProps.rows) {
      this.updateFields();
    }
  }

  constructor(props) {
    super(props);
    this.state = {
      saving: false,
      saveBtnDisabled: true,
      error: {},
      // Settings
      allowHost: [],
      allowHostOptions: [],
      denyHost: [],
      denyHostOptions: [],
      allowIP: [],
      allowIPOptions: [],
      denyIP: [],
      denyIPOptions: [],
      openTime: "0000",
      closeTime: "1159",
      daysAllowed: "",
      allowMon: false,
      allowTue: false,
      allowWed: false,
      allowThu: false,
      allowFri: false,
      allowSat: false,
      allowSun: false,
      // original values
      _allowHost: [],
      _denyHost: [],
      _allowIP: [],
      _denyIP: [],
      _openTime: "00:00",
      _closeTime: "23:59",
      _daysAllowed: "",
      _allowMon: false,
      _allowTue: false,
      _allowWed: false,
      _allowThu: false,
      _allowFri: false,
      _allowSat: false,
      _allowSun: false,
      // Typeahead state
      isAllowHostOpen: false,
      isDenyHostOpen: false,
      isAllowIPOpen: false,
      isDenyIPOpen: false
    }; // Allow Host

    this.onAllowHostSelect = (event, selection) => {
      if (this.state.allowHost.includes(selection)) {
        this.setState(prevState => ({
          allowHost: prevState.allowHost.filter(item => item !== selection),
          isAllowHostOpen: false
        }));
      } else {
        this.setState(prevState => ({
          allowHost: [...prevState.allowHost, selection],
          isAllowHostOpen: false
        }));
      }
    };

    this.onAllowHostToggle = isAllowHostOpen => {
      this.setState({
        isAllowHostOpen
      });
    };

    this.onAllowHostClear = () => {
      this.setState({
        allowHost: [],
        isAllowHostOpen: false
      });
    };

    this.onAllowHostCreateOption = newValue => {
      if (!this.state.allowHostOptions.includes(newValue)) {
        this.setState({
          allowHostOptions: [...this.state.allowHostOptions, newValue],
          isAllowHostOpen: false
        });
      }
    }; // Deny Host


    this.onDenyHostSelect = (event, selection) => {
      if (this.state.denyHost.includes(selection)) {
        this.setState(prevState => ({
          denyHost: prevState.denyHost.filter(item => item !== selection),
          isDenyHostOpen: false
        }));
      } else {
        this.setState(prevState => ({
          denyHost: [...prevState.denyHost, selection],
          isDenyHostOpen: false
        }));
      }
    };

    this.onDenyHostToggle = isDenyHostOpen => {
      this.setState({
        isDenyHostOpen
      });
    };

    this.onDenyHostClear = () => {
      this.setState({
        denyHost: [],
        isDenyHostOpen: false
      });
    };

    this.onDenyHostCreateOption = newValue => {
      if (!this.state.denyHostOptions.includes(newValue)) {
        this.setState({
          denyHostOptions: [...this.state.denyHostOptions, newValue],
          isDenyHostOpen: false
        });
      }
    }; // Allow IP Adddress


    this.onAllowIPSelect = (event, selection) => {
      if (this.state.allowIP.includes(selection)) {
        this.setState(prevState => ({
          allowIP: prevState.allowIP.filter(item => item !== selection),
          isAllowIPOpen: false
        }));
      } else {
        this.setState(prevState => ({
          allowIP: [...prevState.allowIP, selection],
          isAllowIPOpen: false
        }));
      }
    };

    this.onAllowIPToggle = isAllowIPOpen => {
      this.setState({
        isAllowIPOpen
      });
    };

    this.onAllowIPClear = () => {
      this.setState({
        allowIP: [],
        isAllowIPOpen: false
      });
    };

    this.onAllowIPCreateOption = newValue => {
      if (!this.state.allowIPOptions.includes(newValue)) {
        this.setState({
          allowIPOptions: [...this.state.allowIPOptions, newValue],
          isAllowIPOpen: false
        });
      }
    }; // Deny IP Adddress


    this.onDenyIPSelect = (event, selection) => {
      if (this.state.denyIP.includes(selection)) {
        this.setState(prevState => ({
          denyIP: prevState.denyIP.filter(item => item !== selection),
          isDenyIPOpen: false
        }));
      } else {
        this.setState(prevState => ({
          denyIP: [...prevState.denyIP, selection],
          isDenyIPOpen: false
        }));
      }
    };

    this.onDenyIPToggle = isDenyIPOpen => {
      this.setState({
        isDenyIPOpen
      });
    };

    this.onDenyIPClear = () => {
      this.setState({
        denyIP: [],
        isDenyIPOpen: false
      });
    };

    this.onDenyIPCreateOption = newValue => {
      if (!this.state.denyIPOptions.includes(newValue)) {
        this.setState({
          denyIPOptions: [...this.state.denyIPOptions, newValue],
          isDenyIPOpen: false
        });
      }
    };

    this.handleFieldChange = this.handleFieldChange.bind(this);
    this.handleTimeChange = this.handleTimeChange.bind(this);
    this.savePlugin = this.savePlugin.bind(this);
    this.updateFields = this.updateFields.bind(this);
    this.validate = this.validate.bind(this);
  }

  validate() {
    var errObj = {};
    var all_good = false;
    var dayAttrs = ['allowMon', 'allowTue', 'allowWed', 'allowThu', 'allowFri', 'allowSat', 'allowSun'];

    for (var _i = 0, _dayAttrs = dayAttrs; _i < _dayAttrs.length; _i++) {
      var check_attr = _dayAttrs[_i];

      if (this.state[check_attr]) {
        // At least one day must be set
        all_good = true;
        break;
      }
    }

    if (!all_good) {
      // No days were set
      errObj.daysAllowed = true;
    } else {
      // Check for value differences to see if the save btn should be enabled
      all_good = false;
      var attrLists = ['allowHost', 'denyHost', 'allowIP', 'denyIP'];

      for (var _i2 = 0, _attrLists = attrLists; _i2 < _attrLists.length; _i2++) {
        var _check_attr = _attrLists[_i2];

        if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.listsEqual)(this.state[_check_attr], this.state['_' + _check_attr])) {
          all_good = true;
          break;
        }
      }

      var attrs = ['openTime', 'closeTime', 'allowMon', 'allowTue', 'allowWed', 'allowThu', 'allowFri', 'allowSat', 'allowSun'];

      for (var _i3 = 0, _attrs = attrs; _i3 < _attrs.length; _i3++) {
        var _check_attr2 = _attrs[_i3];

        if (this.state[_check_attr2] != this.state['_' + _check_attr2]) {
          all_good = true;
          break;
        }
      }
    }

    this.setState({
      saveBtnDisabled: !all_good,
      error: errObj
    });
  }

  handleFieldChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [e.target.id]: value
    }, () => {
      this.validate();
    });
  }

  handleTimeChange(id, time_str) {
    var time_val = time_str.replace(":", "");
    this.setState({
      [id]: time_val
    }, () => {
      this.validate();
    });
  }

  updateFields() {
    var allowHostList = [];
    var denyHostList = [];
    var allowIPList = [];
    var denyIPList = [];
    var daysAllowed = {};

    if (this.props.rows.length > 0) {
      var pluginRow = this.props.rows.find(row => row.cn[0] === "RootDN Access Control");

      if (pluginRow["rootdn-allow-host"] !== undefined) {
        var _iterator = _createForOfIteratorHelper(pluginRow["rootdn-allow-host"]),
            _step;

        try {
          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            var value = _step.value;
            allowHostList = [...allowHostList, value];
          }
        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }
      }

      if (pluginRow["rootdn-deny-host"] !== undefined) {
        var _iterator2 = _createForOfIteratorHelper(pluginRow["rootdn-deny-host"]),
            _step2;

        try {
          for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
            var _value = _step2.value;
            denyHostList = [...denyHostList, _value];
          }
        } catch (err) {
          _iterator2.e(err);
        } finally {
          _iterator2.f();
        }
      }

      if (pluginRow["rootdn-allow-ip"] !== undefined) {
        var _iterator3 = _createForOfIteratorHelper(pluginRow["rootdn-allow-ip"]),
            _step3;

        try {
          for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
            var _value2 = _step3.value;
            allowIPList = [...allowIPList, _value2];
          }
        } catch (err) {
          _iterator3.e(err);
        } finally {
          _iterator3.f();
        }
      }

      if (pluginRow["rootdn-deny-ip"] !== undefined) {
        var _iterator4 = _createForOfIteratorHelper(pluginRow["rootdn-deny-ip"]),
            _step4;

        try {
          for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
            var _value3 = _step4.value;
            denyIPList = [...denyIPList, _value3];
          }
        } catch (err) {
          _iterator4.e(err);
        } finally {
          _iterator4.f();
        }
      }

      if (pluginRow["rootdn-days-allowed"] !== undefined) {
        var daysStr = pluginRow["rootdn-days-allowed"][0].toLowerCase();

        for (var _i4 = 0, _arr = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']; _i4 < _arr.length; _i4++) {
          var day = _arr[_i4];

          if (daysStr.includes(day.toLowerCase())) {
            daysAllowed['allow' + day] = true;
            daysAllowed['_allow' + day] = true;
          }
        }
      }

      var openTime = "00:00";

      if (pluginRow["rootdn-open-time"] !== undefined) {
        var openHour = pluginRow["rootdn-open-time"][0].substring(0, 2);
        var openMin = pluginRow["rootdn-open-time"][0].substring(2, 4);
        openTime = openHour + ":" + openMin;
      }

      var closeTime = "11:59";

      if (pluginRow["rootdn-close-time"] !== undefined) {
        var closeHour = pluginRow["rootdn-close-time"][0].substring(0, 2);
        var closeMin = pluginRow["rootdn-close-time"][0].substring(2, 4);
        closeTime = closeHour + ":" + closeMin;
      }

      this.setState(_objectSpread(_objectSpread({
        openTime: openTime,
        closeTime: closeTime,
        daysAllowed: daysAllowed,
        denyIP: denyIPList,
        allowIP: allowIPList,
        denyHost: denyHostList,
        allowHost: allowHostList
      }, daysAllowed), {}, {
        _openTime: pluginRow["rootdn-open-time"] === undefined ? "" : pluginRow["rootdn-open-time"][0],
        _closeTime: pluginRow["rootdn-close-time"] === undefined ? "" : pluginRow["rootdn-close-time"][0],
        _daysAllowed: daysAllowed,
        _denyIP: denyIPList,
        _allowIP: allowIPList,
        _denyHost: denyHostList,
        _allowHost: allowHostList
      }));
    }
  }

  savePlugin() {
    // First builds the days allowed
    var daysAllowed = "";

    for (var _i5 = 0, _arr2 = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']; _i5 < _arr2.length; _i5++) {
      var day = _arr2[_i5];

      if (this.state['allow' + day]) {
        daysAllowed += day + ",";
      }
    } // Strip trailing comma


    daysAllowed = daysAllowed.substring(0, daysAllowed.length - 1);
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "root-dn", "set", "--open-time", this.state.openTime.replace(":", "") || "delete", "--close-time", this.state.closeTime.replace(":", "") || "delete", "--days-allowed", daysAllowed || "delete"]; // Delete attributes if the user set an empty value to the field

    cmd = [...cmd, "--allow-host"];

    if (this.state.allowHost.length != 0) {
      var _iterator5 = _createForOfIteratorHelper(this.state.allowHost),
          _step5;

      try {
        for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
          var value = _step5.value;
          cmd = [...cmd, value];
        }
      } catch (err) {
        _iterator5.e(err);
      } finally {
        _iterator5.f();
      }
    } else {
      cmd = [...cmd, "delete"];
    }

    cmd = [...cmd, "--deny-host"];

    if (this.state.denyHost.length != 0) {
      var _iterator6 = _createForOfIteratorHelper(this.state.denyHost),
          _step6;

      try {
        for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
          var _value4 = _step6.value;
          cmd = [...cmd, _value4];
        }
      } catch (err) {
        _iterator6.e(err);
      } finally {
        _iterator6.f();
      }
    } else {
      cmd = [...cmd, "delete"];
    }

    cmd = [...cmd, "--allow-ip"];

    if (this.state.allowIP.length != 0) {
      var _iterator7 = _createForOfIteratorHelper(this.state.allowIP),
          _step7;

      try {
        for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
          var _value5 = _step7.value;
          cmd = [...cmd, _value5];
        }
      } catch (err) {
        _iterator7.e(err);
      } finally {
        _iterator7.f();
      }
    } else {
      cmd = [...cmd, "delete"];
    }

    cmd = [...cmd, "--allow-host"];

    if (this.state.allowHost.length != 0) {
      var _iterator8 = _createForOfIteratorHelper(this.state.allowHost),
          _step8;

      try {
        for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
          var _value6 = _step8.value;
          cmd = [...cmd, _value6];
        }
      } catch (err) {
        _iterator8.e(err);
      } finally {
        _iterator8.f();
      }
    } else {
      cmd = [...cmd, "delete"];
    }

    this.setState({
      saving: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)('savePlugin', 'Update Root DN access control', cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.addNotification("success", "Successfully updated the RootDN Access Control");
      this.props.pluginListHandler();
      this.setState({
        saving: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to update RootDN Access Control Plugin - ".concat(errMsg.desc));
      this.props.pluginListHandler();
      this.setState({
        saving: false
      });
    });
  }

  render() {
    var _this$state = this.state,
        allowHost = _this$state.allowHost,
        denyHost = _this$state.denyHost,
        allowIP = _this$state.allowIP,
        denyIP = _this$state.denyIP,
        openTime = _this$state.openTime,
        closeTime = _this$state.closeTime,
        allowMon = _this$state.allowMon,
        allowTue = _this$state.allowTue,
        allowWed = _this$state.allowWed,
        allowThu = _this$state.allowThu,
        allowFri = _this$state.allowFri,
        allowSat = _this$state.allowSat,
        allowSun = _this$state.allowSun,
        error = _this$state.error,
        saveBtnDisabled = _this$state.saveBtnDisabled,
        saving = _this$state.saving;
    var saveBtnName = "Save";
    var extraPrimaryProps = {};

    if (saving) {
      saveBtnName = "Saving ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: saving ? "ds-disabled" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], {
      rows: this.props.rows,
      serverId: this.props.serverId,
      cn: "RootDN Access Control",
      pluginName: "RootDN Access Control",
      cmdName: "root-dn",
      savePluginHandler: this.props.savePluginHandler,
      pluginListHandler: this.props.pluginListHandler,
      addNotification: this.props.addNotification,
      toggleLoadingHandler: this.props.toggleLoadingHandler
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      title: "Sets what hosts, by fully-qualified domain name, the root user is allowed to use to access the Directory Server. Wildcards are accepted. Any hosts not listed are implicitly denied (rootdn-allow-host)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      className: "ds-label",
      span: 2
    }, "Allow Host"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type a hostname ",
      onToggle: this.onAllowHostToggle,
      onSelect: this.onAllowHostSelect,
      onClear: this.onAllowHostClear,
      selections: allowHost,
      isOpen: this.state.isAllowHostOpen,
      "aria-labelledby": "typeAhead-allow-host",
      placeholderText: "Type a hostname ...",
      noResultsFoundText: "There are no matching entries",
      isCreatable: true,
      onCreateOption: this.onAllowHostCreateOption
    }, this.state.allowHostOptions.map((host, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.SelectOption, {
      key: index,
      value: host
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      title: "Sets what hosts, by fully-qualified domain name, the root user is not allowed to use to access the Directory Server.  Wildcards are accepted.  Any hosts not listed are implicitly allowed (rootdn-deny-host). If a host address is listed in both the rootdn-allow-host and rootdn-deny-host attributes, it is denied access."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      className: "ds-label",
      span: 2
    }, "Deny Host"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type a hostname ",
      onToggle: this.onDenyHostToggle,
      onSelect: this.onDenyHostSelect,
      onClear: this.onDenyHostClear,
      selections: denyHost,
      isOpen: this.state.isDenyHostOpen,
      "aria-labelledby": "typeAhead-deny-host",
      placeholderText: "Type a hostname ...",
      noResultsFoundText: "There are no matching entries",
      isCreatable: true,
      onCreateOption: this.onDenyHostCreateOption
    }, this.state.denyHostOptions.map((host, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.SelectOption, {
      key: index,
      value: host
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      title: "Sets what IP addresses, either IPv4 or IPv6, for machines the root user is allowed to use to access the Directory Server. Wildcards are accepted.  Any IP addresses not listed are implicitly denied (rootdn-allow-ip)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      className: "ds-label",
      span: 2
    }, "Allow IP address"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type an IP address",
      onToggle: this.onAllowIPToggle,
      onSelect: this.onAllowIPSelect,
      onClear: this.onAllowIPClear,
      selections: allowIP,
      isOpen: this.state.isAllowIPOpen,
      "aria-labelledby": "typeAhead-allow-ip",
      placeholderText: "Type an IP address ...",
      noResultsFoundText: "There are no matching entries",
      isCreatable: true,
      onCreateOption: this.onAllowIPCreateOption
    }, this.state.allowIPOptions.map((ip, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.SelectOption, {
      key: index,
      value: ip
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      title: "Sets what IP addresses, either IPv4 or IPv6, for machines the root user is not allowed to use to access the Directory Server. Wildcards are accepted. Any IP addresses not listed are implicitly allowed (rootdn-deny-ip) If an IP address is listed in both the rootdn-allow-ip and rootdn-deny-ip attributes, it is denied access."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      className: "ds-label",
      span: 2
    }, "Deny IP address"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type an IP address",
      onToggle: this.onDenyIPToggle,
      onSelect: this.onDenyIPSelect,
      onClear: this.onDenyIPClear,
      selections: denyIP,
      isOpen: this.state.isDenyIPOpen,
      "aria-labelledby": "typeAhead-deny-ip",
      placeholderText: "Type an IP address ...",
      noResultsFoundText: "There are no matching entries",
      isCreatable: true,
      onCreateOption: this.onDenyIPCreateOption
    }, this.state.denyIPOptions.map((ip, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.SelectOption, {
      key: index,
      value: ip
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      title: "Sets part of a time period or range when the root user is allowed to access the Directory Server. This sets when the time-based access begins (rootdn-open-time)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      className: "ds-label",
      span: 2
    }, "Open Time"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TimePicker, {
      time: openTime,
      onChange: str => {
        this.handleTimeChange("openTime", str);
      },
      is24Hour: true
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      title: "Sets part of a time period or range when the root user is allowed to access the Directory Server. This sets when the time-based access ends (rootdn-close-time)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      className: "ds-label",
      span: 2
    }, "Close Time"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TimePicker, {
      time: closeTime,
      onChange: str => {
        this.handleTimeChange("closeTime", str);
      },
      is24Hour: true
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      title: "Gives a comma-separated list of what days the root user is allowed to use to access the Directory Server. Any days listed are implicitly denied (rootdn-days-allowed)"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 12,
      className: "ds-label"
    }, "Days To Allow Access"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      className: "ds-margin-left",
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Checkbox, {
      id: "allowMon",
      onChange: (checked, e) => {
        this.handleFieldChange(e);
      },
      name: name,
      isChecked: allowMon,
      label: "Monday"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Checkbox, {
      id: "allowFri",
      onChange: (checked, e) => {
        this.handleFieldChange(e);
      },
      name: name,
      isChecked: allowFri,
      label: "Friday"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Checkbox, {
      id: "allowTue",
      onChange: (checked, e) => {
        this.handleFieldChange(e);
      },
      name: name,
      isChecked: allowTue,
      label: "Tuesday"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Checkbox, {
      id: "allowSat",
      onChange: (checked, e) => {
        this.handleFieldChange(e);
      },
      name: name,
      isChecked: allowSat,
      label: "Saturday"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Checkbox, {
      id: "allowWed",
      onChange: (checked, e) => {
        this.handleFieldChange(e);
      },
      name: name,
      isChecked: allowWed,
      label: "Wednesday"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Checkbox, {
      id: "allowSun",
      onChange: (checked, e) => {
        this.handleFieldChange(e);
      },
      name: name,
      isChecked: allowSun,
      label: "Sunday"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Checkbox, {
      id: "allowThu",
      onChange: (checked, e) => {
        this.handleFieldChange(e);
      },
      name: name,
      isChecked: allowThu,
      label: "Thursday"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.FormHelperText, {
      isError: true,
      isHidden: !error.daysAllowed
    }, "You must set at least one day")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Button, _extends({
      className: "ds-margin-top-lg",
      variant: "primary",
      onClick: this.savePlugin,
      isDisabled: saveBtnDisabled,
      isLoading: saving,
      spinnerAriaValueText: saving ? "Saving" : undefined
    }, extraPrimaryProps), saveBtnName)));
  }

}

RootDNAccessControl.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().array),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string),
  savePluginHandler: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),
  pluginListHandler: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),
  toggleLoadingHandler: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func)
};
RootDNAccessControl.defaultProps = {
  rows: [],
  serverId: ""
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RootDNAccessControl);

/***/ }),

/***/ "./src/lib/plugins/usn.jsx":
/*!*********************************!*\
  !*** ./src/lib/plugins/usn.jsx ***!
  \*********************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/NumberInput/NumberInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Switch/Switch.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_15__);
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/wrench-icon.js");








class USNPlugin extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  componentDidMount() {
    if (this.props.wasActiveList.includes(5)) {
      if (this.state.firstLoad) {
        this.loadSuffixList();
        this.updateSwitch();
      }
    }
  }

  constructor(props) {
    super(props);
    this.runCleanup = this.runCleanup.bind(this);
    this.toggleCleanupModal = this.toggleCleanupModal.bind(this);
    this.updateSwitch = this.updateSwitch.bind(this);
    this.handleSwitchChange = this.handleSwitchChange.bind(this);
    this.handleFieldChange = this.handleFieldChange.bind(this);
    this.loadSuffixList = this.loadSuffixList.bind(this);
    this.state = {
      firstLoad: true,
      globalMode: false,
      disableSwitch: false,
      cleanupModalShow: false,
      cleanupSuffix: "",
      cleanupMaxUSN: 0,
      suffixList: [],
      pluginEnabled: false
    };
    this.minValue = 0;
    this.maxValue = 20000000;

    this.onMinusConfig = () => {
      this.setState({
        cleanupMaxUSN: Number(this.state.cleanupMaxUSN) - 1
      });
    };

    this.onConfigChange = event => {
      var newValue = isNaN(event.target.value) ? 0 : Number(event.target.value);
      this.setState({
        cleanupMaxUSN: newValue > this.maxValue ? this.maxValue : newValue < this.minValue ? this.minValue : newValue
      });
    };

    this.onPlusConfig = id => {
      this.setState({
        cleanupMaxUSN: Number(this.state.cleanupMaxUSN) + 1
      });
    };
  }

  loadSuffixList() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "suffix", "list", "--suffix"];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("loadSuffixList", "Get a list of all the suffixes", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var suffixList = JSON.parse(content);
      this.setState({
        suffixList: suffixList.items,
        cleanupSuffix: suffixList.items[0]
      });
    });
  }

  handleFieldChange(e) {
    this.setState({
      [e.target.id]: e.target.value
    });
  }

  handleSwitchChange(value) {
    var _this$props = this.props,
        serverId = _this$props.serverId,
        addNotification = _this$props.addNotification,
        toggleLoadingHandler = _this$props.toggleLoadingHandler;
    var new_status = this.state.globalMode ? "off" : "on";
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + serverId + ".socket", "plugin", "usn", "global", new_status];
    toggleLoadingHandler();
    this.setState({
      disableSwitch: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("handleSwitchChange", "Switch global USN mode from the USN plugin tab", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("savePlugin", "Result", content);
      this.updateSwitch();
      addNotification("success", "Global USN mode was successfully set to ".concat(new_status, "."));
      toggleLoadingHandler();
      this.setState({
        disableSwitch: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      addNotification("error", "Error during global USN mode modification - ".concat(errMsg.desc));
      toggleLoadingHandler();
      this.setState({
        disableSwitch: false
      });
    });
  }

  updateSwitch() {
    this.setState({
      firstLoad: false,
      disableSwitch: true
    });
    var pluginRow = this.props.rows.find(row => row.cn[0] === "USN");
    var pluginEnabled = false;

    if (pluginRow["nsslapd-pluginEnabled"][0] === "on") {
      pluginEnabled = true;
    }

    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get", "nsslapd-entryusn-global"];
    this.props.toggleLoadingHandler();
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("updateSwitch", "Get global USN status", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var myObject = JSON.parse(content);
      var usnGlobalAttr = myObject.attrs["nsslapd-entryusn-global"][0];
      this.setState({
        globalMode: !(usnGlobalAttr == "off"),
        pluginEnabled: pluginEnabled,
        disableSwitch: false
      });
      this.props.toggleLoadingHandler();
    }).fail(err => {
      if (err != 0) {
        var errMsg = JSON.parse(err);
        console.log("Get global USN failed", errMsg.desc);
      }

      this.setState({
        disableSwitch: false
      });
      this.props.toggleLoadingHandler();
    });
  }

  toggleCleanupModal() {
    this.setState(prevState => ({
      cleanupModalShow: !prevState.cleanupModalShow,
      cleanupSuffix: prevState.suffixList[0],
      cleanupMaxUSN: 0
    }));
  }

  runCleanup() {
    if (!this.state.cleanupSuffix) {
      this.props.addNotification("warning", "Suffix is required.");
    } else {
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "usn", "cleanup"];

      if (this.state.cleanupSuffix) {
        cmd = [...cmd, "--suffix=" + this.state.cleanupSuffix];
      }

      if (this.state.cleanupMaxUSN > 0) {
        cmd = [...cmd, "--max-usn=" + this.state.cleanupMaxUSN];
      }

      this.props.toggleLoadingHandler();
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("runCleanup", "Run cleanup USN tombstones", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        this.props.addNotification("success", "Cleanup USN Tombstones task was successfull");
        this.props.toggleLoadingHandler();
        this.setState({
          cleanupModalShow: false
        });
      }).fail(err => {
        var errMsg = JSON.parse(err);
        this.props.addNotification("error", "Cleanup USN Tombstones task has failed ".concat(errMsg.desc));
        this.props.toggleLoadingHandler();
        this.setState({
          cleanupModalShow: false
        });
      });
    }
  }

  render() {
    var _this$state = this.state,
        globalMode = _this$state.globalMode,
        disableSwitch = _this$state.disableSwitch,
        cleanupModalShow = _this$state.cleanupModalShow,
        cleanupSuffix = _this$state.cleanupSuffix,
        cleanupMaxUSN = _this$state.cleanupMaxUSN,
        suffixList = _this$state.suffixList;
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.ModalVariant.small,
      title: "USN Tombstone Cleanup Task",
      "aria-labelledby": "ds-modal",
      isOpen: cleanupModalShow,
      onClose: this.toggleCleanupModal,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, {
        key: "confirm",
        variant: "primary",
        onClick: this.runCleanup
      }, "Run"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.toggleCleanupModal
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      title: "Gives the suffix in the Directory Server to run the cleanup operation against"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 4
    }, "Cleanup Suffix"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormSelect, {
      id: "configAutoAddOC",
      value: cleanupSuffix,
      onChange: (value, event) => {
        this.handleFieldChange(event);
      },
      "aria-label": "FormSelect Input"
    }, suffixList.map(attr => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormSelectOption, {
      key: attr,
      value: attr,
      label: attr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      title: "Gives the highest USN value to delete when removing tombstone entries. All tombstone entries up to and including that number are deleted. Tombstone entries with higher USN values (that means more recent entries) are not deleted"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 4
    }, "Cleanup Max USN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.NumberInput, {
      value: cleanupMaxUSN,
      min: this.minValue,
      max: this.maxValue,
      onMinus: this.onMinusConfig,
      onChange: this.onConfigChange,
      onPlus: this.onPlusConfig,
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 10
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], {
      rows: this.props.rows,
      serverId: this.props.serverId,
      cn: "USN",
      pluginName: "Update Sequence Numbers",
      cmdName: "usn",
      savePluginHandler: this.props.savePluginHandler,
      pluginListHandler: this.props.pluginListHandler,
      addNotification: this.props.addNotification,
      toggleLoadingHandler: this.props.toggleLoadingHandler
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Tooltip, {
      maxWidth: 500,
      content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, "The USN Plug-in enables LDAP clients and servers to identify if entries have been changed. When the USN Plug-in is enabled, update sequence numbers (USNs) are sequential numbers that are assigned to an entry whenever a write operation is performed against the entry. (Write operations include add, modify, modrdn, and delete operations. Internal database operations, like export operations, are not counted in the update sequence.) A USN counter keeps track of the most recently assigned USN.", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("br", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("br", null), "The USN plug-in also moves entries to tombstone entries when the entry is deleted. If replication is enabled, then separate tombstone entries are kept by both the USN and Replication plug-in. Note that both tombstone entries are deleted by the replication process.")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("a", {
      className: "ds-font-size-sm"
    }, "What is the USN Plugin?")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Form, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      className: "ds-margin-top-xlg",
      title: "Enable entryUSN assignment across all backends, instead of per backend."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "USN Global"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Switch, {
      id: "globalMode",
      isChecked: globalMode,
      onChange: () => this.handleSwitchChange(globalMode),
      isDisabled: disableSwitch
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      title: "This task deletes the tombstone entries maintained by the USN plugin.  This task should not run against a suffix that is being replicated"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label ds-margin-top",
      span: 3
    }, "Tombstone Cleanup Task", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_14__.WrenchIcon, {
      className: "ds-left-margin"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, {
      className: "ds-margin-top",
      variant: "primary",
      isDisabled: !this.state.pluginEnabled,
      onClick: this.toggleCleanupModal
    }, "Run Task"))))));
  }

}

USNPlugin.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().array),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().string),
  savePluginHandler: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func),
  pluginListHandler: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func),
  toggleLoadingHandler: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func)
};
USNPlugin.defaultProps = {
  rows: [],
  serverId: ""
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (USNPlugin);

/***/ }),

/***/ "./src/lib/plugins/winsync.jsx":
/*!*************************************!*\
  !*** ./src/lib/plugins/winsync.jsx ***!
  \*************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormHelperText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__);
/* harmony import */ var _pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./pluginBasicConfig.jsx */ "./src/lib/plugins/pluginBasicConfig.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }








class WinSync extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  componentDidMount(prevProps) {
    this.updateFields();
  }

  componentDidUpdate(prevProps) {
    if (this.props.rows !== prevProps.rows) {
      this.updateFields();
    }
  }

  constructor(props) {
    super(props);
    this.state = {
      fixupModalShow: false,
      fixupDN: "",
      fixupFilter: "",
      saveBtnDisabled: true,
      saveBtnDisabledModal: true,
      saving: false,
      savingModal: false,
      error: {},
      // Settings
      posixWinsyncCreateMemberOfTask: false,
      posixWinsyncLowerCaseUID: false,
      posixWinsyncMapMemberUID: false,
      posixWinsyncMapNestedGrouping: false,
      posixWinsyncMsSFUSchema: false,
      // Original values
      _posixWinsyncCreateMemberOfTask: false,
      _posixWinsyncLowerCaseUID: false,
      _posixWinsyncMapMemberUID: false,
      _posixWinsyncMapNestedGrouping: false,
      _posixWinsyncMsSFUSchema: false
    };
    this.handleFieldChange = this.handleFieldChange.bind(this);
    this.handleModalChange = this.handleModalChange.bind(this);
    this.updateFields = this.updateFields.bind(this);
    this.runFixup = this.runFixup.bind(this);
    this.toggleFixupModal = this.toggleFixupModal.bind(this);
    this.validateConfig = this.validateConfig.bind(this);
    this.validateModal = this.validateModal.bind(this);
    this.savePlugin = this.savePlugin.bind(this);
  }

  toggleFixupModal() {
    this.setState(prevState => ({
      fixupModalShow: !prevState.fixupModalShow,
      fixupDN: "",
      fixupFilter: "",
      savingModal: false
    }));
  }

  runFixup() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "posix-winsync", "fixup", this.state.fixupDN];

    if (this.state.fixupFilter) {
      cmd = [...cmd, "--filter", this.state.fixupFilter];
    }

    this.setState({
      savingModal: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("runFixup", "Run Member UID task", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.addNotification("success", "Fixup task for ".concat(this.state.fixupDN, " was successfully started"));
      this.setState({
        fixupModalShow: false,
        savingModal: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Fixup task for ".concat(this.state.fixupDN, " has failed ").concat(errMsg.desc));
      this.setState({
        fixupModalShow: false,
        savingModal: false
      });
    });
  }

  validateConfig() {
    var all_good = false;
    var attrs = ['posixWinsyncCreateMemberOfTask', 'posixWinsyncLowerCaseUID', 'posixWinsyncMapMemberUID', 'posixWinsyncMapNestedGrouping', 'posixWinsyncMsSFUSchema'];

    for (var _i = 0, _attrs = attrs; _i < _attrs.length; _i++) {
      var check_attr = _attrs[_i];

      if (this.state[check_attr] != this.state['_' + check_attr]) {
        all_good = true;
        break;
      }
    }

    this.setState({
      saveBtnDisabled: !all_good
    });
  }

  validateModal() {
    var errObj = {};
    var all_good = true;

    if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.valid_dn)(this.state.fixupDN)) {
      all_good = false;
      errObj.fixupDN = true;
    }

    if (this.state.fixupFilter == "") {
      all_good = false;
      errObj.fixupFilter = true;
    }

    this.setState({
      saveBtnDisabledModal: !all_good,
      error: errObj
    });
  }

  handleFieldChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [e.target.id]: value
    }, () => {
      this.validateConfig();
    });
  }

  handleModalChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [e.target.id]: value
    }, () => {
      this.validateModal();
    });
  }

  updateFields() {
    if (this.props.rows.length > 0) {
      var pluginRow = this.props.rows.find(row => row.cn[0] === "Posix Winsync API");
      this.setState({
        posixWinsyncCreateMemberOfTask: !(pluginRow.posixwinsynccreatememberoftask === undefined || pluginRow.posixwinsynccreatememberoftask[0] == "false"),
        posixWinsyncLowerCaseUID: !(pluginRow.posixwinsynclowercaseuid === undefined || pluginRow.posixwinsynclowercaseuid[0] == "false"),
        posixWinsyncMapMemberUID: !(pluginRow.posixwinsyncmapmemberuid === undefined || pluginRow.posixwinsyncmapmemberuid[0] == "false"),
        posixWinsyncMapNestedGrouping: !(pluginRow.posixwinsyncmapnestedgrouping === undefined || pluginRow.posixwinsyncmapnestedgrouping[0] == "false"),
        posixWinsyncMsSFUSchema: !(pluginRow.posixwinsyncmssfuschema === undefined || pluginRow.posixwinsyncmssfuschema[0] == "false"),
        _posixWinsyncCreateMemberOfTask: !(pluginRow.posixwinsynccreatememberoftask === undefined || pluginRow.posixwinsynccreatememberoftask[0] == "false"),
        _posixWinsyncLowerCaseUID: !(pluginRow.posixwinsynclowercaseuid === undefined || pluginRow.posixwinsynclowercaseuid[0] == "false"),
        _posixWinsyncMapMemberUID: !(pluginRow.posixwinsyncmapmemberuid === undefined || pluginRow.posixwinsyncmapmemberuid[0] == "false"),
        _posixWinsyncMapNestedGrouping: !(pluginRow.posixwinsyncmapnestedgrouping === undefined || pluginRow.posixwinsyncmapnestedgrouping[0] == "false"),
        _posixWinsyncMsSFUSchema: !(pluginRow.posixwinsyncmssfuschema === undefined || pluginRow.posixwinsyncmssfuschema[0] == "false")
      });
    }
  }

  savePlugin() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "posix-winsync", "set", "--create-memberof-task", this.state.posixWinsyncCreateMemberOfTask ? "true" : "false", "--lower-case-uid", this.state.posixWinsyncLowerCaseUID ? "true" : "false", "--map-member-uid", this.state.posixWinsyncMapMemberUID ? "true" : "false", "--map-nested-grouping", this.state.posixWinsyncMapNestedGrouping ? "true" : "false", "--ms-sfu-schema", this.state.posixWinsyncMsSFUSchema ? "true" : "false"];
    this.setState({
      saving: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)('savePlugin', 'Update Posix winsync plugin', cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.addNotification("success", "Successfully updated Posix winsync plugin");
      this.props.pluginListHandler();
      this.setState({
        saving: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to update Posix winsync plugin - ".concat(errMsg.desc));
      this.props.pluginListHandler();
      this.setState({
        saving: false
      });
    });
  }

  render() {
    var _this$state = this.state,
        posixWinsyncCreateMemberOfTask = _this$state.posixWinsyncCreateMemberOfTask,
        posixWinsyncLowerCaseUID = _this$state.posixWinsyncLowerCaseUID,
        posixWinsyncMapMemberUID = _this$state.posixWinsyncMapMemberUID,
        posixWinsyncMapNestedGrouping = _this$state.posixWinsyncMapNestedGrouping,
        posixWinsyncMsSFUSchema = _this$state.posixWinsyncMsSFUSchema,
        fixupModalShow = _this$state.fixupModalShow,
        fixupDN = _this$state.fixupDN,
        fixupFilter = _this$state.fixupFilter,
        saving = _this$state.saving,
        savingModal = _this$state.savingModal,
        saveBtnDisabled = _this$state.saveBtnDisabled,
        saveBtnDisabledModal = _this$state.saveBtnDisabledModal,
        error = _this$state.error;
    var saveBtnName = "Save";
    var extraPrimaryProps = {};

    if (saving) {
      saveBtnName = "Saving ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    var saveBtnNameModal = "Run Task";

    if (savingModal) {
      saveBtnName = "Task running ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: saving || savingModal ? "ds-disabled" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.ModalVariant.small,
      title: "MemberOf Task",
      isOpen: fixupModalShow,
      "aria-labelledby": "ds-modal",
      onClose: this.toggleFixupModal,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, _extends({
        key: "task",
        variant: "primary",
        onClick: this.runFixup,
        isDisabled: saveBtnDisabledModal,
        isLoading: savingModal,
        spinnerAriaValueText: savingModal ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnNameModal), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.toggleFixupModal
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      title: "Base DN that contains entries to fix up"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Base DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextInput, {
      value: fixupDN,
      type: "text",
      id: "fixupDN",
      "aria-describedby": "horizontal-form-name-helper",
      name: "fixupDN",
      onChange: (str, e) => {
        this.handleModalChange(e);
      },
      validated: error.fixupDN ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormHelperText, {
      isError: true,
      isHidden: !error.fixupDN
    }, "Value must be a valid DN"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      className: "ds-margin-top",
      title: "Filter for entries to fix up. If omitted, all entries with objectclass inetuser/inetadmin/nsmemberof under the specified base will have their memberOf attribute regenerated."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Filter DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextInput, {
      value: fixupFilter,
      type: "text",
      id: "fixupFilter",
      "aria-describedby": "horizontal-form-name-helper",
      name: "fixupFilter",
      onChange: (str, e) => {
        this.handleModalChange(e);
      },
      validated: error.fixupFilter ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormHelperText, {
      isError: true,
      isHidden: !error.fixupDN
    }, "Enter an LDAP search filter"))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_pluginBasicConfig_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], {
      rows: this.props.rows,
      serverId: this.props.serverId,
      cn: "Posix Winsync API",
      pluginName: "Posix Winsync API",
      cmdName: "posix-winsync",
      savePluginHandler: this.props.savePluginHandler,
      pluginListHandler: this.props.pluginListHandler,
      addNotification: this.props.addNotification,
      toggleLoadingHandler: this.props.toggleLoadingHandler
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      title: "Sets whether to run the memberOf fix-up task immediately after a sync run in order to update group memberships for synced users"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "posixWinsyncCreateMemberOfTask",
      isChecked: posixWinsyncCreateMemberOfTask,
      onChange: (checked, e) => {
        this.handleFieldChange(e);
      },
      label: "Create MemberOf Task"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      title: "Sets whether to store (and, if necessary, convert) the UID value in the memberUID attribute in lower case"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "posixWinsyncLowerCaseUID",
      isChecked: posixWinsyncLowerCaseUID,
      onChange: (checked, e) => {
        this.handleFieldChange(e);
      },
      label: "Lower Case UID"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      title: "Sets whether to map the memberUID attribute in an Active Directory group to the uniqueMember attribute in a Directory Server group"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "posixWinsyncMapMemberUID",
      isChecked: posixWinsyncMapMemberUID,
      onChange: (checked, e) => {
        this.handleFieldChange(e);
      },
      label: "Map Member UID"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      title: "Manages if nested groups are updated when memberUID attributes in an Active Directory POSIX group change"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "posixWinsyncMapNestedGrouping",
      isChecked: posixWinsyncMapNestedGrouping,
      onChange: (checked, e) => {
        this.handleFieldChange(e);
      },
      label: "Map Nested Grouping"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
      title: "Sets whether to the older Microsoft System Services  for Unix 3.0 (msSFU30) schema when syncing Posix attributes from Active Directory"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "posixWinsyncMsSFUSchema",
      isChecked: posixWinsyncMsSFUSchema,
      onChange: (checked, e) => {
        this.handleFieldChange(e);
      },
      label: "Microsoft System Services for Unix 3.0 (msSFU30) schema"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, {
      className: "ds-margin-top-lg",
      variant: "primary",
      onClick: this.toggleFixupModal,
      title: "Corrects mismatched member and uniquemember values"
    }, "Run MemberOf Task")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Button, _extends({
      className: "ds-margin-top-lg",
      variant: "primary",
      onClick: this.savePlugin,
      isDisabled: saveBtnDisabled,
      isLoading: saving,
      spinnerAriaValueText: saving ? "Saving" : undefined
    }, extraPrimaryProps), saveBtnName));
  }

}

WinSync.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
  savePluginHandler: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  pluginListHandler: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  toggleLoadingHandler: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)
};
WinSync.defaultProps = {
  rows: [],
  serverId: ""
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (WinSync);

/***/ }),

/***/ "./src/lib/replication/replAgmts.jsx":
/*!*******************************************!*\
  !*** ./src/lib/replication/replAgmts.jsx ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ReplAgmts": () => (/* binding */ ReplAgmts)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _replTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./replTables.jsx */ "./src/lib/replication/replTables.jsx");
/* harmony import */ var _replModals_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./replModals.jsx */ "./src/lib/replication/replModals.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/SortColumn.js");
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }










var ldapOptions = ['SIMPLE', 'SASL/DIGEST-MD5', 'SASL/GSSAPI'];
var ldapsOptions = ['SIMPLE', 'SSLCLIENTAUTH'];
var ldapBootstrapOptions = ['SIMPLE'];
var ldapsBootstrapOptions = ['SIMPLE', 'SSLCLIENTAUTH'];
class ReplAgmts extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "_mounted", false);

    _defineProperty(this, "onSelectToggle", (isExpanded, toggleId) => {
      this.setState({
        [toggleId]: isExpanded
      });
    });

    _defineProperty(this, "onSelectClear", (toggleId, collection) => {
      this.setState({
        [toggleId]: false,
        [collection]: []
      });
    });

    this.state = {
      showCreateAgmtModal: false,
      showEditAgmtModal: false,
      showConfirmDeleteAgmt: false,
      showConfirmInitAgmt: false,
      showConfirmEnableAgmt: false,
      showConfirmDisableAgmt: false,
      errObj: {},
      savingAgmt: false,
      mounted: false,
      rows: [],
      page: 1,
      value: "",
      sortBy: {},
      // Create agreement
      agmtName: "",
      agmtHost: "",
      agmtPort: "636",
      agmtProtocol: "LDAPS",
      agmtBindMethod: "SIMPLE",
      agmtBindMethodOptions: ldapsOptions,
      agmtBindDN: "cn=replication manager,cn=config",
      agmtBindPW: "",
      agmtBindPWConfirm: "",
      agmtBootstrap: false,
      agmtBootstrapProtocol: "LDAPS",
      agmtBootstrapBindMethod: "SIMPLE",
      agmtBootstrapBindMethodOptions: ldapsBootstrapOptions,
      agmtBootstrapBindDN: "cn=replication manager,cn=config",
      agmtBootstrapBindPW: "",
      agmtBootstrapBindPWConfirm: "",
      agmtStripAttrs: [],
      agmtFracAttrs: [],
      agmtFracInitAttrs: [],
      agmtSync: true,
      agmtSyncMon: true,
      agmtSyncTue: true,
      agmtSyncWed: true,
      agmtSyncThu: true,
      agmtSyncFri: true,
      agmtSyncSat: true,
      agmtSyncSun: true,
      agmtStartTime: "0000",
      agmtEndTime: "2359",
      agmtInit: "noinit",
      agmtSaveOK: false,
      modalChecked: false,
      modalSpinning: false,
      // Init agmt
      agmtInitCounter: 0,
      agmtInitIntervals: [],
      isExcludeAttrsCreateOpen: false,
      isExcludeInitAttrsCreateOpen: false,
      isStripAttrsCreateOpen: false,
      isExcludeAttrsEditOpen: false,
      isExcludeInitAttrsEditOpen: false,
      isStripAttrsEditOpen: false
    }; // Create - Exclude Attributes

    this.onExcludeAttrsCreateToggle = isExcludeAttrsCreateOpen => {
      this.setState({
        isExcludeAttrsCreateOpen
      });
    };

    this.onExcludeAttrsCreateClear = () => {
      this.setState({
        agmtFracAttrs: [],
        isExcludeAttrsCreateOpen: false
      });
    }; // Create - Exclude Init Attributes


    this.onExcludeAttrsInitCreateToggle = isExcludeInitAttrsCreateOpen => {
      this.setState({
        isExcludeInitAttrsCreateOpen
      });
    };

    this.onExcludeAttrsInitCreateClear = () => {
      this.setState({
        agmtFracInitAttrs: [],
        isExcludeInitAttrsCreateOpen: false
      });
    }; // Create - Skip Attributes


    this.onStripAttrsCreateToggle = isStripAttrsCreateOpen => {
      this.setState({
        isStripAttrsCreateOpen
      });
    };

    this.onStripAttrsCreateClear = () => {
      this.setState({
        agmtStripAttrs: [],
        isStripAttrsCreateOpen: false
      });
    }; // Edit - Exclude Attributes


    this.onExcludeAttrsEditToggle = isExcludeAttrsEditOpen => {
      this.setState({
        isExcludeAttrsEditOpen
      });
    };

    this.onExcludeAttrsEditClear = () => {
      this.setState({
        agmtFracAttrs: [],
        isExcludeAttrsEditOpen: false
      });
    }; // Edit - Exclude Init Attributes


    this.onExcludeAttrsInitEditToggle = isExcludeInitAttrsEditOpen => {
      this.setState({
        isExcludeInitAttrsEditOpen
      });
    };

    this.onExcludeAttrsInitEditClear = () => {
      this.setState({
        agmtFracInitAttrs: [],
        isExcludeInitAttrsEditOpen: false
      });
    }; // Edit - Skip Attributes


    this.onStripAttrsEditToggle = isStripAttrsEditOpen => {
      this.setState({
        isStripAttrsEditOpen
      });
    };

    this.onStripAttrsEditClear = () => {
      this.setState({
        agmtStripAttrs: [],
        isStripAttrsEditOpen: false
      });
    };

    this.showCreateAgmtModal = this.showCreateAgmtModal.bind(this);
    this.closeCreateAgmtModal = this.closeCreateAgmtModal.bind(this);
    this.closeEditAgmtModal = this.closeEditAgmtModal.bind(this);
    this.handleTASelectChange = this.handleTASelectChange.bind(this);
    this.handleTimeChange = this.handleTimeChange.bind(this);
    this.handleCreateChange = this.handleCreateChange.bind(this);
    this.handleEditChange = this.handleEditChange.bind(this);
    this.handleModalChange = this.handleModalChange.bind(this);
    this.handleTAFracInitAttrChange = this.handleTAFracInitAttrChange.bind(this);
    this.handleTAFracAttrChange = this.handleTAFracAttrChange.bind(this);
    this.handleTAStripAttrChange = this.handleTAStripAttrChange.bind(this);
    this.handleTAFracInitAttrChangeEdit = this.handleTAFracInitAttrChangeEdit.bind(this);
    this.handleTAFracAttrChangeEdit = this.handleTAFracAttrChangeEdit.bind(this);
    this.handleTAStripAttrChangeEdit = this.handleTAStripAttrChangeEdit.bind(this);
    this.createAgmt = this.createAgmt.bind(this);
    this.showEditAgmt = this.showEditAgmt.bind(this);
    this.saveAgmt = this.saveAgmt.bind(this);
    this.pokeAgmt = this.pokeAgmt.bind(this);
    this.initAgmt = this.initAgmt.bind(this);
    this.enableAgmt = this.enableAgmt.bind(this);
    this.disableAgmt = this.disableAgmt.bind(this);
    this.deleteAgmt = this.deleteAgmt.bind(this);
    this.showConfirmDeleteAgmt = this.showConfirmDeleteAgmt.bind(this);
    this.closeConfirmDeleteAgmt = this.closeConfirmDeleteAgmt.bind(this);
    this.showConfirmInitAgmt = this.showConfirmInitAgmt.bind(this);
    this.closeConfirmInitAgmt = this.closeConfirmInitAgmt.bind(this);
    this.confirmToggle = this.confirmToggle.bind(this);
    this.closeConfirmEnableAgmt = this.closeConfirmEnableAgmt.bind(this);
    this.closeConfirmDisableAgmt = this.closeConfirmDisableAgmt.bind(this);
    this.watchAgmtInit = this.watchAgmtInit.bind(this); // Table sort and search

    this.onSort = this.onSort.bind(this);
    this.onSearchChange = this.onSearchChange.bind(this);
    this.validateConfig = this.validateConfig.bind(this);
  }

  componentDidMount() {
    this._mounted = true;
    var rows = JSON.parse(JSON.stringify(this.props.rows));
    this.setState({
      rows: rows
    });
  }

  componentWillUnmount() {
    this._mounted = false;
  }

  handleModalChange(e) {
    this.setState({
      [e.target.id]: e.target.checked
    });
  }

  validateConfig(attr, value, modalData, errObj) {
    // Validate the current Settings
    var all_good = true;
    var configAttrs = ['agmtName', 'agmtHost'];
    var dnAttrs = ['agmtBindDN']; // If we disable

    if (attr == 'agmtBootstrap' && value == false) {
      errObj.agmtBootstrapBindDN = false;
      errObj.agmtBootstrapBindPW = false;
      errObj.agmtBootstrapBindPWConfirm = false;
    }

    if (attr == 'agmtSync' && value == true) {
      errObj.agmtSyncMon = false;
      errObj.agmtSyncTue = false;
      errObj.agmtSyncWed = false;
      errObj.agmtSyncThu = false;
      errObj.agmtSyncFri = false;
      errObj.agmtSyncSat = false;
      errObj.agmtSyncSun = false;
      errObj.agmtStartTime = false;
      errObj.agmtEndTime = false;
    }

    for (var _i = 0, _configAttrs = configAttrs; _i < _configAttrs.length; _i++) {
      var configAttr = _configAttrs[_i];

      if (attr == configAttr) {
        if (value == "") {
          errObj[attr] = true;
          all_good = false;
        } else {
          errObj[attr] = false;
        }
      } else if (this.state[configAttr] == "") {
        errObj[configAttr] = true;
        all_good = false;
      }
    }

    for (var _i2 = 0, _dnAttrs = dnAttrs; _i2 < _dnAttrs.length; _i2++) {
      var dnAttr = _dnAttrs[_i2];

      if (attr == dnAttr) {
        if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.valid_dn)(value)) {
          errObj[dnAttr] = true;
          all_good = false;
        } else {
          errObj[attr] = false;
        }
      } else if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.valid_dn)(this.state[dnAttr])) {
        errObj[dnAttr] = true;
        all_good = false;
      }
    }

    if (attr == 'agmtPort') {
      if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.valid_port)(value)) {
        errObj.agmtPort = true;
        all_good = false;
      } else {
        errObj.agmtPort = false;
      }
    } else if (attr == 'agmtProtocol') {
      if (value == "LDAP") {
        modalData.agmtBindMethodOptions = ldapOptions;
      } else {
        modalData.agmtBindMethodOptions = ldapsOptions;
      }

      if (modalData.agmtBindMethodOptions.indexOf(this.state.agmtBindMethod) == -1) {
        // Auto adjust the current state to account for the new method
        modalData.agmtBindMethod = modalData.agmtBindMethodOptions[0];
      }
    } else if (attr == "agmtBindMethod") {
      modalData.agmtBindMethod = value;
    } else if (attr == "agmtBootstrapBindMethod") {
      modalData.agmtBootstrapBindMethod = value;
    } else if (attr == 'agmtBootstrapProtocol') {
      if (value == "LDAP") {
        modalData.agmtBootstrapBindMethodOptions = ldapBootstrapOptions;
      } else {
        modalData.agmtBootstrapBindMethodOptions = ldapsBootstrapOptions;
      }

      if (modalData.agmtBootstrapBindMethodOptions.indexOf(this.state.agmtBootstrapBindMethod) == -1) {
        // Auto adjust the current state to account for the new method
        modalData.agmtBootstrapBindMethod = modalData.agmtBootstrapBindMethodOptions[0];
      }
    } // Check passwords match


    if (attr == 'agmtBindMethod' && value != "SIMPLE" && value != "SASL/DIGEST-MD5") {
      errObj.agmtBindPW = false;
      errObj.agmtBindPWConfirm = false;
    } else if (this.state.agmtBindMethod == "SIMPLE" || this.state.agmtBindMethod == "SASL/DIGEST-MD5" || attr == 'agmtBindMethod' && (value == "SIMPLE" || value == "SASL/DIGEST-MD5")) {
      if (attr == 'agmtBindPW') {
        if (value != this.state.agmtBindPWConfirm || value == "") {
          errObj.agmtBindPW = true;
          errObj.agmtBindPWConfirm = true;
          all_good = false;
        } else {
          errObj.agmtBindPW = false;
          errObj.agmtBindPWConfirm = false;
        }
      } else if (attr == 'agmtBindPWConfirm') {
        if (value != this.state.agmtBindPW || value == "") {
          errObj.agmtBindPW = true;
          errObj.agmtBindPWConfirm = true;
          all_good = false;
        } else {
          errObj.agmtBindPW = false;
          errObj.agmtBindPWConfirm = false;
        }
      } else if (this.state.agmtBindPW != this.state.agmtBindPWConfirm || this.state.agmtBindPW == "" || this.state.agmtBindPWConfirm == "") {
        // Not a pasword change, but the values are no good
        errObj.agmtBindPW = true;
        errObj.agmtBindPWConfirm = true;
        all_good = false;
      }
    } else {
      errObj.agmtBindPW = false;
      errObj.agmtBindPWConfirm = false;
    } // Handle the bootstrap settings.  There is a lot going on here.  If
    // the Bind Method is SIMPLE we need a user password, if it's
    // SSLCLIENTAUTH we do not need a password.  We also have to enforce
    // LDAPS is used for SSLCLIENTAUTH.  This is similar to how we
    // handle the agmt schedule settings.  We always need to check all
    // the bootstrap settings if one of the bootstrap settings is
    // changed - so there is a lot of overlap of checks, and setting and
    // unsetting the errObj, etc


    if (attr == 'agmtBootstrap') {
      if (value) {
        // Bootstrapping is enabled, validate the settings
        if (this.state.agmtBootstrapBindMethod == "SIMPLE") {
          if (this.state.agmtBootstrapBindPW == "" || this.state.agmtBootstrapBindPWConfirm == "") {
            // Can't be empty
            errObj.agmtBootstrapBindPW = true;
            errObj.agmtBootstrapBindPWConfirm = true;
            all_good = false;
          } else if (this.state.agmtBootstrapBindPW != this.state.agmtBootstrapBindPWConfirm) {
            // Must match
            errObj.agmtBootstrapBindPW = true;
            errObj.agmtBootstrapBindPWConfirm = true;
            all_good = false;
          } else {
            errObj.agmtBootstrapProtocol = false;
            errObj.agmtBootstrapBindMethod = false;
          }
        } else {
          // All good, reset the errObj
          errObj.agmtBootstrapProtocol = false;
          errObj.agmtBootstrapBindMethod = false;
        }

        if (this.state.agmtBootstrapBindDN == "" || !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.valid_dn)(this.state.agmtBootstrapBindDN)) {
          errObj.agmtBootstrapBindDN = true;
          all_good = false;
        }
      }
    } else if (this.state.agmtBootstrap) {
      // Check all the bootstrap settings
      if (attr == "agmtBootstrapBindDN") {
        if (value == "" || !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.valid_dn)(value)) {
          errObj.agmtBootstrapBindDN = true;
          all_good = false;
        } else {
          errObj.agmtBootstrapBindDN = false;
        }
      } else if (this.state.agmtBootstrapBindDN == "" || !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.valid_dn)(this.state.agmtBootstrapBindDN)) {
        errObj.agmtBootstrapBindDN = true;
        all_good = false;
      } else {
        // No problems here, make sure the errObj is reset
        errObj.agmtBootstrapBindDN = false;
      }

      if (attr == 'agmtBootstrapBindMethod') {
        // Adjusting the Bind Method, if SIMPLE then verify the
        // passwords are set and correct
        if (value == "SIMPLE") {
          if (this.state.agmtBootstrapBindPW == "" || this.state.agmtBootstrapBindPWConfirm == "") {
            // Can't be empty
            errObj.agmtBootstrapBindPW = true;
            errObj.agmtBootstrapBindPWConfirm = true;
            all_good = false;
          } else if (this.state.agmtBootstrapBindPW != this.state.agmtBootstrapBindPWConfirm) {
            // Must match
            errObj.agmtBootstrapBindPW = true;
            errObj.agmtBootstrapBindPWConfirm = true;
            all_good = false;
          }
        } else {
          // Not SIMPLE, ignore the passwords and reset errObj
          errObj.agmtBootstrapBindPW = false;
          errObj.agmtBootstrapBindPWConfirm = false;

          if (this.state.agmtBootstrapProtocol == "LDAP") {
            errObj.agmtBootstrapBindMethod = true;
            all_good = false;
          } else {
            // All good, reset the errObj
            errObj.agmtBootstrapProtocol = false;
            errObj.agmtBootstrapBindMethod = false;
          }
        }
      } else if (this.state.agmtBootstrapBindMethod == "SIMPLE") {
        // Current bind method is SIMPLE, check old password values,
        // and new ones.
        if (attr == 'agmtBootstrapBindPW') {
          // Modifying password
          if (value == "") {
            all_good = false;
            errObj.agmtBootstrapBindPW = true;
          } else if (value != this.state.agmtBootstrapBindPWConfirm) {
            errObj.agmtBootstrapBindPW = true;
            errObj.agmtBootstrapBindPWConfirm = true;
            all_good = false;
          } else {
            errObj.agmtBootstrapBindPW = false;
            errObj.agmtBootstrapBindPWConfirm = false;
          }
        } else if (this.state.agmtBootstrapBindPW == "") {
          // Current value is no good
          all_good = false;
        }

        if (attr == 'agmtBootstrapBindPWConfirm') {
          // Modifying password confirmation
          if (value == "") {
            all_good = false;
            errObj.agmtBootstrapBindPWConfirm = true;
          } else if (value != this.state.agmtBootstrapBindPW) {
            errObj.agmtBootstrapBindPW = true;
            errObj.agmtBootstrapBindPWConfirm = true;
            all_good = false;
          } else {
            errObj.agmtBootstrapBindPW = false;
            errObj.agmtBootstrapBindPWConfirm = false;
          }
        } else if (this.state.agmtBootstrapBindPWConfirm == "") {
          // Current value is no good
          all_good = false;
        }
      } else {
        // Bind method is SSLCLIENTAUTH, make sure the connection protocol is LDAPS
        if (this.state.agmtBootstrapProtocol == "LDAP") {
          errObj.agmtBootstrapProtocol = true;
          all_good = false;
        } else {
          // All good, reset the errObj
          errObj.agmtBootstrapProtocol = false;
          errObj.agmtBootstrapBindMethod = false;
        }
      }
    }

    if (attr == 'agmtSync') {
      if (value) {
        // Just set all the days and let the user remove days as needed
        errObj.agmtStartTime = false;
        errObj.agmtEndTime = false;
        this.setState({
          agmtSyncMon: true,
          agmtSyncTue: true,
          agmtSyncWed: true,
          agmtSyncThu: true,
          agmtSyncFri: true,
          agmtSyncSat: true,
          agmtSyncSun: true,
          agmtStartTime: "0000",
          agmtEndTime: "2359"
        });
      }
    } else if (this.state.agmtSync) {
      // Check the days first
      var have_days = false;
      var days = ["agmtSyncSun", "agmtSyncMon", "agmtSyncTue", "agmtSyncWed", "agmtSyncThu", "agmtSyncFri", "agmtSyncSat"];

      for (var _i3 = 0, _days = days; _i3 < _days.length; _i3++) {
        var day = _days[_i3];

        if (attr != day && this.state[day] || attr == day && value) {
          have_days = true;
          break;
        }
      }

      errObj.agmtSyncSun = false;
      errObj.agmtSyncMon = false;
      errObj.agmtSyncTue = false;
      errObj.agmtSyncWed = false;
      errObj.agmtSyncThu = false;
      errObj.agmtSyncFri = false;
      errObj.agmtSyncSat = false;

      if (!have_days) {
        errObj.agmtSyncSun = true;
        errObj.agmtSyncMon = true;
        errObj.agmtSyncTue = true;
        errObj.agmtSyncWed = true;
        errObj.agmtSyncThu = true;
        errObj.agmtSyncFri = true;
        errObj.agmtSyncSat = true;
        all_good = false;
      } else if (attr == 'agmtStartTime') {
        if (value == "") {
          all_good = false;
          errObj.agmtStartTime = true;
        } else if (value >= this.state.agmtEndTime) {
          errObj.agmtStartTime = true;
          all_good = false;
        } else {
          // All good, reset form
          errObj.agmtStartTime = false;
          errObj.agmtEndTime = false;
        }
      } else if (attr == 'agmtEndTime') {
        if (value == "") {
          errObj.agmtEndTime = true;
          all_good = false;
        } else if (this.state.agmtStartTime >= value) {
          errObj.agmtStartTime = true;
          all_good = false;
        } else {
          // All good, reset form
          errObj.agmtStartTime = false;
          errObj.agmtEndTime = false;
        }
      } else if (this.state.agmtStartTime >= this.state.agmtEndTime) {
        errObj.agmtStartTime = true;
        all_good = false;
      }
    }

    return all_good;
  }

  handleTimeChange(action, attr, val) {
    var value = val.replace(":", "");
    var errObj = this.state.errObj;
    var e = {
      target: {
        id: 'dummy',
        value: "",
        type: 'input'
      }
    };

    if (value == "") {
      value = "0000";
    }

    if (attr == "agmtStartTime") {
      if (value > this.state.agmtEndTime) {
        errObj.agmtStartTime = true;
      } else {
        errObj.agmtStartTime = false;
        errObj.agmtEndTime = false;
      }
    } else if (attr == "agmtEndTime") {
      if (this.state.agmtStartTime > value) {
        errObj.agmtEndTime = true;
      } else {
        errObj.agmtEndTime = false;
        errObj.agmtStartTime = false;
      }
    }

    this.setState({
      [attr]: value,
      errObj: errObj
    }, () => {
      action == "edit" ? this.handleEditChange(e) : this.handleCreateChange(e);
    });
  }

  handleCreateChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    var errObj = this.state.errObj;
    var all_good = true;
    var modalData = {
      agmtBindMethod: this.state.agmtBindMethod,
      agmtBindMethodOptions: this.state.agmtBindMethodOptions,
      agmtBootstrapBindMethod: this.state.agmtBootstrapBindMethod,
      agmtBootstrapBindMethodOptions: this.state.agmtBootstrapBindMethodOptions
    };

    if (e.target.type == "time") {
      // Strip out the colon from the time
      value = value.replace(':', '');
    }

    all_good = this.validateConfig(attr, value, modalData, errObj);
    this.setState({
      [attr]: value,
      errObj: errObj,
      agmtSaveOK: all_good,
      agmtBindMethod: modalData.agmtBindMethod,
      agmtBindMethodOptions: modalData.agmtBindMethodOptions,
      agmtBootstrapBindMethod: modalData.agmtBootstrapBindMethod,
      agmtBootstrapBindMethodOptions: modalData.agmtBootstrapBindMethodOptions,
      [e.target.toggle]: false
    });
  }

  handleEditChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    var errObj = this.state.errObj;
    var all_good = false;
    var modalData = {
      agmtBindMethod: this.state.agmtBindMethod,
      agmtBindMethodOptions: this.state.agmtBindMethodOptions,
      agmtBootstrapBindMethod: this.state.agmtBootstrapBindMethod,
      agmtBootstrapBindMethodOptions: this.state.agmtBootstrapBindMethodOptions
    };
    errObj[attr] = false;

    if (e.target.type == "time") {
      // Strip out the colon from the time
      value = value.replace(':', '');
    }

    all_good = this.validateConfig(attr, value, modalData, errObj);

    if (all_good) {
      // All the values are valid, but did something change that warrants
      // the save button to be enabled?
      all_good = false;

      if (attr != 'agmtHost' && this.state.agmtHost != this.state._agmtHost || attr != 'agmtPort' && this.state.agmtPort != this.state._agmtPort || attr != 'agmtBindDN' && this.state.agmtBindDN != this.state._agmtBindDN || attr != 'agmtBindMethod' && this.state.agmtBindMethod != this.state._agmtBindMethod || attr != 'agmtProtocol' && this.state.agmtProtocol != this.state._agmtProtocol || attr != 'agmtSync' && this.state.agmtSync != this.state._agmtSync || attr != 'agmtBootstrap' && this.state.agmtBootstrap != this.state._agmtBootstrap || attr != 'agmtStripAttrs' && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.listsEqual)(this.state.agmtStripAttrs, this.state._agmtStripAttrs) || attr != 'agmtFracAttrs' && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.listsEqual)(this.state.agmtFracAttrs, this.state._agmtFracAttrs) || attr != 'agmtFracInitAttrs' && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.listsEqual)(this.state.agmtFracInitAttrs, this.state._agmtFracInitAttrs)) {
        all_good = true;
      }

      if (attr != "agmtSync" && this.state.agmtSync || attr == "agmtSync" && value) {
        if (attr != 'agmtSyncMon' && this.state.agmtSyncMon != this.state._agmtSyncMon || attr != 'agmtSyncTue' && this.state.agmtSyncTue != this.state._agmtSyncTue || attr != 'agmtSyncWed' && this.state.agmtSyncWed != this.state._agmtSyncWed || attr != 'agmtSyncThu' && this.state.agmtSyncThu != this.state._agmtSyncThu || attr != 'agmtSyncFri' && this.state.agmtSyncFri != this.state._agmtSyncFri || attr != 'agmtSyncSat' && this.state.agmtSyncSat != this.state._agmtSyncSat || attr != 'agmtSyncSun' && this.state.agmtSyncSun != this.state._agmtSyncSun || attr != 'agmtStartTime' && this.state.agmtStartTime != this.state._agmtStartTime || attr != 'agmtEndTime' && this.state.agmtEndTime != this.state._agmtEndTime) {
          all_good = true;
        }
      }

      if (attr != "agmtBootstrap" && this.state.agmtBootstrap || attr == "agmtBootstrap" && value) {
        if (attr != 'agmtBootstrapBindDN' && this.state.agmtBootstrapBindDN != this.state._agmtBootstrapBindDN || attr != 'agmtBootstrapBindPW' && this.state.agmtBootstrapBindPW != this.state._agmtBootstrapBindPW || attr != 'agmtBootstrapBindPWConfirm' && this.state.agmtBootstrapBindPWConfirm != this.state._agmtBootstrapBindPWConfirm || attr != 'agmtBootstrapBindMethod' && this.state.agmtBootstrapBindMethod != this.state._agmtBootstrapBindMethod || attr != 'agmtBootstrapProtocol' && this.state.agmtBootstrapProtocol != this.state._agmtBootstrapProtocol) {
          all_good = true;
        }
      }

      if (attr == 'agmtStripAttrs' && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.listsEqual)(value, this.state._agmtStripAttrs) || attr == 'agmtFracAttrs' && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.listsEqual)(value, this.state._agmtFracAttrs) || attr == 'agmtFracInitAttrs' && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.listsEqual)(value, this.state._agmtFracInitAttrs)) {
        all_good = true;
      } else if (attr != 'dummy' && value != this.state['_' + attr]) {
        all_good = true;
      }
    }

    this.setState({
      [attr]: value,
      errObj: errObj,
      agmtSaveOK: all_good,
      agmtBindMethod: modalData.agmtBindMethod,
      agmtBindMethodOptions: modalData.agmtBindMethodOptions,
      agmtBootstrapBindMethod: modalData.agmtBootstrapBindMethod,
      agmtBootstrapBindMethodOptions: modalData.agmtBootstrapBindMethodOptions,
      [e.target.toggle]: false
    });
  }

  handleTASelectChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    var valueErr = false;
    var errObj = this.state.errObj;

    if (value == "") {
      valueErr = true;
    }

    errObj[attr] = valueErr; // We handle strings and arrays here, need to find a better way to differentiate.

    if (attr.endsWith('Attrs')) {
      if (this.state[attr].includes(value)) {
        this.setState(prevState => ({
          [attr]: prevState[attr].filter(item => item !== e.target.value),
          errObj: errObj,
          [e.target.toggle]: false
        }));
      } else {
        this.setState(prevState => ({
          [attr]: [...prevState[attr], value],
          errObj: errObj,
          [e.target.toggle]: false
        }));
      }
    } else {
      this.setState({
        [attr]: value,
        errObj: errObj,
        [e.target.toggle]: false
      });
    }
  }

  handleTAStripAttrChangeEdit(selection) {
    // TypeAhead handling
    var agmtStripAttrs = this.state.agmtStripAttrs;
    var e = {
      target: {
        id: 'dummy',
        value: "",
        type: 'input'
      }
    };

    if (agmtStripAttrs.includes(selection)) {
      var new_values = this.state.agmtStripAttrs.filter(item => item !== selection);
      this.setState({
        agmtStripAttrs: new_values,
        isStripAttrsEditOpen: false
      }, () => {
        this.handleEditChange(e);
      });
    } else {
      var _new_values = [...this.state.agmtStripAttrs, selection];
      this.setState({
        agmtStripAttrs: _new_values,
        isStripAttrsEditOpen: false
      }, () => {
        this.handleEditChange(e);
      });
    }
  }

  handleTAFracAttrChangeEdit(selection) {
    // TypeAhead handling
    var agmtFracAttrs = this.state.agmtFracAttrs;
    var e = {
      target: {
        id: 'dummy',
        value: "",
        type: 'input'
      }
    };

    if (agmtFracAttrs.includes(selection)) {
      var new_values = this.state.agmtFracAttrs.filter(item => item !== selection);
      this.setState({
        agmtFracAttrs: new_values,
        isExcludeAttrsEditOpen: false
      }, () => {
        this.handleEditChange(e);
      });
    } else {
      var _new_values2 = [...this.state.agmtFracAttrs, selection];
      this.setState({
        agmtFracAttrs: _new_values2,
        isExcludeAttrsEditOpen: false
      }, () => {
        this.handleEditChange(e);
      });
    }
  }

  handleTAFracInitAttrChangeEdit(selection) {
    // TypeAhead handling
    var e = {
      target: {
        id: 'dummy',
        value: "",
        type: 'input'
      }
    };
    var agmtFracInitAttrs = this.state.agmtFracInitAttrs;

    if (agmtFracInitAttrs.includes(selection)) {
      var new_values = this.state.agmtFracInitAttrs.filter(item => item !== selection);
      this.setState({
        agmtFracInitAttrs: new_values,
        isExcludeInitAttrsEditOpen: false
      }, () => {
        this.handleEditChange(e);
      });
    } else {
      var _new_values3 = [...this.state.agmtFracInitAttrs, selection];
      this.setState({
        agmtFracInitAttrs: _new_values3,
        isExcludeInitAttrsEditOpen: false
      }, () => {
        this.handleEditChange(e);
      });
    }
  }

  handleTAStripAttrChange(values) {
    // TypeAhead handling
    var e = {
      target: {
        name: 'agmt-modal',
        id: 'agmtStripAttrs',
        value: values,
        type: 'input',
        toggle: 'isStripAttrsCreateOpen'
      }
    };
    this.handleTASelectChange(e);
  }

  handleTAFracAttrChange(values) {
    // TypeAhead handling
    var e = {
      target: {
        name: 'agmt-modal',
        id: 'agmtFracAttrs',
        value: values,
        type: 'input',
        toggle: 'isExcludeAttrsCreateOpen'
      }
    };
    this.handleTASelectChange(e);
  }

  handleTAFracInitAttrChange(values) {
    // TypeAhead handling
    var e = {
      target: {
        name: 'agmt-modal',
        id: 'agmtFracInitAttrs',
        value: values,
        type: 'input',
        toggle: 'isExcludeInitAttrsCreateOpen'
      }
    };
    this.handleTASelectChange(e);
  }

  showConfirmDeleteAgmt(agmtName) {
    this.setState({
      agmtName: agmtName,
      showConfirmDeleteAgmt: true,
      modalChecked: false,
      modalSpinning: false
    });
  }

  closeConfirmDeleteAgmt() {
    this.setState({
      showConfirmDeleteAgmt: false,
      modalSpinning: false,
      modalChecked: false
    });
  }

  showConfirmInitAgmt(agmtName) {
    this.setState({
      agmtName: agmtName,
      showConfirmInitAgmt: true,
      modalChecked: false,
      modalSpinning: false
    });
  }

  closeConfirmInitAgmt() {
    this.setState({
      showConfirmInitAgmt: false,
      modalSpinning: false,
      modalChecked: false
    });
  }

  showCreateAgmtModal() {
    this.setState({
      showCreateAgmtModal: true,
      agmtName: "",
      agmtHost: "",
      agmtPort: "636",
      agmtProtocol: "LDAPS",
      agmtBindMethod: "SIMPLE",
      agmtBindDN: "cn=replication manager,cn=config",
      agmtBindPW: "",
      agmtBindPWConfirm: "",
      agmtBootstrap: false,
      agmtBootstrapProtocol: "LDAPS",
      agmtBootstrapBindMethod: "SIMPLE",
      agmtBootstrapBindDN: "cn=replication manager,cn=config",
      agmtBootstrapBindPW: "",
      agmtBootstrapBindPWConfirm: "",
      agmtStripAttrs: [],
      agmtFracAttrs: [],
      agmtFracInitAttrs: [],
      agmtSync: false,
      agmtSyncMon: true,
      agmtSyncTue: true,
      agmtSyncWed: true,
      agmtSyncThu: true,
      agmtSyncFri: true,
      agmtSyncSat: true,
      agmtSyncSun: true,
      agmtStartTime: "0000",
      agmtEndTime: "2359",
      agmtInit: "noinit",
      agmtSaveOK: false,
      errObj: {}
    });
  }

  closeCreateAgmtModal() {
    this.setState({
      showCreateAgmtModal: false
    });
  }

  closeEditAgmtModal() {
    this.setState({
      showEditAgmtModal: false
    });
  }

  showEditAgmt(agmtName) {
    // Search for the agmt to get all the details
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'get', agmtName, '--suffix=' + this.props.suffix];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)('showEditAgmt', 'Edit replication agreement', cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var agmtName = "";
      var agmtHost = "";
      var agmtPort = "";
      var agmtProtocol = "";
      var agmtBindMethod = "";
      var agmtBindDN = "";
      var agmtBindPW = "";
      var agmtBindPWConfirm = "";
      var agmtBootstrap = false;
      var agmtBootstrapProtocol = "";
      var agmtBootstrapBindMethod = "SIMPLE";
      var agmtBootstrapBindDN = "";
      var agmtBootstrapBindPW = "";
      var agmtBootstrapBindPWConfirm = "";
      var agmtStripAttrs = [];
      var agmtFracAttrs = [];
      var agmtFracInitAttrs = [];
      var agmtSync = false;
      var agmtSyncMon = false;
      var agmtSyncTue = false;
      var agmtSyncWed = false;
      var agmtSyncThu = false;
      var agmtSyncFri = false;
      var agmtSyncSat = false;
      var agmtSyncSun = false;
      var agmtStartTime = "0000";
      var agmtEndTime = "2359";

      for (var attr in config.attrs) {
        var val = config.attrs[attr][0];

        if (attr == "cn") {
          agmtName = val;
        }

        if (attr == "nsds5replicahost") {
          agmtHost = val;
        }

        if (attr == "nsds5replicaport") {
          agmtPort = val;
        }

        if (attr == "nsds5replicatransportinfo") {
          agmtProtocol = val;
        }

        if (attr == "nsds5replicabindmethod") {
          agmtBindMethod = val.toUpperCase();
        }

        if (attr == "nsds5replicabinddn") {
          agmtBindDN = val;
        }

        if (attr == "nsds5replicacredentials") {
          agmtBindPW = val;
          agmtBindPWConfirm = val;
        }

        if (attr == "nsds5replicabootstraptransportinfo") {
          agmtBootstrapProtocol = val;
        }

        if (attr == "nsds5replicabootstrapbindmethod") {
          agmtBootstrapBindMethod = val.toUpperCase();
        }

        if (attr == "nsds5replicabootstrapbinddn") {
          agmtBootstrapBindDN = val;
          agmtBootstrap = true;
        }

        if (attr == "nsds5replicabootstrapcredentials") {
          agmtBootstrapBindPW = val;
          agmtBootstrapBindPWConfirm = val;
        }

        if (attr == "nsds5replicatedattributelist") {
          var attrs = val.replace("(objectclass=*) $ EXCLUDE", "").trim();
          agmtFracAttrs = attrs.split(' ');
        }

        if (attr == "nsds5replicatedattributelisttotal") {
          var _attrs = val.replace("(objectclass=*) $ EXCLUDE", "").trim();

          agmtFracInitAttrs = _attrs.split(' ');
        }

        if (attr == "nsds5replicastripattrs") {
          agmtStripAttrs = val.split(' ');
        }

        if (attr == "nsds5replicaupdateschedule") {
          agmtSync = true; // Parse schedule

          var parts = val.split(' ');
          var times = parts[0].split('-');
          var days = parts[1]; // Do the times

          agmtStartTime = times[0];
          agmtEndTime = times[1]; // Do the days

          if (days.includes("0")) {
            agmtSyncSun = true;
          }

          if (days.includes("1")) {
            agmtSyncMon = true;
          }

          if (days.includes("2")) {
            agmtSyncTue = true;
          }

          if (days.includes("3")) {
            agmtSyncWed = true;
          }

          if (days.includes("4")) {
            agmtSyncThu = true;
          }

          if (days.includes("5")) {
            agmtSyncFri = true;
          }

          if (days.includes("6")) {
            agmtSyncSat = true;
          }
        }
      }

      if (this._mounted) {
        this.setState({
          showEditAgmtModal: true,
          agmtName: agmtName,
          agmtHost: agmtHost,
          agmtPort: agmtPort,
          agmtProtocol: agmtProtocol,
          agmtBindMethod: agmtBindMethod,
          agmtBindDN: agmtBindDN,
          agmtBindPW: agmtBindPW,
          agmtBindPWConfirm: agmtBindPWConfirm,
          agmtBootstrap: agmtBootstrap,
          agmtBootstrapProtocol: agmtBootstrapProtocol,
          agmtBootstrapBindMethod: agmtBootstrapBindMethod,
          agmtBootstrapBindDN: agmtBootstrapBindDN,
          agmtBootstrapBindPW: agmtBootstrapBindPW,
          agmtBootstrapBindPWConfirm: agmtBootstrapBindPWConfirm,
          agmtStripAttrs: agmtStripAttrs,
          agmtFracAttrs: agmtFracAttrs,
          agmtFracInitAttrs: agmtFracInitAttrs,
          agmtSync: agmtSync,
          agmtSyncMon: agmtSyncMon,
          agmtSyncTue: agmtSyncTue,
          agmtSyncWed: agmtSyncWed,
          agmtSyncThu: agmtSyncThu,
          agmtSyncFri: agmtSyncFri,
          agmtSyncSat: agmtSyncSat,
          agmtSyncSun: agmtSyncSun,
          agmtStartTime: agmtStartTime,
          agmtEndTime: agmtEndTime,
          agmtSaveOK: false,
          modalMsg: "",
          errObj: {},
          // Record original values before editing
          _agmtName: agmtName,
          _agmtHost: agmtHost,
          _agmtPort: agmtPort,
          _agmtProtocol: agmtProtocol,
          _agmtBindMethod: agmtBindMethod,
          _agmtBindDN: agmtBindDN,
          _agmtBindPW: agmtBindPW,
          _agmtBindPWConfirm: agmtBindPWConfirm,
          _agmtBootstrap: agmtBootstrap,
          _agmtBootstrapProtocol: agmtBootstrapProtocol,
          _agmtBootstrapBindMethod: agmtBootstrapBindMethod,
          _agmtBootstrapBindDN: agmtBootstrapBindDN,
          _agmtBootstrapBindPW: agmtBootstrapBindPW,
          _agmtBootstrapBindPWConfirm: agmtBootstrapBindPWConfirm,
          _agmtStripAttrs: agmtStripAttrs,
          _agmtFracAttrs: agmtFracAttrs,
          _agmtFracInitAttrs: agmtFracInitAttrs,
          _agmtSync: agmtSync,
          _agmtSyncMon: agmtSyncMon,
          _agmtSyncTue: agmtSyncTue,
          _agmtSyncWed: agmtSyncWed,
          _agmtSyncThu: agmtSyncThu,
          _agmtSyncFri: agmtSyncFri,
          _agmtSyncSat: agmtSyncSat,
          _agmtSyncSun: agmtSyncSun,
          _agmtStartTime: agmtStartTime,
          _agmtEndTime: agmtEndTime
        });
      }
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to get agreement information for: \"".concat(agmtName, "\" - ").concat(errMsg.desc));
    });
  }

  saveAgmt() {
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'set', this.state.agmtName, '--suffix=' + this.props.suffix]; // Handle Schedule

    if (this.state.agmtSync) {
      var agmt_days = "";

      if (this.state.agmtSyncSun) {
        agmt_days += "0";
      }

      if (this.state.agmtSyncMon) {
        agmt_days += "1";
      }

      if (this.state.agmtSyncTue) {
        agmt_days += "2";
      }

      if (this.state.agmtSyncWed) {
        agmt_days += "3";
      }

      if (this.state.agmtSyncThu) {
        agmt_days += "4";
      }

      if (this.state.agmtSyncFri) {
        agmt_days += "5";
      }

      if (this.state.agmtSyncSat) {
        agmt_days += "6";
      }

      cmd.push('--schedule=' + this.state.agmtStartTime.replace(':', '') + "-" + this.state.agmtEndTime.replace(':', '') + " " + agmt_days);
    } else if (this.state.agmtSync != this.state._agmtSync && !this.state.agmtSync) {
      // We disabled custom scheduleRow
      cmd.push('--schedule=');
    }

    if (this.state.agmtBindMethod != this.state._agmtBindMethod) {
      cmd.push('--bind-method=' + this.state.agmtBindMethod);
    }

    if (this.state.agmtProtocol != this.state._agmtProtocol) {
      cmd.push('--conn-protocol=' + this.state.agmtProtocol);
    }

    if (this.state.agmtBindPW != this.state._agmtBindPW) {
      cmd.push('--bind-passwd=' + this.state.agmtBindPW);
    }

    if (this.state.agmtBindDN != this.state._agmtBindDN) {
      cmd.push('--bind-dn=' + this.state.agmtBindDN);
    }

    if (this.state.agmtFracAttrs != this.state._agmtFracAttrs) {
      cmd.push('--frac-list=' + this.state.agmtFracAttrs.join(' '));
    }

    if (this.state.agmtFracInitAttrs != this.state._agmtFracInitAttrs) {
      cmd.push('--frac-list-total=' + this.state.agmtFracInitAttrs.join(' '));
    }

    if (this.state.agmtStripAttrs != this.state._agmtStripAttrs) {
      cmd.push('--strip-list=' + this.state.agmtStripAttrs.join(' '));
    }

    if (this.state.agmtHost != this.state._agmtHost) {
      cmd.push('--host=' + this.state.agmtHost);
    }

    if (this.state.agmtPort != this.state._agmtPort) {
      cmd.push('--port=' + this.state.agmtPort);
    }

    if (this.state.agmtBootstrap) {
      if (this.state.agmtBootstrapBindMethod != this.state._agmtBootstrapBindMethod) {
        cmd.push('--bootstrap-bind-method=' + this.state.agmtBootstrapBindMethod);
      }

      if (this.state.agmtBootstrapProtocol != this.state._agmtBootstrapProtocol) {
        cmd.push('--bootstrap-conn-protocol=' + this.state.agmtBootstrapProtocol);
      }

      if (this.state.agmtBootstrapBindPW != this.state._agmtBootstrapBindPW) {
        cmd.push('--bootstrap-bind-passwd=' + this.state.agmtBootstrapBindPW);
      }

      if (this.state.agmtBootstrapBindDN != this.state._agmtBootstrapBindDN) {
        cmd.push('--bootstrap-bind-dn=' + this.state.agmtBootstrapBindDN);
      }
    }

    this.setState({
      savingAgmt: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)('saveAgmt', 'update replication agreement', cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload(this.props.suffix);

      if (this._mounted) {
        this.setState({
          savingAgmt: false,
          showEditAgmtModal: false
        });
      }

      this.props.addNotification('success', 'Successfully updated replication agreement');
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to update replication agreement - ".concat(errMsg.desc));
      this.setState({
        savingAgmt: false
      });
    });
  }

  pokeAgmt(agmtName) {
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'poke', agmtName, '--suffix=' + this.props.suffix];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)('pokeAgmt', 'send updates now', cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload(this.props.suffix);
      this.props.addNotification('success', 'Successfully poked replication agreement');
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification('error', "Failed to poke replication agreement - ".concat(errMsg.desc));
    });
  }

  initAgmt(agmtName) {
    this.setState({
      modalSpinning: true
    });
    var init_cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'init', '--suffix=' + this.props.suffix, this.state.agmtName];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)('initAgmt', 'Initialize agreement', init_cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(init_cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var agmtIntervalCount = this.state.agmtInitCounter + 1;
      var intervals = this.state.agmtInitIntervals;
      this.props.reload(this.props.suffix);
      intervals[agmtIntervalCount] = setInterval(this.watchAgmtInit, 2000, this.state.agmtName, agmtIntervalCount);

      if (this._mounted) {
        this.setState({
          agmtInitCounter: agmtIntervalCount,
          agmtInitIntervals: intervals,
          showConfirmInitAgmt: false
        });
      }
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification('error', "Failed to initialize replication agreement - ".concat(errMsg.desc));
      this.setState({
        showConfirmInitAgmt: false
      });
    });
  }

  confirmToggle(agmtName, state) {
    if (state == 'Enabled') {
      this.setState({
        agmtName: agmtName,
        showConfirmDisableAgmt: true,
        modalChecked: false,
        modalSpinning: false
      });
    } else {
      this.setState({
        agmtName: agmtName,
        showConfirmEnableAgmt: true,
        modalChecked: false,
        modalSpinning: false
      });
    }
  }

  closeConfirmEnableAgmt() {
    this.setState({
      showConfirmEnableAgmt: false
    });
  }

  closeConfirmDisableAgmt() {
    this.setState({
      showConfirmDisableAgmt: false
    });
  }

  enableAgmt() {
    // Enable/disable agmt
    this.setState({
      modalSpinning: true
    });
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'enable', this.state.agmtName, '--suffix=' + this.props.suffix];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)('enableAgmt', 'enable agmt', cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload(this.props.suffix);
      this.props.addNotification('success', 'Successfully enabled replication agreement');
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to enabled replication agreement - ".concat(errMsg.desc));
    });
  }

  disableAgmt() {
    // Enable/disable agmt
    this.setState({
      modalSpinning: true
    });
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'disable', this.state.agmtName, '--suffix=' + this.props.suffix];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)('disableAgmt', 'Disable agmt', cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload(this.props.suffix);
      this.props.addNotification('success', 'Successfully disabled replication agreement');
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to disable replication agreement - ".concat(errMsg.desc));
    });
  }

  deleteAgmt() {
    this.setState({
      modalSpinning: true
    });
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'delete', '--suffix=' + this.props.suffix, this.state.agmtName];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)('deleteAgmt', 'Delete agmt', cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload(this.props.suffix);
      this.props.addNotification('success', 'Successfully deleted replication agreement');
      this.setState({
        showDeleteConfirm: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to delete replication agreement - ".concat(errMsg.desc));
      this.setState({
        showDeleteConfirm: false
      });
    });
  }

  createAgmt() {
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'create', this.state.agmtName, '--suffix=' + this.props.suffix, '--host=' + this.state.agmtHost, '--port=' + this.state.agmtPort, '--bind-method=' + this.state.agmtBindMethod, '--conn-protocol=' + this.state.agmtProtocol, '--bind-dn=' + this.state.agmtBindDN, '--bind-passwd=' + this.state.agmtBindPW]; // Handle Schedule

    if (this.state.agmtSync) {
      var agmt_days = "";

      if (this.state.agmtSyncSun) {
        agmt_days += "0";
      }

      if (this.state.agmtSyncMon) {
        agmt_days += "1";
      }

      if (this.state.agmtSyncTue) {
        agmt_days += "2";
      }

      if (this.state.agmtSyncWed) {
        agmt_days += "3";
      }

      if (this.state.agmtSyncThu) {
        agmt_days += "4";
      }

      if (this.state.agmtSyncFri) {
        agmt_days += "5";
      }

      if (this.state.agmtSyncSat) {
        agmt_days += "6";
      }

      cmd.push('--schedule=' + this.state.agmtStartTime.replace(':', '') + "-" + this.state.agmtEndTime.replace(':', '') + " " + agmt_days);
    } // Handle fractional and stripped attributes


    if (this.state.agmtFracAttrs.length > 0) {
      cmd.push('--frac-list=' + this.state.agmtFracAttrs.join(' '));
    }

    if (this.state.agmtFracInitAttrs.length > 0) {
      cmd.push('--frac-list-total=' + this.state.agmtFracAttrs.join(' '));
    }

    if (this.state.agmtStripAttrs.length > 0) {
      cmd.push('--strip-list=' + this.state.agmtStripAttrs.join(' '));
    }

    if (this.state.agmtBootstrap) {
      if (this.state.agmtBootstrapBindDN != "") {
        cmd.push('--bootstrap-bind-dn=' + this.state.agmtBootstrapBindDN);
      }

      if (this.state.agmtBootstrapBindDNPW != "") {
        cmd.push('--bootstrap-bind-passwd=' + this.state.agmtBootstrapBindDNPW);
      }

      if (this.state.agmtBootstrapBindMethod != "") {
        cmd.push('--bootstrap-bind-method=' + this.state.agmtBootstrapBindMethod);
      }

      if (this.state.agmtBootstrapProtocol != "") {
        cmd.push('--bootstrap-conn-protocol=' + this.state.agmtBootstrapProtocol);
      }
    }

    this.setState({
      savingAgmt: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)('createAgmt', 'Create replication agreement', cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload(this.props.suffix);

      if (this._mounted) {
        this.setState({
          savingAgmt: false,
          showCreateAgmtModal: false
        });
      }

      this.props.addNotification('success', 'Successfully created replication agreement');

      if (this.state.agmtInit == 'online-init') {
        this.initAgmt(this.state.agmtName);
      }
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to create replication agreement - ".concat(errMsg.desc));
      this.setState({
        savingAgmt: false
      });
    });
  }

  watchAgmtInit(agmtName, idx) {
    // Watch the init, then clear the interval index
    var status_cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-agmt', 'init-status', '--suffix=' + this.props.suffix, agmtName];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)('watchAgmtInit', 'Get initialization status for agmt', status_cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(status_cmd, {
      superuser: true,
      err: "message"
    }).done(data => {
      var init_status = JSON.parse(data);

      if (init_status.startsWith('Agreement successfully initialized') || init_status.startsWith('Agreement initialization failed')) {
        // Either way we're done, stop watching the status
        clearInterval(this.state.agmtInitIntervals[idx]);
        this.props.reload(this.props.suffix);
      }
    });
  }

  onSort(_event, index, direction) {
    var sortedRows = this.state.rows.sort((a, b) => a[index] < b[index] ? -1 : a[index] > b[index] ? 1 : 0);
    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: direction === _patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.SortByDirection.asc ? sortedRows : sortedRows.reverse()
    });
  }

  onSearchChange(value, event) {
    var rows = [];
    var val = value.toLowerCase();

    var _iterator = _createForOfIteratorHelper(this.state.rows),
        _step;

    try {
      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        var row = _step.value;

        if (val != "" && row[0].indexOf(val) == -1 && row[1].indexOf(val) == -1 && row[2].indexOf(val) == -1) {
          // Not a match, skip it
          continue;
        }

        rows.push([row[0], row[1], row[2], row[3], row[4], row[5]]);
      }
    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }

    if (val == "") {
      // reset rows
      rows = JSON.parse(JSON.stringify(this.props.rows));
    }

    this.setState({
      rows: rows,
      value: value,
      page: 1
    });
  }

  render() {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-right ds-margin-bottom-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_replTables_jsx__WEBPACK_IMPORTED_MODULE_3__.ReplAgmtTable, {
      key: this.state.rows,
      rows: this.state.rows,
      edit: this.showEditAgmt,
      poke: this.pokeAgmt,
      init: this.showConfirmInitAgmt,
      enable: this.confirmToggle,
      delete: this.showConfirmDeleteAgmt,
      page: this.state.page,
      sort: this.onSort,
      sortBy: this.state.sortBy,
      search: this.onSearchChange,
      value: this.state.value
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top ds-container ds-inline"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Button, {
      variant: "primary",
      onClick: this.showCreateAgmtModal
    }, "Create Agreement"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Button, {
      className: "ds-left-margin",
      variant: "secondary",
      onClick: () => {
        this.props.reload(this.props.suffix);
      }
    }, "Refresh Agreements")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_replModals_jsx__WEBPACK_IMPORTED_MODULE_4__.ReplAgmtModal, {
      key: this.state.showCreateAgmtModal ? "create1" : "create0",
      showModal: this.state.showCreateAgmtModal,
      closeHandler: this.closeCreateAgmtModal,
      handleChange: this.handleCreateChange,
      handleTimeChange: this.handleTimeChange,
      handleStripChange: this.handleTAStripAttrChange,
      handleFracChange: this.handleTAFracAttrChange,
      handleFracInitChange: this.handleTAFracInitAttrChange,
      onExcludeAttrsToggle: this.onExcludeAttrsCreateToggle,
      onExcludeAttrsClear: this.onExcludeAttrsCreateClear,
      onExcludeAttrsInitToggle: this.onExcludeAttrsInitCreateToggle,
      onExcludeAttrsInitClear: this.onExcludeAttrsInitCreateClear,
      onStripAttrsToggle: this.onStripAttrsCreateToggle,
      onStripAttrsClear: this.onStripAttrsCreateClear,
      isExcludeAttrsOpen: this.state.isExcludeAttrsCreateOpen,
      isExcludeInitAttrsOpen: this.state.isExcludeInitAttrsCreateOpen,
      isStripAttrsOpen: this.state.isStripAttrsCreateOpen,
      saveHandler: this.createAgmt,
      spinning: this.state.savingAgmt,
      agmtName: this.state.agmtName,
      agmtHost: this.state.agmtHost,
      agmtPort: this.state.agmtPort,
      agmtBindDN: this.state.agmtBindDN,
      agmtBindPW: this.state.agmtBindPW,
      agmtBindPWConfirm: this.state.agmtBindPWConfirm,
      agmtProtocol: this.state.agmtProtocol,
      agmtBindMethod: this.state.agmtBindMethod,
      agmtBindMethodOptions: this.state.agmtBindMethodOptions,
      agmtBootstrap: this.state.agmtBootstrap,
      agmtBootstrapBindDN: this.state.agmtBootstrapBindDN,
      agmtBootstrapBindPW: this.state.agmtBootstrapBindPW,
      agmtBootstrapBindPWConfirm: this.state.agmtBootstrapBindPWConfirm,
      agmtBootstrapProtocol: this.state.agmtBootstrapProtocol,
      agmtBootstrapBindMethod: this.state.agmtBootstrapBindMethod,
      agmtBootstrapBindMethodOptions: this.state.agmtBootstrapBindMethodOptions,
      agmtStripAttrs: this.state.agmtStripAttrs,
      agmtFracAttrs: this.state.agmtFracAttrs,
      agmtFracInitAttrs: this.state.agmtFracInitAttrs,
      agmtSync: this.state.agmtSync,
      agmtSyncMon: this.state.agmtSyncMon,
      agmtSyncTue: this.state.agmtSyncTue,
      agmtSyncWed: this.state.agmtSyncWed,
      agmtSyncThu: this.state.agmtSyncThu,
      agmtSyncFri: this.state.agmtSyncFri,
      agmtSyncSat: this.state.agmtSyncSat,
      agmtSyncSun: this.state.agmtSyncSun,
      agmtStartTime: this.state.agmtStartTime,
      agmtEndTime: this.state.agmtEndTime,
      agmtInit: this.state.agmtInit,
      availAttrs: this.props.attrs,
      error: this.state.errObj,
      saveOK: this.state.agmtSaveOK
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_replModals_jsx__WEBPACK_IMPORTED_MODULE_4__.ReplAgmtModal, {
      key: this.state.showEditAgmtModal ? "edit1" : "edit0",
      showModal: this.state.showEditAgmtModal,
      closeHandler: this.closeEditAgmtModal,
      handleChange: this.handleEditChange,
      handleTimeChange: this.handleTimeChange,
      handleStripChange: this.handleTAStripAttrChangeEdit,
      handleFracChange: this.handleTAFracAttrChangeEdit,
      handleFracInitChange: this.handleTAFracInitAttrChangeEdit,
      onExcludeAttrsToggle: this.onExcludeAttrsEditToggle,
      onExcludeAttrsClear: this.onExcludeAttrsEditClear,
      onExcludeAttrsInitToggle: this.onExcludeAttrsInitEditToggle,
      onExcludeAttrsInitClear: this.onExcludeAttrsInitEditClear,
      onStripAttrsToggle: this.onStripAttrsEditToggle,
      onStripAttrsClear: this.onStripAttrsEditClear,
      isExcludeAttrsOpen: this.state.isExcludeAttrsEditOpen,
      isExcludeInitAttrsOpen: this.state.isExcludeInitAttrsEditOpen,
      isStripAttrsOpen: this.state.isStripAttrsEditOpen,
      saveHandler: this.saveAgmt,
      spinning: this.state.savingAgmt,
      agmtName: this.state.agmtName,
      agmtHost: this.state.agmtHost,
      agmtPort: this.state.agmtPort,
      agmtBindDN: this.state.agmtBindDN,
      agmtBindPW: this.state.agmtBindPW,
      agmtBindPWConfirm: this.state.agmtBindPWConfirm,
      agmtProtocol: this.state.agmtProtocol,
      agmtBindMethod: this.state.agmtBindMethod,
      agmtBindMethodOptions: this.state.agmtBindMethodOptions,
      agmtBootstrap: this.state.agmtBootstrap,
      agmtBootstrapBindDN: this.state.agmtBootstrapBindDN,
      agmtBootstrapBindPW: this.state.agmtBootstrapBindPW,
      agmtBootstrapBindPWConfirm: this.state.agmtBootstrapBindPWConfirm,
      agmtBootstrapProtocol: this.state.agmtBootstrapProtocol,
      agmtBootstrapBindMethod: this.state.agmtBootstrapBindMethod,
      agmtBootstrapBindMethodOptions: this.state.agmtBootstrapBindMethodOptions,
      agmtStripAttrs: this.state.agmtStripAttrs,
      agmtFracAttrs: this.state.agmtFracAttrs,
      agmtFracInitAttrs: this.state.agmtFracInitAttrs,
      agmtSync: this.state.agmtSync,
      agmtSyncMon: this.state.agmtSyncMon,
      agmtSyncTue: this.state.agmtSyncTue,
      agmtSyncWed: this.state.agmtSyncWed,
      agmtSyncThu: this.state.agmtSyncThu,
      agmtSyncFri: this.state.agmtSyncFri,
      agmtSyncSat: this.state.agmtSyncSat,
      agmtSyncSun: this.state.agmtSyncSun,
      agmtStartTime: this.state.agmtStartTime,
      agmtEndTime: this.state.agmtEndTime,
      agmtInit: this.state.agmtInit,
      availAttrs: this.props.attrs,
      error: this.state.errObj,
      saveOK: this.state.agmtSaveOK,
      edit: true
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmDeleteAgmt,
      closeHandler: this.closeConfirmDeleteAgmt,
      handleChange: this.handleModalChange,
      actionHandler: this.deleteAgmt,
      spinning: this.state.modalSpinning,
      item: this.state.agmtName,
      checked: this.state.modalChecked,
      mTitle: "Delete Replication Agreement",
      mMsg: "Are you sure you want to delete this replication agreement?",
      mSpinningMsg: "Deleting Replication Agreement ...",
      mBtnName: "Delete Agreement"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmInitAgmt,
      closeHandler: this.closeConfirmInitAgmt,
      handleChange: this.handleModalChange,
      actionHandler: this.initAgmt,
      spinning: this.state.modalSpinning,
      item: this.state.agmtName,
      checked: this.state.modalChecked,
      mTitle: "Initialize Replication Agreement",
      mMsg: "Are you sure you want to initialize this replication agreement?",
      mSpinningMsg: "Initializing Replication Agreement ...",
      mBtnName: "Initialize Agreement"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmEnableAgmt,
      closeHandler: this.closeConfirmEnableAgmt,
      handleChange: this.handleModalChange,
      actionHandler: this.enableAgmt,
      spinning: this.state.modalSpinning,
      item: this.state.agmtName,
      checked: this.state.modalChecked,
      mTitle: "Enable Replication Agreement",
      mMsg: "Are you sure you want to enable this replication agreement?",
      mSpinningMsg: "Enabling ...",
      mBtnName: "Enable Agreement"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmDisableAgmt,
      closeHandler: this.closeConfirmDisableAgmt,
      handleChange: this.handleModalChange,
      actionHandler: this.disableAgmt,
      spinning: this.state.modalSpinning,
      item: this.state.agmtName,
      checked: this.state.modalChecked,
      mTitle: "Disable Replication Agreement",
      mMsg: "Are you sure you want to disable this replication agreement?",
      mSpinningMsg: "Disabling ...",
      mBtnName: "Disable Agreement"
    }));
  }

}
ReplAgmts.propTypes = {
  suffix: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().array),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func),
  attrs: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().array)
};
ReplAgmts.defaultProps = {
  serverId: "",
  suffix: "",
  rows: [],
  attrs: []
};

/***/ }),

/***/ "./src/lib/replication/replChangelog.jsx":
/*!***********************************************!*\
  !*** ./src/lib/replication/replChangelog.jsx ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Changelog": () => (/* binding */ Changelog)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_16__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/NumberInput/NumberInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_icons_dist_js_icons_outlined_question_circle_icon__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-icons/dist/js/icons/outlined-question-circle-icon */ "./node_modules/@patternfly/react-icons/dist/js/icons/outlined-question-circle-icon.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }







class Changelog extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      loading: false,
      errObj: {},
      showConfirmDelete: false,
      saveBtnDisabled: true,
      // Changelog settings
      clMaxEntries: Number(this.props.clMaxEntries) == 0 ? -1 : Number(this.props.clMaxEntries),
      clMaxAge: Number(this.props.clMaxAge.slice(0, -1)) == 0 ? -1 : Number(this.props.clMaxAge.slice(0, -1)),
      clMaxAgeUnit: this.props.clMaxAge != "" ? this.props.clMaxAge.slice(-1).toLowerCase() : "s",
      clTrimInt: Number(this.props.clTrimInt) == 0 ? -1 : Number(this.props.clTrimInt),
      clEncrypt: this.props.clEncrypt,
      // Preserve original settings
      _clMaxEntries: Number(this.props.clMaxEntries) == 0 ? -1 : Number(this.props.clMaxEntries),
      _clMaxAge: Number(this.props.clMaxAge.slice(0, -1)) == 0 ? -1 : Number(this.props.clMaxAge.slice(0, -1)),
      _clMaxAgeUnit: this.props.clMaxAge != "" ? this.props.clMaxAge.slice(-1).toLowerCase() : "s",
      _clTrimInt: Number(this.props.clTrimInt) == 0 ? -1 : Number(this.props.clTrimInt),
      _clEncrypt: this.props.clEncrypt
    };
    this.minValue = -1;
    this.maxValue = 20000000;

    this.onMinus = id => {
      this.setState({
        [id]: Number(this.state[id]) - 1
      }, () => {
        this.validateSaveBtn();
      });
    };

    this.onChange = (event, id) => {
      var newValue = isNaN(event.target.value) ? 0 : Number(event.target.value);
      this.setState({
        [id]: newValue > this.maxValue ? this.maxValue : newValue < this.minValue ? this.minValue : newValue
      }, () => {
        this.validateSaveBtn();
      });
    };

    this.onPlus = id => {
      this.setState({
        [id]: Number(this.state[id]) + 1
      }, () => {
        this.validateSaveBtn();
      });
    };

    this.handleChange = this.handleChange.bind(this);
    this.saveSettings = this.saveSettings.bind(this);
  }

  saveSettings() {
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'set-changelog', '--suffix', this.props.suffix];
    var requires_restart = false;
    var msg = "Successfully updated changelog configuration.";

    if (this.state.clMaxEntries != this.state._clMaxEntries) {
      cmd.push("--max-entries=" + this.state.clMaxEntries);
    }

    if (this.state.clMaxAge != this.state._clMaxAge || this.state.clMaxAgeUnit != this.state._clMaxAgeUnit) {
      cmd.push("--max-age=" + this.state.clMaxAge + this.state.clMaxAgeUnit);
    }

    if (this.state.clTrimInt != this.state._clTrimInt) {
      cmd.push("--trim-interval=" + this.state.clTrimInt);
    }

    if (this.state.clEncrypt != this.state._clEncrypt) {
      if (this.state.clEncrypt) {
        cmd.push("--encrypt");
        msg += "  This requires a server restart to take effect";
        requires_restart = true;
      } else {
        cmd.push("--disable-encrypt");
      }
    }

    if (cmd.length > 6) {
      this.setState({
        // Start the spinner
        saving: true
      });
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("saveSettings", "Applying replication changelog changes", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        this.reloadChangelog();
        this.props.addNotification(requires_restart ? "warning" : "success", msg);
        this.setState({
          saving: false,
          saveBtnDisabled: true
        });
      }).fail(err => {
        var errMsg = JSON.parse(err);
        this.reloadChangelog();
        this.setState({
          saving: false
        });
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        this.props.addNotification("error", "Error updating changelog configuration - ".concat(msg));
      });
    }
  }

  validateSaveBtn() {
    var saveBtnDisabled = true;

    if (this.state.clMaxEntries != this.state._clMaxEntries || this.state.clMaxAge != this.state._clMaxAge || this.state.clMaxAgeUnit != this.state._clMaxAgeUnit || this.state.clTrimInt != this.state._clTrimInt || this.state.clEncrypt != this.state._clEncrypt) {
      saveBtnDisabled = false;
    }

    this.setState({
      saveBtnDisabled: saveBtnDisabled
    });
  }

  handleChange(str, e) {
    // Update the state, then validate the values/save btn
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    this.setState({
      [attr]: value
    }, () => {
      this.validateSaveBtn();
    });
  }

  reloadChangelog() {
    this.setState({
      loading: true
    });
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'get-changelog', '--suffix', this.props.suffix];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("reloadChangelog", "Load the replication changelog info", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var clMaxEntries = "";
      var clMaxAge = "";
      var clMaxAgeUnit = "s";
      var clTrimInt = "";
      var clEncrypt = false;

      for (var attr in config.attrs) {
        var val = config.attrs[attr][0];

        if (attr == "nsslapd-changelogmaxentries") {
          clMaxEntries = val;
        } else if (attr == "nsslapd-changelogmaxage") {
          clMaxAge = val.slice(0, -1);
          clMaxAgeUnit = val.slice(-1).toLowerCase();
        } else if (attr == "nsslapd-changelogtrim-interval") {
          clTrimInt = val;
        } else if (attr == "nsslapd-encryptionalgorithm") {
          clEncrypt = true;
        }
      }

      this.setState({
        clMaxEntries: Number(clMaxEntries) == 0 ? -1 : Number(clMaxEntries),
        clMaxAge: Number(clMaxAge) == 0 ? -1 : Number(clMaxAge),
        clMaxAgeUnit: clMaxAgeUnit,
        clTrimInt: Number(clTrimInt) == 0 ? -1 : Number(clTrimInt),
        clEncrypt: clEncrypt,
        // Preserve original settings
        _clMaxEntries: Number(clMaxEntries) == 0 ? -1 : Number(clMaxEntries),
        _clMaxAge: Number(clMaxAge) == 0 ? -1 : Number(clMaxAge),
        _clMaxAgeUnit: clMaxAgeUnit,
        _clTrimInt: Number(clTrimInt) == 0 ? -1 : Number(clTrimInt),
        _clEncrypt: clEncrypt,
        saveBtnDisabled: true,
        loading: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to reload changelog for \"".concat(this.props.suffix, "\" - ").concat(errMsg.desc));
      this.setState({
        loading: false,
        saveBtnDisabled: true
      });
    });
  }

  render() {
    var clPage;
    var saveBtnName = "Save Settings";
    var extraPrimaryProps = {};

    if (this.state.saving) {
      saveBtnName = "Saving settings ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    } else if (this.loading) {
      clPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-top-xlg ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextVariants.h3
      }, "Loading Changelog Configuration ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Spinner, {
        className: "ds-margin-top-lg",
        size: "md"
      }));
    } else {
      clPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Form, {
        isHorizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
        title: "Changelog trimming parameter.  Set the maximum number of changelog entries allowed in the database (nsslapd-changelogmaxentries)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Changelog Maximum Entries"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.NumberInput, {
        value: this.state.clMaxEntries,
        min: this.minValue,
        max: this.maxValue,
        onMinus: () => {
          this.onMinus("clMaxEntries");
        },
        onChange: e => {
          this.onChange(e, "clMaxEntries");
        },
        onPlus: () => {
          this.onPlus("clMaxEntries");
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 8
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
        title: "Changelog trimming parameter.  This set the maximum age of a changelog entry (nsslapd-changelogmaxage)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Changelog Maximum Age"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.NumberInput, {
        value: this.state.clMaxAge,
        min: this.minValue,
        max: this.maxValue,
        onMinus: () => {
          this.onMinus("clMaxAge");
        },
        onChange: e => {
          this.onChange(e, "clMaxAge");
        },
        onPlus: () => {
          this.onPlus("clMaxAge");
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 8
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
        span: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormSelect, {
        className: "ds-margin-left",
        id: "clMaxAgeUnit",
        value: this.state.clMaxAgeUnit,
        onChange: this.handleChange,
        "aria-label": "FormSelect Input",
        isDisabled: this.state.clMaxAge < 1
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
        key: "s",
        value: "s",
        label: "Seconds"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
        key: "m",
        value: "m",
        label: "Minutes"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
        key: "h",
        value: "h",
        label: "Hours"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
        key: "d",
        value: "d",
        label: "Days"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
        key: "w",
        value: "w",
        label: "Weeks"
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
        title: "The changelog trimming interval.  Set how often the changelog checks if there are entries that can be purged from the changelog based on the trimming parameters (nsslapd-changelogtrim-interval)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Changelog Trimming Interval"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.NumberInput, {
        value: this.state.clTrimInt,
        min: this.minValue,
        max: this.maxValue,
        onMinus: () => {
          this.onMinus("clTrimInt");
        },
        onChange: e => {
          this.onChange(e, "clTrimInt");
        },
        onPlus: () => {
          this.onPlus("clTrimInt");
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 8
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Grid, {
        title: "The changelog trimming interval.  Set how often the changelog checks if there are entries that can be purged from the changelog based on the trimming parameters (nsslapd-changelogtrim-interval)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Changelog Encryption", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Tooltip, {
        id: "CLtooltip",
        position: "bottom",
        content: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, "Changelog encryption requires that the server must already be configured for security/TLS.  This setting also requires that you export and import the changelog which must be done while the database is in read-only mode.  So first put the database into read-only mode, then export the changelog, enable changelog encryption, restart the server, import the changelog, and finally unset the database read-only mode.")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons_dist_js_icons_outlined_question_circle_icon__WEBPACK_IMPORTED_MODULE_13__["default"], {
        className: "ds-left-margin"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Checkbox, {
        id: "clEncrypt",
        isChecked: this.state.clEncrypt,
        onChange: this.handleChange
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Button, _extends({
        className: "ds-margin-top-xlg",
        variant: "primary",
        onClick: this.saveSettings,
        isDisabled: this.state.saveBtnDisabled,
        isLoading: this.state.saving,
        spinnerAriaValueText: this.state.saving ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: this.state.saving ? "ds-disabled" : ""
    }, clPage);
  }

}
Changelog.propTypes = {
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string),
  clMaxEntries: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string),
  clMaxAge: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string),
  clTrimInt: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string),
  clEncrypt: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().bool),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),
  suffix: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string)
};
Changelog.defaultProps = {
  serverId: "",
  clMaxEntries: "",
  clMaxAge: "",
  clTrimInt: "",
  clEncrypt: false,
  suffix: ""
};

/***/ }),

/***/ "./src/lib/replication/replConfig.jsx":
/*!********************************************!*\
  !*** ./src/lib/replication/replConfig.jsx ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ReplConfig": () => (/* binding */ ReplConfig)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _replTables_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./replTables.jsx */ "./src/lib/replication/replTables.jsx");
/* harmony import */ var _replModals_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./replModals.jsx */ "./src/lib/replication/replModals.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/ExpandableSection/ExpandableSection.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/NumberInput/NumberInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_15__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }









class ReplConfig extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      saving: false,
      showConfirmManagerDelete: false,
      showAddManagerModal: false,
      showPromoteDemoteModal: false,
      addManagerSpinning: false,
      roleChangeSpinning: false,
      manager: "cn=replication manager,cn=config",
      manager_passwd: "",
      manager_passwd_confirm: "",
      newRole: this.props.role == "Supplier" ? "Hub" : "Supplier",
      newRID: 1,
      modalSpinning: false,
      modalChecked: false,
      errObj: {},
      saveBtnDisabled: true,
      isExpanded: false,
      // Config Settings
      nsds5replicabinddn: this.props.data.nsds5replicabinddn,
      nsds5replicabinddngroup: this.props.data.nsds5replicabinddngroup,
      nsds5replicabinddngroupcheckinterval: Number(this.props.data.nsds5replicabinddngroupcheckinterval) == 0 ? -1 : Number(this.props.data.nsds5replicabinddngroupcheckinterval),
      nsds5replicareleasetimeout: Number(this.props.data.nsds5replicareleasetimeout),
      nsds5replicapurgedelay: Number(this.props.data.nsds5replicapurgedelay) == 0 ? 604800 : Number(this.props.data.nsds5replicapurgedelay),
      nsds5replicatombstonepurgeinterval: Number(this.props.data.nsds5replicatombstonepurgeinterval) == 0 ? 86400 : Number(this.props.data.nsds5replicatombstonepurgeinterval),
      nsds5replicaprecisetombstonepurging: Number(this.props.data.nsds5replicaprecisetombstonepurging),
      nsds5replicaprotocoltimeout: Number(this.props.data.nsds5replicaprotocoltimeout) == 0 ? 120 : Number(this.props.data.nsds5replicaprotocoltimeout),
      nsds5replicabackoffmin: Number(this.props.data.nsds5replicabackoffmin) == 0 ? 3 : Number(this.props.data.nsds5replicabackoffmin),
      nsds5replicabackoffmax: Number(this.props.data.nsds5replicabackoffmax) == 0 ? 300 : Number(this.props.data.nsds5replicabackoffmax),
      // Original settings
      _nsds5replicabinddn: this.props.data.nsds5replicabinddn,
      _nsds5replicabinddngroup: this.props.data.nsds5replicabinddngroup,
      _nsds5replicabinddngroupcheckinterval: Number(this.props.data.nsds5replicabinddngroupcheckinterval) == 0 ? -1 : Number(this.props.data.nsds5replicabinddngroupcheckinterval),
      _nsds5replicareleasetimeout: this.props.data.nsds5replicareleasetimeout,
      _nsds5replicapurgedelay: Number(this.props.data.nsds5replicapurgedelay) == 0 ? 604800 : Number(this.props.data.nsds5replicapurgedelay),
      _nsds5replicatombstonepurgeinterval: Number(this.props.data.nsds5replicatombstonepurgeinterval) == 0 ? 86400 : Number(this.props.data.nsds5replicatombstonepurgeinterval),
      _nsds5replicaprecisetombstonepurging: this.props.data.nsds5replicaprecisetombstonepurging,
      _nsds5replicaprotocoltimeout: Number(this.props.data.nsds5replicaprotocoltimeout) == 0 ? 120 : Number(this.props.data.nsds5replicaprotocoltimeout),
      _nsds5replicabackoffmin: Number(this.props.data.nsds5replicabackoffmin) == 0 ? 3 : Number(this.props.data.nsds5replicabackoffmin),
      _nsds5replicabackoffmax: Number(this.props.data.nsds5replicabackoffmax) == 0 ? 300 : Number(this.props.data.nsds5replicabackoffmax)
    };

    this.onToggle = isExpanded => {
      this.setState({
        isExpanded
      });
    };

    this.onMinus = () => {
      this.setState({
        newRID: Number(this.state.newRID) - 1
      });
    };

    this.onNumberChange = event => {
      var newValue = isNaN(event.target.value) ? 0 : Number(event.target.value);
      this.setState({
        newRID: newValue > 65534 ? 65534 : newValue < 1 ? 1 : newValue
      });
    };

    this.onPlus = () => {
      this.setState({
        newRID: Number(this.state.newRID) + 1
      });
    };

    this.maxValue = 20000000;

    this.onMinusConfig = id => {
      this.setState({
        [id]: Number(this.state[id]) - 1
      }, () => {
        this.validateSaveBtn();
      });
    };

    this.onConfigChange = (event, id, min) => {
      var newValue = isNaN(event.target.value) ? 0 : Number(event.target.value);
      this.setState({
        [id]: newValue > this.maxValue ? this.maxValue : newValue < min ? min : newValue
      }, () => {
        this.validateSaveBtn();
      });
    };

    this.onPlusConfig = id => {
      this.setState({
        [id]: Number(this.state[id]) + 1
      }, () => {
        this.validateSaveBtn();
      });
    };

    this.confirmManagerDelete = this.confirmManagerDelete.bind(this);
    this.closeConfirmManagerDelete = this.closeConfirmManagerDelete.bind(this);
    this.deleteManager = this.deleteManager.bind(this);
    this.showAddManager = this.showAddManager.bind(this);
    this.closeAddManagerModal = this.closeAddManagerModal.bind(this);
    this.addManager = this.addManager.bind(this);
    this.handleChange = this.handleChange.bind(this);
    this.handleModalChange = this.handleModalChange.bind(this);
    this.handleManagerChange = this.handleManagerChange.bind(this);
    this.showPromoteDemoteModal = this.showPromoteDemoteModal.bind(this);
    this.closePromoteDemoteModal = this.closePromoteDemoteModal.bind(this);
    this.doRoleChange = this.doRoleChange.bind(this);
    this.saveConfig = this.saveConfig.bind(this);
    this.validateSaveBtn = this.validateSaveBtn.bind(this);
  }

  doRoleChange(changeType) {
    var action = "demote";

    if (changeType == "Promoting") {
      action = "promote";
    }

    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', action, '--suffix=' + this.props.suffix, "--newrole=" + this.state.newRole];

    if (this.state.newRole == "Supplier") {
      var ridNum = parseInt(this.state.newRID, 10);

      if (ridNum < 1 || ridNum >= 65535) {
        this.props.addNotification("error", "A Supplier replica requires a unique numerical identifier.  Please enter an ID between 1 and 65534");
        return;
      }

      cmd.push("--replica-id=" + this.state.newRID);
    }

    this.setState({
      roleChangeSpinning: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)('doRoleChange', 'change replica role', cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload();
      this.props.addNotification("success", "Successfully ".concat(action, "d replica to a ").concat(this.state.newRole));
      this.setState({
        roleChangeSpinning: false,
        showPromoteDemoteModal: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.reload();
      this.props.addNotification("error", "Failed to ".concat(action, " replica - ").concat(errMsg.desc));
      this.setState({
        roleChangeSpinning: false,
        showPromoteDemoteModal: false
      });
    });
  }

  closePromoteDemoteModal() {
    this.setState({
      showPromoteDemoteModal: false
    });
  }

  showPromoteDemoteModal() {
    this.setState({
      showPromoteDemoteModal: true,
      modalChecked: false
    });
  }

  closeAddManagerModal() {
    this.setState({
      showAddManagerModal: false
    });
  }

  showAddManager() {
    this.setState({
      showAddManagerModal: true,
      manager: "cn=replication manager,cn=config",
      manager_passwd: "",
      manager_passwd_confirm: "",
      errObj: {
        manager_passwd: true,
        manager_passwd_confirm: true
      }
    });
  }

  addManager() {
    // Validate DN
    if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.valid_dn)(this.state.manager)) {
      this.props.addNotification("error", "Invalid DN for the Replication Manager: ".concat(this.state.manager));
      return;
    }

    if (this.state.manager_passwd == "" || this.state.manager_passwd_confirm == "") {
      this.props.addNotification("error", "You must provide a password for the Replication Manager");
      return;
    }

    if (this.state.manager_passwd != this.state.manager_passwd_confirm) {
      this.props.addNotification("error", "Passwords do not match");
      return;
    }

    this.setState({
      addManagerSpinning: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "create-manager", "--suffix=" + this.props.suffix, "--name=" + this.state.manager, "--passwd=" + this.state.manager_passwd];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("addManager", "Adding Replication Manager", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reloadConfig(this.props.suffix);
      this.props.addNotification("success", "Successfully added Replication Manager");
      this.setState({
        addManagerSpinning: false,
        showAddManagerModal: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.reloadConfig(this.props.suffix);
      this.props.addNotification("error", "Failure adding Replication Manager - ".concat(errMsg.desc));
      this.setState({
        addManagerSpinning: false,
        showAddManagerModal: false
      });
    });
  }

  handleModalChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    this.setState({
      [attr]: value
    });
  }

  validateSaveBtn() {
    var saveBtnDisabled = true;
    var config_attrs = ['nsds5replicabinddngroup', 'nsds5replicabinddngroupcheckinterval', 'nsds5replicapurgedelay', 'nsds5replicatombstonepurgeinterval', 'nsds5replicareleasetimeout', 'nsds5replicaprotocoltimeout', 'nsds5replicabackoffmin', 'nsds5replicabackoffmax', 'nsds5replicaprecisetombstonepurging']; // Check if a setting was changed, if so enable the save button

    for (var _i = 0, _config_attrs = config_attrs; _i < _config_attrs.length; _i++) {
      var config_attr = _config_attrs[_i];

      if (this.state[config_attr] != this.state['_' + config_attr]) {
        saveBtnDisabled = false;
        break;
      }
    }

    this.setState({
      saveBtnDisabled: saveBtnDisabled
    });
  }

  handleChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    var saveBtnDisabled = true;
    var valueErr = false;
    var errObj = this.state.errObj;
    var config_attrs = ['nsds5replicabinddngroup', 'nsds5replicabinddngroupcheckinterval', 'nsds5replicapurgedelay', 'nsds5replicatombstonepurgeinterval', 'nsds5replicareleasetimeout', 'nsds5replicaprotocoltimeout', 'nsds5replicabackoffmin', 'nsds5replicabackoffmax', 'nsds5replicaprecisetombstonepurging']; // Check if a setting was changed, if so enable the save button

    for (var _i2 = 0, _config_attrs2 = config_attrs; _i2 < _config_attrs2.length; _i2++) {
      var config_attr = _config_attrs2[_i2];

      if (attr == config_attr && this.state['_' + config_attr] != value) {
        saveBtnDisabled = false;
        break;
      }
    } // Now check for differences in values that we did not touch


    for (var _i3 = 0, _config_attrs3 = config_attrs; _i3 < _config_attrs3.length; _i3++) {
      var _config_attr = _config_attrs3[_i3];

      if (attr != _config_attr && this.state['_' + _config_attr] != this.state[_config_attr]) {
        saveBtnDisabled = false;
        break;
      }
    }

    if (attr == 'nsds5replicabinddngroup') {
      if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.valid_dn)(value)) {
        valueErr = true;
        saveBtnDisabled = true;
      }
    } else if (this.state.nsds5replicabinddngroup != "" && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.valid_dn)(this.state.nsds5replicabinddngroup)) {
      saveBtnDisabled = true;
    }

    errObj[e.target.id] = valueErr;
    this.setState({
      [attr]: value,
      saveBtnDisabled: saveBtnDisabled,
      errObj: errObj
    });
  }

  handleManagerChange(e) {
    var value = e.target.value;
    var attr = e.target.id;
    var valueErr = false;
    var errObj = this.state.errObj;

    if (value == "") {
      valueErr = true;
    } // Handle password chnages


    if (attr == "manager_passwd") {
      if (value != this.state.manager_passwd_confirm) {
        // No match
        valueErr = true;
      } else {
        errObj[attr] = false;
        errObj.manager_passwd_confirm = false;
      }
    } else if (attr == "manager_passwd_confirm") {
      if (value != this.state.manager_passwd) {
        // No match
        valueErr = true;
      } else {
        errObj[attr] = false;
        errObj.manager_passwd = false;
      }
    }

    errObj[attr] = valueErr;
    this.setState({
      [attr]: value,
      errObj: errObj
    });
  }

  confirmManagerDelete(name) {
    this.setState({
      showConfirmManagerDelete: true,
      modalChecked: false,
      modalSpinning: false,
      manager: name
    });
  }

  closeConfirmManagerDelete() {
    this.setState({
      showConfirmManagerDelete: false,
      manager: ""
    });
  }

  deleteManager() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "delete-manager", "--suffix=" + this.props.suffix, "--name=" + this.state.manager];
    this.setState({
      modalSpinning: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("deleteManager", "Deleting Replication Manager", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reloadConfig(this.props.suffix);
      this.setState({
        modalSpinning: false
      });
      this.props.addNotification("success", "Successfully removed Replication Manager");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.reloadConfig(this.props.suffix);
      this.props.addNotification("error", "Failure removing Replication Manager - ".concat(errMsg.desc));
      this.setState({
        modalSpinning: false
      });
    });
  }

  saveConfig() {
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'set', '--suffix=' + this.props.suffix];

    if (this.state.nsds5replicabackoffmax != this.state._nsds5replicabackoffmax) {
      cmd.push("--repl-backoff-max=" + this.state.nsds5replicabackoffmax);
    }

    if (this.state.nsds5replicabackoffmin != this.state._nsds5replicabackoffmin) {
      cmd.push("--repl-backoff-min=" + this.state.nsds5replicabackoffmin);
    }

    if (this.state.nsds5replicaprotocoltimeout != this.state._nsds5replicaprotocoltimeout) {
      cmd.push("--repl-protocol-timeout=" + this.state.nsds5replicaprotocoltimeout);
    }

    if (this.state.nsds5replicaprecisetombstonepurging != this.state._nsds5replicaprecisetombstonepurging) {
      if (this.state.nsds5replicaprecisetombstonepurging) {
        cmd.push("--repl-fast-tombstone-purging=on");
      } else {
        cmd.push("--repl-fast-tombstone-purging=off");
      }
    }

    if (this.state.nsds5replicatombstonepurgeinterval != this.state._nsds5replicatombstonepurgeinterval) {
      cmd.push("--repl-tombstone-purge-interval=" + this.state.nsds5replicatombstonepurgeinterval);
    }

    if (this.state.nsds5replicabinddngroup != this.state._nsds5replicabinddngroup) {
      cmd.push("--repl-bind-group=" + this.state.nsds5replicabinddngroup);
    }

    if (this.state.nsds5replicabinddngroupcheckinterval != this.state._nsds5replicabinddngroupcheckinterval) {
      cmd.push("--repl-bind-group-interval=" + this.state.nsds5replicabinddngroupcheckinterval);
    }

    if (this.state.nsds5replicareleasetimeout != this.state._nsds5replicareleasetimeout) {
      cmd.push("--repl-release-timeout=" + this.state.nsds5replicareleasetimeout);
    }

    if (this.state.nsds5replicapurgedelay != this.state._nsds5replicapurgedelay) {
      cmd.push("--repl-purge-delay=" + this.state.nsds5replicapurgedelay);
    }

    if (cmd.length > 6) {
      this.setState({
        // Start the spinner
        saving: true
      });
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("saveConfig", "Applying replication changes", cmd);
      var msg = "Successfully updated replication configuration.";
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        this.props.reloadConfig(this.props.suffix);
        this.props.addNotification("success", msg);
        this.setState({
          saving: false
        });
      }).fail(err => {
        var errMsg = JSON.parse(err);
        this.props.reloadConfig(this.props.suffix);
        this.setState({
          saving: false
        });
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        this.props.addNotification("error", "Error updating replication configuration - ".concat(msg));
      });
    }
  }

  render() {
    var roleButton = "";
    var manager_rows = [];
    var saveBtnName = "Save Configuration";
    var extraPrimaryProps = {};

    if (this.state.saving) {
      saveBtnName = "Saving Config ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    var _iterator = _createForOfIteratorHelper(this.props.data.nsds5replicabinddn),
        _step;

    try {
      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        var row = _step.value;
        manager_rows.push(row);
      }
    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }

    if (this.props.role == "Supplier") {
      roleButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Button, {
        variant: "primary",
        onClick: this.showPromoteDemoteModal,
        title: "Demote this Supplier replica to a Hub or Consumer",
        className: "ds-left-margin"
      }, "Change Role");
    } else if (this.props.role == "Hub") {
      roleButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Button, {
        variant: "primary",
        onClick: this.showPromoteDemoteModal,
        title: "Promote or Demote this Hub replica to a Supplier or Consumer",
        className: "ds-left-margin"
      }, "Change Role");
    } else {
      // Consumer
      roleButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Button, {
        variant: "primary",
        onClick: this.showPromoteDemoteModal,
        title: "Promote this Consumer replica to a Supplier or Hub",
        className: "ds-left-margin"
      }, "Change Role");
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: this.state.saving ? "ds-disabled" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top-xxlg ds-left-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 2
    }, "Replica Role"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextInput, {
      value: this.props.role,
      type: "text",
      "aria-describedby": "horizontal-form-name-helper",
      name: "replrole",
      id: "replrole",
      isDisabled: true
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 1
    }, roleButton)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 2
    }, "Replica ID"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextInput, {
      value: this.props.data.nsds5replicaid,
      type: "text",
      "aria-describedby": "horizontal-form-name-helper",
      name: "replid",
      id: "replid",
      isDisabled: true
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 12
    }, "Replication Managers"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-margin-top",
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_replTables_jsx__WEBPACK_IMPORTED_MODULE_4__.ManagerTable, {
      rows: manager_rows,
      confirmDelete: this.confirmManagerDelete
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Button, {
      variant: "secondary",
      onClick: this.showAddManager
    }, "Add Replication Manager"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.ExpandableSection, {
      toggleText: this.state.isExpanded ? 'Hide Advanced Settings' : 'Show Advanced Settings',
      onToggle: this.onToggle,
      isExpanded: this.state.isExpanded
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top ds-margin-left ds-margin-bottom-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "The DN of the replication manager group",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Bind DN Group"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextInput, {
      value: this.state.nsds5replicabinddngroup,
      type: "text",
      id: "nsds5replicabinddngroup",
      "aria-describedby": "horizontal-form-name-helper",
      name: "nsds5replicabinddngroup",
      onChange: (str, e) => {
        this.handleChange(e);
      },
      validated: this.state.errObj.nsds5replicabinddngroup && this.state.nsds5replicabinddngroup != "" ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "The interval to check for any changes in the group memebrship specified in the Bind DN Group and automatically rebuilds the list for the replication managers accordingly.  (nsds5replicabinddngroupcheckinterval).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Bind DN Group Check Interval"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.NumberInput, {
      value: this.state.nsds5replicabinddngroupcheckinterval,
      min: -1,
      max: this.maxValue,
      onMinus: () => {
        this.onMinusConfig("nsds5replicabinddngroupcheckinterval");
      },
      onChange: e => {
        this.onConfigChange(e, "nsds5replicabinddngroupcheckinterval", -1);
      },
      onPlus: () => {
        this.onPlusConfig("nsds5replicabinddngroupcheckinterval");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "This controls the maximum age of deleted entries (tombstone entries), and entry state information.  (nsds5replicapurgedelay).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Purge Delay"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.NumberInput, {
      value: this.state.nsds5replicapurgedelay,
      min: -1,
      max: this.maxValue,
      onMinus: () => {
        this.onMinusConfig("nsds5replicapurgedelay");
      },
      onChange: e => {
        this.onConfigChange(e, "nsds5replicapurgedelay", -1);
      },
      onPlus: () => {
        this.onPlusConfig("nsds5replicapurgedelay");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "This attribute specifies the time interval in seconds between purge operation cycles.  (nsds5replicatombstonepurgeinterval).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Tombstone Purge Interval"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.NumberInput, {
      value: this.state.nsds5replicatombstonepurgeinterval,
      min: -1,
      max: this.maxValue,
      onMinus: () => {
        this.onMinusConfig("nsds5replicatombstonepurgeinterval");
      },
      onChange: e => {
        this.onConfigChange(e, "nsds5replicatombstonepurgeinterval", -1);
      },
      onPlus: () => {
        this.onPlusConfig("nsds5replicatombstonepurgeinterval");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "A time limit (in seconds) that tells a replication session to yield if other replicas are trying to acquire this one (nsds5replicareleasetimeout).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Replica Release Timeout"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.NumberInput, {
      value: this.state.nsds5replicareleasetimeout,
      min: 0,
      max: this.maxValue,
      onMinus: () => {
        this.onMinusConfig("nsds5replicareleasetimeout");
      },
      onChange: e => {
        this.onConfigChange(e, "nsds5replicareleasetimeout", 0);
      },
      onPlus: () => {
        this.onPlusConfig("nsds5replicareleasetimeout");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "A timeout on how long to wait before stopping a replication session when the server is being stopped, replication is being disabled, or when removing a replication agreement. (nsds5replicaprotocoltimeout).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Replication Timeout"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.NumberInput, {
      value: this.state.nsds5replicaprotocoltimeout,
      min: 1,
      max: this.maxValue,
      onMinus: () => {
        this.onMinusConfig("nsds5replicaprotocoltimeout");
      },
      onChange: e => {
        this.onConfigChange(e, "nsds5replicaprotocoltimeout", 1);
      },
      onPlus: () => {
        this.onPlusConfig("nsds5replicaprotocoltimeout");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "This is the minimum amount of time in seconds that a replication session will go into a backoff state  (nsds5replicabackoffmin).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Back Off Minimum"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.NumberInput, {
      value: this.state.nsds5replicabackoffmin,
      min: 1,
      max: this.maxValue,
      onMinus: () => {
        this.onMinusConfig("nsds5replicabackoffmin");
      },
      onChange: e => {
        this.onConfigChange(e, "nsds5replicabackoffmin", 1);
      },
      onPlus: () => {
        this.onPlusConfig("nsds5replicabackoffmin");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "This is the maximum amount of time in seconds that a replication session will go into a backoff state  (nsds5replicabackoffmax).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Back Off Maximum"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.NumberInput, {
      value: this.state.nsds5replicabackoffmax,
      min: 1,
      max: this.maxValue,
      onMinus: () => {
        this.onMinusConfig("nsds5replicabackoffmax");
      },
      onChange: e => {
        this.onConfigChange(e, "nsds5replicabackoffmax", 1);
      },
      onPlus: () => {
        this.onPlusConfig("nsds5replicabackoffmax");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 8
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      title: "Enables faster tombstone purging (nsds5replicaprecisetombstonepurging).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Fast Tombstone Purging"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Checkbox, {
      id: "nsds5replicaprecisetombstonepurging",
      isChecked: this.state.nsds5replicaprecisetombstonepurging,
      onChange: (str, e) => {
        this.handleChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Button, _extends({
      variant: "primary",
      onClick: this.saveConfig,
      isDisabled: this.state.saveBtnDisabled,
      isLoading: this.state.saving,
      spinnerAriaValueText: this.state.saving ? "Saving" : undefined
    }, extraPrimaryProps), saveBtnName)))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__.DoubleConfirmModal, {
      showModal: this.state.showConfirmManagerDelete,
      closeHandler: this.closeConfirmManagerDelete,
      handleChange: this.handleModalChange,
      actionHandler: this.deleteManager,
      spinning: this.state.modalSpinning,
      item: this.state.manager,
      checked: this.state.modalChecked,
      mTitle: "Remove Replication Manager",
      mMsg: "Are you sure you want to remove this Replication Manager?",
      mSpinningMsg: "Removing Manager ...",
      mBtnName: "Remove Manager"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_replModals_jsx__WEBPACK_IMPORTED_MODULE_5__.AddManagerModal, {
      showModal: this.state.showAddManagerModal,
      closeHandler: this.closeAddManagerModal,
      handleChange: this.handleManagerChange,
      saveHandler: this.addManager,
      spinning: this.state.addManagerSpinning,
      manager: this.state.manager,
      manager_passwd: this.state.manager_passwd,
      manager_passwd_confirm: this.state.manager_passwd_confirm,
      error: this.state.errObj
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_replModals_jsx__WEBPACK_IMPORTED_MODULE_5__.ChangeReplRoleModal, {
      showModal: this.state.showPromoteDemoteModal,
      closeHandler: this.closePromoteDemoteModal,
      handleChange: this.handleModalChange,
      saveHandler: this.doRoleChange,
      spinning: this.state.roleChangeSpinning,
      role: this.props.role,
      newRole: this.state.newRole,
      checked: this.state.modalChecked,
      newRID: this.state.newRID,
      onMinus: this.onMinus,
      onNumberChange: this.onNumberChange,
      onPlus: this.onPlus
    })));
  }

}
ReplConfig.propTypes = {
  role: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().string),
  suffix: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().string),
  data: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().object),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().string)
};
ReplConfig.defaultProps = {
  role: "",
  suffix: "",
  data: {},
  serverId: ""
};

/***/ }),

/***/ "./src/lib/replication/replModals.jsx":
/*!********************************************!*\
  !*** ./src/lib/replication/replModals.jsx ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "WinsyncAgmtModal": () => (/* binding */ WinsyncAgmtModal),
/* harmony export */   "ReplAgmtModal": () => (/* binding */ ReplAgmtModal),
/* harmony export */   "ChangeReplRoleModal": () => (/* binding */ ChangeReplRoleModal),
/* harmony export */   "AddManagerModal": () => (/* binding */ AddManagerModal),
/* harmony export */   "EnableReplModal": () => (/* binding */ EnableReplModal),
/* harmony export */   "ExportCLModal": () => (/* binding */ ExportCLModal)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleIcon.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TimePicker/TimePicker.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormHelperText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/NumberInput/NumberInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Radio/Radio.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_26__);
/* harmony import */ var _patternfly_react_icons_dist_js_icons_exclamation_triangle_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-icons/dist/js/icons/exclamation-triangle-icon */ "./node_modules/@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }





class WinsyncAgmtModal extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      activeTabKey: 0
    }; // Toggle currently active tab

    this.handleNavSelect = (event, tabIndex) => {
      event.preventDefault();
      this.setState({
        activeTabKey: tabIndex
      });
    };
  }

  hasMainErrors(errors) {
    var attrs = ['agmtName', 'agmtHost', 'agmtPort', 'agmtBindDN', 'agmtBindPW', 'agmtBindPWConfirm'];

    for (var _i = 0, _attrs = attrs; _i < _attrs.length; _i++) {
      var attr = _attrs[_i];

      if (attr in errors && errors[attr]) {
        return true;
      }
    }

    return false;
  }

  hasDomainErrors(errors) {
    var attrs = ['agmtWinDomain', 'agmtWinSubtree', 'agmtDSSubtree'];

    for (var _i2 = 0, _attrs2 = attrs; _i2 < _attrs2.length; _i2++) {
      var attr = _attrs2[_i2];

      if (attr in errors && errors[attr]) {
        return true;
      }
    }

    return false;
  }

  hasScheduleErrors(errors) {
    var attrs = ['agmtStartTime', 'agmtEndTime'];

    for (var _i3 = 0, _attrs3 = attrs; _i3 < _attrs3.length; _i3++) {
      var attr = _attrs3[_i3];

      if (attr in errors && errors[attr]) {
        return true;
      }
    }

    return false;
  }

  render() {
    var _this$props = this.props,
        showModal = _this$props.showModal,
        closeHandler = _this$props.closeHandler,
        saveHandler = _this$props.saveHandler,
        handleChange = _this$props.handleChange,
        handleTimeChange = _this$props.handleTimeChange,
        handleFracChange = _this$props.handleFracChange,
        onSelectToggle = _this$props.onSelectToggle,
        onSelectClear = _this$props.onSelectClear,
        spinning = _this$props.spinning,
        agmtName = _this$props.agmtName,
        agmtHost = _this$props.agmtHost,
        agmtPort = _this$props.agmtPort,
        agmtProtocol = _this$props.agmtProtocol,
        agmtBindDN = _this$props.agmtBindDN,
        agmtBindPW = _this$props.agmtBindPW,
        agmtBindPWConfirm = _this$props.agmtBindPWConfirm,
        agmtFracAttrs = _this$props.agmtFracAttrs,
        agmtSync = _this$props.agmtSync,
        agmtSyncMon = _this$props.agmtSyncMon,
        agmtSyncTue = _this$props.agmtSyncTue,
        agmtSyncWed = _this$props.agmtSyncWed,
        agmtSyncThu = _this$props.agmtSyncThu,
        agmtSyncFri = _this$props.agmtSyncFri,
        agmtSyncSat = _this$props.agmtSyncSat,
        agmtSyncSun = _this$props.agmtSyncSun,
        agmtStartTime = _this$props.agmtStartTime,
        agmtEndTime = _this$props.agmtEndTime,
        agmtSyncGroups = _this$props.agmtSyncGroups,
        agmtSyncUsers = _this$props.agmtSyncUsers,
        agmtWinDomain = _this$props.agmtWinDomain,
        agmtWinSubtree = _this$props.agmtWinSubtree,
        agmtDSSubtree = _this$props.agmtDSSubtree,
        agmtOneWaySync = _this$props.agmtOneWaySync,
        agmtSyncInterval = _this$props.agmtSyncInterval,
        agmtInit = _this$props.agmtInit,
        availAttrs = _this$props.availAttrs,
        error = _this$props.error,
        isExcludeAttrOpen = _this$props.isExcludeAttrOpen;
    var saveDisabled = !this.props.saveOK;
    var title = "Create";
    var initRow = "";
    var name = "agmt-modal";
    var startHour = agmtStartTime.substring(0, 2);
    var startMin = agmtStartTime.substring(2, 4);
    var startTime = startHour + ":" + startMin;
    var endHour = agmtEndTime.substring(0, 2);
    var endMin = agmtEndTime.substring(2, 4);
    var endTime = endHour + ":" + endMin;
    var saveBtnName = "Save Agreement";
    var extraPrimaryProps = {};

    if (spinning) {
      saveBtnName = "Saving Agreement ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    var mainSettingsError = "";
    var scheduleError = "";
    var domainError = "";

    if (this.hasMainErrors(error)) {
      mainSettingsError = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.TabTitleIcon, {
        className: "ds-warning-icon"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_exclamation_triangle_icon__WEBPACK_IMPORTED_MODULE_2__["default"], null));
    }

    if (this.hasDomainErrors(error)) {
      domainError = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.TabTitleIcon, {
        className: "ds-warning-icon"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_exclamation_triangle_icon__WEBPACK_IMPORTED_MODULE_2__["default"], null));
    }

    if (this.hasScheduleErrors(error)) {
      scheduleError = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.TabTitleIcon, {
        className: "ds-warning-icon"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_exclamation_triangle_icon__WEBPACK_IMPORTED_MODULE_2__["default"], null));
    }

    if (this.props.edit) {
      title = "Edit";
      name = "agmt-modal-edit";
    } else {
      initRow = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Consumer Initialization"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.FormSelect, {
        value: agmtInit,
        id: "agmtInit",
        onChange: (str, e) => {
          handleChange(e);
        },
        "aria-label": "FormSelect Input"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
        key: 0,
        value: "noinit",
        label: "Do Not Initialize"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
        key: 1,
        value: "online-init",
        label: "Do Online Initialization"
      }))));
    }

    var scheduleRow = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-left-indent-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 12
    }, "Days To Send Synchronization Updates")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-indent ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Checkbox, {
      id: "agmtSyncMon",
      onChange: (checked, e) => {
        handleChange(e);
      },
      name: name,
      isChecked: agmtSyncMon,
      label: "Monday",
      isValid: !error.agmtSyncMon
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Checkbox, {
      id: "agmtSyncFri",
      onChange: (checked, e) => {
        handleChange(e);
      },
      name: name,
      isChecked: agmtSyncFri,
      label: "Friday",
      isValid: !error.agmtSyncFri
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Checkbox, {
      id: "agmtSyncTue",
      onChange: (checked, e) => {
        handleChange(e);
      },
      name: name,
      isChecked: agmtSyncTue,
      isValid: !error.agmtSyncTue,
      label: "Tuesday"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Checkbox, {
      id: "agmtSyncSat",
      onChange: (checked, e) => {
        handleChange(e);
      },
      name: name,
      isChecked: agmtSyncSat,
      isValid: !error.agmtSyncSat,
      label: "Saturday"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Checkbox, {
      id: "agmtSyncWed",
      onChange: (checked, e) => {
        handleChange(e);
      },
      name: name,
      isChecked: agmtSyncWed,
      label: "Wednesday",
      isValid: !error.agmtSyncWed
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Checkbox, {
      id: "agmtSyncSun",
      onChange: (checked, e) => {
        handleChange(e);
      },
      name: name,
      isChecked: agmtSyncSun,
      isValid: !error.agmtSyncSun,
      label: "Sunday"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Checkbox, {
      id: "agmtSyncThu",
      onChange: (checked, e) => {
        handleChange(e);
      },
      name: name,
      isChecked: agmtSyncThu,
      isValid: !error.agmtSyncThu,
      label: "Thursday"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top-lg",
      title: "Time to start initiating replication sessions"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Replication Start Time"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TimePicker, {
      time: startTime,
      id: "agmtStartTime",
      onChange: val => {
        handleTimeChange(this.props.edit ? "edit" : "create", "agmtStartTime", val);
      },
      stepMinutes: 5,
      direction: "up",
      is24Hour: true
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
      isError: true,
      isHidden: !error.agmtStartTime
    }, "Start time must be before the End time"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      title: "Time to initiating replication sessions"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Replication End Time"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TimePicker, {
      time: endTime,
      id: "agmtEndTime",
      onChange: val => {
        handleTimeChange(this.props.edit ? "edit" : "create", "agmtEndTime", val);
      },
      stepMinutes: 5,
      direction: "up",
      is24Hour: true
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
      isError: true,
      isHidden: !error.agmtEndTime
    }, "End time must be after the Start time"))));

    if (!agmtSync) {
      scheduleRow = "";
    }

    title = title + " Winsync Agreement";
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.ModalVariant.medium,
      className: "ds-modal-winsync-agmt",
      "aria-labelledby": "ds-modal",
      title: title,
      isOpen: showModal,
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Button, _extends({
        key: "confirm",
        variant: "primary",
        isDisabled: saveDisabled,
        onClick: saveHandler,
        isLoading: spinning,
        spinnerAriaValueText: spinning ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Tabs, {
      activeKey: this.state.activeTabKey,
      onSelect: this.handleNavSelect
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Tab, {
      eventKey: 0,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, mainSettingsError, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TabTitleText, null, "Main Settings"))
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Agreement Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
      value: agmtName,
      type: "text",
      id: "agmtName",
      "aria-describedby": "horizontal-form-name-helper",
      name: "agmtName",
      onChange: (str, e) => {
        handleChange(e);
      },
      isDisabled: this.props.edit,
      validated: error.agmtName ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Windows AD Host"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
      value: agmtHost,
      type: "text",
      id: "agmtHost",
      "aria-describedby": "horizontal-form-name-helper",
      name: "agmtHost",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.agmtHost ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Windows AD Port"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
      value: agmtPort,
      type: "number",
      id: "agmtPort",
      "aria-describedby": "horizontal-form-name-helper",
      name: "agmtPort",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.agmtPort ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Bind DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
      value: agmtBindDN,
      type: "text",
      id: "agmtBindDN",
      "aria-describedby": "horizontal-form-name-helper",
      name: "agmtBindDN",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.agmtBindDN ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
      isError: true,
      isHidden: !error.agmtBindDN || agmtBindDN == ""
    }, "Value must be a valid DN"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Bind Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
      value: agmtBindPW,
      type: "password",
      id: "agmtBindPW",
      "aria-describedby": "horizontal-form-name-helper",
      name: "agmtBindPW",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.agmtBindPW ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
      isError: true,
      isHidden: !error.agmtBindPW || agmtBindPW == "" || agmtBindPWConfirm == ""
    }, "Passwords must match"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Confirm Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
      value: agmtBindPWConfirm,
      type: "password",
      id: "agmtBindPWConfirm",
      "aria-describedby": "horizontal-form-name-helper",
      name: "agmtBindPWConfirm",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.agmtBindPWConfirm ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
      isError: true,
      isHidden: !error.agmtBindPWConfirm || agmtBindPWConfirm == ""
    }, "Passwords must match"))), initRow), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Tab, {
      eventKey: 1,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, domainError, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TabTitleText, null, "Domain & Content"))
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Windows Domain Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
      value: agmtWinDomain,
      type: "text",
      id: "agmtWinDomain",
      "aria-describedby": "horizontal-form-name-helper",
      name: "agmtWinDomain",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.agmtWinDomain ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top-lg",
      title: "The Active Directory subtree to synchronize"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Windows Subtree"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
      value: agmtWinSubtree,
      type: "text",
      id: "agmtWinSubtree",
      "aria-describedby": "horizontal-form-name-helper",
      name: "agmtWinSubtree",
      onChange: (str, e) => {
        handleChange(e);
      },
      placeholder: "e.g. cn=Users,dc=domain,dc=com",
      validated: error.agmtWinSubtree ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
      isError: true,
      isHidden: !error.agmtWinSubtree || agmtWinSubtree == ""
    }, "Value must be a valid DN"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top",
      title: "Directory Server subtree to synchronize"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "DS Subtree"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
      value: agmtDSSubtree,
      type: "text",
      id: "agmtDSSubtree",
      "aria-describedby": "horizontal-form-name-helper",
      name: "agmtDSSubtree",
      onChange: (str, e) => {
        handleChange(e);
      },
      placeholder: "e.g. ou=People,dc=domain,dc=com",
      validated: error.agmtDSSubtree ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
      isError: true,
      isHidden: !error.agmtDSSubtree || agmtDSSubtree == ""
    }, "Value must be a valid DN")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Tab, {
      eventKey: 2,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TabTitleText, null, "Advanced Settings")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Connection Protocol"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.FormSelect, {
      value: agmtProtocol,
      id: "agmtProtocol",
      onChange: (str, e) => {
        handleChange(e);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: 0,
      value: "LDAPS",
      label: "LDAPS"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: 1,
      value: "StartTLS",
      label: "StartTLS"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Synchronization Direction"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.FormSelect, {
      value: agmtOneWaySync,
      id: "agmtOneWaySync",
      onChange: (str, e) => {
        handleChange(e);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      title: "Synchronization in both directions (default behavior).",
      key: 0,
      value: "both",
      label: "both"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      title: "Only synchronize Directory Server updates to Windows.",
      key: 1,
      value: "toWindows",
      label: "toWindows"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      title: "Only synchronize Windows updates to Directory Server.",
      key: 2,
      value: "fromWindows",
      label: "fromWindows"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top",
      title: "The interval to check for updates on Windows.  Default is 300 seconds"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Synchronization Interval"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
      value: agmtSyncInterval,
      type: "number",
      id: "agmtSyncInterval",
      "aria-describedby": "horizontal-form-name-helper",
      name: "agmtSyncInterval",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.agmtSyncInterval ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top",
      title: "Attribute to exclude from replication"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Exclude Attributes"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type an attribute",
      onToggle: onSelectToggle,
      onSelect: (e, selection) => {
        handleFracChange(selection);
      },
      onClear: onSelectClear,
      selections: agmtFracAttrs,
      isOpen: isExcludeAttrOpen,
      "aria-labelledby": "typeAhead-exclude-attrs",
      placeholderText: "Start typing an attribute...",
      noResultsFoundText: "There are no matching entries"
    }, availAttrs.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.SelectOption, {
      key: index,
      value: attr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top-med"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Checkbox, {
      id: "agmtSyncGroups",
      onChange: (checked, e) => {
        handleChange(e);
      },
      name: name,
      isChecked: agmtSyncGroups,
      label: "Synchronize New Windows Groups"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Checkbox, {
      id: "agmtSyncUsers",
      onChange: (checked, e) => {
        handleChange(e);
      },
      name: name,
      isChecked: agmtSyncUsers,
      label: "Synchronize New Windows Users"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Tab, {
      eventKey: 3,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, scheduleError, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TabTitleText, null, "Scheduling"))
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.TextVariants.h5
    }, "By default replication updates are sent to the replica as soon as possible, but if there is a need for replication updates to only be sent on certains days and within certain windows of time then you can setup a custom replication schedule."))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-margin-top-lg",
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Checkbox, {
      id: "agmtSync",
      isChecked: agmtSync,
      onChange: (checked, e) => {
        handleChange(e);
      },
      name: name,
      label: "Use A Custom Schedule"
    }))), scheduleRow))));
  }

}
class ReplAgmtModal extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      activeTabKey: 0
    }; // Toggle currently active tab

    this.handleNavSelect = (event, tabIndex) => {
      event.preventDefault();
      this.setState({
        activeTabKey: tabIndex
      });
    };
  }

  hasMainErrors(errors) {
    var attrs = ['agmtName', 'agmtHost', 'agmtPort', 'agmtBindDN', 'agmtBindPW', 'agmtBindPWConfirm'];

    for (var _i4 = 0, _attrs4 = attrs; _i4 < _attrs4.length; _i4++) {
      var attr = _attrs4[_i4];

      if (attr in errors && errors[attr]) {
        return true;
      }
    }

    return false;
  }

  hasBootErrors(errors) {
    var attrs = ['agmtBootstrapBindDN', 'agmtBootstrapBindPW', 'agmtBootstrapBindPWConfirm'];

    for (var _i5 = 0, _attrs5 = attrs; _i5 < _attrs5.length; _i5++) {
      var attr = _attrs5[_i5];

      if (attr in errors && errors[attr]) {
        return true;
      }
    }

    return false;
  }

  hasScheduleErrors(errors) {
    var attrs = ['agmtStartTime', 'agmtEndTime'];

    for (var _i6 = 0, _attrs6 = attrs; _i6 < _attrs6.length; _i6++) {
      var attr = _attrs6[_i6];

      if (attr in errors && errors[attr]) {
        return true;
      }
    }

    return false;
  }

  render() {
    var _this$props2 = this.props,
        showModal = _this$props2.showModal,
        closeHandler = _this$props2.closeHandler,
        saveHandler = _this$props2.saveHandler,
        handleChange = _this$props2.handleChange,
        handleTimeChange = _this$props2.handleTimeChange,
        handleStripChange = _this$props2.handleStripChange,
        handleFracChange = _this$props2.handleFracChange,
        handleFracInitChange = _this$props2.handleFracInitChange,
        onExcludeAttrsToggle = _this$props2.onExcludeAttrsToggle,
        onExcludeAttrsClear = _this$props2.onExcludeAttrsClear,
        onExcludeAttrsInitToggle = _this$props2.onExcludeAttrsInitToggle,
        onExcludeAttrsInitClear = _this$props2.onExcludeAttrsInitClear,
        onStripAttrsToggle = _this$props2.onStripAttrsToggle,
        onStripAttrsClear = _this$props2.onStripAttrsClear,
        isExcludeAttrsOpen = _this$props2.isExcludeAttrsOpen,
        isExcludeInitAttrsOpen = _this$props2.isExcludeInitAttrsOpen,
        isStripAttrsOpen = _this$props2.isStripAttrsOpen,
        spinning = _this$props2.spinning,
        agmtName = _this$props2.agmtName,
        agmtHost = _this$props2.agmtHost,
        agmtPort = _this$props2.agmtPort,
        agmtProtocol = _this$props2.agmtProtocol,
        agmtBindMethod = _this$props2.agmtBindMethod,
        agmtBindMethodOptions = _this$props2.agmtBindMethodOptions,
        agmtBindDN = _this$props2.agmtBindDN,
        agmtBindPW = _this$props2.agmtBindPW,
        agmtBindPWConfirm = _this$props2.agmtBindPWConfirm,
        agmtBootstrap = _this$props2.agmtBootstrap,
        agmtBootstrapBindDN = _this$props2.agmtBootstrapBindDN,
        agmtBootstrapBindPW = _this$props2.agmtBootstrapBindPW,
        agmtBootstrapBindPWConfirm = _this$props2.agmtBootstrapBindPWConfirm,
        agmtBootstrapProtocol = _this$props2.agmtBootstrapProtocol,
        agmtBootstrapBindMethod = _this$props2.agmtBootstrapBindMethod,
        agmtBootstrapBindMethodOptions = _this$props2.agmtBootstrapBindMethodOptions,
        agmtStripAttrs = _this$props2.agmtStripAttrs,
        agmtFracAttrs = _this$props2.agmtFracAttrs,
        agmtFracInitAttrs = _this$props2.agmtFracInitAttrs,
        agmtSync = _this$props2.agmtSync,
        agmtSyncMon = _this$props2.agmtSyncMon,
        agmtSyncTue = _this$props2.agmtSyncTue,
        agmtSyncWed = _this$props2.agmtSyncWed,
        agmtSyncThu = _this$props2.agmtSyncThu,
        agmtSyncFri = _this$props2.agmtSyncFri,
        agmtSyncSat = _this$props2.agmtSyncSat,
        agmtSyncSun = _this$props2.agmtSyncSun,
        agmtStartTime = _this$props2.agmtStartTime,
        agmtEndTime = _this$props2.agmtEndTime,
        agmtInit = _this$props2.agmtInit,
        availAttrs = _this$props2.availAttrs,
        error = _this$props2.error;
    var saveDisabled = !this.props.saveOK;
    var title = "Create";
    var initRow = "";
    var name = "agmt-modal";
    var bootstrapTitle = "If you are using Bind Group's on the consumer " + "replica you can configure bootstrap credentials that can be used " + "to do online initializations, or bootstrap a session if the bind " + "groups get out of synchronization";
    var startHour = agmtStartTime.substring(0, 2);
    var startMin = agmtStartTime.substring(2, 4);
    var startTime = startHour + ":" + startMin;
    var endHour = agmtEndTime.substring(0, 2);
    var endMin = agmtEndTime.substring(2, 4);
    var endTime = endHour + ":" + endMin;
    var saveBtnName = "Save Agreement";
    var extraPrimaryProps = {};

    if (spinning) {
      saveBtnName = "Saving Agreement ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    var mainSettingsError = "";
    var bootSettingsError = "";
    var scheduleSettingsError = "";

    if (this.hasMainErrors(error)) {
      mainSettingsError = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.TabTitleIcon, {
        className: "ds-warning-icon"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_exclamation_triangle_icon__WEBPACK_IMPORTED_MODULE_2__["default"], null));
    }

    if (this.hasBootErrors(error)) {
      bootSettingsError = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.TabTitleIcon, {
        className: "ds-warning-icon"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_exclamation_triangle_icon__WEBPACK_IMPORTED_MODULE_2__["default"], null));
    }

    if (this.hasScheduleErrors(error)) {
      scheduleSettingsError = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.TabTitleIcon, {
        className: "ds-warning-icon"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_exclamation_triangle_icon__WEBPACK_IMPORTED_MODULE_2__["default"], null));
    }

    if (this.props.edit) {
      title = "Edit";
      name = "agmt-modal-edit";
    } else {
      initRow = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
        className: "ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Consumer Initialization"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.FormSelect, {
        value: agmtInit,
        id: "agmtInit",
        onChange: (str, e) => {
          handleChange(e);
        },
        "aria-label": "FormSelect Input"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
        key: 0,
        value: "noinit",
        label: "Do Not Initialize"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
        key: 1,
        value: "online-init",
        label: "Do Online Initialization"
      }))));
    }

    var bootstrapRow = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-left-indent-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top-lg",
      title: "The Bind DN the agreement can use to bootstrap initialization"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Bind DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
      value: agmtBootstrapBindDN,
      type: "text",
      id: "agmtBootstrapBindDN",
      "aria-describedby": "horizontal-form-name-helper",
      name: "agmtBootstrapBindDN",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.agmtBootstrapBindDN ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
      isError: true,
      isHidden: !error.agmtBootstrapBindDN || agmtBootstrapBindDN == ""
    }, "Value must be a valid DN"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3,
      title: "The Bind DN password for bootstrap initialization"
    }, "Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
      value: agmtBootstrapBindPW,
      type: "password",
      id: "agmtBootstrapBindPW",
      "aria-describedby": "horizontal-form-name-helper",
      name: "agmtBootstrapBindPW",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.agmtBootstrapBindPW ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
      isError: true,
      isHidden: !error.agmtBootstrapBindPW || agmtBootstrapBindPW == "" || error.agmtBootstrapBindPWConfirm == ""
    }, "Password must match"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3,
      title: "Confirm the Bind DN password for bootstrap initialization"
    }, "Confirm Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
      value: agmtBootstrapBindPWConfirm,
      type: "password",
      id: "agmtBootstrapBindPWConfirm",
      "aria-describedby": "horizontal-form-name-helper",
      name: "agmtBootstrapBindPWConfirm",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.agmtBootstrapBindPWConfirm ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
      isError: true,
      isHidden: !error.agmtBootstrapBindPWConfirm || agmtBootstrapBindPWConfirm == ""
    }, "Passwords must match"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3,
      title: "The connection protocol for bootstrap initialization"
    }, "Connection Protocol"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.FormSelect, {
      value: agmtBootstrapProtocol,
      id: "agmtBootstrapProtocol",
      onChange: (str, e) => {
        handleChange(e);
      },
      "aria-label": "FormSelect Input",
      validated: error.agmtBootstrapProtocol ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: 0,
      value: "LDAP",
      label: "LDAP"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: 1,
      value: "LDAPS",
      label: "LDAPS"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: 2,
      value: "STARTTLS",
      label: "STARTTLS"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3,
      title: "The authentication method for bootstrap initialization"
    }, "Authentication Method"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.FormSelect, {
      value: agmtBootstrapBindMethod,
      id: "agmtBootstrapBindMethod",
      onChange: (str, e) => {
        handleChange(e);
      },
      "aria-label": "FormSelect Input",
      validated: error.agmtBootstrapBindMethod ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }, agmtBootstrapBindMethodOptions.map((option, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: index,
      value: option,
      label: option
    }))))));
    var scheduleRow = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-left-indent-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 12
    }, "Days To Send Replication Updates")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-indent ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Checkbox, {
      id: "agmtSyncMon",
      onChange: (checked, e) => {
        handleChange(e);
      },
      name: name,
      isChecked: agmtSyncMon,
      label: "Monday",
      isValid: !error.agmtSyncMon
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Checkbox, {
      id: "agmtSyncFri",
      onChange: (checked, e) => {
        handleChange(e);
      },
      name: name,
      isChecked: agmtSyncFri,
      label: "Friday",
      isValid: !error.agmtSyncFri
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Checkbox, {
      id: "agmtSyncTue",
      onChange: (checked, e) => {
        handleChange(e);
      },
      name: name,
      isChecked: agmtSyncTue,
      isValid: !error.agmtSyncTue,
      label: "Tuesday"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Checkbox, {
      id: "agmtSyncSat",
      onChange: (checked, e) => {
        handleChange(e);
      },
      name: name,
      isChecked: agmtSyncSat,
      isValid: !error.agmtSyncSat,
      label: "Saturday"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Checkbox, {
      id: "agmtSyncWed",
      onChange: (checked, e) => {
        handleChange(e);
      },
      name: name,
      isChecked: agmtSyncWed,
      label: "Wednesday",
      isValid: !error.agmtSyncWed
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Checkbox, {
      id: "agmtSyncSun",
      onChange: (checked, e) => {
        handleChange(e);
      },
      name: name,
      isChecked: agmtSyncSun,
      isValid: !error.agmtSyncSun,
      label: "Sunday"
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Checkbox, {
      id: "agmtSyncThu",
      onChange: (checked, e) => {
        handleChange(e);
      },
      name: name,
      isChecked: agmtSyncThu,
      isValid: !error.agmtSyncThu,
      label: "Thursday"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top-lg",
      title: "Time to start initiating replication sessions"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Replication Start Time"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TimePicker, {
      time: startTime,
      id: "agmtStartTime",
      onChange: val => {
        handleTimeChange(this.props.edit ? "edit" : "create", "agmtStartTime", val);
      },
      stepMinutes: 5,
      is24Hour: true
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
      isError: true,
      isHidden: !error.agmtStartTime
    }, "Start time must be before the End time"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      title: "Time to initiating replication sessions"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Replication End Time"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TimePicker, {
      time: endTime,
      id: "agmtEndTime",
      onChange: val => {
        handleTimeChange(this.props.edit ? "edit" : "create", "agmtEndTime", val);
      },
      stepMinutes: 5,
      is24Hour: true
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
      isError: true,
      isHidden: !error.agmtEndTime
    }, "End time must be after the Start time"))));

    if (!agmtSync) {
      scheduleRow = "";
    }

    if (!agmtBootstrap) {
      bootstrapRow = "";
    }

    title = title + " Replication Agreement";
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.ModalVariant.medium,
      title: title,
      className: "ds-modal-repl-agmt",
      "aria-labelledby": "ds-modal",
      isOpen: showModal,
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Button, _extends({
        key: "confirm",
        variant: "primary",
        isDisabled: saveDisabled,
        onClick: saveHandler,
        isLoading: spinning,
        spinnerAriaValueText: spinning ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Tabs, {
      activeKey: this.state.activeTabKey,
      onSelect: this.handleNavSelect
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Tab, {
      eventKey: 0,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, mainSettingsError, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TabTitleText, null, "Main Settings"))
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Agreement Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
      value: agmtName,
      type: "text",
      id: "agmtName",
      "aria-describedby": "horizontal-form-name-helper",
      name: "agmtName",
      onChange: (str, e) => {
        handleChange(e);
      },
      isDisabled: this.props.edit,
      validated: error.agmtName ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
      isError: true,
      isHidden: !error.agmtName || agmtName == ""
    }, "Required field"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Consumer Host"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
      value: agmtHost,
      type: "text",
      id: "agmtHost",
      "aria-describedby": "horizontal-form-name-helper",
      name: "agmtHost",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.agmtHost ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
      isError: true,
      isHidden: !error.agmtHost || agmtHost == ""
    }, "Required field"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Consumer Port"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
      value: agmtPort,
      type: "number",
      id: "agmtPort",
      "aria-describedby": "horizontal-form-name-helper",
      name: "agmtPort",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.agmtPort ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
      isError: true,
      isHidden: !error.agmtPort
    }, "Port must be between 1 and 65535"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Bind DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
      value: agmtBindDN,
      type: "text",
      id: "agmtBindDN",
      "aria-describedby": "horizontal-form-name-helper",
      name: "agmtBindDN",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.agmtBindDN ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
      isError: true,
      isHidden: !error.agmtBindDN
    }, "Value must be a valid DN"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Bind Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
      value: agmtBindPW,
      type: "password",
      id: "agmtBindPW",
      "aria-describedby": "horizontal-form-name-helper",
      name: "agmtBindPW",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.agmtBindPW ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
      isError: true,
      isHidden: !error.agmtBindPW || error.agmtBindPW == "" || error.agmtBindPWConfirm == ""
    }, "Passwords must match"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Confirm Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
      value: agmtBindPWConfirm,
      type: "password",
      id: "agmtBindPWConfirm",
      "aria-describedby": "horizontal-form-name-helper",
      name: "agmtBindPWConfirm",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.agmtBindPWConfirm ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
      isError: true,
      isHidden: !error.agmtBindPWConfirm || agmtBindPWConfirm == ""
    }, "Passwords must match"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Connection Protocol"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.FormSelect, {
      value: agmtProtocol,
      id: "agmtProtocol",
      onChange: (str, e) => {
        handleChange(e);
      },
      "aria-label": "FormSelect Input",
      validated: error.agmtProtocol ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: 0,
      value: "LDAP",
      label: "LDAP"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: 1,
      value: "LDAPS",
      label: "LDAPS"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: 2,
      value: "STARTTLS",
      label: "STARTTLS"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Authentication Method"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.FormSelect, {
      value: agmtBindMethod,
      id: "agmtBindMethod",
      onChange: (str, e) => {
        handleChange(e);
      },
      "aria-label": "FormSelect Input",
      validated: error.agmtBindMethod ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }, agmtBindMethodOptions.map((option, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: index,
      value: option,
      label: option
    }))))), initRow), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Tab, {
      eventKey: 1,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TabTitleText, null, "Fractional Settings")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top-lg",
      title: "Attribute to exclude from replication"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Exclude Attributes"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type an attribute",
      onToggle: onExcludeAttrsToggle,
      onSelect: (e, selection) => {
        handleFracChange(selection);
      },
      onClear: onExcludeAttrsClear,
      selections: agmtFracAttrs,
      isOpen: isExcludeAttrsOpen,
      "aria-labelledby": "typeAhead-exclude-attrs",
      placeholderText: "Start typing an attribute..."
    }, availAttrs.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.SelectOption, {
      key: index,
      value: attr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top",
      title: "Attribute to exclude from replica Initializations"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Exclude Init Attributes"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type an attribute",
      onToggle: onExcludeAttrsInitToggle,
      onSelect: (e, selection) => {
        handleFracInitChange(selection);
      },
      onClear: onExcludeAttrsInitClear,
      selections: agmtFracInitAttrs,
      isOpen: isExcludeInitAttrsOpen,
      "aria-labelledby": "typeAhead-exclude-init-attrs",
      placeholderText: "Start typing an attribute...",
      noResultsFoundText: "There are no matching entries"
    }, availAttrs.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.SelectOption, {
      key: index,
      value: attr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top",
      title: "Attributes to strip from a replicatio<Selectn update"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Strip Attributes"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type an attribute",
      onToggle: onStripAttrsToggle,
      onSelect: (e, selection) => {
        handleStripChange(selection);
      },
      onClear: onStripAttrsClear,
      selections: agmtStripAttrs,
      isOpen: isStripAttrsOpen,
      "aria-labelledby": "typeAhead-strip-attrs",
      placeholderText: "Start typing an attribute...",
      noResultsFoundText: "There are no matching entries"
    }, availAttrs.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.SelectOption, {
      key: index,
      value: attr
    })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Tab, {
      eventKey: 2,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, bootSettingsError, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TabTitleText, null, "Bootstrap Settings"))
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top-med"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Checkbox, {
      id: "agmtBootstrap",
      isChecked: agmtBootstrap,
      onChange: (checked, e) => {
        handleChange(e);
      },
      name: name,
      title: bootstrapTitle,
      label: "Enable Bootstrap Settings"
    }))), bootstrapRow), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Tab, {
      eventKey: 3,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, scheduleSettingsError, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TabTitleText, null, "Scheduling"))
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top-med"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.TextVariants.h5
    }, "By default replication updates are sent to the replica as soon as possible, but if there is a need for replication updates to only be sent on certains days and within certain windows of time then you can setup a custom replication schedule."))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-margin-top-lg",
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Checkbox, {
      id: "agmtSync",
      isChecked: agmtSync,
      onChange: (checked, e) => {
        handleChange(e);
      },
      name: name,
      label: "Use A Custom Schedule"
    }))), scheduleRow))));
  }

}
class ChangeReplRoleModal extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      showConfirmPromote: false,
      showConfirmDemote: false
    };
  }

  render() {
    var _this$props3 = this.props,
        showModal = _this$props3.showModal,
        closeHandler = _this$props3.closeHandler,
        handleChange = _this$props3.handleChange,
        saveHandler = _this$props3.saveHandler,
        role = _this$props3.role,
        spinning = _this$props3.spinning,
        checked = _this$props3.checked,
        onMinus = _this$props3.onMinus,
        onNumberChange = _this$props3.onNumberChange,
        onPlus = _this$props3.onPlus,
        newRID = _this$props3.newRID;
    var spinner = "";
    var changeType = "";
    var roleOptions = [];
    var ridRow = "";
    var newRole = this.props.newRole;
    var saveDisabled = !checked; // Set the change type

    if (role == "Supplier") {
      changeType = "Demoting";
      roleOptions = ["Hub", "Consumer"];
    } else if (role == "Consumer") {
      changeType = "Promoting";
      roleOptions = ["Supplier", "Hub"];
    } else {
      // Hub
      if (newRole == "Supplier") {
        changeType = "Promoting";
      } else {
        changeType = "Demoting";
      }

      roleOptions = ["Supplier", "Consumer"];
    }

    if (newRole == "Supplier") {
      ridRow = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
        className: "ds-margin-top-lg",
        title: "Supplier Replica Identifier.  This must be unique across all the Supplier replicas in your environment"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Replica ID"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.NumberInput, {
        value: newRID,
        min: 1,
        max: 65534,
        onMinus: onMinus,
        onChange: onNumberChange,
        onPlus: onPlus,
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 8
      })));
    }

    if (spinning) {
      spinner = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
        className: "ds-margin-top ds-modal-spinner"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.Spinner, {
        size: "md"
      }), changeType, " replica ..."));
      saveDisabled = true;
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.ModalVariant.small,
      title: "Change Replica Role",
      isOpen: showModal,
      "aria-labelledby": "ds-modal",
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Button, {
        key: "change",
        variant: "primary",
        onClick: () => {
          saveHandler(changeType);
        },
        isDisabled: saveDisabled
      }, "Change Role"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.TextVariants.h3
    }, "Please choose the new replication role you would like for this suffix")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "New Role"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.FormSelect, {
      value: newRole,
      id: "newRole",
      onChange: (str, e) => {
        handleChange(e);
      },
      "aria-label": "FormSelect Input"
    }, roleOptions.map((option, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: index,
      value: option,
      label: option
    }))))), ridRow, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 12,
      className: "ds-center"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Checkbox, {
      id: "modalChecked",
      isChecked: checked,
      onChange: (checked, e) => {
        handleChange(e);
      },
      label: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "Yes"), ", I am sure.")
    }))), spinner));
  }

}
class AddManagerModal extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  render() {
    var _this$props4 = this.props,
        showModal = _this$props4.showModal,
        closeHandler = _this$props4.closeHandler,
        handleChange = _this$props4.handleChange,
        saveHandler = _this$props4.saveHandler,
        spinning = _this$props4.spinning,
        manager = _this$props4.manager,
        manager_passwd = _this$props4.manager_passwd,
        manager_passwd_confirm = _this$props4.manager_passwd_confirm,
        error = _this$props4.error;
    var saveBtnName = "Add Replication Manager";
    var extraPrimaryProps = {};

    if (spinning) {
      saveBtnName = "Adding Replication Manager ...";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.ModalVariant.medium,
      title: "Add Replication Manager",
      "aria-labelledby": "ds-modal",
      isOpen: showModal,
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Button, _extends({
        key: "confirm",
        variant: "primary",
        onClick: saveHandler,
        isLoading: spinning,
        spinnerAriaValueText: spinning ? "Saving" : undefined
      }, extraPrimaryProps, {
        isDisabled: error.manager || error.manager_passwd || error.manager_passwd_confirm
      }), saveBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.TextVariants.h3
    }, "Create a Replication Manager entry, and add it to the replication configuration for this suffix.  If the entry already exists it will be overwritten with the new credentials.")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top-lg",
      title: "The DN of the replication manager"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Replication Manager DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
      value: manager,
      type: "text",
      id: "manager",
      "aria-describedby": "horizontal-form-name-helper",
      name: "manager",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.manager ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top",
      title: "Replication Manager password"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
      value: manager_passwd,
      type: "password",
      id: "manager_passwd",
      "aria-describedby": "horizontal-form-name-helper",
      name: "manager_passwd",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.manager_passwd ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-margin-top",
      title: "Replication Manager password"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Confirm Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
      value: manager_passwd_confirm,
      type: "password",
      id: "manager_passwd_confirm",
      "aria-describedby": "horizontal-form-name-helper",
      name: "manager_passwd_confirm",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.manager_passwd_confirm ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    })))));
  }

}
class EnableReplModal extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  render() {
    var _this$props5 = this.props,
        showModal = _this$props5.showModal,
        closeHandler = _this$props5.closeHandler,
        handleChange = _this$props5.handleChange,
        saveHandler = _this$props5.saveHandler,
        spinning = _this$props5.spinning,
        enableRole = _this$props5.enableRole,
        enableRID = _this$props5.enableRID,
        enableBindDN = _this$props5.enableBindDN,
        enableBindPW = _this$props5.enableBindPW,
        enableBindPWConfirm = _this$props5.enableBindPWConfirm,
        enableBindGroupDN = _this$props5.enableBindGroupDN,
        error = _this$props5.error,
        onMinus = _this$props5.onMinus,
        onPlus = _this$props5.onPlus,
        onNumberChange = _this$props5.onNumberChange;
    var saveBtnName = "Enable Replication";
    var extraPrimaryProps = {};

    if (spinning) {
      saveBtnName = "Enabling Replication ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    var replicaIDRow = "";

    if (enableRole == "Supplier") {
      replicaIDRow = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
        span: 3,
        className: "ds-label"
      }, "Replica ID"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.NumberInput, {
        value: enableRID,
        min: 1,
        max: 65534,
        onMinus: onMinus,
        onChange: onNumberChange,
        onPlus: onPlus,
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 6
      })));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.ModalVariant.medium,
      title: "Enable Replication",
      "aria-labelledby": "ds-modal",
      isOpen: showModal,
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Button, _extends({
        key: "enable",
        variant: "primary",
        onClick: saveHandler,
        isDisabled: this.props.disabled,
        isLoading: spinning,
        spinnerAriaValueText: spinning ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.TextVariants.h6
    }, "Choose the replication role for this suffix.  If it is a Supplier replica then you must pick a unique ID to identify it among the other Supplier replicas in your environment.  The replication changelog will also automatically be created for you.")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 3,
      className: "ds-label"
    }, "Replication Role"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.FormSelect, {
      id: "enableRole",
      value: enableRole,
      onChange: (str, e) => {
        handleChange(e);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: 0,
      value: "Supplier",
      label: "Supplier"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: 1,
      value: "Hub",
      label: "Hub"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.FormSelectOption, {
      key: 2,
      value: "Consumer",
      label: "Consumer"
    })))), replicaIDRow, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.TextVariants.h6
    }, "You can optionally define the authentication information for this replicated suffix.  Either a Manager DN and Password, a Bind Group DN, or both, can be provided.  The Manager DN should be an entry under \"cn=config\" and if it does not exist it will be created, while the Bind Group DN is usually an existing group located in the database suffix.  Typically, just the Manager DN and Password are used when enabling replication for a suffix.")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      title: "The DN of the replication manager.  If you supply a password the entry will be created in the server (it will also overwrite the entry is it already exists)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Replication Manager DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
      value: enableBindDN,
      type: "text",
      id: "enableBindDN",
      "aria-describedby": "horizontal-form-name-helper",
      name: "enableBindDN",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.enableBindDN ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      title: "Replication Manager password"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
      value: enableBindPW,
      type: "password",
      id: "enableBindPW",
      "aria-describedby": "horizontal-form-name-helper",
      name: "enableBindPW",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.enableBindPW ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      title: "Confirm the Replication Manager password"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Confirm Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
      value: enableBindPWConfirm,
      type: "password",
      id: "enableBindPWConfirm",
      "aria-describedby": "horizontal-form-name-helper",
      name: "enableBindPWConfirm",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.enableBindPWConfirm ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      title: "The DN of a group that contains users that can perform replication updates"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Bind Group DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
      value: enableBindGroupDN,
      type: "text",
      id: "enableBindGroupDN",
      "aria-describedby": "horizontal-form-name-helper",
      name: "enableBindGroupDN",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.enableBindGroupDN ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.ValidatedOptions["default"]
    })))));
  }

}
class ExportCLModal extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      default: true,
      debug: false
    };
  }

  render() {
    var _this$props6 = this.props,
        showModal = _this$props6.showModal,
        closeHandler = _this$props6.closeHandler,
        handleChange = _this$props6.handleChange,
        handleLDIFChange = _this$props6.handleLDIFChange,
        handleRadioChange = _this$props6.handleRadioChange,
        saveHandler = _this$props6.saveHandler,
        spinning = _this$props6.spinning,
        defaultCL = _this$props6.defaultCL,
        debugCL = _this$props6.debugCL,
        decodeCL = _this$props6.decodeCL,
        exportCSN = _this$props6.exportCSN,
        ldifFile = _this$props6.ldifFile,
        saveOK = _this$props6.saveOK;
    var page = "";
    var saveBtnName = "Export Changelog";
    var extraPrimaryProps = {};

    if (spinning) {
      saveBtnName = "Exporting ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    if (defaultCL) {
      page = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.TextVariants.h4
      }, "This will export the changelog to the server's LDIF directory.  This is the only LDIF file that can be imported into the server for enabling changelog encryption.  Do not edit or rename the file."));
    } else {
      page = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.TextVariants.h4
      }, "The LDIF file that is generated should ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, "not"), " be used to initialize the Replication Changelog.  It is only meant for debugging/investigative purposes.")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
        className: "ds-label",
        span: 2
      }, "LDIF File"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.GridItem, {
        span: 10
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TextInput, {
        value: ldifFile,
        type: "text",
        id: "ldifFile",
        "aria-describedby": "horizontal-form-name-helper",
        name: "ldifFile",
        onChange: (str, e) => {
          handleLDIFChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
        className: "ds-margin-top-xlg ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Checkbox, {
        id: "decodeCL",
        isChecked: decodeCL,
        isDisabled: exportCSN,
        onChange: (checked, e) => {
          handleChange(e);
        },
        label: "Decode base64 changes"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
        className: "ds-margin-top ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Checkbox, {
        id: "exportCSN",
        isChecked: exportCSN,
        isDisabled: decodeCL,
        onChange: (checked, e) => {
          handleChange(e);
        },
        label: "Only Export CSN's"
      })));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.ModalVariant.medium,
      className: "ds-modal-changelog-export",
      title: "Create Replication Change Log LDIF File",
      isOpen: showModal,
      "aria-labelledby": "ds-modal",
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Button, _extends({
        key: "export",
        variant: "primary",
        onClick: saveHandler,
        isDisabled: !saveOK,
        isLoading: spinning,
        spinnerAriaValueText: spinning ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-indent ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Radio, {
      isChecked: defaultCL,
      name: "radioGroup",
      onChange: handleRadioChange,
      label: "Export to LDIF For Reinitializing The Changelog",
      id: "defaultCL"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Grid, {
      className: "ds-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Radio, {
      isChecked: debugCL,
      name: "radioGroup",
      onChange: handleRadioChange,
      label: "Export to LDIF For Debugging",
      id: "debugCL"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null), page));
  }

}
EnableReplModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func),
  handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func),
  saveHandler: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func),
  spinning: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  disabled: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  error: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().object)
};
EnableReplModal.defaultProps = {
  showModal: false,
  spinning: false,
  disabled: false,
  error: {}
};
AddManagerModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func),
  handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func),
  saveHandler: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func),
  spinning: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  error: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().object)
};
AddManagerModal.defaultProps = {
  showModal: false,
  spinning: false,
  error: {}
};
ChangeReplRoleModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func),
  handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func),
  saveHandler: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func),
  spinning: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  role: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  newRole: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string)
};
ChangeReplRoleModal.defaultProps = {
  showModal: false,
  spinning: false,
  role: "",
  newRole: ""
};
ReplAgmtModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func),
  handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func),
  handleStripChange: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func),
  handleFracChange: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func),
  handleFracInitChange: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func),
  saveHandler: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func),
  spinning: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  availAttrs: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().array),
  agmtName: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtHost: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtPort: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtProtocol: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtBindMethod: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtBindDN: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtBindPW: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtBindPWConfirm: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtBootstrap: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  agmtBootstrapProtocol: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtBootstrapBindMethod: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtBootstrapBindDN: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtBootstrapBindPW: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtBootstrapBindPWConfirm: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtStripAttrs: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().array),
  agmtFracAttrs: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().array),
  agmtFracInitAttrs: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().array),
  agmtSync: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  agmtSyncMon: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  agmtSyncTue: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  agmtSyncWed: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  agmtSyncThu: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  agmtSyncFri: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  agmtSyncSat: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  agmtSyncSun: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  agmtStartTime: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtEndTime: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  saveOK: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  error: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().object),
  edit: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool)
};
ReplAgmtModal.defaultProps = {
  showModal: false,
  spinning: false,
  availAttrs: [],
  agmtName: "",
  agmtHost: "",
  agmtPort: "636",
  agmtProtocol: "LDAP",
  agmtBindMethod: "SIMPLE",
  agmtBindDN: "",
  agmtBindPW: "",
  agmtBindPWConfirm: "",
  agmtBootstrap: false,
  agmtBootstrapProtocol: "LDAP",
  agmtBootstrapBindMethod: "SIMPLE",
  agmtBootstrapBindDN: "",
  agmtBootstrapBindPW: "",
  agmtBootstrapBindPWConfirm: "",
  agmtStripAttrs: [],
  agmtFracAttrs: [],
  agmtFracInitAttrs: [],
  agmtSync: true,
  agmtSyncMon: false,
  agmtSyncTue: false,
  agmtSyncWed: false,
  agmtSyncThu: false,
  agmtSyncFri: false,
  agmtSyncSat: false,
  agmtSyncSun: false,
  agmtStartTime: "00:00",
  agmtEndTime: "23:59",
  saveOK: false,
  error: {},
  edit: false
};
WinsyncAgmtModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func),
  handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func),
  handleFracChange: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func),
  saveHandler: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func),
  spinning: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  availAttrs: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().array),
  agmtName: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtHost: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtPort: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtProtocol: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtBindDN: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtBindPW: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtBindPWConfirm: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtFracAttrs: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().array),
  agmtSync: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  agmtSyncMon: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  agmtSyncTue: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  agmtSyncWed: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  agmtSyncThu: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  agmtSyncFri: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  agmtSyncSat: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  agmtSyncSun: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  agmtStartTime: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtEndTime: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtSyncGroups: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  agmtSyncUsers: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  agmtWinDomain: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtWinSubtree: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtDSSubtree: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtOneWaySync: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  agmtSyncInterval: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string),
  saveOK: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool),
  error: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().object),
  edit: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().bool)
};
WinsyncAgmtModal.defaultProps = {
  showModal: false,
  spinning: false,
  availAttrs: [],
  agmtName: "",
  agmtHost: "",
  agmtPort: "636",
  agmtProtocol: "LDAPS",
  agmtBindDN: "",
  agmtBindPW: "",
  agmtBindPWConfirm: "",
  agmtFracAttrs: [],
  agmtSync: true,
  agmtSyncMon: false,
  agmtSyncTue: false,
  agmtSyncWed: false,
  agmtSyncThu: false,
  agmtSyncFri: false,
  agmtSyncSat: false,
  agmtSyncSun: false,
  agmtStartTime: "00:00",
  agmtEndTime: "23:59",
  agmtSyncGroups: false,
  agmtSyncUsers: false,
  agmtWinDomain: "",
  agmtWinSubtree: "",
  agmtDSSubtree: "",
  agmtOneWaySync: "both",
  // "both", "toWindows", "fromWindows"
  agmtSyncInterval: "",
  saveOK: false,
  error: {},
  edit: false
};

/***/ }),

/***/ "./src/lib/replication/replSuffix.jsx":
/*!********************************************!*\
  !*** ./src/lib/replication/replSuffix.jsx ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ReplSuffix": () => (/* binding */ ReplSuffix)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _replChangelog_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./replChangelog.jsx */ "./src/lib/replication/replChangelog.jsx");
/* harmony import */ var _replConfig_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./replConfig.jsx */ "./src/lib/replication/replConfig.jsx");
/* harmony import */ var _winsyncAgmts_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./winsyncAgmts.jsx */ "./src/lib/replication/winsyncAgmts.jsx");
/* harmony import */ var _replAgmts_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./replAgmts.jsx */ "./src/lib/replication/replAgmts.jsx");
/* harmony import */ var _replTasks_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./replTasks.jsx */ "./src/lib/replication/replTasks.jsx");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _replModals_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./replModals.jsx */ "./src/lib/replication/replModals.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
/* harmony import */ var _fortawesome_fontawesome_svg_core_styles_css__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core/styles.css */ "./node_modules/@fortawesome/fontawesome-svg-core/styles.css");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_22__);
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");















class ReplSuffix extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      loading: false,
      activeTabKey: 0,
      showDisableConfirm: false,
      replicationEnabled: false,
      errObj: {},
      replEnabled: this.props.replicated,
      // Enable replication settings
      showEnableReplModal: false,
      enableRole: "Supplier",
      enableRID: 1,
      enableBindDN: "cn=replication manager,cn=config",
      enableBindPW: "",
      enableBindPWConfirm: "",
      enableBindGroupDN: "",
      disabled: true,
      // Disable repl enable button
      // Disable replication
      showDisableReplModal: false,
      disableChecked: false,
      disableSpinning: false,
      modalChecked: false,
      modalSpinning: false
    };

    this.onMinus = () => {
      this.setState({
        enableRID: Number(this.state.enableRID) - 1
      });
    };

    this.onNumberChange = event => {
      var newValue = isNaN(event.target.value) ? 0 : Number(event.target.value);
      this.setState({
        enableRID: newValue > 65534 ? 65534 : newValue < 1 ? 1 : newValue
      });
    };

    this.onPlus = () => {
      this.setState({
        enableRID: Number(this.state.enableRID) + 1
      });
    }; // Toggle currently active tab


    this.handleNavSelect = (event, tabIndex) => {
      event.preventDefault();
      this.setState({
        activeTabKey: tabIndex
      });
    }; // General bindings


    this.handleReplChange = this.handleReplChange.bind(this);
    this.handleEnableChange = this.handleEnableChange.bind(this);
    this.validateEnable = this.validateEnable.bind(this);
    this.handleChange = this.handleChange.bind(this);
    this.handleNavSelect = this.handleNavSelect.bind(this);
    this.disableReplication = this.disableReplication.bind(this);
    this.enableReplication = this.enableReplication.bind(this);
    this.closeEnableReplModal = this.closeEnableReplModal.bind(this);
    this.closeDisableReplModal = this.closeDisableReplModal.bind(this);
  }

  componentDidMount() {
    this.props.enableTree();
  }

  handleNavSelect(key) {
    this.setState({
      activeKey: key
    });
  }

  handleReplChange() {
    if (this.props.replicated) {
      // Disable Replication
      this.setState({
        showDisableReplModal: true,
        modalChecked: false,
        modalSpinning: false
      });
    } else {
      // Enable replication
      this.setState({
        showEnableReplModal: true
      });
    }
  }

  handleChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var valueErr = false;
    var errObj = this.state.errObj;

    if (value == "") {
      valueErr = true;
    }

    errObj[e.target.id] = valueErr;
    this.setState({
      [e.target.id]: value,
      errObj: errObj
    });
  }

  validateEnable() {
    var errObj = {};
    var all_good = true;
    var dnAttrs = ['enableBindDN', 'enableBindGroupDN'];

    for (var _i = 0, _dnAttrs = dnAttrs; _i < _dnAttrs.length; _i++) {
      var attr = _dnAttrs[_i];

      if (this.state[attr] != "" && (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_11__.valid_dn)(this.state[attr]) || !this.state[attr].includes(','))) {
        all_good = false;
        errObj[attr] = true;
      }
    }

    if (this.state.enableBindDN) {
      if (this.state.enableBindPW == "" || this.state.enableBindPW != this.state.enableBindPWConfirm) {
        errObj.enableBindPW = true;
        errObj.enableBindPWConfirm = true;
        all_good = false;
      }
    }

    this.setState({
      errObj: errObj,
      disabled: !all_good
    });
  }

  handleEnableChange(e) {
    var value = e.target.value;
    var attr = e.target.id;
    this.setState({
      [attr]: value
    }, () => {
      this.validateEnable();
    });
  }

  closeEnableReplModal() {
    this.setState({
      showEnableReplModal: false
    });
  }

  enableReplication() {
    // First, Validate
    if (this.state.enableBindDN != "" && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_11__.valid_dn)(this.state.enableBindDN)) {
      this.props.addNotification("error", "The Bind DN is not a valid DN (Distinguished Name) ".concat(this.state.enableBindDN));
      return;
    }

    if (this.state.enableBindGroupDN != "" && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_11__.valid_dn)(this.state.enableBindGroupDN)) {
      this.props.addNotification("error", "The Group DN is not a valid DN (Distinguished Name)");
      return;
    }

    if (this.state.enableBindPW != this.state.enableBindPWConfirm) {
      this.props.addNotification("error", "The Bind DN passwords do not match");
      return;
    }

    if (this.state.enableRID != "" && (this.state.enableRID < 1 || this.state.enableRID > 65534)) {
      this.props.addNotification("error", "The Replica ID is not in the valid range of 1 - 65534");
      return;
    } // Now enable replication


    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'enable', '--suffix=' + this.props.suffix, '--role=' + this.state.enableRole];

    if (this.state.enableBindDN != "") {
      cmd.push('--bind-dn=' + this.state.enableBindDN);
    }

    if (this.state.enableBindPW != "") {
      cmd.push('--bind-passwd=' + this.state.enableBindPW);
    }

    if (this.state.enableBindGroupDN != "") {
      cmd.push('--bind-group-dn=' + this.state.enableBindGroupDN);
    }

    if (this.state.enableRole == "Supplier") {
      cmd.push('--replica-id=' + this.state.enableRID);
    }

    this.props.disableTree();
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_11__.log_cmd)('enableReplication', 'Enable replication', cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_1___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload(1);
      this.props.addNotification("success", "Successfully enabled replication for \"".concat(this.props.suffix, "\""));
    }).fail(err => {
      this.props.reload(1);
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to enable replication for \"".concat(this.props.suffix, "\" - ").concat(errMsg.desc));
    });
  }

  closeDisableReplModal() {
    this.setState({
      showDisableReplModal: false
    });
  }

  disableReplication() {
    this.props.disableTree();
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'disable', '--suffix=' + this.props.suffix];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_11__.log_cmd)('disableReplication', 'Disable replication', cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_1___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload(1);
      this.props.addNotification("success", "Successfully disabled replication for \"".concat(this.props.suffix, "\""));
    }).fail(err => {
      this.props.reload(1);
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to disable replication for \"".concat(this.props.suffix, "\" - ").concat(errMsg.desc));
    });
  } //
  // Render the component
  //


  render() {
    var spinning = "";
    var spintext = "";
    var suffixIcon = _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_12__.faTree;

    if (this.props.replicated) {
      suffixIcon = _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_12__.faClone;
    } else {
      if (this.props.repl == "subsuffix") {
        suffixIcon = _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_12__.faLeaf;
      }
    }

    if (this.props.spinning) {
      spinning = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Spinner, {
        className: "ds-margin-top ds-margin-left ds-inline-spinner",
        size: "sm"
      });
      spintext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("font", {
        size: "2"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, "Refreshing"));
    }

    var suffixClass = "ds-margin-top-lg";

    if (this.props.disabled) {
      suffixClass = "ds-margin-top-lg ds-disabled";
    }

    var enabledContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: suffixClass
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Tabs, {
      activeKey: this.state.activeTabKey,
      onSelect: this.handleNavSelect
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Tab, {
      eventKey: 0,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TabTitleText, null, "Configuration")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_replConfig_jsx__WEBPACK_IMPORTED_MODULE_3__.ReplConfig, {
      suffix: this.props.suffix,
      role: this.props.role,
      data: this.props.data,
      serverId: this.props.serverId,
      addNotification: this.props.addNotification,
      reload: this.props.reload,
      reloadConfig: this.props.reloadConfig
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Tab, {
      eventKey: 1,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TabTitleText, null, "Agreements ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("font", {
        size: "2"
      }, "(", this.props.agmtRows.length, ")"))
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_replAgmts_jsx__WEBPACK_IMPORTED_MODULE_5__.ReplAgmts, {
      suffix: this.props.suffix,
      serverId: this.props.serverId,
      rows: this.props.agmtRows,
      addNotification: this.props.addNotification,
      reload: this.props.reloadAgmts,
      attrs: this.props.attrs,
      disableTable: this.props.disableAgmtTable,
      key: this.props.agmtRows
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Tab, {
      eventKey: 2,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TabTitleText, null, "Winsync Agreements ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("font", {
        size: "2"
      }, "(", this.props.winsyncRows.length, ")"))
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_winsyncAgmts_jsx__WEBPACK_IMPORTED_MODULE_4__.WinsyncAgmts, {
      suffix: this.props.suffix,
      serverId: this.props.serverId,
      rows: this.props.winsyncRows,
      addNotification: this.props.addNotification,
      reload: this.props.reloadWinsyncAgmts,
      attrs: this.props.attrs,
      disableTable: this.props.disableWSAgmtTable,
      key: this.props.winsyncRows
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Tab, {
      eventKey: 3,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TabTitleText, null, "Change Log")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_replChangelog_jsx__WEBPACK_IMPORTED_MODULE_2__.Changelog, {
      suffix: this.props.suffix,
      serverId: this.props.serverId,
      addNotification: this.props.addNotification,
      clMaxEntries: this.props.data.clMaxEntries,
      clMaxAge: this.props.data.clMaxAge,
      clTrimInt: this.props.data.clTrimInt,
      clEncrypt: this.props.data.clEncrypt,
      key: this.props.data
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Tab, {
      eventKey: 4,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.TabTitleText, null, "RUV's & Tasks")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_replTasks_jsx__WEBPACK_IMPORTED_MODULE_6__.ReplRUV, {
      suffix: this.props.suffix,
      serverId: this.props.serverId,
      rows: this.props.ruvRows,
      addNotification: this.props.addNotification,
      reload: this.props.reloadRUV,
      localRID: this.props.data.nsds5replicaid,
      ldifRows: this.props.ldifRows,
      key: this.props.ruvRows
    }))));
    var replActionButton = "";

    if (this.props.replicated) {
      replActionButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.Button, {
        className: "ds-float-right",
        variant: "danger",
        onClick: this.handleReplChange,
        title: "Disable replication, and remove all replication agreements."
      }, "Disable");
    } else {
      enabledContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
        className: "ds-center ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.TextVariants.h3
      }, "Replication is not enabled for this suffix")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.Button, {
        variant: "primary",
        onClick: this.handleReplChange,
        className: "ds-margin-top-lg"
      }, "Enable Replication"));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      id: "suffix-page"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.GridItem, {
      className: "ds-suffix-header",
      span: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_9__.FontAwesomeIcon, {
      size: "sm",
      icon: suffixIcon
    }), "\xA0\xA0", this.props.suffix, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_9__.FontAwesomeIcon, {
      className: "ds-left-margin ds-refresh",
      icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_12__.faSyncAlt,
      title: "Refresh replication settings for this suffix",
      onClick: () => this.props.reload(false)
    }), spinning, " ", spintext), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.GridItem, {
      span: 4
    }, replActionButton)), enabledContent, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_replModals_jsx__WEBPACK_IMPORTED_MODULE_8__.EnableReplModal, {
      showModal: this.state.showEnableReplModal,
      closeHandler: this.closeEnableReplModal,
      handleChange: this.handleEnableChange,
      saveHandler: this.enableReplication,
      spinning: this.state.addManagerSpinning,
      enableRole: this.state.enableRole,
      enableRID: this.state.enableRID,
      enableBindDN: this.state.enableBindDN,
      disabled: this.state.disabled,
      onMinus: this.onMinus,
      onNumberChange: this.onNumberChange,
      onPlus: this.onPlus,
      error: this.state.errObj
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_7__.DoubleConfirmModal, {
      showModal: this.state.showDisableReplModal,
      closeHandler: this.closeDisableReplModal,
      handleChange: this.handleChange,
      actionHandler: this.disableReplication,
      spinning: this.state.modalSpinning,
      item: this.props.suffix,
      checked: this.state.modalChecked,
      mTitle: "Disable Replication",
      mMsg: "Are you sure you want to disable replication for this suffix?",
      mSpinningMsg: "Disabling Replication ...",
      mBtnName: "Disable Replication"
    }));
  }

}
ReplSuffix.propTypes = {
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().string),
  suffix: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().string),
  role: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().string),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().func),
  agmtRows: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().array),
  ldifRows: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().array),
  winsyncRows: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().array),
  ruvRows: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().array),
  reloadAgmts: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().func),
  reloadRUV: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().func),
  reloadConfig: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().func),
  reload: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().func),
  replicated: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().bool),
  attrs: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().array),
  enableTree: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().func),
  disableTree: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().func),
  spinning: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().bool),
  disabled: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().bool)
};
ReplSuffix.defaultProps = {
  serverId: "",
  suffix: "",
  role: "",
  agmtRows: [],
  winsyncRows: [],
  ruvRows: [],
  ldifRows: [],
  replicated: false,
  attrs: [],
  spinning: false,
  disabled: false
};

/***/ }),

/***/ "./src/lib/replication/replTables.jsx":
/*!********************************************!*\
  !*** ./src/lib/replication/replTables.jsx ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ReplAgmtTable": () => (/* binding */ ReplAgmtTable),
/* harmony export */   "ManagerTable": () => (/* binding */ ManagerTable),
/* harmony export */   "RUVTable": () => (/* binding */ RUVTable),
/* harmony export */   "ReplicaLDIFTable": () => (/* binding */ ReplicaLDIFTable)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SearchInput/SearchInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Pagination/Pagination.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/sortable.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Table.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableTypes.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Header.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Body.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/SortColumn.js");
/* harmony import */ var _patternfly_react_icons_dist_js_icons_trash_alt_icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-icons/dist/js/icons/trash-alt-icon */ "./node_modules/@patternfly/react-icons/dist/js/icons/trash-alt-icon.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__);
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }







class ReplAgmtTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'Name',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Host',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Port',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'State',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Last Init Status',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage
      });
    };
  }

  componentDidMount() {
    // Deep copy the rows so we can handle sorting and searching
    this.setState({
      page: this.props.page
    });
  }

  actions() {
    return [{
      title: 'Edit Agreement',
      onClick: (event, rowId, rowData, extra) => this.props.edit(rowData.cells[0])
    }, {
      title: 'Initialize Agreement',
      onClick: (event, rowId, rowData, extra) => this.props.init(rowData.cells[0])
    }, {
      title: 'Poke Agreement',
      onClick: (event, rowId, rowData, extra) => this.props.poke(rowData.cells[0])
    }, {
      title: 'Disable/Enable Agreement',
      onClick: (event, rowId, rowData, extra) => this.props.enable(rowData.cells[0], rowData.cells[3])
    }, {
      isSeparator: true
    }, {
      title: 'Delete Agreement',
      onClick: (event, rowId, rowData, extra) => this.props.delete(rowData.cells[0], rowData.cells[3])
    }];
  }

  convertStatus(msg) {
    if (msg == "Initialized") {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, "Initialized");
    } else if (msg == "Not Initialized") {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, "Not Initialized");
    } else if (msg == "Initializing") {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, "Initializing"), " ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Spinner, {
        size: "sm"
      }));
    } else {
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, msg);
    }
  }

  render() {
    // let rows = this.state.rows;
    var rows = [];
    var columns = this.state.columns;
    var has_rows = true;
    var tableRows;
    var rows_copy = JSON.parse(JSON.stringify(this.props.rows)); // Refine rows to handle JSX objects

    var _iterator = _createForOfIteratorHelper(rows_copy),
        _step;

    try {
      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        var row = _step.value;
        rows.push({
          cells: [row[0], row[1], row[2], row[3], {
            title: this.convertStatus(row[5])
          }]
        });
      }
    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }

    if (rows.length == 0) {
      has_rows = false;
      columns = [{
        title: 'Replication Agreements'
      }];
      tableRows = [{
        cells: ['No Agreements']
      }];
    } else {
      var startIdx = this.state.perPage * this.state.page - this.state.perPage;
      tableRows = rows.splice(startIdx, this.state.perPage);
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.SearchInput, {
      className: "ds-margin-top-xlg",
      placeholder: "Search agreements",
      value: this.props.value,
      onChange: this.props.search,
      onClear: evt => this.props.search('', evt)
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_4__.Table, {
      className: "ds-margin-top-lg",
      "aria-label": "agmt table",
      cells: columns,
      rows: tableRows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_5__.TableVariant.compact,
      sortBy: this.props.sortBy,
      onSort: this.props.sort,
      actions: has_rows ? this.actions() : null,
      dropdownPosition: "right",
      dropdownDirection: "bottom"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Pagination, {
      itemCount: this.props.rows.length,
      widgetId: "pagination-options-menu-bottom",
      perPage: this.state.perPage,
      page: this.state.page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

class ManagerTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      sortBy: {},
      rows: [],
      columns: ['', '']
    };
    this.onSort = this.onSort.bind(this);
    this.getDeleteButton = this.getDeleteButton.bind(this);
  }

  componentDidMount() {
    var rows = [];
    var columns = this.state.columns;

    var _iterator2 = _createForOfIteratorHelper(this.props.rows),
        _step2;

    try {
      for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
        var managerRow = _step2.value;
        rows.push({
          cells: [managerRow, {
            props: {
              textCenter: true
            },
            title: this.getDeleteButton(managerRow)
          }]
        });
      }
    } catch (err) {
      _iterator2.e(err);
    } finally {
      _iterator2.f();
    }

    if (rows.length == 0) {
      rows = [{
        cells: ['No Replication Managers']
      }];
      columns = [{
        title: ''
      }];
    }

    this.setState({
      rows: rows,
      columns: columns
    });
  }

  onSort(_event, index, direction) {
    var rows = [];
    var sortedManagers = [...this.state.rows]; // Sort the managers and build the new rows

    sortedManagers.sort();

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.SortByDirection.asc) {
      sortedManagers.reverse();
    }

    for (var _i = 0, _sortedManagers = sortedManagers; _i < _sortedManagers.length; _i++) {
      var managerRow = _sortedManagers[_i];
      rows.push({
        cells: [managerRow.cells[0], {
          props: {
            textCenter: true
          },
          title: this.getDeleteButton(managerRow.cells[0])
        }]
      });
    }

    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: rows,
      page: 1
    });
  }

  getDeleteButton(name) {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_icons_dist_js_icons_trash_alt_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
      className: "ds-center",
      onClick: () => {
        this.props.confirmDelete(name);
      },
      title: "Delete Replication Manager"
    });
  }

  render() {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_4__.Table, {
      "aria-label": "manager table",
      cells: this.state.columns,
      rows: this.state.rows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_5__.TableVariant.compact,
      sortBy: this.state.sortBy,
      onSort: this.onSort
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.TableBody, null));
  }

}

class RUVTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      sortBy: {},
      rows: [],
      columns: [{
        title: 'Replica ID',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Replica LDAP URL',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Max CSN',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: ''
      }]
    };
    this.onSort = this.onSort.bind(this);
    this.getCleanButton = this.getCleanButton.bind(this);
  }

  componentDidMount() {
    var rows = [];
    var columns = this.state.columns;

    var _iterator3 = _createForOfIteratorHelper(this.props.rows),
        _step3;

    try {
      for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
        var row = _step3.value;
        rows.push({
          cells: [row.rid, row.url, row.maxcsn, {
            props: {
              textCenter: true
            },
            title: this.getCleanButton(row.rid)
          }]
        });
      }
    } catch (err) {
      _iterator3.e(err);
    } finally {
      _iterator3.f();
    }

    if (rows.length == 0) {
      rows = [{
        cells: ["No RUV's"]
      }];
      columns = [{
        title: "Remote RUV's"
      }];
    }

    this.setState({
      rows: rows,
      columns: columns
    });
  }

  onSort(_event, index, direction) {
    var sortedRows = this.state.rows.sort((a, b) => a[index] < b[index] ? -1 : a[index] > b[index] ? 1 : 0);
    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: direction === _patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.SortByDirection.asc ? sortedRows : sortedRows.reverse()
    });
  }

  getCleanButton(rid) {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Button, {
      variant: "warning",
      onClick: () => {
        this.props.confirmDelete(rid);
      },
      title: "Remove this RUV/Replica ID from all the Replicas."
    }, "Clean RUV");
  }

  render() {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_4__.Table, {
      className: "ds-margin-top",
      "aria-label": "ruv table",
      cells: this.state.columns,
      rows: this.state.rows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_5__.TableVariant.compact,
      sortBy: this.state.sortBy,
      onSort: this.onSort
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.TableBody, null)));
  }

}

class ReplicaLDIFTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'LDIF File',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Creation Date',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'File Size',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage
      });
    };

    this.onSort = this.onSort.bind(this);
  }

  componentDidMount() {
    var rows = [];
    var columns = this.state.columns;

    var _iterator4 = _createForOfIteratorHelper(this.props.rows),
        _step4;

    try {
      for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
        var ldifRow = _step4.value;
        rows.push({
          cells: [ldifRow[0], ldifRow[1], ldifRow[2]]
        });
      }
    } catch (err) {
      _iterator4.e(err);
    } finally {
      _iterator4.f();
    }

    if (rows.length == 0) {
      rows = [{
        cells: ['No LDIF files']
      }];
      columns = [{
        title: 'LDIF File'
      }];
    }

    this.setState({
      rows: rows,
      columns: columns
    });
  }

  onSort(_event, index, direction) {
    var rows = [];
    var sortedLDIF = [...this.props.rows]; // Sort the referrals and build the new rows

    sortedLDIF.sort();

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.SortByDirection.asc) {
      sortedLDIF.reverse();
    }

    for (var _i2 = 0, _sortedLDIF = sortedLDIF; _i2 < _sortedLDIF.length; _i2++) {
      var ldifRow = _sortedLDIF[_i2];
      rows.push({
        cells: [ldifRow[0], ldifRow[1], ldifRow[2]]
      });
    }

    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: rows,
      page: 1
    });
  }

  render() {
    var _this$state = this.state,
        columns = _this$state.columns,
        rows = _this$state.rows,
        sortBy = _this$state.sortBy;
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_4__.Table, {
      "aria-label": "ldif table",
      cells: columns,
      rows: rows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_5__.TableVariant.compact,
      sortBy: sortBy,
      onSort: this.onSort,
      dropdownPosition: "right",
      dropdownDirection: "bottom"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.TableBody, null));
  }

}

ReplAgmtTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().array),
  edit: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),
  poke: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),
  init: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),
  enable: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),
  delete: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func)
};
ReplAgmtTable.defaultProps = {
  rows: []
};
ManagerTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().array),
  confirmDelete: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func)
};
ManagerTable.defaultProps = {
  rows: []
};
RUVTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().array),
  confirmDelete: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func)
};
RUVTable.defaultProps = {
  rows: []
};
ReplicaLDIFTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().array)
};
ReplicaLDIFTable.defaultProps = {
  rows: []
};


/***/ }),

/***/ "./src/lib/replication/replTasks.jsx":
/*!*******************************************!*\
  !*** ./src/lib/replication/replTasks.jsx ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ReplRUV": () => (/* binding */ ReplRUV)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _replTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./replTables.jsx */ "./src/lib/replication/replTables.jsx");
/* harmony import */ var _replModals_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./replModals.jsx */ "./src/lib/replication/replModals.jsx");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_15__);
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
/* harmony import */ var _fortawesome_fontawesome_svg_core_styles_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core/styles.css */ "./node_modules/@fortawesome/fontawesome-svg-core/styles.css");
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }












class ReplRUV extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      errObj: {},
      rid: "",
      localRID: "",
      ldifLocation: "",
      saveOK: false,
      showConfirmCleanRUV: false,
      modalChecked: false,
      modalSpinning: false,
      showConfirmCLImport: false,
      showCLExport: false,
      defaultCL: true,
      debugCL: false,
      decodeCL: false,
      exportCSN: false,
      ldifFile: "/tmp/changelog.ldif"
    };
    this.showConfirmCleanRUV = this.showConfirmCleanRUV.bind(this);
    this.closeConfirmCleanRUV = this.closeConfirmCleanRUV.bind(this);
    this.showConfirmCLImport = this.showConfirmCLImport.bind(this);
    this.closeConfirmCLImport = this.closeConfirmCLImport.bind(this);
    this.showCLExport = this.showCLExport.bind(this);
    this.closeCLExport = this.closeCLExport.bind(this);
    this.showConfirmExport = this.showConfirmExport.bind(this);
    this.closeConfirmExport = this.closeConfirmExport.bind(this);
    this.handleLDIFChange = this.handleLDIFChange.bind(this);
    this.handleCLLDIFChange = this.handleCLLDIFChange.bind(this);
    this.handleRadioChange = this.handleRadioChange.bind(this);
    this.handleChange = this.handleChange.bind(this);
    this.cleanRUV = this.cleanRUV.bind(this);
    this.exportChangelog = this.exportChangelog.bind(this);
    this.importChangelog = this.importChangelog.bind(this);
  }

  showConfirmCleanRUV(rid) {
    this.setState({
      rid: rid,
      showConfirmCleanRUV: true,
      modalChecked: false,
      modalSpinning: false
    });
  }

  closeConfirmCleanRUV() {
    this.setState({
      showConfirmCleanRUV: false,
      modalChecked: false,
      modalSpinning: false
    });
  }

  showConfirmCLImport() {
    this.setState({
      showConfirmCLImport: true,
      modalChecked: false,
      modalSpinning: false
    });
  }

  closeConfirmCLImport() {
    this.setState({
      showConfirmCLImport: false,
      modalChecked: false,
      modalSpinning: false
    });
  }

  showCLExport() {
    this.setState({
      saveOK: true,
      showCLExport: true,
      decodeCL: false,
      defaultCL: true,
      debugCL: false,
      exportChangelog: false,
      ldifFile: "/tmp/changelog.ldif"
    });
  }

  closeCLExport() {
    this.setState({
      showCLExport: false
    });
  }

  showConfirmExport() {
    this.setState({
      saveOK: false,
      showConfirmExport: true,
      ldifLocation: ""
    });
  }

  closeConfirmExport() {
    this.setState({
      showConfirmExport: false
    });
  }

  handleRadioChange(_, e) {
    // Handle the changelog export options
    var defaultCL = false;
    var debugCL = false;

    if (e.target.id == "defaultCL") {
      defaultCL = true;
    } else if (e.target.id == "debugCL") {
      debugCL = true;
    }

    this.setState({
      defaultCL: defaultCL,
      debugCL: debugCL
    });
  }

  cleanRUV() {
    // Enable/disable agmt
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-tasks', 'cleanallruv', '--replica-id=' + this.state.rid, '--force-cleaning', '--suffix=' + this.props.suffix];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)('cleanRUV', 'Clean the rid', cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload(this.props.suffix);
      this.props.addNotification('success', 'Successfully started CleanAllRUV task');
      this.closeConfirmCleanRUV();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to start CleanAllRUV task - ".concat(errMsg.desc));
      this.closeConfirmCleanRUV();
    });
  }

  handleLDIFChange(e) {
    var value = e.target.value;
    var saveOK = true;

    if (value == "" || (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.bad_file_name)(value)) {
      saveOK = false;
    }

    this.setState({
      [e.target.id]: value,
      saveOK: saveOK
    });
  }

  handleCLLDIFChange(e) {
    var value = e.target.value;
    var saveOK = true;

    if (value == "" || value.indexOf(' ') >= 0) {
      saveOK = false;
    }

    this.setState({
      [e.target.id]: value,
      saveOK: saveOK
    });
  }

  handleChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [e.target.id]: value
    });
  }

  importChangelog() {
    // Do changelog import
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "import-changelog", "default", "--replica-root", this.props.suffix];
    this.setState({
      modalSpinning: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("importChangelog", "Import relication changelog via LDIF", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.addNotification("success", "Changelog was successfully initialized");
      this.setState({
        showConfirmCLImport: false,
        modalSpinning: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error importing changelog LDIF - ".concat(errMsg.desc));
      this.setState({
        showConfirmCLImport: false,
        modalSpinning: false
      });
    });
  }

  exportChangelog() {
    // Do changelog export
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "export-changelog"];

    if (this.state.defaultCL) {
      cmd.push("default");
    } else {
      cmd.push("to-ldif");

      if (this.state.exportCSN) {
        cmd.push("--csn-only");
      }

      if (this.state.decodeCL) {
        cmd.push("--decode");
      }

      if (this.state.ldifFile) {
        cmd.push("--output-file=" + this.state.ldifFile);
      }
    }

    cmd.push("--replica-root=" + this.props.suffix);
    this.setState({
      exportSpinner: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("exportChangelog", "Import relication changelog via LDIF", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.addNotification("success", "Changelog was successfully exported");
      this.setState({
        showCLExport: false,
        exportSpinner: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error importing changelog LDIF - ".concat(errMsg.desc));
      this.setState({
        showCLExport: false,
        exportSpinner: false
      });
    });
  }

  render() {
    // Strip out the local RUV and display it different then only allow
    // cleaning of remote rids
    var remote_rows = [];
    var localRID = "";
    var localURL = "";
    var localCSN = "";
    var localRawCSN = "";
    var localMinCSN = "";
    var localRawMinCSN = "";

    var _iterator = _createForOfIteratorHelper(this.props.rows),
        _step;

    try {
      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        var row = _step.value;

        if (row.rid == this.props.localRID) {
          localRID = row.rid;
          localURL = row.url;
          localCSN = row.maxcsn;
          localRawCSN = row.raw_maxcsn;
          localMinCSN = row.csn;
          localRawMinCSN = row.raw_csn;
        } else {
          remote_rows.push(row);
        }
      }
    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }

    var localRUV = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-left-indent-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      className: "ds-margin-top-med"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 2
    }, "Replica ID"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, localRID))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 2
    }, "LDAP URL"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, localURL))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 2
    }, "Min CSN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, localMinCSN), " (", localRawMinCSN, ")")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 2
    }, "Max CSN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, localCSN), " (", localRawCSN, ")")));

    if (localRID == "") {
      localRUV = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-indent"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("i", null, "There is no local RUV, the database might not have been initialized yet."));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top-xlg ds-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextVariants.h3
    }, "Local RUV ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_6__.FontAwesomeIcon, {
      size: "lg",
      className: "ds-left-margin ds-refresh",
      icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_12__.faSyncAlt,
      title: "RRefresh the RUV for this suffixs",
      onClick: () => {
        this.props.reload(this.props.suffix);
      }
    }))), localRUV, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextContent, {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextVariants.h3
    }, "Remote RUV's ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_6__.FontAwesomeIcon, {
      size: "lg",
      className: "ds-left-margin ds-refresh",
      icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_12__.faSyncAlt,
      title: "Refresh the remote RUVs for this suffixs",
      onClick: () => {
        this.props.reload(this.props.suffix);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-left-indent-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_replTables_jsx__WEBPACK_IMPORTED_MODULE_3__.RUVTable, {
      rows: remote_rows,
      confirmDelete: this.showConfirmCleanRUV
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextContent, {
      className: "ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextVariants.h3
    }, "Replication Change Log Tasks")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Form, {
      className: "ds-margin-top-lg ds-left-indent-md",
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 3,
      title: "Export the changelog to an LDIF file.  Typically used for changelog encryption purposes, or debugging."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Button, {
      variant: "primary",
      onClick: this.showCLExport
    }, "Export Changelog")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("p", {
      className: "ds-margin-top"
    }, "Export the replication changelog to a LDIF file.  Used for preparing to encrypt the changelog, or simply for debugging."))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 3,
      title: "Initialize the changelog with an LDIF file for changelog encryption purposes."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Button, {
      variant: "primary",
      onClick: this.showConfirmCLImport
    }, "Import Changelog")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("p", {
      className: "ds-margin-top"
    }, "Initialize the replication changelog from an LDIF file.  Used to initialize the change log after encryption has been enabled.")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__.DoubleConfirmModal, {
      showModal: this.state.showConfirmCleanRUV,
      closeHandler: this.closeConfirmCleanRUV,
      handleChange: this.handleChange,
      actionHandler: this.cleanRUV,
      spinning: this.state.modalSpinning,
      item: "Replica ID " + this.state.rid,
      checked: this.state.modalChecked,
      mTitle: "Remove RUV Element (CleanAllRUV)",
      mMsg: "Are you sure you want to attempt to clean this Replica ID from the suffix?",
      mSpinningMsg: "Starting cleaning task (CleanAllRUV) ...",
      mBtnName: "Remove RUV Element"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__.DoubleConfirmModal, {
      showModal: this.state.showConfirmCLImport,
      closeHandler: this.closeConfirmCLImport,
      handleChange: this.handleChange,
      actionHandler: this.importChangelog,
      spinning: this.state.modalSpinning,
      item: "Replicated Suffix " + this.props.suffix,
      checked: this.state.modalChecked,
      mTitle: "Initialize Replication Changelog From LDIF",
      mMsg: "Are you sure you want to attempt to initialize the changelog from LDIF?  This will reject all operations during during the initialization.",
      mSpinningMsg: "Initialzing Replication Change Log ...",
      mBtnName: "Import Changelog LDIF"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_replModals_jsx__WEBPACK_IMPORTED_MODULE_4__.ExportCLModal, {
      showModal: this.state.showCLExport,
      closeHandler: this.closeCLExport,
      handleChange: this.handleChange,
      handleLDIFChange: this.handleCLLDIFChange,
      handleRadioChange: this.handleRadioChange,
      saveHandler: this.exportChangelog,
      defaultCL: this.state.defaultCL,
      debugCL: this.state.debugCL,
      decodeCL: this.state.decodeCL,
      exportCSN: this.state.exportCSN,
      ldifFile: this.state.ldifFile,
      spinning: this.state.exportSpinner,
      saveOK: this.state.saveOK
    }));
  }

}
ReplRUV.propTypes = {
  suffix: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().string),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().string),
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().array),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func),
  localRID: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().string),
  reload: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func)
};
ReplRUV.defaultProps = {
  serverId: "",
  suffix: "",
  rows: [],
  localRID: ""
};

/***/ }),

/***/ "./src/lib/replication/winsyncAgmts.jsx":
/*!**********************************************!*\
  !*** ./src/lib/replication/winsyncAgmts.jsx ***!
  \**********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "WinsyncAgmts": () => (/* binding */ WinsyncAgmts)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _replTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./replTables.jsx */ "./src/lib/replication/replTables.jsx");
/* harmony import */ var _replModals_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./replModals.jsx */ "./src/lib/replication/replModals.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/SortColumn.js");
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }










class WinsyncAgmts extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "_mounted", false);

    this.state = {
      showCreateAgmtModal: false,
      showEditAgmtModal: false,
      showConfirmDeleteAgmt: false,
      showConfirmInitAgmt: false,
      showConfirmEnableAgmt: false,
      showConfirmDisableAgmt: false,
      errObj: {},
      savingAgmt: false,
      mounted: false,
      rows: [],
      page: 1,
      value: "",
      sortBy: {},
      // Create agreement
      agmtName: "",
      agmtHost: "",
      agmtPort: "",
      agmtProtocol: "LDAPS",
      agmtBindDN: "",
      agmtBindPW: "",
      agmtBindPWConfirm: "",
      agmtFracAttrs: [],
      agmtSync: true,
      agmtSyncMon: true,
      agmtSyncTue: true,
      agmtSyncWed: true,
      agmtSyncThu: true,
      agmtSyncFri: true,
      agmtSyncSat: true,
      agmtSyncSun: true,
      agmtStartTime: "0000",
      agmtEndTime: "2359",
      agmtInit: "noinit",
      agmtSaveOK: false,
      modalChecked: false,
      modalSpinning: false,
      // Winsync specific settings
      agmtSyncGroups: false,
      agmtSyncUsers: true,
      agmtWinDomain: "",
      agmtWinSubtree: "",
      agmtDSSubtree: "",
      agmtOneWaySync: "both",
      // "both", "toWindows", "fromWindows"
      agmtSyncInterval: "",
      // Init agmt
      agmtInitCounter: 0,
      agmtInitIntervals: [],
      isExcludeAttrCreateOpen: false,
      isExcludeAttrEditOpen: false
    }; // Create - Exclude Attributes

    this.onExcludeAttrCreateToggle = isExcludeAttrCreateOpen => {
      this.setState({
        isExcludeAttrCreateOpen
      });
    };

    this.onExcludeAttrCreateClear = () => {
      this.setState({
        agmtFracAttrs: [],
        isExcludeAttrCreateOpen: false
      });
    }; // Edit - Exclude Attributes


    this.onExcludeAttrEditToggle = isExcludeAttrEditOpen => {
      this.setState({
        isExcludeAttrEditOpen
      });
    };

    this.onExcludeAttrEditClear = () => {
      this.setState({
        agmtFracAttrs: [],
        isExcludeAttrEditOpen: false
      });
    };

    this.showCreateAgmtModal = this.showCreateAgmtModal.bind(this);
    this.closeCreateAgmtModal = this.closeCreateAgmtModal.bind(this);
    this.closeEditAgmtModal = this.closeEditAgmtModal.bind(this);
    this.handleTASelectChange = this.handleTASelectChange.bind(this);
    this.handleTimeChange = this.handleTimeChange.bind(this);
    this.handleCreateChange = this.handleCreateChange.bind(this);
    this.handleEditChange = this.handleEditChange.bind(this);
    this.handleModalChange = this.handleModalChange.bind(this);
    this.handleTAFracAttrChange = this.handleTAFracAttrChange.bind(this);
    this.handleTAFracAttrChangeEdit = this.handleTAFracAttrChangeEdit.bind(this);
    this.createAgmt = this.createAgmt.bind(this);
    this.showEditAgmt = this.showEditAgmt.bind(this);
    this.saveAgmt = this.saveAgmt.bind(this);
    this.pokeAgmt = this.pokeAgmt.bind(this);
    this.initAgmt = this.initAgmt.bind(this);
    this.enableAgmt = this.enableAgmt.bind(this);
    this.disableAgmt = this.disableAgmt.bind(this);
    this.deleteAgmt = this.deleteAgmt.bind(this);
    this.showConfirmDeleteAgmt = this.showConfirmDeleteAgmt.bind(this);
    this.closeConfirmDeleteAgmt = this.closeConfirmDeleteAgmt.bind(this);
    this.showConfirmInitAgmt = this.showConfirmInitAgmt.bind(this);
    this.closeConfirmInitAgmt = this.closeConfirmInitAgmt.bind(this);
    this.confirmToggle = this.confirmToggle.bind(this);
    this.closeConfirmEnableAgmt = this.closeConfirmEnableAgmt.bind(this);
    this.closeConfirmDisableAgmt = this.closeConfirmDisableAgmt.bind(this);
    this.watchAgmtInit = this.watchAgmtInit.bind(this); // Table sort and search

    this.onSort = this.onSort.bind(this);
    this.onSearchChange = this.onSearchChange.bind(this);
  }

  componentDidMount() {
    this._mounted = true;
    var rows = JSON.parse(JSON.stringify(this.props.rows));
    this.setState({
      rows: rows
    });
  }

  componentWillUnmount() {
    this._mounted = false;
  }

  handleModalChange(e) {
    this.setState({
      [e.target.id]: e.target.checked
    });
  }

  validateConfig(attr, value, errObj) {
    // Validate the current Settings
    var all_good = true;
    var configAttrs = ['agmtName', 'agmtHost', "agmtWinDomain"];
    var dnAttrs = ['agmtBindDN', 'agmtWinSubtree', 'agmtWinSubtree', 'agmtDSSubtree']; // If we disable

    if (attr == 'agmtSync' && value == true) {
      errObj.agmtSyncMon = false;
      errObj.agmtSyncTue = false;
      errObj.agmtSyncWed = false;
      errObj.agmtSyncThu = false;
      errObj.agmtSyncFri = false;
      errObj.agmtSyncSat = false;
      errObj.agmtSyncSun = false;
      errObj.agmtStartTime = false;
      errObj.agmtEndTime = false;
    }

    for (var _i = 0, _configAttrs = configAttrs; _i < _configAttrs.length; _i++) {
      var configAttr = _configAttrs[_i];

      if (attr == configAttr) {
        if (value == "") {
          errObj[attr] = true;
          all_good = false;
        } else {
          errObj[attr] = false;
        }
      } else if (this.state[configAttr] == "") {
        errObj[configAttr] = true;
        all_good = false;
      }
    }

    for (var _i2 = 0, _dnAttrs = dnAttrs; _i2 < _dnAttrs.length; _i2++) {
      var dnAttr = _dnAttrs[_i2];

      if (attr == dnAttr) {
        if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.valid_dn)(value)) {
          errObj[dnAttr] = true;
          all_good = false;
        } else {
          errObj[attr] = false;
        }
      } else if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.valid_dn)(this.state[dnAttr])) {
        errObj[dnAttr] = true;
        all_good = false;
      }
    }

    if (attr == 'agmtPort') {
      if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.valid_port)(value)) {
        errObj.agmtPort = true;
        all_good = false;
      } else {
        errObj.agmtPort = false;
      }
    } // Check passwords match


    if (attr == 'agmtBindPW') {
      if (value != this.state.agmtBindPWConfirm || value == "") {
        errObj.agmtBindPW = true;
        errObj.agmtBindPWConfirm = true;
        all_good = false;
      } else {
        errObj.agmtBindPW = false;
        errObj.agmtBindPWConfirm = false;
      }
    } else if (attr == 'agmtBindPWConfirm') {
      if (value != this.state.agmtBindPW || value == "") {
        errObj.agmtBindPW = true;
        errObj.agmtBindPWConfirm = true;
        all_good = false;
      } else {
        errObj.agmtBindPW = false;
        errObj.agmtBindPWConfirm = false;
      }
    } else if (this.state.agmtBindPW != this.state.agmtBindPWConfirm || this.state.agmtBindPW == "" || this.state.agmtBindPWConfirm == "") {
      // Not a pasword change, but the values are no good
      errObj.agmtBindPW = true;
      errObj.agmtBindPWConfirm = true;
      all_good = false;
    }

    if (attr == 'agmtSync') {
      if (value) {
        // Just set all the days and let the user remove days as needed
        errObj.agmtStartTime = false;
        errObj.agmtEndTime = false;
        this.setState({
          agmtSyncMon: true,
          agmtSyncTue: true,
          agmtSyncWed: true,
          agmtSyncThu: true,
          agmtSyncFri: true,
          agmtSyncSat: true,
          agmtSyncSun: true,
          agmtStartTime: "0000",
          agmtEndTime: "2359"
        });
      }
    } else if (this.state.agmtSync) {
      // Check the days first
      var have_days = false;
      var days = ["agmtSyncSun", "agmtSyncMon", "agmtSyncTue", "agmtSyncWed", "agmtSyncThu", "agmtSyncFri", "agmtSyncSat"];

      for (var _i3 = 0, _days = days; _i3 < _days.length; _i3++) {
        var day = _days[_i3];

        if (attr != day && this.state[day] || attr == day && value) {
          have_days = true;
          break;
        }
      }

      errObj.agmtSyncSun = false;
      errObj.agmtSyncMon = false;
      errObj.agmtSyncTue = false;
      errObj.agmtSyncWed = false;
      errObj.agmtSyncThu = false;
      errObj.agmtSyncFri = false;
      errObj.agmtSyncSat = false;

      if (!have_days) {
        errObj.agmtSyncSun = true;
        errObj.agmtSyncMon = true;
        errObj.agmtSyncTue = true;
        errObj.agmtSyncWed = true;
        errObj.agmtSyncThu = true;
        errObj.agmtSyncFri = true;
        errObj.agmtSyncSat = true;
        all_good = false;
      } else if (attr == 'agmtStartTime') {
        if (value == "") {
          all_good = false;
          errObj.agmtStartTime = true;
        } else if (value >= this.state.agmtEndTime) {
          errObj.agmtStartTime = true;
          all_good = false;
        } else {
          // All good, reset form
          errObj.agmtStartTime = false;
          errObj.agmtEndTime = false;
        }
      } else if (attr == 'agmtEndTime') {
        if (value == "") {
          errObj.agmtEndTime = true;
          all_good = false;
        } else if (this.state.agmtStartTime >= value) {
          errObj.agmtStartTime = true;
          all_good = false;
        } else {
          // All good, reset form
          errObj.agmtStartTime = false;
          errObj.agmtEndTime = false;
        }
      } else if (this.state.agmtStartTime >= this.state.agmtEndTime) {
        errObj.agmtStartTime = true;
        all_good = false;
      }
    }

    return all_good;
  }

  handleTimeChange(action, attr, val) {
    var value = val.replace(":", "");
    var errObj = this.state.errObj;
    var e = {
      target: {
        id: 'dummy',
        value: "",
        type: 'input'
      }
    };

    if (value == "") {
      value = "0000";
    }

    if (attr == "agmtStartTime") {
      if (value > this.state.agmtEndTime) {
        errObj.agmtStartTime = true;
      } else {
        errObj.agmtStartTime = false;
        errObj.agmtEndTime = false;
      }
    } else if (attr == "agmtEndTime") {
      if (this.state.agmtStartTime > value) {
        errObj.agmtEndTime = true;
      } else {
        errObj.agmtEndTime = false;
        errObj.agmtStartTime = false;
      }
    }

    this.setState({
      [attr]: value,
      errObj: errObj
    }, () => {
      action == "edit" ? this.handleEditChange(e) : this.handleCreateChange(e);
    });
  }

  handleCreateChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    var errObj = this.state.errObj;
    var all_good = true;

    if (e.target.type == "time") {
      // Strip out the colon from the time
      value = value.replace(':', '');
    }

    all_good = this.validateConfig(attr, value, errObj);
    this.setState({
      [attr]: value,
      errObj: errObj,
      agmtSaveOK: all_good,
      [e.target.toggle]: false
    });
  }

  handleEditChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    var errObj = this.state.errObj;
    var all_good = true;
    errObj[attr] = false;

    if (e.target.type == "time") {
      // Strip out the colon from the time
      value = value.replace(':', '');
    }

    all_good = this.validateConfig(attr, value, errObj);

    if (all_good) {
      // All the values are valid, but did something change that warrants
      // the save button to be enabled?
      all_good = false;

      if (attr != 'agmtHost' && this.state.agmtHost != this.state._agmtHost || attr != 'agmtPort' && this.state.agmtPort != this.state._agmtPort || attr != 'agmtBindDN' && this.state.agmtBindDN != this.state._agmtBindDN || attr != 'agmtBindMethod' && this.state.agmtBindMethod != this.state._agmtBindMethod || attr != 'agmtProtocol' && this.state.agmtProtocol != this.state._agmtProtocol || attr != 'agmtSync' && this.state.agmtSync != this.state._agmtSync || attr != 'agmtFracAttrs' && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.listsEqual)(this.state.agmtFracAttrs, this.state._agmtFracAttrs) || attr != 'agmtSyncGroups' && this.state.agmtSyncGroups != this.state._agmtSyncGroups || attr != 'agmtSyncUsers' && this.state.agmtSyncUsers != this.state._agmtSyncUsers || attr != 'agmtWinDomain' && this.state.agmtWinDomain != this.state._agmtWinDomain || attr != 'agmtWinSubtree' && this.state.agmtWinSubtree != this.state._agmtWinSubtree || attr != 'agmtDSSubtree' && this.state.agmtDSSubtree != this.state._agmtDSSubtree || attr != 'agmtOneWaySync' && this.state.agmtOneWaySync != this.state._agmtOneWaySync || attr != 'agmtSyncInterval' && this.state.agmtSyncInterval != this.state._agmtSyncInterval) {
        all_good = true;
      }

      if (attr != "agmtSync" && this.state.agmtSync || attr == "agmtSync" && value) {
        if (attr != 'agmtSyncMon' && this.state.agmtSyncMon != this.state._agmtSyncMon || attr != 'agmtSyncTue' && this.state.agmtSyncTue != this.state._agmtSyncTue || attr != 'agmtSyncWed' && this.state.agmtSyncWed != this.state._agmtSyncWed || attr != 'agmtSyncThu' && this.state.agmtSyncThu != this.state._agmtSyncThu || attr != 'agmtSyncFri' && this.state.agmtSyncFri != this.state._agmtSyncFri || attr != 'agmtSyncSat' && this.state.agmtSyncSat != this.state._agmtSyncSat || attr != 'agmtSyncSun' && this.state.agmtSyncSun != this.state._agmtSyncSun || attr != 'agmtStartTime' && this.state.agmtStartTime != this.state._agmtStartTime || attr != 'agmtEndTime' && this.state.agmtEndTime != this.state._agmtEndTime) {
          all_good = true;
        }
      }

      if (attr == 'agmtFracAttrs' && !this.listEqual(value, this.state._agmtFracAttrs)) {
        all_good = true;
      } else if (attr != 'dummy' && value != this.state['_' + attr]) {
        all_good = true;
      }
    }

    this.setState({
      [attr]: value,
      errObj: errObj,
      agmtSaveOK: all_good,
      [e.target.toggle]: false
    });
  }

  handleTASelectChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    var valueErr = false;
    var errObj = this.state.errObj;

    if (value == "") {
      valueErr = true;
    }

    errObj[attr] = valueErr; // We handle strings and arrays here, need to find a better way to differentiate.

    if (attr.endsWith('Attrs')) {
      if (this.state[attr].includes(value)) {
        this.setState(prevState => ({
          [attr]: prevState[attr].filter(item => item !== e.target.value),
          errObj: errObj,
          [e.target.toggle]: false
        }));
      } else {
        this.setState(prevState => ({
          [attr]: [...prevState[attr], value],
          errObj: errObj,
          [e.target.toggle]: false
        }));
      }
    } else {
      this.setState({
        [attr]: value,
        errObj: errObj,
        [e.target.toggle]: false
      });
    }
  }

  handleTAFracAttrChangeEdit(selection) {
    // TypeAhead handling
    var agmtFracAttrs = this.state.agmtFracAttrs;
    var e = {
      target: {
        id: 'dummy',
        value: "",
        type: 'input'
      }
    };

    if (agmtFracAttrs.includes(selection)) {
      var new_values = this.state.agmtFracAttrs.filter(item => item !== selection);
      this.setState({
        agmtFracAttrs: new_values,
        isExcludeAttrsEditOpen: false
      }, () => {
        this.handleEditChange(e);
      });
    } else {
      var _new_values = [...this.state.agmtFracAttrs, selection];
      this.setState({
        agmtFracAttrs: _new_values,
        isExcludeAttrsEditOpen: false
      }, () => {
        this.handleEditChange(e);
      });
    }
  }

  handleTAFracAttrChange(values) {
    // TypeAhead handling
    var e = {
      target: {
        name: 'agmt-modal',
        id: 'agmtFracAttrs',
        value: values,
        type: 'input',
        toggle: 'isExcludeAttrCreateOpen'
      }
    };
    this.handleChange(e);
  }

  showConfirmDeleteAgmt(agmtName) {
    this.setState({
      agmtName: agmtName,
      showConfirmDeleteAgmt: true,
      modalSpinning: false,
      modalChecked: false
    });
  }

  closeConfirmDeleteAgmt() {
    this.setState({
      showConfirmDeleteAgmt: false,
      modalChecked: false
    });
  }

  showConfirmInitAgmt(agmtName) {
    this.setState({
      agmtName: agmtName,
      showConfirmInitAgmt: true,
      modalSpinning: false,
      modalChecked: false
    });
  }

  closeConfirmInitAgmt() {
    this.setState({
      showConfirmInitAgmt: false,
      modalChecked: false
    });
  }

  showCreateAgmtModal() {
    this.setState({
      showCreateAgmtModal: true,
      agmtName: "",
      agmtHost: "",
      agmtPort: "636",
      agmtProtocol: "LDAP",
      agmtBindDN: "",
      agmtBindPW: "",
      agmtBindPWConfirm: "",
      agmtFracAttrs: [],
      agmtSync: false,
      agmtSyncMon: true,
      agmtSyncTue: true,
      agmtSyncWed: true,
      agmtSyncThu: true,
      agmtSyncFri: true,
      agmtSyncSat: true,
      agmtSyncSun: true,
      agmtStartTime: "0000",
      agmtEndTime: "2359",
      agmtInit: "noinit",
      agmtSaveOK: false,
      agmtSyncGroups: false,
      agmtSyncUsers: true,
      agmtWinDomain: "",
      agmtWinSubtree: "",
      agmtDSSubtree: "",
      agmtOneWaySync: "both",
      // "both", "toWindows", "fromWindows"
      agmtSyncInterval: "",
      errObj: {
        // Marks all these fields as required
        agmtName: true,
        agmtHost: true,
        agmtBindDN: true,
        agmtBindPW: true,
        agmtBindPWConfirm: true,
        agmtWinDomain: true,
        agmtWinSubtree: true,
        agmtDSSubtree: true
      }
    });
  }

  closeCreateAgmtModal() {
    this.setState({
      showCreateAgmtModal: false
    });
  }

  closeEditAgmtModal() {
    this.setState({
      showEditAgmtModal: false
    });
  }

  showEditAgmt(agmtName) {
    // Search for the agmt to get all the details
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'get', agmtName, '--suffix=' + this.props.suffix];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)('showEditAgmt', 'Edit winsync agreement', cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var agmtName = "";
      var agmtHost = "";
      var agmtPort = "";
      var agmtProtocol = "";
      var agmtBindDN = "";
      var agmtBindPW = "";
      var agmtBindPWConfirm = "";
      var agmtFracAttrs = [];
      var agmtSync = false;
      var agmtSyncMon = false;
      var agmtSyncTue = false;
      var agmtSyncWed = false;
      var agmtSyncThu = false;
      var agmtSyncFri = false;
      var agmtSyncSat = false;
      var agmtSyncSun = false;
      var agmtStartTime = "0000";
      var agmtEndTime = "2359";
      var agmtSyncGroups = false;
      var agmtSyncUsers = false;
      var agmtWinDomain = "";
      var agmtWinSubtree = "";
      var agmtDSSubtree = "";
      var agmtOneWaySync = "both";
      var agmtSyncInterval = "";

      for (var attr in config.attrs) {
        var val = config.attrs[attr][0];

        if (attr == "winsyncinterval") {
          agmtSyncInterval = val;
        }

        if (attr == "onewaysync") {
          agmtOneWaySync = val;
        }

        if (attr == "nsds7directoryreplicasubtree") {
          agmtDSSubtree = val;
        }

        if (attr == "nsds7windowsreplicasubtree") {
          agmtWinSubtree = val;
        }

        if (attr == "nsds7windowsdomain") {
          agmtWinDomain = val;
        }

        if (attr == "nsds7newwinusersyncenabled") {
          if (val.toLowerCase() == "on") {
            agmtSyncUsers = true;
          }
        }

        if (attr == "nsds7newwingroupsyncenabled") {
          if (val.toLowerCase() == "on") {
            agmtSyncGroups = true;
          }
        }

        if (attr == "cn") {
          agmtName = val;
        }

        if (attr == "nsds5replicahost") {
          agmtHost = val;
        }

        if (attr == "nsds5replicaport") {
          agmtPort = val;
        }

        if (attr == "nsds5replicatransportinfo") {
          agmtProtocol = val;
        }

        if (attr == "nsds5replicabinddn") {
          agmtBindDN = val;
        }

        if (attr == "nsds5replicacredentials") {
          agmtBindPW = val;
          agmtBindPWConfirm = val;
        }

        if (attr == "nsds5replicatedattributelist") {
          var attrs = val.replace("(objectclass=*) $ EXCLUDE", "").trim();
          agmtFracAttrs = attrs.split(' ');
        }

        if (attr == "nsds5replicaupdateschedule") {
          agmtSync = true; // Parse schedule

          var parts = val.split(' ');
          var times = parts[0].split('-');
          var days = parts[1]; // Do the times

          agmtStartTime = times[0];
          agmtEndTime = times[1]; // Do the days

          if (days.includes("0")) {
            agmtSyncSun = true;
          }

          if (days.includes("1")) {
            agmtSyncMon = true;
          }

          if (days.includes("2")) {
            agmtSyncTue = true;
          }

          if (days.includes("3")) {
            agmtSyncWed = true;
          }

          if (days.includes("4")) {
            agmtSyncThu = true;
          }

          if (days.includes("5")) {
            agmtSyncFri = true;
          }

          if (days.includes("6")) {
            agmtSyncSat = true;
          }
        }
      }

      if (this._mounted) {
        this.setState({
          showEditAgmtModal: true,
          errObj: {},
          agmtName: agmtName,
          agmtHost: agmtHost,
          agmtPort: agmtPort,
          agmtProtocol: agmtProtocol,
          agmtBindDN: agmtBindDN,
          agmtBindPW: agmtBindPW,
          agmtBindPWConfirm: agmtBindPWConfirm,
          agmtFracAttrs: agmtFracAttrs,
          agmtSync: agmtSync,
          agmtSyncMon: agmtSyncMon,
          agmtSyncTue: agmtSyncTue,
          agmtSyncWed: agmtSyncWed,
          agmtSyncThu: agmtSyncThu,
          agmtSyncFri: agmtSyncFri,
          agmtSyncSat: agmtSyncSat,
          agmtSyncSun: agmtSyncSun,
          agmtStartTime: agmtStartTime,
          agmtEndTime: agmtEndTime,
          agmtSyncGroups: agmtSyncGroups,
          agmtSyncUsers: agmtSyncUsers,
          agmtWinDomain: agmtWinDomain,
          agmtWinSubtree: agmtWinSubtree,
          agmtDSSubtree: agmtDSSubtree,
          agmtOneWaySync: agmtOneWaySync,
          agmtSyncInterval: agmtSyncInterval,
          agmtSaveOK: false,
          // Record original values before editing
          _agmtName: agmtName,
          _agmtHost: agmtHost,
          _agmtPort: agmtPort,
          _agmtProtocol: agmtProtocol,
          _agmtBindDN: agmtBindDN,
          _agmtBindPW: agmtBindPW,
          _agmtBindPWConfirm: agmtBindPWConfirm,
          _agmtFracAttrs: agmtFracAttrs,
          _agmtSync: agmtSync,
          _agmtSyncMon: agmtSyncMon,
          _agmtSyncTue: agmtSyncTue,
          _agmtSyncWed: agmtSyncWed,
          _agmtSyncThu: agmtSyncThu,
          _agmtSyncFri: agmtSyncFri,
          _agmtSyncSat: agmtSyncSat,
          _agmtSyncSun: agmtSyncSun,
          _agmtStartTime: agmtStartTime,
          _agmtEndTime: agmtEndTime,
          _agmtSyncGroups: agmtSyncGroups,
          _agmtSyncUsers: agmtSyncUsers,
          _agmtWinDomain: agmtWinDomain,
          _agmtWinSubtree: agmtWinSubtree,
          _agmtDSSubtree: agmtDSSubtree,
          _agmtOneWaySync: agmtOneWaySync,
          _agmtSyncInterval: agmtSyncInterval
        });
      }
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to get agreement information for: \"".concat(agmtName, "\" - ").concat(errMsg.desc));
    });
  }

  saveAgmt() {
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'set', this.state.agmtName, '--suffix=' + this.props.suffix]; // Handle Schedule

    if (this.state.agmtSync) {
      var agmt_days = "";

      if (this.state.agmtSyncSun) {
        agmt_days += "0";
      }

      if (this.state.agmtSyncMon) {
        agmt_days += "1";
      }

      if (this.state.agmtSyncTue) {
        agmt_days += "2";
      }

      if (this.state.agmtSyncWed) {
        agmt_days += "3";
      }

      if (this.state.agmtSyncThu) {
        agmt_days += "4";
      }

      if (this.state.agmtSyncFri) {
        agmt_days += "5";
      }

      if (this.state.agmtSyncSat) {
        agmt_days += "6";
      }

      cmd.push('--schedule=' + this.state.agmtStartTime.replace(':', '') + "-" + this.state.agmtEndTime.replace(':', '') + " " + agmt_days);
    } else if (this.state.agmtSync != this.state._agmtSync && !this.state.agmtSync) {
      // We disabled custom scheduleRow
      cmd.push('--schedule=');
    }

    if (this.state.agmtSyncGroups != this.state._agmtSyncGroups) {
      var val = "off";

      if (this.state.agmtSyncGroups) {
        val = "on";
      }

      cmd.push('--sync-groups=' + val);
    }

    if (this.state.agmtSyncUsers != this.state._agmtSyncUsers) {
      var _val = "off";

      if (this.state.agmtSyncUsers) {
        _val = "on";
      }

      cmd.push('--sync-users=' + _val);
    }

    if (this.state.agmtWinDomain != this.state._agmtWinDomain) {
      cmd.push('--win-domain=' + this.state.agmtWinDomain);
    }

    if (this.state.agmtWinSubtree != this.state._agmtWinSubtree) {
      cmd.push('--win-subtree=' + this.state.agmtWinSubtree);
    }

    if (this.state.agmtDSSubtree != this.state._agmtDSSubtree) {
      cmd.push('--ds-subtree=' + this.state.agmtDSSubtree);
    }

    if (this.state.agmtOneWaySync != this.state._agmtOneWaySync) {
      cmd.push('--one-way-sync=' + this.state.agmtOneWaySync);
    }

    if (this.state.agmtSyncInterval != this.state._agmtSyncInterval) {
      cmd.push('--sync-interval=' + this.state.agmtSyncInterval);
    }

    if (this.state.agmtProtocol != this.state._agmtProtocol) {
      cmd.push('--conn-protocol=' + this.state.agmtProtocol);
    }

    if (this.state.agmtBindPW != this.state._agmtBindPW) {
      cmd.push('--bind-passwd=' + this.state.agmtBindPW);
    }

    if (this.state.agmtBindDN != this.state._agmtBindDN) {
      cmd.push('--bind-passwd=' + this.state.agmtBindDN);
    }

    if (this.state.agmtFracAttrs != this.state._agmtFracAttrs) {
      cmd.push('--frac-list=' + this.state.agmtFracAttrs.join(' '));
    }

    if (this.state.agmtHost != this.state._agmtHost) {
      cmd.push('--host=' + this.state.agmtHost);
    }

    if (this.state.agmtPort != this.state._agmtPort) {
      cmd.push('--port=' + this.state.agmtPort);
    }

    this.setState({
      savingAgmt: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)('saveAgmt', 'update winsync agreement', cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload(this.props.suffix);

      if (this._mounted) {
        this.setState({
          savingAgmt: false,
          showEditAgmtModal: false
        });
      }

      this.props.addNotification('success', 'Successfully updated winsync agreement');
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to update winsync agreement - ".concat(errMsg.desc));
      this.setState({
        savingAgmt: false
      });
    });
  }

  pokeAgmt(agmtName) {
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'poke', agmtName, '--suffix=' + this.props.suffix];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)('pokeAgmt', 'send updates now', cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload(this.props.suffix);
      this.props.addNotification('success', 'Successfully poked winsync agreement');
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification('error', "Failed to poke winsync agreement - ".concat(errMsg.desc));
    });
  }

  initAgmt() {
    this.setState({
      modalSpinning: true
    });
    var init_cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'init', '--suffix=' + this.props.suffix, this.state.agmtName];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)('initAgmt', 'Initialize winsync agreement', init_cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(init_cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var agmtIntervalCount = this.state.agmtInitCounter + 1;
      var intervals = this.state.agmtInitIntervals;
      this.props.reload(this.props.suffix);
      intervals[agmtIntervalCount] = setInterval(this.watchAgmtInit, 2000, this.state.agmtName, agmtIntervalCount); // This triggers error and does not actually work

      if (this._mounted) {
        this.setState({
          agmtInitCounter: agmtIntervalCount,
          agmtInitIntervals: intervals,
          showConfirmInitAgmt: false
        });
      }
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification('error', "Failed to initialize winsync agreement - ".concat(errMsg.desc));
      this.setState({
        showConfirmInitAgmt: false
      });
    });
  }

  confirmToggle(agmtName, state) {
    if (state == 'Enabled') {
      this.setState({
        agmtName: agmtName,
        showConfirmDisableAgmt: true,
        modalSpinning: false,
        modalChecked: false
      });
    } else {
      this.setState({
        agmtName: agmtName,
        showConfirmEnableAgmt: true,
        modalSpinning: false,
        modalChecked: false
      });
    }
  }

  closeConfirmEnableAgmt() {
    this.setState({
      showConfirmEnableAgmt: false
    });
  }

  closeConfirmDisableAgmt() {
    this.setState({
      showConfirmDisableAgmt: false
    });
  }

  enableAgmt(agmtName) {
    // Enable/disable agmt
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'enable', agmtName, '--suffix=' + this.props.suffix];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)('enableAgmt', 'enable agmt', cmd);
    this.setState({
      modalSpinning: true
    });
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload(this.props.suffix);
      this.props.addNotification('success', 'Successfully enabled winsync agreement');
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to enabled winsync agreement - ".concat(errMsg.desc));
    });
  }

  disableAgmt(agmtName) {
    // Enable/disable agmt
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'disable', agmtName, '--suffix=' + this.props.suffix];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)('disableAgmt', 'Disable agmt', cmd);
    this.setState({
      modalSpinning: true
    });
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload(this.props.suffix);
      this.props.addNotification('success', 'Successfully disabled winsync agreement');
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to disable winsync agreement - ".concat(errMsg.desc));
    });
  }

  deleteAgmt() {
    this.setState({
      deleteSpinning: true
    });
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'delete', '--suffix=' + this.props.suffix, this.state.agmtName];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)('deleteAgmt', 'Delete agmt', cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload(this.props.suffix);
      this.props.addNotification('success', 'Successfully deleted winsync agreement');
      this.setState({
        showDeleteConfirm: false,
        deleteSpinning: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to delete winsync agreement - ".concat(errMsg.desc));
      this.setState({
        showDeleteConfirm: false,
        deleteSpinning: false
      });
    });
  }

  createAgmt() {
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'create', this.state.agmtName, '--suffix=' + this.props.suffix, '--host=' + this.state.agmtHost, '--port=' + this.state.agmtPort, '--conn-protocol=' + this.state.agmtProtocol, '--bind-dn=' + this.state.agmtBindDN, '--bind-passwd=' + this.state.agmtBindPW, '--ds-subtree=' + this.state.agmtDSSubtree, '--win-subtree=' + this.state.agmtWinSubtree, '--win-domain=' + this.state.agmtWinDomain, '--one-way-sync=' + this.state.agmtOneWaySync]; // Handle Schedule

    if (this.state.agmtSync) {
      var agmt_days = "";

      if (this.state.agmtSyncSun) {
        agmt_days += "0";
      }

      if (this.state.agmtSyncMon) {
        agmt_days += "1";
      }

      if (this.state.agmtSyncTue) {
        agmt_days += "2";
      }

      if (this.state.agmtSyncWed) {
        agmt_days += "3";
      }

      if (this.state.agmtSyncThu) {
        agmt_days += "4";
      }

      if (this.state.agmtSyncFri) {
        agmt_days += "5";
      }

      if (this.state.agmtSyncSat) {
        agmt_days += "6";
      }

      cmd.push('--schedule=' + this.state.agmtStartTime.replace(':', '') + "-" + this.state.agmtEndTime.replace(':', '') + " " + agmt_days);
    }

    if (this.state.agmtFracAttrs.length > 0) {
      cmd.push('--frac-list=' + this.state.agmtFracAttrs.join(' '));
    }

    if (this.state.agmtSyncGroups) {
      cmd.push('--sync-groups=on');
    }

    if (this.state.agmtSyncUsers) {
      cmd.push('--sync-users=on');
    }

    if (this.state.agmtSyncInterval != "") {
      cmd.push('--sync-interval=' + this.state.agmtSyncInterval);
    }

    this.setState({
      savingAgmt: true
    });
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)('createAgmt', 'Create winsync agreement', cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.props.reload(this.props.suffix);

      if (this._mounted) {
        this.setState({
          savingAgmt: false,
          showCreateAgmtModal: false
        });
      }

      this.props.addNotification('success', 'Successfully created winsync agreement');

      if (this.state.agmtInit == 'online-init') {
        this.initAgmt(this.state.agmtName);
      }
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Failed to create winsync agreement - ".concat(errMsg.desc));
      this.setState({
        savingAgmt: false
      });
    });
  }

  watchAgmtInit(agmtName, idx) {
    // Watch the init, then clear the interval index
    var status_cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'repl-winsync-agmt', 'init-status', '--suffix=' + this.props.suffix, agmtName];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)('watchAgmtInit', 'Get initialization status for agmt', status_cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(status_cmd, {
      superuser: true,
      err: "message"
    }).done(data => {
      var init_status = JSON.parse(data);

      if (init_status.startsWith('Agreement successfully initialized') || init_status.startsWith('Agreement initialization failed')) {
        // Either way we're done, stop watching the status
        clearInterval(this.state.agmtInitIntervals[idx]);
        this.props.reload(this.props.suffix);
      }
    });
  }

  onSort(_event, index, direction) {
    var sortedRows = this.state.rows.sort((a, b) => a[index] < b[index] ? -1 : a[index] > b[index] ? 1 : 0);
    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: direction === _patternfly_react_table__WEBPACK_IMPORTED_MODULE_6__.SortByDirection.asc ? sortedRows : sortedRows.reverse()
    });
  }

  onSearchChange(value, event) {
    var rows = [];
    var val = value.toLowerCase();

    var _iterator = _createForOfIteratorHelper(this.state.rows),
        _step;

    try {
      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        var row = _step.value;

        if (val != "" && row[0].indexOf(val) == -1 && row[1].indexOf(val) == -1 && row[2].indexOf(val) == -1) {
          // Not a match, skip it
          continue;
        }

        rows.push([row[0], row[1], row[2], row[3], row[4], row[5]]);
      }
    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }

    if (val == "") {
      // reset rows
      rows = JSON.parse(JSON.stringify(this.props.rows));
    }

    this.setState({
      rows: rows,
      value: value,
      page: 1
    });
  }

  render() {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-right"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_replTables_jsx__WEBPACK_IMPORTED_MODULE_3__.ReplAgmtTable, {
      key: this.state.rows,
      rows: this.state.rows,
      edit: this.showEditAgmt,
      poke: this.pokeAgmt,
      init: this.showConfirmInitAgmt,
      enable: this.confirmToggle,
      delete: this.showConfirmDeleteAgmt,
      page: this.state.page,
      sort: this.onSort,
      sortBy: this.state.sortBy,
      search: this.onSearchChange,
      value: this.state.value
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top ds-container ds-inline ds-margin-bottom-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Button, {
      variant: "primary",
      onClick: this.showCreateAgmtModal
    }, "Create Agreement"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Button, {
      className: "ds-left-margin",
      variant: "default",
      onClick: () => {
        this.props.reload(this.props.suffix);
      }
    }, "Refresh Agreements")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_replModals_jsx__WEBPACK_IMPORTED_MODULE_4__.WinsyncAgmtModal, {
      showModal: this.state.showCreateAgmtModal,
      closeHandler: this.closeCreateAgmtModal,
      handleChange: this.handleCreateChange,
      handleTimeChange: this.handleTimeChange,
      handleFracChange: this.handleTAFracAttrChange,
      onSelectToggle: this.onExcludeAttrCreateToggle,
      onSelectClear: this.onExcludeAttrCreateClear,
      isExcludeAttrOpen: this.state.isExcludeAttrCreateOpen,
      saveHandler: this.createAgmt,
      getToggleId: this.getToggleId,
      spinning: this.state.savingAgmt,
      agmtName: this.state.agmtName,
      agmtHost: this.state.agmtHost,
      agmtPort: this.state.agmtPort,
      agmtBindDN: this.state.agmtBindDN,
      agmtBindPW: this.state.agmtBindPW,
      agmtBindPWConfirm: this.state.agmtBindPWConfirm,
      agmtProtocol: this.state.agmtProtocol,
      agmtFracAttrs: this.state.agmtFracAttrs,
      agmtSync: this.state.agmtSync,
      agmtSyncMon: this.state.agmtSyncMon,
      agmtSyncTue: this.state.agmtSyncTue,
      agmtSyncWed: this.state.agmtSyncWed,
      agmtSyncThu: this.state.agmtSyncThu,
      agmtSyncFri: this.state.agmtSyncFri,
      agmtSyncSat: this.state.agmtSyncSat,
      agmtSyncSun: this.state.agmtSyncSun,
      agmtStartTime: this.state.agmtStartTime,
      agmtEndTime: this.state.agmtEndTime,
      agmtSyncGroups: this.state.agmtSyncGroups,
      agmtSyncUsers: this.state.agmtSyncUsers,
      agmtWinDomain: this.state.agmtWinDomain,
      agmtWinSubtree: this.state.agmtWinSubtree,
      agmtDSSubtree: this.state.agmtDSSubtree,
      agmtOneWaySync: this.state.agmtOneWaySync,
      agmtSyncInterval: this.state.agmtSyncInterval,
      agmtInit: this.state.agmtInit,
      availAttrs: this.props.attrs,
      error: this.state.errObj,
      saveOK: this.state.agmtSaveOK
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_replModals_jsx__WEBPACK_IMPORTED_MODULE_4__.WinsyncAgmtModal, {
      key: this.state.showEditAgmtModal ? "edit1" : "edit0",
      showModal: this.state.showEditAgmtModal,
      closeHandler: this.closeEditAgmtModal,
      handleChange: this.handleEditChange,
      handleTimeChange: this.handleTimeChange,
      handleFracChange: this.handleTAFracAttrChangeEdit,
      onSelectToggle: this.onExcludeAttrEditToggle,
      onSelectClear: this.onExcludeAttrEditClear,
      isExcludeAttrOpen: this.state.isExcludeAttrEditOpen,
      getToggleId: this.getToggleId,
      saveHandler: this.saveAgmt,
      spinning: this.state.savingAgmt,
      agmtName: this.state.agmtName,
      agmtHost: this.state.agmtHost,
      agmtPort: this.state.agmtPort,
      agmtBindDN: this.state.agmtBindDN,
      agmtBindPW: this.state.agmtBindPW,
      agmtBindPWConfirm: this.state.agmtBindPWConfirm,
      agmtProtocol: this.state.agmtProtocol,
      agmtStripAttrs: this.state.agmtStripAttrs,
      agmtFracAttrs: this.state.agmtFracAttrs,
      agmtFracInitAttrs: this.state.agmtFracInitAttrs,
      agmtSync: this.state.agmtSync,
      agmtSyncMon: this.state.agmtSyncMon,
      agmtSyncTue: this.state.agmtSyncTue,
      agmtSyncWed: this.state.agmtSyncWed,
      agmtSyncThu: this.state.agmtSyncThu,
      agmtSyncFri: this.state.agmtSyncFri,
      agmtSyncSat: this.state.agmtSyncSat,
      agmtSyncSun: this.state.agmtSyncSun,
      agmtStartTime: this.state.agmtStartTime,
      agmtEndTime: this.state.agmtEndTime,
      agmtSyncGroups: this.state.agmtSyncGroups,
      agmtSyncUsers: this.state.agmtSyncUsers,
      agmtWinDomain: this.state.agmtWinDomain,
      agmtWinSubtree: this.state.agmtWinSubtree,
      agmtDSSubtree: this.state.agmtDSSubtree,
      agmtOneWaySync: this.state.agmtOneWaySync,
      agmtSyncInterval: this.state.agmtSyncInterval,
      agmtInit: this.state.agmtInit,
      availAttrs: this.props.attrs,
      error: this.state.errObj,
      saveOK: this.state.agmtSaveOK,
      edit: true
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmDeleteAgmt,
      closeHandler: this.closeConfirmDeleteAgmt,
      handleChange: this.handleModalChange,
      actionHandler: this.deleteAgmt,
      spinning: this.state.modalSpinning,
      item: this.state.agmtName,
      checked: this.state.modalChecked,
      mTitle: "Delete Winsync Agreement",
      mMsg: "Are you sure you want to delete this winsync agreement",
      mSpinningMsg: "Deleting Winsync Agreement ...",
      mBtnName: "Delete Agreement"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmInitAgmt,
      closeHandler: this.closeConfirmInitAgmt,
      handleChange: this.handleModalChange,
      actionHandler: this.initAgmt,
      spinning: this.state.modalSpinning,
      item: this.state.agmtName,
      checked: this.state.modalChecked,
      mTitle: "Initialize Winsync Agreement",
      mMsg: "Are you sure you want to initialize this winsync agreement?",
      mSpinningMsg: "Initializing Winsync Agreement ...",
      mBtnName: "Initialize Agreement"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmEnableAgmt,
      closeHandler: this.closeConfirmEnableAgmt,
      handleChange: this.handleModalChange,
      actionHandler: this.enableAgmt,
      spinning: this.state.modalSpinning,
      item: this.state.agmtName,
      checked: this.state.modalChecked,
      mTitle: "Enable Winsync Agreement",
      mMsg: "Are you sure you want to enable this winsync agreement?",
      mSpinningMsg: "Enabling Winsync Agreement ...",
      mBtnName: "Enable Agreement"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmDisableAgmt,
      closeHandler: this.closeConfirmDisableAgmt,
      handleChange: this.handleModalChange,
      actionHandler: this.disableAgmt,
      spinning: this.state.modalSpinning,
      item: this.state.agmtName,
      checked: this.state.modalChecked,
      mTitle: "Disable Winsync Agreement",
      mMsg: "Are you sure you want to disable this winsync agreement?",
      mSpinningMsg: "Disabling Winsync Agreement ...",
      mBtnName: "Disable Agreement"
    }));
  }

}
WinsyncAgmts.propTypes = {
  suffix: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().array),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func)
};
WinsyncAgmts.defaultProps = {
  serverId: "",
  suffix: "",
  rows: []
};

/***/ }),

/***/ "./src/lib/schema/schemaModals.jsx":
/*!*****************************************!*\
  !*** ./src/lib/schema/schemaModals.jsx ***!
  \*****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ObjectClassModal": () => (/* binding */ ObjectClassModal),
/* harmony export */   "AttributeTypeModal": () => (/* binding */ AttributeTypeModal)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }





class ObjectClassModal extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  render() {
    var _this$props = this.props,
        newOcEntry = _this$props.newOcEntry,
        ocModalViewOnly = _this$props.ocModalViewOnly,
        addHandler = _this$props.addHandler,
        editHandler = _this$props.editHandler,
        handleFieldChange = _this$props.handleFieldChange,
        objectclasses = _this$props.objectclasses,
        attributes = _this$props.attributes,
        ocName = _this$props.ocName,
        ocDesc = _this$props.ocDesc,
        ocOID = _this$props.ocOID,
        ocParent = _this$props.ocParent,
        ocKind = _this$props.ocKind,
        ocMust = _this$props.ocMust,
        ocMay = _this$props.ocMay,
        objectclassModalShow = _this$props.objectclassModalShow,
        closeModal = _this$props.closeModal,
        loading = _this$props.loading,
        isRequiredAttrsOpen = _this$props.isRequiredAttrsOpen,
        isAllowedAttrsOpen = _this$props.isAllowedAttrsOpen,
        onRequiredAttrsToggle = _this$props.onRequiredAttrsToggle,
        onRequiredAttrsClear = _this$props.onRequiredAttrsClear,
        onRequiredAttrsSelect = _this$props.onRequiredAttrsSelect,
        onRequiredAttrsCreateOption = _this$props.onRequiredAttrsCreateOption,
        onAllowedAttrsToggle = _this$props.onAllowedAttrsToggle,
        onAllowedAttrsClear = _this$props.onAllowedAttrsClear,
        onAllowedAttrsSelect = _this$props.onAllowedAttrsSelect,
        onAllowedAttrsCreateOption = _this$props.onAllowedAttrsCreateOption,
        error = _this$props.error,
        saveBtnDisabled = _this$props.saveBtnDisabled;
    var modalTitle = ocModalViewOnly ? "View ObjectClass - ".concat(ocName) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, newOcEntry ? "Add" : "Edit", " ObjectClass", ocName != "" ? " - ".concat(ocName) : "", " ");
    var btnList = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.Button, {
      key: "cancel",
      variant: "link",
      onClick: closeModal
    }, "Close")];

    if (!ocModalViewOnly) {
      var btnText = "Save";
      var extraPrimaryProps = {};

      if (loading) {
        btnText = "Saving...";
        extraPrimaryProps.spinnerAriaValueText = "Loading";
      }

      btnList.unshift( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.Button, _extends({
        key: "oc",
        isLoading: loading,
        spinnerAriaValueText: loading ? "Loading" : undefined,
        variant: "primary",
        onClick: newOcEntry ? addHandler : editHandler
      }, extraPrimaryProps, {
        isDisabled: saveBtnDisabled
      }), btnText));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.ModalVariant.medium,
      "aria-labelledby": "ds-modal",
      title: modalTitle,
      isOpen: objectclassModalShow,
      onClose: closeModal,
      actions: btnList
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      title: "Name of the objectClass"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Objectclass Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextInput, {
      value: ocName,
      type: "text",
      id: "ocName",
      "aria-describedby": "horizontal-form-name-helper",
      name: "ocName",
      onChange: (str, e) => {
        handleFieldChange(e);
      },
      validated: error.ocName ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ValidatedOptions["default"],
      isDisabled: !newOcEntry
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      title: "Describes what is the objectClass's purpose"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Description"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextInput, {
      value: ocDesc,
      type: "text",
      id: "ocDesc",
      "aria-describedby": "horizontal-form-name-helper",
      name: "ocDesc",
      onChange: (str, e) => {
        handleFieldChange(e);
      },
      validated: error.ocDesc ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      title: "Object identifier"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      className: "ds-label",
      span: 3
    }, "OID (optional)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextInput, {
      value: ocOID,
      type: "text",
      id: "ocOID",
      "aria-describedby": "horizontal-form-name-helper",
      name: "ocOID",
      isDisabled: ocModalViewOnly,
      onChange: (str, e) => {
        handleFieldChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      title: "An objectClass's parent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Parent Objectclass"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.FormSelect, {
      id: "ocParent",
      value: ocParent,
      isDisabled: ocModalViewOnly,
      onChange: (str, e) => {
        handleFieldChange(e);
      },
      "aria-label": "FormSelect Input"
    }, objectclasses.map((obj, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormSelectOption, {
      key: index,
      value: obj,
      label: obj
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      title: "An objectClass's kind"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Objectclass Kind"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.FormSelect, {
      id: "ocKind",
      value: ocKind,
      isDisabled: ocModalViewOnly,
      onChange: (str, e) => {
        handleFieldChange(e);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormSelectOption, {
      key: 0,
      value: "STRUCTURAL",
      label: "STRUCTURAL"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormSelectOption, {
      key: 1,
      value: "ABSTRACT",
      label: "ABSTRACT"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormSelectOption, {
      key: 2,
      value: "AUXILIARY",
      label: "AUXILIARY"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      title: "A must attribute name"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Required Attributes"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type an attribute name",
      onToggle: onRequiredAttrsToggle,
      onSelect: onRequiredAttrsSelect,
      onClear: onRequiredAttrsClear,
      selections: ocMust,
      id: "ocMust",
      isOpen: isRequiredAttrsOpen,
      "aria-labelledby": "typeAhead-required-attrs",
      placeholderText: "Type an attribute name...",
      noResultsFoundText: "There are no matching entries",
      isCreatable: true,
      onCreateOption: onRequiredAttrsCreateOption,
      direction: "up",
      maxHeight: "225px"
    }, attributes.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.SelectOption, {
      key: index,
      value: attr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      title: "A may attribute name"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Allowed Attributes"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type an attribute name",
      onToggle: onAllowedAttrsToggle,
      onSelect: onAllowedAttrsSelect,
      onClear: onAllowedAttrsClear,
      selections: ocMay,
      id: "ocMay",
      isOpen: isAllowedAttrsOpen,
      "aria-labelledby": "typeAhead-allowed-attrs",
      placeholderText: "Type an attribute name...",
      noResultsFoundText: "There are no matching entries",
      isCreatable: true,
      onCreateOption: onAllowedAttrsCreateOption,
      direction: "up",
      maxHeight: "225px"
    }, attributes.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.SelectOption, {
      key: index,
      value: attr
    }))))))));
  }

}

ObjectClassModal.propTypes = {
  addHandler: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  editHandler: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  newOcEntry: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
  ocModalViewOnly: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
  handleTypeaheadChange: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  handleFieldChange: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  objectclasses: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
  attributes: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
  ocName: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
  ocDesc: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
  ocOID: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
  ocParent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
  ocKind: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
  ocMust: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
  ocMay: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
  objectclassModalShow: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
  closeModal: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  loading: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool)
};
ObjectClassModal.defaultProps = {
  newOcEntry: true,
  ocModalViewOnly: false,
  objectclasses: [],
  attributes: [],
  ocName: "",
  ocDesc: "",
  ocOID: "",
  ocParent: "",
  ocKind: "",
  ocMust: [],
  ocMay: [],
  objectclassModalShow: false,
  loading: false
};

class AttributeTypeModal extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  render() {
    var _this$props2 = this.props,
        atName = _this$props2.atName,
        atDesc = _this$props2.atDesc,
        atOID = _this$props2.atOID,
        atParent = _this$props2.atParent,
        atSyntax = _this$props2.atSyntax,
        atUsage = _this$props2.atUsage,
        atMultivalued = _this$props2.atMultivalued,
        atNoUserMod = _this$props2.atNoUserMod,
        atAlias = _this$props2.atAlias,
        atEqMr = _this$props2.atEqMr,
        atOrder = _this$props2.atOrder,
        atSubMr = _this$props2.atSubMr,
        atModalViewOnly = _this$props2.atModalViewOnly,
        attributeModalShow = _this$props2.attributeModalShow,
        newAtEntry = _this$props2.newAtEntry,
        addHandler = _this$props2.addHandler,
        editHandler = _this$props2.editHandler,
        handleFieldChange = _this$props2.handleFieldChange,
        attributes = _this$props2.attributes,
        syntaxes = _this$props2.syntaxes,
        matchingrules = _this$props2.matchingrules,
        closeModal = _this$props2.closeModal,
        loading = _this$props2.loading,
        isParentAttrOpen = _this$props2.isParentAttrOpen,
        isAliasNameOpen = _this$props2.isAliasNameOpen,
        isEqualityMROpen = _this$props2.isEqualityMROpen,
        isOrderMROpen = _this$props2.isOrderMROpen,
        isSubstringMROpen = _this$props2.isSubstringMROpen,
        onParentAttrToggle = _this$props2.onParentAttrToggle,
        onParentAttrClear = _this$props2.onParentAttrClear,
        onParentAttrSelect = _this$props2.onParentAttrSelect,
        onAliasNameToggle = _this$props2.onAliasNameToggle,
        onAliasNameClear = _this$props2.onAliasNameClear,
        onAliasNameSelect = _this$props2.onAliasNameSelect,
        onAliasNameCreateOption = _this$props2.onAliasNameCreateOption,
        onEqualityMRToggle = _this$props2.onEqualityMRToggle,
        onEqualityMRClear = _this$props2.onEqualityMRClear,
        onEqualityMRSelect = _this$props2.onEqualityMRSelect,
        onOrderMRToggle = _this$props2.onOrderMRToggle,
        onOrderMRClear = _this$props2.onOrderMRClear,
        onOrderMRSelect = _this$props2.onOrderMRSelect,
        onSubstringMRToggle = _this$props2.onSubstringMRToggle,
        onSubstringMRClear = _this$props2.onSubstringMRClear,
        onSubstringMRSelect = _this$props2.onSubstringMRSelect,
        error = _this$props2.error,
        saveBtnDisabled = _this$props2.saveBtnDisabled;
    var modalTitle = atModalViewOnly ? "View Attribute - ".concat(atName) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, newAtEntry ? "Add" : "Edit", " Attribute", atName != "" ? " - ".concat(atName) : "", " ");
    var btnList = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.Button, {
      key: "cancel",
      variant: "link",
      onClick: closeModal
    }, "Close")];

    if (!atModalViewOnly) {
      var btnText = "Save";
      var extraPrimaryProps = {};

      if (loading) {
        btnText = "Saving...";
        extraPrimaryProps.spinnerAriaValueText = "Loading";
      }

      btnList.unshift( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.Button, _extends({
        key: "at",
        isLoading: loading,
        spinnerAriaValueText: loading ? "Loading" : undefined,
        variant: "primary",
        onClick: newAtEntry ? addHandler : editHandler
      }, extraPrimaryProps, {
        isDisabled: saveBtnDisabled
      }), btnText));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.ModalVariant.medium,
      "aria-labelledby": "ds-modal",
      title: modalTitle,
      isOpen: attributeModalShow,
      onClose: closeModal,
      actions: btnList
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      title: "Name of the attribute"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Attribute Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextInput, {
      value: atName,
      type: "text",
      id: "atName",
      "aria-describedby": "horizontal-form-name-helper",
      name: "atName",
      isDisabled: !newAtEntry,
      onChange: (str, e) => {
        handleFieldChange(e);
      },
      validated: error.atName ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      title: "Describes what is the attribute's purpose"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Description"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextInput, {
      value: atDesc,
      type: "text",
      id: "atDesc",
      "aria-describedby": "horizontal-form-name-helper",
      name: "atDesc",
      isDisabled: atModalViewOnly,
      onChange: (str, e) => {
        handleFieldChange(e);
      },
      validated: error.atDesc ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      title: "Object identifier"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      className: "ds-label",
      span: 3
    }, "OID (optional)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextInput, {
      value: atOID,
      type: "text",
      id: "atOID",
      "aria-describedby": "horizontal-form-name-helper",
      name: "atOID",
      isDisabled: atModalViewOnly,
      onChange: (str, e) => {
        handleFieldChange(e);
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      title: "An attribute's parent/superior "
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Parent Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.SelectVariant.typeahead,
      typeAheadAriaLabel: "Type an attribute name",
      onToggle: onParentAttrToggle,
      onSelect: onParentAttrSelect,
      onClear: onParentAttrClear,
      selections: atParent,
      isOpen: isParentAttrOpen,
      "aria-labelledby": "typeAhead-parent-attr",
      placeholderText: "Type an attribute name...",
      noResultsFoundText: "There are no matching entries"
    }, attributes.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.SelectOption, {
      key: index,
      value: attr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      title: "An attribute's syntax"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Syntax Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.FormSelect, {
      id: "atSyntax",
      value: atSyntax,
      isDisabled: atModalViewOnly,
      onChange: (str, e) => {
        handleFieldChange(e);
      },
      "aria-label": "FormSelect Input"
    }, syntaxes.map((syntax, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormSelectOption, {
      key: index,
      value: syntax.id,
      label: syntax.label
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      title: "An attribute's usage purpose"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Attribute Usage"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.FormSelect, {
      id: "atUsage",
      value: atUsage,
      isDisabled: atModalViewOnly,
      onChange: (str, e) => {
        handleFieldChange(e);
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormSelectOption, {
      key: 0,
      value: "userApplications",
      label: "userApplications"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormSelectOption, {
      key: 1,
      value: "directoryOperation",
      label: "directoryOperation"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormSelectOption, {
      key: 2,
      value: "distributedOperation",
      label: "distributedOperation"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormSelectOption, {
      key: 3,
      value: "dSAOperation",
      label: "dSAOperation"
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      title: "If attribute can have a multiple values"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Multivalued Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Checkbox, {
      id: "atMultivalued",
      isChecked: atMultivalued,
      title: "If attribute can have a multiple values",
      onChange: (checked, e) => {
        handleFieldChange(e);
      },
      isDisabled: atModalViewOnly
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      title: "If attribute is not modifiable by a client application"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Not Modifiable By A User"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Checkbox, {
      id: "atNoUserMod",
      isChecked: atNoUserMod,
      title: "If attribute is not modifiable by a client application",
      onChange: (checked, e) => {
        handleFieldChange(e);
      },
      isDisabled: atModalViewOnly
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      title: "An alias name for the attribute"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Alias Names"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.SelectVariant.typeaheadMulti,
      typeAheadAriaLabel: "Type an alias name",
      onToggle: onAliasNameToggle,
      onSelect: onAliasNameSelect,
      onClear: onAliasNameClear,
      selections: atAlias,
      isOpen: isAliasNameOpen,
      "aria-labelledby": "typeAhead-alias-name",
      placeholderText: "Type an alias name...",
      noResultsFoundText: "There are no matching entries",
      isCreatable: true,
      onCreateOption: onAliasNameCreateOption
    }, atAlias.map((alias, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.SelectOption, {
      key: index,
      value: alias
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      title: "An equality matching rule"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Equality Matching Rules"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.SelectVariant.typeahead,
      typeAheadAriaLabel: "Type a matching rule",
      onToggle: onEqualityMRToggle,
      onSelect: onEqualityMRSelect,
      onClear: onEqualityMRClear,
      selections: atEqMr,
      isOpen: isEqualityMROpen,
      "aria-labelledby": "typeAhead-equality-mr",
      placeholderText: "Type an Equality matching rule...",
      noResultsFoundText: "There are no matching entries"
    }, matchingrules.map((mr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.SelectOption, {
      key: index,
      value: mr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      title: "An order matching rule"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Order Matching Rule"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.SelectVariant.typeahead,
      typeAheadAriaLabel: "Type a matching rule",
      onToggle: onOrderMRToggle,
      onSelect: onOrderMRSelect,
      onClear: onOrderMRClear,
      selections: atOrder,
      isOpen: isOrderMROpen,
      "aria-labelledby": "typeAhead-order-mr",
      placeholderText: "Type an Ordering matching rule..",
      noResultsFoundText: "There are no matching entries"
    }, matchingrules.map((mr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.SelectOption, {
      key: index,
      value: mr
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      title: "A substring matching rule"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Substring Matching Rule"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Select, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.SelectVariant.typeahead,
      typeAheadAriaLabel: "Type a matching rule",
      onToggle: onSubstringMRToggle,
      onSelect: onSubstringMRSelect,
      onClear: onSubstringMRClear,
      selections: atSubMr,
      isOpen: isSubstringMROpen,
      placeholderText: "Type a Substring matching rule...",
      noResultsFoundText: "There are no matching entries"
    }, matchingrules.map((mr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.SelectOption, {
      key: index,
      value: mr
    }))))))));
  }

}

AttributeTypeModal.propTypes = {
  addHandler: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  editHandler: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  handleTypeaheadChange: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  handleFieldChange: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  attributes: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
  matchingrules: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
  syntaxes: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
  atName: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
  atDesc: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
  atOID: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
  atParent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
  atSyntax: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
  atUsage: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
  atMultivalued: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
  atNoUserMod: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
  atAlias: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
  atEqMr: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
  atOrder: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
  atSubMr: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
  atModalViewOnly: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
  attributeModalShow: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
  newAtEntry: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
  closeModal: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  loading: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool)
};
AttributeTypeModal.defaultProps = {
  attributes: [],
  matchingrules: [],
  syntaxes: [],
  atName: "",
  atDesc: "",
  atOID: "",
  atParent: "",
  atSyntax: "",
  atUsage: "userApplications",
  atMultivalued: false,
  atNoUserMod: false,
  atAlias: [],
  atEqMr: "",
  atOrder: "",
  atSubMr: "",
  atModalViewOnly: false,
  attributeModalShow: false,
  newAtEntry: true,
  loading: false
};


/***/ }),

/***/ "./src/lib/schema/schemaTables.jsx":
/*!*****************************************!*\
  !*** ./src/lib/schema/schemaTables.jsx ***!
  \*****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ObjectClassesTable": () => (/* binding */ ObjectClassesTable),
/* harmony export */   "AttributesTable": () => (/* binding */ AttributesTable),
/* harmony export */   "MatchingRulesTable": () => (/* binding */ MatchingRulesTable)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SearchInput/SearchInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Pagination/Pagination.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/sortable.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/collapsible.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/SortColumn.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Table.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableTypes.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Header.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Body.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_15__);
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }






class ObjectClassesTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      noRows: true,
      columns: [{
        title: 'Objectclass Name',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable],
        cellFormatters: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.expandable]
      }, {
        title: 'OID',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage,
        page: 1
      });
    };

    this.onSort = this.onSort.bind(this);
    this.onCollapse = this.onCollapse.bind(this);
    this.onSearchChange = this.onSearchChange.bind(this);
  }

  onSort(_event, index, direction) {
    var sorted_rows = [];
    var rows = [];
    var count = 0; // Convert the rows pairings into a sortable array based on the column indexes

    for (var idx = 0; idx < this.state.rows.length; idx += 2) {
      sorted_rows.push({
        expandedRow: this.state.rows[idx + 1],
        1: this.state.rows[idx].cells[0],
        2: this.state.rows[idx].cells[1],
        not_user_defined: this.state.rows[idx].disableActions
      });
    } // Sort the rows and build the new rows


    sorted_rows.sort((a, b) => a[index] > b[index] ? 1 : -1);

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc) {
      sorted_rows.reverse();
    }

    for (var _i = 0, _sorted_rows = sorted_rows; _i < _sorted_rows.length; _i++) {
      var srow = _sorted_rows[_i];
      rows.push({
        isOpen: false,
        cells: [srow[1], srow[2]],
        disableActions: srow.not_user_defined
      });
      srow.expandedRow.parent = count; // reset parent idx

      rows.push(srow.expandedRow);
      count += 2;
    }

    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: rows,
      page: 1
    });
  }

  getExpandedRow(row) {
    var kinds = ['STRUCTURAL', 'ABSTRACT', 'AUXILIARY'];
    var desc = row.desc ? row.desc[0] : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, "No description");
    var x_org = row.x_origin.join(" ");
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      className: "ds-left-indent-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, "Description:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, desc)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, "X-Origin:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, x_org)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, "Superior Objectclass:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, row.sup[0])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, "Kind:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, kinds[row.kind])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, "Requires Attributes:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, row.must.join(", "))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, "Allowed Attributes:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, row.may.join(", "))));
  }

  componentDidMount() {
    var rows = [];
    var columns = this.state.columns;
    var count = 0;
    var noRows = false;

    var _iterator = _createForOfIteratorHelper(this.props.rows),
        _step;

    try {
      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        var row = _step.value;
        var user_defined = false;

        if (row.x_origin.length > 0 && row.x_origin.indexOf("user defined") !== -1) {
          user_defined = true;
        }

        rows.push({
          isOpen: false,
          cells: [row.name[0], row.oid[0]],
          disableActions: !user_defined
        }, {
          parent: count,
          fullWidth: true,
          cells: [{
            title: this.getExpandedRow(row)
          }]
        });
        count += 2;
      }
    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }

    if (rows.length == 0) {
      noRows = true;
      rows = [{
        cells: ['No Objectclasses']
      }];
      columns = [{
        title: 'Objectclasses'
      }];
    }

    this.setState({
      rows: rows,
      columns: columns,
      noRows: noRows
    });
  }

  onCollapse(event, rowKey, isOpen) {
    var _this$state = this.state,
        rows = _this$state.rows,
        perPage = _this$state.perPage,
        page = _this$state.page;
    var index = perPage * (page - 1) * 2 + rowKey; // Adjust for page set

    rows[index].isOpen = isOpen;
    this.setState({
      rows
    });
  }

  onSearchChange(value, event) {
    var rows = [];
    var count = 0;

    var _iterator2 = _createForOfIteratorHelper(this.props.rows),
        _step2;

    try {
      for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
        var row = _step2.value;
        var user_defined = false;
        var val = value.toLowerCase(); // Check for matches of all the parts

        if (val != "" && row.name[0].toLowerCase().indexOf(val) == -1 && row.oid[0].toLowerCase().indexOf(val) == -1) {
          // Not a match
          continue;
        }

        if (row.x_origin.length > 0 && row.x_origin.indexOf("user defined") !== -1) {
          user_defined = true;
        }

        rows.push({
          isOpen: false,
          cells: [row.name[0], row.oid[0]],
          disableActions: !user_defined
        }, {
          parent: count,
          fullWidth: true,
          cells: [{
            title: this.getExpandedRow(row)
          }]
        });
        count += 2;
      }
    } catch (err) {
      _iterator2.e(err);
    } finally {
      _iterator2.f();
    }

    this.setState({
      rows: rows,
      value: value,
      page: 1
    });
  }

  actions() {
    return [{
      title: 'Edit Objectclass',
      onClick: (event, rowId, rowData, extra) => this.props.editModalHandler(rowData.cells[0])
    }, {
      title: 'Delete Objectclass',
      onClick: (event, rowId, rowData, extra) => this.props.deleteHandler(rowData.cells[0])
    }];
  }

  render() {
    var _this$state2 = this.state,
        perPage = _this$state2.perPage,
        page = _this$state2.page,
        sortBy = _this$state2.sortBy,
        rows = _this$state2.rows,
        noRows = _this$state2.noRows,
        columns = _this$state2.columns;
    var origRows = [...rows];
    var startIdx = (perPage * page - perPage) * 2;
    var tableRows = origRows.splice(startIdx, perPage * 2);

    for (var idx = 1, count = 0; idx < tableRows.length; idx += 2, count += 2) {
      // Rewrite parent index to match new spliced array
      tableRows[idx].parent = count;
    }

    var content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-center ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h3
    }, "Loading Objectclasses ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Spinner, {
      className: "ds-margin-top-lg",
      size: "xl"
    }));

    if (!this.props.loading) {
      content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
        span: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.SearchInput, {
        placeholder: "Search Objectclasses",
        value: this.state.value,
        onChange: this.onSearchChange,
        onClear: evt => this.onSearchChange('', evt)
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.Table, {
        className: "ds-margin-top",
        "aria-label": "oc table",
        cells: columns,
        rows: tableRows,
        variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__.TableVariant.compact,
        sortBy: sortBy,
        onSort: this.onSort,
        onCollapse: this.onCollapse,
        actions: noRows ? null : this.actions(),
        dropdownPosition: "right",
        dropdownDirection: "bottom"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_12__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_13__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Pagination, {
        itemCount: this.state.rows.length / 2,
        widgetId: "pagination-options-menu-bottom",
        perPage: perPage,
        page: page,
        variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.PaginationVariant.bottom,
        onSetPage: this.onSetPage,
        onPerPageSelect: this.onPerPageSelect
      }));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-lg"
    }, content);
  }

}

ObjectClassesTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().array),
  editModalHandler: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func),
  deleteHandler: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func)
};
ObjectClassesTable.defaultProps = {
  rows: []
};

class AttributesTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      noRows: true,
      columns: [{
        title: 'Attribute Name',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable],
        cellFormatters: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.expandable]
      }, {
        title: 'OID',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Syntax',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage,
        page: 1 // reset page back to 1

      });
    };

    this.onSort = this.onSort.bind(this);
    this.onCollapse = this.onCollapse.bind(this);
    this.onSearchChange = this.onSearchChange.bind(this);
  }

  onSort(_event, index, direction) {
    var sorted_rows = [];
    var rows = [];
    var count = 0; // Convert the rows pairings into a sortable array based on the column indexes

    for (var idx = 0; idx < this.state.rows.length; idx += 2) {
      sorted_rows.push({
        expandedRow: this.state.rows[idx + 1],
        1: this.state.rows[idx].cells[0],
        2: this.state.rows[idx].cells[1],
        3: this.state.rows[idx].cells[2],
        not_user_defined: this.state.rows[idx].disableActions
      });
    } // Sort the rows and build the new rows


    sorted_rows.sort((a, b) => a[index] > b[index] ? 1 : -1);

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc) {
      sorted_rows.reverse();
    }

    for (var _i2 = 0, _sorted_rows2 = sorted_rows; _i2 < _sorted_rows2.length; _i2++) {
      var srow = _sorted_rows2[_i2];
      rows.push({
        isOpen: false,
        cells: [srow[1], srow[2], srow[2]],
        disableActions: srow.not_user_defined
      });
      srow.expandedRow.parent = count; // reset parent idx

      rows.push(srow.expandedRow);
      count += 2;
    }

    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: rows,
      page: 1
    });
  }

  getExpandedRow(row) {
    var desc = row.desc ? row.desc[0] : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, "No description");
    var x_org = row.x_origin.join(", ");
    var usage = ["userApplications", "directoryOperation", "distributedOperation", "dSAOperation"];
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      className: "ds-left-indent-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, "Description:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, desc)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, "X-Origin:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, x_org)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, "Aliases:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, row.aliases ? row.aliases.join(", ") : "")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, "Parent Attribute:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, row.sup.join(", "))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, "Read Only:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, row.no_user_mod ? "Yes" : "No")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, "Multivalued:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, row.single_value ? "No" : "Yes")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, "Usage:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, usage[row.usage])), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, "Equality Matching Rules:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, row.equality ? row.equality.join(", ") : "")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, "Substring Matching Rules:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, row.substr ? row.substr.join(", ") : "")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, "Ordering Matching Rules:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, row.ordering ? row.ordering.join(", ") : "")));
  }

  componentDidMount() {
    var rows = [];
    var columns = this.state.columns;
    var count = 0;
    var noRows = false;

    var _iterator3 = _createForOfIteratorHelper(this.props.rows),
        _step3;

    try {
      for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
        var row = _step3.value;
        var user_defined = false;

        if (row.x_origin.length > 0 && row.x_origin.indexOf("user defined") !== -1) {
          user_defined = true;
        }

        rows.push({
          isOpen: false,
          cells: [row.name[0], row.oid[0], row.syntax[0]],
          disableActions: !user_defined
        }, {
          parent: count,
          fullWidth: true,
          cells: [{
            title: this.getExpandedRow(row)
          }]
        });
        count += 2;
      }
    } catch (err) {
      _iterator3.e(err);
    } finally {
      _iterator3.f();
    }

    if (rows.length == 0) {
      noRows = true;
      rows = [{
        cells: ['No Attributes']
      }];
      columns = [{
        title: 'Attributes'
      }];
    }

    this.setState({
      rows: rows,
      columns: columns,
      noRows: noRows
    });
  }

  onCollapse(event, rowKey, isOpen) {
    var _this$state3 = this.state,
        rows = _this$state3.rows,
        perPage = _this$state3.perPage,
        page = _this$state3.page;
    var index = perPage * (page - 1) * 2 + rowKey; // Adjust for page set

    rows[index].isOpen = isOpen;
    this.setState({
      rows
    });
  }

  onSearchChange(value, event) {
    var rows = [];
    var count = 0;

    var _iterator4 = _createForOfIteratorHelper(this.props.rows),
        _step4;

    try {
      for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
        var row = _step4.value;
        var user_defined = false;
        var val = value.toLowerCase(); // Check for matches of all the parts

        if (val != "" && row.name[0].toLowerCase().indexOf(val) == -1 && row.oid[0].toLowerCase().indexOf(val) == -1 && row.syntax[0].toLowerCase().indexOf(val) == -1) {
          // Not a match
          continue;
        }

        if (row.x_origin.length > 0 && row.x_origin.indexOf("user defined") !== -1) {
          user_defined = true;
        }

        rows.push({
          isOpen: false,
          cells: [row.name[0], row.oid[0], row.syntax[0]],
          disableActions: !user_defined
        }, {
          parent: count,
          fullWidth: true,
          cells: [{
            title: this.getExpandedRow(row)
          }]
        });
        count += 2;
      }
    } catch (err) {
      _iterator4.e(err);
    } finally {
      _iterator4.f();
    }

    this.setState({
      rows: rows,
      value: value,
      page: 1
    });
  }

  actions() {
    return [{
      title: 'Edit Attribute',
      onClick: (event, rowId, rowData, extra) => this.props.editModalHandler(rowData.cells[0])
    }, {
      title: 'Delete Attribute',
      onClick: (event, rowId, rowData, extra) => this.props.deleteHandler(rowData.cells[0])
    }];
  }

  render() {
    var _this$state4 = this.state,
        perPage = _this$state4.perPage,
        page = _this$state4.page,
        sortBy = _this$state4.sortBy,
        rows = _this$state4.rows,
        noRows = _this$state4.noRows,
        columns = _this$state4.columns;
    var origRows = [...rows];
    var startIdx = (perPage * page - perPage) * 2;
    var tableRows = origRows.splice(startIdx, perPage * 2);

    for (var idx = 1, count = 0; idx < tableRows.length; idx += 2, count += 2) {
      // Rewrite parent index to match new spliced array
      tableRows[idx].parent = count;
    }

    var content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-center ds-margin-top-xlg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h3
    }, "Loading Attributes ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Spinner, {
      className: "ds-margin-top-lg",
      size: "xl"
    }));

    if (!this.props.loading) {
      content = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
        span: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.SearchInput, {
        placeholder: "Search Attributes",
        value: this.state.value,
        onChange: this.onSearchChange,
        onClear: evt => this.onSearchChange('', evt)
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.Table, {
        className: "ds-margin-top",
        "aria-label": "attr table",
        cells: columns,
        rows: tableRows,
        variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__.TableVariant.compact,
        sortBy: sortBy,
        onSort: this.onSort,
        onCollapse: this.onCollapse,
        actions: noRows ? null : this.actions(),
        dropdownPosition: "right",
        dropdownDirection: "bottom"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_12__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_13__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Pagination, {
        itemCount: this.state.rows.length / 2,
        widgetId: "pagination-options-menu-bottom",
        perPage: perPage,
        page: page,
        variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.PaginationVariant.bottom,
        onSetPage: this.onSetPage,
        onPerPageSelect: this.onPerPageSelect
      }));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-lg"
    }, content);
  }

}

AttributesTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().array),
  editModalHandler: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func),
  deleteHandler: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().func),
  loading: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().bool)
};
AttributesTable.defaultProps = {
  rows: [],
  syntaxes: [],
  loading: false
};

class MatchingRulesTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      columns: [{
        title: 'Matching Rule',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable],
        cellFormatters: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.expandable]
      }, {
        title: 'OID',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Syntax',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage,
        page: 1 // reset page back to 1

      });
    };

    this.onSort = this.onSort.bind(this);
    this.onCollapse = this.onCollapse.bind(this);
    this.onSearchChange = this.onSearchChange.bind(this);
  }

  onSort(_event, index, direction) {
    var sorted_rows = [];
    var rows = [];
    var count = 0; // Convert the rows pairings into a sortable array based on the column indexes

    for (var idx = 0; idx < this.state.rows.length; idx += 2) {
      sorted_rows.push({
        expandedRow: this.state.rows[idx + 1],
        1: this.state.rows[idx].cells[0],
        2: this.state.rows[idx].cells[1],
        3: this.state.rows[idx].cells[2]
      });
    } // Sort the rows and build the new rows


    sorted_rows.sort((a, b) => a[index] > b[index] ? 1 : -1);

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc) {
      sorted_rows.reverse();
    }

    for (var _i3 = 0, _sorted_rows3 = sorted_rows; _i3 < _sorted_rows3.length; _i3++) {
      var srow = _sorted_rows3[_i3];
      rows.push({
        isOpen: false,
        cells: [srow[1], srow[2], srow[2]]
      });
      srow.expandedRow.parent = count; // reset parent idx

      rows.push(srow.expandedRow);
      count += 2;
    }

    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: rows,
      page: 1
    });
  }

  getExpandedRow(row) {
    var desc = "No description";

    if (row.desc) {
      desc = row.desc[0];
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      offset: 1,
      span: 10
    }, desc));
  }

  componentDidMount() {
    var rows = [];
    var columns = this.state.columns;
    var count = 0;

    var _iterator5 = _createForOfIteratorHelper(this.props.rows),
        _step5;

    try {
      for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
        var row = _step5.value;
        rows.push({
          isOpen: false,
          cells: [{
            title: row.name[0]
          }, row.oid[0], row.syntax[0]]
        }, {
          parent: count,
          fullWidth: true,
          cells: [{
            title: this.getExpandedRow(row)
          }]
        });
        count += 2;
      }
    } catch (err) {
      _iterator5.e(err);
    } finally {
      _iterator5.f();
    }

    if (rows.length == 0) {
      rows = [{
        cells: ['No Matching Rules']
      }];
      columns = [{
        title: 'Matching Rules'
      }];
    }

    this.setState({
      rows: rows,
      columns: columns
    });
  }

  onCollapse(event, rowKey, isOpen) {
    var _this$state5 = this.state,
        rows = _this$state5.rows,
        perPage = _this$state5.perPage,
        page = _this$state5.page;
    var index = perPage * (page - 1) * 2 + rowKey; // Adjust for page set

    rows[index].isOpen = isOpen;
    this.setState({
      rows
    });
  }

  onSearchChange(value, event) {
    var rows = [];
    var count = 0;

    var _iterator6 = _createForOfIteratorHelper(this.props.rows),
        _step6;

    try {
      for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
        var row = _step6.value;
        var val = value.toLowerCase();
        var name = ""; // Check for matches of all the parts

        if (row.names.length > 0) {
          name = row.name[0].toLowerCase();
        }

        if (val != "" && name.indexOf(val) == -1 && row.oid[0].indexOf(val) == -1 && row.syntax[0].indexOf(val) == -1) {
          // Not a match
          continue;
        }

        rows.push({
          isOpen: false,
          cells: [{
            title: name === "" ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("i", null, "<No Name>") : name
          }, row.oid[0], row.syntax[0]]
        }, {
          parent: count,
          fullWidth: true,
          cells: [{
            title: this.getExpandedRow(row)
          }]
        });
        count += 2;
      }
    } catch (err) {
      _iterator6.e(err);
    } finally {
      _iterator6.f();
    }

    this.setState({
      rows: rows,
      value: value,
      page: 1
    });
  }

  render() {
    var _this$state6 = this.state,
        perPage = _this$state6.perPage,
        page = _this$state6.page,
        sortBy = _this$state6.sortBy,
        rows = _this$state6.rows,
        columns = _this$state6.columns;
    var origRows = [...rows];
    var startIdx = (perPage * page - perPage) * 2;
    var tableRows = origRows.splice(startIdx, perPage * 2);

    for (var idx = 1, count = 0; idx < tableRows.length; idx += 2, count += 2) {
      // Rewrite parent index to match new spliced array
      tableRows[idx].parent = count;
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.SearchInput, {
      placeholder: "Search Matching Rules",
      value: this.state.value,
      onChange: this.onSearchChange,
      onClear: evt => this.onSearchChange('', evt)
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.Table, {
      className: "ds-margin-top",
      "aria-label": "attr table",
      cells: columns,
      rows: tableRows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_11__.TableVariant.compact,
      sortBy: sortBy,
      onSort: this.onSort,
      onCollapse: this.onCollapse
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_12__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_13__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Pagination, {
      itemCount: this.state.rows.length / 2,
      widgetId: "pagination-options-menu-bottom",
      perPage: perPage,
      page: page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}

MatchingRulesTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_15___default().array)
};
MatchingRulesTable.defaultProps = {
  rows: []
};


/***/ }),

/***/ "./src/lib/security/certificateManagement.jsx":
/*!****************************************************!*\
  !*** ./src/lib/security/certificateManagement.jsx ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CertificateManagement": () => (/* binding */ CertificateManagement),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../lib/notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _securityTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./securityTables.jsx */ "./src/lib/security/securityTables.jsx");
/* harmony import */ var _securityModals_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./securityModals.jsx */ "./src/lib/security/securityModals.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__);
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../lib/tools.jsx */ "./src/lib/tools.jsx");
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }









class CertificateManagement extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      activeTabKey: 0,
      ServerCerts: this.props.ServerCerts,
      CACerts: this.props.CACerts,
      tableKey: 0,
      showEditModal: false,
      showAddModal: false,
      modalSpinning: false,
      showConfirmDelete: false,
      certName: "",
      certFile: "",
      flags: "",
      _flags: "",
      errObj: {},
      isCACert: false,
      showConfirmCAChange: false,
      loading: false,
      modalChecked: false,
      disableSaveBtn: true
    };

    this.handleNavSelect = (event, tabIndex) => {
      this.setState({
        activeTabKey: tabIndex
      });
    };

    this.addCACert = this.addCACert.bind(this);
    this.handleChange = this.handleChange.bind(this);
    this.addCert = this.addCert.bind(this);
    this.showAddModal = this.showAddModal.bind(this);
    this.closeAddModal = this.closeAddModal.bind(this);
    this.showAddCAModal = this.showAddCAModal.bind(this);
    this.closeAddCAModal = this.closeAddCAModal.bind(this);
    this.showEditModal = this.showEditModal.bind(this);
    this.closeEditModal = this.closeEditModal.bind(this);
    this.showEditCAModal = this.showEditCAModal.bind(this);
    this.handleFlagChange = this.handleFlagChange.bind(this);
    this.editCert = this.editCert.bind(this);
    this.doEditCert = this.doEditCert.bind(this);
    this.closeConfirmCAChange = this.closeConfirmCAChange.bind(this);
    this.showDeleteConfirm = this.showDeleteConfirm.bind(this);
    this.delCert = this.delCert.bind(this);
    this.closeConfirmDelete = this.closeConfirmDelete.bind(this);
    this.reloadCerts = this.reloadCerts.bind(this);
    this.reloadCACerts = this.reloadCACerts.bind(this);
  }

  showAddModal() {
    this.setState({
      showAddModal: true,
      errObj: {
        certName: true,
        certFile: true
      }
    });
  }

  closeAddModal() {
    this.setState({
      showAddModal: false,
      certName: "",
      certFile: ""
    });
  }

  showAddCAModal() {
    this.setState({
      showAddCAModal: true,
      errObj: {
        certName: true,
        certFile: true
      }
    });
  }

  closeAddCAModal() {
    this.setState({
      showAddCAModal: false,
      certName: "",
      certFile: ""
    });
  }

  addCert() {
    if (this.state.certName == "") {
      this.props.addNotification("warning", "Missing certificate nickname");
      return;
    } else if (this.state.certFile == "") {
      this.props.addNotification("warning", "Missing certificate file name");
      return;
    }

    this.setState({
      modalSpinning: true,
      loading: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "certificate", "add", "--name=" + this.state.certName, "--file=" + this.state.certFile];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)("addCert", "Adding server cert", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(() => {
      this.reloadCACerts();
      this.setState({
        showAddModal: false,
        certFile: '',
        certName: '',
        modalSpinning: false
      });
      this.props.addNotification("success", "Successfully added certificate");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      var msg = errMsg.desc;

      if ('info' in errMsg) {
        msg = errMsg.desc + " - " + errMsg.info;
      }

      this.setState({
        modalSpinning: false,
        loading: false
      });
      this.props.addNotification("error", "Error adding certificate - ".concat(msg));
    });
  }

  addCACert() {
    if (this.state.certName == "") {
      this.props.addNotification("warning", "Missing certificate nickname");
      return;
    } else if (this.state.certFile == "") {
      this.props.addNotification("warning", "Missing certificate file name");
      return;
    }

    this.setState({
      modalSpinning: true,
      loading: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "ca-certificate", "add", "--name=" + this.state.certName, "--file=" + this.state.certFile];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)("addCACert", "Adding CA certificate", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(() => {
      this.reloadCACerts();
      this.setState({
        showAddCAModal: false,
        certFile: '',
        certName: '',
        modalSpinning: false
      });
      this.props.addNotification("success", "Successfully added certificate");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      var msg = errMsg.desc;

      if ('info' in errMsg) {
        msg = errMsg.desc + " - " + errMsg.info;
      }

      this.setState({
        modalSpinning: false,
        loading: false
      });
      this.props.addNotification("error", "Error adding certificate - ".concat(msg));
    });
  }

  showDeleteConfirm(nickname) {
    this.setState({
      showConfirmDelete: true,
      certName: nickname,
      modalSpinning: false,
      modalChecked: false
    });
  }

  delCert() {
    this.setState({
      modalSpinning: true,
      loading: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "certificate", "del", this.state.certName];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)("delCert", "Deleting certificate", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(() => {
      this.reloadCACerts();
      this.setState({
        certName: '',
        modalSpinning: false,
        showConfirmDelete: false
      });
      this.props.addNotification("success", "Successfully deleted certificate");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      var msg = errMsg.desc;

      if ('info' in errMsg) {
        msg = errMsg.desc + " - " + errMsg.info;
      }

      this.setState({
        certName: '',
        modalSpinning: false,
        loading: false
      });
      this.props.addNotification("error", "Error deleting certificate - ".concat(msg));
    });
  }

  showEditModal(name, flags) {
    this.setState({
      showEditModal: true,
      certName: name,
      flags: flags,
      isCACert: false
    });
  }

  closeEditModal() {
    this.setState({
      showEditModal: false,
      flags: ''
    });
  }

  showEditCAModal(nickname, flags) {
    this.setState({
      showEditModal: true,
      certName: nickname,
      flags: flags,
      _flags: flags,
      isCACert: true
    });
  }

  editCert() {
    // Check if CA cert flags were removed
    if (this.state.isCACert) {
      var SSLFlags = '';
      SSLFlags = this.state.flags.split(',', 1);

      if (!SSLFlags[0].includes('C') || !SSLFlags[0].includes('T')) {
        // This could remove the CA cert properties, better warn user
        this.setState({
          showConfirmCAChange: true,
          modalSpinning: false,
          modalChecked: false
        });
        return;
      }
    }

    this.doEditCert();
  }

  closeConfirmCAChange() {
    this.setState({
      showConfirmCAChange: false,
      modalSpinning: false,
      modalChecked: false
    });
  }

  doEditCert() {
    this.setState({
      modalSpinning: true,
      loading: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "certificate", "set-trust-flags", this.state.certName, "--flags=" + this.state.flags];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)("doEditCert", "Editing trust flags", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(() => {
      this.reloadCACerts();
      this.setState({
        showEditModal: false,
        flags: '',
        certName: '',
        modalSpinning: false
      });
      this.props.addNotification("success", "Successfully changed certificate's trust flags");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      var msg = errMsg.desc;

      if ('info' in errMsg) {
        msg = errMsg.desc + " - " + errMsg.info;
      }

      this.setState({
        showEditModal: false,
        flags: '',
        certName: '',
        modalSpinning: false,
        loading: false
      });
      this.props.addNotification("error", "Error setting trust flags - ".concat(msg));
    });
  }

  handleChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var valueErr = false;
    var errObj = this.state.errObj;

    if (value == "") {
      valueErr = true;
    }

    errObj[e.target.id] = valueErr;
    this.setState({
      [e.target.id]: value,
      errObj: errObj
    });
  }

  handleFlagChange(e) {
    var checked = e.target.checked;
    var id = e.target.id;
    var flags = this.state.flags;
    var SSLFlags = '';
    var EmailFlags = '';
    var OSFlags = '';
    var newFlags = "";
    var disableSaveBtn = true;

    var _flags$split = flags.split(',');

    var _flags$split2 = _slicedToArray(_flags$split, 3);

    SSLFlags = _flags$split2[0];
    EmailFlags = _flags$split2[1];
    OSFlags = _flags$split2[2];

    if (id.endsWith('SSL')) {
      for (var _i2 = 0, _arr2 = ['C', 'T', 'c', 'P', 'p']; _i2 < _arr2.length; _i2++) {
        var trustFlag = _arr2[_i2];

        if (id.startsWith(trustFlag)) {
          if (checked) {
            SSLFlags += trustFlag;
          } else {
            SSLFlags = SSLFlags.replace(trustFlag, '');
          }
        }
      }
    } else if (id.endsWith('Email')) {
      for (var _i3 = 0, _arr3 = ['C', 'T', 'c', 'P', 'p']; _i3 < _arr3.length; _i3++) {
        var _trustFlag = _arr3[_i3];

        if (id.startsWith(_trustFlag)) {
          if (checked) {
            EmailFlags += _trustFlag;
          } else {
            EmailFlags = EmailFlags.replace(_trustFlag, '');
          }
        }
      }
    } else {
      // Object Signing (OS)
      for (var _i4 = 0, _arr4 = ['C', 'T', 'c', 'P', 'p']; _i4 < _arr4.length; _i4++) {
        var _trustFlag2 = _arr4[_i4];

        if (id.startsWith(_trustFlag2)) {
          if (checked) {
            OSFlags += _trustFlag2;
          } else {
            OSFlags = OSFlags.replace(_trustFlag2, '');
          }
        }
      }
    }

    newFlags = SSLFlags + "," + EmailFlags + "," + OSFlags;

    if (newFlags != this.state._flags) {
      disableSaveBtn = false;
    }

    this.setState({
      flags: newFlags,
      disableSaveBtn: disableSaveBtn
    });
  }

  closeConfirmDelete() {
    this.setState({
      showConfirmDelete: false,
      modalSpinning: false,
      modalChecked: false
    });
  }

  reloadCerts() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "certificate", "list"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)("reloadCerts", "Load certificates", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var certs = JSON.parse(content);
      var key = this.state.tableKey + 1;
      var certNames = [];

      var _iterator = _createForOfIteratorHelper(certs),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var cert = _step.value;
          certNames.push(cert.attrs.nickname);
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      this.setState({
        ServerCerts: certs,
        loading: false,
        tableKey: key,
        showConfirmCAChange: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      var msg = errMsg.desc;

      if ('info' in errMsg) {
        msg = errMsg.desc + " - " + errMsg.info;
      }

      this.props.addNotification("error", "Error loading server certificates - ".concat(msg));
    });
  }

  reloadCACerts() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "ca-certificate", "list"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_5__.log_cmd)("reloadCACerts", "Load certificates", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var certs = JSON.parse(content);
      this.setState({
        CACerts: certs,
        loading: false
      }, this.reloadCerts);
    }).fail(err => {
      var errMsg = JSON.parse(err);
      var msg = errMsg.desc;

      if ('info' in errMsg) {
        msg = errMsg.desc + " - " + errMsg.info;
      }

      this.props.addNotification("error", "Error loading CA certificates - ".concat(msg));
    });
  }

  render() {
    var certificatePage = '';

    if (this.state.loading) {
      certificatePage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-loading-spinner ds-center ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h3
      }, "Loading Certificates ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Spinner, {
        size: "lg"
      }));
    } else {
      certificatePage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Tabs, {
        isBox: true,
        isSecondary: true,
        className: "ds-margin-top-xlg ds-left-indent",
        activeKey: this.state.activeTabKey,
        onSelect: this.handleNavSelect
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Tab, {
        eventKey: 0,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TabTitleText, null, "Trusted Certificate Authorites ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("font", {
          size: "2"
        }, "(", this.state.CACerts.length, ")"))
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-top-lg ds-left-indent"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_securityTables_jsx__WEBPACK_IMPORTED_MODULE_3__.CertTable, {
        certs: this.state.CACerts,
        key: this.state.tableKey,
        editCert: this.showEditCAModal,
        delCert: this.showDeleteConfirm
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Button, {
        variant: "primary",
        className: "ds-margin-top-med",
        onClick: () => {
          this.showAddCAModal();
        }
      }, "Add CA Certificate"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Tab, {
        eventKey: 1,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TabTitleText, null, "TLS Certificates ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("font", {
          size: "2"
        }, "(", this.state.ServerCerts.length, ")"))
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-top-lg ds-left-indent"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_securityTables_jsx__WEBPACK_IMPORTED_MODULE_3__.CertTable, {
        certs: this.state.ServerCerts,
        key: this.state.tableKey,
        editCert: this.showEditModal,
        delCert: this.showDeleteConfirm
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Button, {
        variant: "primary",
        className: "ds-margin-top-med",
        onClick: () => {
          this.showAddModal();
        }
      }, "Add Server Certificate"))));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, certificatePage, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_securityModals_jsx__WEBPACK_IMPORTED_MODULE_4__.EditCertModal, {
      showModal: this.state.showEditModal,
      closeHandler: this.closeEditModal,
      handleChange: this.handleFlagChange,
      saveHandler: this.editCert,
      flags: this.state.flags,
      disableSaveBtn: this.state.disableSaveBtn,
      spinning: this.state.modalSpinning
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_securityModals_jsx__WEBPACK_IMPORTED_MODULE_4__.SecurityAddCertModal, {
      showModal: this.state.showAddModal,
      closeHandler: this.closeAddModal,
      handleChange: this.handleChange,
      saveHandler: this.addCert,
      spinning: this.state.modalSpinning,
      error: this.state.errObj
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_securityModals_jsx__WEBPACK_IMPORTED_MODULE_4__.SecurityAddCACertModal, {
      showModal: this.state.showAddCAModal,
      closeHandler: this.closeAddCAModal,
      handleChange: this.handleChange,
      saveHandler: this.addCACert,
      spinning: this.state.modalSpinning,
      error: this.state.errObj
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmDelete,
      closeHandler: this.closeConfirmDelete,
      handleChange: this.handleChange,
      actionHandler: this.delCert,
      spinning: this.state.modalSpinning,
      item: this.state.certName,
      checked: this.state.modalChecked,
      mTitle: "Delete Certificate",
      mMsg: "Are you sure you want to delete this certificate?",
      mSpinningMsg: "Deleting Certificate ...",
      mBtnName: "Delete Certificate"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmCAChange,
      closeHandler: this.closeConfirmCAChange,
      handleChange: this.handleChange,
      actionHandler: this.doEditCert,
      spinning: this.state.modalSpinning,
      item: this.state.certName,
      checked: this.state.modalChecked,
      mTitle: "Warning - Altering CA Certificate Properties",
      mMsg: "Removing the 'C' or 'T' flags from the SSL trust catagory could break all TLS connectivity to and from the server, are you sure you want to proceed?",
      mSpinningMsg: "Editing CA Certificate ...",
      mBtnName: "Change Trust Flags"
    }));
  }

} // Props and defaults

CertificateManagement.propTypes = {
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
  CACerts: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
  ServerCerts: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)
};
CertificateManagement.defaultProps = {
  serverId: "",
  CACerts: [],
  ServerCerts: []
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CertificateManagement);

/***/ }),

/***/ "./src/lib/security/ciphers.jsx":
/*!**************************************!*\
  !*** ./src/lib/security/ciphers.jsx ***!
  \**************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Ciphers": () => (/* binding */ Ciphers),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleListItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SimpleList/SimpleList.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormHelperText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../lib/tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_18__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }






class Ciphers extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      allowCiphers: [],
      denyCiphers: [],
      cipherPref: "default",
      prefs: this.props.cipherPref,
      saving: false,
      availableCiphers: this.props.supportedCiphers,
      // Select Typeahead
      isAllowCipherOpen: false,
      isDenyCipherOpen: false,
      disableSaveBtn: true
    }; // Allow Ciphers

    this.onAllowCipherToggle = isAllowCipherOpen => {
      this.setState({
        isAllowCipherOpen
      });
    };

    this.onAllowCipherClear = () => {
      this.setState({
        allowCiphers: [],
        isAllowCipherOpen: false
      });
    };

    this.onDenyCipherToggle = isDenyCipherOpen => {
      this.setState({
        isDenyCipherOpen
      });
    };

    this.onDenyCipherClear = () => {
      this.setState({
        denyCiphers: [],
        isDenyCipherOpen: false
      });
    };

    this.handlePrefChange = this.handlePrefChange.bind(this);
    this.saveCipherPref = this.saveCipherPref.bind(this);
    this.handleAllowCipherChange = this.handleAllowCipherChange.bind(this);
    this.handleDenyCipherChange = this.handleDenyCipherChange.bind(this);
  }

  componentDidMount() {
    var cipherPref = "default";
    var allowedCiphers = [];
    var deniedCiphers = [];
    var availableCiphers = this.props.supportedCiphers.slice(0); // Copy array
    // Parse SSL cipher attributes (nsSSL3Ciphers)

    if (this.props.cipherPref != "") {
      var rawCiphers = this.props.cipherPref.split(","); // First check the first element as it has special meaning

      if (rawCiphers[0].toLowerCase() == "default") {
        rawCiphers.shift();
      } else if (rawCiphers[0].toLowerCase() == "+all") {
        cipherPref = "+all";
        rawCiphers.shift();
      } else if (rawCiphers[0].toLowerCase() == "-all") {
        cipherPref = "-all";
        rawCiphers.shift();
      } // Process the remaining ciphers


      rawCiphers = rawCiphers.map(function (x) {
        return x.toUpperCase();
      });

      var _iterator = _createForOfIteratorHelper(rawCiphers),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var cipher = _step.value;

          if (cipher.startsWith("+")) {
            allowedCiphers.push(cipher.substring(1));
          } else if (cipher.startsWith("-")) {
            deniedCiphers.push(cipher.substring(1));
          }
        } // Remove all enabled ciphers from the list of available ciphers

      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      var _iterator2 = _createForOfIteratorHelper(this.props.enabledCiphers),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var enabled_cipher = _step2.value;

          if (availableCiphers.includes(enabled_cipher)) {
            // Remove val from availableCiphers
            var index = availableCiphers.indexOf(enabled_cipher);

            if (index > -1) {
              availableCiphers.splice(index, 1);
            }
          }
        } // Remove allowed ciphers from the list of available ciphers

      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      var _iterator3 = _createForOfIteratorHelper(allowedCiphers),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var allow_cipher = _step3.value;

          if (availableCiphers.includes(allow_cipher)) {
            // Remove val from availableCiphers
            var _index = availableCiphers.indexOf(allow_cipher);

            if (_index > -1) {
              availableCiphers.splice(_index, 1);
            }
          }
        } // Remove denied ciphers from the list of available ciphers

      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }

      var _iterator4 = _createForOfIteratorHelper(deniedCiphers),
          _step4;

      try {
        for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
          var deny_cipher = _step4.value;

          if (availableCiphers.includes(deny_cipher)) {
            // Remove val from availableCiphers
            var _index2 = availableCiphers.indexOf(deny_cipher);

            if (_index2 > -1) {
              availableCiphers.splice(_index2, 1);
            }
          }
        }
      } catch (err) {
        _iterator4.e(err);
      } finally {
        _iterator4.f();
      }
    }

    this.setState({
      cipherPref: cipherPref,
      _cipherPref: cipherPref,
      allowCiphers: allowedCiphers,
      _allowCiphers: [...allowedCiphers],
      denyCiphers: deniedCiphers,
      _denyCiphers: [...deniedCiphers],
      availableCiphers: availableCiphers
    });
  }

  saveCipherPref() {
    /* start the spinner */
    this.setState({
      saving: true
    });
    var prefs = this.state.cipherPref;

    if (this.state.cipherPref !== "default") {
      var _iterator5 = _createForOfIteratorHelper(this.state.allowCiphers),
          _step5;

      try {
        for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
          var cipher = _step5.value;
          prefs += ",+" + cipher;
        }
      } catch (err) {
        _iterator5.e(err);
      } finally {
        _iterator5.f();
      }

      var _iterator6 = _createForOfIteratorHelper(this.state.denyCiphers),
          _step6;

      try {
        for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
          var _cipher = _step6.value;
          prefs += ",-" + _cipher;
        }
      } catch (err) {
        _iterator6.e(err);
      } finally {
        _iterator6.f();
      }
    }

    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "ciphers", "set", "--", prefs];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("saveCipherPref", "Saving cipher preferences", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_1___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(() => {
      this.props.addNotification("success", "Successfully set cipher preferences.");
      this.props.addNotification("warning", "You must restart the Directory Server for these changes to take effect.");
      this.setState({
        saving: false,
        disableSaveBtn: true
      });
      this.props.reload();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      var msg = errMsg.desc;

      if ('info' in errMsg) {
        msg = errMsg.desc + " - " + errMsg.info;
      }

      this.props.addNotification("error", "Error setting cipher preferences - ".concat(msg));
      this.setState({
        saving: false,
        disableSaveBtn: true
      });
    });
  }

  handlePrefChange(val) {
    var disableSaveBtn = true;

    if (JSON.stringify(this.state.allowCiphers) != JSON.stringify(this.state._allowCiphers) || JSON.stringify(this.state.denyCiphers) != JSON.stringify(this.state._denyCiphers)) {
      disableSaveBtn = false;
    }

    if (this.state._cipherPref != val) {
      disableSaveBtn = false;
    }

    this.setState({
      cipherPref: val,
      disableSaveBtn: disableSaveBtn
    });
  }

  handleAllowCipherChange(e, selection) {
    var disableSaveBtn = true;
    var availableCiphers = [...this.state.availableCiphers];

    if (this.state.cipherPref != this.state._cipherPref) {
      disableSaveBtn = false;
    }

    if (this.state.allowCiphers.includes(selection)) {
      // Removing cipher from list
      availableCiphers.push(selection);
      availableCiphers.sort(); // Buld a list of of waht the new cipher list will be, so we can
      // check if the value changed and the save button can be enabled/disabled

      var copy_new_ciphers = [...this.state.allowCiphers];
      var index = copy_new_ciphers.indexOf(selection);

      if (index > -1) {
        copy_new_ciphers.splice(index, 1);
      }

      if (JSON.stringify(this.state._allowCiphers) != JSON.stringify(copy_new_ciphers)) {
        disableSaveBtn = false;
      }

      this.setState(prevState => ({
        allowCiphers: prevState.allowCiphers.filter(item => item !== selection),
        isAllowCipherOpen: false,
        availableCiphers: availableCiphers,
        disableSaveBtn: disableSaveBtn
      }));
    } else {
      // Adding cipher, but first remove cipher from availableCiphers
      var _index3 = availableCiphers.indexOf(selection);

      if (_index3 > -1) {
        availableCiphers.splice(_index3, 1);
        availableCiphers.sort();
      }

      if (JSON.stringify(this.state._allowCiphers) != JSON.stringify([...this.state.allowCiphers, selection])) {
        disableSaveBtn = false;
      }

      this.setState(prevState => ({
        allowCiphers: [...prevState.allowCiphers, selection],
        isAllowCipherOpen: false,
        availableCiphers: availableCiphers,
        disableSaveBtn: disableSaveBtn
      }));
    }
  }

  handleDenyCipherChange(e, selection) {
    var disableSaveBtn = true;
    var availableCiphers = [...this.state.availableCiphers];

    if (this.state.cipherPref != this.state._cipherPref) {
      disableSaveBtn = false;
    }

    if (this.state.denyCiphers.includes(selection)) {
      // Removing cipher from list
      availableCiphers.push(selection);
      availableCiphers.sort(); // Buld a list of of waht the new cipher list will be, so we can
      // check if the value changed and the save button can be enabled/disabled

      var copy_new_ciphers = [...this.state.denyCiphers];
      var index = copy_new_ciphers.indexOf(selection);

      if (index > -1) {
        copy_new_ciphers.splice(index, 1);
      }

      if (JSON.stringify(this.state._denyCiphers) != JSON.stringify(copy_new_ciphers)) {
        disableSaveBtn = false;
      }

      this.setState(prevState => ({
        denyCiphers: prevState.denyCiphers.filter(item => item !== selection),
        isDenyCipherOpen: false,
        availableCiphers: availableCiphers,
        disableSaveBtn: disableSaveBtn
      }));
    } else {
      // Adding cipher, but first remove cipher from availableCiphers
      var _index4 = availableCiphers.indexOf(selection);

      if (_index4 > -1) {
        availableCiphers.splice(_index4, 1);
        availableCiphers.sort();
      }

      if (JSON.stringify(this.state._denyCiphers) != JSON.stringify([...this.state.denyCiphers, selection])) {
        disableSaveBtn = false;
      }

      this.setState(prevState => ({
        denyCiphers: [...prevState.denyCiphers, selection],
        isDenyCipherOpen: false,
        availableCiphers: availableCiphers,
        disableSaveBtn: disableSaveBtn
      }));
    }
  }

  render() {
    var supportedCiphers = [];
    var enabledCiphers = [];
    var cipherPage;
    var saveBtnName = "Save Settings";
    var extraPrimaryProps = {};

    if (this.state.saving) {
      saveBtnName = "Saving settings ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    var _iterator7 = _createForOfIteratorHelper(this.props.supportedCiphers),
        _step7;

    try {
      for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
        var cipher = _step7.value;

        if (!this.props.enabledCiphers.includes(cipher)) {
          // This cipher is not currently enabled, so list it as available
          supportedCiphers.push(cipher);
        }
      }
    } catch (err) {
      _iterator7.e(err);
    } finally {
      _iterator7.f();
    }

    var _iterator8 = _createForOfIteratorHelper(this.props.enabledCiphers),
        _step8;

    try {
      for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
        var _cipher2 = _step8.value;
        enabledCiphers.push(_cipher2);
      }
    } catch (err) {
      _iterator8.e(err);
    } finally {
      _iterator8.f();
    }

    var supportedList = supportedCiphers.map(name => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.SimpleListItem, {
      key: name
    }, name));

    if (supportedList.length == 0) {
      supportedList = "";
    }

    var enabledList = enabledCiphers.map(name => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.SimpleListItem, {
      key: name
    }, name));

    if (enabledList.length == 0) {
      enabledList = "";
    }

    if (this.state.saving) {
      cipherPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
        className: "ds-center ds-margin-top-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextVariants.h3
      }, "Saving Cipher Preferences ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Spinner, {
        size: "lg"
      }));
    } else {
      cipherPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
        className: "ds-indent"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Form, {
        className: "ds-margin-top-lg",
        isHorizontal: true
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        span: 5,
        title: "The current ciphers the server is accepting.  This list is only updated after a server restart."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextVariants.h3
      }, "Enabled Ciphers ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("font", {
        size: "2"
      }, "(", enabledList.length, ")"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
        className: "ds-box"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.SimpleList, {
        "aria-label": "enabled cipher list"
      }, enabledList))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        span: 2
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        span: 5,
        title: "The current ciphers the server supports"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextVariants.h3
      }, "Supported Ciphers ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("font", {
        size: "2"
      }, "(", supportedList.length, ")"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
        className: "ds-box"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.SimpleList, {
        "aria-label": "supported cipher list"
      }, supportedList)))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        className: "ds-label",
        span: 2
      }, "Cipher Suite"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        span: 10
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelect, {
        id: "cipherPref",
        value: this.state.cipherPref,
        onChange: this.handlePrefChange,
        "aria-label": "pref select"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.FormSelectOption, {
        key: "1",
        value: "default",
        label: "Default Ciphers"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.FormSelectOption, {
        key: "2",
        value: "+all",
        label: "All Ciphers"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.FormSelectOption, {
        key: "3",
        value: "-all",
        label: "No Ciphers"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.FormHelperText, {
        isHidden: this.state.cipherPref !== "default"
      }, "Default cipher suite is chosen. It enables the default ciphers advertised by NSS except weak ciphers.", this.state.allowCiphers.length !== 0 || this.state.denyCiphers.length !== 0 ? " Any data in the 'Allow Specific Ciphers' and 'Deny Specific Ciphers' fields will be cleaned after the restart." : ""))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        className: "ds-label",
        span: 2
      }, "Allow Specific Ciphers"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        span: 10
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Select, {
        variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectVariant.typeaheadMulti,
        typeAheadAriaLabel: "Type a cipher",
        isDisabled: this.state.cipherPref === "default",
        onToggle: this.onAllowCipherToggle,
        onSelect: this.handleAllowCipherChange,
        onClear: this.onAllowCipherClear,
        selections: this.state.allowCiphers,
        isOpen: this.state.isAllowCipherOpen,
        "aria-labelledby": "typeAhead-allow-cipher",
        placeholderText: "Type a cipher...",
        noResultsFoundText: "There are no matching entries",
        maxHeight: "200px"
      }, this.state.availableCiphers.map((cipher, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.SelectOption, {
        key: index,
        value: cipher
      }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        className: "ds-label",
        span: 2
      }, "Deny Specific Ciphers"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        span: 10
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Select, {
        variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectVariant.typeaheadMulti,
        typeAheadAriaLabel: "Type a cipher",
        isDisabled: this.state.cipherPref === "default",
        onToggle: this.onDenyCipherToggle,
        onSelect: this.handleDenyCipherChange,
        onClear: this.onDenyCipherClear,
        selections: this.state.denyCiphers,
        isOpen: this.state.isDenyCipherOpen,
        "aria-labelledby": "typeAhead-allow-deny",
        placeholderText: "Type a cipher...",
        noResultsFoundText: "There are no matching entries",
        maxHeight: "200px"
      }, this.state.availableCiphers.map((cipher, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.SelectOption, {
        key: index,
        value: cipher
      })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.Button, _extends({
        variant: "primary",
        className: "ds-margin-top-xlg",
        onClick: () => {
          this.saveCipherPref();
        },
        isDisabled: this.state.disableSaveBtn,
        isLoading: this.state.saving,
        spinnerAriaValueText: this.state.saving ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: this.state.saving ? "ds-disabled" : ""
    }, cipherPage);
  }

} // Props and defaults

Ciphers.propTypes = {
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().string),
  supportedCiphers: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().array),
  enabledCiphers: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().array),
  cipherPref: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().string),
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().func)
};
Ciphers.defaultProps = {
  serverId: "",
  supportedCiphers: [],
  enabledCiphers: [],
  cipherPref: ""
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Ciphers);

/***/ }),

/***/ "./src/lib/security/securityModals.jsx":
/*!*********************************************!*\
  !*** ./src/lib/security/securityModals.jsx ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SecurityAddCACertModal": () => (/* binding */ SecurityAddCACertModal),
/* harmony export */   "SecurityAddCertModal": () => (/* binding */ SecurityAddCertModal),
/* harmony export */   "SecurityEnableModal": () => (/* binding */ SecurityEnableModal),
/* harmony export */   "EditCertModal": () => (/* binding */ EditCertModal)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__);
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }




class SecurityAddCACertModal extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  render() {
    var _this$props = this.props,
        showModal = _this$props.showModal,
        closeHandler = _this$props.closeHandler,
        handleChange = _this$props.handleChange,
        saveHandler = _this$props.saveHandler,
        spinning = _this$props.spinning,
        error = _this$props.error;
    var saveBtnName = "Add Certificate";
    var extraPrimaryProps = {};

    if (spinning) {
      saveBtnName = "Adding Certificate ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.ModalVariant.medium,
      title: "Add Certificate Authority",
      "aria-labelledby": "ds-modal",
      isOpen: showModal,
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Button, _extends({
        key: "confirm",
        variant: "primary",
        onClick: saveHandler,
        isLoading: spinning,
        spinnerAriaValueText: spinning ? "Saving" : undefined
      }, extraPrimaryProps, {
        isDisabled: error.certFile || error.certName
      }), saveBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextVariants.h4
    }, "Add a CA Certificate to the security database.")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
      title: "Enter full path to and and including certificate file name"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Certificate File"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextInput, {
      type: "text",
      id: "certFile",
      "aria-describedby": "horizontal-form-name-helper",
      name: "certFile",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.certFile ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
      title: "Enter name/nickname of the certificate",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Certificate Nickname"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextInput, {
      type: "text",
      id: "certName",
      "aria-describedby": "horizontal-form-name-helper",
      name: "certName",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.certName ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.ValidatedOptions["default"]
    })))));
  }

}
class SecurityAddCertModal extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  render() {
    var _this$props2 = this.props,
        showModal = _this$props2.showModal,
        closeHandler = _this$props2.closeHandler,
        handleChange = _this$props2.handleChange,
        saveHandler = _this$props2.saveHandler,
        spinning = _this$props2.spinning,
        error = _this$props2.error;
    var saveBtnName = "Add Certificate";
    var extraPrimaryProps = {};

    if (spinning) {
      saveBtnName = "Adding Certificate ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.ModalVariant.medium,
      "aria-labelledby": "ds-modal",
      title: "Add Certificate",
      isOpen: showModal,
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Button, _extends({
        key: "confirm",
        variant: "primary",
        onClick: saveHandler,
        isLoading: spinning,
        spinnerAriaValueText: spinning ? "Saving" : undefined
      }, extraPrimaryProps, {
        isDisabled: error.certFile || error.certName
      }), saveBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextVariants.h4
    }, "Add A Certificate To The Security Database.")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
      title: "Enter full path to and and including certificate file name"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Certificate File"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextInput, {
      type: "text",
      id: "certFile",
      "aria-describedby": "horizontal-form-name-helper",
      name: "certFile",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.certFile ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.ValidatedOptions["default"]
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
      title: "Enter name/nickname of the certificate",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Certificate Nickname"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextInput, {
      type: "text",
      id: "certName",
      "aria-describedby": "horizontal-form-name-helper",
      name: "certName",
      onChange: (str, e) => {
        handleChange(e);
      },
      validated: error.certName ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.ValidatedOptions["default"]
    })))));
  }

}
class SecurityEnableModal extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  render() {
    var _this$props3 = this.props,
        showModal = _this$props3.showModal,
        closeHandler = _this$props3.closeHandler,
        handleChange = _this$props3.handleChange,
        saveHandler = _this$props3.saveHandler,
        primaryName = _this$props3.primaryName,
        certs = _this$props3.certs,
        spinning = _this$props3.spinning; // Build list of cert names for the select list

    var certNames = [];

    var _iterator = _createForOfIteratorHelper(certs),
        _step;

    try {
      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        var cert = _step.value;
        certNames.push(cert.attrs.nickname);
      }
    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }

    var saveBtnName = "Enable Security";
    var extraPrimaryProps = {};

    if (spinning) {
      saveBtnName = "Enabling Security ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.ModalVariant.small,
      "aria-labelledby": "ds-modal",
      title: "Enable Security",
      isOpen: showModal,
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Button, _extends({
        key: "confirm",
        variant: "primary",
        onClick: saveHandler,
        isLoading: spinning,
        spinnerAriaValueText: spinning ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextVariants.h4
    }, "You are choosing to enable security for the Directory Server which allows the server to accept incoming client TLS connections.  Please select which certificate the server should use.")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
      className: "ds-margin-top",
      title: "The server certificates the Directory Server can use"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      className: "ds-label",
      span: 4
    }, "Available Certificates"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      sm: 8
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormSelect, {
      value: primaryName,
      id: "certNameSelect",
      onChange: (str, e) => {
        handleChange(e);
      },
      "aria-label": "FormSelect Input"
    }, certNames.map(option => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.FormSelectOption, {
      key: option,
      value: option,
      label: option
    })))))));
  }

}
class EditCertModal extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  render() {
    var _this$props4 = this.props,
        showModal = _this$props4.showModal,
        closeHandler = _this$props4.closeHandler,
        handleChange = _this$props4.handleChange,
        saveHandler = _this$props4.saveHandler,
        flags = _this$props4.flags,
        spinning = _this$props4.spinning;
    var saveBtnName = "Save Flags";
    var extraPrimaryProps = {};

    if (spinning) {
      saveBtnName = "Saving flags ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    } // Process the cert flags


    var CSSLChecked = false;
    var CEmailChecked = false;
    var COSChecked = false;
    var TSSLChecked = false;
    var TEmailChecked = false;
    var TOSChecked = false;
    var cSSLChecked = false;
    var cEmailChecked = false;
    var cOSChecked = false;
    var PSSLChecked = false;
    var PEmailChecked = false;
    var POSChecked = false;
    var pSSLChecked = false;
    var pEmailChecked = false;
    var pOSChecked = false;
    var uSSLChecked = false;
    var uEmailChecked = false;
    var uOSChecked = false;
    var SSLFlags = '';
    var EmailFlags = '';
    var OSFlags = '';

    if (flags != "") {
      var _flags$split = flags.split(',');

      var _flags$split2 = _slicedToArray(_flags$split, 3);

      SSLFlags = _flags$split2[0];
      EmailFlags = _flags$split2[1];
      OSFlags = _flags$split2[2];

      if (SSLFlags.includes('T')) {
        TSSLChecked = true;
      }

      if (EmailFlags.includes('T')) {
        TEmailChecked = true;
      }

      if (OSFlags.includes('T')) {
        TOSChecked = true;
      }

      if (SSLFlags.includes('C')) {
        CSSLChecked = true;
      }

      if (EmailFlags.includes('C')) {
        CEmailChecked = true;
      }

      if (OSFlags.includes('C')) {
        COSChecked = true;
      }

      if (SSLFlags.includes('c')) {
        cSSLChecked = true;
      }

      if (EmailFlags.includes('c')) {
        cEmailChecked = true;
      }

      if (OSFlags.includes('c')) {
        cOSChecked = true;
      }

      if (SSLFlags.includes('P')) {
        PSSLChecked = true;
      }

      if (EmailFlags.includes('P')) {
        PEmailChecked = true;
      }

      if (OSFlags.includes('P')) {
        POSChecked = true;
      }

      if (SSLFlags.includes('p')) {
        pSSLChecked = true;
      }

      if (EmailFlags.includes('p')) {
        pEmailChecked = true;
      }

      if (OSFlags.includes('p')) {
        pOSChecked = true;
      }

      if (SSLFlags.includes('u')) {
        uSSLChecked = true;
      }

      if (EmailFlags.includes('u')) {
        uEmailChecked = true;
      }

      if (OSFlags.includes('u')) {
        uOSChecked = true;
      }
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.ModalVariant.medium,
      "aria-labelledby": "ds-modal",
      title: "Edit Certificate Trust Flags",
      isOpen: showModal,
      onClose: closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Button, _extends({
        key: "confirm",
        variant: "primary",
        onClick: saveHandler,
        isLoading: spinning,
        spinnerAriaValueText: spinning ? "Saving" : undefined
      }, extraPrimaryProps, {
        isDisabled: this.props.disableSaveBtn
      }), saveBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Button, {
        key: "cancel",
        variant: "link",
        onClick: closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 6
    }, "Flags"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 2
    }, "SSL"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 2
    }, "Email"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 2
    }, "Object Signing"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 6,
      title: "Trusted CA (flag 'C', also implies 'c' flag)"
    }, "(C) - Trusted CA"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "CflagSSL",
      isChecked: CSSLChecked,
      onChange: (checked, e) => {
        handleChange(e);
      }
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "CflagEmail",
      isChecked: CEmailChecked,
      onChange: (checked, e) => {
        handleChange(e);
      }
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "CflagOS",
      isChecked: COSChecked,
      onChange: (checked, e) => {
        handleChange(e);
      }
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 6,
      title: "Trusted CA for client authentication (flag 'T')"
    }, "(T) - Trusted CA Client Auth"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "TflagSSL",
      isChecked: TSSLChecked,
      onChange: (checked, e) => {
        handleChange(e);
      }
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "TflagEmail",
      isChecked: TEmailChecked,
      onChange: (checked, e) => {
        handleChange(e);
      }
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "TflagOS",
      isChecked: TOSChecked,
      onChange: (checked, e) => {
        handleChange(e);
      }
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 6,
      title: "Valid CA (flag 'c')"
    }, "(c) - Valid CA"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "cflagSSL",
      isChecked: cSSLChecked,
      onChange: (checked, e) => {
        handleChange(e);
      }
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "cflagEmail",
      isChecked: cEmailChecked,
      onChange: (checked, e) => {
        handleChange(e);
      }
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "cflagOS",
      isChecked: cOSChecked,
      onChange: (checked, e) => {
        handleChange(e);
      }
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 6,
      title: "Trusted Peer (flag 'P', implies flag 'p')"
    }, "(P) - Trusted Peer"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "PflagSSL",
      isChecked: PSSLChecked,
      onChange: (checked, e) => {
        handleChange(e);
      }
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "PflagEmail",
      isChecked: PEmailChecked,
      onChange: (checked, e) => {
        handleChange(e);
      }
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "PflagOS",
      isChecked: POSChecked,
      onChange: (checked, e) => {
        handleChange(e);
      }
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 6,
      title: "Valid Peer (flag 'p')"
    }, "(p) - Valid Peer"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "pflagSSL",
      isChecked: pSSLChecked,
      onChange: (checked, e) => {
        handleChange(e);
      }
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "pflagEmail",
      isChecked: pEmailChecked,
      onChange: (checked, e) => {
        handleChange(e);
      }
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "pflagOS",
      isChecked: pOSChecked,
      onChange: (checked, e) => {
        handleChange(e);
      }
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 6,
      title: "A private key is associated with the certificate. This is a dynamic flag and you cannot adjust it."
    }, "(u) - Private Key"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "uflagSSL",
      isChecked: uSSLChecked,
      disabled: true
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "uflagEmail",
      isChecked: uEmailChecked,
      disabled: true
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 2
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "uflagOS",
      isChecked: uOSChecked,
      disabled: true
    }))));
  }

}
SecurityEnableModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  saveHandler: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  primaryName: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
  certs: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array),
  spinning: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool)
};
SecurityEnableModal.defaultProps = {
  showModal: false,
  primaryName: "",
  certs: [],
  spinning: false
};
EditCertModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  saveHandler: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  flags: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().string),
  spinning: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool)
};
EditCertModal.defaultProps = {
  showModal: false,
  flags: "",
  spinning: false
};
SecurityAddCertModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  saveHandler: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  spinning: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
  error: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object)
};
SecurityAddCertModal.defaultProps = {
  showModal: false,
  spinning: false,
  error: {}
};
SecurityAddCACertModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  saveHandler: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func),
  spinning: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
  error: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object)
};
SecurityAddCACertModal.defaultProps = {
  showModal: false,
  spinning: false,
  error: {}
};

/***/ }),

/***/ "./src/lib/security/securityTables.jsx":
/*!*********************************************!*\
  !*** ./src/lib/security/securityTables.jsx ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CertTable": () => (/* binding */ CertTable),
/* harmony export */   "CRLTable": () => (/* binding */ CRLTable)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SearchInput/SearchInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Pagination/Pagination.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/sortable.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/collapsible.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/SortColumn.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Table.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableTypes.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Header.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Body.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__);
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }






class CertTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      dropdownIsOpen: false,
      columns: [{
        title: 'Nickname',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable],
        cellFormatters: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.expandable]
      }, {
        title: 'Subject DN',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Expiration Date',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage,
        page: 1
      });
    };

    this.onSort = this.onSort.bind(this);
    this.onCollapse = this.onCollapse.bind(this);
    this.onSearchChange = this.onSearchChange.bind(this);
  }

  onSort(_event, index, direction) {
    var sorted_rows = [];
    var rows = [];
    var count = 0; // Convert the rows pairings into a sortable array based on the column indexes

    for (var idx = 0; idx < this.state.rows.length; idx += 2) {
      sorted_rows.push({
        expandedRow: this.state.rows[idx + 1],
        1: this.state.rows[idx].cells[0],
        2: this.state.rows[idx].cells[1],
        3: this.state.rows[idx].cells[2],
        issuer: this.state.rows[idx].issuer,
        flags: this.state.rows[idx].flags
      });
    } // Sort the rows and build the new rows


    sorted_rows.sort((a, b) => a[index] > b[index] ? 1 : -1);

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc) {
      sorted_rows.reverse();
    }

    for (var _i = 0, _sorted_rows = sorted_rows; _i < _sorted_rows.length; _i++) {
      var srow = _sorted_rows[_i];
      rows.push({
        isOpen: false,
        cells: [srow[1], srow[2], srow[3]],
        issuer: srow.issuer,
        flags: srow.flags
      });
      srow.expandedRow.parent = count; // reset parent idx

      rows.push(srow.expandedRow);
      count += 2;
    }

    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: rows,
      page: 1
    });
  }

  getExpandedRow(issuer, flags) {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      className: "ds-left-indent-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, "Issuer DN:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, issuer)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, "Trust Flags:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, flags)));
  }

  componentDidMount() {
    var rows = [];
    var columns = this.state.columns;
    var count = 0;

    var _iterator = _createForOfIteratorHelper(this.props.certs),
        _step;

    try {
      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        var cert = _step.value;
        rows.push({
          isOpen: false,
          cells: [cert.attrs.nickname, cert.attrs.subject, cert.attrs.expires],
          issuer: cert.attrs.issuer,
          flags: cert.attrs.flags
        }, {
          parent: count,
          fullWidth: true,
          cells: [{
            title: this.getExpandedRow(cert.attrs.issuer, cert.attrs.flags)
          }]
        });
        count += 2;
      }
    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }

    if (rows.length == 0) {
      rows = [{
        cells: ['No Certificates']
      }];
      columns = [{
        title: 'Certificates'
      }];
    }

    this.setState({
      rows: rows,
      columns: columns
    });
  }

  onCollapse(event, rowKey, isOpen) {
    var _this$state = this.state,
        rows = _this$state.rows,
        perPage = _this$state.perPage,
        page = _this$state.page;
    var index = perPage * (page - 1) * 2 + rowKey; // Adjust for page set

    rows[index].isOpen = isOpen;
    this.setState({
      rows
    });
  }

  onSearchChange(value, event) {
    var rows = [];
    var count = 0;

    var _iterator2 = _createForOfIteratorHelper(this.props.certs),
        _step2;

    try {
      for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
        var cert = _step2.value;
        var val = value.toLowerCase(); // Check for matches of all the parts

        if (val != "" && cert.attrs.nickname.toLowerCase().indexOf(val) == -1 && cert.attrs.subject.toLowerCase().indexOf(val) == -1 && cert.attrs.issuer.toLowerCase().indexOf(val) == -1 && cert.attrs.expires.toLowerCase().indexOf(val) == -1) {
          // Not a match
          continue;
        }

        rows.push({
          isOpen: false,
          cells: [cert.attrs.nickname, cert.attrs.subject, cert.attrs.expires],
          issuer: cert.attrs.issuer,
          flags: cert.attrs.flags
        }, {
          parent: count,
          fullWidth: true,
          cells: [{
            title: this.getExpandedRow(cert.attrs.issuer, cert.attrs.flags)
          }]
        });
        count += 2;
      }
    } catch (err) {
      _iterator2.e(err);
    } finally {
      _iterator2.f();
    }

    this.setState({
      rows: rows,
      value: value,
      page: 1
    });
  }

  actions() {
    return [{
      title: 'Edit Trust Flags',
      onClick: (event, rowId, rowData, extra) => this.props.editCert(rowData.cells[0], rowData.flags)
    }, {
      title: 'Delete Certificate',
      onClick: (event, rowId, rowData, extra) => this.props.delCert(rowData.cells[0])
    }];
  }

  render() {
    var _this$state2 = this.state,
        perPage = _this$state2.perPage,
        page = _this$state2.page,
        sortBy = _this$state2.sortBy,
        rows = _this$state2.rows,
        columns = _this$state2.columns;
    var origRows = [...rows];
    var startIdx = (perPage * page - perPage) * 2;
    var tableRows = origRows.splice(startIdx, perPage * 2);

    for (var idx = 1, count = 0; idx < tableRows.length; idx += 2, count += 2) {
      // Rewrite parent index to match new spliced array
      tableRows[idx].parent = count;
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.SearchInput, {
      placeholder: "Search Certificates",
      value: this.state.value,
      onChange: this.onSearchChange,
      onClear: evt => this.onSearchChange('', evt)
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.Table, {
      className: "ds-margin-top",
      "aria-label": "cert table",
      cells: columns,
      key: tableRows,
      rows: tableRows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.TableVariant.compact,
      sortBy: sortBy,
      onSort: this.onSort,
      onCollapse: this.onCollapse,
      actions: tableRows.length > 0 ? this.actions() : null,
      dropdownPosition: "right",
      dropdownDirection: "bottom"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Pagination, {
      itemCount: this.state.rows.length / 2,
      widgetId: "pagination-options-menu-bottom",
      perPage: perPage,
      page: page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

} // Future - https://github.com/389ds/389-ds-base/issues/3548


class CRLTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      dropdownIsOpen: false,
      columns: [{
        title: 'Issued By',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Effective Date',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Next Update',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Type',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage
      });
    };

    this.onSort = this.onSort.bind(this);
    this.onSearchChange = this.onSearchChange.bind(this);
  }

  onSort(_event, index, direction) {
    var sorted_rows = [];
    var rows = [];
    var count = 0; // Convert the rows pairings into a sortable array based on the column indexes

    for (var idx = 0; idx < this.state.rows.length; idx += 2) {
      sorted_rows.push({
        1: this.state.rows[idx].cells[0],
        2: this.state.rows[idx].cells[1],
        3: this.state.rows[idx].cells[2],
        issuer: this.state.rows[idx].issuer,
        flags: this.state.rows[idx].flags
      });
    } // Sort the rows and build the new rows


    sorted_rows.sort((a, b) => a[index] > b[index] ? 1 : -1);

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc) {
      sorted_rows.reverse();
    }

    for (var _i2 = 0, _sorted_rows2 = sorted_rows; _i2 < _sorted_rows2.length; _i2++) {
      var srow = _sorted_rows2[_i2];
      rows.push({
        isOpen: false,
        cells: [srow[1], srow[2], srow[3]],
        issuer: srow.issuer,
        flags: srow.flags
      });
      srow.expandedRow.parent = count; // reset parent idx

      rows.push(srow.expandedRow);
      count += 2;
    }

    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: rows,
      page: 1
    });
  }

  onSearchChange(value, event) {
    var rows = [];
    var count = 0;

    var _iterator3 = _createForOfIteratorHelper(this.props.certs),
        _step3;

    try {
      for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
        var cert = _step3.value;
        var val = value.toLowerCase(); // Check for matches of all the parts

        if (val != "" && cert.attrs.nickname.toLowerCase().indexOf(val) == -1 && cert.attrs.subject.toLowerCase().indexOf(val) == -1 && cert.attrs.issuer.toLowerCase().indexOf(val) == -1 && cert.attrs.expires.toLowerCase().indexOf(val) == -1) {
          // Not a match
          continue;
        }

        rows.push({
          isOpen: false,
          cells: [cert.attrs.nickname, cert.attrs.subject, cert.attrs.expires],
          issuer: cert.attrs.issuer,
          flags: cert.attrs.flags
        }, {
          parent: count,
          fullWidth: true,
          cells: [{
            title: this.getExpandedRow(cert.attrs.issuer, cert.attrs.flags)
          }]
        });
        count += 2;
      }
    } catch (err) {
      _iterator3.e(err);
    } finally {
      _iterator3.f();
    }

    this.setState({
      rows: rows,
      value: value,
      page: 1
    });
  }

  actions() {
    return [{
      title: 'View CRL',
      onClick: (event, rowId, rowData, extra) => this.props.editConfig(rowData.cells[0], rowData.cells[1], rowData.credsBindpw, rowData.pwInteractive)
    }, {
      title: 'Delete CRL',
      onClick: (event, rowId, rowData, extra) => this.props.deleteConfig(rowData.cells[0])
    }];
  }

  render() {
    var has_rows = false; // TODO

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.SearchInput, {
      placeholder: "Search CRL's",
      value: this.state.value,
      onChange: this.onSearchChange,
      onClear: evt => this.onSearchChange('', evt)
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.Table, {
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.TableVariant.compact,
      "aria-label": "Cred Table",
      sortBy: this.sortBy,
      onSort: this.onSort,
      cells: this.state.columns,
      rows: this.state.rows,
      actions: has_rows ? this.actions() : null,
      dropdownPosition: "right",
      dropdownDirection: "bottom"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Pagination, {
      itemCount: this.state.rows.length,
      widgetId: "pagination-options-menu-bottom",
      perPage: this.state.perPage,
      page: this.state.page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

} // Props and defaults


CertTable.propTypes = {
  // serverId: PropTypes.string,
  certs: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().array),
  editCert: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),
  delCert: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func)
};
CertTable.defaultProps = {
  // serverId: "",
  certs: []
};


/***/ }),

/***/ "./src/lib/server/accessLog.jsx":
/*!**************************************!*\
  !*** ./src/lib/server/accessLog.jsx ***!
  \**************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ServerAccessLog": () => (/* binding */ ServerAccessLog)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormGroup.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/ExpandableSection/ExpandableSection.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/NumberInput/NumberInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TimePicker/TimePicker.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Table.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableTypes.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Header.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Body.js");
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
/* harmony import */ var _fortawesome_fontawesome_svg_core_styles_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core/styles.css */ "./node_modules/@fortawesome/fontawesome-svg-core/styles.css");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_28__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }










var settings_attrs = ['nsslapd-accesslog', 'nsslapd-accesslog-level', 'nsslapd-accesslog-logbuffering', 'nsslapd-accesslog-logging-enabled'];
var rotation_attrs = ['nsslapd-accesslog-logrotationsync-enabled', 'nsslapd-accesslog-logrotationsynchour', 'nsslapd-accesslog-logrotationsyncmin', 'nsslapd-accesslog-logrotationtime', 'nsslapd-accesslog-logrotationtimeunit', 'nsslapd-accesslog-maxlogsize', 'nsslapd-accesslog-maxlogsperdir'];
var rotation_attrs_no_time = ['nsslapd-accesslog-logrotationsync-enabled', 'nsslapd-accesslog-logrotationtime', 'nsslapd-accesslog-logrotationtimeunit', 'nsslapd-accesslog-maxlogsize', 'nsslapd-accesslog-maxlogsperdir'];
var exp_attrs = ['nsslapd-accesslog-logexpirationtime', 'nsslapd-accesslog-logexpirationtimeunit', 'nsslapd-accesslog-logmaxdiskspace', 'nsslapd-accesslog-logminfreediskspace'];
class ServerAccessLog extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      loading: true,
      loaded: false,
      activeTabKey: 0,
      saveSettingsDisabled: true,
      saveRotationDisabled: true,
      saveExpDisabled: true,
      attrs: this.props.attrs,
      canSelectAll: false,
      isExpanded: false,
      rows: [{
        cells: ['Default Logging'],
        level: 256,
        selected: true
      }, {
        cells: ['Internal Operations'],
        level: 4,
        selected: false
      }, {
        cells: ['Entry Access and Referrals'],
        level: 512,
        selected: false
      }],
      columns: [{
        title: 'Logging Level'
      }]
    }; // Toggle currently active tab

    this.handleNavSelect = (event, tabIndex) => {
      this.setState({
        activeTabKey: tabIndex
      });
    };

    this.onToggle = isExpanded => {
      this.setState({
        isExpanded
      });
    };

    this.handleChange = this.handleChange.bind(this);
    this.handleTimeChange = this.handleTimeChange.bind(this);
    this.loadConfig = this.loadConfig.bind(this);
    this.refreshConfig = this.refreshConfig.bind(this);
    this.saveConfig = this.saveConfig.bind(this);
    this.onSelect = this.onSelect.bind(this);

    this.onMinusConfig = (id, nav_tab) => {
      this.setState({
        [id]: Number(this.state[id]) - 1
      }, () => {
        this.validateSaveBtn(nav_tab, id, Number(this.state[id]));
      });
    };

    this.onConfigChange = (event, id, min, max, nav_tab) => {
      var maxValue = this.maxValue;

      if (max !== 0) {
        maxValue = max;
      }

      var newValue = isNaN(event.target.value) ? min : Number(event.target.value);
      newValue = newValue > maxValue ? maxValue : newValue < min ? min : newValue;
      this.setState({
        [id]: newValue
      }, () => {
        this.validateSaveBtn(nav_tab, id, newValue);
      });
    };

    this.onPlusConfig = (id, nav_tab) => {
      this.setState({
        [id]: Number(this.state[id]) + 1
      }, () => {
        this.validateSaveBtn(nav_tab, id, Number(this.state[id]));
      });
    };

    this.validateSaveBtn = this.validateSaveBtn.bind(this);
  }

  componentDidMount() {
    // Loading config
    if (!this.state.loaded) {
      this.loadConfig();
    } else {
      this.props.enableTree();
    }
  }

  validateSaveBtn(nav_tab, attr, value) {
    var disableSaveBtn = true;
    var disableBtnName = "";
    var config_attrs = [];

    if (nav_tab == "settings") {
      config_attrs = settings_attrs;
      disableBtnName = "saveSettingsDisabled"; // Handle the table contents check now

      var _iterator = _createForOfIteratorHelper(this.state.rows),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var row = _step.value;

          var _iterator2 = _createForOfIteratorHelper(this.state._rows),
              _step2;

          try {
            for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
              var orig_row = _step2.value;

              if (orig_row.cells[0] == row.cells[0]) {
                if (orig_row.selected != row.selected) {
                  disableSaveBtn = false;
                  break;
                }
              }
            }
          } catch (err) {
            _iterator2.e(err);
          } finally {
            _iterator2.f();
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }
    } else if (nav_tab == "rotation") {
      disableBtnName = "saveRotationDisabled";
      config_attrs = rotation_attrs;
    } else {
      config_attrs = exp_attrs;
      disableBtnName = "saveExpDisabled";
    } // Check if a setting was changed, if so enable the save button


    var _iterator3 = _createForOfIteratorHelper(config_attrs),
        _step3;

    try {
      for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
        var config_attr = _step3.value;

        if (attr == config_attr && this.state['_' + config_attr] != value) {
          disableSaveBtn = false;
          break;
        }
      } // Now check for differences in values that we did not touch

    } catch (err) {
      _iterator3.e(err);
    } finally {
      _iterator3.f();
    }

    var _iterator4 = _createForOfIteratorHelper(config_attrs),
        _step4;

    try {
      for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
        var _config_attr = _step4.value;

        if (attr != _config_attr && this.state['_' + _config_attr] != this.state[_config_attr]) {
          disableSaveBtn = false;
          break;
        }
      }
    } catch (err) {
      _iterator4.e(err);
    } finally {
      _iterator4.f();
    }

    this.setState({
      [disableBtnName]: disableSaveBtn
    });
  }

  handleChange(e, nav_tab) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    this.setState({
      [attr]: value
    }, () => {
      this.validateSaveBtn(nav_tab, attr, value);
    });
  }

  handleTimeChange(time_str) {
    var disableSaveBtn = true;
    var time_parts = time_str.split(":");
    var hour = time_parts[0];
    var min = time_parts[1];

    if (hour.length == 2 && hour[0] == "0") {
      hour = hour[1];
    }

    if (min.length == 2 && min[0] == "0") {
      min = min[1];
    } // Start doing the Save button checking


    var _iterator5 = _createForOfIteratorHelper(rotation_attrs_no_time),
        _step5;

    try {
      for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
        var config_attr = _step5.value;

        if (this.state[config_attr] != this.state['_' + config_attr]) {
          disableSaveBtn = false;
          break;
        }
      }
    } catch (err) {
      _iterator5.e(err);
    } finally {
      _iterator5.f();
    }

    if (hour != this.state['_nsslapd-accesslog-logrotationsynchour'] || min != this.state['_nsslapd-accesslog-logrotationsyncmin']) {
      disableSaveBtn = false;
    }

    this.setState({
      'nsslapd-accesslog-logrotationsynchour': hour,
      'nsslapd-accesslog-logrotationsyncmin': min,
      saveRotationDisabled: disableSaveBtn
    });
  }

  saveConfig(nav_tab) {
    var new_level = 0;
    this.setState({
      loading: true
    });
    var config_attrs = [];

    if (nav_tab == "settings") {
      config_attrs = settings_attrs;
    } else if (nav_tab == "rotation") {
      config_attrs = rotation_attrs;
    } else {
      config_attrs = exp_attrs;
    }

    var cmd = ['dsconf', '-j', "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", 'config', 'replace'];

    var _iterator6 = _createForOfIteratorHelper(config_attrs),
        _step6;

    try {
      for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
        var attr = _step6.value;

        if (this.state['_' + attr] != this.state[attr]) {
          var val = this.state[attr];

          if (typeof val === "boolean") {
            if (val) {
              val = "on";
            } else {
              val = "off";
            }
          }

          cmd.push(attr + "=" + val);
        }
      }
    } catch (err) {
      _iterator6.e(err);
    } finally {
      _iterator6.f();
    }

    var _iterator7 = _createForOfIteratorHelper(this.state.rows),
        _step7;

    try {
      for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
        var row = _step7.value;

        if (row.selected) {
          new_level += row.level;
        }
      }
    } catch (err) {
      _iterator7.e(err);
    } finally {
      _iterator7.f();
    }

    if (new_level.toString() != this.state['_nsslapd-accesslog-level']) {
      if (new_level == 0) {
        new_level = 256; // default
      }

      cmd.push("nsslapd-accesslog-level" + "=" + new_level.toString());
    }

    if (cmd.length == 5) {
      // Nothing to save, just return
      return;
    }

    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("saveConfig", "Saving access log settings", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.refreshConfig();
      this.props.addNotification("success", "Successfully updated Access Log settings");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.refreshConfig();
      this.props.addNotification("error", "Error saving Access Log settings - ".concat(errMsg.desc));
    });
  }

  refreshConfig(refesh) {
    this.setState({
      loading: true,
      loaded: false
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get"];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("refreshConfig", "load Access Log configuration", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var attrs = config.attrs;
      var enabled = false;
      var buffering = false;
      var level_val = parseInt(attrs['nsslapd-accesslog-level'][0]);
      var rows = [...this.state.rows];

      if (attrs['nsslapd-accesslog-logging-enabled'][0] == "on") {
        enabled = true;
      }

      if (attrs['nsslapd-accesslog-logbuffering'][0] == "on") {
        buffering = true;
      }

      for (var row in rows) {
        if (rows[row].level & level_val) {
          rows[row].selected = true;
        } else {
          rows[row].selected = false;
        }
      }

      this.setState({
        loading: false,
        loaded: true,
        saveSettingsDisabled: true,
        saveRotationDisabled: true,
        saveExpDisabled: true,
        'nsslapd-accesslog': attrs['nsslapd-accesslog'][0],
        'nsslapd-accesslog-level': attrs['nsslapd-accesslog-level'][0],
        'nsslapd-accesslog-logbuffering': buffering,
        'nsslapd-accesslog-logexpirationtime': attrs['nsslapd-accesslog-logexpirationtime'][0],
        'nsslapd-accesslog-logexpirationtimeunit': attrs['nsslapd-accesslog-logexpirationtimeunit'][0],
        'nsslapd-accesslog-logging-enabled': enabled,
        'nsslapd-accesslog-logmaxdiskspace': attrs['nsslapd-accesslog-logmaxdiskspace'][0],
        'nsslapd-accesslog-logminfreediskspace': attrs['nsslapd-accesslog-logminfreediskspace'][0],
        'nsslapd-accesslog-logrotationsync-enabled': attrs['nsslapd-accesslog-logrotationsync-enabled'][0],
        'nsslapd-accesslog-logrotationsynchour': attrs['nsslapd-accesslog-logrotationsynchour'][0],
        'nsslapd-accesslog-logrotationsyncmin': attrs['nsslapd-accesslog-logrotationsyncmin'][0],
        'nsslapd-accesslog-logrotationtime': attrs['nsslapd-accesslog-logrotationtime'][0],
        'nsslapd-accesslog-logrotationtimeunit': attrs['nsslapd-accesslog-logrotationtimeunit'][0],
        'nsslapd-accesslog-maxlogsize': attrs['nsslapd-accesslog-maxlogsize'][0],
        'nsslapd-accesslog-maxlogsperdir': attrs['nsslapd-accesslog-maxlogsperdir'][0],
        rows: rows,
        // Record original values
        _rows: JSON.parse(JSON.stringify(rows)),
        '_nsslapd-accesslog': attrs['nsslapd-accesslog'][0],
        '_nsslapd-accesslog-level': attrs['nsslapd-accesslog-level'][0],
        '_nsslapd-accesslog-logbuffering': buffering,
        '_nsslapd-accesslog-logexpirationtime': attrs['nsslapd-accesslog-logexpirationtime'][0],
        '_nsslapd-accesslog-logexpirationtimeunit': attrs['nsslapd-accesslog-logexpirationtimeunit'][0],
        '_nsslapd-accesslog-logging-enabled': enabled,
        '_nsslapd-accesslog-logmaxdiskspace': attrs['nsslapd-accesslog-logmaxdiskspace'][0],
        '_nsslapd-accesslog-logminfreediskspace': attrs['nsslapd-accesslog-logminfreediskspace'][0],
        '_nsslapd-accesslog-logrotationsync-enabled': attrs['nsslapd-accesslog-logrotationsync-enabled'][0],
        '_nsslapd-accesslog-logrotationsynchour': attrs['nsslapd-accesslog-logrotationsynchour'][0],
        '_nsslapd-accesslog-logrotationsyncmin': attrs['nsslapd-accesslog-logrotationsyncmin'][0],
        '_nsslapd-accesslog-logrotationtime': attrs['nsslapd-accesslog-logrotationtime'][0],
        '_nsslapd-accesslog-logrotationtimeunit': attrs['nsslapd-accesslog-logrotationtimeunit'][0],
        '_nsslapd-accesslog-maxlogsize': attrs['nsslapd-accesslog-maxlogsize'][0],
        '_nsslapd-accesslog-maxlogsperdir': attrs['nsslapd-accesslog-maxlogsperdir'][0]
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error loading Access Log configuration - ".concat(errMsg.desc));
      this.setState({
        loading: false,
        loaded: true
      });
    });
  }

  loadConfig() {
    var attrs = this.state.attrs;
    var enabled = false;
    var buffering = false;
    var level_val = parseInt(attrs['nsslapd-accesslog-level'][0]);
    var rows = [...this.state.rows];

    if (attrs['nsslapd-accesslog-logging-enabled'][0] == "on") {
      enabled = true;
    }

    if (attrs['nsslapd-accesslog-logbuffering'][0] == "on") {
      buffering = true;
    }

    for (var row in rows) {
      if (rows[row].level & level_val) {
        rows[row].selected = true;
      } else {
        rows[row].selected = false;
      }
    }

    this.setState({
      loading: false,
      loaded: true,
      saveSettingsDisabled: true,
      saveRotationDisabled: true,
      saveExpDisabled: true,
      'nsslapd-accesslog': attrs['nsslapd-accesslog'][0],
      'nsslapd-accesslog-level': attrs['nsslapd-accesslog-level'][0],
      'nsslapd-accesslog-logbuffering': buffering,
      'nsslapd-accesslog-logexpirationtime': attrs['nsslapd-accesslog-logexpirationtime'][0],
      'nsslapd-accesslog-logexpirationtimeunit': attrs['nsslapd-accesslog-logexpirationtimeunit'][0],
      'nsslapd-accesslog-logging-enabled': enabled,
      'nsslapd-accesslog-logmaxdiskspace': attrs['nsslapd-accesslog-logmaxdiskspace'][0],
      'nsslapd-accesslog-logminfreediskspace': attrs['nsslapd-accesslog-logminfreediskspace'][0],
      'nsslapd-accesslog-logrotationsync-enabled': attrs['nsslapd-accesslog-logrotationsync-enabled'][0],
      'nsslapd-accesslog-logrotationsynchour': attrs['nsslapd-accesslog-logrotationsynchour'][0],
      'nsslapd-accesslog-logrotationsyncmin': attrs['nsslapd-accesslog-logrotationsyncmin'][0],
      'nsslapd-accesslog-logrotationtime': attrs['nsslapd-accesslog-logrotationtime'][0],
      'nsslapd-accesslog-logrotationtimeunit': attrs['nsslapd-accesslog-logrotationtimeunit'][0],
      'nsslapd-accesslog-maxlogsize': attrs['nsslapd-accesslog-maxlogsize'][0],
      'nsslapd-accesslog-maxlogsperdir': attrs['nsslapd-accesslog-maxlogsperdir'][0],
      rows: rows,
      // Record original values
      _rows: JSON.parse(JSON.stringify(rows)),
      '_nsslapd-accesslog': attrs['nsslapd-accesslog'][0],
      '_nsslapd-accesslog-level': attrs['nsslapd-accesslog-level'][0],
      '_nsslapd-accesslog-logbuffering': buffering,
      '_nsslapd-accesslog-logexpirationtime': attrs['nsslapd-accesslog-logexpirationtime'][0],
      '_nsslapd-accesslog-logexpirationtimeunit': attrs['nsslapd-accesslog-logexpirationtimeunit'][0],
      '_nsslapd-accesslog-logging-enabled': enabled,
      '_nsslapd-accesslog-logmaxdiskspace': attrs['nsslapd-accesslog-logmaxdiskspace'][0],
      '_nsslapd-accesslog-logminfreediskspace': attrs['nsslapd-accesslog-logminfreediskspace'][0],
      '_nsslapd-accesslog-logrotationsync-enabled': attrs['nsslapd-accesslog-logrotationsync-enabled'][0],
      '_nsslapd-accesslog-logrotationsynchour': attrs['nsslapd-accesslog-logrotationsynchour'][0],
      '_nsslapd-accesslog-logrotationsyncmin': attrs['nsslapd-accesslog-logrotationsyncmin'][0],
      '_nsslapd-accesslog-logrotationtime': attrs['nsslapd-accesslog-logrotationtime'][0],
      '_nsslapd-accesslog-logrotationtimeunit': attrs['nsslapd-accesslog-logrotationtimeunit'][0],
      '_nsslapd-accesslog-maxlogsize': attrs['nsslapd-accesslog-maxlogsize'][0],
      '_nsslapd-accesslog-maxlogsperdir': attrs['nsslapd-accesslog-maxlogsperdir'][0]
    }, this.props.enableTree);
  }

  onSelect(event, isSelected, rowId) {
    var disableSaveBtn = true;
    var rows = JSON.parse(JSON.stringify(this.state.rows)); // Update the row

    rows[rowId].selected = isSelected; // Handle "save button" state, first check the other config settings

    var _iterator8 = _createForOfIteratorHelper(settings_attrs),
        _step8;

    try {
      for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
        var config_attr = _step8.value;

        if (this.state['_' + config_attr] != this.state[config_attr]) {
          disableSaveBtn = false;
          break;
        }
      } // Handle the table contents

    } catch (err) {
      _iterator8.e(err);
    } finally {
      _iterator8.f();
    }

    var _iterator9 = _createForOfIteratorHelper(rows),
        _step9;

    try {
      for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
        var row = _step9.value;

        var _iterator10 = _createForOfIteratorHelper(this.state._rows),
            _step10;

        try {
          for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
            var orig_row = _step10.value;

            if (orig_row.cells[0] == row.cells[0]) {
              if (orig_row.selected != row.selected) {
                disableSaveBtn = false;
                break;
              }
            }
          }
        } catch (err) {
          _iterator10.e(err);
        } finally {
          _iterator10.f();
        }
      }
    } catch (err) {
      _iterator9.e(err);
    } finally {
      _iterator9.f();
    }

    this.setState({
      rows,
      saveSettingsDisabled: disableSaveBtn
    });
  }

  render() {
    var saveSettingsName = "Save Log Settings";
    var saveRotationName = "Save Rotation Settings";
    var saveDeletionName = "Save Deletion Settings";
    var extraPrimaryProps = {};
    var rotationTime = "";
    var hour = this.state['nsslapd-accesslog-logrotationsynchour'] ? this.state['nsslapd-accesslog-logrotationsynchour'] : "00";
    var min = this.state['nsslapd-accesslog-logrotationsyncmin'] ? this.state['nsslapd-accesslog-logrotationsyncmin'] : "00";

    if (this.state.loading) {
      saveSettingsName = "Saving settings ...";
      saveRotationName = "Saving settings ...";
      saveDeletionName = "Saving settings ...";
      extraPrimaryProps.spinnerAriaValueText = "Loading";
    } // Adjust time string for TimePicket


    if (hour.length == 1) {
      hour = "0" + hour;
    }

    if (min.length == 1) {
      min = "0" + min;
    }

    rotationTime = hour + ":" + min;
    var body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top-lg ds-left-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Tabs, {
      className: "ds-margin-top-xlg",
      activeKey: this.state.activeTabKey,
      onSelect: this.handleNavSelect
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Tab, {
      eventKey: 0,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TabTitleText, null, "Settings")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Checkbox, {
      className: "ds-margin-top-xlg",
      id: "nsslapd-accesslog-logging-enabled",
      isChecked: this.state['nsslapd-accesslog-logging-enabled'],
      onChange: (checked, e) => {
        this.handleChange(e, "settings");
      },
      title: "Enable access logging (nsslapd-accesslog-logging-enabled).",
      label: "Enable Access Logging"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Form, {
      className: "ds-margin-top-lg ds-left-margin-md",
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormGroup, {
      label: "Access Log Location",
      fieldId: "nsslapd-accesslog",
      title: "Enable access logging (nsslapd-accesslog)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      value: this.state['nsslapd-accesslog'],
      type: "text",
      id: "nsslapd-accesslog",
      "aria-describedby": "horizontal-form-name-helper",
      name: "nsslapd-accesslog",
      onChange: (str, e) => {
        this.handleChange(e, "settings");
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Checkbox, {
      className: "ds-left-margin-md ds-margin-top-lg",
      id: "nsslapd-accesslog-logbuffering",
      isChecked: this.state['nsslapd-accesslog-logbuffering'],
      onChange: (checked, e) => {
        this.handleChange(e, "settings");
      },
      title: "Disable access log buffering for faster troubleshooting, but this will impact server performance (nsslapd-accesslog-logbuffering).",
      label: "Access Log Buffering Enabled"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ExpandableSection, {
      className: "ds-left-margin-md ds-margin-top-lg ds-font-size-md",
      toggleText: this.state.isExpanded ? 'Hide Logging Levels' : 'Show Logging Levels',
      onToggle: this.onToggle,
      isExpanded: this.state.isExpanded
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_13__.Table, {
      className: "ds-left-margin",
      onSelect: this.onSelect,
      canSelectAll: this.state.canSelectAll,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_14__.TableVariant.compact,
      "aria-label": "Selectable Table",
      cells: this.state.columns,
      rows: this.state.rows
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_15__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_16__.TableBody, null))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.Button, _extends({
      key: "save settings",
      isDisabled: this.state.saveSettingsDisabled,
      variant: "primary",
      className: "ds-margin-top-xlg",
      onClick: () => {
        this.saveConfig("settings");
      },
      isLoading: this.state.loading,
      spinnerAriaValueText: this.state.loading ? "Saving" : undefined
    }, extraPrimaryProps), saveSettingsName)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Tab, {
      eventKey: 1,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TabTitleText, null, "Rotation Policy")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Form, {
      className: "ds-margin-top-lg",
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Grid, {
      className: "ds-margin-top",
      title: "The maximum number of logs that are archived (nsslapd-accesslog-maxlogsperdir)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Maximum Number Of Logs"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.NumberInput, {
      value: this.state['nsslapd-accesslog-maxlogsperdir'],
      min: 1,
      max: 2147483647,
      onMinus: () => {
        this.onMinusConfig("nsslapd-accesslog-maxlogsperdir", "rotation");
      },
      onChange: e => {
        this.onConfigChange(e, "nsslapd-accesslog-maxlogsperdir", 1, 2147483647, "rotation");
      },
      onPlus: () => {
        this.onPlusConfig("nsslapd-accesslog-maxlogsperdir", "rotation");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 6
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Grid, {
      title: "The maximum size of each log file in megabytes (nsslapd-accesslog-maxlogsize)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Maximum Log Size (in MB)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.NumberInput, {
      value: this.state['nsslapd-accesslog-maxlogsize'],
      min: -1,
      max: 2147483647,
      onMinus: () => {
        this.onMinusConfig("nsslapd-accesslog-maxlogsize", "rotation");
      },
      onChange: e => {
        this.onConfigChange(e, "nsslapd-accesslog-maxlogsize", -1, 2147483647, "rotation");
      },
      onPlus: () => {
        this.onPlusConfig("nsslapd-accesslog-maxlogsize", "rotation");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 6
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Grid, {
      title: "Rotate the log based this number of time units (nsslapd-accesslog-logrotationtime)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Create New Log Every ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-container"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.NumberInput, {
      value: this.state['nsslapd-accesslog-logrotationtime'],
      min: -1,
      max: 2147483647,
      onMinus: () => {
        this.onMinusConfig("nsslapd-accesslog-logrotationtime", "rotation");
      },
      onChange: e => {
        this.onConfigChange(e, "nsslapd-accesslog-logrotationtime", -1, 2147483647, "rotation");
      },
      onPlus: () => {
        this.onPlusConfig("nsslapd-accesslog-logrotationtime", "rotation");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 3
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      span: 2,
      className: "ds-left-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.FormSelect, {
      id: "nsslapd-accesslog-logrotationtimeunit",
      value: this.state['nsslapd-accesslog-logrotationtimeunit'],
      onChange: (str, e) => {
        this.handleChange(e, "rotation");
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.FormSelectOption, {
      key: "0",
      value: "minute",
      label: "minute"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.FormSelectOption, {
      key: "1",
      value: "hour",
      label: "hour"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.FormSelectOption, {
      key: "2",
      value: "day",
      label: "day"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.FormSelectOption, {
      key: "3",
      value: "week",
      label: "week"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.FormSelectOption, {
      key: "4",
      value: "month",
      label: "month"
    })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Grid, {
      title: "The time when the log should be rotated (nsslapd-accesslog-logrotationsynchour, nsslapd-accesslog-logrotationsyncmin)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Time Of Day"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      span: 1
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.TimePicker, {
      time: rotationTime,
      onChange: this.handleTimeChange,
      is24Hour: true
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.Button, _extends({
      key: "save rot settings",
      isDisabled: this.state.saveRotationDisabled,
      variant: "primary",
      className: "ds-margin-top-xlg",
      onClick: () => {
        this.saveConfig("rotation");
      },
      isLoading: this.state.loading,
      spinnerAriaValueText: this.state.loading ? "Saving" : undefined
    }, extraPrimaryProps), saveRotationName)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Tab, {
      eventKey: 2,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TabTitleText, null, "Deletion Policy")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Form, {
      className: "ds-margin-top-lg",
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Grid, {
      className: "ds-margin-top",
      title: "The server deletes the oldest archived log when the total of all the logs reaches this amount (nsslapd-accesslog-logmaxdiskspace)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Log Archive Exceeds (in MB)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      span: 1
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.NumberInput, {
      value: this.state['nsslapd-accesslog-logmaxdiskspace'],
      min: -1,
      max: 2147483647,
      onMinus: () => {
        this.onMinusConfig("nsslapd-accesslog-logmaxdiskspace", "exp");
      },
      onChange: e => {
        this.onConfigChange(e, "nsslapd-accesslog-logmaxdiskspace", -1, 2147483647, "exp");
      },
      onPlus: () => {
        this.onPlusConfig("nsslapd-accesslog-logmaxdiskspace", "exp");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 6
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Grid, {
      title: "The server deletes the oldest archived log file when available disk space is less than this amount. (nsslapd-accesslog-logminfreediskspace)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Free Disk Space (in MB)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      span: 1
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.NumberInput, {
      value: this.state['nsslapd-accesslog-logminfreediskspace'],
      min: -1,
      max: 2147483647,
      onMinus: () => {
        this.onMinusConfig("nsslapd-accesslog-logminfreediskspace", "exp");
      },
      onChange: e => {
        this.onConfigChange(e, "nsslapd-accesslog-logminfreediskspace", -1, 2147483647, "exp");
      },
      onPlus: () => {
        this.onPlusConfig("nsslapd-accesslog-logminfreediskspace", "exp");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 6
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Grid, {
      title: "Server deletes an old archived log file when it is older than the specified age. (nsslapd-accesslog-logexpirationtime)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Log File is Older Than ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-container"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.NumberInput, {
      value: this.state['nsslapd-accesslog-logexpirationtime'],
      min: -1,
      max: 2147483647,
      onMinus: () => {
        this.onMinusConfig("nsslapd-accesslog-logexpirationtime", "exp");
      },
      onChange: e => {
        this.onConfigChange(e, "nsslapd-accesslog-logexpirationtime", -1, 2147483647, "exp");
      },
      onPlus: () => {
        this.onPlusConfig("nsslapd-accesslog-logexpirationtime", "exp");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 3
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      span: 2,
      className: "ds-left-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.FormSelect, {
      id: "nsslapd-accesslog-logexpirationtimeunit",
      value: this.state['nsslapd-accesslog-logexpirationtimeunit'],
      onChange: (str, e) => {
        this.handleChange(e, "exp");
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.FormSelectOption, {
      key: "2",
      value: "day",
      label: "day"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.FormSelectOption, {
      key: "3",
      value: "week",
      label: "week"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.FormSelectOption, {
      key: "4",
      value: "month",
      label: "month"
    }))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.Button, _extends({
      key: "save del settings",
      isDisabled: this.state.saveExpDisabled,
      variant: "primary",
      className: "ds-margin-top-xlg",
      onClick: () => {
        this.saveConfig("exp");
      },
      isLoading: this.state.loading,
      spinnerAriaValueText: this.state.loading ? "Saving" : undefined
    }, extraPrimaryProps), saveDeletionName))));

    if (!this.state.loaded) {
      body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-top-xlg ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.TextVariants.h3
      }, "Loading Access Log Settings ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.Spinner, {
        size: "xl"
      }));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      id: "server-accesslog-page",
      className: this.state.loading ? "ds-disabled" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.TextVariants.h3
    }, "Access Log Settings ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, {
      size: "lg",
      className: "ds-left-margin ds-refresh",
      icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_27__.faSyncAlt,
      title: "Refresh log settings",
      onClick: () => {
        this.refreshConfig();
      }
    }))))), body);
  }

} // Property types and defaults

ServerAccessLog.propTypes = {
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_28___default().func),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_28___default().string),
  attrs: (prop_types__WEBPACK_IMPORTED_MODULE_28___default().object)
};
ServerAccessLog.defaultProps = {
  serverId: "",
  attrs: {}
};

/***/ }),

/***/ "./src/lib/server/auditLog.jsx":
/*!*************************************!*\
  !*** ./src/lib/server/auditLog.jsx ***!
  \*************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ServerAuditLog": () => (/* binding */ ServerAuditLog)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormGroup.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/NumberInput/NumberInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TimePicker/TimePicker.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
/* harmony import */ var _fortawesome_fontawesome_svg_core_styles_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core/styles.css */ "./node_modules/@fortawesome/fontawesome-svg-core/styles.css");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_23__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }









var settings_attrs = ['nsslapd-auditlog', 'nsslapd-auditlog-level', 'nsslapd-auditlog-logbuffering', 'nsslapd-auditlog-logging-enabled'];
var rotation_attrs = ['nsslapd-auditlog-logrotationsync-enabled', 'nsslapd-auditlog-logrotationsynchour', 'nsslapd-auditlog-logrotationsyncmin', 'nsslapd-auditlog-logrotationtime', 'nsslapd-auditlog-logrotationtimeunit', 'nsslapd-auditlog-maxlogsize', 'nsslapd-auditlog-maxlogsperdir'];
var rotation_attrs_no_time = ['nsslapd-auditlog-logrotationsync-enabled', 'nsslapd-auditlog-logrotationtime', 'nsslapd-auditlog-logrotationtimeunit', 'nsslapd-auditlog-maxlogsize', 'nsslapd-auditlog-maxlogsperdir'];
var exp_attrs = ['nsslapd-auditlog-logexpirationtime', 'nsslapd-auditlog-logexpirationtimeunit', 'nsslapd-auditlog-logmaxdiskspace', 'nsslapd-auditlog-logminfreediskspace'];
class ServerAuditLog extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "l", void 0);

    this.state = {
      loading: true,
      loaded: false,
      activeTabKey: 0,
      saveSettingsDisabled: true,
      saveRotationDisabled: true,
      saveExpDisabled: true,
      attrs: this.props.attrs
    }; // Toggle currently active tab

    this.handleNavSelect = (event, tabIndex) => {
      this.setState({
        activeTabKey: tabIndex
      });
    };

    this.handleChange = this.handleChange.bind(this);
    this.handleTimeChange = this.handleTimeChange.bind(this);
    this.loadConfig = this.loadConfig.bind(this);
    this.refreshConfig = this.refreshConfig.bind(this);
    this.saveConfig = this.saveConfig.bind(this);

    this.onMinusConfig = (id, nav_tab) => {
      this.setState({
        [id]: Number(this.state[id]) - 1
      }, () => {
        this.validateSaveBtn(nav_tab, id, Number(this.state[id]));
      });
    };

    this.onConfigChange = (event, id, min, max, nav_tab) => {
      var maxValue = this.maxValue;

      if (max !== 0) {
        maxValue = max;
      }

      var newValue = isNaN(event.target.value) ? min : Number(event.target.value);
      newValue = newValue > maxValue ? maxValue : newValue < min ? min : newValue;
      this.setState({
        [id]: newValue
      }, () => {
        this.validateSaveBtn(nav_tab, id, newValue);
      });
    };

    this.onPlusConfig = (id, nav_tab) => {
      this.setState({
        [id]: Number(this.state[id]) + 1
      }, () => {
        this.validateSaveBtn(nav_tab, id, Number(this.state[id]));
      });
    };

    this.validateSaveBtn = this.validateSaveBtn.bind(this);
  }

  componentDidMount() {
    // Loading config
    if (!this.state.loaded) {
      this.loadConfig();
    } else {
      this.props.enableTree();
    }
  }

  validateSaveBtn(nav_tab, attr, value) {
    var disableSaveBtn = true;
    var disableBtnName = "";
    var config_attrs = [];

    if (nav_tab == "settings") {
      config_attrs = settings_attrs;
      disableBtnName = "saveSettingsDisabled";
    } else if (nav_tab == "rotation") {
      disableBtnName = "saveRotationDisabled";
      config_attrs = rotation_attrs;
    } else {
      config_attrs = exp_attrs;
      disableBtnName = "saveExpDisabled";
    } // Check if a setting was changed, if so enable the save button


    var _iterator = _createForOfIteratorHelper(config_attrs),
        _step;

    try {
      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        var config_attr = _step.value;

        if (attr == config_attr && this.state['_' + config_attr] != value) {
          disableSaveBtn = false;
          break;
        }
      } // Now check for differences in values that we did not touch

    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }

    var _iterator2 = _createForOfIteratorHelper(config_attrs),
        _step2;

    try {
      for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
        var _config_attr = _step2.value;

        if (attr != _config_attr && this.state['_' + _config_attr] != this.state[_config_attr]) {
          disableSaveBtn = false;
          break;
        }
      }
    } catch (err) {
      _iterator2.e(err);
    } finally {
      _iterator2.f();
    }

    this.setState({
      [disableBtnName]: disableSaveBtn
    });
  }

  handleChange(e, nav_tab) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    this.setState({
      [attr]: value
    }, () => {
      this.validateSaveBtn(nav_tab, attr, value);
    });
  }

  handleTimeChange(time_str) {
    var disableSaveBtn = true;
    var time_parts = time_str.split(":");
    var hour = time_parts[0];
    var min = time_parts[1];

    if (hour.length == 2 && hour[0] == "0") {
      hour = hour[1];
    }

    if (min.length == 2 && min[0] == "0") {
      min = min[1];
    } // Start doing the Save button checking


    var _iterator3 = _createForOfIteratorHelper(rotation_attrs_no_time),
        _step3;

    try {
      for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
        var config_attr = _step3.value;

        if (this.state[config_attr] != this.state['_' + config_attr]) {
          disableSaveBtn = false;
          break;
        }
      }
    } catch (err) {
      _iterator3.e(err);
    } finally {
      _iterator3.f();
    }

    if (hour != this.state['_nsslapd-auditlog-logrotationsynchour'] || min != this.state['_nsslapd-auditlog-logrotationsyncmin']) {
      disableSaveBtn = false;
    }

    this.setState({
      'nsslapd-auditlog-logrotationsynchour': hour,
      'nsslapd-auditlog-logrotationsyncmin': min,
      saveRotationDisabled: disableSaveBtn
    });
  }

  saveConfig(nav_tab) {
    this.setState({
      loading: true
    });
    var config_attrs = [];

    if (nav_tab == "settings") {
      config_attrs = settings_attrs;
    } else if (nav_tab == "rotation") {
      config_attrs = rotation_attrs;
    } else {
      config_attrs = exp_attrs;
    }

    var cmd = ['dsconf', '-j', "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", 'config', 'replace'];

    var _iterator4 = _createForOfIteratorHelper(config_attrs),
        _step4;

    try {
      for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
        var attr = _step4.value;

        if (this.state['_' + attr] != this.state[attr]) {
          var val = this.state[attr];

          if (typeof val === "boolean") {
            if (val) {
              val = "on";
            } else {
              val = "off";
            }
          }

          cmd.push(attr + "=" + val);
        }
      }
    } catch (err) {
      _iterator4.e(err);
    } finally {
      _iterator4.f();
    }

    if (cmd.length == 5) {
      // Nothing to save, just return
      return;
    }

    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("saveConfig", "Saving audit log settings", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.refreshConfig();
      this.props.addNotification("success", "Successfully updated Audit Log settings");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.refreshConfig();
      this.props.addNotification("error", "Error saving Audit Log settings - ".concat(errMsg.desc));
    });
  }

  refreshConfig() {
    this.setState({
      loading: true,
      loaded: false
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get"];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("refreshConfig", "load Audit Log configuration", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var attrs = config.attrs;
      var enabled = false;

      if (attrs['nsslapd-auditlog-logging-enabled'][0] == "on") {
        enabled = true;
      }

      this.setState({
        loading: false,
        loaded: true,
        saveSettingsDisabled: true,
        saveRotationDisabled: true,
        saveExpDisabled: true,
        'nsslapd-auditlog': attrs['nsslapd-auditlog'][0],
        'nsslapd-auditlog-logexpirationtime': attrs['nsslapd-auditlog-logexpirationtime'][0],
        'nsslapd-auditlog-logexpirationtimeunit': attrs['nsslapd-auditlog-logexpirationtimeunit'][0],
        'nsslapd-auditlog-logging-enabled': enabled,
        'nsslapd-auditlog-logmaxdiskspace': attrs['nsslapd-auditlog-logmaxdiskspace'][0],
        'nsslapd-auditlog-logminfreediskspace': attrs['nsslapd-auditlog-logminfreediskspace'][0],
        'nsslapd-auditlog-logrotationsync-enabled': attrs['nsslapd-auditlog-logrotationsync-enabled'][0],
        'nsslapd-auditlog-logrotationsynchour': attrs['nsslapd-auditlog-logrotationsynchour'][0],
        'nsslapd-auditlog-logrotationsyncmin': attrs['nsslapd-auditlog-logrotationsyncmin'][0],
        'nsslapd-auditlog-logrotationtime': attrs['nsslapd-auditlog-logrotationtime'][0],
        'nsslapd-auditlog-logrotationtimeunit': attrs['nsslapd-auditlog-logrotationtimeunit'][0],
        'nsslapd-auditlog-maxlogsize': attrs['nsslapd-auditlog-maxlogsize'][0],
        'nsslapd-auditlog-maxlogsperdir': attrs['nsslapd-auditlog-maxlogsperdir'][0],
        // Record original values
        '_nsslapd-auditlog': attrs['nsslapd-auditlog'][0],
        '_nsslapd-auditlog-logexpirationtime': attrs['nsslapd-auditlog-logexpirationtime'][0],
        '_nsslapd-auditlog-logexpirationtimeunit': attrs['nsslapd-auditlog-logexpirationtimeunit'][0],
        '_nsslapd-auditlog-logging-enabled': enabled,
        '_nsslapd-auditlog-logmaxdiskspace': attrs['nsslapd-auditlog-logmaxdiskspace'][0],
        '_nsslapd-auditlog-logminfreediskspace': attrs['nsslapd-auditlog-logminfreediskspace'][0],
        '_nsslapd-auditlog-logrotationsync-enabled': attrs['nsslapd-auditlog-logrotationsync-enabled'][0],
        '_nsslapd-auditlog-logrotationsynchour': attrs['nsslapd-auditlog-logrotationsynchour'][0],
        '_nsslapd-auditlog-logrotationsyncmin': attrs['nsslapd-auditlog-logrotationsyncmin'][0],
        '_nsslapd-auditlog-logrotationtime': attrs['nsslapd-auditlog-logrotationtime'][0],
        '_nsslapd-auditlog-logrotationtimeunit': attrs['nsslapd-auditlog-logrotationtimeunit'][0],
        '_nsslapd-auditlog-maxlogsize': attrs['nsslapd-auditlog-maxlogsize'][0],
        '_nsslapd-auditlog-maxlogsperdir': attrs['nsslapd-auditlog-maxlogsperdir'][0]
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error loading Audit Log configuration - ".concat(errMsg.desc));
      this.setState({
        loading: false,
        loaded: true
      });
    });
  }

  loadConfig() {
    var attrs = this.state.attrs;
    var enabled = false;

    if (attrs['nsslapd-auditlog-logging-enabled'][0] == "on") {
      enabled = true;
    }

    this.setState({
      loading: false,
      loaded: true,
      saveSettingsDisabled: true,
      saveRotationDisabled: true,
      saveExpDisabled: true,
      'nsslapd-auditlog': attrs['nsslapd-auditlog'][0],
      'nsslapd-auditlog-logexpirationtime': attrs['nsslapd-auditlog-logexpirationtime'][0],
      'nsslapd-auditlog-logexpirationtimeunit': attrs['nsslapd-auditlog-logexpirationtimeunit'][0],
      'nsslapd-auditlog-logging-enabled': enabled,
      'nsslapd-auditlog-logmaxdiskspace': attrs['nsslapd-auditlog-logmaxdiskspace'][0],
      'nsslapd-auditlog-logminfreediskspace': attrs['nsslapd-auditlog-logminfreediskspace'][0],
      'nsslapd-auditlog-logrotationsync-enabled': attrs['nsslapd-auditlog-logrotationsync-enabled'][0],
      'nsslapd-auditlog-logrotationsynchour': attrs['nsslapd-auditlog-logrotationsynchour'][0],
      'nsslapd-auditlog-logrotationsyncmin': attrs['nsslapd-auditlog-logrotationsyncmin'][0],
      'nsslapd-auditlog-logrotationtime': attrs['nsslapd-auditlog-logrotationtime'][0],
      'nsslapd-auditlog-logrotationtimeunit': attrs['nsslapd-auditlog-logrotationtimeunit'][0],
      'nsslapd-auditlog-maxlogsize': attrs['nsslapd-auditlog-maxlogsize'][0],
      'nsslapd-auditlog-maxlogsperdir': attrs['nsslapd-auditlog-maxlogsperdir'][0],
      // Record original values,
      '_nsslapd-auditlog': attrs['nsslapd-auditlog'][0],
      '_nsslapd-auditlog-logexpirationtime': attrs['nsslapd-auditlog-logexpirationtime'][0],
      '_nsslapd-auditlog-logexpirationtimeunit': attrs['nsslapd-auditlog-logexpirationtimeunit'][0],
      '_nsslapd-auditlog-logging-enabled': enabled,
      '_nsslapd-auditlog-logmaxdiskspace': attrs['nsslapd-auditlog-logmaxdiskspace'][0],
      '_nsslapd-auditlog-logminfreediskspace': attrs['nsslapd-auditlog-logminfreediskspace'][0],
      '_nsslapd-auditlog-logrotationsync-enabled': attrs['nsslapd-auditlog-logrotationsync-enabled'][0],
      '_nsslapd-auditlog-logrotationsynchour': attrs['nsslapd-auditlog-logrotationsynchour'][0],
      '_nsslapd-auditlog-logrotationsyncmin': attrs['nsslapd-auditlog-logrotationsyncmin'][0],
      '_nsslapd-auditlog-logrotationtime': attrs['nsslapd-auditlog-logrotationtime'][0],
      '_nsslapd-auditlog-logrotationtimeunit': attrs['nsslapd-auditlog-logrotationtimeunit'][0],
      '_nsslapd-auditlog-maxlogsize': attrs['nsslapd-auditlog-maxlogsize'][0],
      '_nsslapd-auditlog-maxlogsperdir': attrs['nsslapd-auditlog-maxlogsperdir'][0]
    }, this.props.enableTree);
  }

  render() {
    var saveSettingsName = "Save Log Settings";
    var saveRotationName = "Save Rotation Settings";
    var saveDeletionName = "Save Deletion Settings";
    var extraPrimaryProps = {};
    var rotationTime = "";
    var hour = this.state['nsslapd-auditlog-logrotationsynchour'] ? this.state['nsslapd-auditlog-logrotationsynchour'] : "00";
    var min = this.state['nsslapd-auditlog-logrotationsyncmin'] ? this.state['nsslapd-auditlog-logrotationsyncmin'] : "00";

    if (this.state.loading) {
      saveSettingsName = "Saving settings ...";
      saveRotationName = "Saving settings ...";
      saveDeletionName = "Saving settings ...";
      extraPrimaryProps.spinnerAriaValueText = "Loading";
    } // Adjust time string for TimePicket


    if (hour.length == 1) {
      hour = "0" + hour;
    }

    if (min.length == 1) {
      min = "0" + min;
    }

    rotationTime = hour + ":" + min;
    var body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top-lg ds-left-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Tabs, {
      className: "ds-margin-top-xlg",
      activeKey: this.state.activeTabKey,
      onSelect: this.handleNavSelect
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Tab, {
      eventKey: 0,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TabTitleText, null, "Settings")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Checkbox, {
      className: "ds-margin-top-xlg",
      id: "nsslapd-auditlog-logging-enabled",
      isChecked: this.state['nsslapd-auditlog-logging-enabled'],
      onChange: (checked, e) => {
        this.handleChange(e, "settings");
      },
      title: "Enable audit logging (nsslapd-auditlog-logging-enabled).",
      label: "Enable Audit Logging"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Form, {
      className: "ds-margin-top-xlg ds-margin-left",
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormGroup, {
      label: "Audit Log Location",
      fieldId: "nsslapd-auditlog",
      title: "Enable audit logging (nsslapd-auditlog)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      value: this.state['nsslapd-auditlog'],
      type: "text",
      id: "nsslapd-auditlog",
      "aria-describedby": "horizontal-form-name-helper",
      name: "nsslapd-auditlog",
      onChange: (str, e) => {
        this.handleChange(e, "settings");
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Button, _extends({
      key: "save settings",
      isDisabled: this.state.saveSettingsDisabled,
      variant: "primary",
      className: "ds-margin-top-xlg",
      onClick: () => {
        this.saveConfig("settings");
      },
      isLoading: this.state.loading,
      spinnerAriaValueText: this.state.loading ? "Saving" : undefined
    }, extraPrimaryProps), saveSettingsName)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Tab, {
      eventKey: 1,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TabTitleText, null, "Rotation Policy")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Form, {
      className: "ds-margin-top-lg",
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Grid, {
      className: "ds-margin-top",
      title: "The maximum number of logs that are archived (nsslapd-auditlog-maxlogsperdir)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Maximum Number Of Logs"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.NumberInput, {
      value: this.state['nsslapd-auditlog-maxlogsperdir'],
      min: 1,
      max: 2147483647,
      onMinus: () => {
        this.onMinusConfig("nsslapd-auditlog-maxlogsperdir", "rotation");
      },
      onChange: e => {
        this.onConfigChange(e, "nsslapd-auditlog-maxlogsperdir", 1, 2147483647, "rotation");
      },
      onPlus: () => {
        this.onPlusConfig("nsslapd-auditlog-maxlogsperdir", "rotation");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 6
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Grid, {
      title: "The maximum size of each log file in megabytes (nsslapd-auditlog-maxlogsize)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Maximum Log Size (in MB)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.NumberInput, {
      value: this.state['nsslapd-auditlog-maxlogsize'],
      min: -1,
      max: 2147483647,
      onMinus: () => {
        this.onMinusConfig("nsslapd-auditlog-maxlogsize", "rotation");
      },
      onChange: e => {
        this.onConfigChange(e, "nsslapd-auditlog-maxlogsize", -1, 2147483647, "rotation");
      },
      onPlus: () => {
        this.onPlusConfig("nsslapd-auditlog-maxlogsize", "rotation");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 6
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Grid, {
      title: "Rotate the log based this number of time units (nsslapd-auditlog-logrotationtime)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Create New Log Every ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-container"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.NumberInput, {
      value: this.state['nsslapd-auditlog-logrotationtime'],
      min: -1,
      max: 2147483647,
      onMinus: () => {
        this.onMinusConfig("nsslapd-auditlog-logrotationtime", "rotation");
      },
      onChange: e => {
        this.onConfigChange(e, "nsslapd-auditlog-logrotationtime", -1, 2147483647, "rotation");
      },
      onPlus: () => {
        this.onPlusConfig("nsslapd-auditlog-logrotationtime", "rotation");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 3
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 2,
      className: "ds-left-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.FormSelect, {
      id: "nsslapd-auditlog-logrotationtimeunit",
      value: this.state['nsslapd-auditlog-logrotationtimeunit'],
      onChange: (str, e) => {
        this.handleChange(e, "rotation");
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.FormSelectOption, {
      key: "0",
      value: "minute",
      label: "minute"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.FormSelectOption, {
      key: "1",
      value: "hour",
      label: "hour"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.FormSelectOption, {
      key: "2",
      value: "day",
      label: "day"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.FormSelectOption, {
      key: "3",
      value: "week",
      label: "week"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.FormSelectOption, {
      key: "4",
      value: "month",
      label: "month"
    })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Grid, {
      title: "The time when the log should be rotated (nsslapd-auditlog-logrotationsynchour, nsslapd-auditlog-logrotationsyncmin)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Time Of Day"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 1
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TimePicker, {
      time: rotationTime,
      onChange: this.handleTimeChange,
      is24Hour: true
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Button, _extends({
      key: "save rot settings",
      isDisabled: this.state.saveRotationDisabled,
      variant: "primary",
      className: "ds-margin-top-xlg",
      onClick: () => {
        this.saveConfig("rotation");
      },
      isLoading: this.state.loading,
      spinnerAriaValueText: this.state.loading ? "Saving" : undefined
    }, extraPrimaryProps), saveRotationName)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Tab, {
      eventKey: 2,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TabTitleText, null, "Deletion Policy")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Form, {
      className: "ds-margin-top-lg",
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Grid, {
      className: "ds-margin-top",
      title: "The server deletes the oldest archived log when the total of all the logs reaches this amount (nsslapd-auditlog-logmaxdiskspace)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Log Archive Exceeds (in MB)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 1
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.NumberInput, {
      value: this.state['nsslapd-auditlog-logmaxdiskspace'],
      min: -1,
      max: 2147483647,
      onMinus: () => {
        this.onMinusConfig("nsslapd-auditlog-logmaxdiskspace", "exp");
      },
      onChange: e => {
        this.onConfigChange(e, "nsslapd-auditlog-logmaxdiskspace", -1, 2147483647, "exp");
      },
      onPlus: () => {
        this.onPlusConfig("nsslapd-auditlog-logmaxdiskspace", "exp");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 6
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Grid, {
      title: "The server deletes the oldest archived log file when available disk space is less than this amount. (nsslapd-auditlog-logminfreediskspace)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Free Disk Space (in MB)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 1
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.NumberInput, {
      value: this.state['nsslapd-auditlog-logminfreediskspace'],
      min: -1,
      max: 2147483647,
      onMinus: () => {
        this.onMinusConfig("nsslapd-auditlog-logminfreediskspace", "exp");
      },
      onChange: e => {
        this.onConfigChange(e, "nsslapd-auditlog-logminfreediskspace", -1, 2147483647, "exp");
      },
      onPlus: () => {
        this.onPlusConfig("nsslapd-auditlog-logminfreediskspace", "exp");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 6
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Grid, {
      title: "Server deletes an old archived log file when it is older than the specified age. (nsslapd-auditlog-logexpirationtime)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Log File is Older Than ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-container"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.NumberInput, {
      value: this.state['nsslapd-auditlog-logexpirationtime'],
      min: -1,
      max: 2147483647,
      onMinus: () => {
        this.onMinusConfig("nsslapd-auditlog-logexpirationtime", "exp");
      },
      onChange: e => {
        this.onConfigChange(e, "nsslapd-auditlog-logexpirationtime", -1, 2147483647, "exp");
      },
      onPlus: () => {
        this.onPlusConfig("nsslapd-auditlog-logexpirationtime", "exp");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 3
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 2,
      className: "ds-left-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.FormSelect, {
      id: "nsslapd-auditlog-logexpirationtimeunit",
      value: this.state['nsslapd-auditlog-logexpirationtimeunit'],
      onChange: (str, e) => {
        this.handleChange(e, "exp");
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.FormSelectOption, {
      key: "2",
      value: "day",
      label: "day"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.FormSelectOption, {
      key: "3",
      value: "week",
      label: "week"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.FormSelectOption, {
      key: "4",
      value: "month",
      label: "month"
    }))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Button, _extends({
      key: "save del settings",
      isDisabled: this.state.saveExpDisabled,
      variant: "primary",
      className: "ds-margin-top-xlg",
      onClick: () => {
        this.saveConfig("exp");
      },
      isLoading: this.state.loading,
      spinnerAriaValueText: this.state.loading ? "Saving" : undefined
    }, extraPrimaryProps), saveDeletionName))));

    if (!this.state.loaded) {
      body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-loading-spinner ds-margin-top-xlg ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.TextVariants.h3
      }, "Loading Audit Log settings ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.Spinner, {
        className: "ds-margin-top",
        size: "lg"
      }));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      id: "server-auditlog-page",
      className: this.state.loading ? "ds-disabled" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.TextVariants.h3
    }, "Audit Log Settings ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, {
      size: "lg",
      className: "ds-left-margin ds-refresh",
      icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_22__.faSyncAlt,
      title: "Refresh log settings",
      onClick: () => {
        this.refreshConfig();
      }
    }))))), body);
  }

} // Property types and defaults

ServerAuditLog.propTypes = {
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().func),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().string),
  attrs: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().object)
};
ServerAuditLog.defaultProps = {
  serverId: "",
  attrs: {}
};

/***/ }),

/***/ "./src/lib/server/auditfailLog.jsx":
/*!*****************************************!*\
  !*** ./src/lib/server/auditfailLog.jsx ***!
  \*****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ServerAuditFailLog": () => (/* binding */ ServerAuditFailLog)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/NumberInput/NumberInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TimePicker/TimePicker.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
/* harmony import */ var _fortawesome_fontawesome_svg_core_styles_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core/styles.css */ "./node_modules/@fortawesome/fontawesome-svg-core/styles.css");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_22__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }









var settings_attrs = ['nsslapd-auditfaillog', 'nsslapd-auditfaillog-level', 'nsslapd-auditfaillog-logbuffering', 'nsslapd-auditfaillog-logging-enabled'];
var rotation_attrs = ['nsslapd-auditfaillog-logrotationsync-enabled', 'nsslapd-auditfaillog-logrotationsynchour', 'nsslapd-auditfaillog-logrotationsyncmin', 'nsslapd-auditfaillog-logrotationtime', 'nsslapd-auditfaillog-logrotationtimeunit', 'nsslapd-auditfaillog-maxlogsize', 'nsslapd-auditfaillog-maxlogsperdir'];
var rotation_attrs_no_time = ['nsslapd-auditfaillog-logrotationsync-enabled', 'nsslapd-auditfaillog-logrotationtime', 'nsslapd-auditfaillog-logrotationtimeunit', 'nsslapd-auditfaillog-maxlogsize', 'nsslapd-auditfaillog-maxlogsperdir'];
var exp_attrs = ['nsslapd-auditfaillog-logexpirationtime', 'nsslapd-auditfaillog-logexpirationtimeunit', 'nsslapd-auditfaillog-logmaxdiskspace', 'nsslapd-auditfaillog-logminfreediskspace'];
class ServerAuditFailLog extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      loading: true,
      loaded: false,
      activeTabKey: 0,
      saveSettingsDisabled: true,
      saveRotationDisabled: true,
      saveExpDisabled: true,
      attrs: this.props.attrs
    }; // Toggle currently active tab

    this.handleNavSelect = (event, tabIndex) => {
      this.setState({
        activeTabKey: tabIndex
      });
    };

    this.handleChange = this.handleChange.bind(this);
    this.handleTimeChange = this.handleTimeChange.bind(this);
    this.loadConfig = this.loadConfig.bind(this);
    this.refreshConfig = this.refreshConfig.bind(this);
    this.saveConfig = this.saveConfig.bind(this);

    this.onMinusConfig = (id, nav_tab) => {
      this.setState({
        [id]: Number(this.state[id]) - 1
      }, () => {
        this.validateSaveBtn(nav_tab, id, Number(this.state[id]));
      });
    };

    this.onConfigChange = (event, id, min, max, nav_tab) => {
      var maxValue = this.maxValue;

      if (max !== 0) {
        maxValue = max;
      }

      var newValue = isNaN(event.target.value) ? min : Number(event.target.value);
      newValue = newValue > maxValue ? maxValue : newValue < min ? min : newValue;
      this.setState({
        [id]: newValue
      }, () => {
        this.validateSaveBtn(nav_tab, id, newValue);
      });
    };

    this.onPlusConfig = (id, nav_tab) => {
      this.setState({
        [id]: Number(this.state[id]) + 1
      }, () => {
        this.validateSaveBtn(nav_tab, id, Number(this.state[id]));
      });
    };

    this.validateSaveBtn = this.validateSaveBtn.bind(this);
  }

  componentDidMount() {
    // Loading config
    if (!this.state.loaded) {
      this.loadConfig();
    } else {
      this.props.enableTree();
    }
  }

  validateSaveBtn(nav_tab, attr, value) {
    var disableSaveBtn = true;
    var disableBtnName = "";
    var config_attrs = [];

    if (nav_tab == "settings") {
      config_attrs = settings_attrs;
      disableBtnName = "saveSettingsDisabled";
    } else if (nav_tab == "rotation") {
      disableBtnName = "saveRotationDisabled";
      config_attrs = rotation_attrs;
    } else {
      config_attrs = exp_attrs;
      disableBtnName = "saveExpDisabled";
    } // Check if a setting was changed, if so enable the save button


    var _iterator = _createForOfIteratorHelper(config_attrs),
        _step;

    try {
      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        var config_attr = _step.value;

        if (attr == config_attr && this.state['_' + config_attr] != value) {
          disableSaveBtn = false;
          break;
        }
      } // Now check for differences in values that we did not touch

    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }

    var _iterator2 = _createForOfIteratorHelper(config_attrs),
        _step2;

    try {
      for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
        var _config_attr = _step2.value;

        if (attr != _config_attr && this.state['_' + _config_attr] != this.state[_config_attr]) {
          disableSaveBtn = false;
          break;
        }
      }
    } catch (err) {
      _iterator2.e(err);
    } finally {
      _iterator2.f();
    }

    this.setState({
      [disableBtnName]: disableSaveBtn
    });
  }

  handleChange(e, nav_tab) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    this.setState({
      [attr]: value
    }, () => {
      this.validateSaveBtn(nav_tab, attr, value);
    });
  }

  handleTimeChange(time_str) {
    var disableSaveBtn = true;
    var time_parts = time_str.split(":");
    var hour = time_parts[0];
    var min = time_parts[1];

    if (hour.length == 2 && hour[0] == "0") {
      hour = hour[1];
    }

    if (min.length == 2 && min[0] == "0") {
      min = min[1];
    } // Start doing the Save button checking


    var _iterator3 = _createForOfIteratorHelper(rotation_attrs_no_time),
        _step3;

    try {
      for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
        var config_attr = _step3.value;

        if (this.state[config_attr] != this.state['_' + config_attr]) {
          disableSaveBtn = false;
          break;
        }
      }
    } catch (err) {
      _iterator3.e(err);
    } finally {
      _iterator3.f();
    }

    if (hour != this.state['_nsslapd-auditfaillog-logrotationsynchour'] || min != this.state['_nsslapd-auditfaillog-logrotationsyncmin']) {
      disableSaveBtn = false;
    }

    this.setState({
      'nsslapd-auditfaillog-logrotationsynchour': hour,
      'nsslapd-auditfaillog-logrotationsyncmin': min,
      saveRotationDisabled: disableSaveBtn
    });
  }

  saveConfig(nav_tab) {
    this.setState({
      loading: true
    });
    var config_attrs = [];

    if (nav_tab == "settings") {
      config_attrs = settings_attrs;
    } else if (nav_tab == "rotation") {
      config_attrs = rotation_attrs;
    } else {
      config_attrs = exp_attrs;
    }

    var cmd = ['dsconf', '-j', "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", 'config', 'replace'];

    var _iterator4 = _createForOfIteratorHelper(config_attrs),
        _step4;

    try {
      for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
        var attr = _step4.value;

        if (this.state['_' + attr] != this.state[attr]) {
          var val = this.state[attr];

          if (typeof val === "boolean") {
            if (val) {
              val = "on";
            } else {
              val = "off";
            }
          }

          cmd.push(attr + "=" + val);
        }
      }
    } catch (err) {
      _iterator4.e(err);
    } finally {
      _iterator4.f();
    }

    if (cmd.length == 5) {
      // Nothing to save, just return
      return;
    }

    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("saveConfig", "Saving audit fail log settings", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.refreshConfig();
      this.props.addNotification("success", "Successfully updated Audit Fail Log settings");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.refreshConfig();
      this.props.addNotification("error", "Error saving Audit Fail Log settings - ".concat(errMsg.desc));
    });
  }

  refreshConfig() {
    this.setState({
      loading: true,
      loaded: false
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get"];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("refreshConfig", "load Audit Fail Log configuration", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var attrs = config.attrs;
      var enabled = false;

      if (attrs['nsslapd-auditfaillog-logging-enabled'][0] == "on") {
        enabled = true;
      }

      this.setState(() => ({
        loading: false,
        loaded: true,
        saveSettingsDisabled: true,
        saveRotationDisabled: true,
        saveExpDisabled: true,
        'nsslapd-auditfaillog': attrs['nsslapd-auditfaillog'][0],
        'nsslapd-auditfaillog-logexpirationtime': attrs['nsslapd-auditfaillog-logexpirationtime'][0],
        'nsslapd-auditfaillog-logexpirationtimeunit': attrs['nsslapd-auditfaillog-logexpirationtimeunit'][0],
        'nsslapd-auditfaillog-logging-enabled': enabled,
        'nsslapd-auditfaillog-logmaxdiskspace': attrs['nsslapd-auditfaillog-logmaxdiskspace'][0],
        'nsslapd-auditfaillog-logminfreediskspace': attrs['nsslapd-auditfaillog-logminfreediskspace'][0],
        'nsslapd-auditfaillog-logrotationsync-enabled': attrs['nsslapd-auditfaillog-logrotationsync-enabled'][0],
        'nsslapd-auditfaillog-logrotationsynchour': attrs['nsslapd-auditfaillog-logrotationsynchour'][0],
        'nsslapd-auditfaillog-logrotationsyncmin': attrs['nsslapd-auditfaillog-logrotationsyncmin'][0],
        'nsslapd-auditfaillog-logrotationtime': attrs['nsslapd-auditfaillog-logrotationtime'][0],
        'nsslapd-auditfaillog-logrotationtimeunit': attrs['nsslapd-auditfaillog-logrotationtimeunit'][0],
        'nsslapd-auditfaillog-maxlogsize': attrs['nsslapd-auditfaillog-maxlogsize'][0],
        'nsslapd-auditfaillog-maxlogsperdir': attrs['nsslapd-auditfaillog-maxlogsperdir'][0],
        // Record original values
        '_nsslapd-auditfaillog': attrs['nsslapd-auditfaillog'][0],
        '_nsslapd-auditfaillog-logexpirationtime': attrs['nsslapd-auditfaillog-logexpirationtime'][0],
        '_nsslapd-auditfaillog-logexpirationtimeunit': attrs['nsslapd-auditfaillog-logexpirationtimeunit'][0],
        '_nsslapd-auditfaillog-logging-enabled': enabled,
        '_nsslapd-auditfaillog-logmaxdiskspace': attrs['nsslapd-auditfaillog-logmaxdiskspace'][0],
        '_nsslapd-auditfaillog-logminfreediskspace': attrs['nsslapd-auditfaillog-logminfreediskspace'][0],
        '_nsslapd-auditfaillog-logrotationsync-enabled': attrs['nsslapd-auditfaillog-logrotationsync-enabled'][0],
        '_nsslapd-auditfaillog-logrotationsynchour': attrs['nsslapd-auditfaillog-logrotationsynchour'][0],
        '_nsslapd-auditfaillog-logrotationsyncmin': attrs['nsslapd-auditfaillog-logrotationsyncmin'][0],
        '_nsslapd-auditfaillog-logrotationtime': attrs['nsslapd-auditfaillog-logrotationtime'][0],
        '_nsslapd-auditfaillog-logrotationtimeunit': attrs['nsslapd-auditfaillog-logrotationtimeunit'][0],
        '_nsslapd-auditfaillog-maxlogsize': attrs['nsslapd-auditfaillog-maxlogsize'][0],
        '_nsslapd-auditfaillog-maxlogsperdir': attrs['nsslapd-auditfaillog-maxlogsperdir'][0]
      }));
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error loading Audit Fail Log configuration - ".concat(errMsg.desc));
      this.setState({
        loading: false,
        loaded: true
      });
    });
  }

  loadConfig() {
    var attrs = this.state.attrs;
    var enabled = false;

    if (attrs['nsslapd-auditfaillog-logging-enabled'][0] == "on") {
      enabled = true;
    }

    this.setState({
      loading: false,
      loaded: true,
      saveSettingsDisabled: true,
      saveRotationDisabled: true,
      saveExpDisabled: true,
      'nsslapd-auditfaillog': attrs['nsslapd-auditfaillog'][0],
      'nsslapd-auditfaillog-logexpirationtime': attrs['nsslapd-auditfaillog-logexpirationtime'][0],
      'nsslapd-auditfaillog-logexpirationtimeunit': attrs['nsslapd-auditfaillog-logexpirationtimeunit'][0],
      'nsslapd-auditfaillog-logging-enabled': enabled,
      'nsslapd-auditfaillog-logmaxdiskspace': attrs['nsslapd-auditfaillog-logmaxdiskspace'][0],
      'nsslapd-auditfaillog-logminfreediskspace': attrs['nsslapd-auditfaillog-logminfreediskspace'][0],
      'nsslapd-auditfaillog-logrotationsync-enabled': attrs['nsslapd-auditfaillog-logrotationsync-enabled'][0],
      'nsslapd-auditfaillog-logrotationsynchour': attrs['nsslapd-auditfaillog-logrotationsynchour'][0],
      'nsslapd-auditfaillog-logrotationsyncmin': attrs['nsslapd-auditfaillog-logrotationsyncmin'][0],
      'nsslapd-auditfaillog-logrotationtime': attrs['nsslapd-auditfaillog-logrotationtime'][0],
      'nsslapd-auditfaillog-logrotationtimeunit': attrs['nsslapd-auditfaillog-logrotationtimeunit'][0],
      'nsslapd-auditfaillog-maxlogsize': attrs['nsslapd-auditfaillog-maxlogsize'][0],
      'nsslapd-auditfaillog-maxlogsperdir': attrs['nsslapd-auditfaillog-maxlogsperdir'][0],
      // Record original values,
      '_nsslapd-auditfaillog': attrs['nsslapd-auditfaillog'][0],
      '_nsslapd-auditfaillog-logexpirationtime': attrs['nsslapd-auditfaillog-logexpirationtime'][0],
      '_nsslapd-auditfaillog-logexpirationtimeunit': attrs['nsslapd-auditfaillog-logexpirationtimeunit'][0],
      '_nsslapd-auditfaillog-logging-enabled': enabled,
      '_nsslapd-auditfaillog-logmaxdiskspace': attrs['nsslapd-auditfaillog-logmaxdiskspace'][0],
      '_nsslapd-auditfaillog-logminfreediskspace': attrs['nsslapd-auditfaillog-logminfreediskspace'][0],
      '_nsslapd-auditfaillog-logrotationsync-enabled': attrs['nsslapd-auditfaillog-logrotationsync-enabled'][0],
      '_nsslapd-auditfaillog-logrotationsynchour': attrs['nsslapd-auditfaillog-logrotationsynchour'][0],
      '_nsslapd-auditfaillog-logrotationsyncmin': attrs['nsslapd-auditfaillog-logrotationsyncmin'][0],
      '_nsslapd-auditfaillog-logrotationtime': attrs['nsslapd-auditfaillog-logrotationtime'][0],
      '_nsslapd-auditfaillog-logrotationtimeunit': attrs['nsslapd-auditfaillog-logrotationtimeunit'][0],
      '_nsslapd-auditfaillog-maxlogsize': attrs['nsslapd-auditfaillog-maxlogsize'][0],
      '_nsslapd-auditfaillog-maxlogsperdir': attrs['nsslapd-auditfaillog-maxlogsperdir'][0]
    }, this.props.enableTree);
  }

  render() {
    var saveSettingsName = "Save Log Settings";
    var saveRotationName = "Save Rotation Settings";
    var saveDeletionName = "Save Deletion Settings";
    var extraPrimaryProps = {};
    var rotationTime = "";
    var hour = this.state['nsslapd-auditfaillog-logrotationsynchour'] ? this.state['nsslapd-auditfaillog-logrotationsynchour'] : "00";
    var min = this.state['nsslapd-auditfaillog-logrotationsyncmin'] ? this.state['nsslapd-auditfaillog-logrotationsyncmin'] : "00";

    if (this.state.loading) {
      saveSettingsName = "Saving settings ...";
      saveRotationName = "Saving settings ...";
      saveDeletionName = "Saving settings ...";
      extraPrimaryProps.spinnerAriaValueText = "Loading";
    } // Adjust time string for TimePicket


    if (hour.length == 1) {
      hour = "0" + hour;
    }

    if (min.length == 1) {
      min = "0" + min;
    }

    rotationTime = hour + ":" + min;
    var body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top-lg ds-left-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Tabs, {
      className: "ds-margin-top-xlg",
      activeKey: this.state.activeTabKey,
      onSelect: this.handleNavSelect
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Tab, {
      eventKey: 0,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TabTitleText, null, "Settings")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Checkbox, {
      className: "ds-margin-top-xlg",
      id: "nsslapd-auditfaillog-logging-enabled",
      isChecked: this.state['nsslapd-auditfaillog-logging-enabled'],
      onChange: (checked, e) => {
        this.handleChange(e, "settings");
      },
      title: "Enable audit fail logging (nsslapd-auditfaillog-logging-enabled).",
      label: "Enable Audit Fail Logging"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-top-xlg ds-margin-left",
      title: "Enable audit fail logging (nsslapd-auditfaillog)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      className: "ds-label",
      span: 2
    }, "Audit Fail Log Location"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 10
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      value: this.state['nsslapd-auditfaillog'],
      type: "text",
      id: "nsslapd-auditfaillog",
      "aria-describedby": "horizontal-form-name-helper",
      name: "nsslapd-auditfaillog",
      onChange: (str, e) => {
        this.handleChange(e, "settings");
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Button, _extends({
      key: "save settings",
      isDisabled: this.state.saveSettingsDisabled,
      variant: "primary",
      className: "ds-margin-top-xlg",
      onClick: () => {
        this.saveConfig("settings");
      },
      isLoading: this.state.loading,
      spinnerAriaValueText: this.state.loading ? "Saving" : undefined
    }, extraPrimaryProps), saveSettingsName)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Tab, {
      eventKey: 1,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TabTitleText, null, "Rotation Policy")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Form, {
      className: "ds-margin-top-lg",
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-top",
      title: "The maximum number of logs that are archived (nsslapd-auditfaillog-maxlogsperdir)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Maximum Number Of Logs"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.NumberInput, {
      value: this.state['nsslapd-auditfaillog-maxlogsperdir'],
      min: 1,
      max: 2147483647,
      onMinus: () => {
        this.onMinusConfig("nsslapd-auditfaillog-maxlogsperdir", "rotation");
      },
      onChange: e => {
        this.onConfigChange(e, "nsslapd-auditfaillog-maxlogsperdir", 1, 2147483647, "rotation");
      },
      onPlus: () => {
        this.onPlusConfig("nsslapd-auditfaillog-maxlogsperdir", "rotation");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 6
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      title: "The maximum size of each log file in megabytes (nsslapd-auditfaillog-maxlogsize)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Maximum Log Size (in MB)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.NumberInput, {
      value: this.state['nsslapd-auditfaillog-maxlogsize'],
      min: -1,
      max: 2147483647,
      onMinus: () => {
        this.onMinusConfig("nsslapd-auditfaillog-maxlogsize", "rotation");
      },
      onChange: e => {
        this.onConfigChange(e, "nsslapd-auditfaillog-maxlogsize", -1, 2147483647, "rotation");
      },
      onPlus: () => {
        this.onPlusConfig("nsslapd-auditfaillog-maxlogsize", "rotation");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 6
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      title: "Rotate the log based this number of time units (nsslapd-auditfaillog-logrotationtime)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Create New Log Every ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-container"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.NumberInput, {
      value: this.state['nsslapd-auditfaillog-logrotationtime'],
      min: -1,
      max: 2147483647,
      onMinus: () => {
        this.onMinusConfig("nsslapd-auditfaillog-logrotationtime", "rotation");
      },
      onChange: e => {
        this.onConfigChange(e, "nsslapd-auditfaillog-logrotationtime", -1, 2147483647, "rotation");
      },
      onPlus: () => {
        this.onPlusConfig("nsslapd-auditfaillog-logrotationtime", "rotation");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 3
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 2,
      className: "ds-left-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.FormSelect, {
      id: "nsslapd-auditfaillog-logrotationtimeunit",
      value: this.state['nsslapd-auditfaillog-logrotationtimeunit'],
      onChange: (str, e) => {
        this.handleChange(e, "rotation");
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.FormSelectOption, {
      key: "0",
      value: "minute",
      label: "minute"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.FormSelectOption, {
      key: "1",
      value: "hour",
      label: "hour"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.FormSelectOption, {
      key: "2",
      value: "day",
      label: "day"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.FormSelectOption, {
      key: "3",
      value: "week",
      label: "week"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.FormSelectOption, {
      key: "4",
      value: "month",
      label: "month"
    })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      title: "The time when the log should be rotated (nsslapd-auditfaillog-logrotationsynchour, nsslapd-auditfaillog-logrotationsyncmin)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Time Of Day"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 1
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.TimePicker, {
      time: rotationTime,
      onChange: this.handleTimeChange,
      is24Hour: true
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Button, _extends({
      key: "save rot settings",
      isDisabled: this.state.saveRotationDisabled,
      variant: "primary",
      className: "ds-margin-top-xlg",
      onClick: () => {
        this.saveConfig("rotation");
      },
      isLoading: this.state.loading,
      spinnerAriaValueText: this.state.loading ? "Saving" : undefined
    }, extraPrimaryProps), saveRotationName)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Tab, {
      eventKey: 2,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TabTitleText, null, "Deletion Policy")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Form, {
      className: "ds-margin-top-lg",
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      className: "ds-margin-top",
      title: "The server deletes the oldest archived log when the total of all the logs reaches this amount (nsslapd-auditfaillog-logmaxdiskspace)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Log Archive Exceeds (in MB)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 1
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.NumberInput, {
      value: this.state['nsslapd-auditfaillog-logmaxdiskspace'],
      min: -1,
      max: 2147483647,
      onMinus: () => {
        this.onMinusConfig("nsslapd-auditfaillog-logmaxdiskspace", "exp");
      },
      onChange: e => {
        this.onConfigChange(e, "nsslapd-auditfaillog-logmaxdiskspace", -1, 2147483647, "exp");
      },
      onPlus: () => {
        this.onPlusConfig("nsslapd-auditfaillog-logmaxdiskspace", "exp");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 6
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      title: "The server deletes the oldest archived log file when available disk space is less than this amount. (nsslapd-auditfaillog-logminfreediskspace)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Free Disk Space (in MB)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 1
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.NumberInput, {
      value: this.state['nsslapd-auditfaillog-logminfreediskspace'],
      min: -1,
      max: 2147483647,
      onMinus: () => {
        this.onMinusConfig("nsslapd-auditfaillog-logminfreediskspace", "exp");
      },
      onChange: e => {
        this.onConfigChange(e, "nsslapd-auditfaillog-logminfreediskspace", -1, 2147483647, "exp");
      },
      onPlus: () => {
        this.onPlusConfig("nsslapd-auditfaillog-logminfreediskspace", "exp");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 6
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, {
      title: "Server deletes an old archived log file when it is older than the specified age. (nsslapd-auditfaillog-logexpirationtime)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Log File is Older Than ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-container"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.NumberInput, {
      value: this.state['nsslapd-auditfaillog-logexpirationtime'],
      min: -1,
      max: 2147483647,
      onMinus: () => {
        this.onMinusConfig("nsslapd-auditfaillog-logexpirationtime", "exp");
      },
      onChange: e => {
        this.onConfigChange(e, "nsslapd-auditfaillog-logexpirationtime", -1, 2147483647, "exp");
      },
      onPlus: () => {
        this.onPlusConfig("nsslapd-auditfaillog-logexpirationtime", "exp");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 3
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 2,
      className: "ds-left-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.FormSelect, {
      id: "nsslapd-auditfaillog-logexpirationtimeunit",
      value: this.state['nsslapd-auditfaillog-logexpirationtimeunit'],
      onChange: (str, e) => {
        this.handleChange(e, "exp");
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.FormSelectOption, {
      key: "2",
      value: "day",
      label: "day"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.FormSelectOption, {
      key: "3",
      value: "week",
      label: "week"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.FormSelectOption, {
      key: "4",
      value: "month",
      label: "month"
    }))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Button, _extends({
      key: "save del settings",
      isDisabled: this.state.saveExpDisabled,
      variant: "primary",
      className: "ds-margin-top-xlg",
      onClick: () => {
        this.saveConfig("exp");
      },
      isLoading: this.state.loading,
      spinnerAriaValueText: this.state.loading ? "Saving" : undefined
    }, extraPrimaryProps), saveDeletionName))));

    if (!this.state.loaded) {
      body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-loading-spinner ds-margin-top-xlg ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.TextVariants.h3
      }, "Loading Audit Fail Log Settings ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Spinner, {
        className: "ds-margin-top",
        size: "lg"
      }));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      id: "server-auditfaillog-page",
      className: this.state.loading ? "ds-disabled" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.TextVariants.h3
    }, "Audit Fail Log Settings ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, {
      size: "lg",
      className: "ds-left-margin ds-refresh",
      icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_21__.faSyncAlt,
      title: "Refresh log settings",
      onClick: () => {
        this.refreshConfig();
      }
    }))))), body);
  }

} // Property types and defaults

ServerAuditFailLog.propTypes = {
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().func),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().string),
  attrs: (prop_types__WEBPACK_IMPORTED_MODULE_22___default().object)
};
ServerAuditFailLog.defaultProps = {
  serverId: "",
  attrs: {}
};

/***/ }),

/***/ "./src/lib/server/errorLog.jsx":
/*!*************************************!*\
  !*** ./src/lib/server/errorLog.jsx ***!
  \*************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ServerErrorLog": () => (/* binding */ ServerErrorLog)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormGroup.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/ExpandableSection/ExpandableSection.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/NumberInput/NumberInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TimePicker/TimePicker.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Table.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableTypes.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Header.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Body.js");
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
/* harmony import */ var _fortawesome_fontawesome_svg_core_styles_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core/styles.css */ "./node_modules/@fortawesome/fontawesome-svg-core/styles.css");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_28__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }










var settings_attrs = ['nsslapd-errorlog', 'nsslapd-errorlog-level', 'nsslapd-errorlog-logging-enabled'];
var rotation_attrs = ['nsslapd-errorlog-logrotationsync-enabled', 'nsslapd-errorlog-logrotationsynchour', 'nsslapd-errorlog-logrotationsyncmin', 'nsslapd-errorlog-logrotationtime', 'nsslapd-errorlog-logrotationtimeunit', 'nsslapd-errorlog-maxlogsize', 'nsslapd-errorlog-maxlogsperdir'];
var rotation_attrs_no_time = ['nsslapd-errorlog-logrotationsync-enabled', 'nsslapd-errorlog-logrotationtime', 'nsslapd-errorlog-logrotationtimeunit', 'nsslapd-errorlog-maxlogsize', 'nsslapd-errorlog-maxlogsperdir'];
var exp_attrs = ['nsslapd-errorlog-logexpirationtime', 'nsslapd-errorlog-logexpirationtimeunit', 'nsslapd-errorlog-logmaxdiskspace', 'nsslapd-errorlog-logminfreediskspace'];
class ServerErrorLog extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      loading: true,
      loaded: false,
      activeTabKey: 0,
      saveSettingsDisabled: true,
      saveRotationDisabled: true,
      saveExpDisabled: true,
      attrs: this.props.attrs,
      canSelectAll: false,
      isExpanded: false,
      rows: [{
        cells: ['Trace Function Calls'],
        level: 1,
        selected: false
      }, {
        cells: ['Packet Handling'],
        level: 2,
        selected: false
      }, {
        cells: ['Heavy Trace Output'],
        level: 4,
        selected: false
      }, {
        cells: ['Connection Management'],
        level: 8,
        selected: false
      }, {
        cells: ['Packets Sent & Received'],
        level: 16,
        selected: false
      }, {
        cells: ['Search Filter Processing'],
        level: 32,
        selected: false
      }, {
        cells: ['Config File Processing'],
        level: 64,
        selected: false
      }, {
        cells: ['Access Control List Processing'],
        level: 128,
        selected: false
      }, {
        cells: ['Log Entry Parsing'],
        level: 2048,
        selected: false
      }, {
        cells: ['Housekeeping'],
        level: 4096,
        selected: false
      }, {
        cells: ['Replication'],
        level: 8192,
        selected: false
      }, {
        cells: ['Entry Cache'],
        level: 32768,
        selected: false
      }, {
        cells: ['Plugin'],
        level: 65536,
        selected: false
      }, {
        cells: ['Access Control Summary'],
        level: 262144,
        selected: false
      }],
      columns: [{
        title: 'Logging Level'
      }]
    };

    this.onToggle = isExpanded => {
      this.setState({
        isExpanded
      });
    }; // Toggle currently active tab


    this.handleNavSelect = (event, tabIndex) => {
      this.setState({
        activeTabKey: tabIndex
      });
    };

    this.handleChange = this.handleChange.bind(this);
    this.handleTimeChange = this.handleTimeChange.bind(this);
    this.loadConfig = this.loadConfig.bind(this);
    this.refreshConfig = this.refreshConfig.bind(this);
    this.saveConfig = this.saveConfig.bind(this);
    this.onSelect = this.onSelect.bind(this);

    this.onMinusConfig = (id, nav_tab) => {
      this.setState({
        [id]: Number(this.state[id]) - 1
      }, () => {
        this.validateSaveBtn(nav_tab, id, Number(this.state[id]));
      });
    };

    this.onConfigChange = (event, id, min, max, nav_tab) => {
      var maxValue = this.maxValue;

      if (max !== 0) {
        maxValue = max;
      }

      var newValue = isNaN(event.target.value) ? min : Number(event.target.value);
      newValue = newValue > maxValue ? maxValue : newValue < min ? min : newValue;
      this.setState({
        [id]: newValue
      }, () => {
        this.validateSaveBtn(nav_tab, id, newValue);
      });
    };

    this.onPlusConfig = (id, nav_tab) => {
      this.setState({
        [id]: Number(this.state[id]) + 1
      }, () => {
        this.validateSaveBtn(nav_tab, id, Number(this.state[id]));
      });
    };

    this.validateSaveBtn = this.validateSaveBtn.bind(this);
  }

  componentDidMount() {
    // Loading config
    if (!this.state.loaded) {
      this.loadConfig();
    } else {
      this.props.enableTree();
    }
  }

  validateSaveBtn(nav_tab, attr, value) {
    var disableSaveBtn = true;
    var disableBtnName = "";
    var config_attrs = [];

    if (nav_tab == "settings") {
      config_attrs = settings_attrs;
      disableBtnName = "saveSettingsDisabled"; // Handle the table contents check now

      var _iterator = _createForOfIteratorHelper(this.state.rows),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var row = _step.value;

          var _iterator2 = _createForOfIteratorHelper(this.state._rows),
              _step2;

          try {
            for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
              var orig_row = _step2.value;

              if (orig_row.cells[0] == row.cells[0]) {
                if (orig_row.selected != row.selected) {
                  disableSaveBtn = false;
                  break;
                }
              }
            }
          } catch (err) {
            _iterator2.e(err);
          } finally {
            _iterator2.f();
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }
    } else if (nav_tab == "rotation") {
      disableBtnName = "saveRotationDisabled";
      config_attrs = rotation_attrs;
    } else {
      config_attrs = exp_attrs;
      disableBtnName = "saveExpDisabled";
    } // Check if a setting was changed, if so enable the save button


    var _iterator3 = _createForOfIteratorHelper(config_attrs),
        _step3;

    try {
      for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
        var config_attr = _step3.value;

        if (attr == config_attr && this.state['_' + config_attr] != value) {
          disableSaveBtn = false;
          break;
        }
      } // Now check for differences in values that we did not touch

    } catch (err) {
      _iterator3.e(err);
    } finally {
      _iterator3.f();
    }

    var _iterator4 = _createForOfIteratorHelper(config_attrs),
        _step4;

    try {
      for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
        var _config_attr = _step4.value;

        if (attr != _config_attr && this.state['_' + _config_attr] != this.state[_config_attr]) {
          disableSaveBtn = false;
          break;
        }
      }
    } catch (err) {
      _iterator4.e(err);
    } finally {
      _iterator4.f();
    }

    this.setState({
      [disableBtnName]: disableSaveBtn
    });
  }

  handleChange(e, nav_tab) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    this.setState({
      [attr]: value
    }, () => {
      this.validateSaveBtn(nav_tab, attr, value);
    });
  }

  handleTimeChange(time_str) {
    var disableSaveBtn = true;
    var time_parts = time_str.split(":");
    var hour = time_parts[0];
    var min = time_parts[1];

    if (hour.length == 2 && hour[0] == "0") {
      hour = hour[1];
    }

    if (min.length == 2 && min[0] == "0") {
      min = min[1];
    } // Start doing the Save button checking


    var _iterator5 = _createForOfIteratorHelper(rotation_attrs_no_time),
        _step5;

    try {
      for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
        var config_attr = _step5.value;

        if (this.state[config_attr] != this.state['_' + config_attr]) {
          disableSaveBtn = false;
          break;
        }
      }
    } catch (err) {
      _iterator5.e(err);
    } finally {
      _iterator5.f();
    }

    if (hour != this.state['_nsslapd-errorlog-logrotationsynchour'] || min != this.state['_nsslapd-errorlog-logrotationsyncmin']) {
      disableSaveBtn = false;
    }

    this.setState({
      'nsslapd-errorlog-logrotationsynchour': hour,
      'nsslapd-errorlog-logrotationsyncmin': min,
      saveRotationDisabled: disableSaveBtn
    });
  }

  saveConfig(nav_tab) {
    var new_level = 0;
    this.setState({
      loading: true
    });
    var config_attrs = [];

    if (nav_tab == "settings") {
      config_attrs = settings_attrs;
    } else if (nav_tab == "rotation") {
      config_attrs = rotation_attrs;
    } else {
      config_attrs = exp_attrs;
    }

    var cmd = ['dsconf', '-j', "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", 'config', 'replace'];

    var _iterator6 = _createForOfIteratorHelper(config_attrs),
        _step6;

    try {
      for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
        var attr = _step6.value;

        if (this.state['_' + attr] != this.state[attr]) {
          var val = this.state[attr];

          if (typeof val === "boolean") {
            if (val) {
              val = "on";
            } else {
              val = "off";
            }
          }

          cmd.push(attr + "=" + val);
        }
      }
    } catch (err) {
      _iterator6.e(err);
    } finally {
      _iterator6.f();
    }

    var _iterator7 = _createForOfIteratorHelper(this.state.rows),
        _step7;

    try {
      for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
        var row = _step7.value;

        if (row.selected) {
          new_level += row.level;
        }
      }
    } catch (err) {
      _iterator7.e(err);
    } finally {
      _iterator7.f();
    }

    if (new_level.toString() != this.state['_nsslapd-errorlog-level']) {
      if (new_level == 0) {
        new_level = 16384; // default
      }

      cmd.push("nsslapd-errorlog-level" + "=" + new_level.toString());
    }

    if (cmd.length == 5) {
      // Nothing to save, just return
      return;
    }

    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("saveConfig", "Saving Error log settings", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.refreshConfig();
      this.props.addNotification("success", "Successfully updated Error Log settings");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.refreshConfig();
      this.props.addNotification("error", "Error saving Error Log settings - ".concat(errMsg.desc));
    });
  }

  refreshConfig() {
    this.setState({
      loading: true,
      loaded: false
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get"];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("refreshConfig", "load Error Log configuration", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var attrs = config.attrs;
      var enabled = false;
      var level_val = parseInt(attrs['nsslapd-errorlog-level'][0]);
      var rows = [...this.state.rows];

      if (attrs['nsslapd-errorlog-logging-enabled'][0] == "on") {
        enabled = true;
      }

      for (var row in rows) {
        if (rows[row].level & level_val) {
          rows[row].selected = true;
        } else {
          rows[row].selected = false;
        }
      }

      this.setState(() => ({
        loading: false,
        loaded: true,
        saveSettingsDisabled: true,
        saveRotationDisabled: true,
        saveExpDisabled: true,
        'nsslapd-errorlog': attrs['nsslapd-errorlog'][0],
        'nsslapd-errorlog-level': attrs['nsslapd-errorlog-level'][0],
        'nsslapd-errorlog-logexpirationtime': attrs['nsslapd-errorlog-logexpirationtime'][0],
        'nsslapd-errorlog-logexpirationtimeunit': attrs['nsslapd-errorlog-logexpirationtimeunit'][0],
        'nsslapd-errorlog-logging-enabled': enabled,
        'nsslapd-errorlog-logmaxdiskspace': attrs['nsslapd-errorlog-logmaxdiskspace'][0],
        'nsslapd-errorlog-logminfreediskspace': attrs['nsslapd-errorlog-logminfreediskspace'][0],
        'nsslapd-errorlog-logrotationsync-enabled': attrs['nsslapd-errorlog-logrotationsync-enabled'][0],
        'nsslapd-errorlog-logrotationsynchour': attrs['nsslapd-errorlog-logrotationsynchour'][0],
        'nsslapd-errorlog-logrotationsyncmin': attrs['nsslapd-errorlog-logrotationsyncmin'][0],
        'nsslapd-errorlog-logrotationtime': attrs['nsslapd-errorlog-logrotationtime'][0],
        'nsslapd-errorlog-logrotationtimeunit': attrs['nsslapd-errorlog-logrotationtimeunit'][0],
        'nsslapd-errorlog-maxlogsize': attrs['nsslapd-errorlog-maxlogsize'][0],
        'nsslapd-errorlog-maxlogsperdir': attrs['nsslapd-errorlog-maxlogsperdir'][0],
        rows: rows,
        // Record original values
        _rows: JSON.parse(JSON.stringify(rows)),
        '_nsslapd-errorlog': attrs['nsslapd-errorlog'][0],
        '_nsslapd-errorlog-level': attrs['nsslapd-errorlog-level'][0],
        '_nsslapd-errorlog-logexpirationtime': attrs['nsslapd-errorlog-logexpirationtime'][0],
        '_nsslapd-errorlog-logexpirationtimeunit': attrs['nsslapd-errorlog-logexpirationtimeunit'][0],
        '_nsslapd-errorlog-logging-enabled': enabled,
        '_nsslapd-errorlog-logmaxdiskspace': attrs['nsslapd-errorlog-logmaxdiskspace'][0],
        '_nsslapd-errorlog-logminfreediskspace': attrs['nsslapd-errorlog-logminfreediskspace'][0],
        '_nsslapd-errorlog-logrotationsync-enabled': attrs['nsslapd-errorlog-logrotationsync-enabled'][0],
        '_nsslapd-errorlog-logrotationsynchour': attrs['nsslapd-errorlog-logrotationsynchour'][0],
        '_nsslapd-errorlog-logrotationsyncmin': attrs['nsslapd-errorlog-logrotationsyncmin'][0],
        '_nsslapd-errorlog-logrotationtime': attrs['nsslapd-errorlog-logrotationtime'][0],
        '_nsslapd-errorlog-logrotationtimeunit': attrs['nsslapd-errorlog-logrotationtimeunit'][0],
        '_nsslapd-errorlog-maxlogsize': attrs['nsslapd-errorlog-maxlogsize'][0],
        '_nsslapd-errorlog-maxlogsperdir': attrs['nsslapd-errorlog-maxlogsperdir'][0]
      }));
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error loading Error Log configuration - ".concat(errMsg.desc));
      this.setState({
        loading: false,
        loaded: true
      });
    });
  }

  loadConfig() {
    var attrs = this.state.attrs;
    var enabled = false;
    var level_val = parseInt(attrs['nsslapd-errorlog-level'][0]);
    var rows = [...this.state.rows];

    if (attrs['nsslapd-errorlog-logging-enabled'][0] == "on") {
      enabled = true;
    }

    for (var row in rows) {
      if (rows[row].level & level_val) {
        rows[row].selected = true;
      } else {
        rows[row].selected = false;
      }
    }

    this.setState({
      loading: false,
      loaded: true,
      saveSettingsDisabled: true,
      saveRotationDisabled: true,
      saveExpDisabled: true,
      'nsslapd-errorlog': attrs['nsslapd-errorlog'][0],
      'nsslapd-errorlog-level': attrs['nsslapd-errorlog-level'][0],
      'nsslapd-errorlog-logexpirationtime': attrs['nsslapd-errorlog-logexpirationtime'][0],
      'nsslapd-errorlog-logexpirationtimeunit': attrs['nsslapd-errorlog-logexpirationtimeunit'][0],
      'nsslapd-errorlog-logging-enabled': enabled,
      'nsslapd-errorlog-logmaxdiskspace': attrs['nsslapd-errorlog-logmaxdiskspace'][0],
      'nsslapd-errorlog-logminfreediskspace': attrs['nsslapd-errorlog-logminfreediskspace'][0],
      'nsslapd-errorlog-logrotationsync-enabled': attrs['nsslapd-errorlog-logrotationsync-enabled'][0],
      'nsslapd-errorlog-logrotationsynchour': attrs['nsslapd-errorlog-logrotationsynchour'][0],
      'nsslapd-errorlog-logrotationsyncmin': attrs['nsslapd-errorlog-logrotationsyncmin'][0],
      'nsslapd-errorlog-logrotationtime': attrs['nsslapd-errorlog-logrotationtime'][0],
      'nsslapd-errorlog-logrotationtimeunit': attrs['nsslapd-errorlog-logrotationtimeunit'][0],
      'nsslapd-errorlog-maxlogsize': attrs['nsslapd-errorlog-maxlogsize'][0],
      'nsslapd-errorlog-maxlogsperdir': attrs['nsslapd-errorlog-maxlogsperdir'][0],
      rows: rows,
      // Record original values
      _rows: JSON.parse(JSON.stringify(rows)),
      '_nsslapd-errorlog': attrs['nsslapd-errorlog'][0],
      '_nsslapd-errorlog-level': attrs['nsslapd-errorlog-level'][0],
      '_nsslapd-errorlog-logexpirationtime': attrs['nsslapd-errorlog-logexpirationtime'][0],
      '_nsslapd-errorlog-logexpirationtimeunit': attrs['nsslapd-errorlog-logexpirationtimeunit'][0],
      '_nsslapd-errorlog-logging-enabled': enabled,
      '_nsslapd-errorlog-logmaxdiskspace': attrs['nsslapd-errorlog-logmaxdiskspace'][0],
      '_nsslapd-errorlog-logminfreediskspace': attrs['nsslapd-errorlog-logminfreediskspace'][0],
      '_nsslapd-errorlog-logrotationsync-enabled': attrs['nsslapd-errorlog-logrotationsync-enabled'][0],
      '_nsslapd-errorlog-logrotationsynchour': attrs['nsslapd-errorlog-logrotationsynchour'][0],
      '_nsslapd-errorlog-logrotationsyncmin': attrs['nsslapd-errorlog-logrotationsyncmin'][0],
      '_nsslapd-errorlog-logrotationtime': attrs['nsslapd-errorlog-logrotationtime'][0],
      '_nsslapd-errorlog-logrotationtimeunit': attrs['nsslapd-errorlog-logrotationtimeunit'][0],
      '_nsslapd-errorlog-maxlogsize': attrs['nsslapd-errorlog-maxlogsize'][0],
      '_nsslapd-errorlog-maxlogsperdir': attrs['nsslapd-errorlog-maxlogsperdir'][0]
    }, this.props.enableTree);
  }

  onSelect(event, isSelected, rowId) {
    var disableSaveBtn = true;
    var rows = JSON.parse(JSON.stringify(this.state.rows)); // Update the row

    rows[rowId].selected = isSelected; // Handle "save button" state, first check the other config settings

    var _iterator8 = _createForOfIteratorHelper(settings_attrs),
        _step8;

    try {
      for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
        var config_attr = _step8.value;

        if (this.state['_' + config_attr] != this.state[config_attr]) {
          disableSaveBtn = false;
          break;
        }
      } // Handle the table contents

    } catch (err) {
      _iterator8.e(err);
    } finally {
      _iterator8.f();
    }

    var _iterator9 = _createForOfIteratorHelper(rows),
        _step9;

    try {
      for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
        var row = _step9.value;

        var _iterator10 = _createForOfIteratorHelper(this.state._rows),
            _step10;

        try {
          for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
            var orig_row = _step10.value;

            if (orig_row.cells[0] == row.cells[0]) {
              if (orig_row.selected != row.selected) {
                disableSaveBtn = false;
                break;
              }
            }
          }
        } catch (err) {
          _iterator10.e(err);
        } finally {
          _iterator10.f();
        }
      }
    } catch (err) {
      _iterator9.e(err);
    } finally {
      _iterator9.f();
    }

    this.setState({
      rows,
      saveSettingsDisabled: disableSaveBtn
    });
  }

  render() {
    var saveSettingsName = "Save Log Settings";
    var saveRotationName = "Save Rotation Settings";
    var saveDeletionName = "Save Deletion Settings";
    var extraPrimaryProps = {};
    var rotationTime = "";
    var hour = this.state['nsslapd-errorlog-logrotationsynchour'] ? this.state['nsslapd-errorlog-logrotationsynchour'] : "00";
    var min = this.state['nsslapd-errorlog-logrotationsyncmin'] ? this.state['nsslapd-errorlog-logrotationsyncmin'] : "00";

    if (this.state.loading) {
      saveSettingsName = "Saving settings ...";
      saveRotationName = "Saving settings ...";
      saveDeletionName = "Saving settings ...";
      extraPrimaryProps.spinnerAriaValueText = "Loading";
    } // Adjust time string for TimePicket


    if (hour.length == 1) {
      hour = "0" + hour;
    }

    if (min.length == 1) {
      min = "0" + min;
    }

    rotationTime = hour + ":" + min;
    var body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top-lg ds-left-margin"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Tabs, {
      className: "ds-margin-top-xlg",
      activeKey: this.state.activeTabKey,
      onSelect: this.handleNavSelect
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Tab, {
      eventKey: 0,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TabTitleText, null, "Settings")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Checkbox, {
      className: "ds-margin-top-xlg",
      id: "nsslapd-errorlog-logging-enabled",
      isChecked: this.state['nsslapd-errorlog-logging-enabled'],
      onChange: (checked, e) => {
        this.handleChange(e, "settings");
      },
      title: "Enable Error logging (nsslapd-errorlog-logging-enabled).",
      label: "Enable Error Logging"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Form, {
      className: "ds-margin-top-lg ds-left-margin-md",
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.FormGroup, {
      label: "Error Log Location",
      fieldId: "nsslapd-errorlog",
      title: "Enable Error logging (nsslapd-errorlog)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextInput, {
      value: this.state['nsslapd-errorlog'],
      type: "text",
      id: "nsslapd-errorlog",
      "aria-describedby": "horizontal-form-name-helper",
      name: "nsslapd-errorlog",
      onChange: (str, e) => {
        this.handleChange(e, "settings");
      }
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.ExpandableSection, {
      className: "ds-left-margin-md ds-margin-top-lg ds-font-size-md",
      toggleText: this.state.isExpanded ? 'Hide Verbose Logging Levels' : 'Show Verbose Logging Levels',
      onToggle: this.onToggle,
      isExpanded: this.state.isExpanded
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_13__.Table, {
      className: "ds-left-margin",
      onSelect: this.onSelect,
      canSelectAll: this.state.canSelectAll,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_14__.TableVariant.compact,
      "aria-label": "Selectable Table",
      cells: this.state.columns,
      rows: this.state.rows
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_15__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_16__.TableBody, null))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.Button, _extends({
      key: "save settings",
      isDisabled: this.state.saveSettingsDisabled,
      variant: "primary",
      className: "ds-margin-top-xlg",
      onClick: () => {
        this.saveConfig("settings");
      },
      isLoading: this.state.loading,
      spinnerAriaValueText: this.state.loading ? "Saving" : undefined
    }, extraPrimaryProps), saveSettingsName)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Tab, {
      eventKey: 1,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TabTitleText, null, "Rotation Policy")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Form, {
      className: "ds-margin-top-lg",
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Grid, {
      className: "ds-margin-top",
      title: "The maximum number of logs that are archived (nsslapd-errorlog-maxlogsperdir)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Maximum Number Of Logs"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.NumberInput, {
      value: this.state['nsslapd-errorlog-maxlogsperdir'],
      min: 1,
      max: 2147483647,
      onMinus: () => {
        this.onMinusConfig("nsslapd-errorlog-maxlogsperdir", "rotation");
      },
      onChange: e => {
        this.onConfigChange(e, "nsslapd-errorlog-maxlogsperdir", 1, 2147483647, "rotation");
      },
      onPlus: () => {
        this.onPlusConfig("nsslapd-errorlog-maxlogsperdir", "rotation");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 6
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Grid, {
      title: "The maximum size of each log file in megabytes (nsslapd-errorlog-maxlogsize)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Maximum Log Size (in MB)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.NumberInput, {
      value: this.state['nsslapd-errorlog-maxlogsize'],
      min: -1,
      max: 2147483647,
      onMinus: () => {
        this.onMinusConfig("nsslapd-errorlog-maxlogsize", "rotation");
      },
      onChange: e => {
        this.onConfigChange(e, "nsslapd-errorlog-maxlogsize", -1, 2147483647, "rotation");
      },
      onPlus: () => {
        this.onPlusConfig("nsslapd-errorlog-maxlogsize", "rotation");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 6
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Grid, {
      title: "Rotate the log based this number of time units (nsslapd-errorlog-logrotationtime)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Create New Log Every ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-container"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.NumberInput, {
      value: this.state['nsslapd-errorlog-logrotationtime'],
      min: -1,
      max: 2147483647,
      onMinus: () => {
        this.onMinusConfig("nsslapd-errorlog-logrotationtime", "rotation");
      },
      onChange: e => {
        this.onConfigChange(e, "nsslapd-errorlog-logrotationtime", -1, 2147483647, "rotation");
      },
      onPlus: () => {
        this.onPlusConfig("nsslapd-errorlog-logrotationtime", "rotation");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 3
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      span: 2,
      className: "ds-left-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.FormSelect, {
      id: "nsslapd-errorlog-logrotationtimeunit",
      value: this.state['nsslapd-errorlog-logrotationtimeunit'],
      onChange: (str, e) => {
        this.handleChange(e, "rotation");
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.FormSelectOption, {
      key: "0",
      value: "minute",
      label: "minute"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.FormSelectOption, {
      key: "1",
      value: "hour",
      label: "hour"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.FormSelectOption, {
      key: "2",
      value: "day",
      label: "day"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.FormSelectOption, {
      key: "3",
      value: "week",
      label: "week"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.FormSelectOption, {
      key: "4",
      value: "month",
      label: "month"
    })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Grid, {
      title: "The time when the log should be rotated (nsslapd-errorlog-logrotationsynchour, nsslapd-errorlog-logrotationsyncmin)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Time Of Day"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      span: 1
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.TimePicker, {
      time: rotationTime,
      onChange: this.handleTimeChange,
      is24Hour: true
    })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.Button, _extends({
      key: "save rot settings",
      isDisabled: this.state.saveRotationDisabled,
      variant: "primary",
      className: "ds-margin-top-xlg",
      onClick: () => {
        this.saveConfig("rotation");
      },
      isLoading: this.state.loading,
      spinnerAriaValueText: this.state.loading ? "Saving" : undefined
    }, extraPrimaryProps), saveRotationName)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Tab, {
      eventKey: 2,
      title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TabTitleText, null, "Deletion Policy")
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Form, {
      className: "ds-margin-top-lg",
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Grid, {
      className: "ds-margin-top",
      title: "The server deletes the oldest archived log when the total of all the logs reaches this amount (nsslapd-errorlog-logmaxdiskspace)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Log Archive Exceeds (in MB)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      span: 1
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.NumberInput, {
      value: this.state['nsslapd-errorlog-logmaxdiskspace'],
      min: -1,
      max: 2147483647,
      onMinus: () => {
        this.onMinusConfig("nsslapd-errorlog-logmaxdiskspace", "exp");
      },
      onChange: e => {
        this.onConfigChange(e, "nsslapd-errorlog-logmaxdiskspace", -1, 2147483647, "exp");
      },
      onPlus: () => {
        this.onPlusConfig("nsslapd-errorlog-logmaxdiskspace", "exp");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 6
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Grid, {
      title: "The server deletes the oldest archived log file when available disk space is less than this amount. (nsslapd-errorlog-logminfreediskspace)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Free Disk Space (in MB)"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      span: 1
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.NumberInput, {
      value: this.state['nsslapd-errorlog-logminfreediskspace'],
      min: -1,
      max: 2147483647,
      onMinus: () => {
        this.onMinusConfig("nsslapd-errorlog-logminfreediskspace", "exp");
      },
      onChange: e => {
        this.onConfigChange(e, "nsslapd-errorlog-logminfreediskspace", -1, 2147483647, "exp");
      },
      onPlus: () => {
        this.onPlusConfig("nsslapd-errorlog-logminfreediskspace", "exp");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 6
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Grid, {
      title: "Server deletes an old archived log file when it is older than the specified age. (nsslapd-errorlog-logexpirationtime)."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Log File is Older Than ..."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-container"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.NumberInput, {
      value: this.state['nsslapd-errorlog-logexpirationtime'],
      min: -1,
      max: 2147483647,
      onMinus: () => {
        this.onMinusConfig("nsslapd-errorlog-logexpirationtime", "exp");
      },
      onChange: e => {
        this.onConfigChange(e, "nsslapd-errorlog-logexpirationtime", -1, 2147483647, "exp");
      },
      onPlus: () => {
        this.onPlusConfig("nsslapd-errorlog-logexpirationtime", "exp");
      },
      inputName: "input",
      inputAriaLabel: "number input",
      minusBtnAriaLabel: "minus",
      plusBtnAriaLabel: "plus",
      widthChars: 3
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      span: 2,
      className: "ds-left-indent"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.FormSelect, {
      id: "nsslapd-errorlog-logexpirationtimeunit",
      value: this.state['nsslapd-errorlog-logexpirationtimeunit'],
      onChange: (str, e) => {
        this.handleChange(e, "exp");
      },
      "aria-label": "FormSelect Input"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.FormSelectOption, {
      key: "2",
      value: "day",
      label: "day"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.FormSelectOption, {
      key: "3",
      value: "week",
      label: "week"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.FormSelectOption, {
      key: "4",
      value: "month",
      label: "month"
    }))))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.Button, _extends({
      key: "save del settings",
      isDisabled: this.state.saveExpDisabled,
      variant: "primary",
      className: "ds-margin-top-xlg",
      onClick: () => {
        this.saveConfig("exp");
      },
      isLoading: this.state.loading,
      spinnerAriaValueText: this.state.loading ? "Saving" : undefined
    }, extraPrimaryProps), saveDeletionName))));

    if (!this.state.loaded) {
      body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-loading-spinner ds-margin-top-xlg ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.TextVariants.h3
      }, "Loading Error Log Settings ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.Spinner, {
        className: "ds-margin-top",
        size: "lg"
      }));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      id: "server-errorlog-page",
      className: this.state.loading ? "ds-disabled ds-margin-bottom-md" : "ds-margin-bottom-md"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.GridItem, {
      span: 12
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.TextVariants.h3
    }, "Error Log Settings ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, {
      size: "lg",
      className: "ds-left-margin ds-refresh",
      icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_27__.faSyncAlt,
      title: "Refresh log settings",
      onClick: () => {
        this.refreshConfig();
      }
    }))))), body);
  }

} // Property types and defaults

ServerErrorLog.propTypes = {
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_28___default().func),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_28___default().string),
  attrs: (prop_types__WEBPACK_IMPORTED_MODULE_28___default().object)
};
ServerErrorLog.defaultProps = {
  serverId: "",
  attrs: {}
};

/***/ }),

/***/ "./src/lib/server/ldapi.jsx":
/*!**********************************!*\
  !*** ./src/lib/server/ldapi.jsx ***!
  \**********************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ServerLDAPI": () => (/* binding */ ServerLDAPI)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
/* harmony import */ var _fortawesome_fontawesome_svg_core_styles_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core/styles.css */ "./node_modules/@fortawesome/fontawesome-svg-core/styles.css");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_18__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }









var ldapi_attrs = ['nsslapd-ldapifilepath', 'nsslapd-ldapimaprootdn', 'nsslapd-ldapientrysearchbase', 'nsslapd-ldapigidnumbertype', 'nsslapd-ldapiuidnumbertype'];
class ServerLDAPI extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      loading: false,
      loaded: false,
      saveDisabled: true,
      attrs: this.props.attrs,
      attributes: [],
      isUIDOpen: false,
      isGIDOpen: false
    };

    this.onUIDToggle = isUIDOpen => {
      this.setState({
        isUIDOpen
      });
    };

    this.onUIDSelect = (event, selection, isPlaceholder) => {
      this.setState({
        'nsslapd-ldapiuidnumbertype': selection,
        isUIDOpen: false
      }, () => {
        this.validateSaveBtn();
      });
    };

    this.onGIDToggle = isGIDOpen => {
      this.setState({
        isGIDOpen
      });
    };

    this.onGIDSelect = (event, selection, isPlaceholder) => {
      this.setState({
        'nsslapd-ldapigidnumbertype': selection,
        isGIDOpen: false
      }, () => {
        this.validateSaveBtn();
      });
    };

    this.validateSaveBtn = this.validateSaveBtn.bind(this);
    this.handleChange = this.handleChange.bind(this);
    this.loadConfig = this.loadConfig.bind(this);
    this.saveConfig = this.saveConfig.bind(this);
    this.getAttributes = this.getAttributes.bind(this);
    this.reloadConfig = this.reloadConfig.bind(this);
  }

  componentDidMount() {
    // Loading config
    if (!this.state.loaded) {
      this.loadConfig();
    } else {
      this.props.enableTree();
    }
  }

  getAttributes() {
    var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("getAttributes", "Get attrs", attr_cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(attr_cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var attrContent = JSON.parse(content);
      var attrs = [];

      var _iterator = _createForOfIteratorHelper(attrContent.items),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var _content = _step.value;
          attrs.push(_content.name[0]);
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      this.setState({
        attributes: attrs
      }, this.props.enableTree);
    });
  }

  validateSaveBtn() {
    var disableSaveBtn = true; // Now check for differences in values that we did not touch

    var _iterator2 = _createForOfIteratorHelper(ldapi_attrs),
        _step2;

    try {
      for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
        var ldapi_attr = _step2.value;

        if (this.state['_' + ldapi_attr].toLowerCase() !== this.state[ldapi_attr].toLowerCase()) {
          disableSaveBtn = false;
          break;
        }
      }
    } catch (err) {
      _iterator2.e(err);
    } finally {
      _iterator2.f();
    }

    if (this.state['nsslapd-ldapimaptoentries'] !== this.state['_nsslapd-ldapimaptoentries']) {
      disableSaveBtn = false;
    }

    this.setState({
      saveDisabled: disableSaveBtn
    });
  }

  handleChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    this.setState({
      [attr]: value
    }, () => {
      this.validateSaveBtn();
    });
  }

  loadConfig() {
    var attrs = this.state.attrs;
    var mapToEntries = false;

    if ('nsslapd-ldapimaptoentries' in attrs) {
      if (attrs['nsslapd-ldapimaptoentries'][0] == "on") {
        mapToEntries = true;
      }
    }

    this.setState({
      loading: false,
      loaded: true,
      saveDisabled: true,
      'nsslapd-ldapimaptoentries': mapToEntries,
      'nsslapd-ldapifilepath': attrs['nsslapd-ldapifilepath'][0],
      'nsslapd-ldapimaprootdn': attrs['nsslapd-ldapimaprootdn'][0],
      'nsslapd-ldapientrysearchbase': attrs['nsslapd-ldapientrysearchbase'][0],
      'nsslapd-ldapigidnumbertype': attrs['nsslapd-ldapigidnumbertype'][0],
      'nsslapd-ldapiuidnumbertype': attrs['nsslapd-ldapiuidnumbertype'][0],
      // Record original values
      '_nsslapd-ldapimaptoentries': mapToEntries,
      '_nsslapd-ldapimaprootdn': attrs['nsslapd-ldapimaprootdn'][0],
      '_nsslapd-ldapifilepath': attrs['nsslapd-ldapifilepath'][0],
      '_nsslapd-ldapientrysearchbase': attrs['nsslapd-ldapientrysearchbase'][0],
      '_nsslapd-ldapigidnumbertype': attrs['nsslapd-ldapigidnumbertype'][0],
      '_nsslapd-ldapiuidnumbertype': attrs['nsslapd-ldapiuidnumbertype'][0]
    }, this.getAttributes);
  }

  reloadConfig() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get"];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("reloadConfig", "Reload server configuration", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var attrs = config.attrs;
      this.setState({
        attrs: attrs
      }, this.loadConfig);
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.setState({
        loading: false
      });
      this.props.addNotification("error", "Error loading server configuration - ".concat(errMsg.desc));
    });
  }

  saveConfig() {
    this.setState({
      loading: true
    });
    var cmd = ['dsconf', '-j', "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", 'config', 'replace'];

    for (var _i = 0, _arr = [...ldapi_attrs, 'nsslapd-ldapimaptoentries']; _i < _arr.length; _i++) {
      var attr = _arr[_i];

      if (this.state['_' + attr] != this.state[attr]) {
        var val = this.state[attr];

        if (typeof val === "boolean") {
          if (val) {
            val = "on";
          } else {
            val = "off";
          }
        }

        cmd.push(attr + "=" + val);
      }
    }

    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("saveConfig", "Saving LDAPI settings", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.setState({
        loading: false
      }, this.reloadConfig);
      this.props.addNotification("success", "Successfully updated LDAPI configuration");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.setState({
        loading: false
      }, this.reloadConfig);
      this.props.addNotification("error", "Error updating LDAPI configuration - ".concat(errMsg.desc));
    });
  }

  render() {
    var mapUserAttrs = "";
    var extraPrimaryProps = {};
    var saveBtnName = "Save Settings";

    if (this.state.loading) {
      saveBtnName = "Saving settings ...";
      extraPrimaryProps.spinnerAriaValueText = "Loading";
    }

    if (this.state['nsslapd-ldapimaptoentries']) {
      var attributes = this.state.attributes.map((option, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.SelectOption, {
        key: index,
        value: option
      }));
      mapUserAttrs = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-left"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
        className: "ds-margin-top",
        title: "The Directory Server attribute to map system UIDs to user entries (nsslapd-ldapiuidnumbertype)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        className: "ds-label",
        span: 3
      }, "LDAPI UID Number Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Select, {
        variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.SelectVariant.single,
        "aria-label": "Select UID Input",
        onToggle: this.onUIDToggle,
        onSelect: this.onUIDSelect,
        selections: this.state['nsslapd-ldapiuidnumbertype'],
        isOpen: this.state.isUIDOpen,
        "aria-labelledby": "UID"
      }, attributes))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
        className: "ds-margin-top",
        title: "The Directory Server attribute to map system GUIDs to user entries (nsslapd-ldapigidnumbertype)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        className: "ds-label",
        span: 3
      }, "LDAPI GID Number Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Select, {
        variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.SelectVariant.single,
        "aria-label": "Select GID Input",
        onToggle: this.onGIDToggle,
        onSelect: this.onGIDSelect,
        selections: this.state['nsslapd-ldapigidnumbertype'],
        isOpen: this.state.isGIDOpen,
        "aria-labelledby": "GID"
      }, attributes))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
        title: "The subtree to search for user entries to use for autobind. (nsslapd-ldapientrysearchbase).",
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        className: "ds-label",
        span: 3
      }, "LDAPI Entry Search Base"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextInput, {
        value: this.state['nsslapd-ldapientrysearchbase'],
        type: "text",
        id: "nsslapd-ldapientrysearchbase",
        "aria-describedby": "horizontal-form-name-helper",
        onChange: (str, e) => {
          this.handleChange(e);
        }
      }))));
    }

    var body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Form, {
      className: "ds-margin-top-xlg ds-left-margin",
      autoComplete: "off",
      isHorizontal: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
      title: "The Unix socket file (nsslapd-ldapifilepath).  The UI requires this exact path so it is a read-only setting."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      className: "ds-label",
      span: 3
    }, "LDAPI Socket File Path"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextInput, {
      value: this.state['nsslapd-ldapifilepath'],
      type: "text",
      id: "nsslapd-ldapifilepath",
      "aria-describedby": "horizontal-form-name-helper",
      isDisabled: true
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
      title: "Map the Unix root entry to this Directory Manager DN (nsslapd-ldapimaprootdn).  The UI requires this to be set to the current root DN so it is a read-only setting."
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      className: "ds-label",
      span: 3
    }, "LDAPI Map To Root DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextInput, {
      value: this.state['nsslapd-ldapimaprootdn'],
      type: "text",
      id: "nsslapd-ldapimaprootdn",
      "aria-describedby": "horizontal-form-name-helper",
      isDisabled: true
    }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
      title: "Map regular system users to Directory Server entries (nsslapd-ldapimaptoentries).",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 5
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
      id: "nsslapd-ldapimaptoentries",
      isChecked: this.state['nsslapd-ldapimaptoentries'],
      onChange: (checked, e) => {
        this.handleChange(e);
      },
      "aria-label": "uncontrolled checkbox example",
      label: "Map System Users to Database Entries"
    }))), mapUserAttrs), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Button, _extends({
      isDisabled: this.state.saveDisabled,
      variant: "primary",
      className: "ds-margin-top-xlg",
      onClick: this.saveConfig,
      isLoading: this.state.loading,
      spinnerAriaValueText: this.state.loading ? "Saving" : undefined
    }, extraPrimaryProps), saveBtnName));

    if (!this.state.loaded) {
      body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-top-xlg ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TextVariants.h3
      }, "Loading LDAPI configuration ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Spinner, {
        className: "ds-margin-top",
        size: "lg"
      }));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      id: "server-ldapi-page",
      className: this.state.loading ? "ds-disabled" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
      span: 5
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TextVariants.h3
    }, "LDAPI & AutoBind Settings ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, {
      size: "lg",
      className: "ds-left-margin ds-refresh",
      icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_17__.faSyncAlt,
      title: "Refresh LDAPI settings",
      onClick: this.loadConfig
    }))))), body);
  }

} // Property types and defaults

ServerLDAPI.propTypes = {
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().func),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().string),
  attrs: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().object)
};
ServerLDAPI.defaultProps = {
  serverId: "",
  attrs: {}
};

/***/ }),

/***/ "./src/lib/server/sasl.jsx":
/*!*********************************!*\
  !*** ./src/lib/server/sasl.jsx ***!
  \*********************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ServerSASL": () => (/* binding */ ServerSASL)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _serverTables_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./serverTables.jsx */ "./src/lib/server/serverTables.jsx");
/* harmony import */ var _serverModals_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./serverModals.jsx */ "./src/lib/server/serverModals.jsx");
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
/* harmony import */ var _fortawesome_fontawesome_svg_core_styles_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core/styles.css */ "./node_modules/@fortawesome/fontawesome-svg-core/styles.css");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }











class ServerSASL extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      configLoading: false,
      tableLoading: false,
      loaded: false,
      activeKey: 1,
      errObj: {},
      saveDisabled: true,
      supportedMechs: [],
      mappingKey: 0,
      // Main settings
      allowedMechs: [],
      mappingFallback: false,
      maxBufSize: "",
      // Mapping modal
      showMapping: false,
      saveMappingDisabled: true,
      testRegexDisabled: true,
      testBtnDisabled: true,
      saslMapName: "",
      saslMapRegex: "",
      saslTestText: "",
      saslBase: "",
      saslFilter: "",
      saslPriority: "100",
      saslModalType: "Create",
      saslErrObj: {},
      showConfirmDelete: false,
      modalChecked: false,
      isAllowedMechOpen: false
    }; // Allowed SASL Mechanisms

    this.onAllowedMechToggle = isAllowedMechOpen => {
      this.setState({
        isAllowedMechOpen
      });
    };

    this.onSelect = (event, selection) => {
      var allowedMechs = this.state.allowedMechs;

      if (allowedMechs.includes(selection)) {
        this.setState(prevState => ({
          allowedMechs: prevState.allowedMechs.filter(item => item !== selection),
          isAllowedMechOpen: false
        }), () => {
          this.validateSaveBtn();
        });
      } else {
        this.setState(prevState => ({
          allowedMechs: [...prevState.allowedMechs, selection],
          isAllowedMechOpen: false
        }), () => {
          this.validateSaveBtn();
        });
      }
    };

    this.onAllowedMechClear = () => {
      this.setState({
        allowedMechs: [],
        isAllowedMechOpen: false
      });
    };

    this.validateRegex = this.validateRegex.bind(this);
    this.validateModal = this.validateModal.bind(this);
    this.validateSaveBtn = this.validateSaveBtn.bind(this);
    this.handleChange = this.handleChange.bind(this);
    this.handleModalChange = this.handleModalChange.bind(this);
    this.handleTestRegex = this.handleTestRegex.bind(this);
    this.loadConfig = this.loadConfig.bind(this);
    this.loadMechs = this.loadMechs.bind(this);
    this.loadSASLMappings = this.loadSASLMappings.bind(this);
    this.saveConfig = this.saveConfig.bind(this);
    this.showCreateMapping = this.showCreateMapping.bind(this);
    this.showEditMapping = this.showEditMapping.bind(this);
    this.closeMapping = this.closeMapping.bind(this);
    this.showConfirmDelete = this.showConfirmDelete.bind(this);
    this.closeConfirmDelete = this.closeConfirmDelete.bind(this);
    this.createMapping = this.createMapping.bind(this);
    this.editMapping = this.editMapping.bind(this);
    this.deleteMapping = this.deleteMapping.bind(this);
  }

  componentDidMount() {
    // Loading config
    if (!this.state.loaded) {
      this.loadConfig();
    } else {
      this.props.enableTree();
    }
  }

  normalizeRegex(regex_str) {
    return regex_str.replace(/\\\(/g, '(').replace(/\\\)/g, ')');
  }

  validateRegex(regex) {
    // Just check that the regex itself is valid
    var errObj = this.state.saslErrObj;
    var saveMappingDisabled = this.state.saveMappingDisabled;

    if (this.state.saslMapRegex === "") {
      errObj.saslMapRegex = true;
    } else {
      try {
        RegExp(this.state.saslMapRegex);
        var cleaned_regex = this.normalizeRegex(this.state.saslMapRegex); // Test the normalized version

        RegExp(cleaned_regex);
        errObj.saslMapRegex = false;
      } catch (e) {
        // Bad regex
        errObj.saslMapRegex = true;
        saveMappingDisabled = true;
      }
    }

    this.setState({
      saslErrObj: errObj,
      saveMappingDisabled: saveMappingDisabled
    });
    return !errObj.saslMapRegex;
  }

  handleTestRegex() {
    var test_string = this.state.saslTestText;

    if (this.validateRegex()) {
      var cleaned_regex = this.normalizeRegex(this.state.saslMapRegex);
      var sasl_regex = RegExp(cleaned_regex);

      if (sasl_regex.test(test_string)) {
        this.props.addNotification("success", "The test string matches the Regular Expression");
      } else {
        this.props.addNotification("warning", "The test string does not match the Regular Expression");
      }
    } else {
      this.props.addNotification("error", "Invalid regular expression");
    }
  }

  validateSaveBtn() {
    var attrs = ['mappingFallback', 'maxBufSize'];
    var disableSaveBtn = true;

    for (var _i = 0, _attrs = attrs; _i < _attrs.length; _i++) {
      var attr = _attrs[_i];

      if (this.state[attr] !== this.state['_' + attr]) {
        disableSaveBtn = false;
        break;
      }
    }

    var orig_mechs = [...this.state._allowedMechs];
    var new_mechs = [...this.state.allowedMechs];

    if (!(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.listsEqual)(orig_mechs, new_mechs)) {
      disableSaveBtn = false;
    }

    this.setState({
      saveDisabled: disableSaveBtn
    });
  }

  handleChange(e) {
    var attr = "";
    var value = "";
    value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    attr = e.target.id;
    this.setState({
      [attr]: value,
      isAllowedMechOpen: false
    }, () => {
      this.validateSaveBtn();
    });
  }

  validateModal() {
    var disableSaveBtn = true;
    var disableRegexTestBtn = true;
    var valueErr = false;
    var errObj = this.state.saslErrObj;
    var error = false;
    var attrs = ['saslMapName', 'saslMapRegex', 'saslBase', 'saslPriority', 'saslFilter'];

    for (var _i2 = 0, _attrs2 = attrs; _i2 < _attrs2.length; _i2++) {
      var attr = _attrs2[_i2];

      if (this.state[attr] === "" || attr === 'saslPriority' && this.state[attr] == "0") {
        errObj[attr] = true;
        error = true;
      } else {
        // attr value is good
        errObj[attr] = false;
      }
    }

    if (!error) {
      // Check for changes in values
      var _iterator = _createForOfIteratorHelper(attrs),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var _attr = _step.value;

          if (this.state[_attr] !== this.state['_' + _attr]) {
            disableSaveBtn = false;
            break;
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }
    } // Handle Test Text field and buttons


    if (this.state.saslMapRegex != "" && this.state.saslTestText != "") {
      disableRegexTestBtn = false;
    }

    this.setState({
      saveMappingDisabled: disableSaveBtn,
      testBtnDisabled: disableRegexTestBtn,
      saslErrObj: errObj
    }, () => {
      this.validateRegex();
    });
  }

  handleModalChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    this.setState({
      [attr]: value
    }, () => {
      this.validateModal();
    });
  }

  loadConfig() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", 'get'];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("loadConfig", "Get SASL settings", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var attrs = config.attrs;
      var allowedMechsVal = attrs['nsslapd-allowed-sasl-mechanisms'][0];
      var allowedMechs = [];
      var fallback = false;

      if (attrs['nsslapd-sasl-mapping-fallback'][0] == "on") {
        fallback = true;
      }

      if (allowedMechsVal !== "") {
        // Could be space or comma separated
        if (allowedMechsVal.indexOf(',') > -1) {
          allowedMechsVal = allowedMechsVal.trim();
          allowedMechs = allowedMechsVal.split(',');
        } else {
          allowedMechs = allowedMechsVal.split(' ');
        }
      }

      this.setState({
        maxBufSize: attrs['nsslapd-sasl-max-buffer-size'][0],
        allowedMechs: allowedMechs,
        mappingFallback: fallback,
        saveDisabled: true,
        // Store original values
        _maxBufSize: attrs['nsslapd-sasl-max-buffer-size'][0],
        _allowedMechs: allowedMechs,
        _mappingFallback: fallback
      }, this.loadMechs());
    });
  }

  loadMechs() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "sasl", 'get-available-mechs'];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("loadMechs", "Get supported SASL mechanisms", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      this.setState({
        supportedMechs: config.items
      }, this.loadSASLMappings());
    });
  }

  loadSASLMappings() {
    var cmd = ["dsconf", '-j', "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", 'sasl', 'list', '--details'];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)('get_and_set_sasl', 'Get SASL mappings', cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var saslMapObj = JSON.parse(content);
      var mappings = [];

      var _iterator2 = _createForOfIteratorHelper(saslMapObj.items),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var mapping = _step2.value;

          if (!mapping.attrs.hasOwnProperty('nssaslmappriority')) {
            mapping.attrs.nssaslmappriority = ['100'];
          }

          mappings.push(mapping.attrs);
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      var key = this.state.mappingKey + 1;
      this.setState({
        mappings: mappings,
        mappingKey: key,
        loaded: true,
        tableLoading: false,
        configLoading: false,
        showMappingModal: false,
        showConfirmDelete: false
      }, this.props.enableTree);
    });
  }

  showCreateMapping() {
    this.setState({
      showMappingModal: true,
      saveMappingDisabled: true,
      testRegexDisabled: true,
      saslModalType: "Create",
      saslMapName: "",
      saslMapRegex: "",
      saslTestText: "",
      saslBase: "",
      saslFilter: "",
      saslPriority: "100",
      saslErrObj: {}
    });
  }

  closeMapping() {
    this.setState({
      showMappingModal: false
    });
  }

  showEditMapping(name, regex, base, filter, priority) {
    this.setState({
      showMappingModal: true,
      saveMappingDisabled: true,
      testRegexDisabled: true,
      saslModalType: "Edit",
      saslMapName: name,
      saslMapRegex: regex,
      saslTestText: "",
      saslBase: base,
      saslFilter: filter,
      saslPriority: priority,
      // Note original values
      _saslMapName: name,
      _saslMapRegex: regex,
      _saslTestText: "",
      _saslBase: base,
      _saslFilter: filter,
      _saslPriority: priority,
      saslErrObj: {}
    });
  }

  showConfirmDelete(name) {
    this.setState({
      saslMapName: name,
      modalChecked: false,
      showConfirmDelete: true
    });
  }

  closeConfirmDelete() {
    this.setState({
      modalChecked: false,
      showConfirmDelete: false
    });
  }

  createMapping() {
    this.setState({
      tableLoading: true
    });
    var cmd = ['dsconf', '-j', "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", 'sasl', 'create', '--cn=' + this.state.saslMapName, '--nsSaslMapFilterTemplate=' + this.state.saslFilter, '--nsSaslMapRegexString=' + this.state.saslMapRegex, '--nsSaslMapBaseDNTemplate=' + this.state.saslBase, '--nsSaslMapPriority=' + this.state.saslPriority];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("createMapping", "Create sasl mapping", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.loadConfig();
      this.props.addNotification("success", "Successfully create new SASL Mapping");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.loadConfig();
      this.props.addNotification("error", "Error creating new SASL Mapping - ".concat(errMsg.desc));
    });
  }

  editMapping(name) {
    // Start spinning
    var new_mappings = this.state.mappings;

    var _iterator3 = _createForOfIteratorHelper(new_mappings),
        _step3;

    try {
      for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
        var saslMap = _step3.value;

        if (saslMap.cn[0] == name) {
          saslMap.nssaslmapregexstring = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Spinner, {
            className: "ds-lower-field",
            key: new_mappings[0].nssaslmapregexstring[0],
            loading: true,
            size: "sm"
          })];
          saslMap.nssaslmapbasedntemplate = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Spinner, {
            className: "ds-lower-field",
            key: new_mappings[0].nssaslmapbasedntemplate[0],
            loading: true,
            size: "sm"
          })];
          saslMap.nssaslmapfiltertemplate = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Spinner, {
            className: "ds-lower-field",
            key: new_mappings[0].nssaslmapfiltertemplate[0],
            loading: true,
            size: "sm"
          })];
          saslMap.nssaslmappriority = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Spinner, {
            className: "ds-lower-field",
            key: new_mappings[0].nssaslmappriority[0],
            loading: true,
            size: "sm"
          })];
        }
      }
    } catch (err) {
      _iterator3.e(err);
    } finally {
      _iterator3.f();
    }

    this.setState({
      mappings: new_mappings,
      tableLoading: true
    }); // Delete and create

    var delete_cmd = ['dsconf', '-j', "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", 'sasl', 'delete', this.state._saslMapName];
    var create_cmd = ['dsconf', '-j', "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", 'sasl', 'create', '--cn=' + this.state.saslMapName, '--nsSaslMapFilterTemplate=' + this.state.saslFilter, '--nsSaslMapRegexString=' + this.state.saslMapRegex, '--nsSaslMapBaseDNTemplate=' + this.state.saslBase, '--nsSaslMapPriority=' + this.state.saslPriority];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("editMapping", "deleting sasl mapping", delete_cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(delete_cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("editMapping", "Create new sasl mapping", create_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(create_cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        this.loadConfig();
        this.props.addNotification("success", "Successfully updated SASL Mapping");
      }).fail(err => {
        var errMsg = JSON.parse(err);
        this.closeMapping();
        this.loadConfig();
        this.props.addNotification("error", "Error updating SASL Mapping - ".concat(errMsg.desc));
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.loadConfig();
      this.closeMapping();
      this.props.addNotification("error", "Error replacing SASL Mapping - ".concat(errMsg.desc));
    });
  }

  deleteMapping() {
    // Start spinning
    var new_mappings = this.state.mappings;

    var _iterator4 = _createForOfIteratorHelper(new_mappings),
        _step4;

    try {
      for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
        var saslMap = _step4.value;

        if (saslMap.cn[0] == this.state.saslMapName) {
          saslMap.nssaslmapregexstring = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Spinner, {
            className: "ds-lower-field",
            key: new_mappings[0].nssaslmapregexstring[0],
            loading: true,
            size: "sm"
          })];
          saslMap.nssaslmapbasedntemplate = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Spinner, {
            className: "ds-lower-field",
            key: new_mappings[0].nssaslmapbasedntemplate[0],
            loading: true,
            size: "sm"
          })];
          saslMap.nssaslmapfiltertemplate = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Spinner, {
            className: "ds-lower-field",
            key: new_mappings[0].nssaslmapfiltertemplate[0],
            loading: true,
            size: "sm"
          })];
          saslMap.nssaslmappriority = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Spinner, {
            className: "ds-lower-field",
            key: new_mappings[0].nssaslmappriority[0],
            loading: true,
            size: "sm"
          })];
        }
      }
    } catch (err) {
      _iterator4.e(err);
    } finally {
      _iterator4.f();
    }

    this.setState({
      mappings: new_mappings,
      tableLoading: true
    });
    var cmd = ['dsconf', '-j', "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", 'sasl', 'delete', this.state.saslMapName];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("deleteMapping", "Delete sasl mapping", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.loadConfig();
      this.props.addNotification("success", "Successfully deleted SASL Mapping");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.loadConfig();
      this.closeConfirmDelete();
      this.props.addNotification("error", "Error deleting SASL Mapping - ".concat(errMsg.desc));
    });
  }

  saveConfig() {
    // Start spinning
    this.setState({
      configLoading: true
    }); // Build up the command list

    var cmd = ['dsconf', '-j', "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", 'config'];
    var mech_str_new = this.state.allowedMechs.join(' ');

    var mech_str_orig = this.state._allowedMechs.join(' ');

    if (mech_str_orig != mech_str_new) {
      if (mech_str_new.length === 0) {
        cmd.push('delete');
        cmd.push("nsslapd-allowed-sasl-mechanisms");
      } else {
        cmd.push('replace');
        cmd.push("nsslapd-allowed-sasl-mechanisms=" + mech_str_new);
      }
    } else {
      // The rest of the settings always have values to replace
      cmd.push('replace');
    }

    if (this.state._mappingFallback != this.state.mappingFallback) {
      var value = "off";

      if (this.state.mappingFallback) {
        value = "on";
      }

      cmd.push("nsslapd-sasl-mapping-fallback=" + value);
    }

    if (this.state._maxBufSize != this.state.maxBufSize) {
      cmd.push("nsslapd-sasl-max-buffer-size=" + this.state.maxBufSize);
    }

    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("saveConfig", "Applying SASL config change", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.loadConfig();
      this.props.addNotification("warning", "Successfully updated SASL configuration.  These " + "changes require the server to be restarted to take effect.");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.loadConfig();
      this.props.addNotification("error", "Error updating SASL configuration - ".concat(errMsg.desc));
    });
  }

  render() {
    var body = "";
    var saveBtnName = "Save Settings";
    var extraPrimaryProps = {};

    if (this.state.configLoading) {
      saveBtnName = "Saving settings ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    if (!this.state.loaded) {
      body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-loading-spinner ds-margin-top-xlg ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextVariants.h3
      }, "Loading SASL Configuration ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Spinner, {
        className: "ds-margin-top",
        size: "lg"
      }));
    } else {
      body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: this.state.configLoading ? "ds-disabled ds-margin-bottom-md" : "ds-margin-bottom-md"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
        span: 3
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextVariants.h3
      }, "SASL Settings ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_6__.FontAwesomeIcon, {
        size: "lg",
        className: "ds-left-margin ds-refresh",
        icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_13__.faSyncAlt,
        title: "Refresh SASL settings",
        onClick: this.loadConfig
      }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Form, {
        isHorizontal: true,
        autoComplete: "off",
        className: "ds-left-margin"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
        title: "The maximum SASL buffer size in bytes (nsslapd-sasl-max-buffer-size).",
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Max SASL Buffer Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.TextInput, {
        value: this.state.maxBufSize,
        type: "number",
        id: "maxBufSize",
        "aria-describedby": "horizontal-form-name-helper",
        name: "maxBufSize",
        onChange: (str, e) => {
          this.handleChange(e);
        }
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
        title: "A list of SASL mechanisms the server will only accept (nsslapd-allowed-sasl-mechanisms).  The default is all mechanisms are allowed."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Allowed SASL Mechanisms"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Select, {
        variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.SelectVariant.typeaheadMulti,
        typeAheadAriaLabel: "Type SASL mechanism to allow",
        onToggle: this.onAllowedMechToggle,
        onSelect: this.onSelect,
        onClear: this.onAllowedMechClear,
        selections: this.state.allowedMechs,
        isOpen: this.state.isAllowedMechOpen,
        "aria-labelledby": "typeAhead-sasl-mechs",
        placeholderText: "Type SASL mechanism to allow...",
        noResultsFoundText: "There are no matching entries"
      }, this.state.supportedMechs.map((attr, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.SelectOption, {
        key: index,
        value: attr
      }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
        title: "Check all sasl mappings until one succeeds or they all fail (nsslapd-sasl-mapping-fallback)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Checkbox, {
        isChecked: this.state.mappingFallback,
        id: "mappingFallback",
        onChange: (checked, e) => {
          this.handleChange(e);
        },
        label: "Allow SASL Mapping Fallback"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Button, _extends({
        isDisabled: this.state.saveDisabled,
        variant: "primary",
        className: "ds-margin-top-xlg",
        onClick: this.saveConfig,
        isLoading: this.state.configLoading,
        spinnerAriaValueText: this.state.configLoading ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Grid, {
        title: "A list of SASL mechanisms the server will only accept (nsslapd-allowed-sasl-mechanisms).  The default is all mechanisms are allowed.",
        className: "ds-margin-top"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Text, {
        className: "ds-center ds-margin-top",
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TextVariants.h3
      }, "SASL Mappings"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_serverTables_jsx__WEBPACK_IMPORTED_MODULE_4__.SASLTable, {
        key: this.state.mappingKey,
        rows: this.state.mappings,
        editMapping: this.showEditMapping,
        deleteMapping: this.showConfirmDelete,
        className: "ds-margin-top"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Button, {
        variant: "primary",
        onClick: this.showCreateMapping
      }, "Create New Mapping"));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      id: "server-sasl-page"
    }, body, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_serverModals_jsx__WEBPACK_IMPORTED_MODULE_5__.SASLMappingModal, {
      showModal: this.state.showMappingModal,
      testBtnDisabled: this.state.testBtnDisabled,
      saveDisabled: this.state.saveMappingDisabled,
      closeHandler: this.closeMapping,
      handleChange: this.handleModalChange,
      handleTestRegex: this.handleTestRegex,
      saveHandler: this.state.saslModalType == "Create" ? this.createMapping : this.editMapping,
      error: this.state.saslErrObj,
      type: this.state.saslModalType,
      name: this.state.saslMapName,
      regex: this.state.saslMapRegex,
      testText: this.state.saslTestText,
      base: this.state.saslBase,
      filter: this.state.saslFilter,
      priority: this.state.saslPriority,
      spinning: this.state.tableLoading
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmDelete,
      closeHandler: this.closeConfirmDelete,
      handleChange: this.handleModalChange,
      actionHandler: this.deleteMapping,
      item: this.state.saslMapName,
      checked: this.state.modalChecked,
      spinning: this.state.tableLoading,
      mTitle: "Delete SASL Mapping",
      mMsg: "Are you sure you want to delete this SASL mapping?",
      mSpinningMsg: "Deleting SASL Mapping ...",
      mBtnName: "Delete Mapping"
    }));
  }

}

/***/ }),

/***/ "./src/lib/server/serverModals.jsx":
/*!*****************************************!*\
  !*** ./src/lib/server/serverModals.jsx ***!
  \*****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SASLMappingModal": () => (/* binding */ SASLMappingModal)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Modal/Modal.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormHelperText.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }




class SASLMappingModal extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  render() {
    var title = this.props.type;
    var btnText = "Create Mapping";
    var extraPrimaryProps = {};

    if (title != "Create") {
      btnText = "Save Mapping";
    }

    title = title + " SASL Mapping";

    if (this.props.spinning) {
      btnText = "Saving...";
      extraPrimaryProps.spinnerAriaValueText = "Loading";
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.Modal, {
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_1__.ModalVariant.medium,
      "aria-labelledby": "ds-modal",
      title: title,
      isOpen: this.props.showModal,
      onClose: this.props.closeHandler,
      actions: [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Button, _extends({
        key: "confirm",
        isDisabled: this.props.saveDisabled,
        variant: "primary",
        isLoading: this.props.spinning,
        spinnerAriaValueText: this.props.spinning ? "Loading" : undefined,
        onClick: () => {
          this.props.saveHandler(this.props.name);
        }
      }, extraPrimaryProps), btnText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Button, {
        key: "cancel",
        variant: "link",
        onClick: this.props.closeHandler
      }, "Cancel")]
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_3__.Form, {
      isHorizontal: true,
      autoComplete: "off"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      title: "SASL Mapping entry name",
      className: "ds-margin-top"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      className: "ds-label",
      span: 3
    }, "SASL Mapping Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextInput, {
      value: this.props.name,
      type: "text",
      id: "saslMapName",
      "aria-describedby": "horizontal-form-name-helper",
      name: "saslMapName",
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      validated: this.props.error.saslMapName ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ValidatedOptions["default"],
      isRequired: true,
      isDisabled: this.props.type === "Edit"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.FormHelperText, {
      isError: true,
      isHidden: !this.props.error.saslMapName
    }, "You must provide a name for this mapping"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      title: "SASL Mapping Regular Expression"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      className: "ds-label",
      span: 3
    }, "Regular Expression"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextInput, {
      value: this.props.regex,
      type: "text",
      id: "saslMapRegex",
      "aria-describedby": "horizontal-form-name-helper",
      name: "saslMapRegex",
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      isRequired: true,
      validated: this.props.error.saslMapRegex ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.FormHelperText, {
      isError: true,
      isHidden: !this.props.error.saslMapRegex
    }, "You must provide a valid regular expression"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      title: "Test Regular Expression"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      className: "ds-label",
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("font", {
      size: "2"
    }, "* Test Regex")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 5
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextInput, {
      value: this.props.testText,
      type: "text",
      id: "saslTestText",
      "aria-describedby": "horizontal-form-name-helper",
      name: "saslTestText",
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      placeholder: "Enter text to test regex"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 4
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_2__.Button, {
      className: "ds-left-margin",
      isDisabled: this.props.testBtnDisabled || this.props.error.saslMapRegex,
      variant: "primary",
      onClick: this.props.handleTestRegex
    }, "Test It"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      title: "The search base or a specific entry DN to match against the constructed DN"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      className: "ds-label",
      span: 3
    }, "SASL Mapping Base"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextInput, {
      value: this.props.base,
      type: "text",
      id: "saslBase",
      "aria-describedby": "horizontal-form-name-helper",
      name: "saslBase",
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      isRequired: true,
      validated: this.props.error.saslBase ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.FormHelperText, {
      isError: true,
      isHidden: !this.props.error.saslBase
    }, "You must provide a search base"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      title: "SASL mapping search filter"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      className: "ds-label",
      span: 3
    }, "SASL Mapping Filter"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextInput, {
      value: this.props.filter,
      type: "text",
      id: "saslFilter",
      "aria-describedby": "horizontal-form-name-helper",
      name: "saslFilter",
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      isRequired: true,
      validated: this.props.error.saslFilter ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.FormHelperText, {
      isError: true,
      isHidden: !this.props.error.saslFilter
    }, "You must provide an LDAP search filter"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      title: "Set the mapping priority for which mappings should be tried first"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      className: "ds-label",
      span: 3
    }, "SASL Mapping Priority"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextInput, {
      value: this.props.priority,
      type: "number",
      id: "saslPriority",
      "aria-describedby": "horizontal-form-name-helper",
      name: "saslPriority",
      onChange: (str, e) => {
        this.props.handleChange(e);
      },
      validated: this.props.error.saslPriority ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.ValidatedOptions["default"]
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.FormHelperText, {
      isError: true,
      isHidden: !this.props.error.saslPriority
    }, "Priority must be between 1 and 100")))));
  }

} // Types and defaults

SASLMappingModal.propTypes = {
  showModal: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
  testBtnDisabled: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
  saveDisabled: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
  closeHandler: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func),
  handleChange: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func),
  handleTestRegex: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func),
  saveHandler: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func),
  error: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
  name: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
  regex: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
  testText: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
  base: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
  filter: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
  priority: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
  spinning: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool)
};
SASLMappingModal.defaultProps = {
  showModal: false,
  testBtnDisabled: true,
  saveDisabled: true,
  error: {},
  name: "",
  regex: "",
  testText: "",
  base: "",
  filter: "",
  priority: "",
  spinning: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool)
};

/***/ }),

/***/ "./src/lib/server/serverTables.jsx":
/*!*****************************************!*\
  !*** ./src/lib/server/serverTables.jsx ***!
  \*****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "SASLTable": () => (/* binding */ SASLTable)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/SearchInput/SearchInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Pagination/Pagination.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/sortable.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/utils/decorators/collapsible.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/SortColumn.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Table.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/TableTypes.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Header.js");
/* harmony import */ var _patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-table */ "./node_modules/@patternfly/react-table/dist/esm/components/Table/Body.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__);
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }





class SASLTable extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
  constructor(props) {
    super(props);
    this.state = {
      page: 1,
      perPage: 10,
      value: '',
      sortBy: {},
      rows: [],
      dropdownIsOpen: false,
      columns: [{
        title: 'Mapping Name',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable],
        cellFormatters: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_2__.expandable]
      }, {
        title: 'Search Base',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }, {
        title: 'Priority',
        transforms: [_patternfly_react_table__WEBPACK_IMPORTED_MODULE_1__.sortable]
      }]
    };

    this.onSetPage = (_event, pageNumber) => {
      this.setState({
        page: pageNumber
      });
    };

    this.onPerPageSelect = (_event, perPage) => {
      this.setState({
        perPage: perPage,
        page: 1
      });
    };

    this.onSort = this.onSort.bind(this);
    this.onCollapse = this.onCollapse.bind(this);
    this.onSearchChange = this.onSearchChange.bind(this);
  }

  onSort(_event, index, direction) {
    var sorted_rows = [];
    var rows = [];
    var count = 0; // Convert the rows pairings into a sortable array based on the column indexes

    for (var idx = 0; idx < this.state.rows.length; idx += 2) {
      sorted_rows.push({
        expandedRow: this.state.rows[idx + 1],
        1: this.state.rows[idx].cells[0],
        2: this.state.rows[idx].cells[1],
        3: this.state.rows[idx].cells[2],
        regex: this.state.rows[idx].regex,
        filter: this.state.rows[idx].filter
      });
    } // Sort the rows and build the new rows


    sorted_rows.sort((a, b) => a[index] > b[index] ? 1 : -1);

    if (direction !== _patternfly_react_table__WEBPACK_IMPORTED_MODULE_3__.SortByDirection.asc) {
      sorted_rows.reverse();
    }

    for (var _i = 0, _sorted_rows = sorted_rows; _i < _sorted_rows.length; _i++) {
      var srow = _sorted_rows[_i];
      rows.push({
        isOpen: false,
        cells: [srow[1], srow[2], srow[3]],
        regex: srow.regex,
        filter: srow.filter
      });
      srow.expandedRow.parent = count; // reset parent idx

      rows.push(srow.expandedRow);
      count += 2;
    }

    this.setState({
      sortBy: {
        index,
        direction
      },
      rows: rows,
      page: 1
    });
  }

  getExpandedRow(regex, filter) {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_4__.Grid, {
      className: "ds-left-indent-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, "Regular Expression:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, regex)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 3
    }, "Search Filter:"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.GridItem, {
      span: 9
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("b", null, filter)));
  }

  componentDidMount() {
    var rows = [];
    var columns = this.state.columns;
    var count = 0;

    var _iterator = _createForOfIteratorHelper(this.props.rows),
        _step;

    try {
      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        var row = _step.value;
        rows.push({
          isOpen: false,
          cells: [row.cn[0], row.nssaslmapbasedntemplate[0], row.nssaslmappriority[0]],
          regex: row.nssaslmapregexstring[0],
          filter: row.nssaslmapfiltertemplate[0]
        }, {
          parent: count,
          fullWidth: true,
          cells: [{
            title: this.getExpandedRow(row.nssaslmapregexstring[0], row.nssaslmapfiltertemplate[0])
          }]
        });
        count += 2;
      }
    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }

    if (rows.length == 0) {
      rows = [{
        cells: ['No SASL Mappings']
      }];
      columns = [{
        title: 'SASL Mappings'
      }];
    }

    this.setState({
      rows: rows,
      columns: columns
    });
  }

  onCollapse(event, rowKey, isOpen) {
    var _this$state = this.state,
        rows = _this$state.rows,
        perPage = _this$state.perPage,
        page = _this$state.page;
    var index = perPage * (page - 1) * 2 + rowKey; // Adjust for page set

    rows[index].isOpen = isOpen;
    this.setState({
      rows
    });
  }

  onSearchChange(value, event) {
    var rows = [];
    var count = 0;

    var _iterator2 = _createForOfIteratorHelper(this.props.rows),
        _step2;

    try {
      for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
        var row = _step2.value;
        var val = value.toLowerCase(); // Check for matches of all the parts

        if (val != "" && row.cn[0].toLowerCase().indexOf(val) == -1 && row.nssaslmapbasedntemplate[0].toLowerCase().indexOf(val) == -1 && row.nssaslmappriority[0].toLowerCase().indexOf(val) == -1) {
          // Not a match
          continue;
        }

        rows.push({
          isOpen: false,
          cells: [row.cn[0], row.nssaslmapbasedntemplate[0], row.nssaslmappriority[0]],
          regex: row.nssaslmapregexstring[0],
          filter: row.nssaslmapfiltertemplate[0]
        }, {
          parent: count,
          fullWidth: true,
          cells: [{
            title: this.getExpandedRow(row.nssaslmapregexstring[0], row.nssaslmapfiltertemplate[0])
          }]
        });
        count += 2;
      }
    } catch (err) {
      _iterator2.e(err);
    } finally {
      _iterator2.f();
    }

    this.setState({
      rows: rows,
      value: value,
      page: 1
    });
  }

  actions() {
    return [{
      title: 'Edit Mapping',
      onClick: (event, rowId, rowData, extra) => this.props.editMapping(rowData.cells[0], rowData.regex, rowData.cells[1], rowData.filter, rowData.cells[2])
    }, {
      title: 'Delete Mapping',
      onClick: (event, rowId, rowData, extra) => this.props.deleteMapping(rowData.cells[0])
    }];
  }

  render() {
    var _this$state2 = this.state,
        perPage = _this$state2.perPage,
        page = _this$state2.page,
        sortBy = _this$state2.sortBy,
        rows = _this$state2.rows,
        columns = _this$state2.columns;
    var origRows = [...rows];
    var startIdx = (perPage * page - perPage) * 2;
    var tableRows = origRows.splice(startIdx, perPage * 2);

    for (var idx = 1, count = 0; idx < tableRows.length; idx += 2, count += 2) {
      // Rewrite parent index to match new spliced array
      tableRows[idx].parent = count;
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
      className: "ds-margin-top-lg"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.SearchInput, {
      placeholder: "Search Mappings",
      value: this.state.value,
      onChange: this.onSearchChange,
      onClear: evt => this.onSearchChange('', evt)
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_7__.Table, {
      className: "ds-margin-top",
      "aria-label": "sasl table",
      cells: columns,
      rows: tableRows,
      variant: _patternfly_react_table__WEBPACK_IMPORTED_MODULE_8__.TableVariant.compact,
      sortBy: sortBy,
      onSort: this.onSort,
      onCollapse: this.onCollapse,
      actions: tableRows.length > 0 ? this.actions() : null,
      dropdownPosition: "right",
      dropdownDirection: "bottom"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_9__.TableHeader, null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_table__WEBPACK_IMPORTED_MODULE_10__.TableBody, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Pagination, {
      itemCount: this.state.rows.length / 2,
      widgetId: "pagination-options-menu-bottom",
      perPage: perPage,
      page: page,
      variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.PaginationVariant.bottom,
      onSetPage: this.onSetPage,
      onPerPageSelect: this.onPerPageSelect
    }));
  }

}
SASLTable.propTypes = {
  rows: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().array),
  editMapping: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),
  deleteMapping: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func)
};
SASLTable.defaultProps = {
  rows: []
};

/***/ }),

/***/ "./src/lib/server/settings.jsx":
/*!*************************************!*\
  !*** ./src/lib/server/settings.jsx ***!
  \*************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ServerSettings": () => (/* binding */ ServerSettings)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/NumberInput/NumberInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/FormHelperText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/helpers/constants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
/* harmony import */ var _fortawesome_fontawesome_svg_core_styles_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core/styles.css */ "./node_modules/@fortawesome/fontawesome-svg-core/styles.css");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_23__);
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }









var general_attrs = ['nsslapd-port', 'nsslapd-secureport', 'nsslapd-localhost', 'nsslapd-listenhost', 'nsslapd-bakdir', 'nsslapd-ldifdir', 'nsslapd-schemadir', 'nsslapd-certdir'];
var path_attrs = ['nsslapd-bakdir', 'nsslapd-ldifdir', 'nsslapd-schemadir', 'nsslapd-certdir'];
var rootdn_attrs = ['nsslapd-rootpwstoragescheme', 'nsslapd-rootpw', 'confirmRootpw'];
var disk_attrs = ['nsslapd-disk-monitoring', 'nsslapd-disk-monitoring-logging-critical', 'nsslapd-disk-monitoring-threshold', 'nsslapd-disk-monitoring-grace-period'];
var adv_attrs = ['nsslapd-allow-anonymous-access', 'nsslapd-entryusn-global', 'nsslapd-ignore-time-skew', 'nsslapd-readonly', 'nsslapd-anonlimitsdn', 'nsslapd-schemacheck', 'nsslapd-syntaxcheck', 'nsslapd-plugin-logging', 'nsslapd-syntaxlogging', 'nsslapd-plugin-binddn-tracking', 'nsslapd-attribute-name-exceptions', 'nsslapd-dn-validate-strict'];
class ServerSettings extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      loading: true,
      activeTabKey: 0,
      attrs: this.props.attrs,
      // Setting lists
      configSaveDisabled: true,
      configReloading: false,
      errObjConfig: {},
      rootDNReloading: false,
      rootDNSaveDisabled: true,
      errObjRootDN: {},
      diskMonReloading: false,
      diskMonSaveDisabled: true,
      errObjDiskMon: {},
      advSaveDisabled: true,
      advReloading: false,
      errObjAdv: {}
    }; // Toggle currently active tab

    this.handleNavSelect = (event, tabIndex) => {
      this.setState({
        activeTabKey: tabIndex
      });
    };

    this.options = [{
      value: 'PBKDF2_SHA256',
      label: 'PBKDF2_SHA256',
      disabled: false
    }, {
      value: 'SSHA512',
      label: 'SSHA512',
      disabled: false
    }, {
      value: 'SSHA384',
      label: 'SSHA384',
      disabled: false
    }, {
      value: 'SSHA256',
      label: 'SSHA256',
      disabled: false
    }, {
      value: 'SSHA',
      label: 'SSHA',
      disabled: false
    }, {
      value: 'MD5',
      label: 'MD5',
      disabled: false
    }, {
      value: 'SMD5',
      label: 'SMD5',
      disabled: false
    }, {
      value: 'CRYPT-MD5',
      label: 'CRYPT-MD5',
      disabled: false
    }, {
      value: 'CRYPT-SHA512',
      label: 'CRYPT-SHA512',
      disabled: false
    }, {
      value: 'CRYPT-SHA256',
      label: 'CRYPT-SHA256',
      disabled: false
    }, {
      value: 'CRYPT',
      label: 'CRYPT',
      disabled: false
    }, {
      value: 'GOST_YESCRYPT',
      label: 'GOST_YESCRYPT',
      disabled: false
    }, {
      value: 'CLEAR',
      label: 'CLEAR',
      disabled: false
    }];
    this.validatePaths = this.validatePaths.bind(this);
    this.handleChange = this.handleChange.bind(this);
    this.loadConfig = this.loadConfig.bind(this);
    this.saveConfig = this.saveConfig.bind(this);
    this.reloadConfig = this.reloadConfig.bind(this);
    this.saveRootDN = this.saveRootDN.bind(this);
    this.reloadRootDN = this.reloadRootDN.bind(this);
    this.saveDiskMonitoring = this.saveDiskMonitoring.bind(this);
    this.reloadDiskMonitoring = this.reloadDiskMonitoring.bind(this);
    this.saveAdvanced = this.saveAdvanced.bind(this);
    this.reloadAdvanced = this.reloadAdvanced.bind(this);

    this.onMinusConfig = (id, nav_tab) => {
      this.setState({
        [id]: Number(this.state[id]) - 1
      }, () => {
        this.validateSaveBtn(nav_tab, id, Number(this.state[id]));
      });
    };

    this.onConfigChange = (event, id, min, max, nav_tab) => {
      var maxValue = this.maxValue;

      if (max !== 0) {
        maxValue = max;
      }

      var newValue = isNaN(event.target.value) ? min : Number(event.target.value);
      newValue = newValue > maxValue ? maxValue : newValue < min ? min : newValue;
      this.setState({
        [id]: newValue
      }, () => {
        this.validateSaveBtn(nav_tab, id, newValue);
      });
    };

    this.onPlusConfig = (id, nav_tab) => {
      this.setState({
        [id]: Number(this.state[id]) + 1
      }, () => {
        this.validateSaveBtn(nav_tab, id, Number(this.state[id]));
      });
    };

    this.validateSaveBtn = this.validateSaveBtn.bind(this);
  }

  componentDidMount() {
    // Loading config
    if (!this.state.loaded) {
      this.loadConfig();
    } else {
      this.props.enableTree();
    }
  }

  handleNavSelect(key) {
    this.setState({
      activeKey: key
    });
  }

  validatePaths(disableSaveBtn) {
    var _this = this;

    var disableBtn = disableSaveBtn;
    var errObj = this.state.errObjConfig;

    var _iterator = _createForOfIteratorHelper(path_attrs),
        _step;

    try {
      var _loop = function _loop() {
        var attr = _step.value;
        var cmd = "[ -d \"".concat(_this.state[attr], "\" ]");
        cockpit__WEBPACK_IMPORTED_MODULE_0___default().script(cmd, [], {
          superuser: true,
          err: "message"
        }).done(output => {
          errObj[attr] = false;

          _this.setState({
            errObjConfig: errObj,
            configSaveDisabled: disableBtn
          });
        }).fail(err => {
          errObj[attr] = true;
          disableBtn = true;

          _this.setState({
            configSaveDisabled: disableBtn,
            errObjConfig: errObj
          });
        });
      };

      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        _loop();
      }
    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }
  }

  validateSaveBtn(nav_tab, attr, value) {
    var disableSaveBtn = true;
    var disableBtnName = "";
    var config_attrs = [];
    var valueErr = false;
    var errObj;

    if (nav_tab == "config") {
      config_attrs = general_attrs;
      disableBtnName = "configSaveDisabled";
      errObj = this.state.errObjConfig;
    } else if (nav_tab == "rootdn") {
      disableBtnName = "rootDNSaveDisabled";
      config_attrs = rootdn_attrs;
      errObj = this.state.errObjRootDN;
    } else if (nav_tab == "diskmon") {
      disableBtnName = "diskMonSaveDisabled";
      config_attrs = disk_attrs;
      errObj = this.state.errObjDiskMon;
    } else if (nav_tab == "adv") {
      disableBtnName = "advSaveDisabled";
      config_attrs = adv_attrs;
      errObj = this.state.errObjAdv;
    } // Check if a setting was changed, if so enable the save button


    var _iterator2 = _createForOfIteratorHelper(config_attrs),
        _step2;

    try {
      for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
        var config_attr = _step2.value;

        if (attr == config_attr && this.state['_' + config_attr] != value) {
          disableSaveBtn = false;
          break;
        }
      } // Now check for differences in values that we did not touch

    } catch (err) {
      _iterator2.e(err);
    } finally {
      _iterator2.f();
    }

    var _iterator3 = _createForOfIteratorHelper(config_attrs),
        _step3;

    try {
      for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
        var _config_attr = _step3.value;

        if (attr != _config_attr && this.state['_' + _config_attr] != this.state[_config_attr]) {
          disableSaveBtn = false;
          break;
        }
      }
    } catch (err) {
      _iterator3.e(err);
    } finally {
      _iterator3.f();
    }

    if (nav_tab == "config") {
      if (attr != 'nsslapd-listenhost' && value == "") {
        // Only listenhost is allowed to be blank
        valueErr = true;
        disableSaveBtn = true;
      }
    } else if (nav_tab == "rootdn") {
      // Handle validating passwords are in sync
      if (attr == 'nsslapd-rootpw') {
        if (value != this.state.confirmRootpw) {
          disableSaveBtn = true;
          valueErr = true;
          errObj['nsslapd-rootpw'] = true;
        } else {
          errObj.confirmRootpw = false;
          errObj['nsslapd-rootpw'] = false;
        }
      }

      if (attr == 'confirmRootpw') {
        if (value != this.state['nsslapd-rootpw']) {
          disableSaveBtn = true;
          valueErr = true;
          errObj.confirmRootpw = true;
        } else {
          errObj.confirmRootpw = false;
          errObj['nsslapd-rootpw'] = false;
        }
      }

      if (value == "") {
        disableSaveBtn = true;
        valueErr = true;
      }
    } else if (nav_tab == "diskmon") {
      if (value == "" && typeof value !== "boolean") {
        valueErr = true;
        disableSaveBtn = true;
      }

      if (attr === 'nsslapd-disk-monitoring-threshold') {
        var numVal = Number(value);

        if (numVal < 4096) {
          valueErr = true;
          disableSaveBtn = true;
        }
      }
    } else if (nav_tab == "adv") {
      // Handle special cases for anon limit dn
      if (attr == 'nsslapd-anonlimitsdn' && !(0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.valid_dn)(value)) {
        valueErr = true;
        errObj[attr] = true;
      }

      if (value == "" && attr != 'nsslapd-anonlimitsdn' && typeof value !== "boolean") {
        valueErr = true;
        disableSaveBtn = true;
      }
    }

    errObj[attr] = valueErr;
    this.setState({
      [attr]: value,
      errObjConfig: errObj,
      [disableBtnName]: disableSaveBtn
    }, () => {
      this.validatePaths(disableSaveBtn);
    });
  }

  handleChange(e, nav_tab) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    this.setState({
      [attr]: value
    }, () => {
      this.validateSaveBtn(nav_tab, attr, value);
    });
  }

  loadConfig() {
    var attrs = this.state.attrs; // Handle the checkbox values

    var diskMonitoring = false;
    var diskLogCritical = false;
    var schemaCheck = false;
    var syntaxCheck = false;
    var pluginLogging = false;
    var syntaxLogging = false;
    var bindDNTracking = false;
    var nameExceptions = false;
    var dnValidate = false;
    var usnGlobal = false;
    var ignoreSkew = false;
    var readOnly = false;
    var listenhost = "";

    if (attrs['nsslapd-entryusn-global'][0] == "on") {
      usnGlobal = true;
    }

    if (attrs['nsslapd-ignore-time-skew'][0] == "on") {
      ignoreSkew = true;
    }

    if (attrs['nsslapd-readonly'][0] == "on") {
      readOnly = true;
    }

    if (attrs['nsslapd-disk-monitoring'][0] == "on") {
      diskMonitoring = true;
    }

    if (attrs['nsslapd-disk-monitoring-logging-critical'][0] == "on") {
      diskLogCritical = true;
    }

    if (attrs['nsslapd-schemacheck'][0] == "on") {
      schemaCheck = true;
    }

    if (attrs['nsslapd-syntaxcheck'][0] == "on") {
      syntaxCheck = true;
    }

    if (attrs['nsslapd-plugin-logging'][0] == "on") {
      pluginLogging = true;
    }

    if (attrs['nsslapd-syntaxlogging'][0] == "on") {
      syntaxLogging = true;
    }

    if (attrs['nsslapd-plugin-binddn-tracking'][0] == "on") {
      bindDNTracking = true;
    }

    if (attrs['nsslapd-attribute-name-exceptions'][0] == "on") {
      nameExceptions = true;
    }

    if (attrs['nsslapd-dn-validate-strict'][0] == "on") {
      dnValidate = true;
    }

    if ('nsslapd-listenhost' in attrs) {
      listenhost = attrs['nsslapd-listenhost'][0];
    }

    this.setState({
      loaded: true,
      loading: false,
      errObjConfig: {},
      errObjRootDN: {},
      errObjDiskMon: {},
      errObjAdv: {},
      // Settings
      'nsslapd-port': attrs['nsslapd-port'][0],
      'nsslapd-secureport': attrs['nsslapd-secureport'][0],
      'nsslapd-localhost': attrs['nsslapd-localhost'][0],
      'nsslapd-listenhost': listenhost,
      'nsslapd-bakdir': attrs['nsslapd-bakdir'][0],
      'nsslapd-ldifdir': attrs['nsslapd-ldifdir'][0],
      'nsslapd-schemadir': attrs['nsslapd-schemadir'][0],
      'nsslapd-certdir': attrs['nsslapd-certdir'][0],
      'nsslapd-rootdn': attrs['nsslapd-rootdn'][0],
      'nsslapd-rootpw': attrs['nsslapd-rootpw'][0],
      confirmRootpw: attrs['nsslapd-rootpw'][0],
      'nsslapd-rootpwstoragescheme': attrs['nsslapd-rootpwstoragescheme'][0],
      'nsslapd-anonlimitsdn': attrs['nsslapd-anonlimitsdn'][0],
      'nsslapd-disk-monitoring-threshold': attrs['nsslapd-disk-monitoring-threshold'][0],
      'nsslapd-disk-monitoring-grace-period': attrs['nsslapd-disk-monitoring-grace-period'][0],
      'nsslapd-allow-anonymous-access': attrs['nsslapd-allow-anonymous-access'][0],
      'nsslapd-disk-monitoring': diskMonitoring,
      'nsslapd-disk-monitoring-logging-critical': diskLogCritical,
      'nsslapd-schemacheck': schemaCheck,
      'nsslapd-syntaxcheck': syntaxCheck,
      'nsslapd-plugin-logging': pluginLogging,
      'nsslapd-syntaxlogging': syntaxLogging,
      'nsslapd-plugin-binddn-tracking': bindDNTracking,
      'nsslapd-attribute-name-exceptions': nameExceptions,
      'nsslapd-dn-validate-strict': dnValidate,
      'nsslapd-entryusn-global': usnGlobal,
      'nsslapd-ignore-time-skew': ignoreSkew,
      'nsslapd-readonly': readOnly,
      // Record original values
      '_nsslapd-port': attrs['nsslapd-port'][0],
      '_nsslapd-secureport': attrs['nsslapd-secureport'][0],
      '_nsslapd-localhost': attrs['nsslapd-localhost'][0],
      '_nsslapd-listenhost': listenhost,
      '_nsslapd-bakdir': attrs['nsslapd-bakdir'][0],
      '_nsslapd-ldifdir': attrs['nsslapd-ldifdir'][0],
      '_nsslapd-schemadir': attrs['nsslapd-schemadir'][0],
      '_nsslapd-certdir': attrs['nsslapd-certdir'][0],
      '_nsslapd-rootdn': attrs['nsslapd-rootdn'][0],
      '_nsslapd-rootpw': attrs['nsslapd-rootpw'][0],
      _confirmRootpw: attrs['nsslapd-rootpw'][0],
      '_nsslapd-rootpwstoragescheme': attrs['nsslapd-rootpwstoragescheme'][0],
      '_nsslapd-anonlimitsdn': attrs['nsslapd-anonlimitsdn'][0],
      '_nsslapd-disk-monitoring-threshold': attrs['nsslapd-disk-monitoring-threshold'][0],
      '_nsslapd-disk-monitoring-grace-period': attrs['nsslapd-disk-monitoring-grace-period'][0],
      '_nsslapd-allow-anonymous-access': attrs['nsslapd-allow-anonymous-access'][0],
      '_nsslapd-disk-monitoring': diskMonitoring,
      '_nsslapd-disk-monitoring-logging-critical': diskLogCritical,
      '_nsslapd-schemacheck': schemaCheck,
      '_nsslapd-syntaxcheck': syntaxCheck,
      '_nsslapd-plugin-logging': pluginLogging,
      '_nsslapd-syntaxlogging': syntaxLogging,
      '_nsslapd-plugin-binddn-tracking': bindDNTracking,
      '_nsslapd-attribute-name-exceptions': nameExceptions,
      '_nsslapd-dn-validate-strict': dnValidate,
      '_nsslapd-entryusn-global': usnGlobal,
      '_nsslapd-ignore-time-skew': ignoreSkew,
      '_nsslapd-readonly': readOnly
    }, this.props.enableTree);
  }

  saveRootDN() {
    this.setState({
      rootDNReloading: true
    });
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'config', 'replace'];

    var _iterator4 = _createForOfIteratorHelper(rootdn_attrs),
        _step4;

    try {
      for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
        var attr = _step4.value;

        if (attr != 'confirmRootpw' && this.state['_' + attr] != this.state[attr]) {
          cmd.push(attr + "=" + this.state[attr]);
        }
      }
    } catch (err) {
      _iterator4.e(err);
    } finally {
      _iterator4.f();
    }

    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("saveRootDN", "Saving changes to root DN", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.reloadRootDN();
      this.props.addNotification("success", "Successfully updated Directory Manager configuration");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.reloadRootDN();
      this.props.addNotification("error", "Error updating Directory Manager configuration - ".concat(errMsg.desc));
    });
  }

  reloadRootDN() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get"];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("reloadConfig", "Reload Directory Manager configuration", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var attrs = config.attrs;
      this.setState(() => ({
        rootDNReloading: false,
        'nsslapd-rootdn': attrs['nsslapd-rootdn'][0],
        'nsslapd-rootpw': attrs['nsslapd-rootpw'][0],
        confirmRootpw: attrs['nsslapd-rootpw'][0],
        'nsslapd-rootpwstoragescheme': attrs['nsslapd-rootpwstoragescheme'][0],
        // Record original values
        '_nsslapd-rootdn': attrs['nsslapd-rootdn'][0],
        '_nsslapd-rootpw': attrs['nsslapd-rootpw'][0],
        _confirmRootpw: attrs['nsslapd-rootpw'][0],
        '_nsslapd-rootpwstoragescheme': attrs['nsslapd-rootpwstoragescheme'][0],
        rootDNSaveDisabled: true
      }));
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.setState({
        rootDNReloading: false
      });
      this.props.addNotification("error", "Error reloading Directory Manager configuration - ".concat(errMsg.desc));
    });
  }

  saveDiskMonitoring() {
    this.setState({
      diskMonReloading: true
    });
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'config', 'replace'];

    var _iterator5 = _createForOfIteratorHelper(disk_attrs),
        _step5;

    try {
      for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
        var attr = _step5.value;

        if (this.state['_' + attr] != this.state[attr]) {
          var val = this.state[attr];

          if (typeof val === "boolean") {
            if (val) {
              val = "on";
            } else {
              val = "off";
            }
          }

          cmd.push(attr + "=" + val);
        }
      }
    } catch (err) {
      _iterator5.e(err);
    } finally {
      _iterator5.f();
    }

    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("saveRootDN", "Saving changes to Disk Monitoring", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.reloadDiskMonitoring();
      this.props.addNotification("success", "Successfully updated Disk Monitoring configuration");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.reloadDiskMonitoring();
      this.props.addNotification("error", "Error updating Disk Monitoring configuration - ".concat(errMsg.desc));
    });
  }

  reloadDiskMonitoring() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get"];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("reloadDiskMonitoring", "Reload Disk Monitoring configuration", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var attrs = config.attrs; // Handle the checkbox values

      var diskMonitoring = false;
      var diskLogCritical = false;

      if (attrs['nsslapd-disk-monitoring'][0] == "on") {
        diskMonitoring = true;
      }

      if (attrs['nsslapd-disk-monitoring-logging-critical'][0] == "on") {
        diskLogCritical = true;
      }

      this.setState(() => ({
        diskMonReloading: false,
        'nsslapd-disk-monitoring-threshold': attrs['nsslapd-disk-monitoring-threshold'][0],
        'nsslapd-disk-monitoring-grace-period': attrs['nsslapd-disk-monitoring-grace-period'][0],
        'nsslapd-disk-monitoring': diskMonitoring,
        'nsslapd-disk-monitoring-logging-critical': diskLogCritical,
        // Record original values
        '_nsslapd-disk-monitoring-threshold': attrs['nsslapd-disk-monitoring-threshold'][0],
        '_nsslapd-disk-monitoring-grace-period': attrs['nsslapd-disk-monitoring-grace-period'][0],
        '_nsslapd-disk-monitoring': diskMonitoring,
        '_nsslapd-disk-monitoring-logging-critical': diskLogCritical,
        diskMonSaveDisabled: true
      }));
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.setState({
        diskMonReloading: false
      });
      this.props.addNotification("error", "Error reloading Disk Monitoring configuration - ".concat(errMsg.desc));
    });
  }

  saveAdvanced() {
    this.setState({
      advReloading: true
    });
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'config', 'replace'];

    var _iterator6 = _createForOfIteratorHelper(adv_attrs),
        _step6;

    try {
      for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
        var attr = _step6.value;

        if (this.state['_' + attr] != this.state[attr]) {
          var val = this.state[attr];

          if (typeof val === "boolean") {
            if (val) {
              val = "on";
            } else {
              val = "off";
            }
          }

          cmd.push(attr + "=" + val);
        }
      }
    } catch (err) {
      _iterator6.e(err);
    } finally {
      _iterator6.f();
    }

    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("saveAdvanced", "Saving Advanced configuration", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.reloadAdvanced();
      this.props.addNotification("success", "Successfully updated Advanced configuration");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.reloadAdvanced();
      this.props.addNotification("error", "Error updating Advanced configuration - ".concat(errMsg.desc));
    });
  }

  reloadAdvanced() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get"];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("reloadAdvanced", "Reload Advanced configuration", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var attrs = config.attrs; // Handle the checkbox values

      var schemaCheck = false;
      var syntaxCheck = false;
      var pluginLogging = false;
      var syntaxLogging = false;
      var bindDNTracking = false;
      var nameExceptions = false;
      var dnValidate = false;
      var usnGlobal = false;
      var ignoreSkew = false;
      var readOnly = false;

      if (attrs['nsslapd-entryusn-global'][0] == "on") {
        usnGlobal = true;
      }

      if (attrs['nsslapd-ignore-time-skew'][0] == "on") {
        ignoreSkew = true;
      }

      if (attrs['nsslapd-readonly'][0] == "on") {
        readOnly = true;
      }

      if (attrs['nsslapd-schemacheck'][0] == "on") {
        schemaCheck = true;
      }

      if (attrs['nsslapd-syntaxcheck'][0] == "on") {
        syntaxCheck = true;
      }

      if (attrs['nsslapd-plugin-logging'][0] == "on") {
        pluginLogging = true;
      }

      if (attrs['nsslapd-syntaxlogging'][0] == "on") {
        syntaxLogging = true;
      }

      if (attrs['nsslapd-plugin-binddn-tracking'][0] == "on") {
        bindDNTracking = true;
      }

      if (attrs['nsslapd-attribute-name-exceptions'][0] == "on") {
        nameExceptions = true;
      }

      if (attrs['nsslapd-dn-validate-strict'][0] == "on") {
        dnValidate = true;
      }

      this.setState(() => ({
        'nsslapd-anonlimitsdn': attrs['nsslapd-anonlimitsdn'][0],
        'nsslapd-allow-anonymous-access': attrs['nsslapd-allow-anonymous-access'][0],
        'nsslapd-schemacheck': schemaCheck,
        'nsslapd-syntaxcheck': syntaxCheck,
        'nsslapd-plugin-logging': pluginLogging,
        'nsslapd-syntaxLogging': syntaxLogging,
        'nsslapd-plugin-binddn-tracking': bindDNTracking,
        'nsslapd-attribute-name-exceptions': nameExceptions,
        'nsslapd-dn-validate-strict': dnValidate,
        'nsslapd-entryusn-global': usnGlobal,
        'nsslapd-ignore-time-skew': ignoreSkew,
        'nsslapd-readonly': readOnly,
        // Record original values
        '_nsslapd-anonlimitsdn': attrs['nsslapd-anonlimitsdn'][0],
        '_nsslapd-allow-anonymous-access': attrs['nsslapd-allow-anonymous-access'][0],
        '_nsslapd-schemacheck': schemaCheck,
        '_nsslapd-syntaxcheck': syntaxCheck,
        '_nsslapd-plugin-logging': pluginLogging,
        '_nsslapd-syntaxLogging': syntaxLogging,
        '_nsslapd-plugin-binddn-tracking': bindDNTracking,
        '_nsslapd-attribute-name-exceptions': nameExceptions,
        '_nsslapd-dn-validate-strict': dnValidate,
        '_nsslapd-entryusn-global': usnGlobal,
        '_nsslapd-ignore-time-skew': ignoreSkew,
        '_nsslapd-readonly': readOnly,
        advReloading: false,
        advSaveDisabled: true
      }));
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error loading Advanced configuration - ".concat(errMsg.desc));
      this.setState({
        advReloading: false
      });
    });
  }

  saveConfig() {
    // Build up the command list
    this.setState({
      configReloading: true
    });
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'config', 'replace'];

    var _iterator7 = _createForOfIteratorHelper(general_attrs),
        _step7;

    try {
      for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
        var attr = _step7.value;

        if (this.state['_' + attr] != this.state[attr]) {
          cmd.push(attr + "=" + this.state[attr]);
        }
      }
    } catch (err) {
      _iterator7.e(err);
    } finally {
      _iterator7.f();
    }

    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("saveConfig", "Applying server config change", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      // Continue with the next mod
      this.reloadConfig();
      this.props.addNotification("warning", "Successfully updated server configuration.  These " + "changes require the server to be restarted to take effect.");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.reloadConfig();
      this.props.addNotification("error", "Error updating server configuration - ".concat(errMsg.desc));
    });
  }

  reloadConfig() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get"];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("reloadConfig", "Reload server configuration", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var attrs = config.attrs;
      var listenhost = "";

      if ('nsslapd-listenhost' in attrs) {
        listenhost = attrs['nsslapd-listenhost'][0];
      }

      this.setState(() => ({
        configReloading: false,
        configSaveDisabled: true,
        errObjConfig: {},
        errObjRootDN: {},
        errObjDiskMon: {},
        errObjAdv: {},
        'nsslapd-port': attrs['nsslapd-port'][0],
        'nsslapd-secureport': attrs['nsslapd-secureport'][0],
        'nsslapd-localhost': attrs['nsslapd-localhost'][0],
        'nsslapd-listenhost': listenhost,
        'nsslapd-bakdir': attrs['nsslapd-bakdir'][0],
        'nsslapd-ldifdir': attrs['nsslapd-ldifdir'][0],
        'nsslapd-schemadir': attrs['nsslapd-schemadir'][0],
        'nsslapd-certdir': attrs['nsslapd-certdir'][0],
        // Record original values
        '_nsslapd-port': attrs['nsslapd-port'][0],
        '_nsslapd-secureport': attrs['nsslapd-secureport'][0],
        '_nsslapd-localhost': attrs['nsslapd-localhost'][0],
        '_nsslapd-listenhost': listenhost,
        '_nsslapd-bakdir': attrs['nsslapd-bakdir'][0],
        '_nsslapd-ldifdir': attrs['nsslapd-ldifdir'][0],
        '_nsslapd-schemadir': attrs['nsslapd-schemadir'][0],
        '_nsslapd-certdir': attrs['nsslapd-certdir'][0]
      }));
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error reloading server configuration - ".concat(errMsg.desc));
      this.setState({
        configReloading: false
      });
    });
  }

  render() {
    var body = "";
    var diskMonitor = "";
    var saveBtnName = "Save Settings";
    var extraPrimaryProps = {};

    if (this.state.configReloading || this.state.rootDNReloading || this.state.diskMonReloading || this.state.advReloading) {
      saveBtnName = "Saving settings ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    if (this.state['nsslapd-disk-monitoring']) {
      diskMonitor = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Form, {
        isHorizontal: true,
        autoComplete: "off",
        className: "ds-margin-top-lg ds-left-indent-lg ds-margin-bottom"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
        title: "The available disk space, in bytes, that will trigger the shutdown process. Default is 2mb. Once below half of the threshold then we enter the shutdown mode. Value range: 4096 - 9223372036854775807. (nsslapd-disk-monitoring-threshold)"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Disk Monitoring Threshold"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.NumberInput, {
        value: this.state['nsslapd-disk-monitoring-threshold'],
        min: 4096,
        max: 9223372036854775807,
        onMinus: () => {
          this.onMinusConfig("nsslapd-disk-monitoring-threshold", "diskmon");
        },
        onChange: e => {
          this.onConfigChange(e, "nsslapd-disk-monitoring-threshold", 1, 9223372036854775807, "diskmon");
        },
        onPlus: () => {
          this.onPlusConfig("nsslapd-disk-monitoring-threshold", "diskmon");
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 8
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.FormHelperText, {
        isError: true,
        isHidden: !this.state.errObjDiskMon['nsslapd-disk-monitoring-threshold']
      }, "Value must be greater than or equal to 4096"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
        title: "How many minutes to wait to allow an admin to clean up disk space before shutting slapd down. The default is 60 minutes. (nsslapd-disk-monitoring-grace-period)"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Disk Monitoring Grace Period"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.NumberInput, {
        value: this.state['nsslapd-disk-monitoring-grace-period'],
        min: 1,
        max: 2147483647,
        onMinus: () => {
          this.onMinusConfig("nsslapd-disk-monitoring-grace-period", "diskmon");
        },
        onChange: e => {
          this.onConfigChange(e, "nsslapd-disk-monitoring-grace-period", 1, 2147483647, "diskmon");
        },
        onPlus: () => {
          this.onPlusConfig("nsslapd-disk-monitoring-grace-period", "diskmon");
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 8
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
        className: "ds-margin-top",
        title: "When disk space gets critically low do not remove logs to free up disk space. (nsslapd-disk-monitoring-logging-critical)"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Checkbox, {
        id: "nsslapd-disk-monitoring-logging-critical",
        isChecked: this.state['nsslapd-disk-monitoring-logging-critical'],
        onChange: (str, e) => {
          this.handleChange(e, "diskmon");
        },
        label: "Preserve Logs Even If Disk Space Gets Low"
      }))));
    }

    if (this.state.loading) {
      body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-loading-spinner ds-margin-top ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextVariants.h3
      }, "Loading Server Settings ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Spinner, {
        className: "ds-margin-top",
        size: "md"
      }));
    } else {
      body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-bottom-md"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextVariants.h3
      }, "Server Settings ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, {
        size: "lg",
        className: "ds-left-margin ds-refresh",
        icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_14__.faSyncAlt,
        title: "Refresh configuration settings",
        onClick: this.reloadConfig
      }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: this.state.loading ? 'ds-fadeout' : 'ds-fadein ds-left-margin'
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Tabs, {
        className: "ds-margin-top-lg",
        activeKey: this.state.activeTabKey,
        onSelect: this.handleNavSelect
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Tab, {
        eventKey: 0,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.TabTitleText, null, "General Settings")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Form, {
        autoComplete: "off",
        className: "ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
        title: "The version of the Directory Server rpm package"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        className: "ds-label",
        span: 2
      }, "Server Version"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 10
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TextInput, {
        value: this.props.version,
        type: "text",
        id: "server-version",
        "aria-describedby": "horizontal-form-name-helper",
        name: "server-version",
        isDisabled: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
        title: "The server's local hostname (nsslapd-localhost)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        className: "ds-label",
        span: 2
      }, "Server Hostname"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 10
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TextInput, {
        value: this.state['nsslapd-localhost'],
        type: "text",
        id: "nsslapd-localhost",
        "aria-describedby": "horizontal-form-name-helper",
        name: "server-hostname",
        onChange: (str, e) => {
          this.handleChange(e, "config");
        },
        validated: this.state.errObjConfig['nsslapd-localhost'] ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.ValidatedOptions["default"]
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
        title: "The server's port number (nsslapd-port)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        className: "ds-label",
        span: 2
      }, "LDAP Port"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 10
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.NumberInput, {
        value: this.state['nsslapd-port'],
        min: 1,
        max: 65534,
        onMinus: () => {
          this.onMinusConfig("nsslapd-port", "config");
        },
        onChange: e => {
          this.onConfigChange(e, "nsslapd-port", 1, 65534, "config");
        },
        onPlus: () => {
          this.onPlusConfig("nsslapd-port", "config");
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 8,
        validated: this.state.errObjConfig['nsslapd-port'] ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.ValidatedOptions["default"]
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
        title: "The server's secure port number (nsslapd-secureport)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        className: "ds-label",
        span: 2
      }, "LDAPS Port"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 10
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.NumberInput, {
        value: this.state['nsslapd-secureport'],
        min: 1,
        max: 65534,
        onMinus: () => {
          this.onMinusConfig("nsslapd-secureport", "config");
        },
        onChange: e => {
          this.onConfigChange(e, "nsslapd-secureport", 1, 65534, "config");
        },
        onPlus: () => {
          this.onPlusConfig("nsslapd-secureport", "config");
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 8,
        validated: this.state.errObjConfig['nsslapd-secureport'] ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.ValidatedOptions["default"]
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
        title: "This parameter can be used to restrict the Directory Server instance to a single IP interface (hostname, or IP address).  Requires restart. (nsslapd-listenhost)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        className: "ds-label",
        span: 2
      }, "Listen Host Address"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 10
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TextInput, {
        value: this.state['nsslapd-listenhost'],
        type: "text",
        id: "nsslapd-listenhost",
        "aria-describedby": "horizontal-form-name-helper",
        name: "server-listenhost",
        onChange: (str, e) => {
          this.handleChange(e, "config");
        },
        validated: this.state.errObjConfig['nsslapd-listenhost'] ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.ValidatedOptions["default"]
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
        title: this.state.errObjConfig['nsslapd-bakdir'] ? "Invalid backup directory path!" : "The location where database backups are stored (nsslapd-bakdir)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        className: "ds-label",
        span: 2
      }, "Backup Directory"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 10
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TextInput, {
        value: this.state['nsslapd-bakdir'],
        type: "text",
        id: "nsslapd-bakdir",
        "aria-describedby": "horizontal-form-name-helper",
        name: "server-bakdir",
        onChange: (str, e) => {
          this.handleChange(e, "config");
        },
        validated: this.state.errObjConfig['nsslapd-bakdir'] ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.ValidatedOptions["default"]
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
        title: this.state.errObjConfig['nsslapd-ldifdir'] ? "Invalid LDIF directory path!" : "The location where the server's LDIF files are located (nsslapd-ldifdir)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        className: "ds-label",
        span: 2
      }, "LDIF File Directory"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 10
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TextInput, {
        value: this.state['nsslapd-ldifdir'],
        type: "text",
        id: "nsslapd-ldifdir",
        "aria-describedby": "horizontal-form-name-helper",
        name: "server-ldifdir",
        onChange: (str, e) => {
          this.handleChange(e, "config");
        },
        validated: this.state.errObjConfig['nsslapd-ldifdir'] ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.ValidatedOptions["default"]
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
        title: this.state.errObjConfig['nsslapd-schemadir'] ? "Invalid schema directory path!" : "The location for the servers custom schema files. (nsslapd-schemadir)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        className: "ds-label",
        span: 2
      }, "Schema Directory"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 10
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TextInput, {
        value: this.state['nsslapd-schemadir'],
        type: "text",
        id: "nsslapd-schemadir",
        "aria-describedby": "horizontal-form-name-helper",
        name: "server-schemadir",
        onChange: (str, e) => {
          this.handleChange(e, "config");
        },
        validated: this.state.errObjConfig['nsslapd-schemadir'] ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.ValidatedOptions["default"]
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
        title: this.state.errObjConfig['nsslapd-certdir'] ? "Invalid certificate directory path!" : "The location of the server's certificates (nsslapd-certdir)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        className: "ds-label",
        span: 2
      }, "Certificate Directory"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 10
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TextInput, {
        value: this.state['nsslapd-certdir'],
        type: "text",
        id: "nsslapd-certdir",
        "aria-describedby": "horizontal-form-name-helper",
        name: "server-certdir",
        onChange: (str, e) => {
          this.handleChange(e, "config");
        },
        validated: this.state.errObjConfig['nsslapd-certdir'] ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.ValidatedOptions["default"]
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Button, _extends({
        isDisabled: this.state.configSaveDisabled,
        variant: "primary",
        className: "ds-margin-top-xlg",
        onClick: this.saveConfig,
        isLoading: this.state.configReloading,
        spinnerAriaValueText: this.state.configReloading ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Tab, {
        eventKey: 1,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.TabTitleText, null, "Directory Manager")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Form, {
        className: "ds-margin-top-xlg",
        isHorizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
        title: "The DN of the unrestricted directory manager (nsslapd-rootdn)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Directory Manager DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TextInput, {
        value: this.state['nsslapd-rootdn'],
        type: "text",
        id: "nsslapd-rootdn",
        "aria-describedby": "horizontal-form-name-helper",
        name: "nsslapd-rootdn",
        isDisabled: true
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
        title: "The password for the Root DN/Directory Manager (nsslapd-rootpw)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Directory Manager Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TextInput, {
        value: this.state['nsslapd-rootpw'],
        type: "password",
        id: "nsslapd-rootpw",
        "aria-describedby": "horizontal-form-name-helper",
        name: "nsslapd-rootpw",
        onChange: (str, e) => {
          this.handleChange(e, "rootdn");
        },
        validated: this.state.errObjRootDN['nsslapd-rootpw'] ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.ValidatedOptions["default"]
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
        title: "Confirm the Directory Manager password"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Confirm Password"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TextInput, {
        value: this.state.confirmRootpw,
        type: "password",
        id: "confirmRootpw",
        "aria-describedby": "horizontal-form-name-helper",
        name: "confirmRootpw",
        onChange: (str, e) => {
          this.handleChange(e, "rootdn");
        },
        validated: this.state.errObjRootDN.confirmRootpw ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.ValidatedOptions["default"]
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
        title: "Set the Directory Manager password storage scheme (nsslapd-rootpwstoragescheme)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Password Storage Scheme"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.FormSelect, {
        id: "nsslapd-rootpwstoragescheme",
        value: this.state['nsslapd-rootpwstoragescheme'],
        onChange: (str, e) => {
          this.handleChange(e, "rootdn");
        },
        "aria-label": "FormSelect Input"
      }, this.options.map((option, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.FormSelectOption, {
        key: index,
        value: option.value,
        label: option.label
      })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Button, _extends({
        variant: "primary",
        className: "ds-margin-top-xlg",
        isDisabled: this.state.rootDNSaveDisabled,
        onClick: this.saveRootDN,
        isLoading: this.state.rootDNReloading,
        spinnerAriaValueText: this.state.rootDNReloading ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Tab, {
        eventKey: 2,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.TabTitleText, null, "Disk Monitoring")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Form, {
        className: "ds-margin-left ds-margin-top-xlg",
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Checkbox, {
        id: "nsslapd-disk-monitoring",
        isChecked: this.state['nsslapd-disk-monitoring'],
        onChange: (str, e) => {
          this.handleChange(e, "diskmon");
        },
        label: "Enable Disk Space Monitoring"
      })), diskMonitor, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Button, _extends({
        isDisabled: this.state.diskMonSaveDisabled,
        variant: "primary",
        className: "ds-margin-top-xlg",
        onClick: this.saveDiskMonitoring,
        isLoading: this.state.diskMonReloading,
        spinnerAriaValueText: this.state.diskMonReloading ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Tab, {
        eventKey: 3,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.TabTitleText, null, "Advanced Settings")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.Form, {
        className: "ds-margin-top-xlg ds-margin-left",
        isHorizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Checkbox, {
        id: "nsslapd-schemacheck",
        isChecked: this.state['nsslapd-schemacheck'],
        onChange: (str, e) => {
          this.handleChange(e, "adv");
        },
        title: "Enable schema checking (nsslapd-schemacheck).",
        "aria-label": "uncontrolled checkbox example",
        label: "Enable Schema Checking"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Checkbox, {
        id: "nsslapd-syntaxcheck",
        isChecked: this.state['nsslapd-syntaxcheck'],
        onChange: (str, e) => {
          this.handleChange(e, "adv");
        },
        title: "Enable attribute syntax checking (nsslapd-syntaxcheck).",
        label: "Enable Attribute Syntax Checking"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Checkbox, {
        id: "nsslapd-plugin-logging",
        isChecked: this.state['nsslapd-plugin-logging'],
        onChange: (str, e) => {
          this.handleChange(e, "adv");
        },
        title: "Enable plugins to log access and audit events.  (nsslapd-plugin-logging).",
        label: "Enable Plugin Logging"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Checkbox, {
        id: "nsslapd-syntaxlogging",
        isChecked: this.state['nsslapd-syntaxlogging'],
        onChange: (str, e) => {
          this.handleChange(e, "adv");
        },
        title: "Enable syntax logging (nsslapd-syntaxlogging).",
        label: "Enable Attribute Syntax Logging"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Checkbox, {
        id: "nsslapd-plugin-binddn-tracking",
        isChecked: this.state['nsslapd-plugin-binddn-tracking'],
        onChange: (str, e) => {
          this.handleChange(e, "adv");
        },
        label: "Enable Plugin Bind DN Tracking",
        title: "Enabling this feature will write new operational attributes to the modified entry: internalModifiersname & internalCreatorsname. These new attributes contain the plugin DN, while modifiersname will be the original binding entry that triggered the update. (nsslapd-plugin-binddn-tracking)."
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Checkbox, {
        id: "nsslapd-attribute-name-exceptions",
        isChecked: this.state['nsslapd-attribute-name-exceptions'],
        onChange: (str, e) => {
          this.handleChange(e, "adv");
        },
        title: "Allows non-standard characters in attribute names to be used for backwards compatibility with older servers (nsslapd-attribute-name-exceptions).",
        label: "Allow Attribute Naming Exceptions"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Checkbox, {
        id: "nsslapd-dn-validate-strict",
        isChecked: this.state['nsslapd-dn-validate-strict'],
        onChange: (str, e) => {
          this.handleChange(e, "adv");
        },
        label: "Strict DN Syntax Validation",
        title: "Enables strict syntax validation for DNs, according to section 3 in RFC 4514 (nsslapd-dn-validate-strict)."
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Checkbox, {
        id: "nsslapd-entryusn-global",
        isChecked: this.state['nsslapd-entryusn-global'],
        onChange: (str, e) => {
          this.handleChange(e, "adv");
        },
        title: "For USN plugin - maintain unique USNs across all back end databases (nsslapd-entryusn-global).",
        label: "Maintain Unique USNs Across All Backends"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Checkbox, {
        id: "nsslapd-ignore-time-skew",
        isChecked: this.state['nsslapd-ignore-time-skew'],
        onChange: (str, e) => {
          this.handleChange(e, "adv");
        },
        title: "Ignore replication time skew when acquiring a replica to start a replciation session (nsslapd-ignore-time-skew).",
        label: "Ignore CSN Time Skew"
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 5
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Checkbox, {
        id: "nsslapd-readonly",
        isChecked: this.state['nsslapd-readonly'],
        onChange: (str, e) => {
          this.handleChange(e, "adv");
        },
        title: "Make entire server read-only (nsslapd-readonly)",
        label: "Server Read-Only"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
        className: "ds-margin-top",
        title: "Allow anonymous binds to the server (nsslapd-allow-anonymous-access)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Allow Anonymous Access"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.FormSelect, {
        id: "nsslapd-allow-anonymous-access",
        value: this.state['nsslapd-allow-anonymous-access'],
        onChange: (str, e) => {
          this.handleChange(e, "adv");
        },
        "aria-label": "FormSelect Input"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.FormSelectOption, {
        key: "0",
        value: "on",
        label: "on"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.FormSelectOption, {
        key: "1",
        value: "off",
        label: "off"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.FormSelectOption, {
        key: "2",
        value: "rootdse",
        label: "rootdse",
        title: "Allows anonymous search and read access to search the root DSE itself, but restricts access to all other directory entries. "
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Grid, {
        title: "The DN of a template entry containing the resource limits to apply to anonymous connections (nsslapd-anonlimitsdn)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Anonymous Resource Limits DN"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TextInput, {
        value: this.state['nsslapd-anonlimitsdn'],
        type: "text",
        id: "nsslapd-anonlimitsdn",
        "aria-describedby": "horizontal-form-name-helper",
        name: "nsslapd-anonlimitsdn",
        onChange: (str, e) => {
          this.handleChange(e, "adv");
        },
        validated: this.state.errObjAdv.anonLimitsDN ? _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.ValidatedOptions.error : _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.ValidatedOptions["default"]
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Button, _extends({
        isDisabled: this.state.advSaveDisabled,
        variant: "primary",
        className: "ds-margin-top-xlg",
        onClick: this.saveAdvanced,
        isLoading: this.state.advReloading,
        spinnerAriaValueText: this.state.advReloading ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName)))));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      id: "server-settings-page",
      className: this.state.configReloading || this.state.rootDNReloading || this.state.diskMonReloading || this.state.advReloading ? "ds-disabled" : ""
    }, body);
  }

} // Property types and defaults

ServerSettings.propTypes = {
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().func),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().string),
  version: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().string),
  attrs: (prop_types__WEBPACK_IMPORTED_MODULE_23___default().object)
};
ServerSettings.defaultProps = {
  serverId: "",
  version: "",
  attrs: {}
};

/***/ }),

/***/ "./src/lib/server/tuning.jsx":
/*!***********************************!*\
  !*** ./src/lib/server/tuning.jsx ***!
  \***********************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "ServerTuning": () => (/* binding */ ServerTuning)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/NumberInput/NumberInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/ExpandableSection/ExpandableSection.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_16__);
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
/* harmony import */ var _fortawesome_fontawesome_svg_core_styles_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core/styles.css */ "./node_modules/@fortawesome/fontawesome-svg-core/styles.css");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }









var tuning_attrs = ['nsslapd-ndn-cache-enabled', 'nsslapd-ignore-virtual-attrs', 'nsslapd-connection-nocanon', 'nsslapd-enable-turbo-mode', 'nsslapd-threadnumber', 'nsslapd-maxdescriptors', 'nsslapd-timelimit', 'nsslapd-sizelimit', 'nsslapd-pagedsizelimit', 'nsslapd-idletimeout', 'nsslapd-ioblocktimeout', 'nsslapd-outbound-ldap-io-timeout', 'nsslapd-maxbersize', 'nsslapd-maxsasliosize', 'nsslapd-listen-backlog-size', 'nsslapd-max-filter-nest-level', 'nsslapd-ndn-cache-max-size'];
class ServerTuning extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      loading: false,
      loaded: false,
      activeKey: 1,
      saveDisabled: true,
      errObj: {},
      attrs: this.props.attrs,
      isExpanded: false
    };

    this.onToggle = isExpanded => {
      this.setState({
        isExpanded
      });
    };

    this.maxValue = 2000000000;

    this.onMinusConfig = id => {
      this.setState({
        [id]: Number(this.state[id]) - 1
      }, () => {
        this.validateSaveBtn();
      });
    };

    this.onConfigChange = (event, id, min, max) => {
      var maxValue = this.maxValue;

      if (max !== 0) {
        maxValue = max;
      }

      var newValue = isNaN(event.target.value) ? 0 : Number(event.target.value);
      this.setState({
        [id]: newValue > maxValue ? maxValue : newValue < min ? min : newValue
      }, () => {
        this.validateSaveBtn();
      });
    };

    this.onPlusConfig = id => {
      this.setState({
        [id]: Number(this.state[id]) + 1
      }, () => {
        this.validateSaveBtn();
      });
    };

    this.validateSaveBtn = this.validateSaveBtn.bind(this);
    this.handleChange = this.handleChange.bind(this);
    this.loadConfig = this.loadConfig.bind(this);
    this.saveConfig = this.saveConfig.bind(this);
  }

  componentDidMount() {
    if (!this.state.loaded) {
      this.loadConfig();
    } else {
      this.props.enableTree();
    }
  }

  validateSaveBtn() {
    var saveBtnDisabled = true; // Check if a setting was changed, if so enable the save button

    var _iterator = _createForOfIteratorHelper(tuning_attrs),
        _step;

    try {
      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        var config_attr = _step.value;

        if (this.state[config_attr] != this.state['_' + config_attr]) {
          saveBtnDisabled = false;
          break;
        }
      }
    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }

    this.setState({
      saveDisabled: saveBtnDisabled
    });
  }

  handleChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    this.setState({
      [attr]: value
    }, () => {
      this.validateSaveBtn();
    });
  }

  loadConfig(reloading) {
    if (reloading) {
      this.setState({
        loaded: false
      });
    }

    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get"];
    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadConfig", "Load server tuning configuration", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var attrs = config.attrs;
      var ndnEnabled = false;
      var ignoreVirtAttrs = false;
      var connNoCannon = false;
      var turboMode = false;

      if (attrs['nsslapd-ndn-cache-enabled'][0] == "on") {
        ndnEnabled = true;
      }

      if (attrs['nsslapd-ignore-virtual-attrs'][0] == "on") {
        ignoreVirtAttrs = true;
      }

      if (attrs['nsslapd-connection-nocanon'][0] == "on") {
        connNoCannon = true;
      }

      if (attrs['nsslapd-enable-turbo-mode'][0] == "on") {
        turboMode = true;
      }

      this.setState({
        loaded: true,
        loading: false,
        saveDisabled: true,
        // Settings
        'nsslapd-ndn-cache-enabled': ndnEnabled,
        'nsslapd-ignore-virtual-attrs': ignoreVirtAttrs,
        'nsslapd-connection-nocanon': connNoCannon,
        'nsslapd-enable-turbo-mode': turboMode,
        'nsslapd-threadnumber': attrs['nsslapd-threadnumber'][0],
        'nsslapd-maxdescriptors': attrs['nsslapd-maxdescriptors'][0],
        'nsslapd-timelimit': attrs['nsslapd-timelimit'][0],
        'nsslapd-sizelimit': attrs['nsslapd-sizelimit'][0],
        'nsslapd-pagedsizelimit': attrs['nsslapd-pagedsizelimit'][0],
        'nsslapd-idletimeout': attrs['nsslapd-idletimeout'][0],
        'nsslapd-ioblocktimeout': attrs['nsslapd-ioblocktimeout'][0],
        'nsslapd-outbound-ldap-io-timeout': attrs['nsslapd-outbound-ldap-io-timeout'][0],
        'nsslapd-maxbersize': attrs['nsslapd-maxbersize'][0],
        'nsslapd-maxsasliosize': attrs['nsslapd-maxsasliosize'][0],
        'nsslapd-listen-backlog-size': attrs['nsslapd-listen-backlog-size'][0],
        'nsslapd-max-filter-nest-level': attrs['nsslapd-max-filter-nest-level'][0],
        'nsslapd-ndn-cache-max-size': attrs['nsslapd-ndn-cache-max-size'][0],
        // Record original values
        '_nsslapd-ndn-cache-enabled': ndnEnabled,
        '_nsslapd-ignore-virtual-attrs': ignoreVirtAttrs,
        '_nsslapd-connection-nocanon': connNoCannon,
        '_nsslapd-enable-turbo-mode': turboMode,
        '_nsslapd-threadnumber': attrs['nsslapd-threadnumber'][0],
        '_nsslapd-maxdescriptors': attrs['nsslapd-maxdescriptors'][0],
        '_nsslapd-timelimit': attrs['nsslapd-timelimit'][0],
        '_nsslapd-sizelimit': attrs['nsslapd-sizelimit'][0],
        '_nsslapd-pagedsizelimit': attrs['nsslapd-pagedsizelimit'][0],
        '_nsslapd-idletimeout': attrs['nsslapd-idletimeout'][0],
        '_nsslapd-ioblocktimeout': attrs['nsslapd-ioblocktimeout'][0],
        '_nsslapd-outbound-ldap-io-timeout': attrs['nsslapd-outbound-ldap-io-timeout'][0],
        '_nsslapd-maxbersize': attrs['nsslapd-maxbersize'][0],
        '_nsslapd-maxsasliosize': attrs['nsslapd-maxsasliosize'][0],
        '_nsslapd-listen-backlog-size': attrs['nsslapd-listen-backlog-size'][0],
        '_nsslapd-max-filter-nest-level': attrs['nsslapd-max-filter-nest-level'][0],
        '_nsslapd-ndn-cache-max-size': attrs['nsslapd-ndn-cache-max-size'][0]
      }, this.props.enableTree());
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.setState({
        loaded: true
      });
      this.props.addNotification("error", "Error loading server configuration - ".concat(errMsg.desc));
    });
  }

  saveConfig() {
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'config', 'replace'];
    this.setState({
      loading: true
    });

    var _iterator2 = _createForOfIteratorHelper(tuning_attrs),
        _step2;

    try {
      for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
        var attr = _step2.value;

        if (this.state['_' + attr] != this.state[attr]) {
          var val = this.state[attr];

          if (typeof val === "boolean") {
            if (val) {
              val = "on";
            } else {
              val = "off";
            }
          }

          cmd.push(attr + "=" + val);
        }
      }
    } catch (err) {
      _iterator2.e(err);
    } finally {
      _iterator2.f();
    }

    (0,_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("saveConfig", "Saving Tuning configuration", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      this.loadConfig();
      this.props.addNotification("success", "Successfully updated tuning configuration");
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.loadConfig();
      this.props.addNotification("error", "Error updating tuning configuration - ".concat(errMsg.desc));
    });
  }

  render() {
    var body = "";
    var saveBtnName = "Save Settings";
    var extraPrimaryProps = {};

    if (this.state.loading) {
      saveBtnName = "Saving settings ...";
      extraPrimaryProps.spinnerAriaValueText = "Saving";
    }

    if (!this.state.loaded) {
      body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-loading-spinner ds-margin-top-xlg ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextVariants.h3
      }, "Loading Tuning Configuration ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Spinner, {
        className: "ds-margin-top",
        size: "lg"
      }));
    } else {
      body = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: this.state.loading ? "ds-disabled ds-margin-bottom-md" : "ds-margin-bottom-md"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_5__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextVariants.h3
      }, "Tuning & Limits ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__.FontAwesomeIcon, {
        size: "lg",
        className: "ds-left-margin ds-refresh",
        icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_10__.faSyncAlt,
        title: "Refresh settings",
        onClick: () => {
          this.loadConfig(1);
        }
      }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Form, {
        className: "ds-left-margin",
        isHorizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
        className: "ds-margin-top-xlg",
        title: "The number of worker threads that handle database operations.  Set to '-1' for enable auto tuning. (nsslapd-threadnumber)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Number Of Worker Threads"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.NumberInput, {
        value: this.state['nsslapd-threadnumber'],
        min: -1,
        max: 512,
        onMinus: () => {
          this.onMinusConfig("nsslapd-threadnumber");
        },
        onChange: e => {
          this.onConfigChange(e, "nsslapd-threadnumber", -1, 512);
        },
        onPlus: () => {
          this.onPlusConfig("nsslapd-threadnumber");
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 8
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
        title: "The maximum number of seconds allocated for a search request.  Set to '-1' to disable the time limit (nsslapd-timelimit)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Search Time Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.NumberInput, {
        value: this.state['nsslapd-timelimit'],
        min: -1,
        max: this.maxValue,
        onMinus: () => {
          this.onMinusConfig("nsslapd-timelimit");
        },
        onChange: e => {
          this.onConfigChange(e, "nsslapd-timelimit", -1, 0);
        },
        onPlus: () => {
          this.onPlusConfig("nsslapd-timelimit");
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 8
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
        title: "The maximum number of entries to return from a search operation.  Set to '-1' to disable the size limit (nsslapd-sizelimit)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Search Size Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.NumberInput, {
        value: this.state['nsslapd-sizelimit'],
        min: -1,
        max: this.maxValue,
        onMinus: () => {
          this.onMinusConfig("nsslapd-sizelimit");
        },
        onChange: e => {
          this.onConfigChange(e, "nsslapd-sizelimit", -1, 0);
        },
        onPlus: () => {
          this.onPlusConfig("nsslapd-sizelimit");
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 8
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
        title: "The maximum number of entries to return from a paged search operation. Set to '-1' to disable the size limit (nsslapd-pagedsizelimit)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Paged Search Size Limit"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.NumberInput, {
        value: this.state['nsslapd-pagedsizelimit'],
        min: -1,
        max: this.maxValue,
        onMinus: () => {
          this.onMinusConfig("nsslapd-pagedsizelimit");
        },
        onChange: e => {
          this.onConfigChange(e, "nsslapd-pagedsizelimit", -1, 0);
        },
        onPlus: () => {
          this.onPlusConfig("nsslapd-pagedsizelimit");
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 8
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
        title: "Sets the amount of time in seconds after which an idle LDAP client connection is closed by the server (nsslapd-idletimeout)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Idle Connection Timeout"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.NumberInput, {
        value: this.state['nsslapd-idletimeout'],
        min: 0,
        max: this.maxValue,
        onMinus: () => {
          this.onMinusConfig("nsslapd-idletimeout");
        },
        onChange: e => {
          this.onConfigChange(e, "nsslapd-idletimeout", 0, 0);
        },
        onPlus: () => {
          this.onPlusConfig("nsslapd-idletimeout");
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 8
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
        title: "Sets the amount of time in milliseconds after which the connection to a stalled LDAP client is closed (nsslapd-ioblocktimeout)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        className: "ds-label",
        span: 3
      }, "I/O Block Timeout"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.NumberInput, {
        value: this.state['nsslapd-ioblocktimeout'],
        min: 0,
        max: this.maxValue,
        onMinus: () => {
          this.onMinusConfig("nsslapd-ioblocktimeout");
        },
        onChange: e => {
          this.onConfigChange(e, "nsslapd-ioblocktimeout", 0, 0);
        },
        onPlus: () => {
          this.onPlusConfig("nsslapd-ioblocktimeout");
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 8
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.ExpandableSection, {
        className: "ds-margin-top-xlg",
        toggleText: this.state.isExpanded ? 'Hide Advanced Settings' : 'Show Advanced Settings',
        onToggle: this.onToggle,
        isExpanded: this.state.isExpanded
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-top ds-indent"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.Form, {
        isHorizontal: true,
        autoComplete: "off"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
        className: "ds-margin-top",
        title: "Sets the I/O wait time for all outbound LDAP connections (nsslapd-outbound-ldap-io-timeout)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Outbound IO Timeout"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.NumberInput, {
        value: this.state['nsslapd-outbound-ldap-io-timeout'],
        min: 0,
        max: this.maxValue,
        onMinus: () => {
          this.onMinusConfig("nsslapd-outbound-ldap-io-timeout");
        },
        onChange: e => {
          this.onConfigChange(e, "nsslapd-outbound-ldap-io-timeout", 0, 0);
        },
        onPlus: () => {
          this.onPlusConfig("nsslapd-outbound-ldap-io-timeout");
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 8
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
        title: "The maximum size in bytes allowed for an incoming message (nsslapd-maxbersize)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Maximum BER Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.NumberInput, {
        value: this.state['nsslapd-maxbersize'],
        min: 0,
        max: this.maxValue,
        onMinus: () => {
          this.onMinusConfig("nsslapd-maxbersize");
        },
        onChange: e => {
          this.onConfigChange(e, "nsslapd-maxbersize", 0, 0);
        },
        onPlus: () => {
          this.onPlusConfig("nsslapd-maxbersize");
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 8
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
        title: "The maximum allowed SASL IO packet size that the server will accept (nsslapd-maxsasliosize)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Maximum SASL IO Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.NumberInput, {
        value: this.state['nsslapd-maxsasliosize'],
        min: -1,
        max: this.maxValue,
        onMinus: () => {
          this.onMinusConfig("nsslapd-maxsasliosize");
        },
        onChange: e => {
          this.onConfigChange(e, "nsslapd-maxsasliosize", -1, 0);
        },
        onPlus: () => {
          this.onPlusConfig("nsslapd-maxsasliosize");
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 8
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
        title: "The maximum length for how long the connection queue for the socket can grow before refusing connections (nsslapd-listen-backlog-size)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Listen Backlog Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.NumberInput, {
        value: this.state['nsslapd-listen-backlog-size'],
        min: 1,
        max: this.maxValue,
        onMinus: () => {
          this.onMinusConfig("nsslapd-listen-backlog-size");
        },
        onChange: e => {
          this.onConfigChange(e, "nsslapd-listen-backlog-size", 1, 0);
        },
        onPlus: () => {
          this.onPlusConfig("nsslapd-listen-backlog-size");
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 8
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
        title: "Sets how deep a nested search filter is analysed (nsslapd-max-filter-nest-level)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        className: "ds-label",
        span: 3
      }, "Maximum Nested Filter Level"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        span: 9
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.NumberInput, {
        value: this.state['nsslapd-max-filter-nest-level'],
        min: -1,
        max: this.maxValue,
        onMinus: () => {
          this.onMinusConfig("nsslapd-max-filter-nest-level");
        },
        onChange: e => {
          this.onConfigChange(e, "nsslapd-max-filter-nest-level", -1, 0);
        },
        onPlus: () => {
          this.onPlusConfig("nsslapd-max-filter-nest-level");
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 8
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
        title: "Disable DNS reverse entries for outgoing connections (nsslapd-connection-nocanon)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        className: "ds-label",
        span: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Checkbox, {
        id: "nsslapd-connection-nocanon",
        isChecked: this.state['nsslapd-connection-nocanon'],
        onChange: (checked, e) => {
          this.handleChange(e);
        },
        label: "Disable Reverse DNS Lookups"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
        title: "Sets the worker threads to continuously read a connection without passing it back to the polling mechanism. (nsslapd-enable-turbo-mode)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        className: "ds-label",
        span: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Checkbox, {
        id: "nsslapd-enable-turbo-mode",
        isChecked: this.state['nsslapd-enable-turbo-mode'],
        onChange: (checked, e) => {
          this.handleChange(e);
        },
        label: "Enable Connection Turbo Mode"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
        title: "Disable the virtual attribute lookup in a search entry (nsslapd-ignore-virtual-attrs)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        className: "ds-label",
        span: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Checkbox, {
        id: "nsslapd-ignore-virtual-attrs",
        isChecked: this.state['nsslapd-ignore-virtual-attrs'],
        onChange: (checked, e) => {
          this.handleChange(e);
        },
        label: "Disable Virtual Attribute Lookups"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
        title: "Enable the normalized DN cache.  Each thread has its own cache (nsslapd-ndn-cache-enabled)."
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        className: "ds-label",
        span: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.Checkbox, {
        isChecked: this.state['nsslapd-ndn-cache-enabled'],
        id: "nsslapd-ndn-cache-enabled",
        onChange: (checked, e) => {
          this.handleChange(e);
        },
        label: "Enable Normalized DN Cache"
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Grid, {
        title: "The max NDN cache size in bytes (nsslapd-ndn-cache-max-size).",
        className: "ds-left-indent-lg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        className: "ds-label",
        span: 2
      }, "NDN Max Cache Size"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.GridItem, {
        span: 2
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.NumberInput, {
        isDisabled: !this.state['nsslapd-ndn-cache-enabled'],
        value: this.state['nsslapd-ndn-cache-max-size'],
        min: -1,
        max: this.maxValue,
        onMinus: () => {
          this.onMinusConfig("nsslapd-ndn-cache-max-size");
        },
        onChange: e => {
          this.onConfigChange(e, "nsslapd-ndn-cache-max-size", -1, 0);
        },
        onPlus: () => {
          this.onPlusConfig("nsslapd-ndn-cache-max-size");
        },
        inputName: "input",
        inputAriaLabel: "number input",
        minusBtnAriaLabel: "minus",
        plusBtnAriaLabel: "plus",
        widthChars: 8
      })))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.Button, _extends({
        isDisabled: this.state.saveDisabled,
        variant: "primary",
        className: "ds-margin-top-xlg",
        onClick: this.saveConfig,
        isLoading: this.state.loading,
        spinnerAriaValueText: this.state.loading ? "Saving" : undefined
      }, extraPrimaryProps), saveBtnName));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      id: "tuning-content"
    }, body);
  }

} // Property types and defaults

ServerTuning.propTypes = {
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().func),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().string),
  attrs: (prop_types__WEBPACK_IMPORTED_MODULE_16___default().object)
};
ServerTuning.defaultProps = {
  serverId: "",
  attrs: {}
};

/***/ }),

/***/ "./src/lib/tools.jsx":
/*!***************************!*\
  !*** ./src/lib/tools.jsx ***!
  \***************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "searchFilter": () => (/* binding */ searchFilter),
/* harmony export */   "log_cmd": () => (/* binding */ log_cmd),
/* harmony export */   "get_date_string": () => (/* binding */ get_date_string),
/* harmony export */   "get_date_diff": () => (/* binding */ get_date_diff),
/* harmony export */   "bad_file_name": () => (/* binding */ bad_file_name),
/* harmony export */   "file_is_path": () => (/* binding */ file_is_path),
/* harmony export */   "valid_port": () => (/* binding */ valid_port),
/* harmony export */   "valid_dn": () => (/* binding */ valid_dn),
/* harmony export */   "valid_filter": () => (/* binding */ valid_filter),
/* harmony export */   "numToCommas": () => (/* binding */ numToCommas),
/* harmony export */   "displayBytes": () => (/* binding */ displayBytes),
/* harmony export */   "displayKBytes": () => (/* binding */ displayKBytes),
/* harmony export */   "listsEqual": () => (/* binding */ listsEqual)
/* harmony export */ });
function searchFilter(searchFilterValue, columnsToSearch, rows) {
  if (searchFilterValue && rows && rows.length) {
    var filteredRows = [];
    rows.forEach(row => {
      var rowToSearch = [];

      if (columnsToSearch && columnsToSearch.length) {
        columnsToSearch.forEach(column => {
          if (column in row) {
            if (row[column] != null) {
              rowToSearch.push(row[column]);
            }
          }
        });
      } else {
        rowToSearch = row;
      }

      var match = Object.values(rowToSearch).some(value => value.join().toLowerCase().includes(searchFilterValue.toLowerCase()));

      if (match) {
        filteredRows.push(row);
      }
    });
    return filteredRows;
  }

  return rows;
}
function log_cmd(js_func, desc, cmd_array) {
  if (console) {
    var pw_args = ["--passwd", "--bind-pw", "--nsslapd-rootpw"];
    var cmd_list = [];
    var converted_pw = false;

    for (var idx in cmd_array) {
      var cmd = cmd_array[idx].toString();
      converted_pw = false;

      for (var arg_idx in pw_args) {
        if (cmd.startsWith(pw_args[arg_idx])) {
          // We are setting a password, if it has a value we need to hide it
          var arg_len = cmd.indexOf("=");
          var arg = cmd.substring(0, arg_len);

          if (cmd.length != arg_len + 1) {
            // We are setting a password value...
            cmd_list.push(arg + "=**********");
            converted_pw = true;
          }

          break;
        }
      }

      if (!converted_pw) {
        cmd_list.push(cmd);
      }
    }

    console.log("CMD: " + js_func + ": " + desc + " ==> " + cmd_list.join(" "));
  }
} // Convert DS timestamp to a friendly string: 20180921142257Z -> 10/21/2018, 2:22:57 PM

function get_date_string(timestamp) {
  var year = timestamp.substr(0, 4);
  var month = timestamp.substr(4, 2);
  var day = timestamp.substr(6, 2);
  var hour = timestamp.substr(8, 2);
  var minute = timestamp.substr(10, 2);
  var sec = timestamp.substr(12, 2);
  var date = new Date(parseInt(year), parseInt(month) - 1, parseInt(day), parseInt(hour), parseInt(minute), parseInt(sec));
  return date.toLocaleString('en-ZA');
} // Take two directory server tiemstamps and get the elapsed time

function get_date_diff(start, end) {
  // Get the server's start up date
  var year = start.substr(0, 4);
  var month = start.substr(4, 2);
  var day = start.substr(6, 2);
  var hour = start.substr(8, 2);
  var minute = start.substr(10, 2);
  var sec = start.substr(12, 2);
  var startDate = new Date(parseInt(year), parseInt(month), parseInt(day), parseInt(hour), parseInt(minute), parseInt(sec)); // Get the servers current date

  year = end.substr(0, 4);
  month = end.substr(4, 2);
  day = end.substr(6, 2);
  hour = end.substr(8, 2);
  minute = end.substr(10, 2);
  sec = end.substr(12, 2);
  var currDate = new Date(parseInt(year), parseInt(month), parseInt(day), parseInt(hour), parseInt(minute), parseInt(sec)); // Generate pretty elapsed time string

  var seconds = Math.floor((currDate - startDate) / 1000);
  var minutes = Math.floor(seconds / 60);
  var hours = Math.floor(minutes / 60);
  var days = Math.floor(hours / 24);
  hours = hours - days * 24;
  minutes = minutes - days * 24 * 60 - hours * 60;
  seconds = seconds - days * 24 * 60 * 60 - hours * 60 * 60 - minutes * 60; // Handle plurals

  if (days == "1") {
    day = "day";
  } else {
    day = "days";
  }

  if (hours == "1") {
    hour = "hour";
  } else {
    hour = "hours";
  }

  if (minutes == "1") {
    minute = "minute";
  } else {
    minute = "minutes";
  }

  if (seconds == "1") {
    sec = "second";
  } else {
    sec = "seconds";
  }

  return "".concat(days, " ").concat(day, ", ").concat(hours, " ").concat(hour, ", ").concat(minutes, " ").concat(minute, ", and ").concat(seconds, " ").concat(sec);
}
function bad_file_name(file_name) {
  // file_name must be a string, and not a location/directory
  if (file_name.includes("/")) {
    return true;
  }

  return false;
}
function file_is_path(file_name) {
  if (file_name.length >= 2 && file_name.startsWith("/") && !file_name.endsWith("/")) {
    // Simple and Crude
    return true;
  } else {
    return false;
  }
}
function valid_port(val) {
  // Validate value is a number and between 1 and 65535
  var result = !isNaN(val);

  if (result) {
    if (val < 1 || val > 65535) {
      result = false;
    }
  }

  return result;
}
function valid_dn(dn) {
  // Validate value is a valid DN (sanity validation)
  if (dn == "" || dn.endsWith(",")) {
    return false;
  }

  var dn_regex = new RegExp("^([A-Za-z])+=\\S.*");
  var result = dn_regex.test(dn);
  return result;
}
function valid_filter(filter) {
  // Validate filter is within parenthesis
  if (filter.startsWith("(") && filter.endsWith(")")) {
    return true;
  }

  return false;
}
function numToCommas(num) {
  //  Convert a number to have human friendly commas
  return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}
function displayBytes(bytes) {
  // Convert bytes into a more human readable value/unit
  if (bytes === 0) {
    return '0 Bytes';
  }

  var k = 1024;
  var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
  var i = Math.floor(Math.log(bytes) / Math.log(k));
  return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i];
}
function displayKBytes(kbytes) {
  // Convert kilobytes into a more human readable value/unit
  if (kbytes === 0) {
    return '0 KB';
  }

  var k = 1024;
  var sizes = ['KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
  var i = Math.floor(Math.log(kbytes) / Math.log(k));
  return parseFloat((kbytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i];
}
function listsEqual(list1, list2) {
  if (Array.isArray(list1) && Array.isArray(list2)) {
    var list1_sorted = [...list1].sort();
    var list2_sorted = [...list2].sort();

    if (list1_sorted.length != list2_sorted.length) {
      return false;
    }

    for (var i = list1_sorted.length; i--;) {
      if (list1_sorted[i].toLowerCase() != list2_sorted[i].toLowerCase()) {
        return false;
      }
    }

    return true;
  } else if (list1 === undefined && list2 === undefined) {
    return true;
  } else {
    return false;
  }
}

/***/ }),

/***/ "./src/monitor.jsx":
/*!*************************!*\
  !*** ./src/monitor.jsx ***!
  \*************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Monitor": () => (/* binding */ Monitor)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lib/tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_26__);
/* harmony import */ var _lib_monitor_serverMonitor_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lib/monitor/serverMonitor.jsx */ "./src/lib/monitor/serverMonitor.jsx");
/* harmony import */ var _lib_monitor_dbMonitor_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lib/monitor/dbMonitor.jsx */ "./src/lib/monitor/dbMonitor.jsx");
/* harmony import */ var _lib_monitor_suffixMonitor_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lib/monitor/suffixMonitor.jsx */ "./src/lib/monitor/suffixMonitor.jsx");
/* harmony import */ var _lib_monitor_chainingMonitor_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./lib/monitor/chainingMonitor.jsx */ "./src/lib/monitor/chainingMonitor.jsx");
/* harmony import */ var _lib_monitor_accesslog_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./lib/monitor/accesslog.jsx */ "./src/lib/monitor/accesslog.jsx");
/* harmony import */ var _lib_monitor_auditlog_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./lib/monitor/auditlog.jsx */ "./src/lib/monitor/auditlog.jsx");
/* harmony import */ var _lib_monitor_auditfaillog_jsx__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./lib/monitor/auditfaillog.jsx */ "./src/lib/monitor/auditfaillog.jsx");
/* harmony import */ var _lib_monitor_errorlog_jsx__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./lib/monitor/errorlog.jsx */ "./src/lib/monitor/errorlog.jsx");
/* harmony import */ var _lib_monitor_replMonitor_jsx__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./lib/monitor/replMonitor.jsx */ "./src/lib/monitor/replMonitor.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TreeView/TreeView.js");
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/database-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/cluster-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/topology-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/catalog-icon.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }


















class Monitor extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      firstLoad: true,
      nodes: [],
      node_name: "",
      node_text: "",
      node_type: "",
      loaded: false,
      snmpData: {},
      ldbmData: {},
      serverData: {},
      disks: [],
      loadingMsg: "",
      disableTree: false,
      activeItems: [{
        name: "Database",
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_13__.DatabaseIcon, null),
        id: "server-monitor",
        type: "server",
        children: [],
        defaultExpanded: true
      }],
      // Suffix
      suffixLoading: false,
      serverLoading: false,
      ldbmLoading: false,
      chainingLoading: false,
      // replication
      replLoading: false,
      replInitLoaded: false,
      replSuffix: "",
      replRole: "",
      replRid: "",
      replicatedSuffixes: [],
      accesslogLocation: "",
      errorlogLocation: "",
      auditlogLocation: "",
      auditfaillogLocation: ""
    }; // Bindings

    this.loadSuffixTree = this.loadSuffixTree.bind(this);
    this.enableTree = this.enableTree.bind(this);
    this.update_tree_nodes = this.update_tree_nodes.bind(this);
    this.handleTreeClick = this.handleTreeClick.bind(this);
    this.disableSuffixLoading = this.disableSuffixLoading.bind(this);
    this.loadMonitorLDBM = this.loadMonitorLDBM.bind(this);
    this.loadMonitorSNMP = this.loadMonitorSNMP.bind(this);
    this.reloadSNMP = this.reloadSNMP.bind(this);
    this.loadMonitorServer = this.loadMonitorServer.bind(this);
    this.reloadServer = this.reloadServer.bind(this);
    this.loadMonitorChaining = this.loadMonitorChaining.bind(this);
    this.loadDiskSpace = this.loadDiskSpace.bind(this);
    this.reloadDisks = this.reloadDisks.bind(this); // Replication

    this.handleLoadMonitorReplication = this.handleLoadMonitorReplication.bind(this);
    this.loadCleanTasks = this.loadCleanTasks.bind(this);
    this.loadAbortTasks = this.loadAbortTasks.bind(this);
    this.loadReplicatedSuffixes = this.loadReplicatedSuffixes.bind(this);
    this.loadWinsyncAgmts = this.loadWinsyncAgmts.bind(this);
    this.replSuffixChange = this.replSuffixChange.bind(this);
    this.reloadReplAgmts = this.reloadReplAgmts.bind(this);
    this.reloadReplWinsyncAgmts = this.reloadReplWinsyncAgmts.bind(this);
    this.loadConflicts = this.loadConflicts.bind(this);
    this.loadGlues = this.loadGlues.bind(this); // Logging

    this.loadMonitor = this.loadMonitor.bind(this);
  }

  componentDidUpdate(prevProps) {
    if (this.props.wasActiveList.includes(6)) {
      if (this.state.firstLoad) {
        this.loadMonitor();
      } else {
        if (this.props.serverId !== prevProps.serverId) {
          this.loadSuffixTree(false);
        }
      }
    }
  }

  processTree(suffixData) {
    var _iterator = _createForOfIteratorHelper(suffixData),
        _step;

    try {
      for (_iterator.s(); !(_step = _iterator.n()).done;) {
        var suffix = _step.value;

        if (suffix.type === "suffix") {
          suffix.icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_12__.FontAwesomeIcon, {
            size: "sm",
            icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_14__.faTree
          });
        } else if (suffix.type === "subsuffix") {
          suffix.icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_12__.FontAwesomeIcon, {
            size: "sm",
            icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_14__.faLeaf
          });
        } else {
          suffix.icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_12__.FontAwesomeIcon, {
            size: "sm",
            icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_14__.faLink
          });
        }

        if (suffix.children.length === 0) {
          delete suffix.children;
        } else {
          this.processTree(suffix.children);
        }
      }
    } catch (err) {
      _iterator.e(err);
    } finally {
      _iterator.f();
    }
  }

  loadSuffixTree(fullReset) {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "get-tree"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("getTree", "Start building the suffix tree", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var treeData = JSON.parse(content);
      this.processTree(treeData);
      var basicData = [{
        name: "Server Statistics",
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_15__.ClusterIcon, null),
        id: "server-monitor",
        type: "server"
      }, {
        name: "Replication",
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_16__.TopologyIcon, null),
        id: "replication-monitor",
        type: "replication"
      }, {
        name: "Database",
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_13__.DatabaseIcon, null),
        id: "database-monitor",
        type: "database",
        children: [],
        defaultExpanded: true
      }, {
        name: "Logging",
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_17__.CatalogIcon, null),
        id: "log-monitor",
        defaultExpanded: true,
        children: [{
          name: "Access Log",
          icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_12__.FontAwesomeIcon, {
            size: "sm",
            icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_14__.faBook
          }),
          id: "access-log-monitor",
          type: "log"
        }, {
          name: "Audit Log",
          icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_12__.FontAwesomeIcon, {
            size: "sm",
            icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_14__.faBook
          }),
          id: "audit-log-monitor",
          type: "log"
        }, {
          name: "Audit Failure Log",
          icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_12__.FontAwesomeIcon, {
            size: "sm",
            icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_14__.faBook
          }),
          id: "auditfail-log-monitor",
          type: "log"
        }, {
          name: "Errors Log",
          icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_12__.FontAwesomeIcon, {
            size: "sm",
            icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_14__.faBook
          }),
          id: "error-log-monitor",
          type: "log"
        }]
      }];
      var current_node = this.state.node_name;
      var type = this.state.node_type;

      if (fullReset) {
        current_node = "server-monitor";
        type = "server";
      }

      basicData[2].children = treeData; // database node

      this.setState(() => ({
        nodes: basicData,
        node_name: current_node,
        node_type: type
      }), this.update_tree_nodes);
    });
  }

  handleTreeClick(evt, treeViewItem, parentItem) {
    if (treeViewItem.id === "log-monitor") {
      return;
    }

    if (this.state.activeItems.length === 0 || treeViewItem === this.state.activeItems[0]) {
      this.setState({
        activeItems: [treeViewItem, parentItem]
      });
      return;
    }

    this.setState({
      disableTree: true // Disable the tree to allow node to be fully loaded

    });

    if (treeViewItem.id === "database-monitor" || treeViewItem.id === "server-monitor") {
      // Nothing special to do, these configurations have already been loaded
      this.setState(prevState => {
        return {
          activeItems: [treeViewItem, parentItem],
          node_name: treeViewItem.id,
          node_text: treeViewItem.name,
          node_type: treeViewItem.type,
          disableTree: false,
          bename: ""
        };
      });
    } else if (treeViewItem.id === "access-log-monitor") {
      this.setState(prevState => {
        return {
          activeItems: [treeViewItem, parentItem],
          node_name: treeViewItem.id,
          node_text: treeViewItem.name,
          node_type: treeViewItem.type,
          bename: ""
        };
      });
    } else if (treeViewItem.id === "audit-log-monitor") {
      this.setState(prevState => {
        return {
          activeItems: [treeViewItem, parentItem],
          node_name: treeViewItem.id,
          node_text: treeViewItem.name,
          node_type: treeViewItem.type,
          bename: ""
        };
      });
    } else if (treeViewItem.id === "auditfail-log-monitor") {
      this.setState(prevState => {
        return {
          activeItems: [treeViewItem, parentItem],
          node_name: treeViewItem.id,
          node_text: treeViewItem.name,
          node_type: treeViewItem.type,
          bename: ""
        };
      });
    } else if (treeViewItem.id === "error-log-monitor") {
      this.setState(prevState => {
        return {
          activeItems: [treeViewItem, parentItem],
          node_name: treeViewItem.id,
          node_text: treeViewItem.name,
          node_type: treeViewItem.type,
          bename: ""
        };
      });
    } else if (treeViewItem.id === "replication-monitor") {
      if (!this.state.replInitLoaded) {
        this.handleLoadMonitorReplication();
      }

      this.setState(prevState => {
        return {
          activeItems: [treeViewItem, parentItem],
          node_name: treeViewItem.id,
          node_text: treeViewItem.name,
          node_type: treeViewItem.type,
          bename: ""
        };
      });
    } else {
      if (treeViewItem.id in this.state && ("chainingData" in this.state[treeViewItem.id] || "suffixData" in this.state[treeViewItem.id])) {
        // This suffix is already cached
        this.setState(prevState => {
          return {
            activeItems: [treeViewItem, parentItem],
            node_name: treeViewItem.id,
            node_text: treeViewItem.name,
            node_type: treeViewItem.type,
            disableTree: false,
            bename: treeViewItem.be
          };
        });
      } else {
        // Load this suffix (db, chaining & replication)
        if (treeViewItem.type === "dblink") {
          // Chaining
          this.loadMonitorChaining(treeViewItem.id);
        }

        this.setState(prevState => {
          return {
            activeItems: [treeViewItem, parentItem],
            node_name: treeViewItem.id,
            node_text: treeViewItem.name,
            node_type: treeViewItem.type,
            bename: treeViewItem.be
          };
        });
      }
    }
  }

  update_tree_nodes() {
    // Enable the tree, and update the titles
    this.setState({
      loaded: true,
      disableTree: false
    }, () => {
      var className = 'pf-c-tree-view__list-item';
      var element = document.getElementById("monitor-tree");

      if (element) {
        var elements = element.getElementsByClassName(className);

        var _iterator2 = _createForOfIteratorHelper(elements),
            _step2;

        try {
          for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
            var el = _step2.value;
            el.setAttribute('title', el.innerText);
          }
        } catch (err) {
          _iterator2.e(err);
        } finally {
          _iterator2.f();
        }
      }
    });
  }

  loadMonitor() {
    // Load the following componets in a chained fashion:
    //  - log file locations
    //  - LDBM
    //  - Server stats
    //  - SNMP
    //  - Finally load the "tree"
    //
    if (this.state.firstLoad) {
      this.setState({
        firstLoad: false
      });
    }

    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get", "nsslapd-auditlog", "nsslapd-accesslog", "nsslapd-errorlog", "nsslapd-auditfaillog"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadLogLocations", "Get log locations", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      this.setState({
        accesslogLocation: config.attrs['nsslapd-accesslog'][0],
        auditlogLocation: config.attrs['nsslapd-auditlog'][0],
        auditfaillogLocation: config.attrs['nsslapd-auditfaillog'][0],
        errorlogLocation: config.attrs['nsslapd-errorlog'][0]
      });
    }, this.loadReplicatedSuffixes());
  }

  loadReplicatedSuffixes() {
    // Load replicated suffix to populate the dropdown select list
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "list"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadReplicatedSuffixes", "Load replication suffixes", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var replSuffix = "";

      if (config.items.length > 0) {
        replSuffix = config.items[0];
      }

      this.setState({
        replicatedSuffixes: config.items,
        replSuffix: replSuffix
      });
    }, this.loadDiskSpace());
  }

  loadMonitorLDBM() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "ldbm"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadMonitorLDBM", "Load database monitor", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      this.setState({
        ldbmData: config.attrs
      });
    }, this.loadMonitorServer());
  }

  loadMonitorServer() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "server"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadMonitorServer", "Load server monitor", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      this.setState({
        serverData: config.attrs
      });
    }, this.loadMonitorSNMP());
  }

  reloadServer() {
    this.setState({
      serverLoading: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "server"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("reloadServer", "Load server monitor", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      this.setState({
        serverLoading: false,
        serverData: config.attrs
      }, this.reloadDisks());
    });
  }

  loadMonitorSNMP() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "snmp"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadMonitorSNMP", "Load snmp monitor", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      this.setState({
        snmpData: config.attrs
      }, this.loadSuffixTree(true));
    });
  }

  loadDiskSpace() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "disk"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadDiskSpace", "Load disk space info", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var disks = JSON.parse(content);
      var rows = [];

      var _iterator3 = _createForOfIteratorHelper(disks.items),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var disk = _step3.value;
          rows.push([disk.mount, disk.size, disk.used + " (" + disk.percent + "%)", disk.avail]);
        }
      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }

      this.setState({
        disks: rows
      });
    }, this.loadMonitorLDBM());
  }

  reloadDisks() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "disk"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("reloadDisks", "Reload disk stats", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var disks = JSON.parse(content);
      var rows = [];

      var _iterator4 = _createForOfIteratorHelper(disks.items),
          _step4;

      try {
        for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
          var disk = _step4.value;
          rows.push([disk.mount, disk.size, disk.used + " (" + disk.percent + "%)", disk.avail]);
        }
      } catch (err) {
        _iterator4.e(err);
      } finally {
        _iterator4.f();
      }

      this.setState({
        disks: rows
      });
    });
  }

  reloadSNMP() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "snmp"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("reloadSNMP", "Load snmp monitor", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      this.setState({
        snmpData: config.attrs
      });
    });
  }

  loadMonitorChaining(suffix) {
    this.setState({
      chainingLoading: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "monitor", "chaining", suffix];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadMonitorChaining", "Load suffix monitor", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      this.setState({
        [suffix]: _objectSpread(_objectSpread({}, this.state[suffix]), {}, {
          chainingData: config.attrs
        }),
        chainingLoading: false
      });
    }).fail(() => {
      // Notification of failure (could only be server down)
      this.setState({
        chainingLoading: false
      });
    });
  }

  disableSuffixLoading() {
    this.setState({
      suffixLoading: false
    });
  }

  loadCleanTasks() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-tasks", "list-cleanruv-tasks", "--suffix=" + this.state.replSuffix];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadCleanTasks", "Load clean tasks", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      this.setState({
        [this.state.replSuffix]: _objectSpread(_objectSpread({}, this.state[this.state.replSuffix]), {}, {
          cleanTasks: config.items
        })
      }, this.loadAbortTasks());
    }).fail(() => {
      // Notification of failure (could only be server down)
      this.setState({
        replLoading: false
      });
    });
  }

  loadAbortTasks() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-tasks", "list-abortruv-tasks", "--suffix=" + this.state.replSuffix];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadAbortCleanTasks", "Load abort tasks", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      this.setState({
        [this.state.replSuffix]: _objectSpread(_objectSpread({}, this.state[this.state.replSuffix]), {}, {
          abortTasks: config.items
        })
      }, this.loadConflicts());
    }).fail(() => {
      // Notification of failure (could only be server down)
      this.setState({
        replLoading: false
      });
    });
  }

  loadConflicts() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-conflict", "list", this.state.replSuffix];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadConflicts", "Load conflict entries", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      this.setState({
        [this.state.replSuffix]: _objectSpread(_objectSpread({}, this.state[this.state.replSuffix]), {}, {
          conflicts: config.items,
          glues: []
        })
      }, this.loadGlues());
    }).fail(() => {
      // Notification of failure (could only be server down)
      this.setState({
        replLoading: false
      });
    });
  }

  loadGlues() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-conflict", "list-glue", this.state.replSuffix];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadGlues", "Load glue entries", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      this.setState({
        [this.state.replSuffix]: _objectSpread(_objectSpread({}, this.state[this.state.replSuffix]), {}, {
          glues: config.items
        })
      }, this.setState({
        replLoading: false,
        replInitLoaded: true
      }));
    }).fail(() => {
      // Notification of failure (could only be server down)
      this.setState({
        replLoading: false
      });
    });
  }

  loadWinsyncAgmts() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "winsync-status", "--suffix=" + this.state.replSuffix];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadWinsyncAgmts", "Load winsync agmt status", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      this.setState({
        [this.state.replSuffix]: _objectSpread(_objectSpread({}, this.state[this.state.replSuffix]), {}, {
          replWinsyncAgmts: config.items
        })
      }, this.loadCleanTasks());
    }).fail(() => {
      // Notification of failure (could only be server down)
      this.setState({
        replLoading: false
      });
    });
  }

  handleLoadMonitorReplication() {
    var replSuffix = this.state.replSuffix;

    if (replSuffix !== "") {
      this.setState({
        replLoading: true
      }); // Now load the agmts

      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "status", "--suffix=" + replSuffix];
      (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("handleLoadMonitorReplication", "Load replication agmts", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        var config = JSON.parse(content);
        this.setState({
          [replSuffix]: _objectSpread(_objectSpread({}, this.state[replSuffix]), {}, {
            replAgmts: config.items,
            abortTasks: [],
            cleanTasks: [],
            replWinsyncAgmts: []
          })
        }, this.loadWinsyncAgmts());
      }).fail(() => {
        // Notification of failure (could only be server down)
        this.setState({
          replLoading: false
        });
      });
    } else {
      // We should enable it here because ReplMonitor never will be mounted
      this.enableTree();
    }
  }

  reloadReplAgmts() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "status", "--suffix=" + this.state.replSuffix];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("reloadReplAgmts", "Load replication agmts", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      this.setState({
        [this.state.replSuffix]: _objectSpread(_objectSpread({}, this.state[this.state.replSuffix]), {}, {
          replAgmts: config.items
        })
      });
    });
  }

  reloadReplWinsyncAgmts() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "winsync-status", "--suffix=" + this.state.replSuffix];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("reloadReplWinsyncAgmts", "Load winysnc agmts", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      this.setState({
        [this.state.replSuffix]: _objectSpread(_objectSpread({}, this.state[this.state.replSuffix]), {}, {
          replWinsyncAgmts: config.items
        })
      });
    });
  }

  replSuffixChange(e) {
    var value = e.target.value;
    this.setState(() => ({
      replSuffix: value,
      replLoading: true
    }), this.handleLoadMonitorReplication);
  }

  enableTree() {
    this.setState({
      disableTree: false
    });
  }

  render() {
    var nodes = this.state.nodes;
    var monitorPage = "";
    var monitor_element = "";
    var disabled = "tree-view-container";

    if (this.state.disableTree) {
      disabled = "tree-view-container ds-disabled";
    }

    if (this.state.loaded) {
      if (this.state.node_name === "database-monitor" || this.state.node_name === "") {
        if (this.state.ldbmLoading) {
          monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
            className: "ds-margin-top-xlg ds-center"
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Text, {
            component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.TextVariants.h3
          }, "Loading Database Monitor Information ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Spinner, {
            className: "ds-margin-top-lg",
            size: "xl"
          }));
        } else {
          monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_monitor_dbMonitor_jsx__WEBPACK_IMPORTED_MODULE_4__["default"], {
            data: this.state.ldbmData,
            enableTree: this.enableTree,
            serverId: this.props.serverId
          });
        }
      } else if (this.state.node_name === "server-monitor") {
        if (this.state.serverLoading) {
          monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
            className: "ds-margin-top-xlg ds-center"
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Text, {
            component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.TextVariants.h3
          }, "Loading Server Monitor Information ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Spinner, {
            className: "ds-margin-top-lg",
            size: "xl"
          }));
        } else {
          monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_monitor_serverMonitor_jsx__WEBPACK_IMPORTED_MODULE_3__["default"], {
            data: this.state.serverData,
            reload: this.reloadServer,
            serverId: this.props.serverId,
            disks: this.state.disks,
            reloadDisks: this.reloadDisks,
            snmpData: this.state.snmpData,
            snmpReload: this.reloadSNMP,
            enableTree: this.enableTree
          });
        }
      } else if (this.state.node_name === "access-log-monitor") {
        monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_monitor_accesslog_jsx__WEBPACK_IMPORTED_MODULE_7__["default"], {
          logLocation: this.state.accesslogLocation,
          enableTree: this.enableTree
        });
      } else if (this.state.node_name === "audit-log-monitor") {
        monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_monitor_auditlog_jsx__WEBPACK_IMPORTED_MODULE_8__["default"], {
          logLocation: this.state.auditlogLocation,
          enableTree: this.enableTree
        });
      } else if (this.state.node_name === "auditfail-log-monitor") {
        monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_monitor_auditfaillog_jsx__WEBPACK_IMPORTED_MODULE_9__["default"], {
          logLocation: this.state.auditfaillogLocation,
          enableTree: this.enableTree
        });
      } else if (this.state.node_name === "error-log-monitor") {
        monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_monitor_errorlog_jsx__WEBPACK_IMPORTED_MODULE_10__["default"], {
          logLocation: this.state.errorlogLocation,
          enableTree: this.enableTree
        });
      } else if (this.state.node_name === "replication-monitor") {
        if (this.state.replLoading) {
          monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
            className: "ds-margin-top-xlg ds-center"
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Text, {
            component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.TextVariants.h3
          }, "Loading Replication Monitor Information ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Spinner, {
            className: "ds-margin-top-lg",
            size: "xl"
          }));
        } else {
          if (this.state.replicatedSuffixes.length < 1) {
            monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("p", null, "There are no suffixes that have been configured for replication"));
          } else {
            var suffixList = this.state.replicatedSuffixes.map(suffix => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.FormSelectOption, {
              key: suffix,
              value: suffix,
              label: suffix
            }));
            monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
              className: "ds-container"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Text, {
              component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.TextVariants.h3
            }, "Replication Monitoring", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_12__.FontAwesomeIcon, {
              size: "lg",
              className: "ds-left-margin ds-refresh",
              icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_14__.faSyncAlt,
              title: "Refresh replication monitor",
              onClick: this.handleLoadMonitorReplication
            })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Grid, {
              className: "ds-margin-top"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.GridItem, {
              span: 5
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.FormSelect, {
              value: this.state.replSuffix,
              onChange: (value, event) => {
                this.replSuffixChange(event);
              },
              "aria-label": "FormSelect Input"
            }, suffixList))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
              className: "ds-margin-top-xlg"
            }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_monitor_replMonitor_jsx__WEBPACK_IMPORTED_MODULE_11__["default"], {
              suffix: this.state.replSuffix,
              serverId: this.props.serverId,
              data: this.state[this.state.replSuffix],
              addNotification: this.props.addNotification,
              reloadAgmts: this.reloadReplAgmts,
              reloadWinsyncAgmts: this.reloadReplWinsyncAgmts,
              reloadConflicts: this.loadConflicts,
              enableTree: this.enableTree,
              key: this.state.replSuffix
            })));
          }
        }
      } else if (this.state.node_name !== "") {
        // suffixes (example)
        if (this.state.chainingLoading) {
          monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
            className: "ds-margin-top-xlg ds-center"
          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Text, {
            component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.TextVariants.h3
          }, "Loading Chaining Monitor Information For ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.state.node_text, " ..."))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Spinner, {
            className: "ds-margin-top-lg",
            size: "xl"
          }));
        } else {
          if (this.state.node_type === "dblink") {
            monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_monitor_chainingMonitor_jsx__WEBPACK_IMPORTED_MODULE_6__["default"], {
              suffix: this.state.node_text,
              bename: this.state.bename,
              reload: this.loadMonitorChaining,
              data: this.state[this.state.node_text].chainingData,
              enableTree: this.enableTree,
              key: this.state.node_text
            });
          } else {
            // Suffix
            monitor_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_monitor_suffixMonitor_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], {
              serverId: this.props.serverId,
              suffix: this.state.node_text,
              bename: this.state.bename,
              enableTree: this.enableTree,
              key: this.state.node_text,
              addNotification: this.props.addNotification
            });
          }
        }
      }

      monitorPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "container-fluid"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-container"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-tree"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: disabled,
        id: "monitor-tree"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.TreeView, {
        data: nodes,
        activeItems: this.state.activeItems,
        onSelect: this.handleTreeClick
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-tree-content"
      }, monitor_element)));
    } else {
      monitorPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-top-xlg ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.TextVariants.h3
      }, "Loading Monitor Information ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.Spinner, {
        className: "ds-margin-top-lg",
        size: "xl"
      }));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, monitorPage);
  }

} // Property types and defaults

Monitor.propTypes = {
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string)
};
Monitor.defaultProps = {
  serverId: ""
};

/***/ }),

/***/ "./src/plugins.jsx":
/*!*************************!*\
  !*** ./src/plugins.jsx ***!
  \*************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Plugins": () => (/* binding */ Plugins)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_30__);
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lib/tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lib/notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Nav/Nav.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Nav/NavList.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Nav/NavItem.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/check-circle-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/ban-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/resources-empty-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/list-icon.js");
/* harmony import */ var _lib_plugins_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lib/plugins/pluginTables.jsx */ "./src/lib/plugins/pluginTables.jsx");
/* harmony import */ var _lib_plugins_accountPolicy_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lib/plugins/accountPolicy.jsx */ "./src/lib/plugins/accountPolicy.jsx");
/* harmony import */ var _lib_plugins_attributeUniqueness_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./lib/plugins/attributeUniqueness.jsx */ "./src/lib/plugins/attributeUniqueness.jsx");
/* harmony import */ var _lib_plugins_autoMembership_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./lib/plugins/autoMembership.jsx */ "./src/lib/plugins/autoMembership.jsx");
/* harmony import */ var _lib_plugins_dna_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./lib/plugins/dna.jsx */ "./src/lib/plugins/dna.jsx");
/* harmony import */ var _lib_plugins_linkedAttributes_jsx__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./lib/plugins/linkedAttributes.jsx */ "./src/lib/plugins/linkedAttributes.jsx");
/* harmony import */ var _lib_plugins_managedEntries_jsx__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./lib/plugins/managedEntries.jsx */ "./src/lib/plugins/managedEntries.jsx");
/* harmony import */ var _lib_plugins_memberOf_jsx__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./lib/plugins/memberOf.jsx */ "./src/lib/plugins/memberOf.jsx");
/* harmony import */ var _lib_plugins_passthroughAuthentication_jsx__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./lib/plugins/passthroughAuthentication.jsx */ "./src/lib/plugins/passthroughAuthentication.jsx");
/* harmony import */ var _lib_plugins_referentialIntegrity_jsx__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./lib/plugins/referentialIntegrity.jsx */ "./src/lib/plugins/referentialIntegrity.jsx");
/* harmony import */ var _lib_plugins_retroChangelog_jsx__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./lib/plugins/retroChangelog.jsx */ "./src/lib/plugins/retroChangelog.jsx");
/* harmony import */ var _lib_plugins_rootDNAccessControl_jsx__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./lib/plugins/rootDNAccessControl.jsx */ "./src/lib/plugins/rootDNAccessControl.jsx");
/* harmony import */ var _lib_plugins_usn_jsx__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./lib/plugins/usn.jsx */ "./src/lib/plugins/usn.jsx");
/* harmony import */ var _lib_plugins_winsync_jsx__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./lib/plugins/winsync.jsx */ "./src/lib/plugins/winsync.jsx");
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }






















class Plugins extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  componentDidUpdate(prevProps) {
    if (this.props.wasActiveList.includes(5)) {
      if (this.state.firstLoad) {
        this.pluginList();
      } else {
        if (this.props.serverId !== prevProps.serverId) {
          this.pluginList();
        }
      }
    }
  }

  componentDidMount() {
    this.getSchema();
  }

  constructor(props) {
    super(props);
    this.state = {
      firstLoad: true,
      loading: false,
      showPluginModal: false,
      currentPluginTab: "",
      activePlugin: "All Plugins",
      togglePluginName: "",
      togglePluginEnabled: false,
      showConfirmToggle: false,
      toggleSpinning: false,
      modalChecked: false,
      modalSpinning: false,
      rows: [],
      pluginTableKey: 0,
      attributes: [],
      objectclasses: [],
      // Plugin attributes
      currentPluginName: "",
      currentPluginType: "",
      currentPluginEnabled: false,
      currentPluginPath: "",
      currentPluginInitfunc: "",
      currentPluginId: "",
      currentPluginVendor: "",
      currentPluginVersion: "",
      currentPluginDescription: "",
      currentPluginDependsOnType: "",
      currentPluginDependsOnNamed: "",
      currentPluginPrecedence: ""
    };

    this.handleSelect = result => {
      this.setState({
        activePlugin: result.itemId
      });
    };

    this.onFieldChange = this.onFieldChange.bind(this);
    this.pluginList = this.pluginList.bind(this);
    this.onChangeTab = this.onChangeTab.bind(this);
    this.savePlugin = this.savePlugin.bind(this);
    this.toggleLoading = this.toggleLoading.bind(this);
    this.getIconAndName = this.getIconAndName.bind(this);
    this.togglePlugin = this.togglePlugin.bind(this);
    this.showConfirmToggle = this.showConfirmToggle.bind(this);
    this.closeConfirmToggle = this.closeConfirmToggle.bind(this);
    this.getSchema = this.getSchema.bind(this);
  }

  getSchema() {
    var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("getSchema", "Plugins Get attrs", attr_cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(attr_cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var attrContent = JSON.parse(content);
      var attrs = [];

      var _iterator = _createForOfIteratorHelper(attrContent.items),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var _content2 = _step.value;
          attrs.push(_content2.name[0]);
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      var oc_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "objectclasses", "list"];
      (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("getSchema", "Get objectClasses", oc_cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(oc_cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        var ocContent = JSON.parse(content);
        var ocs = [];

        var _iterator2 = _createForOfIteratorHelper(ocContent.items),
            _step2;

        try {
          for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
            var _content = _step2.value;
            ocs.push(_content.name[0]);
          }
        } catch (err) {
          _iterator2.e(err);
        } finally {
          _iterator2.f();
        }

        this.setState({
          objectClasses: ocs,
          attributes: attrs
        });
      }).fail(err => {
        var errMsg = JSON.parse(err);
        this.props.addNotification("error", "Failed to get objectClasses - ".concat(errMsg.desc));
      });
    });
  }

  onChangeTab(event) {
    this.setState({
      currentPluginTab: event.target.value
    });
  }

  onFieldChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [e.target.id]: value
    });
  }

  toggleLoading() {
    this.setState(prevState => ({
      loading: !prevState.loading
    }));
  }

  pluginList() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "list"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("pluginList", "Get plugins for table rows", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var myObject = JSON.parse(content);
      var pluginTableKey = this.state.pluginTableKey + 1;

      if (this.state.firstLoad) {
        this.setState(prevState => ({
          pluginTabs: _objectSpread(_objectSpread({}, prevState.pluginTabs), {}, {
            basicConfig: true
          }),
          rows: myObject.items,
          firstLoad: false,
          pluginTableKey: pluginTableKey
        }));
      } else {
        this.setState({
          rows: myObject.items,
          pluginTableKey: pluginTableKey
        });
      }
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "".concat(errMsg.desc, " error during plugin loading"));
    });
  }

  savePlugin(data) {
    var nothingToSetErr = false;
    var basicPluginSuccess = false;
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "set", data.name, "--type", data.type || "delete", "--path", data.path || "delete", "--initfunc", data.initfunc || "delete", "--id", data.id || "delete", "--vendor", data.vendor || "delete", "--version", data.version || "delete", "--description", data.description || "delete", "--depends-on-type", data.dependsOnType || "delete", "--depends-on-named", data.dependsOnNamed || "delete", "--precedence", data.precedence || "delete"];

    if ("enabled" in data) {
      cmd = [...cmd, "--enabled", data.enabled ? "on" : "off"];
    }

    this.toggleLoading();
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("savePlugin", "Edit the plugin", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("savePlugin", "Result", content);
      basicPluginSuccess = true;
      this.props.addNotification("success", "Plugin ".concat(data.name, " was successfully modified"));
      this.pluginList();
      this.closePluginModal();
      this.toggleLoading();
    }).fail(err => {
      var errMsg = JSON.parse(err);

      if (errMsg.desc.indexOf("nothing to set") >= 0) {
        nothingToSetErr = true;
      } else {
        this.props.addNotification("error", "".concat(errMsg.desc, " error during ").concat(data.name, " modification"));
      }

      this.closePluginModal();
      this.toggleLoading();
    }).always(() => {
      if ("specificPluginCMD" in data && data.specificPluginCMD.length !== 0) {
        this.toggleLoading();
        (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("savePlugin", "Edit the plugin from the plugin config tab", data.specificPluginCMD);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(data.specificPluginCMD, {
          superuser: true,
          err: "message"
        }).done(content => {
          // Notify success only one time
          if (!basicPluginSuccess) {
            this.props.addNotification("success", "Plugin ".concat(data.name, " was successfully modified"));
          }

          this.pluginList();
          this.toggleLoading();
          console.info("savePlugin", "Result", content);
        }).fail(err => {
          var errMsg = JSON.parse(err);

          if (errMsg.desc.indexOf("nothing to set") >= 0 && nothingToSetErr || errMsg.desc.indexOf("nothing to set") < 0) {
            if (basicPluginSuccess) {
              this.props.addNotification("success", "Plugin ".concat(data.name, " was successfully modified"));
              this.pluginList();
            }

            this.props.addNotification("error", "".concat(errMsg.desc, " error during ").concat(data.name, " modification"));
          }

          this.toggleLoading();
        });
      } else {
        this.pluginList();
      }
    });
  }

  showConfirmToggle(plugin_name, enabled) {
    this.setState({
      showConfirmToggle: true,
      togglePluginName: plugin_name,
      togglePluginEnabled: enabled,
      modalChecked: false,
      modalSpinning: false
    });
  }

  closeConfirmToggle() {
    this.setState({
      showConfirmToggle: false,
      togglePluginName: "",
      togglePluginEnabled: ""
    });
  }

  togglePlugin() {
    var new_status = this.state.togglePluginEnabled ? "off" : "on";
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "plugin", "set", "--enabled=" + new_status, this.state.togglePluginName];
    this.setState({
      modalSpinning: true
    });
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("togglePlugin", "Switch plugin states from the plugin tab", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("savePlugin", "Result", content);
      this.pluginList();
      this.props.addNotification("warning", "".concat(this.state.togglePluginName, " plugin was successfully set to \"").concat(new_status, "\".\n                        Please, restart the instance."));
      this.setState({
        modalSpinning: false,
        showConfirmToggle: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error during ".concat(this.state.togglePluginName, " plugin modification - ").concat(errMsg.desc)); // toggleLoadingHandler();

      this.setState({
        modalSpinning: false,
        showConfirmToggle: false
      });
    });
  }

  getIconAndName(name, plugin_name) {
    var pluginRow = this.state.rows.find(row => row.cn[0] === plugin_name);

    if (pluginRow) {
      if (pluginRow['nsslapd-pluginEnabled'][0] === "on") {
        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
          className: "ds-ok-icon"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_18__.CheckCircleIcon, {
          title: "Plugin is enabled",
          className: "ds-icon-sm"
        }), name);
      } else {
        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
          className: "ds-disabled-icon"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_19__.BanIcon, {
          title: "Plugin is disabled",
          className: "ds-icon-sm"
        }), name);
      }
    } else {
      // Might be attribute uniqueness that just has individual entries
      var otherRows = this.state.rows.filter(row => row['nsslapd-pluginId'][0] === "NSUniqueAttr");

      if (otherRows.length > 0) {
        var _iterator3 = _createForOfIteratorHelper(otherRows),
            _step3;

        try {
          for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
            var plugin = _step3.value;

            if (plugin['nsslapd-pluginEnabled'][0] === "on") {
              return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
                className: "ds-ok-icon"
              }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_18__.CheckCircleIcon, {
                title: "Plugin is enabled",
                className: "ds-icon-sm"
              }), name);
            }
          }
        } catch (err) {
          _iterator3.e(err);
        } finally {
          _iterator3.f();
        }

        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
          className: "ds-disabled-icon"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_19__.BanIcon, {
          title: "Plugin is disabled",
          className: "ds-icon-sm"
        }), name);
      } else {
        return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
          className: "ds-disabled-icon"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_20__.ResourcesEmptyIcon, {
          title: "Plugin is not configured",
          className: "ds-icon-sm"
        }), name);
      }
    }
  }

  render() {
    var selectPlugins = {
      allPlugins: {
        name: "All Plugins",
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_21__.ListIcon, {
          className: "ds-icon-sm"
        }), "All Plugins"),
        component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_plugins_pluginTables_jsx__WEBPACK_IMPORTED_MODULE_4__.PluginTable, {
          key: this.state.pluginTableKey,
          rows: this.state.rows,
          showConfirmToggle: this.showConfirmToggle,
          spinning: this.state.modalSpinning
        })
      },
      accountPolicy: {
        name: "Account Policy",
        icon: this.getIconAndName("Account Policy", "Account Policy Plugin"),
        component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_plugins_accountPolicy_jsx__WEBPACK_IMPORTED_MODULE_5__["default"], {
          key: this.state.rows,
          rows: this.state.rows,
          serverId: this.props.serverId,
          savePluginHandler: this.savePlugin,
          pluginListHandler: this.pluginList,
          addNotification: this.props.addNotification,
          toggleLoadingHandler: this.toggleLoading,
          attributes: this.state.attributes
        })
      },
      attributeUniqueness: {
        name: "Attribute Uniqueness",
        icon: this.getIconAndName("Attribute Uniqueness", "attribute uniqueness"),
        component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_plugins_attributeUniqueness_jsx__WEBPACK_IMPORTED_MODULE_6__["default"], {
          rows: this.state.rows,
          key: this.state.rows,
          serverId: this.props.serverId,
          savePluginHandler: this.savePlugin,
          pluginListHandler: this.pluginList,
          addNotification: this.props.addNotification,
          toggleLoadingHandler: this.toggleLoading,
          wasActiveList: this.props.wasActiveList,
          attributes: this.state.attributes,
          objectClasses: this.state.objectClasses
        })
      },
      autoMembership: {
        name: "Auto Membership",
        icon: this.getIconAndName("Auto Membership", "Auto Membership Plugin"),
        component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_plugins_autoMembership_jsx__WEBPACK_IMPORTED_MODULE_7__["default"], {
          rows: this.state.rows,
          serverId: this.props.serverId,
          savePluginHandler: this.savePlugin,
          pluginListHandler: this.pluginList,
          addNotification: this.props.addNotification,
          toggleLoadingHandler: this.toggleLoading,
          wasActiveList: this.props.wasActiveList,
          attributes: this.state.attributes,
          key: this.props.wasActiveList
        })
      },
      dna: {
        name: "DNA",
        icon: this.getIconAndName("DNA", "Distributed Numeric Assignment Plugin"),
        component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_plugins_dna_jsx__WEBPACK_IMPORTED_MODULE_8__["default"], {
          rows: this.state.rows,
          serverId: this.props.serverId,
          savePluginHandler: this.savePlugin,
          pluginListHandler: this.pluginList,
          addNotification: this.props.addNotification,
          toggleLoadingHandler: this.toggleLoading,
          wasActiveList: this.props.wasActiveList,
          attributes: this.state.attributes,
          key: this.props.wasActiveList
        })
      },
      linkedAttributes: {
        name: "Linked Attributes",
        icon: this.getIconAndName("Linked Attributes", "Linked Attributes"),
        component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_plugins_linkedAttributes_jsx__WEBPACK_IMPORTED_MODULE_9__["default"], {
          rows: this.state.rows,
          serverId: this.props.serverId,
          savePluginHandler: this.savePlugin,
          pluginListHandler: this.pluginList,
          addNotification: this.props.addNotification,
          toggleLoadingHandler: this.toggleLoading,
          wasActiveList: this.props.wasActiveList,
          attributes: this.state.attributes,
          key: this.props.wasActiveList
        })
      },
      managedEntries: {
        name: "Managed Entries",
        icon: this.getIconAndName("Managed Entries", "Managed Entries"),
        component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_plugins_managedEntries_jsx__WEBPACK_IMPORTED_MODULE_10__["default"], {
          rows: this.state.rows,
          key: this.state.rows,
          serverId: this.props.serverId,
          savePluginHandler: this.savePlugin,
          pluginListHandler: this.pluginList,
          attributes: this.state.attributes,
          addNotification: this.props.addNotification
        })
      },
      memberOf: {
        name: "MemberOf",
        icon: this.getIconAndName("MemberOf", "MemberOf Plugin"),
        component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_plugins_memberOf_jsx__WEBPACK_IMPORTED_MODULE_11__["default"], {
          rows: this.state.rows,
          serverId: this.props.serverId,
          savePluginHandler: this.savePlugin,
          pluginListHandler: this.pluginList,
          addNotification: this.props.addNotification,
          toggleLoadingHandler: this.toggleLoading,
          wasActiveList: this.props.wasActiveList,
          objectClasses: this.state.objectClasses,
          key: this.props.wasActiveList
        })
      },
      passthroughAuthentication: {
        name: "Pass Through Auth",
        icon: this.getIconAndName("Pass Through Auth", "Pass Through Authentication"),
        component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_plugins_passthroughAuthentication_jsx__WEBPACK_IMPORTED_MODULE_12__["default"], {
          rows: this.state.rows,
          serverId: this.props.serverId,
          savePluginHandler: this.savePlugin,
          pluginListHandler: this.pluginList,
          addNotification: this.props.addNotification,
          toggleLoadingHandler: this.toggleLoading,
          wasActiveList: this.props.wasActiveList,
          attributes: this.state.attributes,
          key: this.props.wasActiveList
        })
      },
      winsync: {
        name: "Posix Winsync",
        icon: this.getIconAndName("Posix Winsync", "Posix Winsync API"),
        component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_plugins_winsync_jsx__WEBPACK_IMPORTED_MODULE_17__["default"], {
          rows: this.state.rows,
          key: this.state.rows,
          serverId: this.props.serverId,
          savePluginHandler: this.savePlugin,
          pluginListHandler: this.pluginList,
          addNotification: this.props.addNotification,
          attributes: this.state.attributes,
          toggleLoadingHandler: this.toggleLoading
        })
      },
      referentialIntegrity: {
        name: "Referential Integrity",
        icon: this.getIconAndName("Referential Integrity", "referential integrity postoperation"),
        component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_plugins_referentialIntegrity_jsx__WEBPACK_IMPORTED_MODULE_13__["default"], {
          rows: this.state.rows,
          serverId: this.props.serverId,
          savePluginHandler: this.savePlugin,
          pluginListHandler: this.pluginList,
          addNotification: this.props.addNotification,
          toggleLoadingHandler: this.toggleLoading,
          wasActiveList: this.props.wasActiveList,
          attributes: this.state.attributes,
          key: this.props.wasActiveList
        })
      },
      retroChangelog: {
        name: "Retro Changelog",
        icon: this.getIconAndName("Retro Changelog", "Retro Changelog Plugin"),
        component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_plugins_retroChangelog_jsx__WEBPACK_IMPORTED_MODULE_14__["default"], {
          rows: this.state.rows,
          serverId: this.props.serverId,
          savePluginHandler: this.savePlugin,
          pluginListHandler: this.pluginList,
          addNotification: this.props.addNotification,
          toggleLoadingHandler: this.toggleLoading,
          wasActiveList: this.props.wasActiveList,
          attributes: this.state.attributes,
          key: this.props.wasActiveList
        })
      },
      rootDnaAccessControl: {
        name: "RootDN Access Control",
        icon: this.getIconAndName("RootDN Access Control", "RootDN Access Control"),
        component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_plugins_rootDNAccessControl_jsx__WEBPACK_IMPORTED_MODULE_15__["default"], {
          rows: this.state.rows,
          serverId: this.props.serverId,
          savePluginHandler: this.savePlugin,
          pluginListHandler: this.pluginList,
          addNotification: this.props.addNotification,
          wasActiveList: this.props.wasActiveList,
          attributes: this.state.attributes,
          toggleLoadingHandler: this.toggleLoading
        })
      },
      usn: {
        name: "USN",
        icon: this.getIconAndName("USN", "USN"),
        component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_plugins_usn_jsx__WEBPACK_IMPORTED_MODULE_16__["default"], {
          rows: this.state.rows,
          serverId: this.props.serverId,
          savePluginHandler: this.savePlugin,
          pluginListHandler: this.pluginList,
          addNotification: this.props.addNotification,
          toggleLoadingHandler: this.toggleLoading,
          wasActiveList: this.props.wasActiveList,
          key: this.props.wasActiveList
        })
      }
    };
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "container-fluid"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top-xlg ds-center",
      hidden: !this.state.firstLoad
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.TextVariants.h3
    }, "Loading Plugins ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.Spinner, {
      className: "ds-margin-top-lg",
      size: "xl"
    })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      hidden: this.state.firstLoad,
      className: this.state.loading ? "ds-disabled" : ""
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Grid, {
      className: "ds-margin-top-xlg",
      hasGutter: true
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.GridItem, {
      span: 3
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_27__.Nav, {
      key: this.state.pluginTableKey,
      theme: "light",
      onSelect: this.handleSelect
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_28__.NavList, null, Object.entries(selectPlugins).map(_ref => {
      var _ref2 = _slicedToArray(_ref, 2),
          id = _ref2[0],
          item = _ref2[1];

      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_29__.NavItem, {
        key: item.name,
        itemId: item.name,
        isActive: this.state.activePlugin === item.name
      }, item.icon);
    }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_26__.GridItem, {
      className: "ds-indent-md",
      span: 9
    }, Object.entries(selectPlugins).filter(plugin => plugin[1].name === this.state.activePlugin).map(filteredPlugin => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      key: filteredPlugin[1].name,
      className: "ds-margin-top"
    }, filteredPlugin[1].component)))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_3__.DoubleConfirmModal, {
      showModal: this.state.showConfirmToggle,
      closeHandler: this.closeConfirmToggle,
      handleChange: this.onFieldChange,
      actionHandler: this.togglePlugin,
      spinning: this.state.modalSpinning,
      item: this.state.togglePluginName,
      checked: this.state.modalChecked,
      mTitle: this.state.togglePluginEnabled ? "Disable Plugin" : "Enable Plugin",
      mMsg: this.state.togglePluginEnabled ? "Are you really sure you want to disable this plugin?  Disabling some plugins can cause the server to not start, please use caution." : "Are you sure you want to enable this plugin?",
      mSpinningMsg: this.state.togglePluginEnabled ? "Disabling plugin ..." : "Enabling plugin ...",
      mBtnName: this.state.togglePluginEnabled ? "Disable Plugin" : "Enable Plugin"
    })));
  }

}
Plugins.propTypes = {
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_30___default().func),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_30___default().string)
};
Plugins.defaultProps = {
  serverId: ""
};

/***/ }),

/***/ "./src/replication.jsx":
/*!*****************************!*\
  !*** ./src/replication.jsx ***!
  \*****************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Replication": () => (/* binding */ Replication),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lib/tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _lib_replication_replSuffix_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lib/replication/replSuffix.jsx */ "./src/lib/replication/replSuffix.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TreeView/TreeView.js");
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/topology-icon.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }










class Replication extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      firstLoad: true,
      errObj: {},
      nodes: [],
      node_name: "",
      node_type: "",
      node_replicated: false,
      disableTree: true,
      activeItems: [],
      // Suffix
      suffixLoading: false,
      attributes: [],
      role: "",
      rid: "0",
      bindDNs: [],
      bindDNGroup: "",
      agmtRows: [],
      winsyncRows: [],
      ruvRows: [],
      suffixSpinning: false,
      disabled: false,
      clLoading: false,
      clMaxEntries: "",
      clMaxAge: "",
      clTrimInt: "",
      clEncrypt: false,
      suffixKey: 0,
      ldifRows: [],
      showDisableConfirm: false,
      loaded: false
    }; // General

    this.handleTreeClick = this.handleTreeClick.bind(this);
    this.handleChange = this.handleChange.bind(this);
    this.disableTree = this.disableTree.bind(this);
    this.enableTree = this.enableTree.bind(this);
    this.update_tree_nodes = this.update_tree_nodes.bind(this);
    this.reloadConfig = this.reloadConfig.bind(this);
    this.reloadAgmts = this.reloadAgmts.bind(this);
    this.reloadWinsyncAgmts = this.reloadWinsyncAgmts.bind(this);
    this.reloadRUV = this.reloadRUV.bind(this);
    this.loadAttrs = this.loadAttrs.bind(this);
    this.loadReplSuffix = this.loadReplSuffix.bind(this);
    this.reloadChangelog = this.reloadChangelog.bind(this);
    this.loadSuffixTree = this.loadSuffixTree.bind(this);
    this.loadLDIFs = this.loadLDIFs.bind(this);
  }

  componentDidUpdate(prevProps) {
    if (this.props.wasActiveList.includes(3)) {
      if (this.state.firstLoad) {
        this.loadSuffixTree(true);

        if (!this.state.loaded) {
          this.loadAttrs();
        }
      } else {
        if (this.props.serverId !== prevProps.serverId) {
          this.loadSuffixTree(true);
        }
      }
    }
  }

  reloadChangelog() {
    // Refresh the changelog
    this.setState({
      clLoading: true
    });
    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'get-changelog'];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("reloadChangelog", "Reload the changelog", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var clDir = "";
      var clMaxEntries = "";
      var clMaxAge = "";
      var clTrimInt = "";
      var clEncrypt = false;

      for (var attr in config.attrs) {
        var val = config.attrs[attr][0];

        if (attr === "nsslapd-changelogdir") {
          clDir = val;
        }

        if (attr === "nsslapd-changelogmaxentries") {
          clMaxEntries = val;
        }

        if (attr === "nsslapd-changelogmaxage") {
          clMaxAge = val;
        }

        if (attr === "nsslapd-changelogtrim-interval") {
          clTrimInt = val;
        }

        if (attr === "nsslapd-encryptionalgorithm") {
          clEncrypt = true;
        }
      }

      this.setState({
        clDir: clDir,
        clMaxEntries: clMaxEntries,
        clMaxAge: clMaxAge,
        clTrimInt: clTrimInt,
        clEncrypt: clEncrypt,
        clLoading: false
      });
    }).fail(() => {
      this.setState({
        clDir: "",
        clMaxEntries: "",
        clMaxAge: "",
        clTrimInt: "",
        clEncrypt: false,
        clLoading: false
      });
    });
  }

  processBranch(treeBranch) {
    if (treeBranch === undefined || treeBranch.length === 0) {
      return;
    }

    for (var sub in treeBranch) {
      if (!treeBranch[sub].type.endsWith("suffix")) {
        // Not a suffix, skip it
        treeBranch.splice(sub, 1);
        continue;
      } else if (treeBranch[sub].replicated) {
        treeBranch[sub].icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__.FontAwesomeIcon, {
          size: "sm",
          icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__.faClone
        });
        treeBranch[sub].replicated = true;
      }

      if (treeBranch[sub].children.length === 0) {
        delete treeBranch[sub].children;
      }

      this.processBranch(treeBranch[sub].children);
    }
  }

  loadSuffixTree(fullReset) {
    if (this.state.firstLoad) {
      this.setState({
        firstLoad: false
      });
    }

    this.setState({
      loaded: false
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "backend", "get-tree"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadSuffixTree", "Start building the suffix tree", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var treeData = [];

      if (content !== "") {
        treeData = JSON.parse(content);

        var _iterator = _createForOfIteratorHelper(treeData),
            _step;

        try {
          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            var suffix = _step.value;

            if (suffix.type === "suffix") {
              suffix.icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__.FontAwesomeIcon, {
                size: "sm",
                icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__.faTree
              });
            } else if (suffix.type === "subsuffix") {
              suffix.icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__.FontAwesomeIcon, {
                size: "sm",
                icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__.faLeaf
              });
            }

            if (suffix.children.length === 0) {
              delete suffix.children;
            }
          }
        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }
      }

      var basicData = [{
        name: "Suffixes",
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_6__.TopologyIcon, null),
        id: "repl-suffixes",
        children: [],
        defaultExpanded: true
      }];
      var current_node = this.state.node_name;
      var current_type = this.state.node_type;
      var replicated = this.state.node_replicated;

      if (fullReset && treeData.length > 0) {
        var found = false;

        for (var i = 0; i < treeData.length; i++) {
          if (treeData[i].replicated) {
            treeData[i].icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__.FontAwesomeIcon, {
              size: "sm",
              icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__.faClone
            });
            replicated = true;

            if (!found) {
              // Load the first replicated suffix we find
              current_node = treeData[i].id;
              current_type = treeData[i].type;
              this.setState({
                activeItems: [treeData[i], basicData[0]]
              });
              this.loadReplSuffix(treeData[i].id);
              found = true;
            }
          }

          this.processBranch(treeData[i].children);

          if (treeData[i].children && treeData[i].children.length === 0) {
            // Clean up tree
            delete treeData[i].children;
          }
        }

        if (!found) {
          // No replicated suffixes, load the first one
          current_node = treeData[0].id;
          current_type = treeData[0].type;
          this.setState({
            activeItems: [treeData[0], basicData[0]]
          });
          this.loadReplSuffix(treeData[0].id);
        }
      } else if (treeData.length > 0) {
        // Reset current suffix
        var _iterator2 = _createForOfIteratorHelper(treeData),
            _step2;

        try {
          for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
            var _suffix = _step2.value;
            this.processBranch(_suffix.children);

            if (_suffix.id === current_node) {
              replicated = _suffix.replicated;
            }

            if (_suffix.replicated) {
              _suffix.icon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__.FontAwesomeIcon, {
                size: "sm",
                icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__.faClone
              });
            }
          }
        } catch (err) {
          _iterator2.e(err);
        } finally {
          _iterator2.f();
        }

        this.loadReplSuffix(current_node);
      }

      basicData[0].children = treeData;
      this.setState({
        nodes: basicData,
        node_name: current_node,
        node_type: current_type,
        node_replicated: replicated
      }, () => {
        this.update_tree_nodes();
      });
    });
  }

  handleTreeClick(evt, treeViewItem, parentItem) {
    if (treeViewItem.id === "repl-suffixes") {
      return;
    }

    this.setState({
      activeItems: [treeViewItem],
      node_name: treeViewItem.id,
      node_type: treeViewItem.type,
      node_replicated: treeViewItem.replicated,
      disableTree: true // Disable the tree to allow node to be fully loaded

    });

    if (treeViewItem.id in this.state) {
      // This suffix is already cached, just use what we have...
      this.setState({
        disableTree: false,
        suffixKey: new Date()
      });
    } else {
      // Suffix/subsuffix
      this.loadReplSuffix(treeViewItem.id);
      this.setState(prevState => {
        return {
          suffixKey: new Date()
        };
      });
    }
  }

  update_tree_nodes() {
    // Enable the tree, and update the titles
    this.setState({
      loaded: true,
      disableTree: false
    }, () => {
      var className = 'pf-c-tree-view__list-item';
      var element = document.getElementById("repl-tree");

      if (element) {
        var elements = element.getElementsByClassName(className);

        var _iterator3 = _createForOfIteratorHelper(elements),
            _step3;

        try {
          for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
            var el = _step3.value;

            if (el.id === "repl-suffixes") {
              continue;
            }

            el.setAttribute('title', el.innerText);
          }
        } catch (err) {
          _iterator3.e(err);
        } finally {
          _iterator3.f();
        }
      }
    });
  }

  handleChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var valueErr = false;
    var errObj = this.state.errObj;

    if (value === "") {
      valueErr = true;
    }

    errObj[e.target.id] = valueErr;
    this.setState({
      [e.target.id]: value,
      errObj: errObj
    });
  }

  closeSuffixModal() {
    this.setState({
      showSuffixModal: false
    });
  }

  reloadAgmts(suffix) {
    this.setState({
      suffixSpinning: true,
      disabled: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-agmt", "list", "--suffix", suffix];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("reloadAgmts", "get repl agreements", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var obj = JSON.parse(content);
      var rows = [];

      for (var idx in obj.items) {
        var agmt_attrs = obj.items[idx].attrs;
        var state = "Enabled";
        var update_status = "";
        var agmt_init_status = ""; // Compute state (enabled by default)

        if ('nsds5replicaenabled' in agmt_attrs) {
          if (agmt_attrs.nsds5replicaenabled[0].toLowerCase() === 'off') {
            state = "Disabled";
          }
        } // Check for status msgs


        if ('nsds5replicalastupdatestatus' in agmt_attrs) {
          update_status = agmt_attrs.nsds5replicalastupdatestatus[0];
        }

        if ('nsds5replicalastinitstatus' in agmt_attrs && agmt_attrs.nsds5replicalastinitstatus[0] !== "") {
          agmt_init_status = agmt_attrs.nsds5replicalastinitstatus[0];

          if (agmt_init_status === "Error (0) Total update in progress" || agmt_init_status === "Error (0)") {
            agmt_init_status = "Initializing";
          } else if (agmt_init_status === "Error (0) Total update succeeded") {
            agmt_init_status = "Initialized";
          }
        } else if (agmt_attrs.nsds5replicalastinitstart[0] === "19700101000000Z") {
          agmt_init_status = "Not Initialized";
        } else if ('nsds5beginreplicarefresh' in agmt_attrs) {
          agmt_init_status = "Initializing";
        } // Update table


        rows.push([agmt_attrs.cn[0], agmt_attrs.nsds5replicahost[0], agmt_attrs.nsds5replicaport[0], state, update_status, agmt_init_status]);
      } // Set agmt


      this.setState({
        [suffix]: _objectSpread(_objectSpread({}, this.state[suffix]), {}, {
          agmtRows: rows
        }),
        suffixSpinning: false,
        disabled: false
      });
    }).fail(() => {
      this.setState({
        suffixSpinning: false,
        disabled: false
      });
    });
  }

  reloadWinsyncAgmts(suffix) {
    this.setState({
      suffixSpinning: true,
      disabled: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-winsync-agmt", "list", "--suffix", suffix];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("reloadWinsyncAgmts", "Get Winsync Agreements", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var obj = JSON.parse(content);
      var ws_rows = [];

      for (var idx in obj.items) {
        var state = "Enabled";
        var update_status = "";
        var ws_agmt_init_status = "Initialized";
        var agmt_attrs = obj.items[idx].attrs; // let agmt_name = agmt_attrs['cn'][0];
        // Compute state (enabled by default)

        if ('nsds5replicaenabled' in agmt_attrs) {
          if (agmt_attrs.nsds5replicaenabled[0].toLowerCase() === 'off') {
            state = "Disabled";
          }
        }

        if ('nsds5replicalastupdatestatus' in agmt_attrs) {
          update_status = agmt_attrs.nsds5replicalastupdatestatus[0];
        }

        if ('nsds5replicalastinitstatus' in agmt_attrs && agmt_attrs.nsds5replicalastinitstatus[0] !== "") {
          ws_agmt_init_status = agmt_attrs.nsds5replicalastinitstatus[0];

          if (ws_agmt_init_status === "Error (0) Total update in progress" || ws_agmt_init_status === "Error (0)") {
            ws_agmt_init_status = "Initializing";
          } else if (ws_agmt_init_status === "Error (0) Total update succeeded") {
            ws_agmt_init_status = "Initialized";
          }
        } else if ('nsds5replicalastinitstart' in agmt_attrs && agmt_attrs.nsds5replicalastinitstart[0] === "19700101000000Z") {
          ws_agmt_init_status = "Not Initialized";
        } else if ('nsds5beginreplicarefresh' in agmt_attrs) {
          ws_agmt_init_status = "Initializing";
        } // Update table


        ws_rows.push([agmt_attrs.cn[0], agmt_attrs.nsds5replicahost[0], agmt_attrs.nsds5replicaport[0], state, update_status, ws_agmt_init_status]);
      } // Set winsync agmts


      this.setState({
        [suffix]: _objectSpread(_objectSpread({}, this.state[suffix]), {}, {
          winsyncRows: ws_rows
        }),
        suffixSpinning: false,
        disabled: false
      });
    }).fail(() => {
      this.setState({
        suffixSpinning: false,
        disabled: false
      });
    });
  }

  reloadConfig(suffix) {
    this.setState({
      suffixSpinning: true,
      disabled: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "get", "--suffix", suffix];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("reloadConfig", "Reload suffix repl config", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var current_role = "";
      var nsds5replicaprecisetombstonepurging = false;

      if ('nsds5replicaprecisetombstonepurging' in config.attrs) {
        if (config.attrs.nsds5replicaprecisetombstonepurging[0].toLowerCase() === "on") {
          nsds5replicaprecisetombstonepurging = true;
        }
      } // Set the replica role


      if (config.attrs.nsds5replicatype[0] === "3") {
        current_role = "Supplier";
      } else {
        if (config.attrs.nsds5flags[0] === "1") {
          current_role = "Hub";
        } else {
          current_role = "Consumer";
        }
      }

      this.setState({
        [suffix]: {
          role: current_role,
          nsds5flags: config.attrs.nsds5flags[0],
          nsds5replicatype: config.attrs.nsds5replicatype[0],
          nsds5replicaid: 'nsds5replicaid' in config.attrs ? config.attrs.nsds5replicaid[0] : "",
          nsds5replicabinddn: 'nsds5replicabinddn' in config.attrs ? config.attrs.nsds5replicabinddn : "",
          nsds5replicabinddngroup: 'nsds5replicabinddngroup' in config.attrs ? config.attrs.nsds5replicabinddngroup[0] : "",
          nsds5replicabinddngroupcheckinterval: 'nsds5replicabinddngroupcheckinterval' in config.attrs ? config.attrs.nsds5replicabinddngroupcheckinterval[0] : "",
          nsds5replicareleasetimeout: 'nsds5replicareleasetimeout' in config.attrs ? config.attrs.nsds5replicareleasetimeout[0] : "",
          nsds5replicapurgedelay: 'nsds5replicapurgedelay' in config.attrs ? config.attrs.nsds5replicapurgedelay[0] : "",
          nsds5replicatombstonepurgeinterval: 'nsds5replicatombstonepurgeinterval' in config.attrs ? config.attrs.nsds5replicatombstonepurgeinterval[0] : "",
          nsds5replicaprecisetombstonepurging: nsds5replicaprecisetombstonepurging,
          nsds5replicaprotocoltimeout: 'nsds5replicaprotocoltimeout' in config.attrs ? config.attrs.nsds5replicaprotocoltimeout[0] : "",
          nsds5replicabackoffmin: 'nsds5replicabackoffmin' in config.attrs ? config.attrs.nsds5replicabackoffmin[0] : "",
          nsds5replicabackoffmax: 'nsds5replicabackoffmax' in config.attrs ? config.attrs.nsds5replicabackoffmax[0] : ""
        },
        suffixSpinning: false,
        disabled: false,
        suffixKey: new Date()
      }, this.loadLDIFs);
    }).fail(() => {
      this.setState({
        suffixSpinning: false,
        disabled: false
      });
    });
  }

  reloadRUV(suffix) {
    this.setState({
      suffixSpinning: true,
      disabled: true
    }); // Load suffix RUV

    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'get-ruv', '--suffix=' + suffix];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)('reloadRUV', 'Get the suffix RUV', cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var ruvs = JSON.parse(content);
      var ruv_rows = [];

      for (var idx in ruvs.items) {
        var ruv = ruvs.items[idx]; // Update table

        ruv_rows.push({
          rid: ruv.rid,
          url: ruv.url,
          csn: ruv.csn,
          raw_csn: ruv.raw_csn,
          maxcsn: ruv.maxcsn,
          raw_maxcsn: ruv.raw_maxcsn
        });
      }

      this.setState({
        [suffix]: _objectSpread(_objectSpread({}, this.state[suffix]), {}, {
          ruvRows: ruv_rows
        }),
        suffixSpinning: false,
        disabled: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);

      if (errMsg.desc !== "No such object") {
        this.props.addNotification("error", "Error loading suffix RUV - ".concat(errMsg.desc));
      }

      this.setState({
        suffixSpinning: false,
        disabled: false
      });
    });
  }

  loadLDIFs() {
    var cmd = ["dsctl", "-j", this.props.serverId, "ldifs"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadLDIFs", "Load replication LDIF Files", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var rows = [];

      var _iterator4 = _createForOfIteratorHelper(config.items),
          _step4;

      try {
        for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
          var row = _step4.value;

          if (row[3].toLowerCase() === this.state.node_name.toLowerCase()) {
            rows.push([row[0], row[1], row[2]]);
          }
        }
      } catch (err) {
        _iterator4.e(err);
      } finally {
        _iterator4.f();
      }

      this.setState({
        ldifRows: rows
      }, () => {
        this.update_tree_nodes();
      });
    });
  }

  loadReplSuffix(suffix) {
    // Load everything, we must nest cockpit promise so we can proper set
    // the loading is finished.
    // - Get Suffix config
    // - Get Changelog Settings
    // - Get Repl agmts
    // - Get Winsync Agmts
    // - Get RUV's
    this.setState({
      activeKey: 1,
      suffixLoading: true,
      [suffix]: {}
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "replication", "get", "--suffix", suffix];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadReplSuffix", "Load suffix repl config", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var current_role = "";
      var nsds5replicaprecisetombstonepurging = false;

      if ('nsds5replicaprecisetombstonepurging' in config.attrs) {
        if (config.attrs.nsds5replicaprecisetombstonepurging[0].toLowerCase() === "on") {
          nsds5replicaprecisetombstonepurging = true;
        }
      } // Set the replica role


      if (config.attrs.nsds5replicatype[0] === "3") {
        current_role = "Supplier";
      } else {
        if (config.attrs.nsds5flags[0] === "1") {
          current_role = "Hub";
        } else {
          current_role = "Consumer";
        }
      }

      this.setState({
        [suffix]: {
          role: current_role,
          nsds5flags: config.attrs.nsds5flags[0],
          nsds5replicatype: config.attrs.nsds5replicatype[0],
          nsds5replicaid: 'nsds5replicaid' in config.attrs ? config.attrs.nsds5replicaid[0] : "",
          nsds5replicabinddn: 'nsds5replicabinddn' in config.attrs ? config.attrs.nsds5replicabinddn : "",
          nsds5replicabinddngroup: 'nsds5replicabinddngroup' in config.attrs ? config.attrs.nsds5replicabinddngroup[0] : "",
          nsds5replicabinddngroupcheckinterval: 'nsds5replicabinddngroupcheckinterval' in config.attrs ? config.attrs.nsds5replicabinddngroupcheckinterval[0] : "",
          nsds5replicareleasetimeout: 'nsds5replicareleasetimeout' in config.attrs ? config.attrs.nsds5replicareleasetimeout[0] : "",
          nsds5replicapurgedelay: 'nsds5replicapurgedelay' in config.attrs ? config.attrs.nsds5replicapurgedelay[0] : "",
          nsds5replicatombstonepurgeinterval: 'nsds5replicatombstonepurgeinterval' in config.attrs ? config.attrs.nsds5replicatombstonepurgeinterval[0] : "",
          nsds5replicaprecisetombstonepurging: nsds5replicaprecisetombstonepurging,
          nsds5replicaprotocoltimeout: 'nsds5replicaprotocoltimeout' in config.attrs ? config.attrs.nsds5replicaprotocoltimeout[0] : "",
          nsds5replicabackoffmin: 'nsds5replicabackoffmin' in config.attrs ? config.attrs.nsds5replicabackoffmin[0] : "",
          nsds5replicabackoffmax: 'nsds5replicabackoffmax' in config.attrs ? config.attrs.nsds5replicabackoffmax[0] : "",
          clMaxEntries: "",
          clMaxAge: "",
          clTrimInt: "",
          clEncrypt: false
        }
      }, this.loadLDIFs);
      cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'get-changelog', '--suffix', suffix];
      (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadReplSuffix", "Load the replication info", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        var config = JSON.parse(content);
        var clMaxEntries = "";
        var clMaxAge = "";
        var clTrimInt = "";
        var clEncrypt = false;

        for (var attr in config.attrs) {
          var val = config.attrs[attr][0];

          if (attr === "nsslapd-changelogmaxentries") {
            clMaxEntries = val;
          }

          if (attr === "nsslapd-changelogmaxage") {
            clMaxAge = val;
          }

          if (attr === "nsslapd-changelogtrim-interval") {
            clTrimInt = val;
          }

          if (attr === "nsslapd-encryptionalgorithm") {
            clEncrypt = true;
          }
        }

        this.setState({
          [suffix]: _objectSpread(_objectSpread({}, this.state[suffix]), {}, {
            clMaxEntries: clMaxEntries,
            clMaxAge: clMaxAge,
            clTrimInt: clTrimInt,
            clEncrypt: clEncrypt
          })
        }); // Now load agmts, then the winsync agreement, and finally the RUV

        cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-agmt", "list", "--suffix", suffix];
        (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadReplSuffix", "get repl agreements", cmd);
        cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
          superuser: true,
          err: "message"
        }).done(content => {
          var obj = JSON.parse(content);
          var rows = [];

          for (var idx in obj.items) {
            var agmt_attrs = obj.items[idx].attrs;
            var state = "Enabled";
            var update_status = "";
            var agmt_init_status = ""; // Compute state (enabled by default)

            if ('nsds5replicaenabled' in agmt_attrs) {
              if (agmt_attrs.nsds5replicaenabled[0].toLowerCase() === 'off') {
                state = "Disabled";
              }
            } // Check for status msgs


            if ('nsds5replicalastupdatestatus' in agmt_attrs) {
              update_status = agmt_attrs.nsds5replicalastupdatestatus[0];
            }

            if ('nsds5replicalastinitstatus' in agmt_attrs && agmt_attrs.nsds5replicalastinitstatus[0] !== "") {
              agmt_init_status = agmt_attrs.nsds5replicalastinitstatus[0];

              if (agmt_init_status === "Error (0) Total update in progress" || agmt_init_status === "Error (0)") {
                agmt_init_status = "Initializing";
              } else if (agmt_init_status === "Error (0) Total update succeeded") {
                agmt_init_status = "Initialized";
              }
            } else if ('nsds5replicalastinitstart' in agmt_attrs && agmt_attrs.nsds5replicalastinitstart[0] === "19700101000000Z") {
              agmt_init_status = "Not Initialized";
            } else if ('nsds5beginreplicarefresh' in agmt_attrs) {
              agmt_init_status = "Initializing";
            } // Update table


            rows.push([agmt_attrs.cn[0], agmt_attrs.nsds5replicahost[0], agmt_attrs.nsds5replicaport[0], state, update_status, agmt_init_status]);
          } // Set agmt


          this.setState({
            [suffix]: _objectSpread(_objectSpread({}, this.state[suffix]), {}, {
              agmtRows: rows
            })
          }); // Load winsync agreements

          cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "repl-winsync-agmt", "list", "--suffix", suffix];
          (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadReplSuffix", "Get Winsync Agreements", cmd);
          cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
            superuser: true,
            err: "message"
          }).done(content => {
            var obj = JSON.parse(content);
            var ws_rows = [];

            for (var idx in obj.items) {
              var _state = "Enabled";
              var _update_status = "";
              var ws_agmt_init_status = "Initialized";
              var _agmt_attrs = obj.items[idx].attrs; // let agmt_name = agmt_attrs['cn'][0];
              // Compute state (enabled by default)

              if ('nsds5replicaenabled' in _agmt_attrs) {
                if (_agmt_attrs.nsds5replicaenabled[0].toLowerCase() === 'off') {
                  _state = "Disabled";
                }
              }

              if ('nsds5replicalastupdatestatus' in _agmt_attrs) {
                _update_status = _agmt_attrs.nsds5replicalastupdatestatus[0];
              }

              if ('nsds5replicalastinitstatus' in _agmt_attrs && _agmt_attrs.nsds5replicalastinitstatus[0] !== "") {
                ws_agmt_init_status = _agmt_attrs.nsds5replicalastinitstatus[0];

                if (ws_agmt_init_status === "Error (0) Total update in progress" || ws_agmt_init_status === "Error (0)") {
                  ws_agmt_init_status = "Initializing";
                } else if (ws_agmt_init_status === "Error (0) Total update succeeded") {
                  ws_agmt_init_status = "Initialized";
                }
              } else if ('nsds5replicalastinitstart' in _agmt_attrs && _agmt_attrs.nsds5replicalastinitstart[0] === "19700101000000Z") {
                ws_agmt_init_status = "Not Initialized";
              } else if ('nsds5beginreplicarefresh' in _agmt_attrs) {
                ws_agmt_init_status = "Initializing";
              } // Update table


              ws_rows.push([_agmt_attrs.cn[0], _agmt_attrs.nsds5replicahost[0], _agmt_attrs.nsds5replicaport[0], _state, _update_status, ws_agmt_init_status]);
            } // Set winsync agmts


            this.setState({
              [suffix]: _objectSpread(_objectSpread({}, this.state[suffix]), {}, {
                winsyncRows: ws_rows
              })
            }); // Load suffix RUV

            cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'replication', 'get-ruv', '--suffix=' + suffix];
            (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)('loadReplSuffix', 'Get the suffix RUV', cmd);
            cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
              superuser: true,
              err: "message"
            }).done(content => {
              var ruvs = JSON.parse(content);
              var ruv_rows = [];

              for (var _idx in ruvs.items) {
                var ruv = ruvs.items[_idx]; // Update table

                ruv_rows.push({
                  rid: ruv.rid,
                  url: ruv.url,
                  csn: ruv.csn,
                  raw_csn: ruv.raw_csn,
                  maxcsn: ruv.maxcsn,
                  raw_maxcsn: ruv.raw_maxcsn
                });
              }

              this.setState({
                [suffix]: _objectSpread(_objectSpread({}, this.state[suffix]), {}, {
                  ruvRows: ruv_rows
                }),
                suffixLoading: false,
                disableTree: false
              });
            }).fail(err => {
              var errMsg = JSON.parse(err);

              if (errMsg.desc !== "No such object") {
                this.props.addNotification("error", "Error loading suffix RUV - ".concat(errMsg.desc));
              }

              this.setState({
                suffixLoading: false,
                disableTree: false
              });
            });
          }).fail(err => {
            var errMsg = JSON.parse(err);
            this.props.addNotification("error", "Error loading winsync agreements - ".concat(errMsg.desc));
            this.setState({
              suffixLoading: false,
              disableTree: false
            });
          });
        }).fail(err => {
          var errMsg = JSON.parse(err);
          this.props.addNotification("error", "Error loading replication agreements configuration - ".concat(errMsg.desc));
          this.setState({
            suffixLoading: false,
            disableTree: false
          });
        });
      }).fail(err => {
        // changelog failure
        var errMsg = JSON.parse(err);
        this.props.addNotification("error", "Error loading replication changelog configuration - ".concat(errMsg.desc));
        this.setState({
          suffixLoading: false,
          disableTree: false
        });
      });
    }).fail(() => {
      this.setState({
        suffixLoading: false,
        disableTree: false,
        node_replicated: false
      });
    });
  }

  loadAttrs() {
    // Now get the schema that various tabs use
    var attr_cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "list"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("Suffixes", "Get attrs", attr_cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(attr_cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var attrContent = JSON.parse(content);
      var attrs = [];

      var _iterator5 = _createForOfIteratorHelper(attrContent.items),
          _step5;

      try {
        for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
          var _content = _step5.value;
          attrs.push(_content.name[0]);
        }
      } catch (err) {
        _iterator5.e(err);
      } finally {
        _iterator5.f();
      }

      this.setState({
        attributes: attrs
      });
    });
  }

  enableTree() {
    this.setState({
      disableTree: false
    });
  }

  disableTree() {
    this.setState({
      disableTree: true
    });
  }

  render() {
    var nodes = this.state.nodes;
    var repl_page = "";
    var repl_element = "";
    var disabled = "tree-view-container";

    if (this.state.disableTree) {
      disabled = "tree-view-container ds-disabled";
    }

    if (!this.state.loaded) {
      repl_page = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-top-xlg ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h3
      }, "Loading Replication Information ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Spinner, {
        className: "ds-margin-top-lg",
        size: "xl"
      }));
    } else {
      if (this.state.suffixLoading) {
        repl_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
          className: "ds-margin-top-xlg ds-center"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Text, {
          component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.TextVariants.h3
        }, "Loading Replication Configuration For ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("b", null, this.state.node_name, " ..."))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Spinner, {
          className: "ds-margin-top-lg",
          size: "xl"
        }));
      } else {
        if (this.state.node_name in this.state) {
          repl_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_replication_replSuffix_jsx__WEBPACK_IMPORTED_MODULE_3__.ReplSuffix, {
            serverId: this.props.serverId,
            suffix: this.state.node_name,
            role: this.state[this.state.node_name].role,
            data: this.state[this.state.node_name],
            addNotification: this.props.addNotification,
            agmtRows: this.state[this.state.node_name].agmtRows,
            winsyncRows: this.state[this.state.node_name].winsyncRows,
            ruvRows: this.state[this.state.node_name].ruvRows,
            ldifRows: this.state.ldifRows,
            reloadAgmts: this.reloadAgmts,
            reloadWinsyncAgmts: this.reloadWinsyncAgmts,
            reloadRUV: this.reloadRUV,
            reloadConfig: this.reloadConfig,
            reloadLDIF: this.loadLDIFs,
            reload: this.loadSuffixTree,
            attrs: this.state.attributes,
            replicated: this.state.node_replicated,
            enableTree: this.enableTree,
            disableTree: this.disableTree,
            key: this.state.suffixKey,
            disabled: this.state.disabled,
            spinning: this.state.suffixSpinning
          }));
        } else {
          // Suffix is not replicated
          repl_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_replication_replSuffix_jsx__WEBPACK_IMPORTED_MODULE_3__.ReplSuffix, {
            serverId: this.props.serverId,
            suffix: this.state.node_name,
            role: "",
            data: "",
            addNotification: this.props.addNotification,
            disableWSAgmtTable: this.state.disableWSAgmtTable,
            disableAgmtTable: this.state.disableAgmtTable,
            reloadAgmts: this.reloadAgmts,
            reloadWinsyncAgmts: this.reloadWinsyncAgmts,
            reloadRUV: this.reloadRUV,
            reloadLDIF: this.loadLDIFs,
            reloadConfig: this.reloadConfig,
            reload: this.loadSuffixTree,
            attrs: this.state.attributes,
            replicated: this.state.node_replicated,
            enableTree: this.enableTree,
            disableTree: this.disableTree,
            spinning: this.state.suffixSpinning,
            disabled: this.state.disabled,
            ldifRows: this.state.ldifRows,
            key: this.state.node_name
          });
        }
      }

      repl_page = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "container-fluid"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-container"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-tree"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: disabled,
        id: "repl-tree"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.TreeView, {
        data: nodes,
        activeItems: this.state.activeItems,
        onSelect: this.handleTreeClick
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-tree-content"
      }, repl_element)));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, repl_page);
  }

} // Property types and defaults

Replication.propTypes = {
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)
};
Replication.defaultProps = {
  serverId: ""
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Replication);

/***/ }),

/***/ "./src/schema.jsx":
/*!************************!*\
  !*** ./src/schema.jsx ***!
  \************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Schema": () => (/* binding */ Schema),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lib/tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _lib_schema_schemaTables_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lib/schema/schemaTables.jsx */ "./src/lib/schema/schemaTables.jsx");
/* harmony import */ var _lib_schema_schemaModals_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lib/schema/schemaModals.jsx */ "./src/lib/schema/schemaModals.jsx");
/* harmony import */ var _lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lib/notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_14__);
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }









class Schema extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  componentDidUpdate(prevProps) {
    if (this.props.wasActiveList.includes(4)) {
      if (this.state.firstLoad) {
        this.loadSyntaxesFirst();
      } else {
        if (this.props.serverId !== prevProps.serverId) {
          this.loadSyntaxesFirst();
        }
      }
    }
  }

  constructor(props) {
    super(props);
    this.state = {
      firstLoad: true,
      loading: false,
      activeTabKey: 0,
      objectclassRows: [],
      filteredObjectclassRows: [],
      attributesRows: [],
      filteredAttributesRows: [],
      matchingrulesRows: [],
      syntaxes: [],
      attributes: [],
      objectclasses: [],
      matchingrules: [],
      deleteName: "",
      ocTableKey: 0,
      attrTableKey: 0,
      errObj: {},
      saveBtnDisabled: true,
      ocModalViewOnly: false,
      ocName: "",
      ocDesc: "",
      ocOID: "",
      ocParent: "",
      ocParentOptions: [],
      ocKind: "",
      ocMust: [],
      ocMustOptions: [],
      ocMay: [],
      ocMayOptions: [],
      ocUserDefined: false,
      objectclassModalShow: false,
      newOcEntry: true,
      ocTableLoading: false,
      ocModalLoading: false,
      atName: "",
      atDesc: "",
      atOID: "",
      atParent: "",
      atParentOptions: [],
      atSyntax: "",
      atUsage: "userApplications",
      atMultivalued: false,
      atNoUserMod: false,
      atAlias: [],
      atAliasOptions: [],
      atEqMr: "",
      atOrder: "",
      atSubMr: "",
      atUserDefined: false,
      atModalViewOnly: false,
      attributeModalShow: false,
      newAtEntry: true,
      atTableLoading: false,
      atModalLoading: false,
      isParentObjOpen: false,
      isRequiredAttrsOpen: false,
      isAllowedAttrsOpen: false,
      isParentAttrOpen: false,
      isAliasNameOpen: false,
      isEqualityMROpen: false,
      isOrderMROpen: false,
      isSubstringMROpen: false
    }; // Substring Matching Rule

    this.handleSubstringMRToggle = isSubstringMROpen => {
      this.setState({
        isSubstringMROpen
      });
    };

    this.handleSubstringMRClear = () => {
      var e = {
        target: {
          id: 'dummy',
          value: "",
          type: 'input'
        }
      };
      this.setState({
        atSubMr: "",
        isSubstringMROpen: false
      }, () => {
        this.onAttrChange(e);
      });
    };

    this.handleSubstringMRSelect = (event, selection) => {
      var e = {
        target: {
          id: 'dummy',
          value: "",
          type: 'input'
        }
      };

      if (this.state.atSubMr === selection) {
        this.setState({
          atSubMr: selection,
          isSubstringMROpen: false
        }, () => {
          this.onAttrChange(e);
        });
      } else {
        this.setState({
          atSubMr: selection,
          isSubstringMROpen: false
        }, () => {
          this.onAttrChange(e);
        });
      }
    }; // Order Matching Rule


    this.handleOrderMRToggle = isOrderMROpen => {
      this.setState({
        isOrderMROpen
      });
    };

    this.handleOrderMRClear = () => {
      var e = {
        target: {
          id: 'dummy',
          value: "",
          type: 'input'
        }
      };
      this.setState({
        atOrder: "",
        isOrderMROpen: false
      }, () => {
        this.onAttrChange(e);
      });
    };

    this.handleOrderMRSelect = (event, selection) => {
      var e = {
        target: {
          id: 'dummy',
          value: "",
          type: 'input'
        }
      };

      if (this.state.atOrder === selection) {
        this.setState({
          atOrder: "",
          isOrderMROpen: false
        }, () => {
          this.onAttrChange(e);
        });
      } else {
        this.setState({
          atOrder: selection,
          isOrderMROpen: false
        }, () => {
          this.onAttrChange(e);
        });
      }
    }; // Equaliry Matching Rule


    this.handleEqualityMRToggle = isEqualityMROpen => {
      this.setState({
        isEqualityMROpen
      });
    };

    this.handleEqualityMRClear = () => {
      var e = {
        target: {
          id: 'dummy',
          value: "",
          type: 'input'
        }
      };
      this.setState({
        atEqMr: "",
        isEqualityMROpen: false
      }, () => {
        this.onAttrChange(e);
      });
    };

    this.handleEqualityMRSelect = (event, selection) => {
      var e = {
        target: {
          id: 'dummy',
          value: "",
          type: 'input'
        }
      };

      if (this.state.atEqMr === selection) {
        this.setState({
          atEqMr: "",
          isEqualityMROpen: false
        }, () => {
          this.onAttrChange(e);
        });
      } else {
        this.setState({
          atEqMr: selection,
          isEqualityMROpen: false
        }, () => {
          this.onAttrChange(e);
        });
      }
    }; // Alias Name


    this.handleAliasNameToggle = isAliasNameOpen => {
      this.setState({
        isAliasNameOpen
      });
    };

    this.handleAliasNameClear = () => {
      var e = {
        target: {
          id: 'dummy',
          value: "",
          type: 'input'
        }
      };
      this.setState({
        atAlias: [],
        isAliasNameOpen: false
      }, () => {
        this.onAttrChange(e);
      });
    };

    this.handleAliasNameSelect = (event, selection) => {
      var e = {
        target: {
          id: 'dummy',
          value: "",
          type: 'input'
        }
      };

      if (this.state.atAlias.includes(selection)) {
        this.setState(prevState => ({
          atAlias: prevState.atAlias.filter(item => item !== selection),
          isAliasNameOpen: false
        }), () => {
          this.onAttrChange(e);
        });
      } else {
        this.setState(prevState => ({
          atAlias: [...prevState.atAlias, selection],
          isAliasNameOpen: false
        }), () => {
          this.onAttrChange(e);
        });
      }
    };

    this.handleAliasNameCreateOption = newValue => {
      if (!this.state.atAliasOptions.includes(newValue)) {
        this.setState({
          atAliasOptions: [...this.state.atAliasOptions, {
            value: newValue
          }]
        });
      }
    }; // Parent Attribute


    this.handleParentAttrToggle = isParentAttrOpen => {
      this.setState({
        isParentAttrOpen
      });
    };

    this.handleParentAttrClear = () => {
      var e = {
        target: {
          id: 'dummy',
          value: "",
          type: 'input'
        }
      };
      this.setState({
        atParent: "",
        isParentAttrOpen: false
      }, () => {
        this.onAttrChange(e);
      });
    };

    this.handleParentAttrSelect = (event, selection) => {
      var e = {
        target: {
          id: 'dummy',
          value: "",
          type: 'input'
        }
      };

      if (this.state.atParent === selection) {
        this.setState({
          atParent: "",
          isParentAttrOpen: false
        }, () => {
          this.onAttrChange(e);
        });
      } else {
        this.setState(prevState => ({
          atParent: selection,
          isParentAttrOpen: false
        }), () => {
          this.onAttrChange(e);
        });
      }
    }; // Required Attributes


    this.handleRequiredAttrsToggle = isRequiredAttrsOpen => {
      this.setState({
        isRequiredAttrsOpen
      });
    };

    this.handleRequiredAttrsClear = () => {
      this.setState({
        ocMust: [],
        isRequiredAttrsOpen: false
      });
    };

    this.handleRequiredAttrsSelect = (event, selection) => {
      var e = {
        target: {
          id: 'dummy',
          value: "",
          type: 'input'
        }
      };

      if (this.state.ocMust.includes(selection)) {
        this.setState(prevState => ({
          ocMust: prevState.ocMust.filter(item => item !== selection),
          isRequiredAttrsOpen: false
        }), () => {
          this.onOCChange(e);
        });
      } else {
        this.setState(prevState => ({
          ocMust: [...prevState.ocMust, selection],
          isRequiredAttrsOpen: false
        }), () => {
          this.onOCChange(e);
        });
      }
    };

    this.handleRequiredAttrsCreateOption = newValue => {
      if (!this.state.ocMustOptions.includes(newValue)) {
        this.setState({
          ocMustOptions: [...this.state.ocParentocMustOptionsOptions, {
            value: newValue
          }]
        });
      }
    }; // Allowed Attributes


    this.handleAllowedAttrsToggle = isAllowedAttrsOpen => {
      this.setState({
        isAllowedAttrsOpen
      });
    };

    this.handleAllowedAttrsClear = () => {
      this.setState({
        ocMay: [],
        isAllowedAttrsOpen: false
      });
    };

    this.handleAllowedAttrsSelect = (event, selection) => {
      var e = {
        target: {
          id: 'dummy',
          value: "",
          type: 'input'
        }
      };

      if (this.state.ocMay.includes(selection)) {
        this.setState(prevState => ({
          ocMay: prevState.ocMay.filter(item => item !== selection),
          isAllowedAttrsOpen: false
        }), () => {
          this.onOCChange(e);
        });
      } else {
        this.setState(prevState => ({
          ocMay: [...prevState.ocMay, selection],
          isAllowedAttrsOpen: false
        }), () => {
          this.onOCChange(e);
        });
      }
    };

    this.handleAllowedAttrsCreateOption = newValue => {
      if (!this.state.ocMayOptions.includes(newValue)) {
        this.setState({
          ocMayOptions: [...this.state.ocMayOptions, {
            value: newValue
          }]
        });
      }
    }; // Toggle currently active tab


    this.handleNavSelect = (event, tabIndex) => {
      event.preventDefault();
      this.setState({
        activeTabKey: tabIndex
      });
    };

    this.validateForm = this.validateForm.bind(this);
    this.onAttrChange = this.onAttrChange.bind(this);
    this.onOCChange = this.onOCChange.bind(this);
    this.onFieldChange = this.onFieldChange.bind(this);
    this.loadSchemaData = this.loadSchemaData.bind(this);
    this.loadSyntaxesFirst = this.loadSyntaxesFirst.bind(this);
    this.toggleLoading = this.toggleLoading.bind(this);
    this.showEditObjectclassModal = this.showEditObjectclassModal.bind(this);
    this.handleShowAddObjectclassModal = this.handleShowAddObjectclassModal.bind(this);
    this.openObjectclassModal = this.openObjectclassModal.bind(this);
    this.closeObjectclassModal = this.closeObjectclassModal.bind(this);
    this.doDeleteOC = this.doDeleteOC.bind(this);
    this.addObjectclass = this.addObjectclass.bind(this);
    this.editObjectclass = this.editObjectclass.bind(this);
    this.cmdOperationObjectclass = this.cmdOperationObjectclass.bind(this);
    this.showConfirmOCDelete = this.showConfirmOCDelete.bind(this);
    this.closeConfirmOCDelete = this.closeConfirmOCDelete.bind(this);
    this.showEditAttributeModal = this.showEditAttributeModal.bind(this);
    this.handleShowAddAttributeModal = this.handleShowAddAttributeModal.bind(this);
    this.openAttributeModal = this.openAttributeModal.bind(this);
    this.closeAttributeModal = this.closeAttributeModal.bind(this);
    this.doDeleteAttr = this.doDeleteAttr.bind(this);
    this.addAttribute = this.addAttribute.bind(this);
    this.editAttribute = this.editAttribute.bind(this);
    this.showConfirmAttrDelete = this.showConfirmAttrDelete.bind(this);
    this.closeConfirmAttrDelete = this.closeConfirmAttrDelete.bind(this);
  }

  toggleLoading(item) {
    if (item === "allSchema") {
      this.setState(prevState => ({
        loading: !prevState.loading
      }));
    } else if (item === "ocTable") {
      this.setState(prevState => ({
        ocTableLoading: !prevState.ocTableLoading
      }));
    } else if (item === "ocModal") {
      this.setState(prevState => ({
        ocModalLoading: !prevState.ocModalLoading
      }));
    } else if (item === "atTable") {
      this.setState(prevState => ({
        atTableLoading: !prevState.atTableLoading
      }));
    } else if (item === "atModal") {
      this.setState(prevState => ({
        atModalLoading: !prevState.atModalLoading
      }));
    }
  }

  loadSyntaxesFirst() {
    if (this.state.firstLoad) {
      this.setState({
        firstLoad: false
      });
    }

    this.toggleLoading("allSchema");
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "get_syntaxes"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadSyntaxes", "Get syntaxes for attributetypes", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var myObject = JSON.parse(content);
      this.setState({
        syntaxes: myObject.items
      });
      this.loadSchemaData(true);
    }).fail(err => {
      if (err !== 0) {
        var errMsg = JSON.parse(err);
        console.log("loadSyntaxes failed: ", errMsg.desc);
      }
    });
  }

  loadSchemaData(initialLoading) {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "list"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadSchemaData", "Get schema objects in one batch", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var myObject = JSON.parse(content);
      var attrs = [];
      var ocs = [];
      var mrs = [];
      var ocKey = this.state.ocTableKey + 1;
      var attrKey = this.state.attrTableKey + 1;

      var _iterator = _createForOfIteratorHelper(myObject.attributetypes.items),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var _content = _step.value;
          attrs.push(_content.name[0]);
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      var _iterator2 = _createForOfIteratorHelper(myObject.objectclasses.items),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var _content2 = _step2.value;
          ocs.push(_content2.name[0]);
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      var _iterator3 = _createForOfIteratorHelper(myObject.matchingrules.items),
          _step3;

      try {
        for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
          var _content3 = _step3.value;

          if (_content3.name[0] !== "") {
            mrs.push(_content3.name[0]);
          } else {
            _content3.name[0] = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("i", null, "<No Name>");
          }
        }
      } catch (err) {
        _iterator3.e(err);
      } finally {
        _iterator3.f();
      }

      this.setState({
        objectclassRows: myObject.objectclasses.items,
        attributesRows: myObject.attributetypes.items,
        matchingrulesRows: myObject.matchingrules.items,
        attributes: attrs,
        matchingrules: mrs,
        objectclasses: ocs
      });

      if (this.state.ocUserDefined) {
        this.setState({
          filteredObjectclassRows: (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.searchFilter)("user defined", ["x_origin"], myObject.objectclasses.items),
          ocTableKey: ocKey
        });
      } else {
        this.setState({
          filteredObjectclassRows: myObject.objectclasses.items,
          ocTableKey: ocKey
        });
      }

      if (this.state.atUserDefined) {
        this.setState({
          filteredAttributesRows: (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.searchFilter)("user defined", ["x_origin"], myObject.attributetypes.items),
          attrTableKey: attrKey
        });
      } else {
        this.setState({
          filteredAttributesRows: myObject.attributetypes.items,
          attrTableKey: attrKey
        });
      }

      if (initialLoading) {
        this.toggleLoading("allSchema");
      } else {
        this.setState({
          atTableLoading: false,
          ocTableLoading: false
        });
      }
    }).fail(err => {
      if (err !== 0) {
        var errMsg = JSON.parse(err);
        console.log("loadSchemaData failed: ", errMsg.desc);
      }

      if (initialLoading) {
        this.toggleLoading("allSchema");
      } else {
        this.setState({
          atTableLoading: false,
          ocTableLoading: false
        });
      }
    });
  }

  showEditObjectclassModal(name) {
    this.setState({
      ocModalViewOnly: false,
      saveBtnDisabled: true,
      errObj: {}
    });
    this.openObjectclassModal(name);
  }

  handleShowAddObjectclassModal(rowData) {
    this.setState({
      ocModalViewOnly: false,
      saveBtnDisabled: true,
      errObj: {
        ocName: true,
        ocDesc: true
      }
    });
    this.openObjectclassModal();
  }

  openObjectclassModal(name) {
    if (!name) {
      this.setState({
        ocName: "",
        ocDesc: "",
        ocOID: "",
        ocParent: "top",
        ocKind: "",
        ocMust: [],
        ocMay: [],
        objectclassModalShow: true,
        newOcEntry: true
      });
    } else {
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "objectclasses", "query", name];
      (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("openObjectclassModal", "Fetch ObjectClass data from schema", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        var obj = JSON.parse(content);
        var item = obj.oc;
        var ocMustList = [];
        var ocMayList = [];
        var kindOpts = ["STRUCTURAL", "ABSTRACT", "AUXILIARY"];
        this.setState({
          objectclassModalShow: true,
          newOcEntry: false,
          ocName: item.name === undefined ? "" : item.name[0],
          ocDesc: item.desc === null ? "" : item.desc[0],
          ocOID: item.oid === undefined ? "" : item.oid[0],
          ocKind: item.kind === undefined ? "" : kindOpts[item.kind],
          ocParent: item.sup === undefined ? [] : item.sup[0],
          // Store original values
          _ocName: item.name === undefined ? "" : item.name[0],
          _ocDesc: item.desc === null ? "" : item.desc[0],
          _ocOID: item.oid === undefined ? "" : item.oid[0],
          _ocKind: item.kind === undefined ? "" : kindOpts[item.kind],
          _ocParent: item.sup === undefined ? [] : item.sup[0]
        });

        if (item.must === undefined) {
          this.setState({
            ocMust: [],
            _ocMust: []
          });
        } else {
          var _iterator4 = _createForOfIteratorHelper(item.must),
              _step4;

          try {
            for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
              var value = _step4.value;
              ocMustList = [...ocMustList, value];
            }
          } catch (err) {
            _iterator4.e(err);
          } finally {
            _iterator4.f();
          }

          this.setState({
            ocMust: ocMustList,
            _ocMust: ocMustList
          });
        }

        if (item.may === undefined) {
          this.setState({
            ocMay: [],
            _ocMay: []
          });
        } else {
          var _iterator5 = _createForOfIteratorHelper(item.may),
              _step5;

          try {
            for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
              var _value = _step5.value;
              ocMayList = [...ocMayList, _value];
            }
          } catch (err) {
            _iterator5.e(err);
          } finally {
            _iterator5.f();
          }

          this.setState({
            ocMay: ocMayList,
            _ocMay: ocMayList
          });
        }
      }).fail(_ => {
        this.setState({
          ocName: "",
          ocDesc: "",
          ocOID: "",
          ocParent: "",
          ocKind: "",
          ocMust: [],
          ocMay: [],
          objectclassModalShow: true,
          newOcEntry: true
        });
      });
    }
  }

  closeObjectclassModal() {
    this.setState({
      objectclassModalShow: false
    });
  }

  closeConfirmOCDelete() {
    // call doDeleteOC
    this.setState({
      showConfirmDeleteOC: false,
      modalChecked: false,
      modalSpinning: false
    });
  }

  showConfirmOCDelete(oc_name) {
    this.setState({
      showConfirmDeleteOC: true,
      modalChecked: false,
      modalSpinning: false,
      deleteName: oc_name
    });
  }

  doDeleteOC() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "objectclasses", "remove", this.state.deleteName];
    this.setState({
      modalSpinning: true
    });
    this.toggleLoading("ocTable");
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("deleteObjectclass", "Delete ObjectClass from schema", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("deleteObjectclass", "Result", content);
      this.props.addNotification("success", "ObjectClass ".concat(this.state.deleteName, " was successfully deleted"));
      this.loadSchemaData();
      this.closeConfirmOCDelete();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error during ObjectClass removal operation - ".concat(errMsg.desc));
      this.loadSchemaData();
      this.closeConfirmOCDelete();
    });
  }

  addObjectclass() {
    this.cmdOperationObjectclass("add");
  }

  editObjectclass() {
    this.cmdOperationObjectclass("replace");
  }

  cmdOperationObjectclass(action) {
    var _this$state = this.state,
        ocName = _this$state.ocName,
        ocDesc = _this$state.ocDesc,
        ocOID = _this$state.ocOID,
        ocParent = _this$state.ocParent,
        ocKind = _this$state.ocKind,
        ocMust = _this$state.ocMust,
        ocMay = _this$state.ocMay;

    if (ocName === "") {
      this.props.addNotification("warning", "ObjectClass Name is required.");
    } else {
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "objectclasses", action, ocName]; // Process and validate parameters

      if (ocOID !== "") {
        cmd = [...cmd, "--oid", ocOID];
      }

      if (ocParent !== "") {
        cmd = [...cmd, "--sup", ocParent];
      }

      if (ocKind !== "") {
        cmd = [...cmd, "--kind", ocKind];
      }

      if (ocDesc !== "") {
        cmd = [...cmd, "--desc", ocDesc];
      }

      if (ocMust.length !== 0) {
        cmd = [...cmd, "--must"];

        var _iterator6 = _createForOfIteratorHelper(ocMust),
            _step6;

        try {
          for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
            var value = _step6.value;
            cmd = [...cmd, value];
          }
        } catch (err) {
          _iterator6.e(err);
        } finally {
          _iterator6.f();
        }
      }

      if (ocMay.length !== 0) {
        cmd = [...cmd, "--may"];

        var _iterator7 = _createForOfIteratorHelper(ocMay),
            _step7;

        try {
          for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
            var _value2 = _step7.value;
            cmd = [...cmd, _value2];
          }
        } catch (err) {
          _iterator7.e(err);
        } finally {
          _iterator7.f();
        }
      }

      this.toggleLoading("ocModal");
      this.toggleLoading("ocTable");
      (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("cmdOperationObjectclass", "Do the ".concat(action, " operation on ObjectClass"), cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        console.info("cmdOperationObjectclass", "Result", content);
        this.props.addNotification("success", "ObjectClass ".concat(ocName, " - ").concat(action, " operation was successfull"));
        this.loadSchemaData();
        this.closeObjectclassModal();
        this.toggleLoading("ocModal");
      }).fail(err => {
        var errMsg = JSON.parse(err);

        if ('info' in errMsg) {
          errMsg = errMsg.desc + " " + errMsg.info;
        } else {
          errMsg = errMsg.desc;
        }

        this.props.addNotification("error", "Error during the ObjectClass ".concat(action, " operation - ").concat(errMsg));
        this.loadSchemaData();
        this.closeObjectclassModal();
        this.toggleLoading("ocModal");
      });
    }
  }

  showEditAttributeModal(name) {
    this.setState({
      atModalViewOnly: false,
      saveBtnDisabled: true,
      errObj: {}
    });
    this.openAttributeModal(name);
  }

  handleShowAddAttributeModal(rowData) {
    this.setState({
      atModalViewOnly: false,
      saveBtnDisabled: true,
      errObj: {
        atName: true,
        atDesc: true
      }
    });
    this.openAttributeModal();
  }

  openAttributeModal(name) {
    if (!name) {
      this.setState({
        atName: "",
        atDesc: "",
        atOID: "",
        atParent: "",
        atSyntax: "1.3.6.1.4.1.1466.115.121.1.15",
        atUsage: "userApplications",
        atMultivalued: false,
        atNoUserMod: false,
        atAlias: [],
        atEqMr: "",
        atOrder: "",
        atSubMr: "",
        attributeModalShow: true,
        newAtEntry: true
      });
    } else {
      var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "query", name];
      (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("openAttributeModal", "Fetch Attribute data from schema", cmd);
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        var obj = JSON.parse(content);
        var item = obj.at;
        var atAliasList = [];
        var atUsageOpts = ["userApplications", "directoryOperation", "distributedOperation", "dSAOperation"];
        this.setState({
          attributeModalShow: true,
          newAtEntry: false,
          atName: item.name === undefined ? "" : item.name[0],
          atDesc: item.desc === null ? "" : item.desc[0],
          atOID: item.oid === undefined ? "" : item.oid[0],
          atParent: item.sup.length === 0 ? "" : item.sup[0],
          atSyntax: item.syntax === undefined ? "" : item.syntax[0],
          atUsage: item.usage === undefined ? "" : atUsageOpts[item.usage],
          atMultivalued: !item.single_value,
          atNoUserMod: item.no_user_mod,
          atEqMr: item.equality === null ? "" : item.equality[0],
          atOrder: item.ordering === null ? "" : item.ordering[0],
          atSubMr: item.substr === null ? "" : item.substr[0],
          // store orig valuses
          _atName: item.name === undefined ? "" : item.name[0],
          _atDesc: item.desc === null ? "" : item.desc[0],
          _atOID: item.oid === undefined ? "" : item.oid[0],
          _atParent: item.sup[0],
          _atSyntax: item.syntax === undefined ? "" : item.syntax[0],
          _atUsage: item.usage === undefined ? "" : atUsageOpts[item.usage],
          _atMultivalued: !item.single_value,
          _atNoUserMod: item.no_user_mod,
          _atEqMr: item.equality === null ? "" : item.equality[0],
          _atOrder: item.ordering === null ? "" : item.ordering[0],
          _atSubMr: item.substr === null ? "" : item.substr[0]
        });

        if (item.aliases === null) {
          this.setState({
            atAlias: [],
            _atAlias: []
          });
        } else {
          var _iterator8 = _createForOfIteratorHelper(item.aliases),
              _step8;

          try {
            for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
              var value = _step8.value;
              atAliasList = [...atAliasList, value];
            }
          } catch (err) {
            _iterator8.e(err);
          } finally {
            _iterator8.f();
          }

          this.setState({
            atAlias: atAliasList,
            _atAlias: atAliasList
          });
        }
      }).fail(_ => {
        this.setState({
          atName: "",
          atDesc: "",
          atOID: "",
          atParent: "",
          atSyntax: "",
          atUsage: "userApplications",
          atMultivalued: false,
          atNoUserMod: false,
          atAlias: [],
          atEqMr: "",
          atOrder: "",
          atSubMr: "",
          attributeModalShow: true,
          newAtEntry: true
        });
      });
    }
  }

  closeAttributeModal() {
    this.setState({
      attributeModalShow: false
    });
  }

  closeConfirmAttrDelete() {
    this.setState({
      showConfirmAttrDelete: false,
      modalChecked: false,
      modalSpinning: false
    });
  }

  showConfirmAttrDelete(attr_name) {
    this.setState({
      showConfirmAttrDelete: true,
      modalChecked: false,
      modalSpinning: false,
      deleteName: attr_name
    });
  }

  doDeleteAttr() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "remove", this.state.deleteName];
    this.setState({
      modalSpinning: true
    });
    this.toggleLoading("atTable");
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("deleteAttribute", "Delete Attribute from schema", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("deleteAttribute", "Result", content);
      this.props.addNotification("success", "Attribute ".concat(this.state.deleteName, " was successfully deleted"));
      this.loadSchemaData();
      this.closeConfirmAttrDelete();
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error during Attribute removal operation - ".concat(errMsg.desc));
      this.loadSchemaData();
      this.closeConfirmAttrDelete();
    });
  }

  addAttribute() {
    var _this$state2 = this.state,
        atName = _this$state2.atName,
        atDesc = _this$state2.atDesc,
        atOID = _this$state2.atOID,
        atParent = _this$state2.atParent,
        atSyntax = _this$state2.atSyntax,
        atUsage = _this$state2.atUsage,
        atMultivalued = _this$state2.atMultivalued,
        atNoUserMod = _this$state2.atNoUserMod,
        atAlias = _this$state2.atAlias,
        atEqMr = _this$state2.atEqMr,
        atOrder = _this$state2.atOrder,
        atSubMr = _this$state2.atSubMr;
    var eqMR = atEqMr;
    var orderMR = atOrder;
    var subMR = atSubMr;
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "add", atName];
    cmd = [...cmd, "--syntax", atSyntax];

    if (atAlias.length !== 0) {
      cmd = [...cmd, "--aliases"];

      var _iterator9 = _createForOfIteratorHelper(atAlias),
          _step9;

      try {
        for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
          var value = _step9.value;
          cmd = [...cmd, value];
        }
      } catch (err) {
        _iterator9.e(err);
      } finally {
        _iterator9.f();
      }
    }

    if (atParent !== "") {
      cmd = [...cmd, "--sup", atParent];
    }

    if (eqMR !== "") {
      cmd = [...cmd, "--equality", eqMR];
    }

    if (subMR !== "") {
      cmd = [...cmd, "--substr", subMR];
    }

    if (orderMR !== "") {
      cmd = [...cmd, "--ordering", orderMR];
    }

    if (atMultivalued) {
      cmd = [...cmd, "--multi-value"];
    } else {
      cmd = [...cmd, "--single-value"];
    }

    if (atNoUserMod) {
      cmd = [...cmd, "--no-user-mod"];
    } else {
      cmd = [...cmd, "--user-mod"];
    }

    if (atOID !== "") {
      cmd = [...cmd, "--oid", atOID];
    }

    if (atUsage !== "") {
      cmd = [...cmd, "--usage", atUsage];
    }

    if (atDesc !== "") {
      cmd = [...cmd, "--desc", atDesc];
    }

    this.toggleLoading("atModal");
    this.toggleLoading("atTable");
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("cmdOperationAttribute", "Do the add operation on Attribute", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("cmdOperationAttribute", "Result", content);
      this.props.addNotification("success", "Attribute ".concat(atName, " - add operation was successfull"));
      this.loadSchemaData();
      this.closeAttributeModal();
      this.toggleLoading("atModal");
    }).fail(err => {
      var errMsg = JSON.parse(err);

      if ('info' in errMsg) {
        errMsg = errMsg.desc + " " + errMsg.info;
      } else {
        errMsg = errMsg.desc;
      }

      this.props.addNotification("error", "Error during the Attribute add operation - ".concat(errMsg));
      this.loadSchemaData();
      this.closeAttributeModal();
      this.toggleLoading("atModal");
    });
  }

  editAttribute(action) {
    var _this$state3 = this.state,
        atName = _this$state3.atName,
        atDesc = _this$state3.atDesc,
        atOID = _this$state3.atOID,
        atParent = _this$state3.atParent,
        atSyntax = _this$state3.atSyntax,
        atUsage = _this$state3.atUsage,
        atMultivalued = _this$state3.atMultivalued,
        atNoUserMod = _this$state3.atNoUserMod,
        atAlias = _this$state3.atAlias,
        atEqMr = _this$state3.atEqMr,
        atOrder = _this$state3.atOrder,
        atSubMr = _this$state3.atSubMr;
    var eqMR = atEqMr;
    var orderMR = atOrder;
    var subMR = atSubMr;
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "schema", "attributetypes", "replace", atName];
    cmd = [...cmd, "--syntax", atSyntax];

    if (!(0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.listsEqual)(atAlias, this.state._atAlias)) {
      cmd = [...cmd, "--aliases"];

      var _iterator10 = _createForOfIteratorHelper(atAlias),
          _step10;

      try {
        for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
          var value = _step10.value;
          cmd = [...cmd, value];
        }
      } catch (err) {
        _iterator10.e(err);
      } finally {
        _iterator10.f();
      }
    }

    if (atParent !== "") {
      cmd = [...cmd, "--sup", atParent];
    } else if (this.state._atParent !== "") {
      // Removed the parent attribute, so we need to remove the matching rules
      eqMR = "";
      orderMR = "";
      subMR = "";
    }

    if (eqMR !== this.state._atEqMr) {
      cmd = [...cmd, "--equality", eqMR];
    }

    if (subMR !== this.state._atSubMr) {
      cmd = [...cmd, "--substr", subMR];
    }

    if (orderMR !== this.state._atOrder) {
      cmd = [...cmd, "--ordering", orderMR];
    }

    if (atMultivalued) {
      cmd = [...cmd, "--multi-value"];
    } else {
      cmd = [...cmd, "--single-value"];
    }

    if (atNoUserMod) {
      cmd = [...cmd, "--no-user-mod"];
    } else {
      cmd = [...cmd, "--user-mod"];
    }

    if (atOID !== this.state._atOID) {
      cmd = [...cmd, "--oid", atOID];
    }

    if (atUsage !== this.state._atUsage) {
      cmd = [...cmd, "--usage", atUsage];
    }

    if (atDesc !== this.state._atDesc) {
      cmd = [...cmd, "--desc", atDesc];
    }

    this.toggleLoading("atModal");
    this.toggleLoading("atTable");
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("cmdOperationAttribute", "Do the replace operation on Attribute", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      console.info("cmdOperationAttribute", "Result", content);
      this.props.addNotification("success", "Attribute ".concat(atName, " - replace operation was successfull"));
      this.loadSchemaData();
      this.closeAttributeModal();
      this.toggleLoading("atModal");
    }).fail(err => {
      var errMsg = JSON.parse(err);

      if ('info' in errMsg) {
        errMsg = errMsg.desc + " " + errMsg.info;
      } else {
        errMsg = errMsg.desc;
      }

      this.props.addNotification("error", "Error during the Attribute replace operation - ".concat(errMsg));
      this.loadSchemaData();
      this.closeAttributeModal();
      this.toggleLoading("atModal");
    });
  }

  validateForm(attr, value, attrs, errObj) {
    var all_good = true;

    var _iterator11 = _createForOfIteratorHelper(attrs),
        _step11;

    try {
      for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
        var check_attr = _step11.value;
        errObj[check_attr] = false;

        if (attr !== check_attr) {
          if (this.state[check_attr] === "") {
            errObj[check_attr] = true;
            all_good = false;
          }
        } else if (value === "") {
          errObj[check_attr] = true;
          all_good = false;
        }
      }
    } catch (err) {
      _iterator11.e(err);
    } finally {
      _iterator11.f();
    }

    return all_good;
  }

  onAttrChange(e) {
    var value = e.target.type === "checkbox" ? e.target.checked : e.target.value;
    var attr = e.target.id;
    var saveBtnDisabled = true;
    var errObj = this.state.errObj;
    var all_good;
    var attrs = ['atName', 'atDesc', 'atOID', 'atMultivalued', 'atNoUserMod', 'atSyntax', 'atEqMr', 'atOrder', 'atSubMr', 'atParent'];
    var attrLists = ['atAlias'];

    if (this.state.newAtEntry) {
      // Add Form
      if (this.validateForm(attr, value, ['atName', 'atDesc', 'atSyntax'], errObj)) {
        // Form is good to save
        saveBtnDisabled = false;
      }
    } else {
      // Edit
      all_good = this.validateForm(attr, value, ['atName', 'atDesc', 'atSyntax'], errObj);

      if (all_good) {
        // Check for difference before enabling save btn
        var _iterator12 = _createForOfIteratorHelper(attrs),
            _step12;

        try {
          for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
            var check_attr = _step12.value;

            if (attr !== check_attr) {
              if (this.state[check_attr] !== this.state['_' + check_attr]) {
                saveBtnDisabled = false;
                break;
              }
            } else if (value !== this.state['_' + check_attr]) {
              saveBtnDisabled = false;
              break;
            }
          }
        } catch (err) {
          _iterator12.e(err);
        } finally {
          _iterator12.f();
        }

        var _iterator13 = _createForOfIteratorHelper(attrLists),
            _step13;

        try {
          for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {
            var _check_attr = _step13.value;

            if (!(0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.listsEqual)(this.state[_check_attr], this.state['_' + _check_attr])) {
              saveBtnDisabled = false;
              break;
            }
          }
        } catch (err) {
          _iterator13.e(err);
        } finally {
          _iterator13.f();
        }
      }
    }

    this.setState({
      [attr]: value,
      saveBtnDisabled: saveBtnDisabled,
      errObj: errObj
    });
  }

  onOCChange(e) {
    var value = e.target.type === "checkbox" ? e.target.checked : e.target.value;
    var attr = e.target.id;
    var saveBtnDisabled = true;
    var errObj = this.state.errObj;
    var all_good;
    var attrs = ['ocName', 'ocDesc', 'ocOID', 'ocParent'];
    var attrLists = ['ocMust', 'ocMay'];

    if (this.state.newOcEntry) {
      // Add OC Form
      if (this.validateForm(attr, value, ['ocName', 'ocDesc', 'ocParent'], errObj)) {
        // Form is good to save
        saveBtnDisabled = false;
      }
    } else {
      // Edit
      all_good = this.validateForm(attr, value, ['ocName', 'ocDesc', 'ocParent'], errObj);

      if (all_good) {
        // Check for difference before enabling save btn
        var _iterator14 = _createForOfIteratorHelper(attrs),
            _step14;

        try {
          for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {
            var check_attr = _step14.value;

            if (attr !== check_attr) {
              if (this.state[check_attr] !== this.state['_' + check_attr]) {
                saveBtnDisabled = false;
                break;
              }
            } else if (value !== this.state['_' + check_attr]) {
              saveBtnDisabled = false;
              break;
            }
          }
        } catch (err) {
          _iterator14.e(err);
        } finally {
          _iterator14.f();
        }

        var _iterator15 = _createForOfIteratorHelper(attrLists),
            _step15;

        try {
          for (_iterator15.s(); !(_step15 = _iterator15.n()).done;) {
            var _check_attr2 = _step15.value;

            if (!(0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.listsEqual)(this.state[_check_attr2], this.state['_' + _check_attr2])) {
              saveBtnDisabled = false;
              break;
            }
          }
        } catch (err) {
          _iterator15.e(err);
        } finally {
          _iterator15.f();
        }
      }
    }

    this.setState({
      [attr]: value,
      saveBtnDisabled: saveBtnDisabled,
      errObj: errObj
    });
  }

  onFieldChange(e) {
    var value = e.target.type === "checkbox" ? e.target.checked : e.target.value;
    var ocKey = this.state.ocTableKey + 1;
    var attrKey = this.state.attrTableKey + 1;

    if (e.target.id === "ocUserDefined") {
      if (value) {
        this.setState({
          filteredObjectclassRows: (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.searchFilter)("user defined", ["x_origin"], this.state.objectclassRows),
          ocTableKey: ocKey
        });
      } else {
        this.setState({
          filteredObjectclassRows: this.state.objectclassRows,
          ocTableKey: ocKey
        });
      }
    } else if (e.target.id === "atUserDefined") {
      if (value) {
        this.setState({
          filteredAttributesRows: (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.searchFilter)("user defined", ["x_origin"], this.state.attributesRows),
          attrTableKey: attrKey
        });
      } else {
        this.setState({
          filteredAttributesRows: this.state.attributesRows,
          attrTableKey: attrKey
        });
      }
    }

    this.setState({
      [e.target.id]: value
    });
  }

  render() {
    var schemaPage = "";

    if (this.state.loading) {
      schemaPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-center ds-margin-top-xlg"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_6__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_7__.TextVariants.h3
      }, "Loading Schema Information ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_8__.Spinner, {
        className: "ds-margin-top-lg",
        size: "xl"
      }));
    } else {
      schemaPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-indent ds-margin-top-xlg ds-margin-bottom-md"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Tabs, {
        isBox: true,
        activeKey: this.state.activeTabKey,
        onSelect: this.handleNavSelect
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Tab, {
        eventKey: 0,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TabTitleText, null, "Objectclasses")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-top-xlg ds-indent"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
        id: "ocUserDefined",
        isChecked: this.state.ocUserDefined,
        title: "Show only the objectclasses that are defined by a user and have the X-ORIGIN set to 'user defined'",
        onChange: (checked, e) => {
          this.onFieldChange(e);
        },
        label: "Only Show Non-standard/Custom Schema"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_schema_schemaTables_jsx__WEBPACK_IMPORTED_MODULE_3__.ObjectClassesTable, {
        className: "ds-margin-top-lg",
        key: this.state.ocTableKey,
        rows: this.state.filteredObjectclassRows,
        editModalHandler: this.showEditObjectclassModal,
        deleteHandler: this.showConfirmOCDelete,
        loading: this.state.ocTableLoading
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Button, {
        variant: "primary",
        onClick: this.handleShowAddObjectclassModal
      }, "Add ObjectClass"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_schema_schemaModals_jsx__WEBPACK_IMPORTED_MODULE_4__.ObjectClassModal, {
        addHandler: this.addObjectclass,
        editHandler: this.editObjectclass,
        newOcEntry: this.state.newOcEntry,
        ocModalViewOnly: this.state.ocModalViewOnly,
        handleFieldChange: this.onOCChange,
        objectclasses: this.state.objectclasses,
        attributes: this.state.attributes,
        ocName: this.state.ocName,
        ocDesc: this.state.ocDesc,
        ocOID: this.state.ocOID,
        ocParent: this.state.ocParent,
        ocKind: this.state.ocKind,
        ocMust: this.state.ocMust,
        ocMay: this.state.ocMay,
        objectclassModalShow: this.state.objectclassModalShow,
        closeModal: this.closeObjectclassModal,
        loading: this.state.ocModalLoading,
        isParentObjOpen: this.state.isParentObjOpen,
        isRequiredAttrsOpen: this.state.isRequiredAttrsOpen,
        isAllowedAttrsOpen: this.state.isAllowedAttrsOpen,
        onRequiredAttrsToggle: this.handleRequiredAttrsToggle,
        onRequiredAttrsClear: this.handleRequiredAttrsClear,
        onRequiredAttrsSelect: this.handleRequiredAttrsSelect,
        onRequiredAttrsCreateOption: this.handleRequiredAttrsCreateOption,
        onAllowedAttrsToggle: this.handleAllowedAttrsToggle,
        onAllowedAttrsClear: this.handleAllowedAttrsClear,
        onAllowedAttrsSelect: this.handleAllowedAttrsSelect,
        onAllowedAttrsCreateOption: this.handleAllowedAttrsCreateOption,
        saveBtnDisabled: this.state.saveBtnDisabled,
        error: this.state.errObj
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Tab, {
        eventKey: 1,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TabTitleText, null, "Attributes")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-top-xlg ds-indent"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.Checkbox, {
        id: "atUserDefined",
        isChecked: this.state.atUserDefined,
        title: "Show only the attributes that are defined by a user, and have the X-ORIGIN set to 'user defined'",
        onChange: (checked, e) => {
          this.onFieldChange(e);
        },
        label: "Only Show Non-standard/Custom Schema"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_schema_schemaTables_jsx__WEBPACK_IMPORTED_MODULE_3__.AttributesTable, {
        className: "ds-margin-top-lg",
        key: this.state.attrTableKey,
        rows: this.state.filteredAttributesRows,
        editModalHandler: this.showEditAttributeModal,
        deleteHandler: this.showConfirmAttrDelete,
        syntaxes: this.state.syntaxes,
        loading: this.state.atTableLoading
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Button, {
        variant: "primary",
        onClick: this.handleShowAddAttributeModal
      }, "Add Attribute"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_schema_schemaModals_jsx__WEBPACK_IMPORTED_MODULE_4__.AttributeTypeModal, {
        addHandler: this.addAttribute,
        editHandler: this.editAttribute,
        newAtEntry: this.state.newAtEntry,
        atModalViewOnly: this.state.atModalViewOnly,
        handleFieldChange: this.onAttrChange,
        objectclasses: this.state.objectclasses,
        attributes: this.state.attributes,
        matchingrules: this.state.matchingrules,
        syntaxes: this.state.syntaxes,
        atName: this.state.atName,
        atDesc: this.state.atDesc,
        atOID: this.state.atOID,
        atParent: this.state.atParent,
        atSyntax: this.state.atSyntax,
        atUsage: this.state.atUsage,
        atMultivalued: this.state.atMultivalued,
        atNoUserMod: this.state.atNoUserMod,
        atAlias: this.state.atAlias,
        atEqMr: this.state.atEqMr,
        atOrder: this.state.atOrder,
        atSubMr: this.state.atSubMr,
        attributeModalShow: this.state.attributeModalShow,
        closeModal: this.closeAttributeModal,
        loading: this.state.atModalLoading,
        isParentAttrOpen: this.state.isParentAttrOpen,
        isAliasNameOpen: this.state.isAliasNameOpen,
        isEqualityMROpen: this.state.isEqualityMROpen,
        isOrderMROpen: this.state.isOrderMROpen,
        isSubstringMROpen: this.state.isSubstringMROpen,
        onParentAttrToggle: this.handleParentAttrToggle,
        onParentAttrClear: this.handleParentAttrClear,
        onParentAttrSelect: this.handleParentAttrSelect,
        onAliasNameToggle: this.handleAliasNameToggle,
        onAliasNameClear: this.handleAliasNameClear,
        onAliasNameSelect: this.handleAliasNameSelect,
        onAliasNameCreateOption: this.handleAliasNameCreateOption,
        onEqualityMRToggle: this.handleEqualityMRToggle,
        onEqualityMRClear: this.handleEqualityMRClear,
        onEqualityMRSelect: this.handleEqualityMRSelect,
        onOrderMRToggle: this.handleOrderMRToggle,
        onOrderMRClear: this.handleOrderMRClear,
        onOrderMRSelect: this.handleOrderMRSelect,
        onSubstringMRToggle: this.handleSubstringMRToggle,
        onSubstringMRClear: this.handleSubstringMRClear,
        onSubstringMRSelect: this.handleSubstringMRSelect,
        saveBtnDisabled: this.state.saveBtnDisabled,
        error: this.state.errObj
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Tab, {
        eventKey: 2,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.TabTitleText, null, "Matching Rules")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-top-xlg ds-indent"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_schema_schemaTables_jsx__WEBPACK_IMPORTED_MODULE_3__.MatchingRulesTable, {
        rows: this.state.matchingrulesRows
      })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__.DoubleConfirmModal, {
        showModal: this.state.showConfirmDeleteOC,
        closeHandler: this.closeConfirmOCDelete,
        handleChange: this.onFieldChange,
        actionHandler: this.doDeleteOC,
        spinning: this.state.modalSpinning,
        item: this.state.deleteName,
        checked: this.state.modalChecked,
        mTitle: "Delete An Objectclass",
        mMsg: "Are you sure you want to delete this Objectclass?",
        mSpinningMsg: "Deleting objectclass ...",
        mBtnName: "Delete Objectclass"
      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_5__.DoubleConfirmModal, {
        showModal: this.state.showConfirmAttrDelete,
        closeHandler: this.closeConfirmAttrDelete,
        handleChange: this.onFieldChange,
        actionHandler: this.doDeleteAttr,
        spinning: this.state.modalSpinning,
        item: this.state.deleteName,
        checked: this.state.modalChecked,
        mTitle: "Delete An Attribute",
        mMsg: "Are you sure you want to delete this Attribute?",
        mSpinningMsg: "Deleting attribute ...",
        mBtnName: "Delete Attribute"
      }));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, schemaPage);
  }

} // Props and defaultProps

Schema.propTypes = {
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().func),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_14___default().string)
};
Schema.defaultProps = {
  serverId: ""
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Schema);

/***/ }),

/***/ "./src/security.jsx":
/*!**************************!*\
  !*** ./src/security.jsx ***!
  \**************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Security": () => (/* binding */ Security),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lib/notifications.jsx */ "./src/lib/notifications.jsx");
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lib/tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var _lib_security_certificateManagement_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lib/security/certificateManagement.jsx */ "./src/lib/security/certificateManagement.jsx");
/* harmony import */ var _lib_security_securityModals_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lib/security/securityModals.jsx */ "./src/lib/security/securityModals.jsx");
/* harmony import */ var _lib_security_ciphers_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./lib/security/ciphers.jsx */ "./src/lib/security/ciphers.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Form/Form.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/Grid.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TextInput/TextInput.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/Select.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/selectConstants.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Select/SelectOption.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Button/Button.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tabs.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/Tab.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Tabs/TabTitleText.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Switch/Switch.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_26__);
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
/* harmony import */ var _fortawesome_fontawesome_svg_core_styles_css__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core/styles.css */ "./node_modules/@fortawesome/fontawesome-svg-core/styles.css");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }













var configAttrs = ['sslVersionMin', 'sslVersionMax', 'secureListenhost', 'clientAuth', 'validateCert', 'requireSecureBinds', 'checkHostname', 'allowWeakCipher', 'nstlsallowclientrenegotiation'];
var configCoreAttrs = ['secureListenhost', 'requireSecureBinds', 'checkHostname', 'allowWeakCipher', 'nstlsallowclientrenegotiation'];
class Security extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);

    _defineProperty(this, "onSelectToggle", (isExpanded, toggleId) => {
      this.setState({
        [toggleId]: isExpanded
      });
    });

    _defineProperty(this, "onSelectClear", (toggleId, collection) => {
      this.setState({
        [toggleId]: false,
        [collection]: []
      });
    });

    this.state = {
      loaded: false,
      saving: false,
      activeTabKey: 0,
      errObj: {},
      showConfirmDisable: false,
      showSecurityEnableModal: false,
      primaryCertName: '',
      serverCertNames: [],
      serverCerts: [],
      isMinSSLOpen: false,
      isMaxSSLOpen: false,
      isClientAuthOpen: false,
      isValidateCertOpen: false,
      disableSaveBtn: true,
      modalChecked: false,
      modalSpinning: false,
      // Ciphers
      supportedCiphers: [],
      enabledCiphers: [],
      // Config settings
      securityEnabled: false,
      requireSecureBinds: false,
      secureListenhost: false,
      clientAuth: false,
      checkHostname: false,
      validateCert: '',
      sslVersionMin: '',
      sslVersionMax: '',
      allowWeakCipher: false,
      nssslpersonalityssl: '',
      nstlsallowclientrenegotiation: true,
      // Original config Settings
      _securityEnabled: false,
      _requireSecureBinds: false,
      _secureListenhost: false,
      _clientAuth: false,
      _checkHostname: false,
      _validateCert: '',
      _sslVersionMin: '',
      _sslVersionMax: '',
      _allowWeakCipher: false,
      _nssslpersonalityssl: '',
      _nssslpersonalityssllist: "",
      _nstlsallowclientrenegotiation: true,
      isServerCertOpen: false
    }; // Server Cert

    this.handleServerCertSelect = (event, selection) => {
      this.setState({
        nssslpersonalityssl: selection,
        isServerCertOpen: false
      });
    };

    this.handleServerCertToggle = isServerCertOpen => {
      this.setState({
        isServerCertOpen
      });
    };

    this.handleServerCertClear = () => {
      this.setState({
        nssslpersonalityssl: '',
        isServerCertOpen: false
      });
    }; // Toggle currently active tab


    this.handleNavSelect = (event, tabIndex) => {
      this.setState({
        activeTabKey: tabIndex
      });
    }; // Select handlers


    this.configChanged = () => {
      // Check if a core/non-select setting was changed
      var _iterator = _createForOfIteratorHelper(configCoreAttrs),
          _step;

      try {
        for (_iterator.s(); !(_step = _iterator.n()).done;) {
          var config_attr = _step.value;

          if (this.state[config_attr] !== this.state['_' + config_attr]) {
            return true;
          }
        }
      } catch (err) {
        _iterator.e(err);
      } finally {
        _iterator.f();
      }

      return false;
    };

    this.handleMinSSLToggle = isMinSSLOpen => {
      this.setState({
        isMinSSLOpen
      });
    };

    this.handleMinSSLSelect = (event, selection, isPlaceholder) => {
      var disableSaveBtn = !this.configChanged(); // Check if a setting was changed, if so enable the save button

      if (this.state._sslVersionMin !== selection) {
        disableSaveBtn = false;
      }

      this.setState({
        sslVersionMin: selection,
        isMinSSLOpen: false,
        disableSaveBtn: disableSaveBtn
      });
    };

    this.handleMaxSSLToggle = isMaxSSLOpen => {
      this.setState({
        isMaxSSLOpen
      });
    };

    this.handleMaxSSLSelect = (event, selection, isPlaceholder) => {
      var disableSaveBtn = !this.configChanged(); // Check if a setting was changed, if so enable the save button

      if (this.state._sslVersionMax !== selection) {
        disableSaveBtn = false;
      }

      this.setState({
        sslVersionMax: selection,
        isMaxSSLOpen: false,
        disableSaveBtn: disableSaveBtn
      });
    };

    this.handleClientAuthToggle = isClientAuthOpen => {
      this.setState({
        isClientAuthOpen
      });
    };

    this.handleClientAuthSelect = (event, selection, isPlaceholder) => {
      var disableSaveBtn = !this.configChanged(); // Check if a setting was changed, if so enable the save button

      if (this.state._clientAuth !== selection) {
        disableSaveBtn = false;
      }

      this.setState({
        clientAuth: selection,
        isClientAuthOpen: false,
        disableSaveBtn: disableSaveBtn
      });
    };

    this.handleValidateCertToggle = isValidateCertOpen => {
      this.setState({
        isValidateCertOpen
      });
    };

    this.handleValidateCertSelect = (event, selection, isPlaceholder) => {
      var disableSaveBtn = !this.configChanged(); // Check if a setting was changed, if so enable the save button

      if (this.state._validateCert !== selection) {
        disableSaveBtn = false;
      }

      this.setState({
        validateCert: selection,
        isValidateCertOpen: false,
        disableSaveBtn: disableSaveBtn
      });
    };

    this.handleChange = this.handleChange.bind(this);
    this.onModalChange = this.onModalChange.bind(this);
    this.handleSwitchChange = this.handleSwitchChange.bind(this);
    this.handleTypeaheadChange = this.handleTypeaheadChange.bind(this);
    this.loadSecurityConfig = this.loadSecurityConfig.bind(this);
    this.loadEnabledCiphers = this.loadEnabledCiphers.bind(this);
    this.loadSupportedCiphers = this.loadSupportedCiphers.bind(this);
    this.loadCerts = this.loadCerts.bind(this);
    this.loadCACerts = this.loadCACerts.bind(this);
    this.closeConfirmDisable = this.closeConfirmDisable.bind(this);
    this.enableSecurity = this.enableSecurity.bind(this);
    this.disableSecurity = this.disableSecurity.bind(this);
    this.saveSecurityConfig = this.saveSecurityConfig.bind(this);
    this.closeSecurityEnableModal = this.closeSecurityEnableModal.bind(this);
    this.handleReloadConfig = this.handleReloadConfig.bind(this);
    this.onSelectToggle = this.onSelectToggle.bind(this);
    this.onSelectClear = this.onSelectClear.bind(this);
    this.handleTypeaheadChange = this.handleTypeaheadChange.bind(this);
  }

  componentDidMount() {
    if (!this.state.loaded) {
      this.setState({
        securityEnabled: true
      }, this.setState({
        securityEnabled: false
      }));
      this.loadSecurityConfig();
    } else {
      this.props.enableTree();
    }
  }

  onModalChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    this.setState({
      [e.target.id]: value
    });
  }

  handleReloadConfig() {
    this.setState({
      loaded: false
    }, this.loadSecurityConfig);
  }

  loadSupportedCiphers() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "ciphers", "list", "--supported"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("loadSupportedCiphers", "Load the security configuration", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      this.setState({
        supportedCiphers: config.items
      }, this.loadEnabledCiphers);
    }).fail(err => {
      var errMsg = JSON.parse(err);
      var msg = errMsg.desc;

      if ('info' in errMsg) {
        msg = errMsg.desc + " - " + errMsg.info;
      }

      this.props.addNotification("error", "Error loading security configuration - ".concat(msg));
    });
  }

  loadEnabledCiphers() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "ciphers", "list", "--enabled"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("loadEnabledCiphers", "Load the security configuration", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      this.setState({
        enabledCiphers: config.items
      }, this.loadCerts);
    }).fail(err => {
      var errMsg = JSON.parse(err);
      var msg = errMsg.desc;

      if ('info' in errMsg) {
        msg = errMsg.desc + " - " + errMsg.info;
      }

      this.props.addNotification("error", "Error loading security configuration - ".concat(msg));
    });
  }

  loadCACerts() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "ca-certificate", "list"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("loadCACerts", "Load certificates", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var certs = JSON.parse(content);
      this.setState(() => ({
        CACerts: certs,
        loaded: true
      }), this.props.enableTree());
    }).fail(err => {
      var errMsg = JSON.parse(err);
      var msg = errMsg.desc;

      if ('info' in errMsg) {
        msg = errMsg.desc + " - " + errMsg.info;
      }

      this.props.addNotification("error", "Error loading CA certificates - ".concat(msg));
    });
  }

  loadCerts() {
    // Set loaded: true
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "certificate", "list"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("loadCerts", "Load certificates", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var certs = JSON.parse(content);
      var certNames = [];

      var _iterator2 = _createForOfIteratorHelper(certs),
          _step2;

      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var cert = _step2.value;
          certNames.push(cert.attrs.nickname);
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }

      this.setState(() => ({
        serverCerts: certs,
        serverCertNames: certNames
      }), this.loadCACerts);
    }).fail(err => {
      var errMsg = JSON.parse(err);
      var msg = errMsg.desc;

      if ('info' in errMsg) {
        msg = errMsg.desc + " - " + errMsg.info;
      }

      this.props.addNotification("error", "Error loading server certificates - ".concat(msg));
    });
  }

  loadRSAConfig() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "rsa", "get"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("loadRSAConfig", "Load the RSA configuration", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var nickname = config.items.nssslpersonalityssl;
      this.setState(() => ({
        nssslpersonalityssl: nickname,
        _nssslpersonalityssl: nickname
      }), this.loadSupportedCiphers);
    }).fail(err => {
      var errMsg = JSON.parse(err);
      var msg = errMsg.desc;

      if ('info' in errMsg) {
        msg = errMsg.desc + " - " + errMsg.info;
      }

      this.props.addNotification("error", "Error loading security RSA configuration - ".concat(msg));
    });
  }

  loadSecurityConfig(saving) {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "get"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("loadSecurityConfig", "Load the security configuration", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var attrs = config.items;
      var secEnabled = false;
      var secReqSecBinds = false;
      var clientAuth = "allowed";
      var validateCert = "warn";
      var cipherPref = "default";
      var allowWeak = false;
      var renegot = true;

      if ('nstlsallowclientrenegotiation' in config.items) {
        if (config.items.nstlsallowclientrenegotiation === "off") {
          renegot = false;
        }
      }

      if ('nsslapd-security' in attrs) {
        if (attrs['nsslapd-security'].toLowerCase() === "on") {
          secEnabled = true;
        }
      }

      if ('nsslapd-require-secure-binds' in attrs) {
        if (attrs['nsslapd-require-secure-binds'].toLowerCase() === "on") {
          secReqSecBinds = true;
        }
      }

      if ('nssslclientauth' in attrs) {
        if (attrs.nssslclientauth !== "") {
          clientAuth = attrs.nssslclientauth;
        }
      }

      if ('nsslapd-validate-cert' in attrs) {
        if (attrs['nsslapd-validate-cert'] !== "") {
          validateCert = attrs['nsslapd-validate-cert'].toLowerCase();
        }
      }

      if ('allowweakcipher' in attrs) {
        if (attrs.allowweakcipher.toLowerCase() === "on") {
          allowWeak = true;
        }
      }

      if ('nsssl3ciphers' in attrs) {
        if (attrs.nsssl3ciphers !== "") {
          cipherPref = attrs.nsssl3ciphers;
        }
      }

      this.setState(() => ({
        securityEnabled: secEnabled,
        requireSecureBinds: secReqSecBinds,
        secureListenhost: attrs['nsslapd-securelistenhost'],
        clientAuth: clientAuth,
        checkHostname: attrs['nsslapd-ssl-check-hostname'],
        validateCert: validateCert,
        sslVersionMin: attrs.sslversionmin,
        sslVersionMax: attrs.sslversionmax,
        allowWeakCipher: allowWeak,
        cipherPref: cipherPref,
        nstlsallowclientrenegotiation: renegot,
        _nstlsallowclientrenegotiation: renegot,
        _securityEnabled: secEnabled,
        _requireSecureBinds: secReqSecBinds,
        _secureListenhost: attrs['nsslapd-securelistenhost'],
        _clientAuth: clientAuth,
        _checkHostname: attrs['nsslapd-ssl-check-hostname'],
        _validateCert: validateCert,
        _sslVersionMin: attrs.sslversionmin,
        _sslVersionMax: attrs.sslversionmax,
        _allowWeakCipher: allowWeak
      }), function () {
        if (!saving) {
          this.loadRSAConfig();
        }
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      var msg = errMsg.desc;

      if ('info' in errMsg) {
        msg = errMsg.desc + " - " + errMsg.info;
      }

      this.props.addNotification("error", "Error loading security configuration - ".concat(msg));
    });
  }

  handleSwitchChange(value) {
    if (!value) {
      // We are disabling security, ask for confirmation
      this.setState({
        showConfirmDisable: true
      });
    } else {
      // Check if we have certs, if we do make the user choose one from dropdown list, otherwise reject the
      // enablement
      if (this.state.serverCerts.length > 0) {
        this.setState({
          primaryCertName: this.state.nssslpersonalityssl,
          showSecurityEnableModal: true
        });
      } else {
        this.props.addNotification("error", "There must be at least one server certificate present in the security database to enable security");
      }
    }
  }

  closeSecurityEnableModal() {
    this.setState({
      showSecurityEnableModal: false
    });
  }

  onSecEnableChange(e) {
    var value = e.target.value.trim();
    this.setState({
      primaryCertName: value
    });
  }

  closeConfirmDisable() {
    this.setState({
      showConfirmDisable: false
    });
  }

  enableSecurity() {
    /* start the spinner */
    this.setState({
      secEnableSpinner: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "enable"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("enableSecurity", "Enable security", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(() => {
      this.props.addNotification("success", "Successfully enabled security.");
      this.props.addNotification("warning", "You must restart the Directory Server for these changes to take effect.");
      this.setState({
        securityEnabled: true,
        secEnableSpinner: false,
        showSecurityEnableModal: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      var msg = errMsg.desc;

      if ('info' in errMsg) {
        msg = errMsg.desc + " - " + errMsg.info;
      }

      this.props.addNotification("error", "Error enabling security - ".concat(msg));
      this.setState({
        secEnableSpinner: false,
        showSecurityEnableModal: false
      });
    });
  }

  disableSecurity() {
    this.setState({
      modalSpinning: true
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "security", "disable"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("disableSecurity", "Disable security", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(() => {
      this.props.addNotification("success", "Successfully disabled security.");
      this.props.addNotification("warning", "You must restart the Directory Server for these changes to take effect.");
      this.setState({
        securityEnabled: false,
        modalSpinning: false,
        showConfirmDisable: false
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      var msg = errMsg.desc;

      if ('info' in errMsg) {
        msg = errMsg.desc + " - " + errMsg.info;
      }

      this.props.addNotification("error", "Error disabling security - ".concat(msg));
      this.setState({
        modalSpinning: false,
        showConfirmDisable: false
      });
    });
  }

  saveSecurityConfig() {
    // Validate some setting first
    var sslMin = this.state._sslVersionMin;
    var sslMax = this.state._sslVersionMax;

    if (this.state._sslVersionMin !== this.state.sslVersionMin) {
      sslMin = this.state.sslVersionMin;
    }

    if (this.state._sslVersionMax !== this.state.sslVersionMax) {
      sslMax = this.state.sslVersionMax;
    }

    if (sslMin > sslMax) {
      this.props.addNotification("error", "The TLS minimum version must be less than or equal to the TLS maximum version"); // Reset page

      this.loadSecurityConfig();
      return;
    }

    var cmd = ['dsconf', '-j', 'ldapi://%2fvar%2frun%2fslapd-' + this.props.serverId + '.socket', 'security', 'set'];

    if (this.state._validateCert !== this.state.validateCert) {
      cmd.push("--verify-cert-chain-on-startup=" + this.state.validateCert);
    }

    if (this.state._sslVersionMin !== this.state.sslVersionMin) {
      cmd.push("--tls-protocol-min=" + this.state.sslVersionMin);
    }

    if (this.state._sslVersionMax !== this.state.sslVersionMax) {
      cmd.push("--tls-protocol-max=" + this.state.sslVersionMax);
    }

    if (this.state._clientAuth !== this.state.clientAuth) {
      cmd.push("--tls-client-auth=" + this.state.clientAuth);
    }

    if (this.state._secureListenhost !== this.state.secureListenhost) {
      cmd.push("--listen-host=" + this.state.secureListenhost);
    }

    if (this.state._allowWeakCipher !== this.state.allowWeakCipher) {
      var val = "off";

      if (this.state.allowWeakCipher) {
        val = "on";
      }

      cmd.push("--allow-insecure-ciphers=" + val);
    }

    if (this.state._checkHostname !== this.state.checkHostname) {
      var _val = "off";

      if (this.state.checkHostname) {
        _val = "on";
      }

      cmd.push("--check-hostname=" + _val);
    }

    if (this.state._requireSecureBinds !== this.state.requireSecureBinds) {
      var _val2 = "off";

      if (this.state.requireSecureBinds) {
        _val2 = "on";
      }

      cmd.push("--require-secure-authentication=" + _val2);
    }

    if (this.state._nstlsallowclientrenegotiation !== this.state.nstlsallowclientrenegotiation) {
      var _val3 = "off";

      if (this.state.nstlsallowclientrenegotiation) {
        _val3 = "on";
      }

      cmd.push("--tls-client-renegotiation=" + _val3);
    }

    if (cmd.length > 5) {
      (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_3__.log_cmd)("saveSecurityConfig", "Applying security config change", cmd);
      var msg = "Successfully updated security configuration.";
      this.setState({
        // Start the spinner
        saving: true
      });
      cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
        superuser: true,
        err: "message"
      }).done(content => {
        this.loadSecurityConfig(1);
        this.props.addNotification("success", msg);
        this.props.addNotification("warning", "You must restart the Directory Server for these changes to take effect.");
        this.setState({
          saving: false
        });
      }).fail(err => {
        var errMsg = JSON.parse(err);
        this.loadSecurityConfig();
        this.setState({
          saving: false
        });
        var msg = errMsg.desc;

        if ('info' in errMsg) {
          msg = errMsg.desc + " - " + errMsg.info;
        }

        this.props.addNotification("error", "Error updating security configuration - ".concat(msg));
      });
    }
  }

  handleTypeaheadChange(value, collection) {
    this.setState({
      [collection]: [...this.state[collection], value]
    });
  }

  handleChange(e) {
    var value = e.target.type === 'checkbox' ? e.target.checked : e.target.value;
    var attr = e.target.id;
    var disableSaveBtn = true; // Check if a setting was changed, if so enable the save button

    var _iterator3 = _createForOfIteratorHelper(configAttrs),
        _step3;

    try {
      for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
        var config_attr = _step3.value;

        if (attr === config_attr && this.state['_' + config_attr] !== value) {
          disableSaveBtn = false;
          break;
        }
      } // Now check for differences in values that we did not touch

    } catch (err) {
      _iterator3.e(err);
    } finally {
      _iterator3.f();
    }

    var _iterator4 = _createForOfIteratorHelper(configAttrs),
        _step4;

    try {
      for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
        var _config_attr = _step4.value;

        if (attr !== _config_attr && this.state['_' + _config_attr] !== this.state[_config_attr]) {
          disableSaveBtn = false;
          break;
        }
      }
    } catch (err) {
      _iterator4.e(err);
    } finally {
      _iterator4.f();
    }

    this.setState({
      [attr]: value,
      disableSaveBtn: disableSaveBtn
    });
  }

  render() {
    var securityPage = "";
    var serverCert = [this.state.nssslpersonalityssl];
    var saveBtnName = "Save Settings";
    var extraPrimaryProps = {};

    if (this.state.saving) {
      saveBtnName = "Saving settings ...";
      extraPrimaryProps.spinnerAriaValueText = "Loading";
    }

    if (this.state.loaded && !this.state.saving) {
      var configPage = "";

      if (this.state.securityEnabled) {
        configPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
          className: "ds-margin-bottom-md"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_9__.Form, {
          isHorizontal: true,
          autoComplete: "off"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
          title: "This parameter can be used to restrict the Directory Server instance to a single IP interface (hostname, or IP address).  This parameter specifically sets what interface to use for TLS traffic.  Requires restart. (nsslapd-securelistenhost)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
          className: "ds-label",
          span: 3
        }, "Secure Listen Host"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
          span: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_12__.TextInput, {
          value: this.state.secureListenhost,
          type: "text",
          id: "secureListenhost",
          "aria-describedby": "horizontal-form-name-helper",
          name: "server-hostname",
          onChange: (str, e) => {
            this.handleChange(e);
          }
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
          title: "The name, or nickname, of the server certificate inthe NSS database the server should use (nsSSLPersonalitySSL)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
          className: "ds-label",
          span: 3
        }, "Server Certificate Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
          span: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Select, {
          variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.SelectVariant.typeahead,
          typeAheadAriaLabel: "Type a server certificate nickname",
          onToggle: this.handleServerCertToggle,
          onSelect: this.handleServerCertSelect,
          onClear: this.handleServerCertClear,
          selections: serverCert,
          isOpen: this.state.isServerCertOpen,
          "aria-labelledby": "typeAhead-server-cert",
          placeholderText: "Type a sever certificate nickname...",
          noResultsFoundText: "There are no matching entries"
        }, this.state.serverCertNames.map((cert, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
          key: index,
          value: cert
        }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
          title: "The minimum SSL/TLS version the server will accept (sslversionmin)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
          className: "ds-label",
          span: 3
        }, "Minimum TLS Version"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
          span: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Select, {
          variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.SelectVariant.single,
          "aria-label": "Select Input",
          onToggle: this.handleMinSSLToggle,
          onSelect: this.handleMinSSLSelect,
          selections: this.state.sslVersionMin,
          isOpen: this.state.isMinSSLOpen,
          "aria-labelledby": "minssl"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
          key: 1,
          value: "TLS1.3"
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
          key: 2,
          value: "TLS1.2"
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
          key: 3,
          value: "TLS1.1"
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
          key: 4,
          value: "TLS1.0"
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
          key: 5,
          value: "SSL3"
        })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
          title: "The maximum SSL/TLS version the server will accept (sslversionmax)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
          className: "ds-label",
          span: 3
        }, "Maximum TLS Version"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
          span: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Select, {
          variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.SelectVariant.single,
          "aria-label": "Select Input",
          onToggle: this.handleMaxSSLToggle,
          onSelect: this.handleMaxSSLSelect,
          selections: this.state.sslVersionMax,
          isOpen: this.state.isMaxSSLOpen,
          "aria-labelledby": "maxssl"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
          key: 1,
          value: "TLS1.3"
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
          key: 2,
          value: "TLS1.2"
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
          key: 3,
          value: "TLS1.1"
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
          key: 4,
          value: "TLS1.0"
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
          key: 5,
          value: "SSL3"
        })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
          title: "Sets how the Directory Server enforces TLS client authentication (nsSSLClientAuth)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
          className: "ds-label",
          span: 3
        }, "Client Authentication"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
          span: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Select, {
          variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.SelectVariant.single,
          "aria-label": "Select Input",
          onToggle: this.handleClientAuthToggle,
          onSelect: this.handleClientAuthSelect,
          selections: this.state.clientAuth,
          isOpen: this.state.isClientAuthOpen,
          "aria-labelledby": "clientAuth"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
          key: 1,
          value: "off"
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
          key: 2,
          value: "allowed"
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
          key: 3,
          value: "required"
        })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
          title: "Validate server's certificate expiration date (nsslapd-validate-cert)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
          className: "ds-label",
          span: 3
        }, "Validate Certificate"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
          span: 8
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_13__.Select, {
          variant: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_14__.SelectVariant.single,
          "aria-label": "Select Input",
          onToggle: this.handleValidateCertToggle,
          onSelect: this.handleValidateCertSelect,
          selections: this.state.validateCert,
          isOpen: this.state.isValidateCertOpen,
          "aria-labelledby": "validateCert"
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
          key: 1,
          value: "warn"
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
          key: 2,
          value: "on"
        }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_15__.SelectOption, {
          key: 3,
          value: "off"
        })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
          title: "Require all connections use TLS (nsslapd-require-secure-binds)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
          className: "ds-label",
          span: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Checkbox, {
          id: "requireSecureBinds",
          isChecked: this.state.requireSecureBinds,
          onChange: (checked, e) => {
            this.handleChange(e);
          },
          label: "Require Secure Connections"
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
          title: "Verify authenticity of a request by matching the host name against the value assigned to the common name (cn) attribute of the subject name (subjectDN field) in the certificate being presented. (nsslapd-ssl-check-hostname)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
          className: "ds-label",
          span: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Checkbox, {
          id: "checkHostname",
          isChecked: this.state.checkHostname,
          onChange: (checked, e) => {
            this.handleChange(e);
          },
          label: "Verify Certificate Subject Hostname"
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
          title: "Allow weak ciphers (allowWeakCipher)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
          className: "ds-label",
          span: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Checkbox, {
          id: "allowWeakCipher",
          isChecked: this.state.allowWeakCipher,
          onChange: (checked, e) => {
            this.handleChange(e);
          },
          title: "Allow weak ciphers (allowWeakCipher).",
          label: "Allow Weak Ciphers"
        }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
          title: "Allow client-initiated renegotiation (nsTLSAllowClientRenegotiation)."
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
          className: "ds-label",
          span: 4
        }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_16__.Checkbox, {
          id: "nstlsallowclientrenegotiation",
          isChecked: this.state.nstlsallowclientrenegotiation,
          onChange: (checked, e) => {
            this.handleChange(e);
          },
          title: "Allow client-initiated renegotiation (nsTLSAllowClientRenegotiation).",
          label: "Allow Client Renegotiation"
        })))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_17__.Button, _extends({
          variant: "primary",
          className: "ds-margin-top-xlg",
          onClick: () => {
            this.saveSecurityConfig();
          },
          isDisabled: this.state.disableSaveBtn,
          isLoading: this.state.saving,
          spinnerAriaValueText: this.state.saving ? "Saving" : undefined
        }, extraPrimaryProps), saveBtnName));
      }

      securityPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-bottom-md"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        span: 12
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.TextVariants.h3
      }, "Security Settings", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_7__.FontAwesomeIcon, {
        size: "lg",
        className: "ds-left-margin ds-refresh",
        icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_20__.faSyncAlt,
        title: "Refresh settings",
        onClick: this.handleReloadConfig
      }))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-tab-table"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.Tabs, {
        className: "ds-margin-top-xlg",
        activeKey: this.state.activeTabKey,
        onSelect: this.handleNavSelect
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Tab, {
        eventKey: 0,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.TabTitleText, null, "Security Configuration")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_10__.Grid, {
        className: "ds-margin-top-xlg ds-left-indent-md"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_11__.GridItem, {
        className: "ds-label",
        span: 4
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_24__.Switch, {
        id: "simple-switch",
        label: "Security Enabled",
        labelOff: "Security Disabled",
        isChecked: this.state.securityEnabled,
        onChange: this.handleSwitchChange
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("hr", null), configPage)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Tab, {
        eventKey: 1,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.TabTitleText, null, "Certificate Management")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_security_certificateManagement_jsx__WEBPACK_IMPORTED_MODULE_4__.CertificateManagement, {
        serverId: this.props.serverId,
        CACerts: this.state.CACerts,
        ServerCerts: this.state.serverCerts,
        addNotification: this.props.addNotification
      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Tab, {
        eventKey: 2,
        title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.TabTitleText, null, "Cipher Preferences")
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-indent ds-tab-table"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_security_ciphers_jsx__WEBPACK_IMPORTED_MODULE_6__.Ciphers, {
        key: this.state.cipherPref,
        serverId: this.props.serverId,
        supportedCiphers: this.state.supportedCiphers,
        cipherPref: this.state.cipherPref,
        enabledCiphers: this.state.enabledCiphers,
        addNotification: this.props.addNotification,
        reload: this.loadSecurityConfig
      }))))));
    } else {
      securityPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-margin-top-xlg ds-loading-spinner ds-center"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_18__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.Text, {
        component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_19__.TextVariants.h3
      }, "Loading Security Information ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_25__.Spinner, {
        className: "ds-margin-top-lg",
        size: "lg"
      }));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: this.state.saving ? "ds-disabled" : ""
    }, securityPage, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_notifications_jsx__WEBPACK_IMPORTED_MODULE_2__.DoubleConfirmModal, {
      showModal: this.state.showConfirmDisable,
      closeHandler: this.closeConfirmDisable,
      handleChange: this.onModalChange,
      actionHandler: this.disableSecurity,
      spinning: this.state.modalSpinning,
      item: "Requires server restart to take effect.",
      checked: this.state.modalChecked,
      mTitle: "Disable Security",
      mMsg: "Are you sure you want to disable security?",
      mSpinningMsg: "Disabling ...",
      mBtnName: "Disable"
    }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_security_securityModals_jsx__WEBPACK_IMPORTED_MODULE_5__.SecurityEnableModal, {
      showModal: this.state.showSecurityEnableModal,
      closeHandler: this.closeSecurityEnableModal,
      handleChange: this.onSecEnableChange,
      saveHandler: this.enableSecurity,
      primaryName: this.state.primaryCertName,
      certs: this.state.serverCerts,
      spinning: this.state.secEnableSpinner
    }));
  }

} // Props and defaultProps

Security.propTypes = {
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().func),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_26___default().string)
};
Security.defaultProps = {
  serverId: ""
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Security);

/***/ }),

/***/ "./src/server.jsx":
/*!************************!*\
  !*** ./src/server.jsx ***!
  \************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Server": () => (/* binding */ Server)
/* harmony export */ });
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cockpit */ "cockpit");
/* harmony import */ var cockpit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cockpit__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lib/tools.jsx */ "./src/lib/tools.jsx");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_24__);
/* harmony import */ var _lib_server_settings_jsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lib/server/settings.jsx */ "./src/lib/server/settings.jsx");
/* harmony import */ var _lib_server_tuning_jsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lib/server/tuning.jsx */ "./src/lib/server/tuning.jsx");
/* harmony import */ var _lib_server_sasl_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lib/server/sasl.jsx */ "./src/lib/server/sasl.jsx");
/* harmony import */ var _lib_server_ldapi_jsx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./lib/server/ldapi.jsx */ "./src/lib/server/ldapi.jsx");
/* harmony import */ var _lib_server_accessLog_jsx__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./lib/server/accessLog.jsx */ "./src/lib/server/accessLog.jsx");
/* harmony import */ var _lib_server_auditLog_jsx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./lib/server/auditLog.jsx */ "./src/lib/server/auditLog.jsx");
/* harmony import */ var _lib_server_auditfailLog_jsx__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./lib/server/auditfailLog.jsx */ "./src/lib/server/auditfailLog.jsx");
/* harmony import */ var _lib_server_errorLog_jsx__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./lib/server/errorLog.jsx */ "./src/lib/server/errorLog.jsx");
/* harmony import */ var _security_jsx__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./security.jsx */ "./src/security.jsx");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/TextContent.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Text/Text.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/Spinner/Spinner.js");
/* harmony import */ var _patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @patternfly/react-core */ "./node_modules/@patternfly/react-core/dist/esm/components/TreeView/TreeView.js");
/* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "./node_modules/@fortawesome/react-fontawesome/index.es.js");
/* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "./node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/cog-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/tachometer-alt-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/lock-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/route-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/key-icon.js");
/* harmony import */ var _patternfly_react_icons__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @patternfly/react-icons */ "./node_modules/@patternfly/react-icons/dist/esm/icons/catalog-icon.js");

















class Server extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
  constructor(props) {
    super(props);
    this.state = {
      firstLoad: true,
      nodes: [],
      node_name: "settings-config",
      node_text: "",
      attrs: [],
      loaded: false,
      disableTree: false,
      activeItems: [{
        name: "Server Settings",
        id: "settings-config",
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_13__.CogIcon, null)
      }]
    };
    this.loadTree = this.loadTree.bind(this);
    this.reloadConfig = this.reloadConfig.bind(this);
    this.enableTree = this.enableTree.bind(this);
    this.handleTreeClick = this.handleTreeClick.bind(this);
  }

  componentDidUpdate() {
    if (this.props.wasActiveList.includes(1)) {
      if (this.state.firstLoad) {
        this.loadConfig();
      }
    }
  }

  enableTree() {
    this.setState({
      disableTree: false
    });
  }

  loadConfig() {
    this.setState({
      loaded: false,
      firstLoad: false
    });
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("loadConfig", "Load server configuration", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var attrs = config.attrs;
      this.setState({
        loaded: true,
        attrs: attrs
      }, this.loadTree());
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.setState({
        loaded: true
      });
      this.props.addNotification("error", "Error loading server configuration - ".concat(errMsg.desc));
    });
  }

  reloadConfig() {
    var cmd = ["dsconf", "-j", "ldapi://%2fvar%2frun%2fslapd-" + this.props.serverId + ".socket", "config", "get"];
    (0,_lib_tools_jsx__WEBPACK_IMPORTED_MODULE_2__.log_cmd)("reloadConfig", "Reload server configuration", cmd);
    cockpit__WEBPACK_IMPORTED_MODULE_0___default().spawn(cmd, {
      superuser: true,
      err: "message"
    }).done(content => {
      var config = JSON.parse(content);
      var attrs = config.attrs;
      this.setState({
        attrs: attrs
      });
    }).fail(err => {
      var errMsg = JSON.parse(err);
      this.props.addNotification("error", "Error reloading server configuration - ".concat(errMsg.desc));
    });
  }

  loadTree() {
    var basicData = [{
      name: "Server Settings",
      id: "settings-config",
      icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_13__.CogIcon, null)
    }, {
      name: "Tuning & Limits",
      icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_14__.TachometerAltIcon, null),
      id: "tuning-config"
    }, {
      name: "Security",
      icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_15__.LockIcon, null),
      id: "security-config"
    }, {
      name: "SASL Settings & Mappings",
      icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_16__.RouteIcon, null),
      id: "sasl-config"
    }, {
      name: "LDAPI & Autobind",
      icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_17__.KeyIcon, null),
      id: "ldapi-config"
    }, {
      name: "Logging",
      icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_icons__WEBPACK_IMPORTED_MODULE_18__.CatalogIcon, null),
      id: "logging-config",
      children: [{
        name: "Access Log",
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_12__.FontAwesomeIcon, {
          size: "sm",
          icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_19__.faBook
        }),
        id: "access-log-config"
      }, {
        name: "Audit Log",
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_12__.FontAwesomeIcon, {
          size: "sm",
          icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_19__.faBook
        }),
        id: "audit-log-config"
      }, {
        name: "Audit Failure Log",
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_12__.FontAwesomeIcon, {
          size: "sm",
          icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_19__.faBook
        }),
        id: "auditfail-log-config"
      }, {
        name: "Errors Log",
        icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_12__.FontAwesomeIcon, {
          size: "sm",
          icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_19__.faBook
        }),
        id: "error-log-config"
      }],
      defaultExpanded: true
    }];
    this.setState({
      nodes: basicData,
      node_name: this.state.node_name
    });
  }

  handleTreeClick(evt, treeViewItem, parentItem) {
    if (treeViewItem.id !== "logging-config" && treeViewItem.id !== this.state.node_name) {
      this.setState({
        activeItems: [treeViewItem, parentItem],
        node_name: treeViewItem.id,
        disableTree: true // Disable the tree to allow node to be fully loaded

      });
    }
  }

  render() {
    var nodes = this.state.nodes;
    var serverPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
      className: "ds-margin-top-xlg ds-center"
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_20__.TextContent, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.Text, {
      component: _patternfly_react_core__WEBPACK_IMPORTED_MODULE_21__.TextVariants.h3
    }, "Loading Server Configuration ...")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_22__.Spinner, {
      className: "ds-margin-top-lg",
      size: "xl"
    }));
    var server_element = "";
    var disabled = "tree-view-container";

    if (this.state.disableTree) {
      disabled = "tree-view-container ds-disabled";
    }

    if (this.state.loaded) {
      if (this.state.node_name === "settings-config" || this.state.node_name === "") {
        server_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_server_settings_jsx__WEBPACK_IMPORTED_MODULE_3__.ServerSettings, {
          serverId: this.props.serverId,
          attrs: this.state.attrs,
          version: this.props.version,
          enableTree: this.enableTree,
          addNotification: this.props.addNotification
        });
      } else if (this.state.node_name === "tuning-config") {
        server_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_server_tuning_jsx__WEBPACK_IMPORTED_MODULE_4__.ServerTuning, {
          serverId: this.props.serverId,
          attrs: this.state.attrs,
          enableTree: this.enableTree,
          addNotification: this.props.addNotification
        });
      } else if (this.state.node_name === "sasl-config") {
        server_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_server_sasl_jsx__WEBPACK_IMPORTED_MODULE_5__.ServerSASL, {
          serverId: this.props.serverId,
          enableTree: this.enableTree,
          addNotification: this.props.addNotification
        });
      } else if (this.state.node_name === "security-config") {
        server_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_security_jsx__WEBPACK_IMPORTED_MODULE_11__.Security, {
          addNotification: this.props.addNotification,
          serverId: this.props.serverId,
          enableTree: this.enableTree
        });
      } else if (this.state.node_name === "ldapi-config") {
        server_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_server_ldapi_jsx__WEBPACK_IMPORTED_MODULE_6__.ServerLDAPI, {
          serverId: this.props.serverId,
          attrs: this.state.attrs,
          enableTree: this.enableTree,
          addNotification: this.props.addNotification
        });
      } else if (this.state.node_name === "access-log-config") {
        server_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_server_accessLog_jsx__WEBPACK_IMPORTED_MODULE_7__.ServerAccessLog, {
          serverId: this.props.serverId,
          attrs: this.state.attrs,
          enableTree: this.enableTree,
          addNotification: this.props.addNotification
        });
      } else if (this.state.node_name === "audit-log-config") {
        server_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_server_auditLog_jsx__WEBPACK_IMPORTED_MODULE_8__.ServerAuditLog, {
          serverId: this.props.serverId,
          attrs: this.state.attrs,
          enableTree: this.enableTree,
          addNotification: this.props.addNotification
        });
      } else if (this.state.node_name === "auditfail-log-config") {
        server_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_server_auditfailLog_jsx__WEBPACK_IMPORTED_MODULE_9__.ServerAuditFailLog, {
          serverId: this.props.serverId,
          attrs: this.state.attrs,
          enableTree: this.enableTree,
          addNotification: this.props.addNotification
        });
      } else if (this.state.node_name === "error-log-config") {
        server_element = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_lib_server_errorLog_jsx__WEBPACK_IMPORTED_MODULE_10__.ServerErrorLog, {
          serverId: this.props.serverId,
          attrs: this.state.attrs,
          enableTree: this.enableTree,
          addNotification: this.props.addNotification
        });
      }

      serverPage = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "container-fluid"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-container"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-tree"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: disabled,
        id: "server-tree"
      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_patternfly_react_core__WEBPACK_IMPORTED_MODULE_23__.TreeView, {
        data: nodes,
        activeItems: this.state.activeItems,
        onSelect: this.handleTreeClick
      }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
        className: "ds-tree-content"
      }, server_element)));
    }

    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, serverPage);
  }

} // Property types and defaults

Server.propTypes = {
  addNotification: (prop_types__WEBPACK_IMPORTED_MODULE_24___default().func),
  serverId: (prop_types__WEBPACK_IMPORTED_MODULE_24___default().string)
};
Server.defaultProps = {
  serverId: ""
};

/***/ }),

/***/ "./node_modules/d3-array/src/array.js":
/*!********************************************!*\
  !*** ./node_modules/d3-array/src/array.js ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "slice": () => (/* binding */ slice),
/* harmony export */   "map": () => (/* binding */ map)
/* harmony export */ });
var array = Array.prototype;

var slice = array.slice;
var map = array.map;


/***/ }),

/***/ "./node_modules/d3-array/src/ascending.js":
/*!************************************************!*\
  !*** ./node_modules/d3-array/src/ascending.js ***!
  \************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(a, b) {
  return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
}


/***/ }),

/***/ "./node_modules/d3-array/src/bisect.js":
/*!*********************************************!*\
  !*** ./node_modules/d3-array/src/bisect.js ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "bisectRight": () => (/* binding */ bisectRight),
/* harmony export */   "bisectLeft": () => (/* binding */ bisectLeft),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending */ "./node_modules/d3-array/src/ascending.js");
/* harmony import */ var _bisector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./bisector */ "./node_modules/d3-array/src/bisector.js");



var ascendingBisect = (0,_bisector__WEBPACK_IMPORTED_MODULE_1__["default"])(_ascending__WEBPACK_IMPORTED_MODULE_0__["default"]);
var bisectRight = ascendingBisect.right;
var bisectLeft = ascendingBisect.left;
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (bisectRight);


/***/ }),

/***/ "./node_modules/d3-array/src/bisector.js":
/*!***********************************************!*\
  !*** ./node_modules/d3-array/src/bisector.js ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending */ "./node_modules/d3-array/src/ascending.js");


/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(compare) {
  if (compare.length === 1) compare = ascendingComparator(compare);
  return {
    left: function(a, x, lo, hi) {
      if (lo == null) lo = 0;
      if (hi == null) hi = a.length;
      while (lo < hi) {
        var mid = lo + hi >>> 1;
        if (compare(a[mid], x) < 0) lo = mid + 1;
        else hi = mid;
      }
      return lo;
    },
    right: function(a, x, lo, hi) {
      if (lo == null) lo = 0;
      if (hi == null) hi = a.length;
      while (lo < hi) {
        var mid = lo + hi >>> 1;
        if (compare(a[mid], x) > 0) hi = mid;
        else lo = mid + 1;
      }
      return lo;
    }
  };
}

function ascendingComparator(f) {
  return function(d, x) {
    return (0,_ascending__WEBPACK_IMPORTED_MODULE_0__["default"])(f(d), x);
  };
}


/***/ }),

/***/ "./node_modules/d3-array/src/constant.js":
/*!***********************************************!*\
  !*** ./node_modules/d3-array/src/constant.js ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(x) {
  return function() {
    return x;
  };
}


/***/ }),

/***/ "./node_modules/d3-array/src/cross.js":
/*!********************************************!*\
  !*** ./node_modules/d3-array/src/cross.js ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _pairs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pairs */ "./node_modules/d3-array/src/pairs.js");


/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(values0, values1, reduce) {
  var n0 = values0.length,
      n1 = values1.length,
      values = new Array(n0 * n1),
      i0,
      i1,
      i,
      value0;

  if (reduce == null) reduce = _pairs__WEBPACK_IMPORTED_MODULE_0__.pair;

  for (i0 = i = 0; i0 < n0; ++i0) {
    for (value0 = values0[i0], i1 = 0; i1 < n1; ++i1, ++i) {
      values[i] = reduce(value0, values1[i1]);
    }
  }

  return values;
}


/***/ }),

/***/ "./node_modules/d3-array/src/descending.js":
/*!*************************************************!*\
  !*** ./node_modules/d3-array/src/descending.js ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(a, b) {
  return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
}


/***/ }),

/***/ "./node_modules/d3-array/src/deviation.js":
/*!************************************************!*\
  !*** ./node_modules/d3-array/src/deviation.js ***!
  \************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _variance__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./variance */ "./node_modules/d3-array/src/variance.js");


/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(array, f) {
  var v = (0,_variance__WEBPACK_IMPORTED_MODULE_0__["default"])(array, f);
  return v ? Math.sqrt(v) : v;
}


/***/ }),

/***/ "./node_modules/d3-array/src/extent.js":
/*!*********************************************!*\
  !*** ./node_modules/d3-array/src/extent.js ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(values, valueof) {
  var n = values.length,
      i = -1,
      value,
      min,
      max;

  if (valueof == null) {
    while (++i < n) { // Find the first comparable value.
      if ((value = values[i]) != null && value >= value) {
        min = max = value;
        while (++i < n) { // Compare the remaining values.
          if ((value = values[i]) != null) {
            if (min > value) min = value;
            if (max < value) max = value;
          }
        }
      }
    }
  }

  else {
    while (++i < n) { // Find the first comparable value.
      if ((value = valueof(values[i], i, values)) != null && value >= value) {
        min = max = value;
        while (++i < n) { // Compare the remaining values.
          if ((value = valueof(values[i], i, values)) != null) {
            if (min > value) min = value;
            if (max < value) max = value;
          }
        }
      }
    }
  }

  return [min, max];
}


/***/ }),

/***/ "./node_modules/d3-array/src/histogram.js":
/*!************************************************!*\
  !*** ./node_modules/d3-array/src/histogram.js ***!
  \************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./array */ "./node_modules/d3-array/src/array.js");
/* harmony import */ var _bisect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./bisect */ "./node_modules/d3-array/src/bisect.js");
/* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-array/src/constant.js");
/* harmony import */ var _extent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./extent */ "./node_modules/d3-array/src/extent.js");
/* harmony import */ var _identity__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./identity */ "./node_modules/d3-array/src/identity.js");
/* harmony import */ var _range__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./range */ "./node_modules/d3-array/src/range.js");
/* harmony import */ var _ticks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ticks */ "./node_modules/d3-array/src/ticks.js");
/* harmony import */ var _threshold_sturges__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./threshold/sturges */ "./node_modules/d3-array/src/threshold/sturges.js");









/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {
  var value = _identity__WEBPACK_IMPORTED_MODULE_4__["default"],
      domain = _extent__WEBPACK_IMPORTED_MODULE_3__["default"],
      threshold = _threshold_sturges__WEBPACK_IMPORTED_MODULE_7__["default"];

  function histogram(data) {
    var i,
        n = data.length,
        x,
        values = new Array(n);

    for (i = 0; i < n; ++i) {
      values[i] = value(data[i], i, data);
    }

    var xz = domain(values),
        x0 = xz[0],
        x1 = xz[1],
        tz = threshold(values, x0, x1);

    // Convert number of thresholds into uniform thresholds.
    if (!Array.isArray(tz)) {
      tz = (0,_ticks__WEBPACK_IMPORTED_MODULE_6__.tickStep)(x0, x1, tz);
      tz = (0,_range__WEBPACK_IMPORTED_MODULE_5__["default"])(Math.ceil(x0 / tz) * tz, x1, tz); // exclusive
    }

    // Remove any thresholds outside the domain.
    var m = tz.length;
    while (tz[0] <= x0) tz.shift(), --m;
    while (tz[m - 1] > x1) tz.pop(), --m;

    var bins = new Array(m + 1),
        bin;

    // Initialize bins.
    for (i = 0; i <= m; ++i) {
      bin = bins[i] = [];
      bin.x0 = i > 0 ? tz[i - 1] : x0;
      bin.x1 = i < m ? tz[i] : x1;
    }

    // Assign data to bins by value, ignoring any outside the domain.
    for (i = 0; i < n; ++i) {
      x = values[i];
      if (x0 <= x && x <= x1) {
        bins[(0,_bisect__WEBPACK_IMPORTED_MODULE_1__["default"])(tz, x, 0, m)].push(data[i]);
      }
    }

    return bins;
  }

  histogram.value = function(_) {
    return arguments.length ? (value = typeof _ === "function" ? _ : (0,_constant__WEBPACK_IMPORTED_MODULE_2__["default"])(_), histogram) : value;
  };

  histogram.domain = function(_) {
    return arguments.length ? (domain = typeof _ === "function" ? _ : (0,_constant__WEBPACK_IMPORTED_MODULE_2__["default"])([_[0], _[1]]), histogram) : domain;
  };

  histogram.thresholds = function(_) {
    return arguments.length ? (threshold = typeof _ === "function" ? _ : Array.isArray(_) ? (0,_constant__WEBPACK_IMPORTED_MODULE_2__["default"])(_array__WEBPACK_IMPORTED_MODULE_0__.slice.call(_)) : (0,_constant__WEBPACK_IMPORTED_MODULE_2__["default"])(_), histogram) : threshold;
  };

  return histogram;
}


/***/ }),

/***/ "./node_modules/d3-array/src/identity.js":
/*!***********************************************!*\
  !*** ./node_modules/d3-array/src/identity.js ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(x) {
  return x;
}


/***/ }),

/***/ "./node_modules/d3-array/src/index.js":
/*!********************************************!*\
  !*** ./node_modules/d3-array/src/index.js ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "bisect": () => (/* reexport safe */ _bisect__WEBPACK_IMPORTED_MODULE_0__["default"]),
/* harmony export */   "bisectRight": () => (/* reexport safe */ _bisect__WEBPACK_IMPORTED_MODULE_0__.bisectRight),
/* harmony export */   "bisectLeft": () => (/* reexport safe */ _bisect__WEBPACK_IMPORTED_MODULE_0__.bisectLeft),
/* harmony export */   "ascending": () => (/* reexport safe */ _ascending__WEBPACK_IMPORTED_MODULE_1__["default"]),
/* harmony export */   "bisector": () => (/* reexport safe */ _bisector__WEBPACK_IMPORTED_MODULE_2__["default"]),
/* harmony export */   "cross": () => (/* reexport safe */ _cross__WEBPACK_IMPORTED_MODULE_3__["default"]),
/* harmony export */   "descending": () => (/* reexport safe */ _descending__WEBPACK_IMPORTED_MODULE_4__["default"]),
/* harmony export */   "deviation": () => (/* reexport safe */ _deviation__WEBPACK_IMPORTED_MODULE_5__["default"]),
/* harmony export */   "extent": () => (/* reexport safe */ _extent__WEBPACK_IMPORTED_MODULE_6__["default"]),
/* harmony export */   "histogram": () => (/* reexport safe */ _histogram__WEBPACK_IMPORTED_MODULE_7__["default"]),
/* harmony export */   "thresholdFreedmanDiaconis": () => (/* reexport safe */ _threshold_freedmanDiaconis__WEBPACK_IMPORTED_MODULE_8__["default"]),
/* harmony export */   "thresholdScott": () => (/* reexport safe */ _threshold_scott__WEBPACK_IMPORTED_MODULE_9__["default"]),
/* harmony export */   "thresholdSturges": () => (/* reexport safe */ _threshold_sturges__WEBPACK_IMPORTED_MODULE_10__["default"]),
/* harmony export */   "max": () => (/* reexport safe */ _max__WEBPACK_IMPORTED_MODULE_11__["default"]),
/* harmony export */   "mean": () => (/* reexport safe */ _mean__WEBPACK_IMPORTED_MODULE_12__["default"]),
/* harmony export */   "median": () => (/* reexport safe */ _median__WEBPACK_IMPORTED_MODULE_13__["default"]),
/* harmony export */   "merge": () => (/* reexport safe */ _merge__WEBPACK_IMPORTED_MODULE_14__["default"]),
/* harmony export */   "min": () => (/* reexport safe */ _min__WEBPACK_IMPORTED_MODULE_15__["default"]),
/* harmony export */   "pairs": () => (/* reexport safe */ _pairs__WEBPACK_IMPORTED_MODULE_16__["default"]),
/* harmony export */   "permute": () => (/* reexport safe */ _permute__WEBPACK_IMPORTED_MODULE_17__["default"]),
/* harmony export */   "quantile": () => (/* reexport safe */ _quantile__WEBPACK_IMPORTED_MODULE_18__["default"]),
/* harmony export */   "range": () => (/* reexport safe */ _range__WEBPACK_IMPORTED_MODULE_19__["default"]),
/* harmony export */   "scan": () => (/* reexport safe */ _scan__WEBPACK_IMPORTED_MODULE_20__["default"]),
/* harmony export */   "shuffle": () => (/* reexport safe */ _shuffle__WEBPACK_IMPORTED_MODULE_21__["default"]),
/* harmony export */   "sum": () => (/* reexport safe */ _sum__WEBPACK_IMPORTED_MODULE_22__["default"]),
/* harmony export */   "ticks": () => (/* reexport safe */ _ticks__WEBPACK_IMPORTED_MODULE_23__["default"]),
/* harmony export */   "tickIncrement": () => (/* reexport safe */ _ticks__WEBPACK_IMPORTED_MODULE_23__.tickIncrement),
/* harmony export */   "tickStep": () => (/* reexport safe */ _ticks__WEBPACK_IMPORTED_MODULE_23__.tickStep),
/* harmony export */   "transpose": () => (/* reexport safe */ _transpose__WEBPACK_IMPORTED_MODULE_24__["default"]),
/* harmony export */   "variance": () => (/* reexport safe */ _variance__WEBPACK_IMPORTED_MODULE_25__["default"]),
/* harmony export */   "zip": () => (/* reexport safe */ _zip__WEBPACK_IMPORTED_MODULE_26__["default"])
/* harmony export */ });
/* harmony import */ var _bisect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./bisect */ "./node_modules/d3-array/src/bisect.js");
/* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending */ "./node_modules/d3-array/src/ascending.js");
/* harmony import */ var _bisector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./bisector */ "./node_modules/d3-array/src/bisector.js");
/* harmony import */ var _cross__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./cross */ "./node_modules/d3-array/src/cross.js");
/* harmony import */ var _descending__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./descending */ "./node_modules/d3-array/src/descending.js");
/* harmony import */ var _deviation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./deviation */ "./node_modules/d3-array/src/deviation.js");
/* harmony import */ var _extent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./extent */ "./node_modules/d3-array/src/extent.js");
/* harmony import */ var _histogram__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./histogram */ "./node_modules/d3-array/src/histogram.js");
/* harmony import */ var _threshold_freedmanDiaconis__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./threshold/freedmanDiaconis */ "./node_modules/d3-array/src/threshold/freedmanDiaconis.js");
/* harmony import */ var _threshold_scott__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./threshold/scott */ "./node_modules/d3-array/src/threshold/scott.js");
/* harmony import */ var _threshold_sturges__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./threshold/sturges */ "./node_modules/d3-array/src/threshold/sturges.js");
/* harmony import */ var _max__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./max */ "./node_modules/d3-array/src/max.js");
/* harmony import */ var _mean__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./mean */ "./node_modules/d3-array/src/mean.js");
/* harmony import */ var _median__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./median */ "./node_modules/d3-array/src/median.js");
/* harmony import */ var _merge__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./merge */ "./node_modules/d3-array/src/merge.js");
/* harmony import */ var _min__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./min */ "./node_modules/d3-array/src/min.js");
/* harmony import */ var _pairs__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./pairs */ "./node_modules/d3-array/src/pairs.js");
/* harmony import */ var _permute__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./permute */ "./node_modules/d3-array/src/permute.js");
/* harmony import */ var _quantile__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./quantile */ "./node_modules/d3-array/src/quantile.js");
/* harmony import */ var _range__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./range */ "./node_modules/d3-array/src/range.js");
/* harmony import */ var _scan__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./scan */ "./node_modules/d3-array/src/scan.js");
/* harmony import */ var _shuffle__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./shuffle */ "./node_modules/d3-array/src/shuffle.js");
/* harmony import */ var _sum__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./sum */ "./node_modules/d3-array/src/sum.js");
/* harmony import */ var _ticks__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./ticks */ "./node_modules/d3-array/src/ticks.js");
/* harmony import */ var _transpose__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./transpose */ "./node_modules/d3-array/src/transpose.js");
/* harmony import */ var _variance__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./variance */ "./node_modules/d3-array/src/variance.js");
/* harmony import */ var _zip__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./zip */ "./node_modules/d3-array/src/zip.js");





























/***/ }),

/***/ "./node_modules/d3-array/src/max.js":
/*!******************************************!*\
  !*** ./node_modules/d3-array/src/max.js ***!
  \******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(values, valueof) {
  var n = values.length,
      i = -1,
      value,
      max;

  if (valueof == null) {
    while (++i < n) { // Find the first comparable value.
      if ((value = values[i]) != null && value >= value) {
        max = value;
        while (++i < n) { // Compare the remaining values.
          if ((value = values[i]) != null && value > max) {
            max = value;
          }
        }
      }
    }
  }

  else {
    while (++i < n) { // Find the first comparable value.
      if ((value = valueof(values[i], i, values)) != null && value >= value) {
        max = value;
        while (++i < n) { // Compare the remaining values.
          if ((value = valueof(values[i], i, values)) != null && value > max) {
            max = value;
          }
        }
      }
    }
  }

  return max;
}


/***/ }),

/***/ "./node_modules/d3-array/src/mean.js":
/*!*******************************************!*\
  !*** ./node_modules/d3-array/src/mean.js ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./number */ "./node_modules/d3-array/src/number.js");


/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(values, valueof) {
  var n = values.length,
      m = n,
      i = -1,
      value,
      sum = 0;

  if (valueof == null) {
    while (++i < n) {
      if (!isNaN(value = (0,_number__WEBPACK_IMPORTED_MODULE_0__["default"])(values[i]))) sum += value;
      else --m;
    }
  }

  else {
    while (++i < n) {
      if (!isNaN(value = (0,_number__WEBPACK_IMPORTED_MODULE_0__["default"])(valueof(values[i], i, values)))) sum += value;
      else --m;
    }
  }

  if (m) return sum / m;
}


/***/ }),

/***/ "./node_modules/d3-array/src/median.js":
/*!*********************************************!*\
  !*** ./node_modules/d3-array/src/median.js ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending */ "./node_modules/d3-array/src/ascending.js");
/* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./number */ "./node_modules/d3-array/src/number.js");
/* harmony import */ var _quantile__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./quantile */ "./node_modules/d3-array/src/quantile.js");




/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(values, valueof) {
  var n = values.length,
      i = -1,
      value,
      numbers = [];

  if (valueof == null) {
    while (++i < n) {
      if (!isNaN(value = (0,_number__WEBPACK_IMPORTED_MODULE_1__["default"])(values[i]))) {
        numbers.push(value);
      }
    }
  }

  else {
    while (++i < n) {
      if (!isNaN(value = (0,_number__WEBPACK_IMPORTED_MODULE_1__["default"])(valueof(values[i], i, values)))) {
        numbers.push(value);
      }
    }
  }

  return (0,_quantile__WEBPACK_IMPORTED_MODULE_2__["default"])(numbers.sort(_ascending__WEBPACK_IMPORTED_MODULE_0__["default"]), 0.5);
}


/***/ }),

/***/ "./node_modules/d3-array/src/merge.js":
/*!********************************************!*\
  !*** ./node_modules/d3-array/src/merge.js ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(arrays) {
  var n = arrays.length,
      m,
      i = -1,
      j = 0,
      merged,
      array;

  while (++i < n) j += arrays[i].length;
  merged = new Array(j);

  while (--n >= 0) {
    array = arrays[n];
    m = array.length;
    while (--m >= 0) {
      merged[--j] = array[m];
    }
  }

  return merged;
}


/***/ }),

/***/ "./node_modules/d3-array/src/min.js":
/*!******************************************!*\
  !*** ./node_modules/d3-array/src/min.js ***!
  \******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(values, valueof) {
  var n = values.length,
      i = -1,
      value,
      min;

  if (valueof == null) {
    while (++i < n) { // Find the first comparable value.
      if ((value = values[i]) != null && value >= value) {
        min = value;
        while (++i < n) { // Compare the remaining values.
          if ((value = values[i]) != null && min > value) {
            min = value;
          }
        }
      }
    }
  }

  else {
    while (++i < n) { // Find the first comparable value.
      if ((value = valueof(values[i], i, values)) != null && value >= value) {
        min = value;
        while (++i < n) { // Compare the remaining values.
          if ((value = valueof(values[i], i, values)) != null && min > value) {
            min = value;
          }
        }
      }
    }
  }

  return min;
}


/***/ }),

/***/ "./node_modules/d3-array/src/number.js":
/*!*********************************************!*\
  !*** ./node_modules/d3-array/src/number.js ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(x) {
  return x === null ? NaN : +x;
}


/***/ }),

/***/ "./node_modules/d3-array/src/pairs.js":
/*!********************************************!*\
  !*** ./node_modules/d3-array/src/pairs.js ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   "pair": () => (/* binding */ pair)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(array, f) {
  if (f == null) f = pair;
  var i = 0, n = array.length - 1, p = array[0], pairs = new Array(n < 0 ? 0 : n);
  while (i < n) pairs[i] = f(p, p = array[++i]);
  return pairs;
}

function pair(a, b) {
  return [a, b];
}


/***/ }),

/***/ "./node_modules/d3-array/src/permute.js":
/*!**********************************************!*\
  !*** ./node_modules/d3-array/src/permute.js ***!
  \**********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(array, indexes) {
  var i = indexes.length, permutes = new Array(i);
  while (i--) permutes[i] = array[indexes[i]];
  return permutes;
}


/***/ }),

/***/ "./node_modules/d3-array/src/quantile.js":
/*!***********************************************!*\
  !*** ./node_modules/d3-array/src/quantile.js ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./number */ "./node_modules/d3-array/src/number.js");


/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(values, p, valueof) {
  if (valueof == null) valueof = _number__WEBPACK_IMPORTED_MODULE_0__["default"];
  if (!(n = values.length)) return;
  if ((p = +p) <= 0 || n < 2) return +valueof(values[0], 0, values);
  if (p >= 1) return +valueof(values[n - 1], n - 1, values);
  var n,
      i = (n - 1) * p,
      i0 = Math.floor(i),
      value0 = +valueof(values[i0], i0, values),
      value1 = +valueof(values[i0 + 1], i0 + 1, values);
  return value0 + (value1 - value0) * (i - i0);
}


/***/ }),

/***/ "./node_modules/d3-array/src/range.js":
/*!********************************************!*\
  !*** ./node_modules/d3-array/src/range.js ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(start, stop, step) {
  start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step;

  var i = -1,
      n = Math.max(0, Math.ceil((stop - start) / step)) | 0,
      range = new Array(n);

  while (++i < n) {
    range[i] = start + i * step;
  }

  return range;
}


/***/ }),

/***/ "./node_modules/d3-array/src/scan.js":
/*!*******************************************!*\
  !*** ./node_modules/d3-array/src/scan.js ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending */ "./node_modules/d3-array/src/ascending.js");


/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(values, compare) {
  if (!(n = values.length)) return;
  var n,
      i = 0,
      j = 0,
      xi,
      xj = values[j];

  if (compare == null) compare = _ascending__WEBPACK_IMPORTED_MODULE_0__["default"];

  while (++i < n) {
    if (compare(xi = values[i], xj) < 0 || compare(xj, xj) !== 0) {
      xj = xi, j = i;
    }
  }

  if (compare(xj, xj) === 0) return j;
}


/***/ }),

/***/ "./node_modules/d3-array/src/shuffle.js":
/*!**********************************************!*\
  !*** ./node_modules/d3-array/src/shuffle.js ***!
  \**********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(array, i0, i1) {
  var m = (i1 == null ? array.length : i1) - (i0 = i0 == null ? 0 : +i0),
      t,
      i;

  while (m) {
    i = Math.random() * m-- | 0;
    t = array[m + i0];
    array[m + i0] = array[i + i0];
    array[i + i0] = t;
  }

  return array;
}


/***/ }),

/***/ "./node_modules/d3-array/src/sum.js":
/*!******************************************!*\
  !*** ./node_modules/d3-array/src/sum.js ***!
  \******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(values, valueof) {
  var n = values.length,
      i = -1,
      value,
      sum = 0;

  if (valueof == null) {
    while (++i < n) {
      if (value = +values[i]) sum += value; // Note: zero and null are equivalent.
    }
  }

  else {
    while (++i < n) {
      if (value = +valueof(values[i], i, values)) sum += value;
    }
  }

  return sum;
}


/***/ }),

/***/ "./node_modules/d3-array/src/threshold/freedmanDiaconis.js":
/*!*****************************************************************!*\
  !*** ./node_modules/d3-array/src/threshold/freedmanDiaconis.js ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../array */ "./node_modules/d3-array/src/array.js");
/* harmony import */ var _ascending__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../ascending */ "./node_modules/d3-array/src/ascending.js");
/* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../number */ "./node_modules/d3-array/src/number.js");
/* harmony import */ var _quantile__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../quantile */ "./node_modules/d3-array/src/quantile.js");





/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(values, min, max) {
  values = _array__WEBPACK_IMPORTED_MODULE_0__.map.call(values, _number__WEBPACK_IMPORTED_MODULE_2__["default"]).sort(_ascending__WEBPACK_IMPORTED_MODULE_1__["default"]);
  return Math.ceil((max - min) / (2 * ((0,_quantile__WEBPACK_IMPORTED_MODULE_3__["default"])(values, 0.75) - (0,_quantile__WEBPACK_IMPORTED_MODULE_3__["default"])(values, 0.25)) * Math.pow(values.length, -1 / 3)));
}


/***/ }),

/***/ "./node_modules/d3-array/src/threshold/scott.js":
/*!******************************************************!*\
  !*** ./node_modules/d3-array/src/threshold/scott.js ***!
  \******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _deviation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../deviation */ "./node_modules/d3-array/src/deviation.js");


/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(values, min, max) {
  return Math.ceil((max - min) / (3.5 * (0,_deviation__WEBPACK_IMPORTED_MODULE_0__["default"])(values) * Math.pow(values.length, -1 / 3)));
}


/***/ }),

/***/ "./node_modules/d3-array/src/threshold/sturges.js":
/*!********************************************************!*\
  !*** ./node_modules/d3-array/src/threshold/sturges.js ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(values) {
  return Math.ceil(Math.log(values.length) / Math.LN2) + 1;
}


/***/ }),

/***/ "./node_modules/d3-array/src/ticks.js":
/*!********************************************!*\
  !*** ./node_modules/d3-array/src/ticks.js ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   "tickIncrement": () => (/* binding */ tickIncrement),
/* harmony export */   "tickStep": () => (/* binding */ tickStep)
/* harmony export */ });
var e10 = Math.sqrt(50),
    e5 = Math.sqrt(10),
    e2 = Math.sqrt(2);

/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(start, stop, count) {
  var reverse,
      i = -1,
      n,
      ticks,
      step;

  stop = +stop, start = +start, count = +count;
  if (start === stop && count > 0) return [start];
  if (reverse = stop < start) n = start, start = stop, stop = n;
  if ((step = tickIncrement(start, stop, count)) === 0 || !isFinite(step)) return [];

  if (step > 0) {
    start = Math.ceil(start / step);
    stop = Math.floor(stop / step);
    ticks = new Array(n = Math.ceil(stop - start + 1));
    while (++i < n) ticks[i] = (start + i) * step;
  } else {
    start = Math.floor(start * step);
    stop = Math.ceil(stop * step);
    ticks = new Array(n = Math.ceil(start - stop + 1));
    while (++i < n) ticks[i] = (start - i) / step;
  }

  if (reverse) ticks.reverse();

  return ticks;
}

function tickIncrement(start, stop, count) {
  var step = (stop - start) / Math.max(0, count),
      power = Math.floor(Math.log(step) / Math.LN10),
      error = step / Math.pow(10, power);
  return power >= 0
      ? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power)
      : -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1);
}

function tickStep(start, stop, count) {
  var step0 = Math.abs(stop - start) / Math.max(0, count),
      step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)),
      error = step0 / step1;
  if (error >= e10) step1 *= 10;
  else if (error >= e5) step1 *= 5;
  else if (error >= e2) step1 *= 2;
  return stop < start ? -step1 : step1;
}


/***/ }),

/***/ "./node_modules/d3-array/src/transpose.js":
/*!************************************************!*\
  !*** ./node_modules/d3-array/src/transpose.js ***!
  \************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _min__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./min */ "./node_modules/d3-array/src/min.js");


/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(matrix) {
  if (!(n = matrix.length)) return [];
  for (var i = -1, m = (0,_min__WEBPACK_IMPORTED_MODULE_0__["default"])(matrix, length), transpose = new Array(m); ++i < m;) {
    for (var j = -1, n, row = transpose[i] = new Array(n); ++j < n;) {
      row[j] = matrix[j][i];
    }
  }
  return transpose;
}

function length(d) {
  return d.length;
}


/***/ }),

/***/ "./node_modules/d3-array/src/variance.js":
/*!***********************************************!*\
  !*** ./node_modules/d3-array/src/variance.js ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./number */ "./node_modules/d3-array/src/number.js");


/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(values, valueof) {
  var n = values.length,
      m = 0,
      i = -1,
      mean = 0,
      value,
      delta,
      sum = 0;

  if (valueof == null) {
    while (++i < n) {
      if (!isNaN(value = (0,_number__WEBPACK_IMPORTED_MODULE_0__["default"])(values[i]))) {
        delta = value - mean;
        mean += delta / ++m;
        sum += delta * (value - mean);
      }
    }
  }

  else {
    while (++i < n) {
      if (!isNaN(value = (0,_number__WEBPACK_IMPORTED_MODULE_0__["default"])(valueof(values[i], i, values)))) {
        delta = value - mean;
        mean += delta / ++m;
        sum += delta * (value - mean);
      }
    }
  }

  if (m > 1) return sum / (m - 1);
}


/***/ }),

/***/ "./node_modules/d3-array/src/zip.js":
/*!******************************************!*\
  !*** ./node_modules/d3-array/src/zip.js ***!
  \******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _transpose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./transpose */ "./node_modules/d3-array/src/transpose.js");


/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {
  return (0,_transpose__WEBPACK_IMPORTED_MODULE_0__["default"])(arguments);
}


/***/ }),

/***/ "./node_modules/d3-collection/src/entries.js":
/*!***************************************************!*\
  !*** ./node_modules/d3-collection/src/entries.js ***!
  \***************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(map) {
  var entries = [];
  for (var key in map) entries.push({key: key, value: map[key]});
  return entries;
}


/***/ }),

/***/ "./node_modules/d3-collection/src/index.js":
/*!*************************************************!*\
  !*** ./node_modules/d3-collection/src/index.js ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "nest": () => (/* reexport safe */ _nest__WEBPACK_IMPORTED_MODULE_0__["default"]),
/* harmony export */   "set": () => (/* reexport safe */ _set__WEBPACK_IMPORTED_MODULE_1__["default"]),
/* harmony export */   "map": () => (/* reexport safe */ _map__WEBPACK_IMPORTED_MODULE_2__["default"]),
/* harmony export */   "keys": () => (/* reexport safe */ _keys__WEBPACK_IMPORTED_MODULE_3__["default"]),
/* harmony export */   "values": () => (/* reexport safe */ _values__WEBPACK_IMPORTED_MODULE_4__["default"]),
/* harmony export */   "entries": () => (/* reexport safe */ _entries__WEBPACK_IMPORTED_MODULE_5__["default"])
/* harmony export */ });
/* harmony import */ var _nest__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./nest */ "./node_modules/d3-collection/src/nest.js");
/* harmony import */ var _set__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./set */ "./node_modules/d3-collection/src/set.js");
/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./map */ "./node_modules/d3-collection/src/map.js");
/* harmony import */ var _keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./keys */ "./node_modules/d3-collection/src/keys.js");
/* harmony import */ var _values__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./values */ "./node_modules/d3-collection/src/values.js");
/* harmony import */ var _entries__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./entries */ "./node_modules/d3-collection/src/entries.js");








/***/ }),

/***/ "./node_modules/d3-collection/src/keys.js":
/*!************************************************!*\
  !*** ./node_modules/d3-collection/src/keys.js ***!
  \************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(map) {
  var keys = [];
  for (var key in map) keys.push(key);
  return keys;
}


/***/ }),

/***/ "./node_modules/d3-collection/src/map.js":
/*!***********************************************!*\
  !*** ./node_modules/d3-collection/src/map.js ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "prefix": () => (/* binding */ prefix),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
var prefix = "$";

function Map() {}

Map.prototype = map.prototype = {
  constructor: Map,
  has: function(key) {
    return (prefix + key) in this;
  },
  get: function(key) {
    return this[prefix + key];
  },
  set: function(key, value) {
    this[prefix + key] = value;
    return this;
  },
  remove: function(key) {
    var property = prefix + key;
    return property in this && delete this[property];
  },
  clear: function() {
    for (var property in this) if (property[0] === prefix) delete this[property];
  },
  keys: function() {
    var keys = [];
    for (var property in this) if (property[0] === prefix) keys.push(property.slice(1));
    return keys;
  },
  values: function() {
    var values = [];
    for (var property in this) if (property[0] === prefix) values.push(this[property]);
    return values;
  },
  entries: function() {
    var entries = [];
    for (var property in this) if (property[0] === prefix) entries.push({key: property.slice(1), value: this[property]});
    return entries;
  },
  size: function() {
    var size = 0;
    for (var property in this) if (property[0] === prefix) ++size;
    return size;
  },
  empty: function() {
    for (var property in this) if (property[0] === prefix) return false;
    return true;
  },
  each: function(f) {
    for (var property in this) if (property[0] === prefix) f(this[property], property.slice(1), this);
  }
};

function map(object, f) {
  var map = new Map;

  // Copy constructor.
  if (object instanceof Map) object.each(function(value, key) { map.set(key, value); });

  // Index array by numeric index or specified key function.
  else if (Array.isArray(object)) {
    var i = -1,
        n = object.length,
        o;

    if (f == null) while (++i < n) map.set(i, object[i]);
    else while (++i < n) map.set(f(o = object[i], i, object), o);
  }

  // Convert object to map.
  else if (object) for (var key in object) map.set(key, object[key]);

  return map;
}

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (map);


/***/ }),

/***/ "./node_modules/d3-collection/src/nest.js":
/*!************************************************!*\
  !*** ./node_modules/d3-collection/src/nest.js ***!
  \************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./map */ "./node_modules/d3-collection/src/map.js");


/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {
  var keys = [],
      sortKeys = [],
      sortValues,
      rollup,
      nest;

  function apply(array, depth, createResult, setResult) {
    if (depth >= keys.length) {
      if (sortValues != null) array.sort(sortValues);
      return rollup != null ? rollup(array) : array;
    }

    var i = -1,
        n = array.length,
        key = keys[depth++],
        keyValue,
        value,
        valuesByKey = (0,_map__WEBPACK_IMPORTED_MODULE_0__["default"])(),
        values,
        result = createResult();

    while (++i < n) {
      if (values = valuesByKey.get(keyValue = key(value = array[i]) + "")) {
        values.push(value);
      } else {
        valuesByKey.set(keyValue, [value]);
      }
    }

    valuesByKey.each(function(values, key) {
      setResult(result, key, apply(values, depth, createResult, setResult));
    });

    return result;
  }

  function entries(map, depth) {
    if (++depth > keys.length) return map;
    var array, sortKey = sortKeys[depth - 1];
    if (rollup != null && depth >= keys.length) array = map.entries();
    else array = [], map.each(function(v, k) { array.push({key: k, values: entries(v, depth)}); });
    return sortKey != null ? array.sort(function(a, b) { return sortKey(a.key, b.key); }) : array;
  }

  return nest = {
    object: function(array) { return apply(array, 0, createObject, setObject); },
    map: function(array) { return apply(array, 0, createMap, setMap); },
    entries: function(array) { return entries(apply(array, 0, createMap, setMap), 0); },
    key: function(d) { keys.push(d); return nest; },
    sortKeys: function(order) { sortKeys[keys.length - 1] = order; return nest; },
    sortValues: function(order) { sortValues = order; return nest; },
    rollup: function(f) { rollup = f; return nest; }
  };
}

function createObject() {
  return {};
}

function setObject(object, key, value) {
  object[key] = value;
}

function createMap() {
  return (0,_map__WEBPACK_IMPORTED_MODULE_0__["default"])();
}

function setMap(map, key, value) {
  map.set(key, value);
}


/***/ }),

/***/ "./node_modules/d3-collection/src/set.js":
/*!***********************************************!*\
  !*** ./node_modules/d3-collection/src/set.js ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./map */ "./node_modules/d3-collection/src/map.js");


function Set() {}

var proto = _map__WEBPACK_IMPORTED_MODULE_0__["default"].prototype;

Set.prototype = set.prototype = {
  constructor: Set,
  has: proto.has,
  add: function(value) {
    value += "";
    this[_map__WEBPACK_IMPORTED_MODULE_0__.prefix + value] = value;
    return this;
  },
  remove: proto.remove,
  clear: proto.clear,
  values: proto.keys,
  size: proto.size,
  empty: proto.empty,
  each: proto.each
};

function set(object, f) {
  var set = new Set;

  // Copy constructor.
  if (object instanceof Set) object.each(function(value) { set.add(value); });

  // Otherwise, assume it’s an array.
  else if (object) {
    var i = -1, n = object.length;
    if (f == null) while (++i < n) set.add(object[i]);
    else while (++i < n) set.add(f(object[i], i, object));
  }

  return set;
}

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (set);


/***/ }),

/***/ "./node_modules/d3-collection/src/values.js":
/*!**************************************************!*\
  !*** ./node_modules/d3-collection/src/values.js ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(map) {
  var values = [];
  for (var key in map) values.push(map[key]);
  return values;
}


/***/ }),

/***/ "./node_modules/d3-color/src/color.js":
/*!********************************************!*\
  !*** ./node_modules/d3-color/src/color.js ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "Color": () => (/* binding */ Color),
/* harmony export */   "darker": () => (/* binding */ darker),
/* harmony export */   "brighter": () => (/* binding */ brighter),
/* harmony export */   "default": () => (/* binding */ color),
/* harmony export */   "rgbConvert": () => (/* binding */ rgbConvert),
/* harmony export */   "rgb": () => (/* binding */ rgb),
/* harmony export */   "Rgb": () => (/* binding */ Rgb),
/* harmony export */   "hslConvert": () => (/* binding */ hslConvert),
/* harmony export */   "hsl": () => (/* binding */ hsl)
/* harmony export */ });
/* harmony import */ var _define_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./define.js */ "./node_modules/d3-color/src/define.js");


function Color() {}

var darker = 0.7;
var brighter = 1 / darker;

var reI = "\\s*([+-]?\\d+)\\s*",
    reN = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",
    reP = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
    reHex = /^#([0-9a-f]{3,8})$/,
    reRgbInteger = new RegExp("^rgb\\(" + [reI, reI, reI] + "\\)$"),
    reRgbPercent = new RegExp("^rgb\\(" + [reP, reP, reP] + "\\)$"),
    reRgbaInteger = new RegExp("^rgba\\(" + [reI, reI, reI, reN] + "\\)$"),
    reRgbaPercent = new RegExp("^rgba\\(" + [reP, reP, reP, reN] + "\\)$"),
    reHslPercent = new RegExp("^hsl\\(" + [reN, reP, reP] + "\\)$"),
    reHslaPercent = new RegExp("^hsla\\(" + [reN, reP, reP, reN] + "\\)$");

var named = {
  aliceblue: 0xf0f8ff,
  antiquewhite: 0xfaebd7,
  aqua: 0x00ffff,
  aquamarine: 0x7fffd4,
  azure: 0xf0ffff,
  beige: 0xf5f5dc,
  bisque: 0xffe4c4,
  black: 0x000000,
  blanchedalmond: 0xffebcd,
  blue: 0x0000ff,
  blueviolet: 0x8a2be2,
  brown: 0xa52a2a,
  burlywood: 0xdeb887,
  cadetblue: 0x5f9ea0,
  chartreuse: 0x7fff00,
  chocolate: 0xd2691e,
  coral: 0xff7f50,
  cornflowerblue: 0x6495ed,
  cornsilk: 0xfff8dc,
  crimson: 0xdc143c,
  cyan: 0x00ffff,
  darkblue: 0x00008b,
  darkcyan: 0x008b8b,
  darkgoldenrod: 0xb8860b,
  darkgray: 0xa9a9a9,
  darkgreen: 0x006400,
  darkgrey: 0xa9a9a9,
  darkkhaki: 0xbdb76b,
  darkmagenta: 0x8b008b,
  darkolivegreen: 0x556b2f,
  darkorange: 0xff8c00,
  darkorchid: 0x9932cc,
  darkred: 0x8b0000,
  darksalmon: 0xe9967a,
  darkseagreen: 0x8fbc8f,
  darkslateblue: 0x483d8b,
  darkslategray: 0x2f4f4f,
  darkslategrey: 0x2f4f4f,
  darkturquoise: 0x00ced1,
  darkviolet: 0x9400d3,
  deeppink: 0xff1493,
  deepskyblue: 0x00bfff,
  dimgray: 0x696969,
  dimgrey: 0x696969,
  dodgerblue: 0x1e90ff,
  firebrick: 0xb22222,
  floralwhite: 0xfffaf0,
  forestgreen: 0x228b22,
  fuchsia: 0xff00ff,
  gainsboro: 0xdcdcdc,
  ghostwhite: 0xf8f8ff,
  gold: 0xffd700,
  goldenrod: 0xdaa520,
  gray: 0x808080,
  green: 0x008000,
  greenyellow: 0xadff2f,
  grey: 0x808080,
  honeydew: 0xf0fff0,
  hotpink: 0xff69b4,
  indianred: 0xcd5c5c,
  indigo: 0x4b0082,
  ivory: 0xfffff0,
  khaki: 0xf0e68c,
  lavender: 0xe6e6fa,
  lavenderblush: 0xfff0f5,
  lawngreen: 0x7cfc00,
  lemonchiffon: 0xfffacd,
  lightblue: 0xadd8e6,
  lightcoral: 0xf08080,
  lightcyan: 0xe0ffff,
  lightgoldenrodyellow: 0xfafad2,
  lightgray: 0xd3d3d3,
  lightgreen: 0x90ee90,
  lightgrey: 0xd3d3d3,
  lightpink: 0xffb6c1,
  lightsalmon: 0xffa07a,
  lightseagreen: 0x20b2aa,
  lightskyblue: 0x87cefa,
  lightslategray: 0x778899,
  lightslategrey: 0x778899,
  lightsteelblue: 0xb0c4de,
  lightyellow: 0xffffe0,
  lime: 0x00ff00,
  limegreen: 0x32cd32,
  linen: 0xfaf0e6,
  magenta: 0xff00ff,
  maroon: 0x800000,
  mediumaquamarine: 0x66cdaa,
  mediumblue: 0x0000cd,
  mediumorchid: 0xba55d3,
  mediumpurple: 0x9370db,
  mediumseagreen: 0x3cb371,
  mediumslateblue: 0x7b68ee,
  mediumspringgreen: 0x00fa9a,
  mediumturquoise: 0x48d1cc,
  mediumvioletred: 0xc71585,
  midnightblue: 0x191970,
  mintcream: 0xf5fffa,
  mistyrose: 0xffe4e1,
  moccasin: 0xffe4b5,
  navajowhite: 0xffdead,
  navy: 0x000080,
  oldlace: 0xfdf5e6,
  olive: 0x808000,
  olivedrab: 0x6b8e23,
  orange: 0xffa500,
  orangered: 0xff4500,
  orchid: 0xda70d6,
  palegoldenrod: 0xeee8aa,
  palegreen: 0x98fb98,
  paleturquoise: 0xafeeee,
  palevioletred: 0xdb7093,
  papayawhip: 0xffefd5,
  peachpuff: 0xffdab9,
  peru: 0xcd853f,
  pink: 0xffc0cb,
  plum: 0xdda0dd,
  powderblue: 0xb0e0e6,
  purple: 0x800080,
  rebeccapurple: 0x663399,
  red: 0xff0000,
  rosybrown: 0xbc8f8f,
  royalblue: 0x4169e1,
  saddlebrown: 0x8b4513,
  salmon: 0xfa8072,
  sandybrown: 0xf4a460,
  seagreen: 0x2e8b57,
  seashell: 0xfff5ee,
  sienna: 0xa0522d,
  silver: 0xc0c0c0,
  skyblue: 0x87ceeb,
  slateblue: 0x6a5acd,
  slategray: 0x708090,
  slategrey: 0x708090,
  snow: 0xfffafa,
  springgreen: 0x00ff7f,
  steelblue: 0x4682b4,
  tan: 0xd2b48c,
  teal: 0x008080,
  thistle: 0xd8bfd8,
  tomato: 0xff6347,
  turquoise: 0x40e0d0,
  violet: 0xee82ee,
  wheat: 0xf5deb3,
  white: 0xffffff,
  whitesmoke: 0xf5f5f5,
  yellow: 0xffff00,
  yellowgreen: 0x9acd32
};

(0,_define_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Color, color, {
  copy: function(channels) {
    return Object.assign(new this.constructor, this, channels);
  },
  displayable: function() {
    return this.rgb().displayable();
  },
  hex: color_formatHex, // Deprecated! Use color.formatHex.
  formatHex: color_formatHex,
  formatHsl: color_formatHsl,
  formatRgb: color_formatRgb,
  toString: color_formatRgb
});

function color_formatHex() {
  return this.rgb().formatHex();
}

function color_formatHsl() {
  return hslConvert(this).formatHsl();
}

function color_formatRgb() {
  return this.rgb().formatRgb();
}

function color(format) {
  var m, l;
  format = (format + "").trim().toLowerCase();
  return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) // #ff0000
      : l === 3 ? new Rgb((m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1) // #f00
      : l === 8 ? rgba(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (m & 0xff) / 0xff) // #ff000000
      : l === 4 ? rgba((m >> 12 & 0xf) | (m >> 8 & 0xf0), (m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), (((m & 0xf) << 4) | (m & 0xf)) / 0xff) // #f000
      : null) // invalid hex
      : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0)
      : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)
      : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)
      : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)
      : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)
      : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)
      : named.hasOwnProperty(format) ? rgbn(named[format]) // eslint-disable-line no-prototype-builtins
      : format === "transparent" ? new Rgb(NaN, NaN, NaN, 0)
      : null;
}

function rgbn(n) {
  return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);
}

function rgba(r, g, b, a) {
  if (a <= 0) r = g = b = NaN;
  return new Rgb(r, g, b, a);
}

function rgbConvert(o) {
  if (!(o instanceof Color)) o = color(o);
  if (!o) return new Rgb;
  o = o.rgb();
  return new Rgb(o.r, o.g, o.b, o.opacity);
}

function rgb(r, g, b, opacity) {
  return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);
}

function Rgb(r, g, b, opacity) {
  this.r = +r;
  this.g = +g;
  this.b = +b;
  this.opacity = +opacity;
}

(0,_define_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Rgb, rgb, (0,_define_js__WEBPACK_IMPORTED_MODULE_0__.extend)(Color, {
  brighter: function(k) {
    k = k == null ? brighter : Math.pow(brighter, k);
    return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
  },
  darker: function(k) {
    k = k == null ? darker : Math.pow(darker, k);
    return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
  },
  rgb: function() {
    return this;
  },
  displayable: function() {
    return (-0.5 <= this.r && this.r < 255.5)
        && (-0.5 <= this.g && this.g < 255.5)
        && (-0.5 <= this.b && this.b < 255.5)
        && (0 <= this.opacity && this.opacity <= 1);
  },
  hex: rgb_formatHex, // Deprecated! Use color.formatHex.
  formatHex: rgb_formatHex,
  formatRgb: rgb_formatRgb,
  toString: rgb_formatRgb
}));

function rgb_formatHex() {
  return "#" + hex(this.r) + hex(this.g) + hex(this.b);
}

function rgb_formatRgb() {
  var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));
  return (a === 1 ? "rgb(" : "rgba(")
      + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", "
      + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + ", "
      + Math.max(0, Math.min(255, Math.round(this.b) || 0))
      + (a === 1 ? ")" : ", " + a + ")");
}

function hex(value) {
  value = Math.max(0, Math.min(255, Math.round(value) || 0));
  return (value < 16 ? "0" : "") + value.toString(16);
}

function hsla(h, s, l, a) {
  if (a <= 0) h = s = l = NaN;
  else if (l <= 0 || l >= 1) h = s = NaN;
  else if (s <= 0) h = NaN;
  return new Hsl(h, s, l, a);
}

function hslConvert(o) {
  if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);
  if (!(o instanceof Color)) o = color(o);
  if (!o) return new Hsl;
  if (o instanceof Hsl) return o;
  o = o.rgb();
  var r = o.r / 255,
      g = o.g / 255,
      b = o.b / 255,
      min = Math.min(r, g, b),
      max = Math.max(r, g, b),
      h = NaN,
      s = max - min,
      l = (max + min) / 2;
  if (s) {
    if (r === max) h = (g - b) / s + (g < b) * 6;
    else if (g === max) h = (b - r) / s + 2;
    else h = (r - g) / s + 4;
    s /= l < 0.5 ? max + min : 2 - max - min;
    h *= 60;
  } else {
    s = l > 0 && l < 1 ? 0 : h;
  }
  return new Hsl(h, s, l, o.opacity);
}

function hsl(h, s, l, opacity) {
  return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);
}

function Hsl(h, s, l, opacity) {
  this.h = +h;
  this.s = +s;
  this.l = +l;
  this.opacity = +opacity;
}

(0,_define_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Hsl, hsl, (0,_define_js__WEBPACK_IMPORTED_MODULE_0__.extend)(Color, {
  brighter: function(k) {
    k = k == null ? brighter : Math.pow(brighter, k);
    return new Hsl(this.h, this.s, this.l * k, this.opacity);
  },
  darker: function(k) {
    k = k == null ? darker : Math.pow(darker, k);
    return new Hsl(this.h, this.s, this.l * k, this.opacity);
  },
  rgb: function() {
    var h = this.h % 360 + (this.h < 0) * 360,
        s = isNaN(h) || isNaN(this.s) ? 0 : this.s,
        l = this.l,
        m2 = l + (l < 0.5 ? l : 1 - l) * s,
        m1 = 2 * l - m2;
    return new Rgb(
      hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2),
      hsl2rgb(h, m1, m2),
      hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2),
      this.opacity
    );
  },
  displayable: function() {
    return (0 <= this.s && this.s <= 1 || isNaN(this.s))
        && (0 <= this.l && this.l <= 1)
        && (0 <= this.opacity && this.opacity <= 1);
  },
  formatHsl: function() {
    var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));
    return (a === 1 ? "hsl(" : "hsla(")
        + (this.h || 0) + ", "
        + (this.s || 0) * 100 + "%, "
        + (this.l || 0) * 100 + "%"
        + (a === 1 ? ")" : ", " + a + ")");
  }
}));

/* From FvD 13.37, CSS Color Module Level 3 */
function hsl2rgb(h, m1, m2) {
  return (h < 60 ? m1 + (m2 - m1) * h / 60
      : h < 180 ? m2
      : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60
      : m1) * 255;
}


/***/ }),

/***/ "./node_modules/d3-color/src/cubehelix.js":
/*!************************************************!*\
  !*** ./node_modules/d3-color/src/cubehelix.js ***!
  \************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ cubehelix),
/* harmony export */   "Cubehelix": () => (/* binding */ Cubehelix)
/* harmony export */ });
/* harmony import */ var _define_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./define.js */ "./node_modules/d3-color/src/define.js");
/* harmony import */ var _color_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./color.js */ "./node_modules/d3-color/src/color.js");
/* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./math.js */ "./node_modules/d3-color/src/math.js");




var A = -0.14861,
    B = +1.78277,
    C = -0.29227,
    D = -0.90649,
    E = +1.97294,
    ED = E * D,
    EB = E * B,
    BC_DA = B * C - D * A;

function cubehelixConvert(o) {
  if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity);
  if (!(o instanceof _color_js__WEBPACK_IMPORTED_MODULE_0__.Rgb)) o = (0,_color_js__WEBPACK_IMPORTED_MODULE_0__.rgbConvert)(o);
  var r = o.r / 255,
      g = o.g / 255,
      b = o.b / 255,
      l = (BC_DA * b + ED * r - EB * g) / (BC_DA + ED - EB),
      bl = b - l,
      k = (E * (g - l) - C * bl) / D,
      s = Math.sqrt(k * k + bl * bl) / (E * l * (1 - l)), // NaN if l=0 or l=1
      h = s ? Math.atan2(k, bl) * _math_js__WEBPACK_IMPORTED_MODULE_1__.rad2deg - 120 : NaN;
  return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity);
}

function cubehelix(h, s, l, opacity) {
  return arguments.length === 1 ? cubehelixConvert(h) : new Cubehelix(h, s, l, opacity == null ? 1 : opacity);
}

function Cubehelix(h, s, l, opacity) {
  this.h = +h;
  this.s = +s;
  this.l = +l;
  this.opacity = +opacity;
}

(0,_define_js__WEBPACK_IMPORTED_MODULE_2__["default"])(Cubehelix, cubehelix, (0,_define_js__WEBPACK_IMPORTED_MODULE_2__.extend)(_color_js__WEBPACK_IMPORTED_MODULE_0__.Color, {
  brighter: function(k) {
    k = k == null ? _color_js__WEBPACK_IMPORTED_MODULE_0__.brighter : Math.pow(_color_js__WEBPACK_IMPORTED_MODULE_0__.brighter, k);
    return new Cubehelix(this.h, this.s, this.l * k, this.opacity);
  },
  darker: function(k) {
    k = k == null ? _color_js__WEBPACK_IMPORTED_MODULE_0__.darker : Math.pow(_color_js__WEBPACK_IMPORTED_MODULE_0__.darker, k);
    return new Cubehelix(this.h, this.s, this.l * k, this.opacity);
  },
  rgb: function() {
    var h = isNaN(this.h) ? 0 : (this.h + 120) * _math_js__WEBPACK_IMPORTED_MODULE_1__.deg2rad,
        l = +this.l,
        a = isNaN(this.s) ? 0 : this.s * l * (1 - l),
        cosh = Math.cos(h),
        sinh = Math.sin(h);
    return new _color_js__WEBPACK_IMPORTED_MODULE_0__.Rgb(
      255 * (l + a * (A * cosh + B * sinh)),
      255 * (l + a * (C * cosh + D * sinh)),
      255 * (l + a * (E * cosh)),
      this.opacity
    );
  }
}));


/***/ }),

/***/ "./node_modules/d3-color/src/define.js":
/*!*********************************************!*\
  !*** ./node_modules/d3-color/src/define.js ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   "extend": () => (/* binding */ extend)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(constructor, factory, prototype) {
  constructor.prototype = factory.prototype = prototype;
  prototype.constructor = constructor;
}

function extend(parent, definition) {
  var prototype = Object.create(parent.prototype);
  for (var key in definition) prototype[key] = definition[key];
  return prototype;
}


/***/ }),

/***/ "./node_modules/d3-color/src/math.js":
/*!*******************************************!*\
  !*** ./node_modules/d3-color/src/math.js ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "deg2rad": () => (/* binding */ deg2rad),
/* harmony export */   "rad2deg": () => (/* binding */ rad2deg)
/* harmony export */ });
var deg2rad = Math.PI / 180;
var rad2deg = 180 / Math.PI;


/***/ }),

/***/ "./node_modules/d3-ease/src/back.js":
/*!******************************************!*\
  !*** ./node_modules/d3-ease/src/back.js ***!
  \******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "backIn": () => (/* binding */ backIn),
/* harmony export */   "backOut": () => (/* binding */ backOut),
/* harmony export */   "backInOut": () => (/* binding */ backInOut)
/* harmony export */ });
var overshoot = 1.70158;

var backIn = (function custom(s) {
  s = +s;

  function backIn(t) {
    return (t = +t) * t * (s * (t - 1) + t);
  }

  backIn.overshoot = custom;

  return backIn;
})(overshoot);

var backOut = (function custom(s) {
  s = +s;

  function backOut(t) {
    return --t * t * ((t + 1) * s + t) + 1;
  }

  backOut.overshoot = custom;

  return backOut;
})(overshoot);

var backInOut = (function custom(s) {
  s = +s;

  function backInOut(t) {
    return ((t *= 2) < 1 ? t * t * ((s + 1) * t - s) : (t -= 2) * t * ((s + 1) * t + s) + 2) / 2;
  }

  backInOut.overshoot = custom;

  return backInOut;
})(overshoot);


/***/ }),

/***/ "./node_modules/d3-ease/src/bounce.js":
/*!********************************************!*\
  !*** ./node_modules/d3-ease/src/bounce.js ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "bounceIn": () => (/* binding */ bounceIn),
/* harmony export */   "bounceOut": () => (/* binding */ bounceOut),
/* harmony export */   "bounceInOut": () => (/* binding */ bounceInOut)
/* harmony export */ });
var b1 = 4 / 11,
    b2 = 6 / 11,
    b3 = 8 / 11,
    b4 = 3 / 4,
    b5 = 9 / 11,
    b6 = 10 / 11,
    b7 = 15 / 16,
    b8 = 21 / 22,
    b9 = 63 / 64,
    b0 = 1 / b1 / b1;

function bounceIn(t) {
  return 1 - bounceOut(1 - t);
}

function bounceOut(t) {
  return (t = +t) < b1 ? b0 * t * t : t < b3 ? b0 * (t -= b2) * t + b4 : t < b6 ? b0 * (t -= b5) * t + b7 : b0 * (t -= b8) * t + b9;
}

function bounceInOut(t) {
  return ((t *= 2) <= 1 ? 1 - bounceOut(1 - t) : bounceOut(t - 1) + 1) / 2;
}


/***/ }),

/***/ "./node_modules/d3-ease/src/circle.js":
/*!********************************************!*\
  !*** ./node_modules/d3-ease/src/circle.js ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "circleIn": () => (/* binding */ circleIn),
/* harmony export */   "circleOut": () => (/* binding */ circleOut),
/* harmony export */   "circleInOut": () => (/* binding */ circleInOut)
/* harmony export */ });
function circleIn(t) {
  return 1 - Math.sqrt(1 - t * t);
}

function circleOut(t) {
  return Math.sqrt(1 - --t * t);
}

function circleInOut(t) {
  return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2;
}


/***/ }),

/***/ "./node_modules/d3-ease/src/cubic.js":
/*!*******************************************!*\
  !*** ./node_modules/d3-ease/src/cubic.js ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "cubicIn": () => (/* binding */ cubicIn),
/* harmony export */   "cubicOut": () => (/* binding */ cubicOut),
/* harmony export */   "cubicInOut": () => (/* binding */ cubicInOut)
/* harmony export */ });
function cubicIn(t) {
  return t * t * t;
}

function cubicOut(t) {
  return --t * t * t + 1;
}

function cubicInOut(t) {
  return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
}


/***/ }),

/***/ "./node_modules/d3-ease/src/elastic.js":
/*!*********************************************!*\
  !*** ./node_modules/d3-ease/src/elastic.js ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "elasticIn": () => (/* binding */ elasticIn),
/* harmony export */   "elasticOut": () => (/* binding */ elasticOut),
/* harmony export */   "elasticInOut": () => (/* binding */ elasticInOut)
/* harmony export */ });
/* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math.js */ "./node_modules/d3-ease/src/math.js");


var tau = 2 * Math.PI,
    amplitude = 1,
    period = 0.3;

var elasticIn = (function custom(a, p) {
  var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);

  function elasticIn(t) {
    return a * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.tpmt)(-(--t)) * Math.sin((s - t) / p);
  }

  elasticIn.amplitude = function(a) { return custom(a, p * tau); };
  elasticIn.period = function(p) { return custom(a, p); };

  return elasticIn;
})(amplitude, period);

var elasticOut = (function custom(a, p) {
  var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);

  function elasticOut(t) {
    return 1 - a * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.tpmt)(t = +t) * Math.sin((t + s) / p);
  }

  elasticOut.amplitude = function(a) { return custom(a, p * tau); };
  elasticOut.period = function(p) { return custom(a, p); };

  return elasticOut;
})(amplitude, period);

var elasticInOut = (function custom(a, p) {
  var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);

  function elasticInOut(t) {
    return ((t = t * 2 - 1) < 0
        ? a * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.tpmt)(-t) * Math.sin((s - t) / p)
        : 2 - a * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.tpmt)(t) * Math.sin((s + t) / p)) / 2;
  }

  elasticInOut.amplitude = function(a) { return custom(a, p * tau); };
  elasticInOut.period = function(p) { return custom(a, p); };

  return elasticInOut;
})(amplitude, period);


/***/ }),

/***/ "./node_modules/d3-ease/src/exp.js":
/*!*****************************************!*\
  !*** ./node_modules/d3-ease/src/exp.js ***!
  \*****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "expIn": () => (/* binding */ expIn),
/* harmony export */   "expOut": () => (/* binding */ expOut),
/* harmony export */   "expInOut": () => (/* binding */ expInOut)
/* harmony export */ });
/* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math.js */ "./node_modules/d3-ease/src/math.js");


function expIn(t) {
  return (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.tpmt)(1 - +t);
}

function expOut(t) {
  return 1 - (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.tpmt)(t);
}

function expInOut(t) {
  return ((t *= 2) <= 1 ? (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.tpmt)(1 - t) : 2 - (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.tpmt)(t - 1)) / 2;
}


/***/ }),

/***/ "./node_modules/d3-ease/src/index.js":
/*!*******************************************!*\
  !*** ./node_modules/d3-ease/src/index.js ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "easeLinear": () => (/* reexport safe */ _linear_js__WEBPACK_IMPORTED_MODULE_0__.linear),
/* harmony export */   "easeQuad": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadInOut),
/* harmony export */   "easeQuadIn": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadIn),
/* harmony export */   "easeQuadOut": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadOut),
/* harmony export */   "easeQuadInOut": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadInOut),
/* harmony export */   "easeCubic": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicInOut),
/* harmony export */   "easeCubicIn": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicIn),
/* harmony export */   "easeCubicOut": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicOut),
/* harmony export */   "easeCubicInOut": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicInOut),
/* harmony export */   "easePoly": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyInOut),
/* harmony export */   "easePolyIn": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyIn),
/* harmony export */   "easePolyOut": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyOut),
/* harmony export */   "easePolyInOut": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyInOut),
/* harmony export */   "easeSin": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinInOut),
/* harmony export */   "easeSinIn": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinIn),
/* harmony export */   "easeSinOut": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinOut),
/* harmony export */   "easeSinInOut": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinInOut),
/* harmony export */   "easeExp": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expInOut),
/* harmony export */   "easeExpIn": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expIn),
/* harmony export */   "easeExpOut": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expOut),
/* harmony export */   "easeExpInOut": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expInOut),
/* harmony export */   "easeCircle": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleInOut),
/* harmony export */   "easeCircleIn": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleIn),
/* harmony export */   "easeCircleOut": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleOut),
/* harmony export */   "easeCircleInOut": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleInOut),
/* harmony export */   "easeBounce": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceOut),
/* harmony export */   "easeBounceIn": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceIn),
/* harmony export */   "easeBounceOut": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceOut),
/* harmony export */   "easeBounceInOut": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceInOut),
/* harmony export */   "easeBack": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backInOut),
/* harmony export */   "easeBackIn": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backIn),
/* harmony export */   "easeBackOut": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backOut),
/* harmony export */   "easeBackInOut": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backInOut),
/* harmony export */   "easeElastic": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticOut),
/* harmony export */   "easeElasticIn": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticIn),
/* harmony export */   "easeElasticOut": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticOut),
/* harmony export */   "easeElasticInOut": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticInOut)
/* harmony export */ });
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear.js */ "./node_modules/d3-ease/src/linear.js");
/* harmony import */ var _quad_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./quad.js */ "./node_modules/d3-ease/src/quad.js");
/* harmony import */ var _cubic_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cubic.js */ "./node_modules/d3-ease/src/cubic.js");
/* harmony import */ var _poly_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./poly.js */ "./node_modules/d3-ease/src/poly.js");
/* harmony import */ var _sin_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./sin.js */ "./node_modules/d3-ease/src/sin.js");
/* harmony import */ var _exp_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./exp.js */ "./node_modules/d3-ease/src/exp.js");
/* harmony import */ var _circle_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./circle.js */ "./node_modules/d3-ease/src/circle.js");
/* harmony import */ var _bounce_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./bounce.js */ "./node_modules/d3-ease/src/bounce.js");
/* harmony import */ var _back_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./back.js */ "./node_modules/d3-ease/src/back.js");
/* harmony import */ var _elastic_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./elastic.js */ "./node_modules/d3-ease/src/elastic.js");





















/***/ }),

/***/ "./node_modules/d3-ease/src/linear.js":
/*!********************************************!*\
  !*** ./node_modules/d3-ease/src/linear.js ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "linear": () => (/* binding */ linear)
/* harmony export */ });
function linear(t) {
  return +t;
}


/***/ }),

/***/ "./node_modules/d3-ease/src/math.js":
/*!******************************************!*\
  !*** ./node_modules/d3-ease/src/math.js ***!
  \******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "tpmt": () => (/* binding */ tpmt)
/* harmony export */ });
// tpmt is two power minus ten times t scaled to [0,1]
function tpmt(x) {
  return (Math.pow(2, -10 * x) - 0.0009765625) * 1.0009775171065494;
}


/***/ }),

/***/ "./node_modules/d3-ease/src/poly.js":
/*!******************************************!*\
  !*** ./node_modules/d3-ease/src/poly.js ***!
  \******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "polyIn": () => (/* binding */ polyIn),
/* harmony export */   "polyOut": () => (/* binding */ polyOut),
/* harmony export */   "polyInOut": () => (/* binding */ polyInOut)
/* harmony export */ });
var exponent = 3;

var polyIn = (function custom(e) {
  e = +e;

  function polyIn(t) {
    return Math.pow(t, e);
  }

  polyIn.exponent = custom;

  return polyIn;
})(exponent);

var polyOut = (function custom(e) {
  e = +e;

  function polyOut(t) {
    return 1 - Math.pow(1 - t, e);
  }

  polyOut.exponent = custom;

  return polyOut;
})(exponent);

var polyInOut = (function custom(e) {
  e = +e;

  function polyInOut(t) {
    return ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2;
  }

  polyInOut.exponent = custom;

  return polyInOut;
})(exponent);


/***/ }),

/***/ "./node_modules/d3-ease/src/quad.js":
/*!******************************************!*\
  !*** ./node_modules/d3-ease/src/quad.js ***!
  \******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "quadIn": () => (/* binding */ quadIn),
/* harmony export */   "quadOut": () => (/* binding */ quadOut),
/* harmony export */   "quadInOut": () => (/* binding */ quadInOut)
/* harmony export */ });
function quadIn(t) {
  return t * t;
}

function quadOut(t) {
  return t * (2 - t);
}

function quadInOut(t) {
  return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2;
}


/***/ }),

/***/ "./node_modules/d3-ease/src/sin.js":
/*!*****************************************!*\
  !*** ./node_modules/d3-ease/src/sin.js ***!
  \*****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "sinIn": () => (/* binding */ sinIn),
/* harmony export */   "sinOut": () => (/* binding */ sinOut),
/* harmony export */   "sinInOut": () => (/* binding */ sinInOut)
/* harmony export */ });
var pi = Math.PI,
    halfPi = pi / 2;

function sinIn(t) {
  return (+t === 1) ? 1 : 1 - Math.cos(t * halfPi);
}

function sinOut(t) {
  return Math.sin(t * halfPi);
}

function sinInOut(t) {
  return (1 - Math.cos(pi * t)) / 2;
}


/***/ }),

/***/ "./node_modules/d3-format/src/defaultLocale.js":
/*!*****************************************************!*\
  !*** ./node_modules/d3-format/src/defaultLocale.js ***!
  \*****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "format": () => (/* binding */ format),
/* harmony export */   "formatPrefix": () => (/* binding */ formatPrefix),
/* harmony export */   "default": () => (/* binding */ defaultLocale)
/* harmony export */ });
/* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale.js */ "./node_modules/d3-format/src/locale.js");


var locale;
var format;
var formatPrefix;

defaultLocale({
  decimal: ".",
  thousands: ",",
  grouping: [3],
  currency: ["$", ""],
  minus: "-"
});

function defaultLocale(definition) {
  locale = (0,_locale_js__WEBPACK_IMPORTED_MODULE_0__["default"])(definition);
  format = locale.format;
  formatPrefix = locale.formatPrefix;
  return locale;
}


/***/ }),

/***/ "./node_modules/d3-format/src/exponent.js":
/*!************************************************!*\
  !*** ./node_modules/d3-format/src/exponent.js ***!
  \************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatDecimal.js */ "./node_modules/d3-format/src/formatDecimal.js");


/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(x) {
  return x = (0,_formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__.formatDecimalParts)(Math.abs(x)), x ? x[1] : NaN;
}


/***/ }),

/***/ "./node_modules/d3-format/src/formatDecimal.js":
/*!*****************************************************!*\
  !*** ./node_modules/d3-format/src/formatDecimal.js ***!
  \*****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   "formatDecimalParts": () => (/* binding */ formatDecimalParts)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(x) {
  return Math.abs(x = Math.round(x)) >= 1e21
      ? x.toLocaleString("en").replace(/,/g, "")
      : x.toString(10);
}

// Computes the decimal coefficient and exponent of the specified number x with
// significant digits p, where x is positive and p is in [1, 21] or undefined.
// For example, formatDecimalParts(1.23) returns ["123", 0].
function formatDecimalParts(x, p) {
  if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e")) < 0) return null; // NaN, ±Infinity
  var i, coefficient = x.slice(0, i);

  // The string returned by toExponential either has the form \d\.\d+e[-+]\d+
  // (e.g., 1.2e+3) or the form \de[-+]\d+ (e.g., 1e+3).
  return [
    coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient,
    +x.slice(i + 1)
  ];
}


/***/ }),

/***/ "./node_modules/d3-format/src/formatGroup.js":
/*!***************************************************!*\
  !*** ./node_modules/d3-format/src/formatGroup.js ***!
  \***************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(grouping, thousands) {
  return function(value, width) {
    var i = value.length,
        t = [],
        j = 0,
        g = grouping[0],
        length = 0;

    while (i > 0 && g > 0) {
      if (length + g + 1 > width) g = Math.max(1, width - length);
      t.push(value.substring(i -= g, i + g));
      if ((length += g + 1) > width) break;
      g = grouping[j = (j + 1) % grouping.length];
    }

    return t.reverse().join(thousands);
  };
}


/***/ }),

/***/ "./node_modules/d3-format/src/formatNumerals.js":
/*!******************************************************!*\
  !*** ./node_modules/d3-format/src/formatNumerals.js ***!
  \******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(numerals) {
  return function(value) {
    return value.replace(/[0-9]/g, function(i) {
      return numerals[+i];
    });
  };
}


/***/ }),

/***/ "./node_modules/d3-format/src/formatPrefixAuto.js":
/*!********************************************************!*\
  !*** ./node_modules/d3-format/src/formatPrefixAuto.js ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "prefixExponent": () => (/* binding */ prefixExponent),
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatDecimal.js */ "./node_modules/d3-format/src/formatDecimal.js");


var prefixExponent;

/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(x, p) {
  var d = (0,_formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__.formatDecimalParts)(x, p);
  if (!d) return x + "";
  var coefficient = d[0],
      exponent = d[1],
      i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1,
      n = coefficient.length;
  return i === n ? coefficient
      : i > n ? coefficient + new Array(i - n + 1).join("0")
      : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i)
      : "0." + new Array(1 - i).join("0") + (0,_formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__.formatDecimalParts)(x, Math.max(0, p + i - 1))[0]; // less than 1y!
}


/***/ }),

/***/ "./node_modules/d3-format/src/formatRounded.js":
/*!*****************************************************!*\
  !*** ./node_modules/d3-format/src/formatRounded.js ***!
  \*****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatDecimal.js */ "./node_modules/d3-format/src/formatDecimal.js");


/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(x, p) {
  var d = (0,_formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__.formatDecimalParts)(x, p);
  if (!d) return x + "";
  var coefficient = d[0],
      exponent = d[1];
  return exponent < 0 ? "0." + new Array(-exponent).join("0") + coefficient
      : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + "." + coefficient.slice(exponent + 1)
      : coefficient + new Array(exponent - coefficient.length + 2).join("0");
}


/***/ }),

/***/ "./node_modules/d3-format/src/formatSpecifier.js":
/*!*******************************************************!*\
  !*** ./node_modules/d3-format/src/formatSpecifier.js ***!
  \*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ formatSpecifier),
/* harmony export */   "FormatSpecifier": () => (/* binding */ FormatSpecifier)
/* harmony export */ });
// [[fill]align][sign][symbol][0][width][,][.precision][~][type]
var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;

function formatSpecifier(specifier) {
  if (!(match = re.exec(specifier))) throw new Error("invalid format: " + specifier);
  var match;
  return new FormatSpecifier({
    fill: match[1],
    align: match[2],
    sign: match[3],
    symbol: match[4],
    zero: match[5],
    width: match[6],
    comma: match[7],
    precision: match[8] && match[8].slice(1),
    trim: match[9],
    type: match[10]
  });
}

formatSpecifier.prototype = FormatSpecifier.prototype; // instanceof

function FormatSpecifier(specifier) {
  this.fill = specifier.fill === undefined ? " " : specifier.fill + "";
  this.align = specifier.align === undefined ? ">" : specifier.align + "";
  this.sign = specifier.sign === undefined ? "-" : specifier.sign + "";
  this.symbol = specifier.symbol === undefined ? "" : specifier.symbol + "";
  this.zero = !!specifier.zero;
  this.width = specifier.width === undefined ? undefined : +specifier.width;
  this.comma = !!specifier.comma;
  this.precision = specifier.precision === undefined ? undefined : +specifier.precision;
  this.trim = !!specifier.trim;
  this.type = specifier.type === undefined ? "" : specifier.type + "";
}

FormatSpecifier.prototype.toString = function() {
  return this.fill
      + this.align
      + this.sign
      + this.symbol
      + (this.zero ? "0" : "")
      + (this.width === undefined ? "" : Math.max(1, this.width | 0))
      + (this.comma ? "," : "")
      + (this.precision === undefined ? "" : "." + Math.max(0, this.precision | 0))
      + (this.trim ? "~" : "")
      + this.type;
};


/***/ }),

/***/ "./node_modules/d3-format/src/formatTrim.js":
/*!**************************************************!*\
  !*** ./node_modules/d3-format/src/formatTrim.js ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
// Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k.
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(s) {
  out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) {
    switch (s[i]) {
      case ".": i0 = i1 = i; break;
      case "0": if (i0 === 0) i0 = i; i1 = i; break;
      default: if (!+s[i]) break out; if (i0 > 0) i0 = 0; break;
    }
  }
  return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;
}


/***/ }),

/***/ "./node_modules/d3-format/src/formatTypes.js":
/*!***************************************************!*\
  !*** ./node_modules/d3-format/src/formatTypes.js ***!
  \***************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatDecimal.js */ "./node_modules/d3-format/src/formatDecimal.js");
/* harmony import */ var _formatPrefixAuto_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./formatPrefixAuto.js */ "./node_modules/d3-format/src/formatPrefixAuto.js");
/* harmony import */ var _formatRounded_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./formatRounded.js */ "./node_modules/d3-format/src/formatRounded.js");




/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
  "%": function(x, p) { return (x * 100).toFixed(p); },
  "b": function(x) { return Math.round(x).toString(2); },
  "c": function(x) { return x + ""; },
  "d": _formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__["default"],
  "e": function(x, p) { return x.toExponential(p); },
  "f": function(x, p) { return x.toFixed(p); },
  "g": function(x, p) { return x.toPrecision(p); },
  "o": function(x) { return Math.round(x).toString(8); },
  "p": function(x, p) { return (0,_formatRounded_js__WEBPACK_IMPORTED_MODULE_1__["default"])(x * 100, p); },
  "r": _formatRounded_js__WEBPACK_IMPORTED_MODULE_1__["default"],
  "s": _formatPrefixAuto_js__WEBPACK_IMPORTED_MODULE_2__["default"],
  "X": function(x) { return Math.round(x).toString(16).toUpperCase(); },
  "x": function(x) { return Math.round(x).toString(16); }
});


/***/ }),

/***/ "./node_modules/d3-format/src/identity.js":
/*!************************************************!*\
  !*** ./node_modules/d3-format/src/identity.js ***!
  \************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(x) {
  return x;
}


/***/ }),

/***/ "./node_modules/d3-format/src/locale.js":
/*!**********************************************!*\
  !*** ./node_modules/d3-format/src/locale.js ***!
  \**********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _exponent_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./exponent.js */ "./node_modules/d3-format/src/exponent.js");
/* harmony import */ var _formatGroup_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./formatGroup.js */ "./node_modules/d3-format/src/formatGroup.js");
/* harmony import */ var _formatNumerals_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./formatNumerals.js */ "./node_modules/d3-format/src/formatNumerals.js");
/* harmony import */ var _formatSpecifier_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./formatSpecifier.js */ "./node_modules/d3-format/src/formatSpecifier.js");
/* harmony import */ var _formatTrim_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./formatTrim.js */ "./node_modules/d3-format/src/formatTrim.js");
/* harmony import */ var _formatTypes_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./formatTypes.js */ "./node_modules/d3-format/src/formatTypes.js");
/* harmony import */ var _formatPrefixAuto_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./formatPrefixAuto.js */ "./node_modules/d3-format/src/formatPrefixAuto.js");
/* harmony import */ var _identity_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./identity.js */ "./node_modules/d3-format/src/identity.js");









var map = Array.prototype.map,
    prefixes = ["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];

/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(locale) {
  var group = locale.grouping === undefined || locale.thousands === undefined ? _identity_js__WEBPACK_IMPORTED_MODULE_0__["default"] : (0,_formatGroup_js__WEBPACK_IMPORTED_MODULE_1__["default"])(map.call(locale.grouping, Number), locale.thousands + ""),
      currencyPrefix = locale.currency === undefined ? "" : locale.currency[0] + "",
      currencySuffix = locale.currency === undefined ? "" : locale.currency[1] + "",
      decimal = locale.decimal === undefined ? "." : locale.decimal + "",
      numerals = locale.numerals === undefined ? _identity_js__WEBPACK_IMPORTED_MODULE_0__["default"] : (0,_formatNumerals_js__WEBPACK_IMPORTED_MODULE_2__["default"])(map.call(locale.numerals, String)),
      percent = locale.percent === undefined ? "%" : locale.percent + "",
      minus = locale.minus === undefined ? "-" : locale.minus + "",
      nan = locale.nan === undefined ? "NaN" : locale.nan + "";

  function newFormat(specifier) {
    specifier = (0,_formatSpecifier_js__WEBPACK_IMPORTED_MODULE_3__["default"])(specifier);

    var fill = specifier.fill,
        align = specifier.align,
        sign = specifier.sign,
        symbol = specifier.symbol,
        zero = specifier.zero,
        width = specifier.width,
        comma = specifier.comma,
        precision = specifier.precision,
        trim = specifier.trim,
        type = specifier.type;

    // The "n" type is an alias for ",g".
    if (type === "n") comma = true, type = "g";

    // The "" type, and any invalid type, is an alias for ".12~g".
    else if (!_formatTypes_js__WEBPACK_IMPORTED_MODULE_4__["default"][type]) precision === undefined && (precision = 12), trim = true, type = "g";

    // If zero fill is specified, padding goes after sign and before digits.
    if (zero || (fill === "0" && align === "=")) zero = true, fill = "0", align = "=";

    // Compute the prefix and suffix.
    // For SI-prefix, the suffix is lazily computed.
    var prefix = symbol === "$" ? currencyPrefix : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : "",
        suffix = symbol === "$" ? currencySuffix : /[%p]/.test(type) ? percent : "";

    // What format function should we use?
    // Is this an integer type?
    // Can this type generate exponential notation?
    var formatType = _formatTypes_js__WEBPACK_IMPORTED_MODULE_4__["default"][type],
        maybeSuffix = /[defgprs%]/.test(type);

    // Set the default precision if not specified,
    // or clamp the specified precision to the supported range.
    // For significant precision, it must be in [1, 21].
    // For fixed precision, it must be in [0, 20].
    precision = precision === undefined ? 6
        : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision))
        : Math.max(0, Math.min(20, precision));

    function format(value) {
      var valuePrefix = prefix,
          valueSuffix = suffix,
          i, n, c;

      if (type === "c") {
        valueSuffix = formatType(value) + valueSuffix;
        value = "";
      } else {
        value = +value;

        // Determine the sign. -0 is not less than 0, but 1 / -0 is!
        var valueNegative = value < 0 || 1 / value < 0;

        // Perform the initial formatting.
        value = isNaN(value) ? nan : formatType(Math.abs(value), precision);

        // Trim insignificant zeros.
        if (trim) value = (0,_formatTrim_js__WEBPACK_IMPORTED_MODULE_5__["default"])(value);

        // If a negative value rounds to zero after formatting, and no explicit positive sign is requested, hide the sign.
        if (valueNegative && +value === 0 && sign !== "+") valueNegative = false;

        // Compute the prefix and suffix.
        valuePrefix = (valueNegative ? (sign === "(" ? sign : minus) : sign === "-" || sign === "(" ? "" : sign) + valuePrefix;
        valueSuffix = (type === "s" ? prefixes[8 + _formatPrefixAuto_js__WEBPACK_IMPORTED_MODULE_6__.prefixExponent / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : "");

        // Break the formatted value into the integer “value” part that can be
        // grouped, and fractional or exponential “suffix” part that is not.
        if (maybeSuffix) {
          i = -1, n = value.length;
          while (++i < n) {
            if (c = value.charCodeAt(i), 48 > c || c > 57) {
              valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;
              value = value.slice(0, i);
              break;
            }
          }
        }
      }

      // If the fill character is not "0", grouping is applied before padding.
      if (comma && !zero) value = group(value, Infinity);

      // Compute the padding.
      var length = valuePrefix.length + value.length + valueSuffix.length,
          padding = length < width ? new Array(width - length + 1).join(fill) : "";

      // If the fill character is "0", grouping is applied after padding.
      if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = "";

      // Reconstruct the final output based on the desired alignment.
      switch (align) {
        case "<": value = valuePrefix + value + valueSuffix + padding; break;
        case "=": value = valuePrefix + padding + value + valueSuffix; break;
        case "^": value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length); break;
        default: value = padding + valuePrefix + value + valueSuffix; break;
      }

      return numerals(value);
    }

    format.toString = function() {
      return specifier + "";
    };

    return format;
  }

  function formatPrefix(specifier, value) {
    var f = newFormat((specifier = (0,_formatSpecifier_js__WEBPACK_IMPORTED_MODULE_3__["default"])(specifier), specifier.type = "f", specifier)),
        e = Math.max(-8, Math.min(8, Math.floor((0,_exponent_js__WEBPACK_IMPORTED_MODULE_7__["default"])(value) / 3))) * 3,
        k = Math.pow(10, -e),
        prefix = prefixes[8 + e / 3];
    return function(value) {
      return f(k * value) + prefix;
    };
  }

  return {
    format: newFormat,
    formatPrefix: formatPrefix
  };
}


/***/ }),

/***/ "./node_modules/d3-format/src/precisionFixed.js":
/*!******************************************************!*\
  !*** ./node_modules/d3-format/src/precisionFixed.js ***!
  \******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _exponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./exponent.js */ "./node_modules/d3-format/src/exponent.js");


/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(step) {
  return Math.max(0, -(0,_exponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Math.abs(step)));
}


/***/ }),

/***/ "./node_modules/d3-format/src/precisionPrefix.js":
/*!*******************************************************!*\
  !*** ./node_modules/d3-format/src/precisionPrefix.js ***!
  \*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _exponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./exponent.js */ "./node_modules/d3-format/src/exponent.js");


/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(step, value) {
  return Math.max(0, Math.max(-8, Math.min(8, Math.floor((0,_exponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])(value) / 3))) * 3 - (0,_exponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Math.abs(step)));
}


/***/ }),

/***/ "./node_modules/d3-format/src/precisionRound.js":
/*!******************************************************!*\
  !*** ./node_modules/d3-format/src/precisionRound.js ***!
  \******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _exponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./exponent.js */ "./node_modules/d3-format/src/exponent.js");


/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(step, max) {
  step = Math.abs(step), max = Math.abs(max) - step;
  return Math.max(0, (0,_exponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])(max) - (0,_exponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])(step)) + 1;
}


/***/ }),

/***/ "./node_modules/d3-interpolate/src/array.js":
/*!**************************************************!*\
  !*** ./node_modules/d3-interpolate/src/array.js ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   "genericArray": () => (/* binding */ genericArray)
/* harmony export */ });
/* harmony import */ var _value_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./value.js */ "./node_modules/d3-interpolate/src/value.js");
/* harmony import */ var _numberArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./numberArray.js */ "./node_modules/d3-interpolate/src/numberArray.js");



/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(a, b) {
  return ((0,_numberArray_js__WEBPACK_IMPORTED_MODULE_0__.isNumberArray)(b) ? _numberArray_js__WEBPACK_IMPORTED_MODULE_0__["default"] : genericArray)(a, b);
}

function genericArray(a, b) {
  var nb = b ? b.length : 0,
      na = a ? Math.min(nb, a.length) : 0,
      x = new Array(na),
      c = new Array(nb),
      i;

  for (i = 0; i < na; ++i) x[i] = (0,_value_js__WEBPACK_IMPORTED_MODULE_1__["default"])(a[i], b[i]);
  for (; i < nb; ++i) c[i] = b[i];

  return function(t) {
    for (i = 0; i < na; ++i) c[i] = x[i](t);
    return c;
  };
}


/***/ }),

/***/ "./node_modules/d3-interpolate/src/basis.js":
/*!**************************************************!*\
  !*** ./node_modules/d3-interpolate/src/basis.js ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "basis": () => (/* binding */ basis),
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
function basis(t1, v0, v1, v2, v3) {
  var t2 = t1 * t1, t3 = t2 * t1;
  return ((1 - 3 * t1 + 3 * t2 - t3) * v0
      + (4 - 6 * t2 + 3 * t3) * v1
      + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2
      + t3 * v3) / 6;
}

/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(values) {
  var n = values.length - 1;
  return function(t) {
    var i = t <= 0 ? (t = 0) : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n),
        v1 = values[i],
        v2 = values[i + 1],
        v0 = i > 0 ? values[i - 1] : 2 * v1 - v2,
        v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1;
    return basis((t - i / n) * n, v0, v1, v2, v3);
  };
}


/***/ }),

/***/ "./node_modules/d3-interpolate/src/basisClosed.js":
/*!********************************************************!*\
  !*** ./node_modules/d3-interpolate/src/basisClosed.js ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _basis_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basis.js */ "./node_modules/d3-interpolate/src/basis.js");


/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(values) {
  var n = values.length;
  return function(t) {
    var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n),
        v0 = values[(i + n - 1) % n],
        v1 = values[i % n],
        v2 = values[(i + 1) % n],
        v3 = values[(i + 2) % n];
    return (0,_basis_js__WEBPACK_IMPORTED_MODULE_0__.basis)((t - i / n) * n, v0, v1, v2, v3);
  };
}


/***/ }),

/***/ "./node_modules/d3-interpolate/src/color.js":
/*!**************************************************!*\
  !*** ./node_modules/d3-interpolate/src/color.js ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "hue": () => (/* binding */ hue),
/* harmony export */   "gamma": () => (/* binding */ gamma),
/* harmony export */   "default": () => (/* binding */ nogamma)
/* harmony export */ });
/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant.js */ "./node_modules/d3-interpolate/src/constant.js");


function linear(a, d) {
  return function(t) {
    return a + t * d;
  };
}

function exponential(a, b, y) {
  return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) {
    return Math.pow(a + t * b, y);
  };
}

function hue(a, b) {
  var d = b - a;
  return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : (0,_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(isNaN(a) ? b : a);
}

function gamma(y) {
  return (y = +y) === 1 ? nogamma : function(a, b) {
    return b - a ? exponential(a, b, y) : (0,_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(isNaN(a) ? b : a);
  };
}

function nogamma(a, b) {
  var d = b - a;
  return d ? linear(a, d) : (0,_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(isNaN(a) ? b : a);
}


/***/ }),

/***/ "./node_modules/d3-interpolate/src/constant.js":
/*!*****************************************************!*\
  !*** ./node_modules/d3-interpolate/src/constant.js ***!
  \*****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(x) {
  return function() {
    return x;
  };
}


/***/ }),

/***/ "./node_modules/d3-interpolate/src/cubehelix.js":
/*!******************************************************!*\
  !*** ./node_modules/d3-interpolate/src/cubehelix.js ***!
  \******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   "cubehelixLong": () => (/* binding */ cubehelixLong)
/* harmony export */ });
/* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/cubehelix.js");
/* harmony import */ var _color_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color.js */ "./node_modules/d3-interpolate/src/color.js");



function cubehelix(hue) {
  return (function cubehelixGamma(y) {
    y = +y;

    function cubehelix(start, end) {
      var h = hue((start = (0,d3_color__WEBPACK_IMPORTED_MODULE_0__["default"])(start)).h, (end = (0,d3_color__WEBPACK_IMPORTED_MODULE_0__["default"])(end)).h),
          s = (0,_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.s, end.s),
          l = (0,_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.l, end.l),
          opacity = (0,_color_js__WEBPACK_IMPORTED_MODULE_1__["default"])(start.opacity, end.opacity);
      return function(t) {
        start.h = h(t);
        start.s = s(t);
        start.l = l(Math.pow(t, y));
        start.opacity = opacity(t);
        return start + "";
      };
    }

    cubehelix.gamma = cubehelixGamma;

    return cubehelix;
  })(1);
}

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (cubehelix(_color_js__WEBPACK_IMPORTED_MODULE_1__.hue));
var cubehelixLong = cubehelix(_color_js__WEBPACK_IMPORTED_MODULE_1__["default"]);


/***/ }),

/***/ "./node_modules/d3-interpolate/src/date.js":
/*!*************************************************!*\
  !*** ./node_modules/d3-interpolate/src/date.js ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(a, b) {
  var d = new Date;
  return a = +a, b = +b, function(t) {
    return d.setTime(a * (1 - t) + b * t), d;
  };
}


/***/ }),

/***/ "./node_modules/d3-interpolate/src/number.js":
/*!***************************************************!*\
  !*** ./node_modules/d3-interpolate/src/number.js ***!
  \***************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(a, b) {
  return a = +a, b = +b, function(t) {
    return a * (1 - t) + b * t;
  };
}


/***/ }),

/***/ "./node_modules/d3-interpolate/src/numberArray.js":
/*!********************************************************!*\
  !*** ./node_modules/d3-interpolate/src/numberArray.js ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   "isNumberArray": () => (/* binding */ isNumberArray)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(a, b) {
  if (!b) b = [];
  var n = a ? Math.min(b.length, a.length) : 0,
      c = b.slice(),
      i;
  return function(t) {
    for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t;
    return c;
  };
}

function isNumberArray(x) {
  return ArrayBuffer.isView(x) && !(x instanceof DataView);
}


/***/ }),

/***/ "./node_modules/d3-interpolate/src/object.js":
/*!***************************************************!*\
  !*** ./node_modules/d3-interpolate/src/object.js ***!
  \***************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _value_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./value.js */ "./node_modules/d3-interpolate/src/value.js");


/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(a, b) {
  var i = {},
      c = {},
      k;

  if (a === null || typeof a !== "object") a = {};
  if (b === null || typeof b !== "object") b = {};

  for (k in b) {
    if (k in a) {
      i[k] = (0,_value_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a[k], b[k]);
    } else {
      c[k] = b[k];
    }
  }

  return function(t) {
    for (k in i) c[k] = i[k](t);
    return c;
  };
}


/***/ }),

/***/ "./node_modules/d3-interpolate/src/rgb.js":
/*!************************************************!*\
  !*** ./node_modules/d3-interpolate/src/rgb.js ***!
  \************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   "rgbBasis": () => (/* binding */ rgbBasis),
/* harmony export */   "rgbBasisClosed": () => (/* binding */ rgbBasisClosed)
/* harmony export */ });
/* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/color.js");
/* harmony import */ var _basis_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./basis.js */ "./node_modules/d3-interpolate/src/basis.js");
/* harmony import */ var _basisClosed_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./basisClosed.js */ "./node_modules/d3-interpolate/src/basisClosed.js");
/* harmony import */ var _color_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./color.js */ "./node_modules/d3-interpolate/src/color.js");





/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((function rgbGamma(y) {
  var color = (0,_color_js__WEBPACK_IMPORTED_MODULE_0__.gamma)(y);

  function rgb(start, end) {
    var r = color((start = (0,d3_color__WEBPACK_IMPORTED_MODULE_1__.rgb)(start)).r, (end = (0,d3_color__WEBPACK_IMPORTED_MODULE_1__.rgb)(end)).r),
        g = color(start.g, end.g),
        b = color(start.b, end.b),
        opacity = (0,_color_js__WEBPACK_IMPORTED_MODULE_0__["default"])(start.opacity, end.opacity);
    return function(t) {
      start.r = r(t);
      start.g = g(t);
      start.b = b(t);
      start.opacity = opacity(t);
      return start + "";
    };
  }

  rgb.gamma = rgbGamma;

  return rgb;
})(1));

function rgbSpline(spline) {
  return function(colors) {
    var n = colors.length,
        r = new Array(n),
        g = new Array(n),
        b = new Array(n),
        i, color;
    for (i = 0; i < n; ++i) {
      color = (0,d3_color__WEBPACK_IMPORTED_MODULE_1__.rgb)(colors[i]);
      r[i] = color.r || 0;
      g[i] = color.g || 0;
      b[i] = color.b || 0;
    }
    r = spline(r);
    g = spline(g);
    b = spline(b);
    color.opacity = 1;
    return function(t) {
      color.r = r(t);
      color.g = g(t);
      color.b = b(t);
      return color + "";
    };
  };
}

var rgbBasis = rgbSpline(_basis_js__WEBPACK_IMPORTED_MODULE_2__["default"]);
var rgbBasisClosed = rgbSpline(_basisClosed_js__WEBPACK_IMPORTED_MODULE_3__["default"]);


/***/ }),

/***/ "./node_modules/d3-interpolate/src/round.js":
/*!**************************************************!*\
  !*** ./node_modules/d3-interpolate/src/round.js ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(a, b) {
  return a = +a, b = +b, function(t) {
    return Math.round(a * (1 - t) + b * t);
  };
}


/***/ }),

/***/ "./node_modules/d3-interpolate/src/string.js":
/*!***************************************************!*\
  !*** ./node_modules/d3-interpolate/src/string.js ***!
  \***************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _number_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./number.js */ "./node_modules/d3-interpolate/src/number.js");


var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,
    reB = new RegExp(reA.source, "g");

function zero(b) {
  return function() {
    return b;
  };
}

function one(b) {
  return function(t) {
    return b(t) + "";
  };
}

/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(a, b) {
  var bi = reA.lastIndex = reB.lastIndex = 0, // scan index for next number in b
      am, // current match in a
      bm, // current match in b
      bs, // string preceding current number in b, if any
      i = -1, // index in s
      s = [], // string constants and placeholders
      q = []; // number interpolators

  // Coerce inputs to strings.
  a = a + "", b = b + "";

  // Interpolate pairs of numbers in a & b.
  while ((am = reA.exec(a))
      && (bm = reB.exec(b))) {
    if ((bs = bm.index) > bi) { // a string precedes the next number in b
      bs = b.slice(bi, bs);
      if (s[i]) s[i] += bs; // coalesce with previous string
      else s[++i] = bs;
    }
    if ((am = am[0]) === (bm = bm[0])) { // numbers in a & b match
      if (s[i]) s[i] += bm; // coalesce with previous string
      else s[++i] = bm;
    } else { // interpolate non-matching numbers
      s[++i] = null;
      q.push({i: i, x: (0,_number_js__WEBPACK_IMPORTED_MODULE_0__["default"])(am, bm)});
    }
    bi = reB.lastIndex;
  }

  // Add remains of b.
  if (bi < b.length) {
    bs = b.slice(bi);
    if (s[i]) s[i] += bs; // coalesce with previous string
    else s[++i] = bs;
  }

  // Special optimization for only a single match.
  // Otherwise, interpolate each of the numbers and rejoin the string.
  return s.length < 2 ? (q[0]
      ? one(q[0].x)
      : zero(b))
      : (b = q.length, function(t) {
          for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t);
          return s.join("");
        });
}


/***/ }),

/***/ "./node_modules/d3-interpolate/src/value.js":
/*!**************************************************!*\
  !*** ./node_modules/d3-interpolate/src/value.js ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/color.js");
/* harmony import */ var _rgb_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./rgb.js */ "./node_modules/d3-interpolate/src/rgb.js");
/* harmony import */ var _array_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./array.js */ "./node_modules/d3-interpolate/src/array.js");
/* harmony import */ var _date_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./date.js */ "./node_modules/d3-interpolate/src/date.js");
/* harmony import */ var _number_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./number.js */ "./node_modules/d3-interpolate/src/number.js");
/* harmony import */ var _object_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./object.js */ "./node_modules/d3-interpolate/src/object.js");
/* harmony import */ var _string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./string.js */ "./node_modules/d3-interpolate/src/string.js");
/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant.js */ "./node_modules/d3-interpolate/src/constant.js");
/* harmony import */ var _numberArray_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./numberArray.js */ "./node_modules/d3-interpolate/src/numberArray.js");










/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(a, b) {
  var t = typeof b, c;
  return b == null || t === "boolean" ? (0,_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(b)
      : (t === "number" ? _number_js__WEBPACK_IMPORTED_MODULE_1__["default"]
      : t === "string" ? ((c = (0,d3_color__WEBPACK_IMPORTED_MODULE_2__["default"])(b)) ? (b = c, _rgb_js__WEBPACK_IMPORTED_MODULE_3__["default"]) : _string_js__WEBPACK_IMPORTED_MODULE_4__["default"])
      : b instanceof d3_color__WEBPACK_IMPORTED_MODULE_2__["default"] ? _rgb_js__WEBPACK_IMPORTED_MODULE_3__["default"]
      : b instanceof Date ? _date_js__WEBPACK_IMPORTED_MODULE_5__["default"]
      : (0,_numberArray_js__WEBPACK_IMPORTED_MODULE_6__.isNumberArray)(b) ? _numberArray_js__WEBPACK_IMPORTED_MODULE_6__["default"]
      : Array.isArray(b) ? _array_js__WEBPACK_IMPORTED_MODULE_7__.genericArray
      : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? _object_js__WEBPACK_IMPORTED_MODULE_8__["default"]
      : _number_js__WEBPACK_IMPORTED_MODULE_1__["default"])(a, b);
}


/***/ }),

/***/ "./node_modules/d3-path/src/path.js":
/*!******************************************!*\
  !*** ./node_modules/d3-path/src/path.js ***!
  \******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
var pi = Math.PI,
    tau = 2 * pi,
    epsilon = 1e-6,
    tauEpsilon = tau - epsilon;

function Path() {
  this._x0 = this._y0 = // start of current subpath
  this._x1 = this._y1 = null; // end of current subpath
  this._ = "";
}

function path() {
  return new Path;
}

Path.prototype = path.prototype = {
  constructor: Path,
  moveTo: function(x, y) {
    this._ += "M" + (this._x0 = this._x1 = +x) + "," + (this._y0 = this._y1 = +y);
  },
  closePath: function() {
    if (this._x1 !== null) {
      this._x1 = this._x0, this._y1 = this._y0;
      this._ += "Z";
    }
  },
  lineTo: function(x, y) {
    this._ += "L" + (this._x1 = +x) + "," + (this._y1 = +y);
  },
  quadraticCurveTo: function(x1, y1, x, y) {
    this._ += "Q" + (+x1) + "," + (+y1) + "," + (this._x1 = +x) + "," + (this._y1 = +y);
  },
  bezierCurveTo: function(x1, y1, x2, y2, x, y) {
    this._ += "C" + (+x1) + "," + (+y1) + "," + (+x2) + "," + (+y2) + "," + (this._x1 = +x) + "," + (this._y1 = +y);
  },
  arcTo: function(x1, y1, x2, y2, r) {
    x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r;
    var x0 = this._x1,
        y0 = this._y1,
        x21 = x2 - x1,
        y21 = y2 - y1,
        x01 = x0 - x1,
        y01 = y0 - y1,
        l01_2 = x01 * x01 + y01 * y01;

    // Is the radius negative? Error.
    if (r < 0) throw new Error("negative radius: " + r);

    // Is this path empty? Move to (x1,y1).
    if (this._x1 === null) {
      this._ += "M" + (this._x1 = x1) + "," + (this._y1 = y1);
    }

    // Or, is (x1,y1) coincident with (x0,y0)? Do nothing.
    else if (!(l01_2 > epsilon));

    // Or, are (x0,y0), (x1,y1) and (x2,y2) collinear?
    // Equivalently, is (x1,y1) coincident with (x2,y2)?
    // Or, is the radius zero? Line to (x1,y1).
    else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) {
      this._ += "L" + (this._x1 = x1) + "," + (this._y1 = y1);
    }

    // Otherwise, draw an arc!
    else {
      var x20 = x2 - x0,
          y20 = y2 - y0,
          l21_2 = x21 * x21 + y21 * y21,
          l20_2 = x20 * x20 + y20 * y20,
          l21 = Math.sqrt(l21_2),
          l01 = Math.sqrt(l01_2),
          l = r * Math.tan((pi - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2),
          t01 = l / l01,
          t21 = l / l21;

      // If the start tangent is not coincident with (x0,y0), line to.
      if (Math.abs(t01 - 1) > epsilon) {
        this._ += "L" + (x1 + t01 * x01) + "," + (y1 + t01 * y01);
      }

      this._ += "A" + r + "," + r + ",0,0," + (+(y01 * x20 > x01 * y20)) + "," + (this._x1 = x1 + t21 * x21) + "," + (this._y1 = y1 + t21 * y21);
    }
  },
  arc: function(x, y, r, a0, a1, ccw) {
    x = +x, y = +y, r = +r, ccw = !!ccw;
    var dx = r * Math.cos(a0),
        dy = r * Math.sin(a0),
        x0 = x + dx,
        y0 = y + dy,
        cw = 1 ^ ccw,
        da = ccw ? a0 - a1 : a1 - a0;

    // Is the radius negative? Error.
    if (r < 0) throw new Error("negative radius: " + r);

    // Is this path empty? Move to (x0,y0).
    if (this._x1 === null) {
      this._ += "M" + x0 + "," + y0;
    }

    // Or, is (x0,y0) not coincident with the previous point? Line to (x0,y0).
    else if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) {
      this._ += "L" + x0 + "," + y0;
    }

    // Is this arc empty? We’re done.
    if (!r) return;

    // Does the angle go the wrong way? Flip the direction.
    if (da < 0) da = da % tau + tau;

    // Is this a complete circle? Draw two arcs to complete the circle.
    if (da > tauEpsilon) {
      this._ += "A" + r + "," + r + ",0,1," + cw + "," + (x - dx) + "," + (y - dy) + "A" + r + "," + r + ",0,1," + cw + "," + (this._x1 = x0) + "," + (this._y1 = y0);
    }

    // Is this arc non-empty? Draw an arc!
    else if (da > epsilon) {
      this._ += "A" + r + "," + r + ",0," + (+(da >= pi)) + "," + cw + "," + (this._x1 = x + r * Math.cos(a1)) + "," + (this._y1 = y + r * Math.sin(a1));
    }
  },
  rect: function(x, y, w, h) {
    this._ += "M" + (this._x0 = this._x1 = +x) + "," + (this._y0 = this._y1 = +y) + "h" + (+w) + "v" + (+h) + "h" + (-w) + "Z";
  },
  toString: function() {
    return this._;
  }
};

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (path);


/***/ }),

/***/ "./node_modules/d3-scale/index.js":
/*!****************************************!*\
  !*** ./node_modules/d3-scale/index.js ***!
  \****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "scaleBand": () => (/* reexport safe */ _src_band__WEBPACK_IMPORTED_MODULE_0__["default"]),
/* harmony export */   "scalePoint": () => (/* reexport safe */ _src_band__WEBPACK_IMPORTED_MODULE_0__.point),
/* harmony export */   "scaleIdentity": () => (/* reexport safe */ _src_identity__WEBPACK_IMPORTED_MODULE_1__["default"]),
/* harmony export */   "scaleLinear": () => (/* reexport safe */ _src_linear__WEBPACK_IMPORTED_MODULE_2__["default"]),
/* harmony export */   "scaleLog": () => (/* reexport safe */ _src_log__WEBPACK_IMPORTED_MODULE_3__["default"]),
/* harmony export */   "scaleOrdinal": () => (/* reexport safe */ _src_ordinal__WEBPACK_IMPORTED_MODULE_4__["default"]),
/* harmony export */   "scaleImplicit": () => (/* reexport safe */ _src_ordinal__WEBPACK_IMPORTED_MODULE_4__.implicit),
/* harmony export */   "scalePow": () => (/* reexport safe */ _src_pow__WEBPACK_IMPORTED_MODULE_5__["default"]),
/* harmony export */   "scaleSqrt": () => (/* reexport safe */ _src_pow__WEBPACK_IMPORTED_MODULE_5__.sqrt),
/* harmony export */   "scaleQuantile": () => (/* reexport safe */ _src_quantile__WEBPACK_IMPORTED_MODULE_6__["default"]),
/* harmony export */   "scaleQuantize": () => (/* reexport safe */ _src_quantize__WEBPACK_IMPORTED_MODULE_7__["default"]),
/* harmony export */   "scaleThreshold": () => (/* reexport safe */ _src_threshold__WEBPACK_IMPORTED_MODULE_8__["default"]),
/* harmony export */   "scaleTime": () => (/* reexport safe */ _src_time__WEBPACK_IMPORTED_MODULE_9__["default"]),
/* harmony export */   "scaleUtc": () => (/* reexport safe */ _src_utcTime__WEBPACK_IMPORTED_MODULE_10__["default"]),
/* harmony export */   "schemeCategory10": () => (/* reexport safe */ _src_category10__WEBPACK_IMPORTED_MODULE_11__["default"]),
/* harmony export */   "schemeCategory20b": () => (/* reexport safe */ _src_category20b__WEBPACK_IMPORTED_MODULE_12__["default"]),
/* harmony export */   "schemeCategory20c": () => (/* reexport safe */ _src_category20c__WEBPACK_IMPORTED_MODULE_13__["default"]),
/* harmony export */   "schemeCategory20": () => (/* reexport safe */ _src_category20__WEBPACK_IMPORTED_MODULE_14__["default"]),
/* harmony export */   "interpolateCubehelixDefault": () => (/* reexport safe */ _src_cubehelix__WEBPACK_IMPORTED_MODULE_15__["default"]),
/* harmony export */   "interpolateRainbow": () => (/* reexport safe */ _src_rainbow__WEBPACK_IMPORTED_MODULE_16__["default"]),
/* harmony export */   "interpolateWarm": () => (/* reexport safe */ _src_rainbow__WEBPACK_IMPORTED_MODULE_16__.warm),
/* harmony export */   "interpolateCool": () => (/* reexport safe */ _src_rainbow__WEBPACK_IMPORTED_MODULE_16__.cool),
/* harmony export */   "interpolateViridis": () => (/* reexport safe */ _src_viridis__WEBPACK_IMPORTED_MODULE_17__["default"]),
/* harmony export */   "interpolateMagma": () => (/* reexport safe */ _src_viridis__WEBPACK_IMPORTED_MODULE_17__.magma),
/* harmony export */   "interpolateInferno": () => (/* reexport safe */ _src_viridis__WEBPACK_IMPORTED_MODULE_17__.inferno),
/* harmony export */   "interpolatePlasma": () => (/* reexport safe */ _src_viridis__WEBPACK_IMPORTED_MODULE_17__.plasma),
/* harmony export */   "scaleSequential": () => (/* reexport safe */ _src_sequential__WEBPACK_IMPORTED_MODULE_18__["default"])
/* harmony export */ });
/* harmony import */ var _src_band__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/band */ "./node_modules/d3-scale/src/band.js");
/* harmony import */ var _src_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/identity */ "./node_modules/d3-scale/src/identity.js");
/* harmony import */ var _src_linear__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/linear */ "./node_modules/d3-scale/src/linear.js");
/* harmony import */ var _src_log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./src/log */ "./node_modules/d3-scale/src/log.js");
/* harmony import */ var _src_ordinal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./src/ordinal */ "./node_modules/d3-scale/src/ordinal.js");
/* harmony import */ var _src_pow__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./src/pow */ "./node_modules/d3-scale/src/pow.js");
/* harmony import */ var _src_quantile__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./src/quantile */ "./node_modules/d3-scale/src/quantile.js");
/* harmony import */ var _src_quantize__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./src/quantize */ "./node_modules/d3-scale/src/quantize.js");
/* harmony import */ var _src_threshold__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./src/threshold */ "./node_modules/d3-scale/src/threshold.js");
/* harmony import */ var _src_time__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./src/time */ "./node_modules/d3-scale/src/time.js");
/* harmony import */ var _src_utcTime__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./src/utcTime */ "./node_modules/d3-scale/src/utcTime.js");
/* harmony import */ var _src_category10__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./src/category10 */ "./node_modules/d3-scale/src/category10.js");
/* harmony import */ var _src_category20b__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./src/category20b */ "./node_modules/d3-scale/src/category20b.js");
/* harmony import */ var _src_category20c__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./src/category20c */ "./node_modules/d3-scale/src/category20c.js");
/* harmony import */ var _src_category20__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./src/category20 */ "./node_modules/d3-scale/src/category20.js");
/* harmony import */ var _src_cubehelix__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./src/cubehelix */ "./node_modules/d3-scale/src/cubehelix.js");
/* harmony import */ var _src_rainbow__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./src/rainbow */ "./node_modules/d3-scale/src/rainbow.js");
/* harmony import */ var _src_viridis__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./src/viridis */ "./node_modules/d3-scale/src/viridis.js");
/* harmony import */ var _src_sequential__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./src/sequential */ "./node_modules/d3-scale/src/sequential.js");







































/***/ }),

/***/ "./node_modules/d3-scale/src/array.js":
/*!********************************************!*\
  !*** ./node_modules/d3-scale/src/array.js ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "map": () => (/* binding */ map),
/* harmony export */   "slice": () => (/* binding */ slice)
/* harmony export */ });
var array = Array.prototype;

var map = array.map;
var slice = array.slice;


/***/ }),

/***/ "./node_modules/d3-scale/src/band.js":
/*!*******************************************!*\
  !*** ./node_modules/d3-scale/src/band.js ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ band),
/* harmony export */   "point": () => (/* binding */ point)
/* harmony export */ });
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
/* harmony import */ var _ordinal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ordinal */ "./node_modules/d3-scale/src/ordinal.js");



function band() {
  var scale = (0,_ordinal__WEBPACK_IMPORTED_MODULE_1__["default"])().unknown(undefined),
      domain = scale.domain,
      ordinalRange = scale.range,
      range = [0, 1],
      step,
      bandwidth,
      round = false,
      paddingInner = 0,
      paddingOuter = 0,
      align = 0.5;

  delete scale.unknown;

  function rescale() {
    var n = domain().length,
        reverse = range[1] < range[0],
        start = range[reverse - 0],
        stop = range[1 - reverse];
    step = (stop - start) / Math.max(1, n - paddingInner + paddingOuter * 2);
    if (round) step = Math.floor(step);
    start += (stop - start - step * (n - paddingInner)) * align;
    bandwidth = step * (1 - paddingInner);
    if (round) start = Math.round(start), bandwidth = Math.round(bandwidth);
    var values = (0,d3_array__WEBPACK_IMPORTED_MODULE_0__.range)(n).map(function(i) { return start + step * i; });
    return ordinalRange(reverse ? values.reverse() : values);
  }

  scale.domain = function(_) {
    return arguments.length ? (domain(_), rescale()) : domain();
  };

  scale.range = function(_) {
    return arguments.length ? (range = [+_[0], +_[1]], rescale()) : range.slice();
  };

  scale.rangeRound = function(_) {
    return range = [+_[0], +_[1]], round = true, rescale();
  };

  scale.bandwidth = function() {
    return bandwidth;
  };

  scale.step = function() {
    return step;
  };

  scale.round = function(_) {
    return arguments.length ? (round = !!_, rescale()) : round;
  };

  scale.padding = function(_) {
    return arguments.length ? (paddingInner = paddingOuter = Math.max(0, Math.min(1, _)), rescale()) : paddingInner;
  };

  scale.paddingInner = function(_) {
    return arguments.length ? (paddingInner = Math.max(0, Math.min(1, _)), rescale()) : paddingInner;
  };

  scale.paddingOuter = function(_) {
    return arguments.length ? (paddingOuter = Math.max(0, Math.min(1, _)), rescale()) : paddingOuter;
  };

  scale.align = function(_) {
    return arguments.length ? (align = Math.max(0, Math.min(1, _)), rescale()) : align;
  };

  scale.copy = function() {
    return band()
        .domain(domain())
        .range(range)
        .round(round)
        .paddingInner(paddingInner)
        .paddingOuter(paddingOuter)
        .align(align);
  };

  return rescale();
}

function pointish(scale) {
  var copy = scale.copy;

  scale.padding = scale.paddingOuter;
  delete scale.paddingInner;
  delete scale.paddingOuter;

  scale.copy = function() {
    return pointish(copy());
  };

  return scale;
}

function point() {
  return pointish(band().paddingInner(1));
}


/***/ }),

/***/ "./node_modules/d3-scale/src/category10.js":
/*!*************************************************!*\
  !*** ./node_modules/d3-scale/src/category10.js ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./colors */ "./node_modules/d3-scale/src/colors.js");


/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"));


/***/ }),

/***/ "./node_modules/d3-scale/src/category20.js":
/*!*************************************************!*\
  !*** ./node_modules/d3-scale/src/category20.js ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./colors */ "./node_modules/d3-scale/src/colors.js");


/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"));


/***/ }),

/***/ "./node_modules/d3-scale/src/category20b.js":
/*!**************************************************!*\
  !*** ./node_modules/d3-scale/src/category20b.js ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./colors */ "./node_modules/d3-scale/src/colors.js");


/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"));


/***/ }),

/***/ "./node_modules/d3-scale/src/category20c.js":
/*!**************************************************!*\
  !*** ./node_modules/d3-scale/src/category20c.js ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./colors */ "./node_modules/d3-scale/src/colors.js");


/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"));


/***/ }),

/***/ "./node_modules/d3-scale/src/colors.js":
/*!*********************************************!*\
  !*** ./node_modules/d3-scale/src/colors.js ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(s) {
  return s.match(/.{6}/g).map(function(x) {
    return "#" + x;
  });
}


/***/ }),

/***/ "./node_modules/d3-scale/src/constant.js":
/*!***********************************************!*\
  !*** ./node_modules/d3-scale/src/constant.js ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(x) {
  return function() {
    return x;
  };
}


/***/ }),

/***/ "./node_modules/d3-scale/src/continuous.js":
/*!*************************************************!*\
  !*** ./node_modules/d3-scale/src/continuous.js ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "deinterpolateLinear": () => (/* binding */ deinterpolateLinear),
/* harmony export */   "copy": () => (/* binding */ copy),
/* harmony export */   "default": () => (/* binding */ continuous)
/* harmony export */ });
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/value.js");
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/round.js");
/* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js");
/* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-scale/src/constant.js");
/* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./number */ "./node_modules/d3-scale/src/number.js");






var unit = [0, 1];

function deinterpolateLinear(a, b) {
  return (b -= (a = +a))
      ? function(x) { return (x - a) / b; }
      : (0,_constant__WEBPACK_IMPORTED_MODULE_2__["default"])(b);
}

function deinterpolateClamp(deinterpolate) {
  return function(a, b) {
    var d = deinterpolate(a = +a, b = +b);
    return function(x) { return x <= a ? 0 : x >= b ? 1 : d(x); };
  };
}

function reinterpolateClamp(reinterpolate) {
  return function(a, b) {
    var r = reinterpolate(a = +a, b = +b);
    return function(t) { return t <= 0 ? a : t >= 1 ? b : r(t); };
  };
}

function bimap(domain, range, deinterpolate, reinterpolate) {
  var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1];
  if (d1 < d0) d0 = deinterpolate(d1, d0), r0 = reinterpolate(r1, r0);
  else d0 = deinterpolate(d0, d1), r0 = reinterpolate(r0, r1);
  return function(x) { return r0(d0(x)); };
}

function polymap(domain, range, deinterpolate, reinterpolate) {
  var j = Math.min(domain.length, range.length) - 1,
      d = new Array(j),
      r = new Array(j),
      i = -1;

  // Reverse descending domains.
  if (domain[j] < domain[0]) {
    domain = domain.slice().reverse();
    range = range.slice().reverse();
  }

  while (++i < j) {
    d[i] = deinterpolate(domain[i], domain[i + 1]);
    r[i] = reinterpolate(range[i], range[i + 1]);
  }

  return function(x) {
    var i = (0,d3_array__WEBPACK_IMPORTED_MODULE_0__.bisect)(domain, x, 1, j) - 1;
    return r[i](d[i](x));
  };
}

function copy(source, target) {
  return target
      .domain(source.domain())
      .range(source.range())
      .interpolate(source.interpolate())
      .clamp(source.clamp());
}

// deinterpolate(a, b)(x) takes a domain value x in [a,b] and returns the corresponding parameter t in [0,1].
// reinterpolate(a, b)(t) takes a parameter t in [0,1] and returns the corresponding domain value x in [a,b].
function continuous(deinterpolate, reinterpolate) {
  var domain = unit,
      range = unit,
      interpolate = d3_interpolate__WEBPACK_IMPORTED_MODULE_4__["default"],
      clamp = false,
      piecewise,
      output,
      input;

  function rescale() {
    piecewise = Math.min(domain.length, range.length) > 2 ? polymap : bimap;
    output = input = null;
    return scale;
  }

  function scale(x) {
    return (output || (output = piecewise(domain, range, clamp ? deinterpolateClamp(deinterpolate) : deinterpolate, interpolate)))(+x);
  }

  scale.invert = function(y) {
    return (input || (input = piecewise(range, domain, deinterpolateLinear, clamp ? reinterpolateClamp(reinterpolate) : reinterpolate)))(+y);
  };

  scale.domain = function(_) {
    return arguments.length ? (domain = _array__WEBPACK_IMPORTED_MODULE_1__.map.call(_, _number__WEBPACK_IMPORTED_MODULE_3__["default"]), rescale()) : domain.slice();
  };

  scale.range = function(_) {
    return arguments.length ? (range = _array__WEBPACK_IMPORTED_MODULE_1__.slice.call(_), rescale()) : range.slice();
  };

  scale.rangeRound = function(_) {
    return range = _array__WEBPACK_IMPORTED_MODULE_1__.slice.call(_), interpolate = d3_interpolate__WEBPACK_IMPORTED_MODULE_5__["default"], rescale();
  };

  scale.clamp = function(_) {
    return arguments.length ? (clamp = !!_, rescale()) : clamp;
  };

  scale.interpolate = function(_) {
    return arguments.length ? (interpolate = _, rescale()) : interpolate;
  };

  return rescale();
}


/***/ }),

/***/ "./node_modules/d3-scale/src/cubehelix.js":
/*!************************************************!*\
  !*** ./node_modules/d3-scale/src/cubehelix.js ***!
  \************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/cubehelix.js");
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/cubehelix.js");



/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,d3_interpolate__WEBPACK_IMPORTED_MODULE_0__.cubehelixLong)((0,d3_color__WEBPACK_IMPORTED_MODULE_1__["default"])(300, 0.5, 0.0), (0,d3_color__WEBPACK_IMPORTED_MODULE_1__["default"])(-240, 0.5, 1.0)));


/***/ }),

/***/ "./node_modules/d3-scale/src/identity.js":
/*!***********************************************!*\
  !*** ./node_modules/d3-scale/src/identity.js ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ identity)
/* harmony export */ });
/* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js");
/* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./linear */ "./node_modules/d3-scale/src/linear.js");
/* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./number */ "./node_modules/d3-scale/src/number.js");




function identity() {
  var domain = [0, 1];

  function scale(x) {
    return +x;
  }

  scale.invert = scale;

  scale.domain = scale.range = function(_) {
    return arguments.length ? (domain = _array__WEBPACK_IMPORTED_MODULE_0__.map.call(_, _number__WEBPACK_IMPORTED_MODULE_2__["default"]), scale) : domain.slice();
  };

  scale.copy = function() {
    return identity().domain(domain);
  };

  return (0,_linear__WEBPACK_IMPORTED_MODULE_1__.linearish)(scale);
}


/***/ }),

/***/ "./node_modules/d3-scale/src/linear.js":
/*!*********************************************!*\
  !*** ./node_modules/d3-scale/src/linear.js ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "linearish": () => (/* binding */ linearish),
/* harmony export */   "default": () => (/* binding */ linear)
/* harmony export */ });
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/number.js");
/* harmony import */ var _continuous__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./continuous */ "./node_modules/d3-scale/src/continuous.js");
/* harmony import */ var _tickFormat__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tickFormat */ "./node_modules/d3-scale/src/tickFormat.js");





function linearish(scale) {
  var domain = scale.domain;

  scale.ticks = function(count) {
    var d = domain();
    return (0,d3_array__WEBPACK_IMPORTED_MODULE_0__.ticks)(d[0], d[d.length - 1], count == null ? 10 : count);
  };

  scale.tickFormat = function(count, specifier) {
    return (0,_tickFormat__WEBPACK_IMPORTED_MODULE_2__["default"])(domain(), count, specifier);
  };

  scale.nice = function(count) {
    if (count == null) count = 10;

    var d = domain(),
        i0 = 0,
        i1 = d.length - 1,
        start = d[i0],
        stop = d[i1],
        step;

    if (stop < start) {
      step = start, start = stop, stop = step;
      step = i0, i0 = i1, i1 = step;
    }

    step = (0,d3_array__WEBPACK_IMPORTED_MODULE_0__.tickIncrement)(start, stop, count);

    if (step > 0) {
      start = Math.floor(start / step) * step;
      stop = Math.ceil(stop / step) * step;
      step = (0,d3_array__WEBPACK_IMPORTED_MODULE_0__.tickIncrement)(start, stop, count);
    } else if (step < 0) {
      start = Math.ceil(start * step) / step;
      stop = Math.floor(stop * step) / step;
      step = (0,d3_array__WEBPACK_IMPORTED_MODULE_0__.tickIncrement)(start, stop, count);
    }

    if (step > 0) {
      d[i0] = Math.floor(start / step) * step;
      d[i1] = Math.ceil(stop / step) * step;
      domain(d);
    } else if (step < 0) {
      d[i0] = Math.ceil(start * step) / step;
      d[i1] = Math.floor(stop * step) / step;
      domain(d);
    }

    return scale;
  };

  return scale;
}

function linear() {
  var scale = (0,_continuous__WEBPACK_IMPORTED_MODULE_1__["default"])(_continuous__WEBPACK_IMPORTED_MODULE_1__.deinterpolateLinear, d3_interpolate__WEBPACK_IMPORTED_MODULE_3__["default"]);

  scale.copy = function() {
    return (0,_continuous__WEBPACK_IMPORTED_MODULE_1__.copy)(scale, linear());
  };

  return linearish(scale);
}


/***/ }),

/***/ "./node_modules/d3-scale/src/log.js":
/*!******************************************!*\
  !*** ./node_modules/d3-scale/src/log.js ***!
  \******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ log)
/* harmony export */ });
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
/* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! d3-format */ "./node_modules/d3-format/src/defaultLocale.js");
/* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-scale/src/constant.js");
/* harmony import */ var _nice__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./nice */ "./node_modules/d3-scale/src/nice.js");
/* harmony import */ var _continuous__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./continuous */ "./node_modules/d3-scale/src/continuous.js");






function deinterpolate(a, b) {
  return (b = Math.log(b / a))
      ? function(x) { return Math.log(x / a) / b; }
      : (0,_constant__WEBPACK_IMPORTED_MODULE_1__["default"])(b);
}

function reinterpolate(a, b) {
  return a < 0
      ? function(t) { return -Math.pow(-b, t) * Math.pow(-a, 1 - t); }
      : function(t) { return Math.pow(b, t) * Math.pow(a, 1 - t); };
}

function pow10(x) {
  return isFinite(x) ? +("1e" + x) : x < 0 ? 0 : x;
}

function powp(base) {
  return base === 10 ? pow10
      : base === Math.E ? Math.exp
      : function(x) { return Math.pow(base, x); };
}

function logp(base) {
  return base === Math.E ? Math.log
      : base === 10 && Math.log10
      || base === 2 && Math.log2
      || (base = Math.log(base), function(x) { return Math.log(x) / base; });
}

function reflect(f) {
  return function(x) {
    return -f(-x);
  };
}

function log() {
  var scale = (0,_continuous__WEBPACK_IMPORTED_MODULE_3__["default"])(deinterpolate, reinterpolate).domain([1, 10]),
      domain = scale.domain,
      base = 10,
      logs = logp(10),
      pows = powp(10);

  function rescale() {
    logs = logp(base), pows = powp(base);
    if (domain()[0] < 0) logs = reflect(logs), pows = reflect(pows);
    return scale;
  }

  scale.base = function(_) {
    return arguments.length ? (base = +_, rescale()) : base;
  };

  scale.domain = function(_) {
    return arguments.length ? (domain(_), rescale()) : domain();
  };

  scale.ticks = function(count) {
    var d = domain(),
        u = d[0],
        v = d[d.length - 1],
        r;

    if (r = v < u) i = u, u = v, v = i;

    var i = logs(u),
        j = logs(v),
        p,
        k,
        t,
        n = count == null ? 10 : +count,
        z = [];

    if (!(base % 1) && j - i < n) {
      i = Math.round(i) - 1, j = Math.round(j) + 1;
      if (u > 0) for (; i < j; ++i) {
        for (k = 1, p = pows(i); k < base; ++k) {
          t = p * k;
          if (t < u) continue;
          if (t > v) break;
          z.push(t);
        }
      } else for (; i < j; ++i) {
        for (k = base - 1, p = pows(i); k >= 1; --k) {
          t = p * k;
          if (t < u) continue;
          if (t > v) break;
          z.push(t);
        }
      }
    } else {
      z = (0,d3_array__WEBPACK_IMPORTED_MODULE_0__.ticks)(i, j, Math.min(j - i, n)).map(pows);
    }

    return r ? z.reverse() : z;
  };

  scale.tickFormat = function(count, specifier) {
    if (specifier == null) specifier = base === 10 ? ".0e" : ",";
    if (typeof specifier !== "function") specifier = (0,d3_format__WEBPACK_IMPORTED_MODULE_4__.format)(specifier);
    if (count === Infinity) return specifier;
    if (count == null) count = 10;
    var k = Math.max(1, base * count / scale.ticks().length); // TODO fast estimate?
    return function(d) {
      var i = d / pows(Math.round(logs(d)));
      if (i * base < base - 0.5) i *= base;
      return i <= k ? specifier(d) : "";
    };
  };

  scale.nice = function() {
    return domain((0,_nice__WEBPACK_IMPORTED_MODULE_2__["default"])(domain(), {
      floor: function(x) { return pows(Math.floor(logs(x))); },
      ceil: function(x) { return pows(Math.ceil(logs(x))); }
    }));
  };

  scale.copy = function() {
    return (0,_continuous__WEBPACK_IMPORTED_MODULE_3__.copy)(scale, log().base(base));
  };

  return scale;
}


/***/ }),

/***/ "./node_modules/d3-scale/src/nice.js":
/*!*******************************************!*\
  !*** ./node_modules/d3-scale/src/nice.js ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(domain, interval) {
  domain = domain.slice();

  var i0 = 0,
      i1 = domain.length - 1,
      x0 = domain[i0],
      x1 = domain[i1],
      t;

  if (x1 < x0) {
    t = i0, i0 = i1, i1 = t;
    t = x0, x0 = x1, x1 = t;
  }

  domain[i0] = interval.floor(x0);
  domain[i1] = interval.ceil(x1);
  return domain;
}


/***/ }),

/***/ "./node_modules/d3-scale/src/number.js":
/*!*********************************************!*\
  !*** ./node_modules/d3-scale/src/number.js ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(x) {
  return +x;
}


/***/ }),

/***/ "./node_modules/d3-scale/src/ordinal.js":
/*!**********************************************!*\
  !*** ./node_modules/d3-scale/src/ordinal.js ***!
  \**********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "implicit": () => (/* binding */ implicit),
/* harmony export */   "default": () => (/* binding */ ordinal)
/* harmony export */ });
/* harmony import */ var d3_collection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-collection */ "./node_modules/d3-collection/src/index.js");
/* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js");



var implicit = {name: "implicit"};

function ordinal(range) {
  var index = (0,d3_collection__WEBPACK_IMPORTED_MODULE_0__.map)(),
      domain = [],
      unknown = implicit;

  range = range == null ? [] : _array__WEBPACK_IMPORTED_MODULE_1__.slice.call(range);

  function scale(d) {
    var key = d + "", i = index.get(key);
    if (!i) {
      if (unknown !== implicit) return unknown;
      index.set(key, i = domain.push(d));
    }
    return range[(i - 1) % range.length];
  }

  scale.domain = function(_) {
    if (!arguments.length) return domain.slice();
    domain = [], index = (0,d3_collection__WEBPACK_IMPORTED_MODULE_0__.map)();
    var i = -1, n = _.length, d, key;
    while (++i < n) if (!index.has(key = (d = _[i]) + "")) index.set(key, domain.push(d));
    return scale;
  };

  scale.range = function(_) {
    return arguments.length ? (range = _array__WEBPACK_IMPORTED_MODULE_1__.slice.call(_), scale) : range.slice();
  };

  scale.unknown = function(_) {
    return arguments.length ? (unknown = _, scale) : unknown;
  };

  scale.copy = function() {
    return ordinal()
        .domain(domain)
        .range(range)
        .unknown(unknown);
  };

  return scale;
}


/***/ }),

/***/ "./node_modules/d3-scale/src/pow.js":
/*!******************************************!*\
  !*** ./node_modules/d3-scale/src/pow.js ***!
  \******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ pow),
/* harmony export */   "sqrt": () => (/* binding */ sqrt)
/* harmony export */ });
/* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant */ "./node_modules/d3-scale/src/constant.js");
/* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./linear */ "./node_modules/d3-scale/src/linear.js");
/* harmony import */ var _continuous__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./continuous */ "./node_modules/d3-scale/src/continuous.js");




function raise(x, exponent) {
  return x < 0 ? -Math.pow(-x, exponent) : Math.pow(x, exponent);
}

function pow() {
  var exponent = 1,
      scale = (0,_continuous__WEBPACK_IMPORTED_MODULE_2__["default"])(deinterpolate, reinterpolate),
      domain = scale.domain;

  function deinterpolate(a, b) {
    return (b = raise(b, exponent) - (a = raise(a, exponent)))
        ? function(x) { return (raise(x, exponent) - a) / b; }
        : (0,_constant__WEBPACK_IMPORTED_MODULE_0__["default"])(b);
  }

  function reinterpolate(a, b) {
    b = raise(b, exponent) - (a = raise(a, exponent));
    return function(t) { return raise(a + b * t, 1 / exponent); };
  }

  scale.exponent = function(_) {
    return arguments.length ? (exponent = +_, domain(domain())) : exponent;
  };

  scale.copy = function() {
    return (0,_continuous__WEBPACK_IMPORTED_MODULE_2__.copy)(scale, pow().exponent(exponent));
  };

  return (0,_linear__WEBPACK_IMPORTED_MODULE_1__.linearish)(scale);
}

function sqrt() {
  return pow().exponent(0.5);
}


/***/ }),

/***/ "./node_modules/d3-scale/src/quantile.js":
/*!***********************************************!*\
  !*** ./node_modules/d3-scale/src/quantile.js ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ quantile)
/* harmony export */ });
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
/* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js");



function quantile() {
  var domain = [],
      range = [],
      thresholds = [];

  function rescale() {
    var i = 0, n = Math.max(1, range.length);
    thresholds = new Array(n - 1);
    while (++i < n) thresholds[i - 1] = (0,d3_array__WEBPACK_IMPORTED_MODULE_0__.quantile)(domain, i / n);
    return scale;
  }

  function scale(x) {
    if (!isNaN(x = +x)) return range[(0,d3_array__WEBPACK_IMPORTED_MODULE_0__.bisect)(thresholds, x)];
  }

  scale.invertExtent = function(y) {
    var i = range.indexOf(y);
    return i < 0 ? [NaN, NaN] : [
      i > 0 ? thresholds[i - 1] : domain[0],
      i < thresholds.length ? thresholds[i] : domain[domain.length - 1]
    ];
  };

  scale.domain = function(_) {
    if (!arguments.length) return domain.slice();
    domain = [];
    for (var i = 0, n = _.length, d; i < n; ++i) if (d = _[i], d != null && !isNaN(d = +d)) domain.push(d);
    domain.sort(d3_array__WEBPACK_IMPORTED_MODULE_0__.ascending);
    return rescale();
  };

  scale.range = function(_) {
    return arguments.length ? (range = _array__WEBPACK_IMPORTED_MODULE_1__.slice.call(_), rescale()) : range.slice();
  };

  scale.quantiles = function() {
    return thresholds.slice();
  };

  scale.copy = function() {
    return quantile()
        .domain(domain)
        .range(range);
  };

  return scale;
}


/***/ }),

/***/ "./node_modules/d3-scale/src/quantize.js":
/*!***********************************************!*\
  !*** ./node_modules/d3-scale/src/quantize.js ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ quantize)
/* harmony export */ });
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
/* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js");
/* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./linear */ "./node_modules/d3-scale/src/linear.js");




function quantize() {
  var x0 = 0,
      x1 = 1,
      n = 1,
      domain = [0.5],
      range = [0, 1];

  function scale(x) {
    if (x <= x) return range[(0,d3_array__WEBPACK_IMPORTED_MODULE_0__.bisect)(domain, x, 0, n)];
  }

  function rescale() {
    var i = -1;
    domain = new Array(n);
    while (++i < n) domain[i] = ((i + 1) * x1 - (i - n) * x0) / (n + 1);
    return scale;
  }

  scale.domain = function(_) {
    return arguments.length ? (x0 = +_[0], x1 = +_[1], rescale()) : [x0, x1];
  };

  scale.range = function(_) {
    return arguments.length ? (n = (range = _array__WEBPACK_IMPORTED_MODULE_1__.slice.call(_)).length - 1, rescale()) : range.slice();
  };

  scale.invertExtent = function(y) {
    var i = range.indexOf(y);
    return i < 0 ? [NaN, NaN]
        : i < 1 ? [x0, domain[0]]
        : i >= n ? [domain[n - 1], x1]
        : [domain[i - 1], domain[i]];
  };

  scale.copy = function() {
    return quantize()
        .domain([x0, x1])
        .range(range);
  };

  return (0,_linear__WEBPACK_IMPORTED_MODULE_2__.linearish)(scale);
}


/***/ }),

/***/ "./node_modules/d3-scale/src/rainbow.js":
/*!**********************************************!*\
  !*** ./node_modules/d3-scale/src/rainbow.js ***!
  \**********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "warm": () => (/* binding */ warm),
/* harmony export */   "cool": () => (/* binding */ cool),
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var d3_color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-color */ "./node_modules/d3-color/src/cubehelix.js");
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/cubehelix.js");



var warm = (0,d3_interpolate__WEBPACK_IMPORTED_MODULE_0__.cubehelixLong)((0,d3_color__WEBPACK_IMPORTED_MODULE_1__["default"])(-100, 0.75, 0.35), (0,d3_color__WEBPACK_IMPORTED_MODULE_1__["default"])(80, 1.50, 0.8));

var cool = (0,d3_interpolate__WEBPACK_IMPORTED_MODULE_0__.cubehelixLong)((0,d3_color__WEBPACK_IMPORTED_MODULE_1__["default"])(260, 0.75, 0.35), (0,d3_color__WEBPACK_IMPORTED_MODULE_1__["default"])(80, 1.50, 0.8));

var rainbow = (0,d3_color__WEBPACK_IMPORTED_MODULE_1__["default"])();

/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(t) {
  if (t < 0 || t > 1) t -= Math.floor(t);
  var ts = Math.abs(t - 0.5);
  rainbow.h = 360 * t - 100;
  rainbow.s = 1.5 - 1.5 * ts;
  rainbow.l = 0.8 - 0.9 * ts;
  return rainbow + "";
}


/***/ }),

/***/ "./node_modules/d3-scale/src/sequential.js":
/*!*************************************************!*\
  !*** ./node_modules/d3-scale/src/sequential.js ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ sequential)
/* harmony export */ });
/* harmony import */ var _linear__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear */ "./node_modules/d3-scale/src/linear.js");


function sequential(interpolator) {
  var x0 = 0,
      x1 = 1,
      clamp = false;

  function scale(x) {
    var t = (x - x0) / (x1 - x0);
    return interpolator(clamp ? Math.max(0, Math.min(1, t)) : t);
  }

  scale.domain = function(_) {
    return arguments.length ? (x0 = +_[0], x1 = +_[1], scale) : [x0, x1];
  };

  scale.clamp = function(_) {
    return arguments.length ? (clamp = !!_, scale) : clamp;
  };

  scale.interpolator = function(_) {
    return arguments.length ? (interpolator = _, scale) : interpolator;
  };

  scale.copy = function() {
    return sequential(interpolator).domain([x0, x1]).clamp(clamp);
  };

  return (0,_linear__WEBPACK_IMPORTED_MODULE_0__.linearish)(scale);
}


/***/ }),

/***/ "./node_modules/d3-scale/src/threshold.js":
/*!************************************************!*\
  !*** ./node_modules/d3-scale/src/threshold.js ***!
  \************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ threshold)
/* harmony export */ });
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
/* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js");



function threshold() {
  var domain = [0.5],
      range = [0, 1],
      n = 1;

  function scale(x) {
    if (x <= x) return range[(0,d3_array__WEBPACK_IMPORTED_MODULE_0__.bisect)(domain, x, 0, n)];
  }

  scale.domain = function(_) {
    return arguments.length ? (domain = _array__WEBPACK_IMPORTED_MODULE_1__.slice.call(_), n = Math.min(domain.length, range.length - 1), scale) : domain.slice();
  };

  scale.range = function(_) {
    return arguments.length ? (range = _array__WEBPACK_IMPORTED_MODULE_1__.slice.call(_), n = Math.min(domain.length, range.length - 1), scale) : range.slice();
  };

  scale.invertExtent = function(y) {
    var i = range.indexOf(y);
    return [domain[i - 1], domain[i]];
  };

  scale.copy = function() {
    return threshold()
        .domain(domain)
        .range(range);
  };

  return scale;
}


/***/ }),

/***/ "./node_modules/d3-scale/src/tickFormat.js":
/*!*************************************************!*\
  !*** ./node_modules/d3-scale/src/tickFormat.js ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
/* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-format */ "./node_modules/d3-format/src/formatSpecifier.js");
/* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-format */ "./node_modules/d3-format/src/precisionPrefix.js");
/* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-format */ "./node_modules/d3-format/src/defaultLocale.js");
/* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! d3-format */ "./node_modules/d3-format/src/precisionRound.js");
/* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! d3-format */ "./node_modules/d3-format/src/precisionFixed.js");



/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(domain, count, specifier) {
  var start = domain[0],
      stop = domain[domain.length - 1],
      step = (0,d3_array__WEBPACK_IMPORTED_MODULE_0__.tickStep)(start, stop, count == null ? 10 : count),
      precision;
  specifier = (0,d3_format__WEBPACK_IMPORTED_MODULE_1__["default"])(specifier == null ? ",f" : specifier);
  switch (specifier.type) {
    case "s": {
      var value = Math.max(Math.abs(start), Math.abs(stop));
      if (specifier.precision == null && !isNaN(precision = (0,d3_format__WEBPACK_IMPORTED_MODULE_2__["default"])(step, value))) specifier.precision = precision;
      return (0,d3_format__WEBPACK_IMPORTED_MODULE_3__.formatPrefix)(specifier, value);
    }
    case "":
    case "e":
    case "g":
    case "p":
    case "r": {
      if (specifier.precision == null && !isNaN(precision = (0,d3_format__WEBPACK_IMPORTED_MODULE_4__["default"])(step, Math.max(Math.abs(start), Math.abs(stop))))) specifier.precision = precision - (specifier.type === "e");
      break;
    }
    case "f":
    case "%": {
      if (specifier.precision == null && !isNaN(precision = (0,d3_format__WEBPACK_IMPORTED_MODULE_5__["default"])(step))) specifier.precision = precision - (specifier.type === "%") * 2;
      break;
    }
  }
  return (0,d3_format__WEBPACK_IMPORTED_MODULE_3__.format)(specifier);
}


/***/ }),

/***/ "./node_modules/d3-scale/src/time.js":
/*!*******************************************!*\
  !*** ./node_modules/d3-scale/src/time.js ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "calendar": () => (/* binding */ calendar),
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "./node_modules/d3-array/src/index.js");
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/number.js");
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/year.js");
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/month.js");
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/week.js");
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/day.js");
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/hour.js");
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/minute.js");
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/second.js");
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/millisecond.js");
/* harmony import */ var d3_time_format__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! d3-time-format */ "./node_modules/d3-time-format/src/defaultLocale.js");
/* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "./node_modules/d3-scale/src/array.js");
/* harmony import */ var _continuous__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./continuous */ "./node_modules/d3-scale/src/continuous.js");
/* harmony import */ var _nice__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nice */ "./node_modules/d3-scale/src/nice.js");








var durationSecond = 1000,
    durationMinute = durationSecond * 60,
    durationHour = durationMinute * 60,
    durationDay = durationHour * 24,
    durationWeek = durationDay * 7,
    durationMonth = durationDay * 30,
    durationYear = durationDay * 365;

function date(t) {
  return new Date(t);
}

function number(t) {
  return t instanceof Date ? +t : +new Date(+t);
}

function calendar(year, month, week, day, hour, minute, second, millisecond, format) {
  var scale = (0,_continuous__WEBPACK_IMPORTED_MODULE_2__["default"])(_continuous__WEBPACK_IMPORTED_MODULE_2__.deinterpolateLinear, d3_interpolate__WEBPACK_IMPORTED_MODULE_4__["default"]),
      invert = scale.invert,
      domain = scale.domain;

  var formatMillisecond = format(".%L"),
      formatSecond = format(":%S"),
      formatMinute = format("%I:%M"),
      formatHour = format("%I %p"),
      formatDay = format("%a %d"),
      formatWeek = format("%b %d"),
      formatMonth = format("%B"),
      formatYear = format("%Y");

  var tickIntervals = [
    [second,  1,      durationSecond],
    [second,  5,  5 * durationSecond],
    [second, 15, 15 * durationSecond],
    [second, 30, 30 * durationSecond],
    [minute,  1,      durationMinute],
    [minute,  5,  5 * durationMinute],
    [minute, 15, 15 * durationMinute],
    [minute, 30, 30 * durationMinute],
    [  hour,  1,      durationHour  ],
    [  hour,  3,  3 * durationHour  ],
    [  hour,  6,  6 * durationHour  ],
    [  hour, 12, 12 * durationHour  ],
    [   day,  1,      durationDay   ],
    [   day,  2,  2 * durationDay   ],
    [  week,  1,      durationWeek  ],
    [ month,  1,      durationMonth ],
    [ month,  3,  3 * durationMonth ],
    [  year,  1,      durationYear  ]
  ];

  function tickFormat(date) {
    return (second(date) < date ? formatMillisecond
        : minute(date) < date ? formatSecond
        : hour(date) < date ? formatMinute
        : day(date) < date ? formatHour
        : month(date) < date ? (week(date) < date ? formatDay : formatWeek)
        : year(date) < date ? formatMonth
        : formatYear)(date);
  }

  function tickInterval(interval, start, stop, step) {
    if (interval == null) interval = 10;

    // If a desired tick count is specified, pick a reasonable tick interval
    // based on the extent of the domain and a rough estimate of tick size.
    // Otherwise, assume interval is already a time interval and use it.
    if (typeof interval === "number") {
      var target = Math.abs(stop - start) / interval,
          i = (0,d3_array__WEBPACK_IMPORTED_MODULE_0__.bisector)(function(i) { return i[2]; }).right(tickIntervals, target);
      if (i === tickIntervals.length) {
        step = (0,d3_array__WEBPACK_IMPORTED_MODULE_0__.tickStep)(start / durationYear, stop / durationYear, interval);
        interval = year;
      } else if (i) {
        i = tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i];
        step = i[1];
        interval = i[0];
      } else {
        step = Math.max((0,d3_array__WEBPACK_IMPORTED_MODULE_0__.tickStep)(start, stop, interval), 1);
        interval = millisecond;
      }
    }

    return step == null ? interval : interval.every(step);
  }

  scale.invert = function(y) {
    return new Date(invert(y));
  };

  scale.domain = function(_) {
    return arguments.length ? domain(_array__WEBPACK_IMPORTED_MODULE_1__.map.call(_, number)) : domain().map(date);
  };

  scale.ticks = function(interval, step) {
    var d = domain(),
        t0 = d[0],
        t1 = d[d.length - 1],
        r = t1 < t0,
        t;
    if (r) t = t0, t0 = t1, t1 = t;
    t = tickInterval(interval, t0, t1, step);
    t = t ? t.range(t0, t1 + 1) : []; // inclusive stop
    return r ? t.reverse() : t;
  };

  scale.tickFormat = function(count, specifier) {
    return specifier == null ? tickFormat : format(specifier);
  };

  scale.nice = function(interval, step) {
    var d = domain();
    return (interval = tickInterval(interval, d[0], d[d.length - 1], step))
        ? domain((0,_nice__WEBPACK_IMPORTED_MODULE_3__["default"])(d, interval))
        : scale;
  };

  scale.copy = function() {
    return (0,_continuous__WEBPACK_IMPORTED_MODULE_2__.copy)(scale, calendar(year, month, week, day, hour, minute, second, millisecond, format));
  };

  return scale;
}

/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {
  return calendar(d3_time__WEBPACK_IMPORTED_MODULE_5__["default"], d3_time__WEBPACK_IMPORTED_MODULE_6__["default"], d3_time__WEBPACK_IMPORTED_MODULE_7__.sunday, d3_time__WEBPACK_IMPORTED_MODULE_8__["default"], d3_time__WEBPACK_IMPORTED_MODULE_9__["default"], d3_time__WEBPACK_IMPORTED_MODULE_10__["default"], d3_time__WEBPACK_IMPORTED_MODULE_11__["default"], d3_time__WEBPACK_IMPORTED_MODULE_12__["default"], d3_time_format__WEBPACK_IMPORTED_MODULE_13__.timeFormat).domain([new Date(2000, 0, 1), new Date(2000, 0, 2)]);
}


/***/ }),

/***/ "./node_modules/d3-scale/src/utcTime.js":
/*!**********************************************!*\
  !*** ./node_modules/d3-scale/src/utcTime.js ***!
  \**********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _time__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./time */ "./node_modules/d3-scale/src/time.js");
/* harmony import */ var d3_time_format__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! d3-time-format */ "./node_modules/d3-time-format/src/defaultLocale.js");
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/utcYear.js");
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/utcMonth.js");
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/utcWeek.js");
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/utcDay.js");
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/utcHour.js");
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/utcMinute.js");
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/second.js");
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/millisecond.js");




/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {
  return (0,_time__WEBPACK_IMPORTED_MODULE_0__.calendar)(d3_time__WEBPACK_IMPORTED_MODULE_1__["default"], d3_time__WEBPACK_IMPORTED_MODULE_2__["default"], d3_time__WEBPACK_IMPORTED_MODULE_3__.utcSunday, d3_time__WEBPACK_IMPORTED_MODULE_4__["default"], d3_time__WEBPACK_IMPORTED_MODULE_5__["default"], d3_time__WEBPACK_IMPORTED_MODULE_6__["default"], d3_time__WEBPACK_IMPORTED_MODULE_7__["default"], d3_time__WEBPACK_IMPORTED_MODULE_8__["default"], d3_time_format__WEBPACK_IMPORTED_MODULE_9__.utcFormat).domain([Date.UTC(2000, 0, 1), Date.UTC(2000, 0, 2)]);
}


/***/ }),

/***/ "./node_modules/d3-scale/src/viridis.js":
/*!**********************************************!*\
  !*** ./node_modules/d3-scale/src/viridis.js ***!
  \**********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   "magma": () => (/* binding */ magma),
/* harmony export */   "inferno": () => (/* binding */ inferno),
/* harmony export */   "plasma": () => (/* binding */ plasma)
/* harmony export */ });
/* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./colors */ "./node_modules/d3-scale/src/colors.js");


function ramp(range) {
  var n = range.length;
  return function(t) {
    return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];
  };
}

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ramp((0,_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")));

var magma = ramp((0,_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));

var inferno = ramp((0,_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));

var plasma = ramp((0,_colors__WEBPACK_IMPORTED_MODULE_0__["default"])("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));


/***/ }),

/***/ "./node_modules/d3-shape/src/arc.js":
/*!******************************************!*\
  !*** ./node_modules/d3-shape/src/arc.js ***!
  \******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-path */ "./node_modules/d3-path/src/path.js");
/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant.js */ "./node_modules/d3-shape/src/constant.js");
/* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math.js */ "./node_modules/d3-shape/src/math.js");




function arcInnerRadius(d) {
  return d.innerRadius;
}

function arcOuterRadius(d) {
  return d.outerRadius;
}

function arcStartAngle(d) {
  return d.startAngle;
}

function arcEndAngle(d) {
  return d.endAngle;
}

function arcPadAngle(d) {
  return d && d.padAngle; // Note: optional!
}

function intersect(x0, y0, x1, y1, x2, y2, x3, y3) {
  var x10 = x1 - x0, y10 = y1 - y0,
      x32 = x3 - x2, y32 = y3 - y2,
      t = y32 * x10 - x32 * y10;
  if (t * t < _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon) return;
  t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;
  return [x0 + t * x10, y0 + t * y10];
}

// Compute perpendicular offset line of length rc.
// http://mathworld.wolfram.com/Circle-LineIntersection.html
function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {
  var x01 = x0 - x1,
      y01 = y0 - y1,
      lo = (cw ? rc : -rc) / (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sqrt)(x01 * x01 + y01 * y01),
      ox = lo * y01,
      oy = -lo * x01,
      x11 = x0 + ox,
      y11 = y0 + oy,
      x10 = x1 + ox,
      y10 = y1 + oy,
      x00 = (x11 + x10) / 2,
      y00 = (y11 + y10) / 2,
      dx = x10 - x11,
      dy = y10 - y11,
      d2 = dx * dx + dy * dy,
      r = r1 - rc,
      D = x11 * y10 - x10 * y11,
      d = (dy < 0 ? -1 : 1) * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sqrt)((0,_math_js__WEBPACK_IMPORTED_MODULE_0__.max)(0, r * r * d2 - D * D)),
      cx0 = (D * dy - dx * d) / d2,
      cy0 = (-D * dx - dy * d) / d2,
      cx1 = (D * dy + dx * d) / d2,
      cy1 = (-D * dx + dy * d) / d2,
      dx0 = cx0 - x00,
      dy0 = cy0 - y00,
      dx1 = cx1 - x00,
      dy1 = cy1 - y00;

  // Pick the closer of the two intersection points.
  // TODO Is there a faster way to determine which intersection to use?
  if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;

  return {
    cx: cx0,
    cy: cy0,
    x01: -ox,
    y01: -oy,
    x11: cx0 * (r1 / r - 1),
    y11: cy0 * (r1 / r - 1)
  };
}

/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {
  var innerRadius = arcInnerRadius,
      outerRadius = arcOuterRadius,
      cornerRadius = (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(0),
      padRadius = null,
      startAngle = arcStartAngle,
      endAngle = arcEndAngle,
      padAngle = arcPadAngle,
      context = null;

  function arc() {
    var buffer,
        r,
        r0 = +innerRadius.apply(this, arguments),
        r1 = +outerRadius.apply(this, arguments),
        a0 = startAngle.apply(this, arguments) - _math_js__WEBPACK_IMPORTED_MODULE_0__.halfPi,
        a1 = endAngle.apply(this, arguments) - _math_js__WEBPACK_IMPORTED_MODULE_0__.halfPi,
        da = (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.abs)(a1 - a0),
        cw = a1 > a0;

    if (!context) context = buffer = (0,d3_path__WEBPACK_IMPORTED_MODULE_2__["default"])();

    // Ensure that the outer radius is always larger than the inner radius.
    if (r1 < r0) r = r1, r1 = r0, r0 = r;

    // Is it a point?
    if (!(r1 > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon)) context.moveTo(0, 0);

    // Or is it a circle or annulus?
    else if (da > _math_js__WEBPACK_IMPORTED_MODULE_0__.tau - _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon) {
      context.moveTo(r1 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.cos)(a0), r1 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sin)(a0));
      context.arc(0, 0, r1, a0, a1, !cw);
      if (r0 > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon) {
        context.moveTo(r0 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.cos)(a1), r0 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sin)(a1));
        context.arc(0, 0, r0, a1, a0, cw);
      }
    }

    // Or is it a circular or annular sector?
    else {
      var a01 = a0,
          a11 = a1,
          a00 = a0,
          a10 = a1,
          da0 = da,
          da1 = da,
          ap = padAngle.apply(this, arguments) / 2,
          rp = (ap > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon) && (padRadius ? +padRadius.apply(this, arguments) : (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sqrt)(r0 * r0 + r1 * r1)),
          rc = (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.min)((0,_math_js__WEBPACK_IMPORTED_MODULE_0__.abs)(r1 - r0) / 2, +cornerRadius.apply(this, arguments)),
          rc0 = rc,
          rc1 = rc,
          t0,
          t1;

      // Apply padding? Note that since r1 ≥ r0, da1 ≥ da0.
      if (rp > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon) {
        var p0 = (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.asin)(rp / r0 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sin)(ap)),
            p1 = (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.asin)(rp / r1 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sin)(ap));
        if ((da0 -= p0 * 2) > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon) p0 *= (cw ? 1 : -1), a00 += p0, a10 -= p0;
        else da0 = 0, a00 = a10 = (a0 + a1) / 2;
        if ((da1 -= p1 * 2) > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon) p1 *= (cw ? 1 : -1), a01 += p1, a11 -= p1;
        else da1 = 0, a01 = a11 = (a0 + a1) / 2;
      }

      var x01 = r1 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.cos)(a01),
          y01 = r1 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sin)(a01),
          x10 = r0 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.cos)(a10),
          y10 = r0 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sin)(a10);

      // Apply rounded corners?
      if (rc > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon) {
        var x11 = r1 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.cos)(a11),
            y11 = r1 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sin)(a11),
            x00 = r0 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.cos)(a00),
            y00 = r0 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sin)(a00),
            oc;

        // Restrict the corner radius according to the sector angle.
        if (da < _math_js__WEBPACK_IMPORTED_MODULE_0__.pi && (oc = intersect(x01, y01, x00, y00, x11, y11, x10, y10))) {
          var ax = x01 - oc[0],
              ay = y01 - oc[1],
              bx = x11 - oc[0],
              by = y11 - oc[1],
              kc = 1 / (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sin)((0,_math_js__WEBPACK_IMPORTED_MODULE_0__.acos)((ax * bx + ay * by) / ((0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sqrt)(ax * ax + ay * ay) * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sqrt)(bx * bx + by * by))) / 2),
              lc = (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sqrt)(oc[0] * oc[0] + oc[1] * oc[1]);
          rc0 = (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.min)(rc, (r0 - lc) / (kc - 1));
          rc1 = (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.min)(rc, (r1 - lc) / (kc + 1));
        }
      }

      // Is the sector collapsed to a line?
      if (!(da1 > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon)) context.moveTo(x01, y01);

      // Does the sector’s outer ring have rounded corners?
      else if (rc1 > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon) {
        t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw);
        t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw);

        context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01);

        // Have the corners merged?
        if (rc1 < rc) context.arc(t0.cx, t0.cy, rc1, (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t0.y01, t0.x01), (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t1.y01, t1.x01), !cw);

        // Otherwise, draw the two corners and the ring.
        else {
          context.arc(t0.cx, t0.cy, rc1, (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t0.y01, t0.x01), (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t0.y11, t0.x11), !cw);
          context.arc(0, 0, r1, (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t0.cy + t0.y11, t0.cx + t0.x11), (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t1.cy + t1.y11, t1.cx + t1.x11), !cw);
          context.arc(t1.cx, t1.cy, rc1, (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t1.y11, t1.x11), (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t1.y01, t1.x01), !cw);
        }
      }

      // Or is the outer ring just a circular arc?
      else context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw);

      // Is there no inner ring, and it’s a circular sector?
      // Or perhaps it’s an annular sector collapsed due to padding?
      if (!(r0 > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon) || !(da0 > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon)) context.lineTo(x10, y10);

      // Does the sector’s inner ring (or point) have rounded corners?
      else if (rc0 > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon) {
        t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw);
        t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw);

        context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01);

        // Have the corners merged?
        if (rc0 < rc) context.arc(t0.cx, t0.cy, rc0, (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t0.y01, t0.x01), (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t1.y01, t1.x01), !cw);

        // Otherwise, draw the two corners and the ring.
        else {
          context.arc(t0.cx, t0.cy, rc0, (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t0.y01, t0.x01), (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t0.y11, t0.x11), !cw);
          context.arc(0, 0, r0, (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t0.cy + t0.y11, t0.cx + t0.x11), (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t1.cy + t1.y11, t1.cx + t1.x11), cw);
          context.arc(t1.cx, t1.cy, rc0, (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t1.y11, t1.x11), (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t1.y01, t1.x01), !cw);
        }
      }

      // Or is the inner ring just a circular arc?
      else context.arc(0, 0, r0, a10, a00, cw);
    }

    context.closePath();

    if (buffer) return context = null, buffer + "" || null;
  }

  arc.centroid = function() {
    var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2,
        a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - _math_js__WEBPACK_IMPORTED_MODULE_0__.pi / 2;
    return [(0,_math_js__WEBPACK_IMPORTED_MODULE_0__.cos)(a) * r, (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sin)(a) * r];
  };

  arc.innerRadius = function(_) {
    return arguments.length ? (innerRadius = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : innerRadius;
  };

  arc.outerRadius = function(_) {
    return arguments.length ? (outerRadius = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : outerRadius;
  };

  arc.cornerRadius = function(_) {
    return arguments.length ? (cornerRadius = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : cornerRadius;
  };

  arc.padRadius = function(_) {
    return arguments.length ? (padRadius = _ == null ? null : typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : padRadius;
  };

  arc.startAngle = function(_) {
    return arguments.length ? (startAngle = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : startAngle;
  };

  arc.endAngle = function(_) {
    return arguments.length ? (endAngle = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : endAngle;
  };

  arc.padAngle = function(_) {
    return arguments.length ? (padAngle = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), arc) : padAngle;
  };

  arc.context = function(_) {
    return arguments.length ? ((context = _ == null ? null : _), arc) : context;
  };

  return arc;
}


/***/ }),

/***/ "./node_modules/d3-shape/src/area.js":
/*!*******************************************!*\
  !*** ./node_modules/d3-shape/src/area.js ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-path */ "./node_modules/d3-path/src/path.js");
/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant.js */ "./node_modules/d3-shape/src/constant.js");
/* harmony import */ var _curve_linear_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./curve/linear.js */ "./node_modules/d3-shape/src/curve/linear.js");
/* harmony import */ var _line_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./line.js */ "./node_modules/d3-shape/src/line.js");
/* harmony import */ var _point_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./point.js */ "./node_modules/d3-shape/src/point.js");






/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {
  var x0 = _point_js__WEBPACK_IMPORTED_MODULE_0__.x,
      x1 = null,
      y0 = (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(0),
      y1 = _point_js__WEBPACK_IMPORTED_MODULE_0__.y,
      defined = (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(true),
      context = null,
      curve = _curve_linear_js__WEBPACK_IMPORTED_MODULE_2__["default"],
      output = null;

  function area(data) {
    var i,
        j,
        k,
        n = data.length,
        d,
        defined0 = false,
        buffer,
        x0z = new Array(n),
        y0z = new Array(n);

    if (context == null) output = curve(buffer = (0,d3_path__WEBPACK_IMPORTED_MODULE_3__["default"])());

    for (i = 0; i <= n; ++i) {
      if (!(i < n && defined(d = data[i], i, data)) === defined0) {
        if (defined0 = !defined0) {
          j = i;
          output.areaStart();
          output.lineStart();
        } else {
          output.lineEnd();
          output.lineStart();
          for (k = i - 1; k >= j; --k) {
            output.point(x0z[k], y0z[k]);
          }
          output.lineEnd();
          output.areaEnd();
        }
      }
      if (defined0) {
        x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data);
        output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]);
      }
    }

    if (buffer) return output = null, buffer + "" || null;
  }

  function arealine() {
    return (0,_line_js__WEBPACK_IMPORTED_MODULE_4__["default"])().defined(defined).curve(curve).context(context);
  }

  area.x = function(_) {
    return arguments.length ? (x0 = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), x1 = null, area) : x0;
  };

  area.x0 = function(_) {
    return arguments.length ? (x0 = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), area) : x0;
  };

  area.x1 = function(_) {
    return arguments.length ? (x1 = _ == null ? null : typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), area) : x1;
  };

  area.y = function(_) {
    return arguments.length ? (y0 = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), y1 = null, area) : y0;
  };

  area.y0 = function(_) {
    return arguments.length ? (y0 = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), area) : y0;
  };

  area.y1 = function(_) {
    return arguments.length ? (y1 = _ == null ? null : typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), area) : y1;
  };

  area.lineX0 =
  area.lineY0 = function() {
    return arealine().x(x0).y(y0);
  };

  area.lineY1 = function() {
    return arealine().x(x0).y(y1);
  };

  area.lineX1 = function() {
    return arealine().x(x1).y(y0);
  };

  area.defined = function(_) {
    return arguments.length ? (defined = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(!!_), area) : defined;
  };

  area.curve = function(_) {
    return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve;
  };

  area.context = function(_) {
    return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context;
  };

  return area;
}


/***/ }),

/***/ "./node_modules/d3-shape/src/areaRadial.js":
/*!*************************************************!*\
  !*** ./node_modules/d3-shape/src/areaRadial.js ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _curve_radial_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./curve/radial.js */ "./node_modules/d3-shape/src/curve/radial.js");
/* harmony import */ var _area_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./area.js */ "./node_modules/d3-shape/src/area.js");
/* harmony import */ var _lineRadial_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lineRadial.js */ "./node_modules/d3-shape/src/lineRadial.js");




/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {
  var a = (0,_area_js__WEBPACK_IMPORTED_MODULE_0__["default"])().curve(_curve_radial_js__WEBPACK_IMPORTED_MODULE_1__.curveRadialLinear),
      c = a.curve,
      x0 = a.lineX0,
      x1 = a.lineX1,
      y0 = a.lineY0,
      y1 = a.lineY1;

  a.angle = a.x, delete a.x;
  a.startAngle = a.x0, delete a.x0;
  a.endAngle = a.x1, delete a.x1;
  a.radius = a.y, delete a.y;
  a.innerRadius = a.y0, delete a.y0;
  a.outerRadius = a.y1, delete a.y1;
  a.lineStartAngle = function() { return (0,_lineRadial_js__WEBPACK_IMPORTED_MODULE_2__.lineRadial)(x0()); }, delete a.lineX0;
  a.lineEndAngle = function() { return (0,_lineRadial_js__WEBPACK_IMPORTED_MODULE_2__.lineRadial)(x1()); }, delete a.lineX1;
  a.lineInnerRadius = function() { return (0,_lineRadial_js__WEBPACK_IMPORTED_MODULE_2__.lineRadial)(y0()); }, delete a.lineY0;
  a.lineOuterRadius = function() { return (0,_lineRadial_js__WEBPACK_IMPORTED_MODULE_2__.lineRadial)(y1()); }, delete a.lineY1;

  a.curve = function(_) {
    return arguments.length ? c((0,_curve_radial_js__WEBPACK_IMPORTED_MODULE_1__["default"])(_)) : c()._curve;
  };

  return a;
}


/***/ }),

/***/ "./node_modules/d3-shape/src/array.js":
/*!********************************************!*\
  !*** ./node_modules/d3-shape/src/array.js ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "slice": () => (/* binding */ slice)
/* harmony export */ });
var slice = Array.prototype.slice;


/***/ }),

/***/ "./node_modules/d3-shape/src/constant.js":
/*!***********************************************!*\
  !*** ./node_modules/d3-shape/src/constant.js ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(x) {
  return function constant() {
    return x;
  };
}


/***/ }),

/***/ "./node_modules/d3-shape/src/curve/basis.js":
/*!**************************************************!*\
  !*** ./node_modules/d3-shape/src/curve/basis.js ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "point": () => (/* binding */ point),
/* harmony export */   "Basis": () => (/* binding */ Basis),
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
function point(that, x, y) {
  that._context.bezierCurveTo(
    (2 * that._x0 + that._x1) / 3,
    (2 * that._y0 + that._y1) / 3,
    (that._x0 + 2 * that._x1) / 3,
    (that._y0 + 2 * that._y1) / 3,
    (that._x0 + 4 * that._x1 + x) / 6,
    (that._y0 + 4 * that._y1 + y) / 6
  );
}

function Basis(context) {
  this._context = context;
}

Basis.prototype = {
  areaStart: function() {
    this._line = 0;
  },
  areaEnd: function() {
    this._line = NaN;
  },
  lineStart: function() {
    this._x0 = this._x1 =
    this._y0 = this._y1 = NaN;
    this._point = 0;
  },
  lineEnd: function() {
    switch (this._point) {
      case 3: point(this, this._x1, this._y1); // proceed
      case 2: this._context.lineTo(this._x1, this._y1); break;
    }
    if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
    this._line = 1 - this._line;
  },
  point: function(x, y) {
    x = +x, y = +y;
    switch (this._point) {
      case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
      case 1: this._point = 2; break;
      case 2: this._point = 3; this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); // proceed
      default: point(this, x, y); break;
    }
    this._x0 = this._x1, this._x1 = x;
    this._y0 = this._y1, this._y1 = y;
  }
};

/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(context) {
  return new Basis(context);
}


/***/ }),

/***/ "./node_modules/d3-shape/src/curve/basisClosed.js":
/*!********************************************************!*\
  !*** ./node_modules/d3-shape/src/curve/basisClosed.js ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _noop_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../noop.js */ "./node_modules/d3-shape/src/noop.js");
/* harmony import */ var _basis_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./basis.js */ "./node_modules/d3-shape/src/curve/basis.js");



function BasisClosed(context) {
  this._context = context;
}

BasisClosed.prototype = {
  areaStart: _noop_js__WEBPACK_IMPORTED_MODULE_0__["default"],
  areaEnd: _noop_js__WEBPACK_IMPORTED_MODULE_0__["default"],
  lineStart: function() {
    this._x0 = this._x1 = this._x2 = this._x3 = this._x4 =
    this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN;
    this._point = 0;
  },
  lineEnd: function() {
    switch (this._point) {
      case 1: {
        this._context.moveTo(this._x2, this._y2);
        this._context.closePath();
        break;
      }
      case 2: {
        this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3);
        this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3);
        this._context.closePath();
        break;
      }
      case 3: {
        this.point(this._x2, this._y2);
        this.point(this._x3, this._y3);
        this.point(this._x4, this._y4);
        break;
      }
    }
  },
  point: function(x, y) {
    x = +x, y = +y;
    switch (this._point) {
      case 0: this._point = 1; this._x2 = x, this._y2 = y; break;
      case 1: this._point = 2; this._x3 = x, this._y3 = y; break;
      case 2: this._point = 3; this._x4 = x, this._y4 = y; this._context.moveTo((this._x0 + 4 * this._x1 + x) / 6, (this._y0 + 4 * this._y1 + y) / 6); break;
      default: (0,_basis_js__WEBPACK_IMPORTED_MODULE_1__.point)(this, x, y); break;
    }
    this._x0 = this._x1, this._x1 = x;
    this._y0 = this._y1, this._y1 = y;
  }
};

/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(context) {
  return new BasisClosed(context);
}


/***/ }),

/***/ "./node_modules/d3-shape/src/curve/basisOpen.js":
/*!******************************************************!*\
  !*** ./node_modules/d3-shape/src/curve/basisOpen.js ***!
  \******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _basis_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basis.js */ "./node_modules/d3-shape/src/curve/basis.js");


function BasisOpen(context) {
  this._context = context;
}

BasisOpen.prototype = {
  areaStart: function() {
    this._line = 0;
  },
  areaEnd: function() {
    this._line = NaN;
  },
  lineStart: function() {
    this._x0 = this._x1 =
    this._y0 = this._y1 = NaN;
    this._point = 0;
  },
  lineEnd: function() {
    if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();
    this._line = 1 - this._line;
  },
  point: function(x, y) {
    x = +x, y = +y;
    switch (this._point) {
      case 0: this._point = 1; break;
      case 1: this._point = 2; break;
      case 2: this._point = 3; var x0 = (this._x0 + 4 * this._x1 + x) / 6, y0 = (this._y0 + 4 * this._y1 + y) / 6; this._line ? this._context.lineTo(x0, y0) : this._context.moveTo(x0, y0); break;
      case 3: this._point = 4; // proceed
      default: (0,_basis_js__WEBPACK_IMPORTED_MODULE_0__.point)(this, x, y); break;
    }
    this._x0 = this._x1, this._x1 = x;
    this._y0 = this._y1, this._y1 = y;
  }
};

/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(context) {
  return new BasisOpen(context);
}


/***/ }),

/***/ "./node_modules/d3-shape/src/curve/bundle.js":
/*!***************************************************!*\
  !*** ./node_modules/d3-shape/src/curve/bundle.js ***!
  \***************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _basis_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basis.js */ "./node_modules/d3-shape/src/curve/basis.js");


function Bundle(context, beta) {
  this._basis = new _basis_js__WEBPACK_IMPORTED_MODULE_0__.Basis(context);
  this._beta = beta;
}

Bundle.prototype = {
  lineStart: function() {
    this._x = [];
    this._y = [];
    this._basis.lineStart();
  },
  lineEnd: function() {
    var x = this._x,
        y = this._y,
        j = x.length - 1;

    if (j > 0) {
      var x0 = x[0],
          y0 = y[0],
          dx = x[j] - x0,
          dy = y[j] - y0,
          i = -1,
          t;

      while (++i <= j) {
        t = i / j;
        this._basis.point(
          this._beta * x[i] + (1 - this._beta) * (x0 + t * dx),
          this._beta * y[i] + (1 - this._beta) * (y0 + t * dy)
        );
      }
    }

    this._x = this._y = null;
    this._basis.lineEnd();
  },
  point: function(x, y) {
    this._x.push(+x);
    this._y.push(+y);
  }
};

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((function custom(beta) {

  function bundle(context) {
    return beta === 1 ? new _basis_js__WEBPACK_IMPORTED_MODULE_0__.Basis(context) : new Bundle(context, beta);
  }

  bundle.beta = function(beta) {
    return custom(+beta);
  };

  return bundle;
})(0.85));


/***/ }),

/***/ "./node_modules/d3-shape/src/curve/cardinal.js":
/*!*****************************************************!*\
  !*** ./node_modules/d3-shape/src/curve/cardinal.js ***!
  \*****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "point": () => (/* binding */ point),
/* harmony export */   "Cardinal": () => (/* binding */ Cardinal),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
function point(that, x, y) {
  that._context.bezierCurveTo(
    that._x1 + that._k * (that._x2 - that._x0),
    that._y1 + that._k * (that._y2 - that._y0),
    that._x2 + that._k * (that._x1 - x),
    that._y2 + that._k * (that._y1 - y),
    that._x2,
    that._y2
  );
}

function Cardinal(context, tension) {
  this._context = context;
  this._k = (1 - tension) / 6;
}

Cardinal.prototype = {
  areaStart: function() {
    this._line = 0;
  },
  areaEnd: function() {
    this._line = NaN;
  },
  lineStart: function() {
    this._x0 = this._x1 = this._x2 =
    this._y0 = this._y1 = this._y2 = NaN;
    this._point = 0;
  },
  lineEnd: function() {
    switch (this._point) {
      case 2: this._context.lineTo(this._x2, this._y2); break;
      case 3: point(this, this._x1, this._y1); break;
    }
    if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
    this._line = 1 - this._line;
  },
  point: function(x, y) {
    x = +x, y = +y;
    switch (this._point) {
      case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
      case 1: this._point = 2; this._x1 = x, this._y1 = y; break;
      case 2: this._point = 3; // proceed
      default: point(this, x, y); break;
    }
    this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
    this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
  }
};

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((function custom(tension) {

  function cardinal(context) {
    return new Cardinal(context, tension);
  }

  cardinal.tension = function(tension) {
    return custom(+tension);
  };

  return cardinal;
})(0));


/***/ }),

/***/ "./node_modules/d3-shape/src/curve/cardinalClosed.js":
/*!***********************************************************!*\
  !*** ./node_modules/d3-shape/src/curve/cardinalClosed.js ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CardinalClosed": () => (/* binding */ CardinalClosed),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _noop_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../noop.js */ "./node_modules/d3-shape/src/noop.js");
/* harmony import */ var _cardinal_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cardinal.js */ "./node_modules/d3-shape/src/curve/cardinal.js");



function CardinalClosed(context, tension) {
  this._context = context;
  this._k = (1 - tension) / 6;
}

CardinalClosed.prototype = {
  areaStart: _noop_js__WEBPACK_IMPORTED_MODULE_0__["default"],
  areaEnd: _noop_js__WEBPACK_IMPORTED_MODULE_0__["default"],
  lineStart: function() {
    this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =
    this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;
    this._point = 0;
  },
  lineEnd: function() {
    switch (this._point) {
      case 1: {
        this._context.moveTo(this._x3, this._y3);
        this._context.closePath();
        break;
      }
      case 2: {
        this._context.lineTo(this._x3, this._y3);
        this._context.closePath();
        break;
      }
      case 3: {
        this.point(this._x3, this._y3);
        this.point(this._x4, this._y4);
        this.point(this._x5, this._y5);
        break;
      }
    }
  },
  point: function(x, y) {
    x = +x, y = +y;
    switch (this._point) {
      case 0: this._point = 1; this._x3 = x, this._y3 = y; break;
      case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;
      case 2: this._point = 3; this._x5 = x, this._y5 = y; break;
      default: (0,_cardinal_js__WEBPACK_IMPORTED_MODULE_1__.point)(this, x, y); break;
    }
    this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
    this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
  }
};

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((function custom(tension) {

  function cardinal(context) {
    return new CardinalClosed(context, tension);
  }

  cardinal.tension = function(tension) {
    return custom(+tension);
  };

  return cardinal;
})(0));


/***/ }),

/***/ "./node_modules/d3-shape/src/curve/cardinalOpen.js":
/*!*********************************************************!*\
  !*** ./node_modules/d3-shape/src/curve/cardinalOpen.js ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "CardinalOpen": () => (/* binding */ CardinalOpen),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _cardinal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cardinal.js */ "./node_modules/d3-shape/src/curve/cardinal.js");


function CardinalOpen(context, tension) {
  this._context = context;
  this._k = (1 - tension) / 6;
}

CardinalOpen.prototype = {
  areaStart: function() {
    this._line = 0;
  },
  areaEnd: function() {
    this._line = NaN;
  },
  lineStart: function() {
    this._x0 = this._x1 = this._x2 =
    this._y0 = this._y1 = this._y2 = NaN;
    this._point = 0;
  },
  lineEnd: function() {
    if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();
    this._line = 1 - this._line;
  },
  point: function(x, y) {
    x = +x, y = +y;
    switch (this._point) {
      case 0: this._point = 1; break;
      case 1: this._point = 2; break;
      case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break;
      case 3: this._point = 4; // proceed
      default: (0,_cardinal_js__WEBPACK_IMPORTED_MODULE_0__.point)(this, x, y); break;
    }
    this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
    this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
  }
};

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((function custom(tension) {

  function cardinal(context) {
    return new CardinalOpen(context, tension);
  }

  cardinal.tension = function(tension) {
    return custom(+tension);
  };

  return cardinal;
})(0));


/***/ }),

/***/ "./node_modules/d3-shape/src/curve/catmullRom.js":
/*!*******************************************************!*\
  !*** ./node_modules/d3-shape/src/curve/catmullRom.js ***!
  \*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "point": () => (/* binding */ point),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-shape/src/math.js");
/* harmony import */ var _cardinal_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cardinal.js */ "./node_modules/d3-shape/src/curve/cardinal.js");



function point(that, x, y) {
  var x1 = that._x1,
      y1 = that._y1,
      x2 = that._x2,
      y2 = that._y2;

  if (that._l01_a > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon) {
    var a = 2 * that._l01_2a + 3 * that._l01_a * that._l12_a + that._l12_2a,
        n = 3 * that._l01_a * (that._l01_a + that._l12_a);
    x1 = (x1 * a - that._x0 * that._l12_2a + that._x2 * that._l01_2a) / n;
    y1 = (y1 * a - that._y0 * that._l12_2a + that._y2 * that._l01_2a) / n;
  }

  if (that._l23_a > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon) {
    var b = 2 * that._l23_2a + 3 * that._l23_a * that._l12_a + that._l12_2a,
        m = 3 * that._l23_a * (that._l23_a + that._l12_a);
    x2 = (x2 * b + that._x1 * that._l23_2a - x * that._l12_2a) / m;
    y2 = (y2 * b + that._y1 * that._l23_2a - y * that._l12_2a) / m;
  }

  that._context.bezierCurveTo(x1, y1, x2, y2, that._x2, that._y2);
}

function CatmullRom(context, alpha) {
  this._context = context;
  this._alpha = alpha;
}

CatmullRom.prototype = {
  areaStart: function() {
    this._line = 0;
  },
  areaEnd: function() {
    this._line = NaN;
  },
  lineStart: function() {
    this._x0 = this._x1 = this._x2 =
    this._y0 = this._y1 = this._y2 = NaN;
    this._l01_a = this._l12_a = this._l23_a =
    this._l01_2a = this._l12_2a = this._l23_2a =
    this._point = 0;
  },
  lineEnd: function() {
    switch (this._point) {
      case 2: this._context.lineTo(this._x2, this._y2); break;
      case 3: this.point(this._x2, this._y2); break;
    }
    if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
    this._line = 1 - this._line;
  },
  point: function(x, y) {
    x = +x, y = +y;

    if (this._point) {
      var x23 = this._x2 - x,
          y23 = this._y2 - y;
      this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
    }

    switch (this._point) {
      case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
      case 1: this._point = 2; break;
      case 2: this._point = 3; // proceed
      default: point(this, x, y); break;
    }

    this._l01_a = this._l12_a, this._l12_a = this._l23_a;
    this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;
    this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
    this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
  }
};

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((function custom(alpha) {

  function catmullRom(context) {
    return alpha ? new CatmullRom(context, alpha) : new _cardinal_js__WEBPACK_IMPORTED_MODULE_1__.Cardinal(context, 0);
  }

  catmullRom.alpha = function(alpha) {
    return custom(+alpha);
  };

  return catmullRom;
})(0.5));


/***/ }),

/***/ "./node_modules/d3-shape/src/curve/catmullRomClosed.js":
/*!*************************************************************!*\
  !*** ./node_modules/d3-shape/src/curve/catmullRomClosed.js ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _cardinalClosed_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cardinalClosed.js */ "./node_modules/d3-shape/src/curve/cardinalClosed.js");
/* harmony import */ var _noop_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../noop.js */ "./node_modules/d3-shape/src/noop.js");
/* harmony import */ var _catmullRom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./catmullRom.js */ "./node_modules/d3-shape/src/curve/catmullRom.js");




function CatmullRomClosed(context, alpha) {
  this._context = context;
  this._alpha = alpha;
}

CatmullRomClosed.prototype = {
  areaStart: _noop_js__WEBPACK_IMPORTED_MODULE_0__["default"],
  areaEnd: _noop_js__WEBPACK_IMPORTED_MODULE_0__["default"],
  lineStart: function() {
    this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =
    this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;
    this._l01_a = this._l12_a = this._l23_a =
    this._l01_2a = this._l12_2a = this._l23_2a =
    this._point = 0;
  },
  lineEnd: function() {
    switch (this._point) {
      case 1: {
        this._context.moveTo(this._x3, this._y3);
        this._context.closePath();
        break;
      }
      case 2: {
        this._context.lineTo(this._x3, this._y3);
        this._context.closePath();
        break;
      }
      case 3: {
        this.point(this._x3, this._y3);
        this.point(this._x4, this._y4);
        this.point(this._x5, this._y5);
        break;
      }
    }
  },
  point: function(x, y) {
    x = +x, y = +y;

    if (this._point) {
      var x23 = this._x2 - x,
          y23 = this._y2 - y;
      this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
    }

    switch (this._point) {
      case 0: this._point = 1; this._x3 = x, this._y3 = y; break;
      case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;
      case 2: this._point = 3; this._x5 = x, this._y5 = y; break;
      default: (0,_catmullRom_js__WEBPACK_IMPORTED_MODULE_1__.point)(this, x, y); break;
    }

    this._l01_a = this._l12_a, this._l12_a = this._l23_a;
    this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;
    this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
    this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
  }
};

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((function custom(alpha) {

  function catmullRom(context) {
    return alpha ? new CatmullRomClosed(context, alpha) : new _cardinalClosed_js__WEBPACK_IMPORTED_MODULE_2__.CardinalClosed(context, 0);
  }

  catmullRom.alpha = function(alpha) {
    return custom(+alpha);
  };

  return catmullRom;
})(0.5));


/***/ }),

/***/ "./node_modules/d3-shape/src/curve/catmullRomOpen.js":
/*!***********************************************************!*\
  !*** ./node_modules/d3-shape/src/curve/catmullRomOpen.js ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _cardinalOpen_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cardinalOpen.js */ "./node_modules/d3-shape/src/curve/cardinalOpen.js");
/* harmony import */ var _catmullRom_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./catmullRom.js */ "./node_modules/d3-shape/src/curve/catmullRom.js");



function CatmullRomOpen(context, alpha) {
  this._context = context;
  this._alpha = alpha;
}

CatmullRomOpen.prototype = {
  areaStart: function() {
    this._line = 0;
  },
  areaEnd: function() {
    this._line = NaN;
  },
  lineStart: function() {
    this._x0 = this._x1 = this._x2 =
    this._y0 = this._y1 = this._y2 = NaN;
    this._l01_a = this._l12_a = this._l23_a =
    this._l01_2a = this._l12_2a = this._l23_2a =
    this._point = 0;
  },
  lineEnd: function() {
    if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();
    this._line = 1 - this._line;
  },
  point: function(x, y) {
    x = +x, y = +y;

    if (this._point) {
      var x23 = this._x2 - x,
          y23 = this._y2 - y;
      this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
    }

    switch (this._point) {
      case 0: this._point = 1; break;
      case 1: this._point = 2; break;
      case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break;
      case 3: this._point = 4; // proceed
      default: (0,_catmullRom_js__WEBPACK_IMPORTED_MODULE_0__.point)(this, x, y); break;
    }

    this._l01_a = this._l12_a, this._l12_a = this._l23_a;
    this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;
    this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
    this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
  }
};

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((function custom(alpha) {

  function catmullRom(context) {
    return alpha ? new CatmullRomOpen(context, alpha) : new _cardinalOpen_js__WEBPACK_IMPORTED_MODULE_1__.CardinalOpen(context, 0);
  }

  catmullRom.alpha = function(alpha) {
    return custom(+alpha);
  };

  return catmullRom;
})(0.5));


/***/ }),

/***/ "./node_modules/d3-shape/src/curve/linear.js":
/*!***************************************************!*\
  !*** ./node_modules/d3-shape/src/curve/linear.js ***!
  \***************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
function Linear(context) {
  this._context = context;
}

Linear.prototype = {
  areaStart: function() {
    this._line = 0;
  },
  areaEnd: function() {
    this._line = NaN;
  },
  lineStart: function() {
    this._point = 0;
  },
  lineEnd: function() {
    if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
    this._line = 1 - this._line;
  },
  point: function(x, y) {
    x = +x, y = +y;
    switch (this._point) {
      case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
      case 1: this._point = 2; // proceed
      default: this._context.lineTo(x, y); break;
    }
  }
};

/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(context) {
  return new Linear(context);
}


/***/ }),

/***/ "./node_modules/d3-shape/src/curve/linearClosed.js":
/*!*********************************************************!*\
  !*** ./node_modules/d3-shape/src/curve/linearClosed.js ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _noop_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../noop.js */ "./node_modules/d3-shape/src/noop.js");


function LinearClosed(context) {
  this._context = context;
}

LinearClosed.prototype = {
  areaStart: _noop_js__WEBPACK_IMPORTED_MODULE_0__["default"],
  areaEnd: _noop_js__WEBPACK_IMPORTED_MODULE_0__["default"],
  lineStart: function() {
    this._point = 0;
  },
  lineEnd: function() {
    if (this._point) this._context.closePath();
  },
  point: function(x, y) {
    x = +x, y = +y;
    if (this._point) this._context.lineTo(x, y);
    else this._point = 1, this._context.moveTo(x, y);
  }
};

/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(context) {
  return new LinearClosed(context);
}


/***/ }),

/***/ "./node_modules/d3-shape/src/curve/monotone.js":
/*!*****************************************************!*\
  !*** ./node_modules/d3-shape/src/curve/monotone.js ***!
  \*****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "monotoneX": () => (/* binding */ monotoneX),
/* harmony export */   "monotoneY": () => (/* binding */ monotoneY)
/* harmony export */ });
function sign(x) {
  return x < 0 ? -1 : 1;
}

// Calculate the slopes of the tangents (Hermite-type interpolation) based on
// the following paper: Steffen, M. 1990. A Simple Method for Monotonic
// Interpolation in One Dimension. Astronomy and Astrophysics, Vol. 239, NO.
// NOV(II), P. 443, 1990.
function slope3(that, x2, y2) {
  var h0 = that._x1 - that._x0,
      h1 = x2 - that._x1,
      s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0),
      s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0),
      p = (s0 * h1 + s1 * h0) / (h0 + h1);
  return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0;
}

// Calculate a one-sided slope.
function slope2(that, t) {
  var h = that._x1 - that._x0;
  return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t;
}

// According to https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Representations
// "you can express cubic Hermite interpolation in terms of cubic Bézier curves
// with respect to the four values p0, p0 + m0 / 3, p1 - m1 / 3, p1".
function point(that, t0, t1) {
  var x0 = that._x0,
      y0 = that._y0,
      x1 = that._x1,
      y1 = that._y1,
      dx = (x1 - x0) / 3;
  that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1);
}

function MonotoneX(context) {
  this._context = context;
}

MonotoneX.prototype = {
  areaStart: function() {
    this._line = 0;
  },
  areaEnd: function() {
    this._line = NaN;
  },
  lineStart: function() {
    this._x0 = this._x1 =
    this._y0 = this._y1 =
    this._t0 = NaN;
    this._point = 0;
  },
  lineEnd: function() {
    switch (this._point) {
      case 2: this._context.lineTo(this._x1, this._y1); break;
      case 3: point(this, this._t0, slope2(this, this._t0)); break;
    }
    if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
    this._line = 1 - this._line;
  },
  point: function(x, y) {
    var t1 = NaN;

    x = +x, y = +y;
    if (x === this._x1 && y === this._y1) return; // Ignore coincident points.
    switch (this._point) {
      case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
      case 1: this._point = 2; break;
      case 2: this._point = 3; point(this, slope2(this, t1 = slope3(this, x, y)), t1); break;
      default: point(this, this._t0, t1 = slope3(this, x, y)); break;
    }

    this._x0 = this._x1, this._x1 = x;
    this._y0 = this._y1, this._y1 = y;
    this._t0 = t1;
  }
}

function MonotoneY(context) {
  this._context = new ReflectContext(context);
}

(MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x, y) {
  MonotoneX.prototype.point.call(this, y, x);
};

function ReflectContext(context) {
  this._context = context;
}

ReflectContext.prototype = {
  moveTo: function(x, y) { this._context.moveTo(y, x); },
  closePath: function() { this._context.closePath(); },
  lineTo: function(x, y) { this._context.lineTo(y, x); },
  bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._context.bezierCurveTo(y1, x1, y2, x2, y, x); }
};

function monotoneX(context) {
  return new MonotoneX(context);
}

function monotoneY(context) {
  return new MonotoneY(context);
}


/***/ }),

/***/ "./node_modules/d3-shape/src/curve/natural.js":
/*!****************************************************!*\
  !*** ./node_modules/d3-shape/src/curve/natural.js ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
function Natural(context) {
  this._context = context;
}

Natural.prototype = {
  areaStart: function() {
    this._line = 0;
  },
  areaEnd: function() {
    this._line = NaN;
  },
  lineStart: function() {
    this._x = [];
    this._y = [];
  },
  lineEnd: function() {
    var x = this._x,
        y = this._y,
        n = x.length;

    if (n) {
      this._line ? this._context.lineTo(x[0], y[0]) : this._context.moveTo(x[0], y[0]);
      if (n === 2) {
        this._context.lineTo(x[1], y[1]);
      } else {
        var px = controlPoints(x),
            py = controlPoints(y);
        for (var i0 = 0, i1 = 1; i1 < n; ++i0, ++i1) {
          this._context.bezierCurveTo(px[0][i0], py[0][i0], px[1][i0], py[1][i0], x[i1], y[i1]);
        }
      }
    }

    if (this._line || (this._line !== 0 && n === 1)) this._context.closePath();
    this._line = 1 - this._line;
    this._x = this._y = null;
  },
  point: function(x, y) {
    this._x.push(+x);
    this._y.push(+y);
  }
};

// See https://www.particleincell.com/2012/bezier-splines/ for derivation.
function controlPoints(x) {
  var i,
      n = x.length - 1,
      m,
      a = new Array(n),
      b = new Array(n),
      r = new Array(n);
  a[0] = 0, b[0] = 2, r[0] = x[0] + 2 * x[1];
  for (i = 1; i < n - 1; ++i) a[i] = 1, b[i] = 4, r[i] = 4 * x[i] + 2 * x[i + 1];
  a[n - 1] = 2, b[n - 1] = 7, r[n - 1] = 8 * x[n - 1] + x[n];
  for (i = 1; i < n; ++i) m = a[i] / b[i - 1], b[i] -= m, r[i] -= m * r[i - 1];
  a[n - 1] = r[n - 1] / b[n - 1];
  for (i = n - 2; i >= 0; --i) a[i] = (r[i] - a[i + 1]) / b[i];
  b[n - 1] = (x[n] + a[n - 1]) / 2;
  for (i = 0; i < n - 1; ++i) b[i] = 2 * x[i + 1] - a[i + 1];
  return [a, b];
}

/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(context) {
  return new Natural(context);
}


/***/ }),

/***/ "./node_modules/d3-shape/src/curve/radial.js":
/*!***************************************************!*\
  !*** ./node_modules/d3-shape/src/curve/radial.js ***!
  \***************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "curveRadialLinear": () => (/* binding */ curveRadialLinear),
/* harmony export */   "default": () => (/* binding */ curveRadial)
/* harmony export */ });
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear.js */ "./node_modules/d3-shape/src/curve/linear.js");


var curveRadialLinear = curveRadial(_linear_js__WEBPACK_IMPORTED_MODULE_0__["default"]);

function Radial(curve) {
  this._curve = curve;
}

Radial.prototype = {
  areaStart: function() {
    this._curve.areaStart();
  },
  areaEnd: function() {
    this._curve.areaEnd();
  },
  lineStart: function() {
    this._curve.lineStart();
  },
  lineEnd: function() {
    this._curve.lineEnd();
  },
  point: function(a, r) {
    this._curve.point(r * Math.sin(a), r * -Math.cos(a));
  }
};

function curveRadial(curve) {

  function radial(context) {
    return new Radial(curve(context));
  }

  radial._curve = curve;

  return radial;
}


/***/ }),

/***/ "./node_modules/d3-shape/src/curve/step.js":
/*!*************************************************!*\
  !*** ./node_modules/d3-shape/src/curve/step.js ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   "stepBefore": () => (/* binding */ stepBefore),
/* harmony export */   "stepAfter": () => (/* binding */ stepAfter)
/* harmony export */ });
function Step(context, t) {
  this._context = context;
  this._t = t;
}

Step.prototype = {
  areaStart: function() {
    this._line = 0;
  },
  areaEnd: function() {
    this._line = NaN;
  },
  lineStart: function() {
    this._x = this._y = NaN;
    this._point = 0;
  },
  lineEnd: function() {
    if (0 < this._t && this._t < 1 && this._point === 2) this._context.lineTo(this._x, this._y);
    if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
    if (this._line >= 0) this._t = 1 - this._t, this._line = 1 - this._line;
  },
  point: function(x, y) {
    x = +x, y = +y;
    switch (this._point) {
      case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
      case 1: this._point = 2; // proceed
      default: {
        if (this._t <= 0) {
          this._context.lineTo(this._x, y);
          this._context.lineTo(x, y);
        } else {
          var x1 = this._x * (1 - this._t) + x * this._t;
          this._context.lineTo(x1, this._y);
          this._context.lineTo(x1, y);
        }
        break;
      }
    }
    this._x = x, this._y = y;
  }
};

/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(context) {
  return new Step(context, 0.5);
}

function stepBefore(context) {
  return new Step(context, 0);
}

function stepAfter(context) {
  return new Step(context, 1);
}


/***/ }),

/***/ "./node_modules/d3-shape/src/descending.js":
/*!*************************************************!*\
  !*** ./node_modules/d3-shape/src/descending.js ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(a, b) {
  return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
}


/***/ }),

/***/ "./node_modules/d3-shape/src/identity.js":
/*!***********************************************!*\
  !*** ./node_modules/d3-shape/src/identity.js ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(d) {
  return d;
}


/***/ }),

/***/ "./node_modules/d3-shape/src/index.js":
/*!********************************************!*\
  !*** ./node_modules/d3-shape/src/index.js ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "arc": () => (/* reexport safe */ _arc_js__WEBPACK_IMPORTED_MODULE_0__["default"]),
/* harmony export */   "area": () => (/* reexport safe */ _area_js__WEBPACK_IMPORTED_MODULE_1__["default"]),
/* harmony export */   "line": () => (/* reexport safe */ _line_js__WEBPACK_IMPORTED_MODULE_2__["default"]),
/* harmony export */   "pie": () => (/* reexport safe */ _pie_js__WEBPACK_IMPORTED_MODULE_3__["default"]),
/* harmony export */   "areaRadial": () => (/* reexport safe */ _areaRadial_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
/* harmony export */   "radialArea": () => (/* reexport safe */ _areaRadial_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
/* harmony export */   "lineRadial": () => (/* reexport safe */ _lineRadial_js__WEBPACK_IMPORTED_MODULE_5__["default"]),
/* harmony export */   "radialLine": () => (/* reexport safe */ _lineRadial_js__WEBPACK_IMPORTED_MODULE_5__["default"]),
/* harmony export */   "pointRadial": () => (/* reexport safe */ _pointRadial_js__WEBPACK_IMPORTED_MODULE_6__["default"]),
/* harmony export */   "linkHorizontal": () => (/* reexport safe */ _link_index_js__WEBPACK_IMPORTED_MODULE_7__.linkHorizontal),
/* harmony export */   "linkVertical": () => (/* reexport safe */ _link_index_js__WEBPACK_IMPORTED_MODULE_7__.linkVertical),
/* harmony export */   "linkRadial": () => (/* reexport safe */ _link_index_js__WEBPACK_IMPORTED_MODULE_7__.linkRadial),
/* harmony export */   "symbol": () => (/* reexport safe */ _symbol_js__WEBPACK_IMPORTED_MODULE_8__["default"]),
/* harmony export */   "symbols": () => (/* reexport safe */ _symbol_js__WEBPACK_IMPORTED_MODULE_8__.symbols),
/* harmony export */   "symbolCircle": () => (/* reexport safe */ _symbol_circle_js__WEBPACK_IMPORTED_MODULE_9__["default"]),
/* harmony export */   "symbolCross": () => (/* reexport safe */ _symbol_cross_js__WEBPACK_IMPORTED_MODULE_10__["default"]),
/* harmony export */   "symbolDiamond": () => (/* reexport safe */ _symbol_diamond_js__WEBPACK_IMPORTED_MODULE_11__["default"]),
/* harmony export */   "symbolSquare": () => (/* reexport safe */ _symbol_square_js__WEBPACK_IMPORTED_MODULE_12__["default"]),
/* harmony export */   "symbolStar": () => (/* reexport safe */ _symbol_star_js__WEBPACK_IMPORTED_MODULE_13__["default"]),
/* harmony export */   "symbolTriangle": () => (/* reexport safe */ _symbol_triangle_js__WEBPACK_IMPORTED_MODULE_14__["default"]),
/* harmony export */   "symbolWye": () => (/* reexport safe */ _symbol_wye_js__WEBPACK_IMPORTED_MODULE_15__["default"]),
/* harmony export */   "curveBasisClosed": () => (/* reexport safe */ _curve_basisClosed_js__WEBPACK_IMPORTED_MODULE_16__["default"]),
/* harmony export */   "curveBasisOpen": () => (/* reexport safe */ _curve_basisOpen_js__WEBPACK_IMPORTED_MODULE_17__["default"]),
/* harmony export */   "curveBasis": () => (/* reexport safe */ _curve_basis_js__WEBPACK_IMPORTED_MODULE_18__["default"]),
/* harmony export */   "curveBundle": () => (/* reexport safe */ _curve_bundle_js__WEBPACK_IMPORTED_MODULE_19__["default"]),
/* harmony export */   "curveCardinalClosed": () => (/* reexport safe */ _curve_cardinalClosed_js__WEBPACK_IMPORTED_MODULE_20__["default"]),
/* harmony export */   "curveCardinalOpen": () => (/* reexport safe */ _curve_cardinalOpen_js__WEBPACK_IMPORTED_MODULE_21__["default"]),
/* harmony export */   "curveCardinal": () => (/* reexport safe */ _curve_cardinal_js__WEBPACK_IMPORTED_MODULE_22__["default"]),
/* harmony export */   "curveCatmullRomClosed": () => (/* reexport safe */ _curve_catmullRomClosed_js__WEBPACK_IMPORTED_MODULE_23__["default"]),
/* harmony export */   "curveCatmullRomOpen": () => (/* reexport safe */ _curve_catmullRomOpen_js__WEBPACK_IMPORTED_MODULE_24__["default"]),
/* harmony export */   "curveCatmullRom": () => (/* reexport safe */ _curve_catmullRom_js__WEBPACK_IMPORTED_MODULE_25__["default"]),
/* harmony export */   "curveLinearClosed": () => (/* reexport safe */ _curve_linearClosed_js__WEBPACK_IMPORTED_MODULE_26__["default"]),
/* harmony export */   "curveLinear": () => (/* reexport safe */ _curve_linear_js__WEBPACK_IMPORTED_MODULE_27__["default"]),
/* harmony export */   "curveMonotoneX": () => (/* reexport safe */ _curve_monotone_js__WEBPACK_IMPORTED_MODULE_28__.monotoneX),
/* harmony export */   "curveMonotoneY": () => (/* reexport safe */ _curve_monotone_js__WEBPACK_IMPORTED_MODULE_28__.monotoneY),
/* harmony export */   "curveNatural": () => (/* reexport safe */ _curve_natural_js__WEBPACK_IMPORTED_MODULE_29__["default"]),
/* harmony export */   "curveStep": () => (/* reexport safe */ _curve_step_js__WEBPACK_IMPORTED_MODULE_30__["default"]),
/* harmony export */   "curveStepAfter": () => (/* reexport safe */ _curve_step_js__WEBPACK_IMPORTED_MODULE_30__.stepAfter),
/* harmony export */   "curveStepBefore": () => (/* reexport safe */ _curve_step_js__WEBPACK_IMPORTED_MODULE_30__.stepBefore),
/* harmony export */   "stack": () => (/* reexport safe */ _stack_js__WEBPACK_IMPORTED_MODULE_31__["default"]),
/* harmony export */   "stackOffsetExpand": () => (/* reexport safe */ _offset_expand_js__WEBPACK_IMPORTED_MODULE_32__["default"]),
/* harmony export */   "stackOffsetDiverging": () => (/* reexport safe */ _offset_diverging_js__WEBPACK_IMPORTED_MODULE_33__["default"]),
/* harmony export */   "stackOffsetNone": () => (/* reexport safe */ _offset_none_js__WEBPACK_IMPORTED_MODULE_34__["default"]),
/* harmony export */   "stackOffsetSilhouette": () => (/* reexport safe */ _offset_silhouette_js__WEBPACK_IMPORTED_MODULE_35__["default"]),
/* harmony export */   "stackOffsetWiggle": () => (/* reexport safe */ _offset_wiggle_js__WEBPACK_IMPORTED_MODULE_36__["default"]),
/* harmony export */   "stackOrderAppearance": () => (/* reexport safe */ _order_appearance_js__WEBPACK_IMPORTED_MODULE_37__["default"]),
/* harmony export */   "stackOrderAscending": () => (/* reexport safe */ _order_ascending_js__WEBPACK_IMPORTED_MODULE_38__["default"]),
/* harmony export */   "stackOrderDescending": () => (/* reexport safe */ _order_descending_js__WEBPACK_IMPORTED_MODULE_39__["default"]),
/* harmony export */   "stackOrderInsideOut": () => (/* reexport safe */ _order_insideOut_js__WEBPACK_IMPORTED_MODULE_40__["default"]),
/* harmony export */   "stackOrderNone": () => (/* reexport safe */ _order_none_js__WEBPACK_IMPORTED_MODULE_41__["default"]),
/* harmony export */   "stackOrderReverse": () => (/* reexport safe */ _order_reverse_js__WEBPACK_IMPORTED_MODULE_42__["default"])
/* harmony export */ });
/* harmony import */ var _arc_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arc.js */ "./node_modules/d3-shape/src/arc.js");
/* harmony import */ var _area_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./area.js */ "./node_modules/d3-shape/src/area.js");
/* harmony import */ var _line_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./line.js */ "./node_modules/d3-shape/src/line.js");
/* harmony import */ var _pie_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pie.js */ "./node_modules/d3-shape/src/pie.js");
/* harmony import */ var _areaRadial_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./areaRadial.js */ "./node_modules/d3-shape/src/areaRadial.js");
/* harmony import */ var _lineRadial_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lineRadial.js */ "./node_modules/d3-shape/src/lineRadial.js");
/* harmony import */ var _pointRadial_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./pointRadial.js */ "./node_modules/d3-shape/src/pointRadial.js");
/* harmony import */ var _link_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./link/index.js */ "./node_modules/d3-shape/src/link/index.js");
/* harmony import */ var _symbol_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./symbol.js */ "./node_modules/d3-shape/src/symbol.js");
/* harmony import */ var _symbol_circle_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./symbol/circle.js */ "./node_modules/d3-shape/src/symbol/circle.js");
/* harmony import */ var _symbol_cross_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./symbol/cross.js */ "./node_modules/d3-shape/src/symbol/cross.js");
/* harmony import */ var _symbol_diamond_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./symbol/diamond.js */ "./node_modules/d3-shape/src/symbol/diamond.js");
/* harmony import */ var _symbol_square_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./symbol/square.js */ "./node_modules/d3-shape/src/symbol/square.js");
/* harmony import */ var _symbol_star_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./symbol/star.js */ "./node_modules/d3-shape/src/symbol/star.js");
/* harmony import */ var _symbol_triangle_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./symbol/triangle.js */ "./node_modules/d3-shape/src/symbol/triangle.js");
/* harmony import */ var _symbol_wye_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./symbol/wye.js */ "./node_modules/d3-shape/src/symbol/wye.js");
/* harmony import */ var _curve_basisClosed_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./curve/basisClosed.js */ "./node_modules/d3-shape/src/curve/basisClosed.js");
/* harmony import */ var _curve_basisOpen_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./curve/basisOpen.js */ "./node_modules/d3-shape/src/curve/basisOpen.js");
/* harmony import */ var _curve_basis_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./curve/basis.js */ "./node_modules/d3-shape/src/curve/basis.js");
/* harmony import */ var _curve_bundle_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./curve/bundle.js */ "./node_modules/d3-shape/src/curve/bundle.js");
/* harmony import */ var _curve_cardinalClosed_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./curve/cardinalClosed.js */ "./node_modules/d3-shape/src/curve/cardinalClosed.js");
/* harmony import */ var _curve_cardinalOpen_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./curve/cardinalOpen.js */ "./node_modules/d3-shape/src/curve/cardinalOpen.js");
/* harmony import */ var _curve_cardinal_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./curve/cardinal.js */ "./node_modules/d3-shape/src/curve/cardinal.js");
/* harmony import */ var _curve_catmullRomClosed_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./curve/catmullRomClosed.js */ "./node_modules/d3-shape/src/curve/catmullRomClosed.js");
/* harmony import */ var _curve_catmullRomOpen_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./curve/catmullRomOpen.js */ "./node_modules/d3-shape/src/curve/catmullRomOpen.js");
/* harmony import */ var _curve_catmullRom_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./curve/catmullRom.js */ "./node_modules/d3-shape/src/curve/catmullRom.js");
/* harmony import */ var _curve_linearClosed_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./curve/linearClosed.js */ "./node_modules/d3-shape/src/curve/linearClosed.js");
/* harmony import */ var _curve_linear_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./curve/linear.js */ "./node_modules/d3-shape/src/curve/linear.js");
/* harmony import */ var _curve_monotone_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./curve/monotone.js */ "./node_modules/d3-shape/src/curve/monotone.js");
/* harmony import */ var _curve_natural_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./curve/natural.js */ "./node_modules/d3-shape/src/curve/natural.js");
/* harmony import */ var _curve_step_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./curve/step.js */ "./node_modules/d3-shape/src/curve/step.js");
/* harmony import */ var _stack_js__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./stack.js */ "./node_modules/d3-shape/src/stack.js");
/* harmony import */ var _offset_expand_js__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./offset/expand.js */ "./node_modules/d3-shape/src/offset/expand.js");
/* harmony import */ var _offset_diverging_js__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./offset/diverging.js */ "./node_modules/d3-shape/src/offset/diverging.js");
/* harmony import */ var _offset_none_js__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./offset/none.js */ "./node_modules/d3-shape/src/offset/none.js");
/* harmony import */ var _offset_silhouette_js__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./offset/silhouette.js */ "./node_modules/d3-shape/src/offset/silhouette.js");
/* harmony import */ var _offset_wiggle_js__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./offset/wiggle.js */ "./node_modules/d3-shape/src/offset/wiggle.js");
/* harmony import */ var _order_appearance_js__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./order/appearance.js */ "./node_modules/d3-shape/src/order/appearance.js");
/* harmony import */ var _order_ascending_js__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./order/ascending.js */ "./node_modules/d3-shape/src/order/ascending.js");
/* harmony import */ var _order_descending_js__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./order/descending.js */ "./node_modules/d3-shape/src/order/descending.js");
/* harmony import */ var _order_insideOut_js__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./order/insideOut.js */ "./node_modules/d3-shape/src/order/insideOut.js");
/* harmony import */ var _order_none_js__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./order/none.js */ "./node_modules/d3-shape/src/order/none.js");
/* harmony import */ var _order_reverse_js__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./order/reverse.js */ "./node_modules/d3-shape/src/order/reverse.js");




 // Note: radialArea is deprecated!
 // Note: radialLine is deprecated!










































/***/ }),

/***/ "./node_modules/d3-shape/src/line.js":
/*!*******************************************!*\
  !*** ./node_modules/d3-shape/src/line.js ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-path */ "./node_modules/d3-path/src/path.js");
/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant.js */ "./node_modules/d3-shape/src/constant.js");
/* harmony import */ var _curve_linear_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./curve/linear.js */ "./node_modules/d3-shape/src/curve/linear.js");
/* harmony import */ var _point_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./point.js */ "./node_modules/d3-shape/src/point.js");





/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {
  var x = _point_js__WEBPACK_IMPORTED_MODULE_0__.x,
      y = _point_js__WEBPACK_IMPORTED_MODULE_0__.y,
      defined = (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(true),
      context = null,
      curve = _curve_linear_js__WEBPACK_IMPORTED_MODULE_2__["default"],
      output = null;

  function line(data) {
    var i,
        n = data.length,
        d,
        defined0 = false,
        buffer;

    if (context == null) output = curve(buffer = (0,d3_path__WEBPACK_IMPORTED_MODULE_3__["default"])());

    for (i = 0; i <= n; ++i) {
      if (!(i < n && defined(d = data[i], i, data)) === defined0) {
        if (defined0 = !defined0) output.lineStart();
        else output.lineEnd();
      }
      if (defined0) output.point(+x(d, i, data), +y(d, i, data));
    }

    if (buffer) return output = null, buffer + "" || null;
  }

  line.x = function(_) {
    return arguments.length ? (x = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), line) : x;
  };

  line.y = function(_) {
    return arguments.length ? (y = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(+_), line) : y;
  };

  line.defined = function(_) {
    return arguments.length ? (defined = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__["default"])(!!_), line) : defined;
  };

  line.curve = function(_) {
    return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve;
  };

  line.context = function(_) {
    return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context;
  };

  return line;
}


/***/ }),

/***/ "./node_modules/d3-shape/src/lineRadial.js":
/*!*************************************************!*\
  !*** ./node_modules/d3-shape/src/lineRadial.js ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "lineRadial": () => (/* binding */ lineRadial),
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _curve_radial_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./curve/radial.js */ "./node_modules/d3-shape/src/curve/radial.js");
/* harmony import */ var _line_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./line.js */ "./node_modules/d3-shape/src/line.js");



function lineRadial(l) {
  var c = l.curve;

  l.angle = l.x, delete l.x;
  l.radius = l.y, delete l.y;

  l.curve = function(_) {
    return arguments.length ? c((0,_curve_radial_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_)) : c()._curve;
  };

  return l;
}

/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {
  return lineRadial((0,_line_js__WEBPACK_IMPORTED_MODULE_1__["default"])().curve(_curve_radial_js__WEBPACK_IMPORTED_MODULE_0__.curveRadialLinear));
}


/***/ }),

/***/ "./node_modules/d3-shape/src/link/index.js":
/*!*************************************************!*\
  !*** ./node_modules/d3-shape/src/link/index.js ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "linkHorizontal": () => (/* binding */ linkHorizontal),
/* harmony export */   "linkVertical": () => (/* binding */ linkVertical),
/* harmony export */   "linkRadial": () => (/* binding */ linkRadial)
/* harmony export */ });
/* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-path */ "./node_modules/d3-path/src/path.js");
/* harmony import */ var _array_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../array.js */ "./node_modules/d3-shape/src/array.js");
/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constant.js */ "./node_modules/d3-shape/src/constant.js");
/* harmony import */ var _point_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../point.js */ "./node_modules/d3-shape/src/point.js");
/* harmony import */ var _pointRadial_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../pointRadial.js */ "./node_modules/d3-shape/src/pointRadial.js");






function linkSource(d) {
  return d.source;
}

function linkTarget(d) {
  return d.target;
}

function link(curve) {
  var source = linkSource,
      target = linkTarget,
      x = _point_js__WEBPACK_IMPORTED_MODULE_0__.x,
      y = _point_js__WEBPACK_IMPORTED_MODULE_0__.y,
      context = null;

  function link() {
    var buffer, argv = _array_js__WEBPACK_IMPORTED_MODULE_1__.slice.call(arguments), s = source.apply(this, argv), t = target.apply(this, argv);
    if (!context) context = buffer = (0,d3_path__WEBPACK_IMPORTED_MODULE_2__["default"])();
    curve(context, +x.apply(this, (argv[0] = s, argv)), +y.apply(this, argv), +x.apply(this, (argv[0] = t, argv)), +y.apply(this, argv));
    if (buffer) return context = null, buffer + "" || null;
  }

  link.source = function(_) {
    return arguments.length ? (source = _, link) : source;
  };

  link.target = function(_) {
    return arguments.length ? (target = _, link) : target;
  };

  link.x = function(_) {
    return arguments.length ? (x = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_3__["default"])(+_), link) : x;
  };

  link.y = function(_) {
    return arguments.length ? (y = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_3__["default"])(+_), link) : y;
  };

  link.context = function(_) {
    return arguments.length ? ((context = _ == null ? null : _), link) : context;
  };

  return link;
}

function curveHorizontal(context, x0, y0, x1, y1) {
  context.moveTo(x0, y0);
  context.bezierCurveTo(x0 = (x0 + x1) / 2, y0, x0, y1, x1, y1);
}

function curveVertical(context, x0, y0, x1, y1) {
  context.moveTo(x0, y0);
  context.bezierCurveTo(x0, y0 = (y0 + y1) / 2, x1, y0, x1, y1);
}

function curveRadial(context, x0, y0, x1, y1) {
  var p0 = (0,_pointRadial_js__WEBPACK_IMPORTED_MODULE_4__["default"])(x0, y0),
      p1 = (0,_pointRadial_js__WEBPACK_IMPORTED_MODULE_4__["default"])(x0, y0 = (y0 + y1) / 2),
      p2 = (0,_pointRadial_js__WEBPACK_IMPORTED_MODULE_4__["default"])(x1, y0),
      p3 = (0,_pointRadial_js__WEBPACK_IMPORTED_MODULE_4__["default"])(x1, y1);
  context.moveTo(p0[0], p0[1]);
  context.bezierCurveTo(p1[0], p1[1], p2[0], p2[1], p3[0], p3[1]);
}

function linkHorizontal() {
  return link(curveHorizontal);
}

function linkVertical() {
  return link(curveVertical);
}

function linkRadial() {
  var l = link(curveRadial);
  l.angle = l.x, delete l.x;
  l.radius = l.y, delete l.y;
  return l;
}


/***/ }),

/***/ "./node_modules/d3-shape/src/math.js":
/*!*******************************************!*\
  !*** ./node_modules/d3-shape/src/math.js ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "abs": () => (/* binding */ abs),
/* harmony export */   "atan2": () => (/* binding */ atan2),
/* harmony export */   "cos": () => (/* binding */ cos),
/* harmony export */   "max": () => (/* binding */ max),
/* harmony export */   "min": () => (/* binding */ min),
/* harmony export */   "sin": () => (/* binding */ sin),
/* harmony export */   "sqrt": () => (/* binding */ sqrt),
/* harmony export */   "epsilon": () => (/* binding */ epsilon),
/* harmony export */   "pi": () => (/* binding */ pi),
/* harmony export */   "halfPi": () => (/* binding */ halfPi),
/* harmony export */   "tau": () => (/* binding */ tau),
/* harmony export */   "acos": () => (/* binding */ acos),
/* harmony export */   "asin": () => (/* binding */ asin)
/* harmony export */ });
var abs = Math.abs;
var atan2 = Math.atan2;
var cos = Math.cos;
var max = Math.max;
var min = Math.min;
var sin = Math.sin;
var sqrt = Math.sqrt;

var epsilon = 1e-12;
var pi = Math.PI;
var halfPi = pi / 2;
var tau = 2 * pi;

function acos(x) {
  return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);
}

function asin(x) {
  return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x);
}


/***/ }),

/***/ "./node_modules/d3-shape/src/noop.js":
/*!*******************************************!*\
  !*** ./node_modules/d3-shape/src/noop.js ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {}


/***/ }),

/***/ "./node_modules/d3-shape/src/offset/diverging.js":
/*!*******************************************************!*\
  !*** ./node_modules/d3-shape/src/offset/diverging.js ***!
  \*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(series, order) {
  if (!((n = series.length) > 0)) return;
  for (var i, j = 0, d, dy, yp, yn, n, m = series[order[0]].length; j < m; ++j) {
    for (yp = yn = 0, i = 0; i < n; ++i) {
      if ((dy = (d = series[order[i]][j])[1] - d[0]) > 0) {
        d[0] = yp, d[1] = yp += dy;
      } else if (dy < 0) {
        d[1] = yn, d[0] = yn += dy;
      } else {
        d[0] = 0, d[1] = dy;
      }
    }
  }
}


/***/ }),

/***/ "./node_modules/d3-shape/src/offset/expand.js":
/*!****************************************************!*\
  !*** ./node_modules/d3-shape/src/offset/expand.js ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _none_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none.js */ "./node_modules/d3-shape/src/offset/none.js");


/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(series, order) {
  if (!((n = series.length) > 0)) return;
  for (var i, n, j = 0, m = series[0].length, y; j < m; ++j) {
    for (y = i = 0; i < n; ++i) y += series[i][j][1] || 0;
    if (y) for (i = 0; i < n; ++i) series[i][j][1] /= y;
  }
  (0,_none_js__WEBPACK_IMPORTED_MODULE_0__["default"])(series, order);
}


/***/ }),

/***/ "./node_modules/d3-shape/src/offset/none.js":
/*!**************************************************!*\
  !*** ./node_modules/d3-shape/src/offset/none.js ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(series, order) {
  if (!((n = series.length) > 1)) return;
  for (var i = 1, j, s0, s1 = series[order[0]], n, m = s1.length; i < n; ++i) {
    s0 = s1, s1 = series[order[i]];
    for (j = 0; j < m; ++j) {
      s1[j][1] += s1[j][0] = isNaN(s0[j][1]) ? s0[j][0] : s0[j][1];
    }
  }
}


/***/ }),

/***/ "./node_modules/d3-shape/src/offset/silhouette.js":
/*!********************************************************!*\
  !*** ./node_modules/d3-shape/src/offset/silhouette.js ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _none_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none.js */ "./node_modules/d3-shape/src/offset/none.js");


/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(series, order) {
  if (!((n = series.length) > 0)) return;
  for (var j = 0, s0 = series[order[0]], n, m = s0.length; j < m; ++j) {
    for (var i = 0, y = 0; i < n; ++i) y += series[i][j][1] || 0;
    s0[j][1] += s0[j][0] = -y / 2;
  }
  (0,_none_js__WEBPACK_IMPORTED_MODULE_0__["default"])(series, order);
}


/***/ }),

/***/ "./node_modules/d3-shape/src/offset/wiggle.js":
/*!****************************************************!*\
  !*** ./node_modules/d3-shape/src/offset/wiggle.js ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _none_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none.js */ "./node_modules/d3-shape/src/offset/none.js");


/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(series, order) {
  if (!((n = series.length) > 0) || !((m = (s0 = series[order[0]]).length) > 0)) return;
  for (var y = 0, j = 1, s0, m, n; j < m; ++j) {
    for (var i = 0, s1 = 0, s2 = 0; i < n; ++i) {
      var si = series[order[i]],
          sij0 = si[j][1] || 0,
          sij1 = si[j - 1][1] || 0,
          s3 = (sij0 - sij1) / 2;
      for (var k = 0; k < i; ++k) {
        var sk = series[order[k]],
            skj0 = sk[j][1] || 0,
            skj1 = sk[j - 1][1] || 0;
        s3 += skj0 - skj1;
      }
      s1 += sij0, s2 += s3 * sij0;
    }
    s0[j - 1][1] += s0[j - 1][0] = y;
    if (s1) y -= s2 / s1;
  }
  s0[j - 1][1] += s0[j - 1][0] = y;
  (0,_none_js__WEBPACK_IMPORTED_MODULE_0__["default"])(series, order);
}


/***/ }),

/***/ "./node_modules/d3-shape/src/order/appearance.js":
/*!*******************************************************!*\
  !*** ./node_modules/d3-shape/src/order/appearance.js ***!
  \*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _none_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none.js */ "./node_modules/d3-shape/src/order/none.js");


/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(series) {
  var peaks = series.map(peak);
  return (0,_none_js__WEBPACK_IMPORTED_MODULE_0__["default"])(series).sort(function(a, b) { return peaks[a] - peaks[b]; });
}

function peak(series) {
  var i = -1, j = 0, n = series.length, vi, vj = -Infinity;
  while (++i < n) if ((vi = +series[i][1]) > vj) vj = vi, j = i;
  return j;
}


/***/ }),

/***/ "./node_modules/d3-shape/src/order/ascending.js":
/*!******************************************************!*\
  !*** ./node_modules/d3-shape/src/order/ascending.js ***!
  \******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   "sum": () => (/* binding */ sum)
/* harmony export */ });
/* harmony import */ var _none_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none.js */ "./node_modules/d3-shape/src/order/none.js");


/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(series) {
  var sums = series.map(sum);
  return (0,_none_js__WEBPACK_IMPORTED_MODULE_0__["default"])(series).sort(function(a, b) { return sums[a] - sums[b]; });
}

function sum(series) {
  var s = 0, i = -1, n = series.length, v;
  while (++i < n) if (v = +series[i][1]) s += v;
  return s;
}


/***/ }),

/***/ "./node_modules/d3-shape/src/order/descending.js":
/*!*******************************************************!*\
  !*** ./node_modules/d3-shape/src/order/descending.js ***!
  \*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending.js */ "./node_modules/d3-shape/src/order/ascending.js");


/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(series) {
  return (0,_ascending_js__WEBPACK_IMPORTED_MODULE_0__["default"])(series).reverse();
}


/***/ }),

/***/ "./node_modules/d3-shape/src/order/insideOut.js":
/*!******************************************************!*\
  !*** ./node_modules/d3-shape/src/order/insideOut.js ***!
  \******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _appearance_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./appearance.js */ "./node_modules/d3-shape/src/order/appearance.js");
/* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending.js */ "./node_modules/d3-shape/src/order/ascending.js");



/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(series) {
  var n = series.length,
      i,
      j,
      sums = series.map(_ascending_js__WEBPACK_IMPORTED_MODULE_0__.sum),
      order = (0,_appearance_js__WEBPACK_IMPORTED_MODULE_1__["default"])(series),
      top = 0,
      bottom = 0,
      tops = [],
      bottoms = [];

  for (i = 0; i < n; ++i) {
    j = order[i];
    if (top < bottom) {
      top += sums[j];
      tops.push(j);
    } else {
      bottom += sums[j];
      bottoms.push(j);
    }
  }

  return bottoms.reverse().concat(tops);
}


/***/ }),

/***/ "./node_modules/d3-shape/src/order/none.js":
/*!*************************************************!*\
  !*** ./node_modules/d3-shape/src/order/none.js ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(series) {
  var n = series.length, o = new Array(n);
  while (--n >= 0) o[n] = n;
  return o;
}


/***/ }),

/***/ "./node_modules/d3-shape/src/order/reverse.js":
/*!****************************************************!*\
  !*** ./node_modules/d3-shape/src/order/reverse.js ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _none_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none.js */ "./node_modules/d3-shape/src/order/none.js");


/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(series) {
  return (0,_none_js__WEBPACK_IMPORTED_MODULE_0__["default"])(series).reverse();
}


/***/ }),

/***/ "./node_modules/d3-shape/src/pie.js":
/*!******************************************!*\
  !*** ./node_modules/d3-shape/src/pie.js ***!
  \******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constant.js */ "./node_modules/d3-shape/src/constant.js");
/* harmony import */ var _descending_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./descending.js */ "./node_modules/d3-shape/src/descending.js");
/* harmony import */ var _identity_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./identity.js */ "./node_modules/d3-shape/src/identity.js");
/* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./math.js */ "./node_modules/d3-shape/src/math.js");





/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {
  var value = _identity_js__WEBPACK_IMPORTED_MODULE_0__["default"],
      sortValues = _descending_js__WEBPACK_IMPORTED_MODULE_1__["default"],
      sort = null,
      startAngle = (0,_constant_js__WEBPACK_IMPORTED_MODULE_2__["default"])(0),
      endAngle = (0,_constant_js__WEBPACK_IMPORTED_MODULE_2__["default"])(_math_js__WEBPACK_IMPORTED_MODULE_3__.tau),
      padAngle = (0,_constant_js__WEBPACK_IMPORTED_MODULE_2__["default"])(0);

  function pie(data) {
    var i,
        n = data.length,
        j,
        k,
        sum = 0,
        index = new Array(n),
        arcs = new Array(n),
        a0 = +startAngle.apply(this, arguments),
        da = Math.min(_math_js__WEBPACK_IMPORTED_MODULE_3__.tau, Math.max(-_math_js__WEBPACK_IMPORTED_MODULE_3__.tau, endAngle.apply(this, arguments) - a0)),
        a1,
        p = Math.min(Math.abs(da) / n, padAngle.apply(this, arguments)),
        pa = p * (da < 0 ? -1 : 1),
        v;

    for (i = 0; i < n; ++i) {
      if ((v = arcs[index[i] = i] = +value(data[i], i, data)) > 0) {
        sum += v;
      }
    }

    // Optionally sort the arcs by previously-computed values or by data.
    if (sortValues != null) index.sort(function(i, j) { return sortValues(arcs[i], arcs[j]); });
    else if (sort != null) index.sort(function(i, j) { return sort(data[i], data[j]); });

    // Compute the arcs! They are stored in the original data's order.
    for (i = 0, k = sum ? (da - n * pa) / sum : 0; i < n; ++i, a0 = a1) {
      j = index[i], v = arcs[j], a1 = a0 + (v > 0 ? v * k : 0) + pa, arcs[j] = {
        data: data[j],
        index: i,
        value: v,
        startAngle: a0,
        endAngle: a1,
        padAngle: p
      };
    }

    return arcs;
  }

  pie.value = function(_) {
    return arguments.length ? (value = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_2__["default"])(+_), pie) : value;
  };

  pie.sortValues = function(_) {
    return arguments.length ? (sortValues = _, sort = null, pie) : sortValues;
  };

  pie.sort = function(_) {
    return arguments.length ? (sort = _, sortValues = null, pie) : sort;
  };

  pie.startAngle = function(_) {
    return arguments.length ? (startAngle = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_2__["default"])(+_), pie) : startAngle;
  };

  pie.endAngle = function(_) {
    return arguments.length ? (endAngle = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_2__["default"])(+_), pie) : endAngle;
  };

  pie.padAngle = function(_) {
    return arguments.length ? (padAngle = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_2__["default"])(+_), pie) : padAngle;
  };

  return pie;
}


/***/ }),

/***/ "./node_modules/d3-shape/src/point.js":
/*!********************************************!*\
  !*** ./node_modules/d3-shape/src/point.js ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "x": () => (/* binding */ x),
/* harmony export */   "y": () => (/* binding */ y)
/* harmony export */ });
function x(p) {
  return p[0];
}

function y(p) {
  return p[1];
}


/***/ }),

/***/ "./node_modules/d3-shape/src/pointRadial.js":
/*!**************************************************!*\
  !*** ./node_modules/d3-shape/src/pointRadial.js ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(x, y) {
  return [(y = +y) * Math.cos(x -= Math.PI / 2), y * Math.sin(x)];
}


/***/ }),

/***/ "./node_modules/d3-shape/src/stack.js":
/*!********************************************!*\
  !*** ./node_modules/d3-shape/src/stack.js ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _array_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./array.js */ "./node_modules/d3-shape/src/array.js");
/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant.js */ "./node_modules/d3-shape/src/constant.js");
/* harmony import */ var _offset_none_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./offset/none.js */ "./node_modules/d3-shape/src/offset/none.js");
/* harmony import */ var _order_none_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./order/none.js */ "./node_modules/d3-shape/src/order/none.js");





function stackValue(d, key) {
  return d[key];
}

/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {
  var keys = (0,_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])([]),
      order = _order_none_js__WEBPACK_IMPORTED_MODULE_1__["default"],
      offset = _offset_none_js__WEBPACK_IMPORTED_MODULE_2__["default"],
      value = stackValue;

  function stack(data) {
    var kz = keys.apply(this, arguments),
        i,
        m = data.length,
        n = kz.length,
        sz = new Array(n),
        oz;

    for (i = 0; i < n; ++i) {
      for (var ki = kz[i], si = sz[i] = new Array(m), j = 0, sij; j < m; ++j) {
        si[j] = sij = [0, +value(data[j], ki, j, data)];
        sij.data = data[j];
      }
      si.key = ki;
    }

    for (i = 0, oz = order(sz); i < n; ++i) {
      sz[oz[i]].index = i;
    }

    offset(sz, oz);
    return sz;
  }

  stack.keys = function(_) {
    return arguments.length ? (keys = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_array_js__WEBPACK_IMPORTED_MODULE_3__.slice.call(_)), stack) : keys;
  };

  stack.value = function(_) {
    return arguments.length ? (value = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(+_), stack) : value;
  };

  stack.order = function(_) {
    return arguments.length ? (order = _ == null ? _order_none_js__WEBPACK_IMPORTED_MODULE_1__["default"] : typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_array_js__WEBPACK_IMPORTED_MODULE_3__.slice.call(_)), stack) : order;
  };

  stack.offset = function(_) {
    return arguments.length ? (offset = _ == null ? _offset_none_js__WEBPACK_IMPORTED_MODULE_2__["default"] : _, stack) : offset;
  };

  return stack;
}


/***/ }),

/***/ "./node_modules/d3-shape/src/symbol.js":
/*!*********************************************!*\
  !*** ./node_modules/d3-shape/src/symbol.js ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "symbols": () => (/* binding */ symbols),
/* harmony export */   "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! d3-path */ "./node_modules/d3-path/src/path.js");
/* harmony import */ var _symbol_circle_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./symbol/circle.js */ "./node_modules/d3-shape/src/symbol/circle.js");
/* harmony import */ var _symbol_cross_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./symbol/cross.js */ "./node_modules/d3-shape/src/symbol/cross.js");
/* harmony import */ var _symbol_diamond_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./symbol/diamond.js */ "./node_modules/d3-shape/src/symbol/diamond.js");
/* harmony import */ var _symbol_star_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./symbol/star.js */ "./node_modules/d3-shape/src/symbol/star.js");
/* harmony import */ var _symbol_square_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./symbol/square.js */ "./node_modules/d3-shape/src/symbol/square.js");
/* harmony import */ var _symbol_triangle_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./symbol/triangle.js */ "./node_modules/d3-shape/src/symbol/triangle.js");
/* harmony import */ var _symbol_wye_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./symbol/wye.js */ "./node_modules/d3-shape/src/symbol/wye.js");
/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./constant.js */ "./node_modules/d3-shape/src/constant.js");










var symbols = [
  _symbol_circle_js__WEBPACK_IMPORTED_MODULE_0__["default"],
  _symbol_cross_js__WEBPACK_IMPORTED_MODULE_1__["default"],
  _symbol_diamond_js__WEBPACK_IMPORTED_MODULE_2__["default"],
  _symbol_square_js__WEBPACK_IMPORTED_MODULE_3__["default"],
  _symbol_star_js__WEBPACK_IMPORTED_MODULE_4__["default"],
  _symbol_triangle_js__WEBPACK_IMPORTED_MODULE_5__["default"],
  _symbol_wye_js__WEBPACK_IMPORTED_MODULE_6__["default"]
];

/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {
  var type = (0,_constant_js__WEBPACK_IMPORTED_MODULE_7__["default"])(_symbol_circle_js__WEBPACK_IMPORTED_MODULE_0__["default"]),
      size = (0,_constant_js__WEBPACK_IMPORTED_MODULE_7__["default"])(64),
      context = null;

  function symbol() {
    var buffer;
    if (!context) context = buffer = (0,d3_path__WEBPACK_IMPORTED_MODULE_8__["default"])();
    type.apply(this, arguments).draw(context, +size.apply(this, arguments));
    if (buffer) return context = null, buffer + "" || null;
  }

  symbol.type = function(_) {
    return arguments.length ? (type = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_7__["default"])(_), symbol) : type;
  };

  symbol.size = function(_) {
    return arguments.length ? (size = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_7__["default"])(+_), symbol) : size;
  };

  symbol.context = function(_) {
    return arguments.length ? (context = _ == null ? null : _, symbol) : context;
  };

  return symbol;
}


/***/ }),

/***/ "./node_modules/d3-shape/src/symbol/circle.js":
/*!****************************************************!*\
  !*** ./node_modules/d3-shape/src/symbol/circle.js ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-shape/src/math.js");


/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
  draw: function(context, size) {
    var r = Math.sqrt(size / _math_js__WEBPACK_IMPORTED_MODULE_0__.pi);
    context.moveTo(r, 0);
    context.arc(0, 0, r, 0, _math_js__WEBPACK_IMPORTED_MODULE_0__.tau);
  }
});


/***/ }),

/***/ "./node_modules/d3-shape/src/symbol/cross.js":
/*!***************************************************!*\
  !*** ./node_modules/d3-shape/src/symbol/cross.js ***!
  \***************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
  draw: function(context, size) {
    var r = Math.sqrt(size / 5) / 2;
    context.moveTo(-3 * r, -r);
    context.lineTo(-r, -r);
    context.lineTo(-r, -3 * r);
    context.lineTo(r, -3 * r);
    context.lineTo(r, -r);
    context.lineTo(3 * r, -r);
    context.lineTo(3 * r, r);
    context.lineTo(r, r);
    context.lineTo(r, 3 * r);
    context.lineTo(-r, 3 * r);
    context.lineTo(-r, r);
    context.lineTo(-3 * r, r);
    context.closePath();
  }
});


/***/ }),

/***/ "./node_modules/d3-shape/src/symbol/diamond.js":
/*!*****************************************************!*\
  !*** ./node_modules/d3-shape/src/symbol/diamond.js ***!
  \*****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
var tan30 = Math.sqrt(1 / 3),
    tan30_2 = tan30 * 2;

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
  draw: function(context, size) {
    var y = Math.sqrt(size / tan30_2),
        x = y * tan30;
    context.moveTo(0, -y);
    context.lineTo(x, 0);
    context.lineTo(0, y);
    context.lineTo(-x, 0);
    context.closePath();
  }
});


/***/ }),

/***/ "./node_modules/d3-shape/src/symbol/square.js":
/*!****************************************************!*\
  !*** ./node_modules/d3-shape/src/symbol/square.js ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
  draw: function(context, size) {
    var w = Math.sqrt(size),
        x = -w / 2;
    context.rect(x, x, w, w);
  }
});


/***/ }),

/***/ "./node_modules/d3-shape/src/symbol/star.js":
/*!**************************************************!*\
  !*** ./node_modules/d3-shape/src/symbol/star.js ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "./node_modules/d3-shape/src/math.js");


var ka = 0.89081309152928522810,
    kr = Math.sin(_math_js__WEBPACK_IMPORTED_MODULE_0__.pi / 10) / Math.sin(7 * _math_js__WEBPACK_IMPORTED_MODULE_0__.pi / 10),
    kx = Math.sin(_math_js__WEBPACK_IMPORTED_MODULE_0__.tau / 10) * kr,
    ky = -Math.cos(_math_js__WEBPACK_IMPORTED_MODULE_0__.tau / 10) * kr;

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
  draw: function(context, size) {
    var r = Math.sqrt(size * ka),
        x = kx * r,
        y = ky * r;
    context.moveTo(0, -r);
    context.lineTo(x, y);
    for (var i = 1; i < 5; ++i) {
      var a = _math_js__WEBPACK_IMPORTED_MODULE_0__.tau * i / 5,
          c = Math.cos(a),
          s = Math.sin(a);
      context.lineTo(s * r, -c * r);
      context.lineTo(c * x - s * y, s * x + c * y);
    }
    context.closePath();
  }
});


/***/ }),

/***/ "./node_modules/d3-shape/src/symbol/triangle.js":
/*!******************************************************!*\
  !*** ./node_modules/d3-shape/src/symbol/triangle.js ***!
  \******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
var sqrt3 = Math.sqrt(3);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
  draw: function(context, size) {
    var y = -Math.sqrt(size / (sqrt3 * 3));
    context.moveTo(0, y * 2);
    context.lineTo(-sqrt3 * y, -y);
    context.lineTo(sqrt3 * y, -y);
    context.closePath();
  }
});


/***/ }),

/***/ "./node_modules/d3-shape/src/symbol/wye.js":
/*!*************************************************!*\
  !*** ./node_modules/d3-shape/src/symbol/wye.js ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
var c = -0.5,
    s = Math.sqrt(3) / 2,
    k = 1 / Math.sqrt(12),
    a = (k / 2 + 1) * 3;

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
  draw: function(context, size) {
    var r = Math.sqrt(size / a),
        x0 = r / 2,
        y0 = r * k,
        x1 = x0,
        y1 = r * k + r,
        x2 = -x1,
        y2 = y1;
    context.moveTo(x0, y0);
    context.lineTo(x1, y1);
    context.lineTo(x2, y2);
    context.lineTo(c * x0 - s * y0, s * x0 + c * y0);
    context.lineTo(c * x1 - s * y1, s * x1 + c * y1);
    context.lineTo(c * x2 - s * y2, s * x2 + c * y2);
    context.lineTo(c * x0 + s * y0, c * y0 - s * x0);
    context.lineTo(c * x1 + s * y1, c * y1 - s * x1);
    context.lineTo(c * x2 + s * y2, c * y2 - s * x2);
    context.closePath();
  }
});


/***/ }),

/***/ "./node_modules/d3-time-format/src/defaultLocale.js":
/*!**********************************************************!*\
  !*** ./node_modules/d3-time-format/src/defaultLocale.js ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "timeFormat": () => (/* binding */ timeFormat),
/* harmony export */   "timeParse": () => (/* binding */ timeParse),
/* harmony export */   "utcFormat": () => (/* binding */ utcFormat),
/* harmony export */   "utcParse": () => (/* binding */ utcParse),
/* harmony export */   "default": () => (/* binding */ defaultLocale)
/* harmony export */ });
/* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale.js */ "./node_modules/d3-time-format/src/locale.js");


var locale;
var timeFormat;
var timeParse;
var utcFormat;
var utcParse;

defaultLocale({
  dateTime: "%x, %X",
  date: "%-m/%-d/%Y",
  time: "%-I:%M:%S %p",
  periods: ["AM", "PM"],
  days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
  shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
  months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
  shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
});

function defaultLocale(definition) {
  locale = (0,_locale_js__WEBPACK_IMPORTED_MODULE_0__["default"])(definition);
  timeFormat = locale.format;
  timeParse = locale.parse;
  utcFormat = locale.utcFormat;
  utcParse = locale.utcParse;
  return locale;
}


/***/ }),

/***/ "./node_modules/d3-time-format/src/locale.js":
/*!***************************************************!*\
  !*** ./node_modules/d3-time-format/src/locale.js ***!
  \***************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ formatLocale)
/* harmony export */ });
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/utcWeek.js");
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/utcDay.js");
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/week.js");
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/day.js");
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/year.js");
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! d3-time */ "./node_modules/d3-time/src/utcYear.js");


function localDate(d) {
  if (0 <= d.y && d.y < 100) {
    var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);
    date.setFullYear(d.y);
    return date;
  }
  return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L);
}

function utcDate(d) {
  if (0 <= d.y && d.y < 100) {
    var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L));
    date.setUTCFullYear(d.y);
    return date;
  }
  return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L));
}

function newDate(y, m, d) {
  return {y: y, m: m, d: d, H: 0, M: 0, S: 0, L: 0};
}

function formatLocale(locale) {
  var locale_dateTime = locale.dateTime,
      locale_date = locale.date,
      locale_time = locale.time,
      locale_periods = locale.periods,
      locale_weekdays = locale.days,
      locale_shortWeekdays = locale.shortDays,
      locale_months = locale.months,
      locale_shortMonths = locale.shortMonths;

  var periodRe = formatRe(locale_periods),
      periodLookup = formatLookup(locale_periods),
      weekdayRe = formatRe(locale_weekdays),
      weekdayLookup = formatLookup(locale_weekdays),
      shortWeekdayRe = formatRe(locale_shortWeekdays),
      shortWeekdayLookup = formatLookup(locale_shortWeekdays),
      monthRe = formatRe(locale_months),
      monthLookup = formatLookup(locale_months),
      shortMonthRe = formatRe(locale_shortMonths),
      shortMonthLookup = formatLookup(locale_shortMonths);

  var formats = {
    "a": formatShortWeekday,
    "A": formatWeekday,
    "b": formatShortMonth,
    "B": formatMonth,
    "c": null,
    "d": formatDayOfMonth,
    "e": formatDayOfMonth,
    "f": formatMicroseconds,
    "g": formatYearISO,
    "G": formatFullYearISO,
    "H": formatHour24,
    "I": formatHour12,
    "j": formatDayOfYear,
    "L": formatMilliseconds,
    "m": formatMonthNumber,
    "M": formatMinutes,
    "p": formatPeriod,
    "q": formatQuarter,
    "Q": formatUnixTimestamp,
    "s": formatUnixTimestampSeconds,
    "S": formatSeconds,
    "u": formatWeekdayNumberMonday,
    "U": formatWeekNumberSunday,
    "V": formatWeekNumberISO,
    "w": formatWeekdayNumberSunday,
    "W": formatWeekNumberMonday,
    "x": null,
    "X": null,
    "y": formatYear,
    "Y": formatFullYear,
    "Z": formatZone,
    "%": formatLiteralPercent
  };

  var utcFormats = {
    "a": formatUTCShortWeekday,
    "A": formatUTCWeekday,
    "b": formatUTCShortMonth,
    "B": formatUTCMonth,
    "c": null,
    "d": formatUTCDayOfMonth,
    "e": formatUTCDayOfMonth,
    "f": formatUTCMicroseconds,
    "g": formatUTCYearISO,
    "G": formatUTCFullYearISO,
    "H": formatUTCHour24,
    "I": formatUTCHour12,
    "j": formatUTCDayOfYear,
    "L": formatUTCMilliseconds,
    "m": formatUTCMonthNumber,
    "M": formatUTCMinutes,
    "p": formatUTCPeriod,
    "q": formatUTCQuarter,
    "Q": formatUnixTimestamp,
    "s": formatUnixTimestampSeconds,
    "S": formatUTCSeconds,
    "u": formatUTCWeekdayNumberMonday,
    "U": formatUTCWeekNumberSunday,
    "V": formatUTCWeekNumberISO,
    "w": formatUTCWeekdayNumberSunday,
    "W": formatUTCWeekNumberMonday,
    "x": null,
    "X": null,
    "y": formatUTCYear,
    "Y": formatUTCFullYear,
    "Z": formatUTCZone,
    "%": formatLiteralPercent
  };

  var parses = {
    "a": parseShortWeekday,
    "A": parseWeekday,
    "b": parseShortMonth,
    "B": parseMonth,
    "c": parseLocaleDateTime,
    "d": parseDayOfMonth,
    "e": parseDayOfMonth,
    "f": parseMicroseconds,
    "g": parseYear,
    "G": parseFullYear,
    "H": parseHour24,
    "I": parseHour24,
    "j": parseDayOfYear,
    "L": parseMilliseconds,
    "m": parseMonthNumber,
    "M": parseMinutes,
    "p": parsePeriod,
    "q": parseQuarter,
    "Q": parseUnixTimestamp,
    "s": parseUnixTimestampSeconds,
    "S": parseSeconds,
    "u": parseWeekdayNumberMonday,
    "U": parseWeekNumberSunday,
    "V": parseWeekNumberISO,
    "w": parseWeekdayNumberSunday,
    "W": parseWeekNumberMonday,
    "x": parseLocaleDate,
    "X": parseLocaleTime,
    "y": parseYear,
    "Y": parseFullYear,
    "Z": parseZone,
    "%": parseLiteralPercent
  };

  // These recursive directive definitions must be deferred.
  formats.x = newFormat(locale_date, formats);
  formats.X = newFormat(locale_time, formats);
  formats.c = newFormat(locale_dateTime, formats);
  utcFormats.x = newFormat(locale_date, utcFormats);
  utcFormats.X = newFormat(locale_time, utcFormats);
  utcFormats.c = newFormat(locale_dateTime, utcFormats);

  function newFormat(specifier, formats) {
    return function(date) {
      var string = [],
          i = -1,
          j = 0,
          n = specifier.length,
          c,
          pad,
          format;

      if (!(date instanceof Date)) date = new Date(+date);

      while (++i < n) {
        if (specifier.charCodeAt(i) === 37) {
          string.push(specifier.slice(j, i));
          if ((pad = pads[c = specifier.charAt(++i)]) != null) c = specifier.charAt(++i);
          else pad = c === "e" ? " " : "0";
          if (format = formats[c]) c = format(date, pad);
          string.push(c);
          j = i + 1;
        }
      }

      string.push(specifier.slice(j, i));
      return string.join("");
    };
  }

  function newParse(specifier, Z) {
    return function(string) {
      var d = newDate(1900, undefined, 1),
          i = parseSpecifier(d, specifier, string += "", 0),
          week, day;
      if (i != string.length) return null;

      // If a UNIX timestamp is specified, return it.
      if ("Q" in d) return new Date(d.Q);
      if ("s" in d) return new Date(d.s * 1000 + ("L" in d ? d.L : 0));

      // If this is utcParse, never use the local timezone.
      if (Z && !("Z" in d)) d.Z = 0;

      // The am-pm flag is 0 for AM, and 1 for PM.
      if ("p" in d) d.H = d.H % 12 + d.p * 12;

      // If the month was not specified, inherit from the quarter.
      if (d.m === undefined) d.m = "q" in d ? d.q : 0;

      // Convert day-of-week and week-of-year to day-of-year.
      if ("V" in d) {
        if (d.V < 1 || d.V > 53) return null;
        if (!("w" in d)) d.w = 1;
        if ("Z" in d) {
          week = utcDate(newDate(d.y, 0, 1)), day = week.getUTCDay();
          week = day > 4 || day === 0 ? d3_time__WEBPACK_IMPORTED_MODULE_0__.utcMonday.ceil(week) : (0,d3_time__WEBPACK_IMPORTED_MODULE_0__.utcMonday)(week);
          week = d3_time__WEBPACK_IMPORTED_MODULE_1__["default"].offset(week, (d.V - 1) * 7);
          d.y = week.getUTCFullYear();
          d.m = week.getUTCMonth();
          d.d = week.getUTCDate() + (d.w + 6) % 7;
        } else {
          week = localDate(newDate(d.y, 0, 1)), day = week.getDay();
          week = day > 4 || day === 0 ? d3_time__WEBPACK_IMPORTED_MODULE_2__.monday.ceil(week) : (0,d3_time__WEBPACK_IMPORTED_MODULE_2__.monday)(week);
          week = d3_time__WEBPACK_IMPORTED_MODULE_3__["default"].offset(week, (d.V - 1) * 7);
          d.y = week.getFullYear();
          d.m = week.getMonth();
          d.d = week.getDate() + (d.w + 6) % 7;
        }
      } else if ("W" in d || "U" in d) {
        if (!("w" in d)) d.w = "u" in d ? d.u % 7 : "W" in d ? 1 : 0;
        day = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay();
        d.m = 0;
        d.d = "W" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7;
      }

      // If a time zone is specified, all fields are interpreted as UTC and then
      // offset according to the specified time zone.
      if ("Z" in d) {
        d.H += d.Z / 100 | 0;
        d.M += d.Z % 100;
        return utcDate(d);
      }

      // Otherwise, all fields are in local time.
      return localDate(d);
    };
  }

  function parseSpecifier(d, specifier, string, j) {
    var i = 0,
        n = specifier.length,
        m = string.length,
        c,
        parse;

    while (i < n) {
      if (j >= m) return -1;
      c = specifier.charCodeAt(i++);
      if (c === 37) {
        c = specifier.charAt(i++);
        parse = parses[c in pads ? specifier.charAt(i++) : c];
        if (!parse || ((j = parse(d, string, j)) < 0)) return -1;
      } else if (c != string.charCodeAt(j++)) {
        return -1;
      }
    }

    return j;
  }

  function parsePeriod(d, string, i) {
    var n = periodRe.exec(string.slice(i));
    return n ? (d.p = periodLookup[n[0].toLowerCase()], i + n[0].length) : -1;
  }

  function parseShortWeekday(d, string, i) {
    var n = shortWeekdayRe.exec(string.slice(i));
    return n ? (d.w = shortWeekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;
  }

  function parseWeekday(d, string, i) {
    var n = weekdayRe.exec(string.slice(i));
    return n ? (d.w = weekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;
  }

  function parseShortMonth(d, string, i) {
    var n = shortMonthRe.exec(string.slice(i));
    return n ? (d.m = shortMonthLookup[n[0].toLowerCase()], i + n[0].length) : -1;
  }

  function parseMonth(d, string, i) {
    var n = monthRe.exec(string.slice(i));
    return n ? (d.m = monthLookup[n[0].toLowerCase()], i + n[0].length) : -1;
  }

  function parseLocaleDateTime(d, string, i) {
    return parseSpecifier(d, locale_dateTime, string, i);
  }

  function parseLocaleDate(d, string, i) {
    return parseSpecifier(d, locale_date, string, i);
  }

  function parseLocaleTime(d, string, i) {
    return parseSpecifier(d, locale_time, string, i);
  }

  function formatShortWeekday(d) {
    return locale_shortWeekdays[d.getDay()];
  }

  function formatWeekday(d) {
    return locale_weekdays[d.getDay()];
  }

  function formatShortMonth(d) {
    return locale_shortMonths[d.getMonth()];
  }

  function formatMonth(d) {
    return locale_months[d.getMonth()];
  }

  function formatPeriod(d) {
    return locale_periods[+(d.getHours() >= 12)];
  }

  function formatQuarter(d) {
    return 1 + ~~(d.getMonth() / 3);
  }

  function formatUTCShortWeekday(d) {
    return locale_shortWeekdays[d.getUTCDay()];
  }

  function formatUTCWeekday(d) {
    return locale_weekdays[d.getUTCDay()];
  }

  function formatUTCShortMonth(d) {
    return locale_shortMonths[d.getUTCMonth()];
  }

  function formatUTCMonth(d) {
    return locale_months[d.getUTCMonth()];
  }

  function formatUTCPeriod(d) {
    return locale_periods[+(d.getUTCHours() >= 12)];
  }

  function formatUTCQuarter(d) {
    return 1 + ~~(d.getUTCMonth() / 3);
  }

  return {
    format: function(specifier) {
      var f = newFormat(specifier += "", formats);
      f.toString = function() { return specifier; };
      return f;
    },
    parse: function(specifier) {
      var p = newParse(specifier += "", false);
      p.toString = function() { return specifier; };
      return p;
    },
    utcFormat: function(specifier) {
      var f = newFormat(specifier += "", utcFormats);
      f.toString = function() { return specifier; };
      return f;
    },
    utcParse: function(specifier) {
      var p = newParse(specifier += "", true);
      p.toString = function() { return specifier; };
      return p;
    }
  };
}

var pads = {"-": "", "_": " ", "0": "0"},
    numberRe = /^\s*\d+/, // note: ignores next directive
    percentRe = /^%/,
    requoteRe = /[\\^$*+?|[\]().{}]/g;

function pad(value, fill, width) {
  var sign = value < 0 ? "-" : "",
      string = (sign ? -value : value) + "",
      length = string.length;
  return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string);
}

function requote(s) {
  return s.replace(requoteRe, "\\$&");
}

function formatRe(names) {
  return new RegExp("^(?:" + names.map(requote).join("|") + ")", "i");
}

function formatLookup(names) {
  var map = {}, i = -1, n = names.length;
  while (++i < n) map[names[i].toLowerCase()] = i;
  return map;
}

function parseWeekdayNumberSunday(d, string, i) {
  var n = numberRe.exec(string.slice(i, i + 1));
  return n ? (d.w = +n[0], i + n[0].length) : -1;
}

function parseWeekdayNumberMonday(d, string, i) {
  var n = numberRe.exec(string.slice(i, i + 1));
  return n ? (d.u = +n[0], i + n[0].length) : -1;
}

function parseWeekNumberSunday(d, string, i) {
  var n = numberRe.exec(string.slice(i, i + 2));
  return n ? (d.U = +n[0], i + n[0].length) : -1;
}

function parseWeekNumberISO(d, string, i) {
  var n = numberRe.exec(string.slice(i, i + 2));
  return n ? (d.V = +n[0], i + n[0].length) : -1;
}

function parseWeekNumberMonday(d, string, i) {
  var n = numberRe.exec(string.slice(i, i + 2));
  return n ? (d.W = +n[0], i + n[0].length) : -1;
}

function parseFullYear(d, string, i) {
  var n = numberRe.exec(string.slice(i, i + 4));
  return n ? (d.y = +n[0], i + n[0].length) : -1;
}

function parseYear(d, string, i) {
  var n = numberRe.exec(string.slice(i, i + 2));
  return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2000), i + n[0].length) : -1;
}

function parseZone(d, string, i) {
  var n = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(string.slice(i, i + 6));
  return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || "00")), i + n[0].length) : -1;
}

function parseQuarter(d, string, i) {
  var n = numberRe.exec(string.slice(i, i + 1));
  return n ? (d.q = n[0] * 3 - 3, i + n[0].length) : -1;
}

function parseMonthNumber(d, string, i) {
  var n = numberRe.exec(string.slice(i, i + 2));
  return n ? (d.m = n[0] - 1, i + n[0].length) : -1;
}

function parseDayOfMonth(d, string, i) {
  var n = numberRe.exec(string.slice(i, i + 2));
  return n ? (d.d = +n[0], i + n[0].length) : -1;
}

function parseDayOfYear(d, string, i) {
  var n = numberRe.exec(string.slice(i, i + 3));
  return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1;
}

function parseHour24(d, string, i) {
  var n = numberRe.exec(string.slice(i, i + 2));
  return n ? (d.H = +n[0], i + n[0].length) : -1;
}

function parseMinutes(d, string, i) {
  var n = numberRe.exec(string.slice(i, i + 2));
  return n ? (d.M = +n[0], i + n[0].length) : -1;
}

function parseSeconds(d, string, i) {
  var n = numberRe.exec(string.slice(i, i + 2));
  return n ? (d.S = +n[0], i + n[0].length) : -1;
}

function parseMilliseconds(d, string, i) {
  var n = numberRe.exec(string.slice(i, i + 3));
  return n ? (d.L = +n[0], i + n[0].length) : -1;
}

function parseMicroseconds(d, string, i) {
  var n = numberRe.exec(string.slice(i, i + 6));
  return n ? (d.L = Math.floor(n[0] / 1000), i + n[0].length) : -1;
}

function parseLiteralPercent(d, string, i) {
  var n = percentRe.exec(string.slice(i, i + 1));
  return n ? i + n[0].length : -1;
}

function parseUnixTimestamp(d, string, i) {
  var n = numberRe.exec(string.slice(i));
  return n ? (d.Q = +n[0], i + n[0].length) : -1;
}

function parseUnixTimestampSeconds(d, string, i) {
  var n = numberRe.exec(string.slice(i));
  return n ? (d.s = +n[0], i + n[0].length) : -1;
}

function formatDayOfMonth(d, p) {
  return pad(d.getDate(), p, 2);
}

function formatHour24(d, p) {
  return pad(d.getHours(), p, 2);
}

function formatHour12(d, p) {
  return pad(d.getHours() % 12 || 12, p, 2);
}

function formatDayOfYear(d, p) {
  return pad(1 + d3_time__WEBPACK_IMPORTED_MODULE_3__["default"].count((0,d3_time__WEBPACK_IMPORTED_MODULE_4__["default"])(d), d), p, 3);
}

function formatMilliseconds(d, p) {
  return pad(d.getMilliseconds(), p, 3);
}

function formatMicroseconds(d, p) {
  return formatMilliseconds(d, p) + "000";
}

function formatMonthNumber(d, p) {
  return pad(d.getMonth() + 1, p, 2);
}

function formatMinutes(d, p) {
  return pad(d.getMinutes(), p, 2);
}

function formatSeconds(d, p) {
  return pad(d.getSeconds(), p, 2);
}

function formatWeekdayNumberMonday(d) {
  var day = d.getDay();
  return day === 0 ? 7 : day;
}

function formatWeekNumberSunday(d, p) {
  return pad(d3_time__WEBPACK_IMPORTED_MODULE_2__.sunday.count((0,d3_time__WEBPACK_IMPORTED_MODULE_4__["default"])(d) - 1, d), p, 2);
}

function dISO(d) {
  var day = d.getDay();
  return (day >= 4 || day === 0) ? (0,d3_time__WEBPACK_IMPORTED_MODULE_2__.thursday)(d) : d3_time__WEBPACK_IMPORTED_MODULE_2__.thursday.ceil(d);
}

function formatWeekNumberISO(d, p) {
  d = dISO(d);
  return pad(d3_time__WEBPACK_IMPORTED_MODULE_2__.thursday.count((0,d3_time__WEBPACK_IMPORTED_MODULE_4__["default"])(d), d) + ((0,d3_time__WEBPACK_IMPORTED_MODULE_4__["default"])(d).getDay() === 4), p, 2);
}

function formatWeekdayNumberSunday(d) {
  return d.getDay();
}

function formatWeekNumberMonday(d, p) {
  return pad(d3_time__WEBPACK_IMPORTED_MODULE_2__.monday.count((0,d3_time__WEBPACK_IMPORTED_MODULE_4__["default"])(d) - 1, d), p, 2);
}

function formatYear(d, p) {
  return pad(d.getFullYear() % 100, p, 2);
}

function formatYearISO(d, p) {
  d = dISO(d);
  return pad(d.getFullYear() % 100, p, 2);
}

function formatFullYear(d, p) {
  return pad(d.getFullYear() % 10000, p, 4);
}

function formatFullYearISO(d, p) {
  var day = d.getDay();
  d = (day >= 4 || day === 0) ? (0,d3_time__WEBPACK_IMPORTED_MODULE_2__.thursday)(d) : d3_time__WEBPACK_IMPORTED_MODULE_2__.thursday.ceil(d);
  return pad(d.getFullYear() % 10000, p, 4);
}

function formatZone(d) {
  var z = d.getTimezoneOffset();
  return (z > 0 ? "-" : (z *= -1, "+"))
      + pad(z / 60 | 0, "0", 2)
      + pad(z % 60, "0", 2);
}

function formatUTCDayOfMonth(d, p) {
  return pad(d.getUTCDate(), p, 2);
}

function formatUTCHour24(d, p) {
  return pad(d.getUTCHours(), p, 2);
}

function formatUTCHour12(d, p) {
  return pad(d.getUTCHours() % 12 || 12, p, 2);
}

function formatUTCDayOfYear(d, p) {
  return pad(1 + d3_time__WEBPACK_IMPORTED_MODULE_1__["default"].count((0,d3_time__WEBPACK_IMPORTED_MODULE_5__["default"])(d), d), p, 3);
}

function formatUTCMilliseconds(d, p) {
  return pad(d.getUTCMilliseconds(), p, 3);
}

function formatUTCMicroseconds(d, p) {
  return formatUTCMilliseconds(d, p) + "000";
}

function formatUTCMonthNumber(d, p) {
  return pad(d.getUTCMonth() + 1, p, 2);
}

function formatUTCMinutes(d, p) {
  return pad(d.getUTCMinutes(), p, 2);
}

function formatUTCSeconds(d, p) {
  return pad(d.getUTCSeconds(), p, 2);
}

function formatUTCWeekdayNumberMonday(d) {
  var dow = d.getUTCDay();
  return dow === 0 ? 7 : dow;
}

function formatUTCWeekNumberSunday(d, p) {
  return pad(d3_time__WEBPACK_IMPORTED_MODULE_0__.utcSunday.count((0,d3_time__WEBPACK_IMPORTED_MODULE_5__["default"])(d) - 1, d), p, 2);
}

function UTCdISO(d) {
  var day = d.getUTCDay();
  return (day >= 4 || day === 0) ? (0,d3_time__WEBPACK_IMPORTED_MODULE_0__.utcThursday)(d) : d3_time__WEBPACK_IMPORTED_MODULE_0__.utcThursday.ceil(d);
}

function formatUTCWeekNumberISO(d, p) {
  d = UTCdISO(d);
  return pad(d3_time__WEBPACK_IMPORTED_MODULE_0__.utcThursday.count((0,d3_time__WEBPACK_IMPORTED_MODULE_5__["default"])(d), d) + ((0,d3_time__WEBPACK_IMPORTED_MODULE_5__["default"])(d).getUTCDay() === 4), p, 2);
}

function formatUTCWeekdayNumberSunday(d) {
  return d.getUTCDay();
}

function formatUTCWeekNumberMonday(d, p) {
  return pad(d3_time__WEBPACK_IMPORTED_MODULE_0__.utcMonday.count((0,d3_time__WEBPACK_IMPORTED_MODULE_5__["default"])(d) - 1, d), p, 2);
}

function formatUTCYear(d, p) {
  return pad(d.getUTCFullYear() % 100, p, 2);
}

function formatUTCYearISO(d, p) {
  d = UTCdISO(d);
  return pad(d.getUTCFullYear() % 100, p, 2);
}

function formatUTCFullYear(d, p) {
  return pad(d.getUTCFullYear() % 10000, p, 4);
}

function formatUTCFullYearISO(d, p) {
  var day = d.getUTCDay();
  d = (day >= 4 || day === 0) ? (0,d3_time__WEBPACK_IMPORTED_MODULE_0__.utcThursday)(d) : d3_time__WEBPACK_IMPORTED_MODULE_0__.utcThursday.ceil(d);
  return pad(d.getUTCFullYear() % 10000, p, 4);
}

function formatUTCZone() {
  return "+0000";
}

function formatLiteralPercent() {
  return "%";
}

function formatUnixTimestamp(d) {
  return +d;
}

function formatUnixTimestampSeconds(d) {
  return Math.floor(+d / 1000);
}


/***/ }),

/***/ "./node_modules/d3-time/src/day.js":
/*!*****************************************!*\
  !*** ./node_modules/d3-time/src/day.js ***!
  \*****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   "days": () => (/* binding */ days)
/* harmony export */ });
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "./node_modules/d3-time/src/duration.js");



var day = (0,_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  date.setHours(0, 0, 0, 0);
}, function(date, step) {
  date.setDate(date.getDate() + step);
}, function(start, end) {
  return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * _duration_js__WEBPACK_IMPORTED_MODULE_1__.durationMinute) / _duration_js__WEBPACK_IMPORTED_MODULE_1__.durationDay;
}, function(date) {
  return date.getDate() - 1;
});

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (day);
var days = day.range;


/***/ }),

/***/ "./node_modules/d3-time/src/duration.js":
/*!**********************************************!*\
  !*** ./node_modules/d3-time/src/duration.js ***!
  \**********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "durationSecond": () => (/* binding */ durationSecond),
/* harmony export */   "durationMinute": () => (/* binding */ durationMinute),
/* harmony export */   "durationHour": () => (/* binding */ durationHour),
/* harmony export */   "durationDay": () => (/* binding */ durationDay),
/* harmony export */   "durationWeek": () => (/* binding */ durationWeek)
/* harmony export */ });
var durationSecond = 1e3;
var durationMinute = 6e4;
var durationHour = 36e5;
var durationDay = 864e5;
var durationWeek = 6048e5;


/***/ }),

/***/ "./node_modules/d3-time/src/hour.js":
/*!******************************************!*\
  !*** ./node_modules/d3-time/src/hour.js ***!
  \******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   "hours": () => (/* binding */ hours)
/* harmony export */ });
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "./node_modules/d3-time/src/duration.js");



var hour = (0,_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  date.setTime(date - date.getMilliseconds() - date.getSeconds() * _duration_js__WEBPACK_IMPORTED_MODULE_1__.durationSecond - date.getMinutes() * _duration_js__WEBPACK_IMPORTED_MODULE_1__.durationMinute);
}, function(date, step) {
  date.setTime(+date + step * _duration_js__WEBPACK_IMPORTED_MODULE_1__.durationHour);
}, function(start, end) {
  return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__.durationHour;
}, function(date) {
  return date.getHours();
});

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (hour);
var hours = hour.range;


/***/ }),

/***/ "./node_modules/d3-time/src/interval.js":
/*!**********************************************!*\
  !*** ./node_modules/d3-time/src/interval.js ***!
  \**********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ newInterval)
/* harmony export */ });
var t0 = new Date,
    t1 = new Date;

function newInterval(floori, offseti, count, field) {

  function interval(date) {
    return floori(date = arguments.length === 0 ? new Date : new Date(+date)), date;
  }

  interval.floor = function(date) {
    return floori(date = new Date(+date)), date;
  };

  interval.ceil = function(date) {
    return floori(date = new Date(date - 1)), offseti(date, 1), floori(date), date;
  };

  interval.round = function(date) {
    var d0 = interval(date),
        d1 = interval.ceil(date);
    return date - d0 < d1 - date ? d0 : d1;
  };

  interval.offset = function(date, step) {
    return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date;
  };

  interval.range = function(start, stop, step) {
    var range = [], previous;
    start = interval.ceil(start);
    step = step == null ? 1 : Math.floor(step);
    if (!(start < stop) || !(step > 0)) return range; // also handles Invalid Date
    do range.push(previous = new Date(+start)), offseti(start, step), floori(start);
    while (previous < start && start < stop);
    return range;
  };

  interval.filter = function(test) {
    return newInterval(function(date) {
      if (date >= date) while (floori(date), !test(date)) date.setTime(date - 1);
    }, function(date, step) {
      if (date >= date) {
        if (step < 0) while (++step <= 0) {
          while (offseti(date, -1), !test(date)) {} // eslint-disable-line no-empty
        } else while (--step >= 0) {
          while (offseti(date, +1), !test(date)) {} // eslint-disable-line no-empty
        }
      }
    });
  };

  if (count) {
    interval.count = function(start, end) {
      t0.setTime(+start), t1.setTime(+end);
      floori(t0), floori(t1);
      return Math.floor(count(t0, t1));
    };

    interval.every = function(step) {
      step = Math.floor(step);
      return !isFinite(step) || !(step > 0) ? null
          : !(step > 1) ? interval
          : interval.filter(field
              ? function(d) { return field(d) % step === 0; }
              : function(d) { return interval.count(0, d) % step === 0; });
    };
  }

  return interval;
}


/***/ }),

/***/ "./node_modules/d3-time/src/millisecond.js":
/*!*************************************************!*\
  !*** ./node_modules/d3-time/src/millisecond.js ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   "milliseconds": () => (/* binding */ milliseconds)
/* harmony export */ });
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");


var millisecond = (0,_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function() {
  // noop
}, function(date, step) {
  date.setTime(+date + step);
}, function(start, end) {
  return end - start;
});

// An optimized implementation for this simple case.
millisecond.every = function(k) {
  k = Math.floor(k);
  if (!isFinite(k) || !(k > 0)) return null;
  if (!(k > 1)) return millisecond;
  return (0,_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
    date.setTime(Math.floor(date / k) * k);
  }, function(date, step) {
    date.setTime(+date + step * k);
  }, function(start, end) {
    return (end - start) / k;
  });
};

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (millisecond);
var milliseconds = millisecond.range;


/***/ }),

/***/ "./node_modules/d3-time/src/minute.js":
/*!********************************************!*\
  !*** ./node_modules/d3-time/src/minute.js ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   "minutes": () => (/* binding */ minutes)
/* harmony export */ });
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "./node_modules/d3-time/src/duration.js");



var minute = (0,_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  date.setTime(date - date.getMilliseconds() - date.getSeconds() * _duration_js__WEBPACK_IMPORTED_MODULE_1__.durationSecond);
}, function(date, step) {
  date.setTime(+date + step * _duration_js__WEBPACK_IMPORTED_MODULE_1__.durationMinute);
}, function(start, end) {
  return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__.durationMinute;
}, function(date) {
  return date.getMinutes();
});

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (minute);
var minutes = minute.range;


/***/ }),

/***/ "./node_modules/d3-time/src/month.js":
/*!*******************************************!*\
  !*** ./node_modules/d3-time/src/month.js ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   "months": () => (/* binding */ months)
/* harmony export */ });
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");


var month = (0,_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  date.setDate(1);
  date.setHours(0, 0, 0, 0);
}, function(date, step) {
  date.setMonth(date.getMonth() + step);
}, function(start, end) {
  return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12;
}, function(date) {
  return date.getMonth();
});

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (month);
var months = month.range;


/***/ }),

/***/ "./node_modules/d3-time/src/second.js":
/*!********************************************!*\
  !*** ./node_modules/d3-time/src/second.js ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   "seconds": () => (/* binding */ seconds)
/* harmony export */ });
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "./node_modules/d3-time/src/duration.js");



var second = (0,_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  date.setTime(date - date.getMilliseconds());
}, function(date, step) {
  date.setTime(+date + step * _duration_js__WEBPACK_IMPORTED_MODULE_1__.durationSecond);
}, function(start, end) {
  return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__.durationSecond;
}, function(date) {
  return date.getUTCSeconds();
});

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (second);
var seconds = second.range;


/***/ }),

/***/ "./node_modules/d3-time/src/utcDay.js":
/*!********************************************!*\
  !*** ./node_modules/d3-time/src/utcDay.js ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   "utcDays": () => (/* binding */ utcDays)
/* harmony export */ });
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "./node_modules/d3-time/src/duration.js");



var utcDay = (0,_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  date.setUTCHours(0, 0, 0, 0);
}, function(date, step) {
  date.setUTCDate(date.getUTCDate() + step);
}, function(start, end) {
  return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__.durationDay;
}, function(date) {
  return date.getUTCDate() - 1;
});

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (utcDay);
var utcDays = utcDay.range;


/***/ }),

/***/ "./node_modules/d3-time/src/utcHour.js":
/*!*********************************************!*\
  !*** ./node_modules/d3-time/src/utcHour.js ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   "utcHours": () => (/* binding */ utcHours)
/* harmony export */ });
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "./node_modules/d3-time/src/duration.js");



var utcHour = (0,_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  date.setUTCMinutes(0, 0, 0);
}, function(date, step) {
  date.setTime(+date + step * _duration_js__WEBPACK_IMPORTED_MODULE_1__.durationHour);
}, function(start, end) {
  return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__.durationHour;
}, function(date) {
  return date.getUTCHours();
});

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (utcHour);
var utcHours = utcHour.range;


/***/ }),

/***/ "./node_modules/d3-time/src/utcMinute.js":
/*!***********************************************!*\
  !*** ./node_modules/d3-time/src/utcMinute.js ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   "utcMinutes": () => (/* binding */ utcMinutes)
/* harmony export */ });
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "./node_modules/d3-time/src/duration.js");



var utcMinute = (0,_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  date.setUTCSeconds(0, 0);
}, function(date, step) {
  date.setTime(+date + step * _duration_js__WEBPACK_IMPORTED_MODULE_1__.durationMinute);
}, function(start, end) {
  return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__.durationMinute;
}, function(date) {
  return date.getUTCMinutes();
});

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (utcMinute);
var utcMinutes = utcMinute.range;


/***/ }),

/***/ "./node_modules/d3-time/src/utcMonth.js":
/*!**********************************************!*\
  !*** ./node_modules/d3-time/src/utcMonth.js ***!
  \**********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   "utcMonths": () => (/* binding */ utcMonths)
/* harmony export */ });
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");


var utcMonth = (0,_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  date.setUTCDate(1);
  date.setUTCHours(0, 0, 0, 0);
}, function(date, step) {
  date.setUTCMonth(date.getUTCMonth() + step);
}, function(start, end) {
  return end.getUTCMonth() - start.getUTCMonth() + (end.getUTCFullYear() - start.getUTCFullYear()) * 12;
}, function(date) {
  return date.getUTCMonth();
});

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (utcMonth);
var utcMonths = utcMonth.range;


/***/ }),

/***/ "./node_modules/d3-time/src/utcWeek.js":
/*!*********************************************!*\
  !*** ./node_modules/d3-time/src/utcWeek.js ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "utcSunday": () => (/* binding */ utcSunday),
/* harmony export */   "utcMonday": () => (/* binding */ utcMonday),
/* harmony export */   "utcTuesday": () => (/* binding */ utcTuesday),
/* harmony export */   "utcWednesday": () => (/* binding */ utcWednesday),
/* harmony export */   "utcThursday": () => (/* binding */ utcThursday),
/* harmony export */   "utcFriday": () => (/* binding */ utcFriday),
/* harmony export */   "utcSaturday": () => (/* binding */ utcSaturday),
/* harmony export */   "utcSundays": () => (/* binding */ utcSundays),
/* harmony export */   "utcMondays": () => (/* binding */ utcMondays),
/* harmony export */   "utcTuesdays": () => (/* binding */ utcTuesdays),
/* harmony export */   "utcWednesdays": () => (/* binding */ utcWednesdays),
/* harmony export */   "utcThursdays": () => (/* binding */ utcThursdays),
/* harmony export */   "utcFridays": () => (/* binding */ utcFridays),
/* harmony export */   "utcSaturdays": () => (/* binding */ utcSaturdays)
/* harmony export */ });
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "./node_modules/d3-time/src/duration.js");



function utcWeekday(i) {
  return (0,_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
    date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7);
    date.setUTCHours(0, 0, 0, 0);
  }, function(date, step) {
    date.setUTCDate(date.getUTCDate() + step * 7);
  }, function(start, end) {
    return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__.durationWeek;
  });
}

var utcSunday = utcWeekday(0);
var utcMonday = utcWeekday(1);
var utcTuesday = utcWeekday(2);
var utcWednesday = utcWeekday(3);
var utcThursday = utcWeekday(4);
var utcFriday = utcWeekday(5);
var utcSaturday = utcWeekday(6);

var utcSundays = utcSunday.range;
var utcMondays = utcMonday.range;
var utcTuesdays = utcTuesday.range;
var utcWednesdays = utcWednesday.range;
var utcThursdays = utcThursday.range;
var utcFridays = utcFriday.range;
var utcSaturdays = utcSaturday.range;


/***/ }),

/***/ "./node_modules/d3-time/src/utcYear.js":
/*!*********************************************!*\
  !*** ./node_modules/d3-time/src/utcYear.js ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   "utcYears": () => (/* binding */ utcYears)
/* harmony export */ });
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");


var utcYear = (0,_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  date.setUTCMonth(0, 1);
  date.setUTCHours(0, 0, 0, 0);
}, function(date, step) {
  date.setUTCFullYear(date.getUTCFullYear() + step);
}, function(start, end) {
  return end.getUTCFullYear() - start.getUTCFullYear();
}, function(date) {
  return date.getUTCFullYear();
});

// An optimized implementation for this simple case.
utcYear.every = function(k) {
  return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : (0,_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
    date.setUTCFullYear(Math.floor(date.getUTCFullYear() / k) * k);
    date.setUTCMonth(0, 1);
    date.setUTCHours(0, 0, 0, 0);
  }, function(date, step) {
    date.setUTCFullYear(date.getUTCFullYear() + step * k);
  });
};

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (utcYear);
var utcYears = utcYear.range;


/***/ }),

/***/ "./node_modules/d3-time/src/week.js":
/*!******************************************!*\
  !*** ./node_modules/d3-time/src/week.js ***!
  \******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "sunday": () => (/* binding */ sunday),
/* harmony export */   "monday": () => (/* binding */ monday),
/* harmony export */   "tuesday": () => (/* binding */ tuesday),
/* harmony export */   "wednesday": () => (/* binding */ wednesday),
/* harmony export */   "thursday": () => (/* binding */ thursday),
/* harmony export */   "friday": () => (/* binding */ friday),
/* harmony export */   "saturday": () => (/* binding */ saturday),
/* harmony export */   "sundays": () => (/* binding */ sundays),
/* harmony export */   "mondays": () => (/* binding */ mondays),
/* harmony export */   "tuesdays": () => (/* binding */ tuesdays),
/* harmony export */   "wednesdays": () => (/* binding */ wednesdays),
/* harmony export */   "thursdays": () => (/* binding */ thursdays),
/* harmony export */   "fridays": () => (/* binding */ fridays),
/* harmony export */   "saturdays": () => (/* binding */ saturdays)
/* harmony export */ });
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "./node_modules/d3-time/src/duration.js");



function weekday(i) {
  return (0,_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
    date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7);
    date.setHours(0, 0, 0, 0);
  }, function(date, step) {
    date.setDate(date.getDate() + step * 7);
  }, function(start, end) {
    return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * _duration_js__WEBPACK_IMPORTED_MODULE_1__.durationMinute) / _duration_js__WEBPACK_IMPORTED_MODULE_1__.durationWeek;
  });
}

var sunday = weekday(0);
var monday = weekday(1);
var tuesday = weekday(2);
var wednesday = weekday(3);
var thursday = weekday(4);
var friday = weekday(5);
var saturday = weekday(6);

var sundays = sunday.range;
var mondays = monday.range;
var tuesdays = tuesday.range;
var wednesdays = wednesday.range;
var thursdays = thursday.range;
var fridays = friday.range;
var saturdays = saturday.range;


/***/ }),

/***/ "./node_modules/d3-time/src/year.js":
/*!******************************************!*\
  !*** ./node_modules/d3-time/src/year.js ***!
  \******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__),
/* harmony export */   "years": () => (/* binding */ years)
/* harmony export */ });
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "./node_modules/d3-time/src/interval.js");


var year = (0,_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
  date.setMonth(0, 1);
  date.setHours(0, 0, 0, 0);
}, function(date, step) {
  date.setFullYear(date.getFullYear() + step);
}, function(start, end) {
  return end.getFullYear() - start.getFullYear();
}, function(date) {
  return date.getFullYear();
});

// An optimized implementation for this simple case.
year.every = function(k) {
  return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : (0,_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
    date.setFullYear(Math.floor(date.getFullYear() / k) * k);
    date.setMonth(0, 1);
    date.setHours(0, 0, 0, 0);
  }, function(date, step) {
    date.setFullYear(date.getFullYear() + step * k);
  });
};

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (year);
var years = year.range;


/***/ }),

/***/ "./node_modules/d3-timer/src/timer.js":
/*!********************************************!*\
  !*** ./node_modules/d3-timer/src/timer.js ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "now": () => (/* binding */ now),
/* harmony export */   "Timer": () => (/* binding */ Timer),
/* harmony export */   "timer": () => (/* binding */ timer),
/* harmony export */   "timerFlush": () => (/* binding */ timerFlush)
/* harmony export */ });
var frame = 0, // is an animation frame pending?
    timeout = 0, // is a timeout pending?
    interval = 0, // are any timers active?
    pokeDelay = 1000, // how frequently we check for clock skew
    taskHead,
    taskTail,
    clockLast = 0,
    clockNow = 0,
    clockSkew = 0,
    clock = typeof performance === "object" && performance.now ? performance : Date,
    setFrame = typeof window === "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f) { setTimeout(f, 17); };

function now() {
  return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew);
}

function clearNow() {
  clockNow = 0;
}

function Timer() {
  this._call =
  this._time =
  this._next = null;
}

Timer.prototype = timer.prototype = {
  constructor: Timer,
  restart: function(callback, delay, time) {
    if (typeof callback !== "function") throw new TypeError("callback is not a function");
    time = (time == null ? now() : +time) + (delay == null ? 0 : +delay);
    if (!this._next && taskTail !== this) {
      if (taskTail) taskTail._next = this;
      else taskHead = this;
      taskTail = this;
    }
    this._call = callback;
    this._time = time;
    sleep();
  },
  stop: function() {
    if (this._call) {
      this._call = null;
      this._time = Infinity;
      sleep();
    }
  }
};

function timer(callback, delay, time) {
  var t = new Timer;
  t.restart(callback, delay, time);
  return t;
}

function timerFlush() {
  now(); // Get the current time, if not already set.
  ++frame; // Pretend we’ve set an alarm, if we haven’t already.
  var t = taskHead, e;
  while (t) {
    if ((e = clockNow - t._time) >= 0) t._call.call(null, e);
    t = t._next;
  }
  --frame;
}

function wake() {
  clockNow = (clockLast = clock.now()) + clockSkew;
  frame = timeout = 0;
  try {
    timerFlush();
  } finally {
    frame = 0;
    nap();
    clockNow = 0;
  }
}

function poke() {
  var now = clock.now(), delay = now - clockLast;
  if (delay > pokeDelay) clockSkew -= delay, clockLast = now;
}

function nap() {
  var t0, t1 = taskHead, t2, time = Infinity;
  while (t1) {
    if (t1._call) {
      if (time > t1._time) time = t1._time;
      t0 = t1, t1 = t1._next;
    } else {
      t2 = t1._next, t1._next = null;
      t1 = t0 ? t0._next = t2 : taskHead = t2;
    }
  }
  taskTail = t0;
  sleep(time);
}

function sleep(time) {
  if (frame) return; // Soonest alarm already set, or will be.
  if (timeout) timeout = clearTimeout(timeout);
  var delay = time - clockNow; // Strictly less than if we recomputed clockNow.
  if (delay > 24) {
    if (time < Infinity) timeout = setTimeout(wake, time - clock.now() - clockSkew);
    if (interval) interval = clearInterval(interval);
  } else {
    if (!interval) clockLast = clock.now(), interval = setInterval(poke, pokeDelay);
    frame = 1, setFrame(wake);
  }
}


/***/ }),

/***/ "./node_modules/delaunator/delaunator.js":
/*!***********************************************!*\
  !*** ./node_modules/delaunator/delaunator.js ***!
  \***********************************************/
/***/ (function(module) {

(function (global, factory) {
     true ? module.exports = factory() :
    0;
}(this, function () { 'use strict';

    var EPSILON = Math.pow(2, -52);
    var EDGE_STACK = new Uint32Array(512);

    var Delaunator = function Delaunator(coords) {
        var n = coords.length >> 1;
        if (n > 0 && typeof coords[0] !== 'number') { throw new Error('Expected coords to contain numbers.'); }

        this.coords = coords;

        // arrays that will store the triangulation graph
        var maxTriangles = Math.max(2 * n - 5, 0);
        this._triangles = new Uint32Array(maxTriangles * 3);
        this._halfedges = new Int32Array(maxTriangles * 3);

        // temporary arrays for tracking the edges of the advancing convex hull
        this._hashSize = Math.ceil(Math.sqrt(n));
        this._hullPrev = new Uint32Array(n); // edge to prev edge
        this._hullNext = new Uint32Array(n); // edge to next edge
        this._hullTri = new Uint32Array(n); // edge to adjacent triangle
        this._hullHash = new Int32Array(this._hashSize).fill(-1); // angular edge hash

        // temporary arrays for sorting points
        this._ids = new Uint32Array(n);
        this._dists = new Float64Array(n);

        this.update();
    };

    Delaunator.from = function from (points, getX, getY) {
            if ( getX === void 0 ) getX = defaultGetX;
            if ( getY === void 0 ) getY = defaultGetY;

        var n = points.length;
        var coords = new Float64Array(n * 2);

        for (var i = 0; i < n; i++) {
            var p = points[i];
            coords[2 * i] = getX(p);
            coords[2 * i + 1] = getY(p);
        }

        return new Delaunator(coords);
    };

    Delaunator.prototype.update = function update () {
        var ref =  this;
            var coords = ref.coords;
            var hullPrev = ref._hullPrev;
            var hullNext = ref._hullNext;
            var hullTri = ref._hullTri;
            var hullHash = ref._hullHash;
        var n = coords.length >> 1;

        // populate an array of point indices; calculate input data bbox
        var minX = Infinity;
        var minY = Infinity;
        var maxX = -Infinity;
        var maxY = -Infinity;

        for (var i = 0; i < n; i++) {
            var x = coords[2 * i];
            var y = coords[2 * i + 1];
            if (x < minX) { minX = x; }
            if (y < minY) { minY = y; }
            if (x > maxX) { maxX = x; }
            if (y > maxY) { maxY = y; }
            this._ids[i] = i;
        }
        var cx = (minX + maxX) / 2;
        var cy = (minY + maxY) / 2;

        var minDist = Infinity;
        var i0, i1, i2;

        // pick a seed point close to the center
        for (var i$1 = 0; i$1 < n; i$1++) {
            var d = dist(cx, cy, coords[2 * i$1], coords[2 * i$1 + 1]);
            if (d < minDist) {
                i0 = i$1;
                minDist = d;
            }
        }
        var i0x = coords[2 * i0];
        var i0y = coords[2 * i0 + 1];

        minDist = Infinity;

        // find the point closest to the seed
        for (var i$2 = 0; i$2 < n; i$2++) {
            if (i$2 === i0) { continue; }
            var d$1 = dist(i0x, i0y, coords[2 * i$2], coords[2 * i$2 + 1]);
            if (d$1 < minDist && d$1 > 0) {
                i1 = i$2;
                minDist = d$1;
            }
        }
        var i1x = coords[2 * i1];
        var i1y = coords[2 * i1 + 1];

        var minRadius = Infinity;

        // find the third point which forms the smallest circumcircle with the first two
        for (var i$3 = 0; i$3 < n; i$3++) {
            if (i$3 === i0 || i$3 === i1) { continue; }
            var r = circumradius(i0x, i0y, i1x, i1y, coords[2 * i$3], coords[2 * i$3 + 1]);
            if (r < minRadius) {
                i2 = i$3;
                minRadius = r;
            }
        }
        var i2x = coords[2 * i2];
        var i2y = coords[2 * i2 + 1];

        if (minRadius === Infinity) {
            // order collinear points by dx (or dy if all x are identical)
            // and return the list as a hull
            for (var i$4 = 0; i$4 < n; i$4++) {
                this._dists[i$4] = (coords[2 * i$4] - coords[0]) || (coords[2 * i$4 + 1] - coords[1]);
            }
            quicksort(this._ids, this._dists, 0, n - 1);
            var hull = new Uint32Array(n);
            var j = 0;
            for (var i$5 = 0, d0 = -Infinity; i$5 < n; i$5++) {
                var id = this._ids[i$5];
                if (this._dists[id] > d0) {
                    hull[j++] = id;
                    d0 = this._dists[id];
                }
            }
            this.hull = hull.subarray(0, j);
            this.triangles = new Uint32Array(0);
            this.halfedges = new Uint32Array(0);
            return;
        }

        // swap the order of the seed points for counter-clockwise orientation
        if (orient(i0x, i0y, i1x, i1y, i2x, i2y)) {
            var i$6 = i1;
            var x$1 = i1x;
            var y$1 = i1y;
            i1 = i2;
            i1x = i2x;
            i1y = i2y;
            i2 = i$6;
            i2x = x$1;
            i2y = y$1;
        }

        var center = circumcenter(i0x, i0y, i1x, i1y, i2x, i2y);
        this._cx = center.x;
        this._cy = center.y;

        for (var i$7 = 0; i$7 < n; i$7++) {
            this._dists[i$7] = dist(coords[2 * i$7], coords[2 * i$7 + 1], center.x, center.y);
        }

        // sort the points by distance from the seed triangle circumcenter
        quicksort(this._ids, this._dists, 0, n - 1);

        // set up the seed triangle as the starting hull
        this._hullStart = i0;
        var hullSize = 3;

        hullNext[i0] = hullPrev[i2] = i1;
        hullNext[i1] = hullPrev[i0] = i2;
        hullNext[i2] = hullPrev[i1] = i0;

        hullTri[i0] = 0;
        hullTri[i1] = 1;
        hullTri[i2] = 2;

        hullHash.fill(-1);
        hullHash[this._hashKey(i0x, i0y)] = i0;
        hullHash[this._hashKey(i1x, i1y)] = i1;
        hullHash[this._hashKey(i2x, i2y)] = i2;

        this.trianglesLen = 0;
        this._addTriangle(i0, i1, i2, -1, -1, -1);

        for (var k = 0, xp = (void 0), yp = (void 0); k < this._ids.length; k++) {
            var i$8 = this._ids[k];
            var x$2 = coords[2 * i$8];
            var y$2 = coords[2 * i$8 + 1];

            // skip near-duplicate points
            if (k > 0 && Math.abs(x$2 - xp) <= EPSILON && Math.abs(y$2 - yp) <= EPSILON) { continue; }
            xp = x$2;
            yp = y$2;

            // skip seed triangle points
            if (i$8 === i0 || i$8 === i1 || i$8 === i2) { continue; }

            // find a visible edge on the convex hull using edge hash
            var start = 0;
            for (var j$1 = 0, key = this._hashKey(x$2, y$2); j$1 < this._hashSize; j$1++) {
                start = hullHash[(key + j$1) % this._hashSize];
                if (start !== -1 && start !== hullNext[start]) { break; }
            }

            start = hullPrev[start];
            var e = start, q = (void 0);
            while (q = hullNext[e], !orient(x$2, y$2, coords[2 * e], coords[2 * e + 1], coords[2 * q], coords[2 * q + 1])) {
                e = q;
                if (e === start) {
                    e = -1;
                    break;
                }
            }
            if (e === -1) { continue; } // likely a near-duplicate point; skip it

            // add the first triangle from the point
            var t = this._addTriangle(e, i$8, hullNext[e], -1, -1, hullTri[e]);

            // recursively flip triangles from the point until they satisfy the Delaunay condition
            hullTri[i$8] = this._legalize(t + 2);
            hullTri[e] = t; // keep track of boundary triangles on the hull
            hullSize++;

            // walk forward through the hull, adding more triangles and flipping recursively
            var n$1 = hullNext[e];
            while (q = hullNext[n$1], orient(x$2, y$2, coords[2 * n$1], coords[2 * n$1 + 1], coords[2 * q], coords[2 * q + 1])) {
                t = this._addTriangle(n$1, i$8, q, hullTri[i$8], -1, hullTri[n$1]);
                hullTri[i$8] = this._legalize(t + 2);
                hullNext[n$1] = n$1; // mark as removed
                hullSize--;
                n$1 = q;
            }

            // walk backward from the other side, adding more triangles and flipping
            if (e === start) {
                while (q = hullPrev[e], orient(x$2, y$2, coords[2 * q], coords[2 * q + 1], coords[2 * e], coords[2 * e + 1])) {
                    t = this._addTriangle(q, i$8, e, -1, hullTri[e], hullTri[q]);
                    this._legalize(t + 2);
                    hullTri[q] = t;
                    hullNext[e] = e; // mark as removed
                    hullSize--;
                    e = q;
                }
            }

            // update the hull indices
            this._hullStart = hullPrev[i$8] = e;
            hullNext[e] = hullPrev[n$1] = i$8;
            hullNext[i$8] = n$1;

            // save the two new edges in the hash table
            hullHash[this._hashKey(x$2, y$2)] = i$8;
            hullHash[this._hashKey(coords[2 * e], coords[2 * e + 1])] = e;
        }

        this.hull = new Uint32Array(hullSize);
        for (var i$9 = 0, e$1 = this._hullStart; i$9 < hullSize; i$9++) {
            this.hull[i$9] = e$1;
            e$1 = hullNext[e$1];
        }

        // trim typed triangle mesh arrays
        this.triangles = this._triangles.subarray(0, this.trianglesLen);
        this.halfedges = this._halfedges.subarray(0, this.trianglesLen);
    };

    Delaunator.prototype._hashKey = function _hashKey (x, y) {
        return Math.floor(pseudoAngle(x - this._cx, y - this._cy) * this._hashSize) % this._hashSize;
    };

    Delaunator.prototype._legalize = function _legalize (a) {
        var ref = this;
            var triangles = ref._triangles;
            var halfedges = ref._halfedges;
            var coords = ref.coords;

        var i = 0;
        var ar = 0;

        // recursion eliminated with a fixed-size stack
        while (true) {
            var b = halfedges[a];

            /* if the pair of triangles doesn't satisfy the Delaunay condition
             * (p1 is inside the circumcircle of [p0, pl, pr]), flip them,
             * then do the same check/flip recursively for the new pair of triangles
             *
             *       pl                pl
             *      /||\              /  \
             *   al/ || \bl        al/\a
             *    /  ||  \          /  \
             *   /  a||b  \flip/___ar___\
             * p0\   ||   /p1   =>   p0\---bl---/p1
             *    \  ||  /          \  /
             *   ar\ || /br         b\/br
             *      \||/              \  /
             *       pr                pr
             */
            var a0 = a - a % 3;
            ar = a0 + (a + 2) % 3;

            if (b === -1) { // convex hull edge
                if (i === 0) { break; }
                a = EDGE_STACK[--i];
                continue;
            }

            var b0 = b - b % 3;
            var al = a0 + (a + 1) % 3;
            var bl = b0 + (b + 2) % 3;

            var p0 = triangles[ar];
            var pr = triangles[a];
            var pl = triangles[al];
            var p1 = triangles[bl];

            var illegal = inCircle(
                coords[2 * p0], coords[2 * p0 + 1],
                coords[2 * pr], coords[2 * pr + 1],
                coords[2 * pl], coords[2 * pl + 1],
                coords[2 * p1], coords[2 * p1 + 1]);

            if (illegal) {
                triangles[a] = p1;
                triangles[b] = p0;

                var hbl = halfedges[bl];

                // edge swapped on the other side of the hull (rare); fix the halfedge reference
                if (hbl === -1) {
                    var e = this._hullStart;
                    do {
                        if (this._hullTri[e] === bl) {
                            this._hullTri[e] = a;
                            break;
                        }
                        e = this._hullPrev[e];
                    } while (e !== this._hullStart);
                }
                this._link(a, hbl);
                this._link(b, halfedges[ar]);
                this._link(ar, bl);

                var br = b0 + (b + 1) % 3;

                // don't worry about hitting the cap: it can only happen on extremely degenerate input
                if (i < EDGE_STACK.length) {
                    EDGE_STACK[i++] = br;
                }
            } else {
                if (i === 0) { break; }
                a = EDGE_STACK[--i];
            }
        }

        return ar;
    };

    Delaunator.prototype._link = function _link (a, b) {
        this._halfedges[a] = b;
        if (b !== -1) { this._halfedges[b] = a; }
    };

    // add a new triangle given vertex indices and adjacent half-edge ids
    Delaunator.prototype._addTriangle = function _addTriangle (i0, i1, i2, a, b, c) {
        var t = this.trianglesLen;

        this._triangles[t] = i0;
        this._triangles[t + 1] = i1;
        this._triangles[t + 2] = i2;

        this._link(t, a);
        this._link(t + 1, b);
        this._link(t + 2, c);

        this.trianglesLen += 3;

        return t;
    };

    // monotonically increases with real angle, but doesn't need expensive trigonometry
    function pseudoAngle(dx, dy) {
        var p = dx / (Math.abs(dx) + Math.abs(dy));
        return (dy > 0 ? 3 - p : 1 + p) / 4; // [0..1]
    }

    function dist(ax, ay, bx, by) {
        var dx = ax - bx;
        var dy = ay - by;
        return dx * dx + dy * dy;
    }

    // return 2d orientation sign if we're confident in it through J. Shewchuk's error bound check
    function orientIfSure(px, py, rx, ry, qx, qy) {
        var l = (ry - py) * (qx - px);
        var r = (rx - px) * (qy - py);
        return Math.abs(l - r) >= 3.3306690738754716e-16 * Math.abs(l + r) ? l - r : 0;
    }

    // a more robust orientation test that's stable in a given triangle (to fix robustness issues)
    function orient(rx, ry, qx, qy, px, py) {
        var sign = orientIfSure(px, py, rx, ry, qx, qy) ||
        orientIfSure(rx, ry, qx, qy, px, py) ||
        orientIfSure(qx, qy, px, py, rx, ry);
        return sign < 0;
    }

    function inCircle(ax, ay, bx, by, cx, cy, px, py) {
        var dx = ax - px;
        var dy = ay - py;
        var ex = bx - px;
        var ey = by - py;
        var fx = cx - px;
        var fy = cy - py;

        var ap = dx * dx + dy * dy;
        var bp = ex * ex + ey * ey;
        var cp = fx * fx + fy * fy;

        return dx * (ey * cp - bp * fy) -
               dy * (ex * cp - bp * fx) +
               ap * (ex * fy - ey * fx) < 0;
    }

    function circumradius(ax, ay, bx, by, cx, cy) {
        var dx = bx - ax;
        var dy = by - ay;
        var ex = cx - ax;
        var ey = cy - ay;

        var bl = dx * dx + dy * dy;
        var cl = ex * ex + ey * ey;
        var d = 0.5 / (dx * ey - dy * ex);

        var x = (ey * bl - dy * cl) * d;
        var y = (dx * cl - ex * bl) * d;

        return x * x + y * y;
    }

    function circumcenter(ax, ay, bx, by, cx, cy) {
        var dx = bx - ax;
        var dy = by - ay;
        var ex = cx - ax;
        var ey = cy - ay;

        var bl = dx * dx + dy * dy;
        var cl = ex * ex + ey * ey;
        var d = 0.5 / (dx * ey - dy * ex);

        var x = ax + (ey * bl - dy * cl) * d;
        var y = ay + (dx * cl - ex * bl) * d;

        return {x: x, y: y};
    }

    function quicksort(ids, dists, left, right) {
        if (right - left <= 20) {
            for (var i = left + 1; i <= right; i++) {
                var temp = ids[i];
                var tempDist = dists[temp];
                var j = i - 1;
                while (j >= left && dists[ids[j]] > tempDist) { ids[j + 1] = ids[j--]; }
                ids[j + 1] = temp;
            }
        } else {
            var median = (left + right) >> 1;
            var i$1 = left + 1;
            var j$1 = right;
            swap(ids, median, i$1);
            if (dists[ids[left]] > dists[ids[right]]) { swap(ids, left, right); }
            if (dists[ids[i$1]] > dists[ids[right]]) { swap(ids, i$1, right); }
            if (dists[ids[left]] > dists[ids[i$1]]) { swap(ids, left, i$1); }

            var temp$1 = ids[i$1];
            var tempDist$1 = dists[temp$1];
            while (true) {
                do { i$1++; } while (dists[ids[i$1]] < tempDist$1);
                do { j$1--; } while (dists[ids[j$1]] > tempDist$1);
                if (j$1 < i$1) { break; }
                swap(ids, i$1, j$1);
            }
            ids[left + 1] = ids[j$1];
            ids[j$1] = temp$1;

            if (right - i$1 + 1 >= j$1 - left) {
                quicksort(ids, dists, i$1, right);
                quicksort(ids, dists, left, j$1 - 1);
            } else {
                quicksort(ids, dists, left, j$1 - 1);
                quicksort(ids, dists, i$1, right);
            }
        }
    }

    function swap(arr, i, j) {
        var tmp = arr[i];
        arr[i] = arr[j];
        arr[j] = tmp;
    }

    function defaultGetX(p) {
        return p[0];
    }
    function defaultGetY(p) {
        return p[1];
    }

    return Delaunator;

}));


/***/ }),

/***/ "./node_modules/delaunay-find/lib/index.js":
/*!*************************************************!*\
  !*** ./node_modules/delaunay-find/lib/index.js ***!
  \*************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";


exports.__esModule = true;
exports["default"] = void 0;

var _delaunator = _interopRequireDefault(__webpack_require__(/*! delaunator/delaunator.js */ "./node_modules/delaunator/delaunator.js"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

// From https://github.com/d3/d3-delaunay/blob/master/src/delaunay.js
function pointX(p) {
  return p[0];
}

function pointY(p) {
  return p[1];
} // A triangulation is collinear if all its triangles have a non-null area


function collinear(d) {
  var triangles = d.triangles,
      coords = d.coords;

  for (var i = 0; i < triangles.length; i += 3) {
    var a = 2 * triangles[i];
    var b = 2 * triangles[i + 1];
    var c = 2 * triangles[i + 2];
    var cross = (coords[c] - coords[a]) * (coords[b + 1] - coords[a + 1]) - (coords[b] - coords[a]) * (coords[c + 1] - coords[a + 1]); // eslint-disable-next-line no-magic-numbers

    if (cross > 1e-10) {
      return false;
    }
  }

  return true;
}

function jitter(x, y, r) {
  return [x + Math.sin(x + y) * r, y + Math.cos(x - y) * r];
} // eslint-disable-next-line max-params


function flatArray(points, fx, fy, that) {
  var n = points.length;
  var array = new Float64Array(n * 2);

  for (var i = 0; i < n; ++i) {
    var p = points[i];
    array[i * 2] = fx.call(that, p, i, points);
    array[i * 2 + 1] = fy.call(that, p, i, points);
  }

  return array;
}

var Delaunay =
/*#__PURE__*/
function () {
  function Delaunay(points) {
    var delaunator = new _delaunator["default"](points);
    this.inedges = new Int32Array(points.length / 2);
    this._hullIndex = new Int32Array(points.length / 2);
    this.points = delaunator.coords;

    this._init(delaunator);
  } // eslint-disable-next-line max-statements, complexity


  var _proto = Delaunay.prototype;

  _proto._init = function _init(delaunator) {
    var d = delaunator;
    var points = this.points; // check for collinear
    // eslint-disable-next-line no-magic-numbers

    if (d.hull && d.hull.length > 2 && collinear(d)) {
      this.collinear = Int32Array.from({
        length: points.length / 2
      }, function (_, i) {
        return i;
      }).sort(function (i, j) {
        return points[2 * i] - points[2 * j] || points[2 * i + 1] - points[2 * j + 1];
      }); // for exact neighbors

      var e = this.collinear[0];
      var f = this.collinear[this.collinear.length - 1];
      var bounds = [points[2 * e], points[2 * e + 1], points[2 * f], points[2 * f + 1]];
      var r = 1e-8 * // eslint-disable-line no-magic-numbers
      Math.sqrt(Math.pow(bounds[3] - bounds[1], 2) + Math.pow(bounds[2] - bounds[0], 2));

      for (var i = 0, n = points.length / 2; i < n; ++i) {
        var p = jitter(points[2 * i], points[2 * i + 1], r);
        points[2 * i] = p[0];
        points[2 * i + 1] = p[1];
      }

      delaunator = new _delaunator["default"](points);
    }

    var halfedges = this.halfedges = delaunator.halfedges;
    var hull = this.hull = delaunator.hull;
    var triangles = this.triangles = delaunator.triangles;
    var inedges = this.inedges.fill(-1);

    var hullIndex = this._hullIndex.fill(-1); // Compute an index from each point to an (arbitrary) incoming halfedge
    // Used to give the first neighbor of each point; for this reason,
    // on the hull we give priority to exterior halfedges


    for (var _e = 0, _n = halfedges.length; _e < _n; ++_e) {
      var _p = triangles[_e % 3 === 2 ? _e - 2 : _e + 1];
      if (halfedges[_e] === -1 || inedges[_p] === -1) inedges[_p] = _e;
    }

    for (var _i = 0, _n2 = hull.length; _i < _n2; ++_i) {
      hullIndex[hull[_i]] = _i;
    } // degenerate case: 1 or 2 (distinct) points


    if (hull.length <= 2 && hull.length > 0) {
      this.triangles = new Int32Array(3).fill(-1);
      this.halfedges = new Int32Array(3).fill(-1);
      this.triangles[0] = hull[0];
      this.triangles[1] = hull[1];
      this.triangles[2] = hull[1];
      inedges[hull[0]] = 1;
      if (hull.length === 2) inedges[hull[1]] = 0;
    }
  } // eslint-disable-next-line max-statements
  ;

  _proto.neighbors = function neighbors(i) {
    var results = [];
    var inedges = this.inedges,
        hull = this.hull,
        _hullIndex = this._hullIndex,
        halfedges = this.halfedges,
        triangles = this.triangles;
    var e0 = inedges[i];
    if (e0 === -1) return results; // coincident point

    var e = e0;
    var p0 = -1;

    do {
      p0 = triangles[e];
      results.push(p0);
      e = e % 3 === 2 ? e - 2 : e + 1;
      if (triangles[e] !== i) break; // bad triangulation

      e = halfedges[e];

      if (e === -1) {
        var p = hull[(_hullIndex[i] + 1) % hull.length];
        if (p !== p0) results.push(p);
        break;
      }
    } while (e !== e0);

    return results;
  };

  _proto.find = function find(x, y, i) {
    if (i === void 0) {
      i = 0;
    }

    // eslint-disable-next-line no-self-compare
    if ((x = +x, x !== x) || (y = +y, y !== y)) return -1;
    var i0 = i;
    var c;

    while ((c = this._step(i, x, y)) >= 0 && c !== i && c !== i0) {
      i = c;
    }

    return c;
  };

  _proto._step = function _step(i, x, y) {
    var inedges = this.inedges,
        points = this.points;
    if (inedges[i] === -1 || !points.length) return (i + 1) % (points.length >> 1);
    var c = i;
    var dc = Math.pow(x - points[i * 2], 2) + Math.pow(y - points[i * 2 + 1], 2);

    for (var _iterator = this.neighbors(i), _isArray = Array.isArray(_iterator), _i2 = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
      var _ref;

      if (_isArray) {
        if (_i2 >= _iterator.length) break;
        _ref = _iterator[_i2++];
      } else {
        _i2 = _iterator.next();
        if (_i2.done) break;
        _ref = _i2.value;
      }

      var t = _ref;
      var dt = Math.pow(x - points[t * 2], 2) + Math.pow(y - points[t * 2 + 1], 2);

      if (dt < dc) {
        dc = dt;
        c = t;
      }
    }

    return c;
  };

  return Delaunay;
}(); // eslint-disable-next-line max-params


exports["default"] = Delaunay;

Delaunay.from = function (points, fx, fy, that) {
  if (fx === void 0) {
    fx = pointX;
  }

  if (fy === void 0) {
    fy = pointY;
  }

  return new Delaunay(flatArray(points, fx, fy, that));
}; // only public methods will be .from and .find

/***/ }),

/***/ "./node_modules/file-selector/dist/es5/file-selector.js":
/*!**************************************************************!*\
  !*** ./node_modules/file-selector/dist/es5/file-selector.js ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "fromEvent": () => (/* binding */ fromEvent)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _file__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./file */ "./node_modules/file-selector/dist/es5/file.js");


var FILES_TO_IGNORE = [
    // Thumbnail cache files for macOS and Windows
    '.DS_Store',
    'Thumbs.db' // Windows
];
/**
 * Convert a DragEvent's DataTrasfer object to a list of File objects
 * NOTE: If some of the items are folders,
 * everything will be flattened and placed in the same list but the paths will be kept as a {path} property.
 * @param evt
 */
function fromEvent(evt) {
    return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__awaiter)(this, void 0, void 0, function () {
        return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__generator)(this, function (_a) {
            return [2 /*return*/, isDragEvt(evt) && evt.dataTransfer
                    ? getDataTransferFiles(evt.dataTransfer, evt.type)
                    : getInputFiles(evt)];
        });
    });
}
function isDragEvt(value) {
    return !!value.dataTransfer;
}
function getInputFiles(evt) {
    var files = isInput(evt.target)
        ? evt.target.files
            ? fromList(evt.target.files)
            : []
        : [];
    return files.map(function (file) { return (0,_file__WEBPACK_IMPORTED_MODULE_0__.toFileWithPath)(file); });
}
function isInput(value) {
    return value !== null;
}
function getDataTransferFiles(dt, type) {
    return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__awaiter)(this, void 0, void 0, function () {
        var items, files;
        return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__generator)(this, function (_a) {
            switch (_a.label) {
                case 0:
                    if (!dt.items) return [3 /*break*/, 2];
                    items = fromList(dt.items)
                        .filter(function (item) { return item.kind === 'file'; });
                    // According to https://html.spec.whatwg.org/multipage/dnd.html#dndevents,
                    // only 'dragstart' and 'drop' has access to the data (source node)
                    if (type !== 'drop') {
                        return [2 /*return*/, items];
                    }
                    return [4 /*yield*/, Promise.all(items.map(toFilePromises))];
                case 1:
                    files = _a.sent();
                    return [2 /*return*/, noIgnoredFiles(flatten(files))];
                case 2: return [2 /*return*/, noIgnoredFiles(fromList(dt.files)
                        .map(function (file) { return (0,_file__WEBPACK_IMPORTED_MODULE_0__.toFileWithPath)(file); }))];
            }
        });
    });
}
function noIgnoredFiles(files) {
    return files.filter(function (file) { return FILES_TO_IGNORE.indexOf(file.name) === -1; });
}
// IE11 does not support Array.from()
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from#Browser_compatibility
// https://developer.mozilla.org/en-US/docs/Web/API/FileList
// https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItemList
function fromList(items) {
    var files = [];
    // tslint:disable: prefer-for-of
    for (var i = 0; i < items.length; i++) {
        var file = items[i];
        files.push(file);
    }
    return files;
}
// https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem
function toFilePromises(item) {
    if (typeof item.webkitGetAsEntry !== 'function') {
        return fromDataTransferItem(item);
    }
    var entry = item.webkitGetAsEntry();
    // Safari supports dropping an image node from a different window and can be retrieved using
    // the DataTransferItem.getAsFile() API
    // NOTE: FileSystemEntry.file() throws if trying to get the file
    if (entry && entry.isDirectory) {
        return fromDirEntry(entry);
    }
    return fromDataTransferItem(item);
}
function flatten(items) {
    return items.reduce(function (acc, files) { return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__spread)(acc, (Array.isArray(files) ? flatten(files) : [files])); }, []);
}
function fromDataTransferItem(item) {
    var file = item.getAsFile();
    if (!file) {
        return Promise.reject(item + " is not a File");
    }
    var fwp = (0,_file__WEBPACK_IMPORTED_MODULE_0__.toFileWithPath)(file);
    return Promise.resolve(fwp);
}
// https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry
function fromEntry(entry) {
    return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__awaiter)(this, void 0, void 0, function () {
        return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__generator)(this, function (_a) {
            return [2 /*return*/, entry.isDirectory ? fromDirEntry(entry) : fromFileEntry(entry)];
        });
    });
}
// https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry
function fromDirEntry(entry) {
    var reader = entry.createReader();
    return new Promise(function (resolve, reject) {
        var entries = [];
        function readEntries() {
            var _this = this;
            // https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/createReader
            // https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries
            reader.readEntries(function (batch) { return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__awaiter)(_this, void 0, void 0, function () {
                var files, err_1, items;
                return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__generator)(this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            if (!!batch.length) return [3 /*break*/, 5];
                            _a.label = 1;
                        case 1:
                            _a.trys.push([1, 3, , 4]);
                            return [4 /*yield*/, Promise.all(entries)];
                        case 2:
                            files = _a.sent();
                            resolve(files);
                            return [3 /*break*/, 4];
                        case 3:
                            err_1 = _a.sent();
                            reject(err_1);
                            return [3 /*break*/, 4];
                        case 4: return [3 /*break*/, 6];
                        case 5:
                            items = Promise.all(batch.map(fromEntry));
                            entries.push(items);
                            // Continue reading
                            readEntries();
                            _a.label = 6;
                        case 6: return [2 /*return*/];
                    }
                });
            }); }, function (err) {
                reject(err);
            });
        }
        readEntries();
    });
}
// https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry
function fromFileEntry(entry) {
    return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__awaiter)(this, void 0, void 0, function () {
        return (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__generator)(this, function (_a) {
            return [2 /*return*/, new Promise(function (resolve, reject) {
                    entry.file(function (file) {
                        var fwp = (0,_file__WEBPACK_IMPORTED_MODULE_0__.toFileWithPath)(file, entry.fullPath);
                        resolve(fwp);
                    }, function (err) {
                        reject(err);
                    });
                })];
        });
    });
}
//# sourceMappingURL=file-selector.js.map

/***/ }),

/***/ "./node_modules/file-selector/dist/es5/file.js":
/*!*****************************************************!*\
  !*** ./node_modules/file-selector/dist/es5/file.js ***!
  \*****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "COMMON_MIME_TYPES": () => (/* binding */ COMMON_MIME_TYPES),
/* harmony export */   "toFileWithPath": () => (/* binding */ toFileWithPath)
/* harmony export */ });
var COMMON_MIME_TYPES = new Map([
    ['avi', 'video/avi'],
    ['gif', 'image/gif'],
    ['ico', 'image/x-icon'],
    ['jpeg', 'image/jpeg'],
    ['jpg', 'image/jpeg'],
    ['mkv', 'video/x-matroska'],
    ['mov', 'video/quicktime'],
    ['mp4', 'video/mp4'],
    ['pdf', 'application/pdf'],
    ['png', 'image/png'],
    ['zip', 'application/zip'],
    ['doc', 'application/msword'],
    ['docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document']
]);
function toFileWithPath(file, path) {
    var f = withMimeType(file);
    if (typeof f.path !== 'string') { // on electron, path is already set to the absolute path
        var webkitRelativePath = file.webkitRelativePath;
        Object.defineProperty(f, 'path', {
            value: typeof path === 'string'
                ? path
                // If <input webkitdirectory> is set,
                // the File will have a {webkitRelativePath} property
                // https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory
                : typeof webkitRelativePath === 'string' && webkitRelativePath.length > 0
                    ? webkitRelativePath
                    : file.name,
            writable: false,
            configurable: false,
            enumerable: true
        });
    }
    return f;
}
function withMimeType(file) {
    var name = file.name;
    var hasExtension = name && name.lastIndexOf('.') !== -1;
    if (hasExtension && !file.type) {
        var ext = name.split('.')
            .pop().toLowerCase();
        var type = COMMON_MIME_TYPES.get(ext);
        if (type) {
            Object.defineProperty(file, 'type', {
                value: type,
                writable: false,
                configurable: false,
                enumerable: true
            });
        }
    }
    return file;
}
//# sourceMappingURL=file.js.map

/***/ }),

/***/ "./node_modules/file-selector/dist/es5/index.js":
/*!******************************************************!*\
  !*** ./node_modules/file-selector/dist/es5/index.js ***!
  \******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "fromEvent": () => (/* reexport safe */ _file_selector__WEBPACK_IMPORTED_MODULE_0__.fromEvent)
/* harmony export */ });
/* harmony import */ var _file_selector__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./file-selector */ "./node_modules/file-selector/dist/es5/file-selector.js");

//# sourceMappingURL=index.js.map

/***/ }),

/***/ "./node_modules/focus-trap/dist/focus-trap.esm.js":
/*!********************************************************!*\
  !*** ./node_modules/focus-trap/dist/focus-trap.esm.js ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "createFocusTrap": () => (/* binding */ createFocusTrap)
/* harmony export */ });
/* harmony import */ var tabbable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tabbable */ "./node_modules/tabbable/dist/index.esm.js");
/*!
* focus-trap 6.2.2
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
*/


function _defineProperty(obj, key, value) {
  if (key in obj) {
    Object.defineProperty(obj, key, {
      value: value,
      enumerable: true,
      configurable: true,
      writable: true
    });
  } else {
    obj[key] = value;
  }

  return obj;
}

function ownKeys(object, enumerableOnly) {
  var keys = Object.keys(object);

  if (Object.getOwnPropertySymbols) {
    var symbols = Object.getOwnPropertySymbols(object);
    if (enumerableOnly) symbols = symbols.filter(function (sym) {
      return Object.getOwnPropertyDescriptor(object, sym).enumerable;
    });
    keys.push.apply(keys, symbols);
  }

  return keys;
}

function _objectSpread2(target) {
  for (var i = 1; i < arguments.length; i++) {
    var source = arguments[i] != null ? arguments[i] : {};

    if (i % 2) {
      ownKeys(Object(source), true).forEach(function (key) {
        _defineProperty(target, key, source[key]);
      });
    } else if (Object.getOwnPropertyDescriptors) {
      Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
    } else {
      ownKeys(Object(source)).forEach(function (key) {
        Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
      });
    }
  }

  return target;
}

var activeFocusDelay;

var activeFocusTraps = function () {
  var trapQueue = [];
  return {
    activateTrap: function activateTrap(trap) {
      if (trapQueue.length > 0) {
        var activeTrap = trapQueue[trapQueue.length - 1];

        if (activeTrap !== trap) {
          activeTrap.pause();
        }
      }

      var trapIndex = trapQueue.indexOf(trap);

      if (trapIndex === -1) {
        trapQueue.push(trap);
      } else {
        // move this existing trap to the front of the queue
        trapQueue.splice(trapIndex, 1);
        trapQueue.push(trap);
      }
    },
    deactivateTrap: function deactivateTrap(trap) {
      var trapIndex = trapQueue.indexOf(trap);

      if (trapIndex !== -1) {
        trapQueue.splice(trapIndex, 1);
      }

      if (trapQueue.length > 0) {
        trapQueue[trapQueue.length - 1].unpause();
      }
    }
  };
}();

var isSelectableInput = function isSelectableInput(node) {
  return node.tagName && node.tagName.toLowerCase() === 'input' && typeof node.select === 'function';
};

var isEscapeEvent = function isEscapeEvent(e) {
  return e.key === 'Escape' || e.key === 'Esc' || e.keyCode === 27;
};

var isTabEvent = function isTabEvent(e) {
  return e.key === 'Tab' || e.keyCode === 9;
};

var delay = function delay(fn) {
  return setTimeout(fn, 0);
};

var createFocusTrap = function createFocusTrap(elements, userOptions) {
  var doc = document;

  var config = _objectSpread2({
    returnFocusOnDeactivate: true,
    escapeDeactivates: true,
    delayInitialFocus: true
  }, userOptions);

  var state = {
    // @type {Array<HTMLElement>}
    containers: [],
    // list of objects identifying the first and last tabbable nodes in all containers/groups in
    //  the trap
    // NOTE: it's possible that a group has no tabbable nodes if nodes get removed while the trap
    //  is active, but the trap should never get to a state where there isn't at least one group
    //  with at least one tabbable node in it (that would lead to an error condition that would
    //  result in an error being thrown)
    // @type {Array<{ firstTabbableNode: HTMLElement|null, lastTabbableNode: HTMLElement|null }>}
    tabbableGroups: [],
    nodeFocusedBeforeActivation: null,
    mostRecentlyFocusedNode: null,
    active: false,
    paused: false
  };
  var trap; // eslint-disable-line prefer-const -- some private functions reference it, and its methods reference private functions, so we must declare here and define later

  var containersContain = function containersContain(element) {
    return state.containers.some(function (container) {
      return container.contains(element);
    });
  };

  var getNodeForOption = function getNodeForOption(optionName) {
    var optionValue = config[optionName];

    if (!optionValue) {
      return null;
    }

    var node = optionValue;

    if (typeof optionValue === 'string') {
      node = doc.querySelector(optionValue);

      if (!node) {
        throw new Error("`".concat(optionName, "` refers to no known node"));
      }
    }

    if (typeof optionValue === 'function') {
      node = optionValue();

      if (!node) {
        throw new Error("`".concat(optionName, "` did not return a node"));
      }
    }

    return node;
  };

  var getInitialFocusNode = function getInitialFocusNode() {
    var node;

    if (getNodeForOption('initialFocus') !== null) {
      node = getNodeForOption('initialFocus');
    } else if (containersContain(doc.activeElement)) {
      node = doc.activeElement;
    } else {
      var firstTabbableGroup = state.tabbableGroups[0];
      var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode;
      node = firstTabbableNode || getNodeForOption('fallbackFocus');
    }

    if (!node) {
      throw new Error('Your focus-trap needs to have at least one focusable element');
    }

    return node;
  };

  var updateTabbableNodes = function updateTabbableNodes() {
    state.tabbableGroups = state.containers.map(function (container) {
      var tabbableNodes = (0,tabbable__WEBPACK_IMPORTED_MODULE_0__.tabbable)(container);

      if (tabbableNodes.length > 0) {
        return {
          firstTabbableNode: tabbableNodes[0],
          lastTabbableNode: tabbableNodes[tabbableNodes.length - 1]
        };
      }

      return undefined;
    }).filter(function (group) {
      return !!group;
    }); // remove groups with no tabbable nodes
    // throw if no groups have tabbable nodes and we don't have a fallback focus node either

    if (state.tabbableGroups.length <= 0 && !getNodeForOption('fallbackFocus')) {
      throw new Error('Your focus-trap must have at least one container with at least one tabbable node in it at all times');
    }
  };

  var tryFocus = function tryFocus(node) {
    if (node === doc.activeElement) {
      return;
    }

    if (!node || !node.focus) {
      tryFocus(getInitialFocusNode());
      return;
    }

    node.focus({
      preventScroll: !!config.preventScroll
    });
    state.mostRecentlyFocusedNode = node;

    if (isSelectableInput(node)) {
      node.select();
    }
  };

  var getReturnFocusNode = function getReturnFocusNode(previousActiveElement) {
    var node = getNodeForOption('setReturnFocus');
    return node ? node : previousActiveElement;
  }; // This needs to be done on mousedown and touchstart instead of click
  // so that it precedes the focus event.


  var checkPointerDown = function checkPointerDown(e) {
    if (containersContain(e.target)) {
      // allow the click since it ocurred inside the trap
      return;
    }

    if (config.clickOutsideDeactivates) {
      // immediately deactivate the trap
      trap.deactivate({
        // if, on deactivation, we should return focus to the node originally-focused
        //  when the trap was activated (or the configured `setReturnFocus` node),
        //  then assume it's also OK to return focus to the outside node that was
        //  just clicked, causing deactivation, as long as that node is focusable;
        //  if it isn't focusable, then return focus to the original node focused
        //  on activation (or the configured `setReturnFocus` node)
        // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
        //  which will result in the outside click setting focus to the node
        //  that was clicked, whether it's focusable or not; by setting
        //  `returnFocus: true`, we'll attempt to re-focus the node originally-focused
        //  on activation (or the configured `setReturnFocus` node)
        returnFocus: config.returnFocusOnDeactivate && !(0,tabbable__WEBPACK_IMPORTED_MODULE_0__.isFocusable)(e.target)
      });
      return;
    } // This is needed for mobile devices.
    // (If we'll only let `click` events through,
    // then on mobile they will be blocked anyways if `touchstart` is blocked.)


    if (config.allowOutsideClick && (typeof config.allowOutsideClick === 'boolean' ? config.allowOutsideClick : config.allowOutsideClick(e))) {
      // allow the click outside the trap to take place
      return;
    } // otherwise, prevent the click


    e.preventDefault();
  }; // In case focus escapes the trap for some strange reason, pull it back in.


  var checkFocusIn = function checkFocusIn(e) {
    var targetContained = containersContain(e.target); // In Firefox when you Tab out of an iframe the Document is briefly focused.

    if (targetContained || e.target instanceof Document) {
      if (targetContained) {
        state.mostRecentlyFocusedNode = e.target;
      }
    } else {
      // escaped! pull it back in to where it just left
      e.stopImmediatePropagation();
      tryFocus(state.mostRecentlyFocusedNode || getInitialFocusNode());
    }
  }; // Hijack Tab events on the first and last focusable nodes of the trap,
  // in order to prevent focus from escaping. If it escapes for even a
  // moment it can end up scrolling the page and causing confusion so we
  // kind of need to capture the action at the keydown phase.


  var checkTab = function checkTab(e) {
    updateTabbableNodes();
    var destinationNode = null;

    if (state.tabbableGroups.length > 0) {
      if (e.shiftKey) {
        var startOfGroupIndex = state.tabbableGroups.findIndex(function (_ref) {
          var firstTabbableNode = _ref.firstTabbableNode;
          return e.target === firstTabbableNode;
        });

        if (startOfGroupIndex >= 0) {
          var destinationGroupIndex = startOfGroupIndex === 0 ? state.tabbableGroups.length - 1 : startOfGroupIndex - 1;
          var destinationGroup = state.tabbableGroups[destinationGroupIndex];
          destinationNode = destinationGroup.lastTabbableNode;
        }
      } else {
        var lastOfGroupIndex = state.tabbableGroups.findIndex(function (_ref2) {
          var lastTabbableNode = _ref2.lastTabbableNode;
          return e.target === lastTabbableNode;
        });

        if (lastOfGroupIndex >= 0) {
          var _destinationGroupIndex = lastOfGroupIndex === state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;

          var _destinationGroup = state.tabbableGroups[_destinationGroupIndex];
          destinationNode = _destinationGroup.firstTabbableNode;
        }
      }
    } else {
      destinationNode = getNodeForOption('fallbackFocus');
    }

    if (destinationNode) {
      e.preventDefault();
      tryFocus(destinationNode);
    }
  };

  var checkKey = function checkKey(e) {
    if (config.escapeDeactivates !== false && isEscapeEvent(e)) {
      e.preventDefault();
      trap.deactivate();
      return;
    }

    if (isTabEvent(e)) {
      checkTab(e);
      return;
    }
  };

  var checkClick = function checkClick(e) {
    if (config.clickOutsideDeactivates) {
      return;
    }

    if (containersContain(e.target)) {
      return;
    }

    if (config.allowOutsideClick && (typeof config.allowOutsideClick === 'boolean' ? config.allowOutsideClick : config.allowOutsideClick(e))) {
      return;
    }

    e.preventDefault();
    e.stopImmediatePropagation();
  }; //
  // EVENT LISTENERS
  //


  var addListeners = function addListeners() {
    if (!state.active) {
      return;
    } // There can be only one listening focus trap at a time


    activeFocusTraps.activateTrap(trap); // Delay ensures that the focused element doesn't capture the event
    // that caused the focus trap activation.

    activeFocusDelay = config.delayInitialFocus ? delay(function () {
      tryFocus(getInitialFocusNode());
    }) : tryFocus(getInitialFocusNode());
    doc.addEventListener('focusin', checkFocusIn, true);
    doc.addEventListener('mousedown', checkPointerDown, {
      capture: true,
      passive: false
    });
    doc.addEventListener('touchstart', checkPointerDown, {
      capture: true,
      passive: false
    });
    doc.addEventListener('click', checkClick, {
      capture: true,
      passive: false
    });
    doc.addEventListener('keydown', checkKey, {
      capture: true,
      passive: false
    });
    return trap;
  };

  var removeListeners = function removeListeners() {
    if (!state.active) {
      return;
    }

    doc.removeEventListener('focusin', checkFocusIn, true);
    doc.removeEventListener('mousedown', checkPointerDown, true);
    doc.removeEventListener('touchstart', checkPointerDown, true);
    doc.removeEventListener('click', checkClick, true);
    doc.removeEventListener('keydown', checkKey, true);
    return trap;
  }; //
  // TRAP DEFINITION
  //


  trap = {
    activate: function activate(activateOptions) {
      if (state.active) {
        return this;
      }

      updateTabbableNodes();
      state.active = true;
      state.paused = false;
      state.nodeFocusedBeforeActivation = doc.activeElement;
      var onActivate = activateOptions && activateOptions.onActivate ? activateOptions.onActivate : config.onActivate;

      if (onActivate) {
        onActivate();
      }

      addListeners();
      return this;
    },
    deactivate: function deactivate(deactivateOptions) {
      if (!state.active) {
        return this;
      }

      clearTimeout(activeFocusDelay);
      removeListeners();
      state.active = false;
      state.paused = false;
      activeFocusTraps.deactivateTrap(trap);
      var onDeactivate = deactivateOptions && deactivateOptions.onDeactivate !== undefined ? deactivateOptions.onDeactivate : config.onDeactivate;

      if (onDeactivate) {
        onDeactivate();
      }

      var returnFocus = deactivateOptions && deactivateOptions.returnFocus !== undefined ? deactivateOptions.returnFocus : config.returnFocusOnDeactivate;

      if (returnFocus) {
        delay(function () {
          tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));
        });
      }

      return this;
    },
    pause: function pause() {
      if (state.paused || !state.active) {
        return this;
      }

      state.paused = true;
      removeListeners();
      return this;
    },
    unpause: function unpause() {
      if (!state.paused || !state.active) {
        return this;
      }

      state.paused = false;
      updateTabbableNodes();
      addListeners();
      return this;
    },
    updateContainerElements: function updateContainerElements(containerElements) {
      var elementsAsArray = [].concat(containerElements).filter(Boolean);
      state.containers = elementsAsArray.map(function (element) {
        return typeof element === 'string' ? doc.querySelector(element) : element;
      });

      if (state.active) {
        updateTabbableNodes();
      }

      return this;
    }
  }; // initialize container elements

  trap.updateContainerElements(elements);
  return trap;
};


//# sourceMappingURL=focus-trap.esm.js.map


/***/ }),

/***/ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js ***!
  \**********************************************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


var reactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");

/**
 * Copyright 2015, Yahoo! Inc.
 * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
 */
var REACT_STATICS = {
  childContextTypes: true,
  contextType: true,
  contextTypes: true,
  defaultProps: true,
  displayName: true,
  getDefaultProps: true,
  getDerivedStateFromError: true,
  getDerivedStateFromProps: true,
  mixins: true,
  propTypes: true,
  type: true
};
var KNOWN_STATICS = {
  name: true,
  length: true,
  prototype: true,
  caller: true,
  callee: true,
  arguments: true,
  arity: true
};
var FORWARD_REF_STATICS = {
  '$$typeof': true,
  render: true,
  defaultProps: true,
  displayName: true,
  propTypes: true
};
var MEMO_STATICS = {
  '$$typeof': true,
  compare: true,
  defaultProps: true,
  displayName: true,
  propTypes: true,
  type: true
};
var TYPE_STATICS = {};
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;

function getStatics(component) {
  // React v16.11 and below
  if (reactIs.isMemo(component)) {
    return MEMO_STATICS;
  } // React v16.12 and above


  return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
}

var defineProperty = Object.defineProperty;
var getOwnPropertyNames = Object.getOwnPropertyNames;
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
var getPrototypeOf = Object.getPrototypeOf;
var objectPrototype = Object.prototype;
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
  if (typeof sourceComponent !== 'string') {
    // don't hoist over string (html) components
    if (objectPrototype) {
      var inheritedComponent = getPrototypeOf(sourceComponent);

      if (inheritedComponent && inheritedComponent !== objectPrototype) {
        hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
      }
    }

    var keys = getOwnPropertyNames(sourceComponent);

    if (getOwnPropertySymbols) {
      keys = keys.concat(getOwnPropertySymbols(sourceComponent));
    }

    var targetStatics = getStatics(targetComponent);
    var sourceStatics = getStatics(sourceComponent);

    for (var i = 0; i < keys.length; ++i) {
      var key = keys[i];

      if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
        var descriptor = getOwnPropertyDescriptor(sourceComponent, key);

        try {
          // Avoid failures from read-only properties
          defineProperty(targetComponent, key, descriptor);
        } catch (e) {}
      }
    }
  }

  return targetComponent;
}

module.exports = hoistNonReactStatics;


/***/ }),

/***/ "./node_modules/json-stringify-safe/stringify.js":
/*!*******************************************************!*\
  !*** ./node_modules/json-stringify-safe/stringify.js ***!
  \*******************************************************/
/***/ ((module, exports) => {

exports = module.exports = stringify
exports.getSerialize = serializer

function stringify(obj, replacer, spaces, cycleReplacer) {
  return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces)
}

function serializer(replacer, cycleReplacer) {
  var stack = [], keys = []

  if (cycleReplacer == null) cycleReplacer = function(key, value) {
    if (stack[0] === value) return "[Circular ~]"
    return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]"
  }

  return function(key, value) {
    if (stack.length > 0) {
      var thisPos = stack.indexOf(this)
      ~thisPos ? stack.splice(thisPos + 1) : stack.push(this)
      ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key)
      if (~stack.indexOf(value)) value = cycleReplacer.call(this, key, value)
    }
    else stack.push(value)

    return replacer == null ? value : replacer.call(this, key, value)
  }
}


/***/ }),

/***/ "./node_modules/lodash/_DataView.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_DataView.js ***!
  \******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
    root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/* Built-in method references that are verified to be native. */
var DataView = getNative(root, 'DataView');

module.exports = DataView;


/***/ }),

/***/ "./node_modules/lodash/_Hash.js":
/*!**************************************!*\
  !*** ./node_modules/lodash/_Hash.js ***!
  \**************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var hashClear = __webpack_require__(/*! ./_hashClear */ "./node_modules/lodash/_hashClear.js"),
    hashDelete = __webpack_require__(/*! ./_hashDelete */ "./node_modules/lodash/_hashDelete.js"),
    hashGet = __webpack_require__(/*! ./_hashGet */ "./node_modules/lodash/_hashGet.js"),
    hashHas = __webpack_require__(/*! ./_hashHas */ "./node_modules/lodash/_hashHas.js"),
    hashSet = __webpack_require__(/*! ./_hashSet */ "./node_modules/lodash/_hashSet.js");

/**
 * Creates a hash object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function Hash(entries) {
  var index = -1,
      length = entries == null ? 0 : entries.length;

  this.clear();
  while (++index < length) {
    var entry = entries[index];
    this.set(entry[0], entry[1]);
  }
}

// Add methods to `Hash`.
Hash.prototype.clear = hashClear;
Hash.prototype['delete'] = hashDelete;
Hash.prototype.get = hashGet;
Hash.prototype.has = hashHas;
Hash.prototype.set = hashSet;

module.exports = Hash;


/***/ }),

/***/ "./node_modules/lodash/_ListCache.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_ListCache.js ***!
  \*******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ "./node_modules/lodash/_listCacheClear.js"),
    listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ "./node_modules/lodash/_listCacheDelete.js"),
    listCacheGet = __webpack_require__(/*! ./_listCacheGet */ "./node_modules/lodash/_listCacheGet.js"),
    listCacheHas = __webpack_require__(/*! ./_listCacheHas */ "./node_modules/lodash/_listCacheHas.js"),
    listCacheSet = __webpack_require__(/*! ./_listCacheSet */ "./node_modules/lodash/_listCacheSet.js");

/**
 * Creates an list cache object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function ListCache(entries) {
  var index = -1,
      length = entries == null ? 0 : entries.length;

  this.clear();
  while (++index < length) {
    var entry = entries[index];
    this.set(entry[0], entry[1]);
  }
}

// Add methods to `ListCache`.
ListCache.prototype.clear = listCacheClear;
ListCache.prototype['delete'] = listCacheDelete;
ListCache.prototype.get = listCacheGet;
ListCache.prototype.has = listCacheHas;
ListCache.prototype.set = listCacheSet;

module.exports = ListCache;


/***/ }),

/***/ "./node_modules/lodash/_Map.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/_Map.js ***!
  \*************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
    root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/* Built-in method references that are verified to be native. */
var Map = getNative(root, 'Map');

module.exports = Map;


/***/ }),

/***/ "./node_modules/lodash/_MapCache.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_MapCache.js ***!
  \******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ "./node_modules/lodash/_mapCacheClear.js"),
    mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ "./node_modules/lodash/_mapCacheDelete.js"),
    mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ "./node_modules/lodash/_mapCacheGet.js"),
    mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ "./node_modules/lodash/_mapCacheHas.js"),
    mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ "./node_modules/lodash/_mapCacheSet.js");

/**
 * Creates a map cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function MapCache(entries) {
  var index = -1,
      length = entries == null ? 0 : entries.length;

  this.clear();
  while (++index < length) {
    var entry = entries[index];
    this.set(entry[0], entry[1]);
  }
}

// Add methods to `MapCache`.
MapCache.prototype.clear = mapCacheClear;
MapCache.prototype['delete'] = mapCacheDelete;
MapCache.prototype.get = mapCacheGet;
MapCache.prototype.has = mapCacheHas;
MapCache.prototype.set = mapCacheSet;

module.exports = MapCache;


/***/ }),

/***/ "./node_modules/lodash/_Promise.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_Promise.js ***!
  \*****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
    root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/* Built-in method references that are verified to be native. */
var Promise = getNative(root, 'Promise');

module.exports = Promise;


/***/ }),

/***/ "./node_modules/lodash/_Set.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/_Set.js ***!
  \*************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
    root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/* Built-in method references that are verified to be native. */
var Set = getNative(root, 'Set');

module.exports = Set;


/***/ }),

/***/ "./node_modules/lodash/_SetCache.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_SetCache.js ***!
  \******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js"),
    setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ "./node_modules/lodash/_setCacheAdd.js"),
    setCacheHas = __webpack_require__(/*! ./_setCacheHas */ "./node_modules/lodash/_setCacheHas.js");

/**
 *
 * Creates an array cache object to store unique values.
 *
 * @private
 * @constructor
 * @param {Array} [values] The values to cache.
 */
function SetCache(values) {
  var index = -1,
      length = values == null ? 0 : values.length;

  this.__data__ = new MapCache;
  while (++index < length) {
    this.add(values[index]);
  }
}

// Add methods to `SetCache`.
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
SetCache.prototype.has = setCacheHas;

module.exports = SetCache;


/***/ }),

/***/ "./node_modules/lodash/_Stack.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/_Stack.js ***!
  \***************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
    stackClear = __webpack_require__(/*! ./_stackClear */ "./node_modules/lodash/_stackClear.js"),
    stackDelete = __webpack_require__(/*! ./_stackDelete */ "./node_modules/lodash/_stackDelete.js"),
    stackGet = __webpack_require__(/*! ./_stackGet */ "./node_modules/lodash/_stackGet.js"),
    stackHas = __webpack_require__(/*! ./_stackHas */ "./node_modules/lodash/_stackHas.js"),
    stackSet = __webpack_require__(/*! ./_stackSet */ "./node_modules/lodash/_stackSet.js");

/**
 * Creates a stack cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function Stack(entries) {
  var data = this.__data__ = new ListCache(entries);
  this.size = data.size;
}

// Add methods to `Stack`.
Stack.prototype.clear = stackClear;
Stack.prototype['delete'] = stackDelete;
Stack.prototype.get = stackGet;
Stack.prototype.has = stackHas;
Stack.prototype.set = stackSet;

module.exports = Stack;


/***/ }),

/***/ "./node_modules/lodash/_Symbol.js":
/*!****************************************!*\
  !*** ./node_modules/lodash/_Symbol.js ***!
  \****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/** Built-in value references. */
var Symbol = root.Symbol;

module.exports = Symbol;


/***/ }),

/***/ "./node_modules/lodash/_Uint8Array.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_Uint8Array.js ***!
  \********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/** Built-in value references. */
var Uint8Array = root.Uint8Array;

module.exports = Uint8Array;


/***/ }),

/***/ "./node_modules/lodash/_WeakMap.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_WeakMap.js ***!
  \*****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
    root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/* Built-in method references that are verified to be native. */
var WeakMap = getNative(root, 'WeakMap');

module.exports = WeakMap;


/***/ }),

/***/ "./node_modules/lodash/_apply.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/_apply.js ***!
  \***************************************/
/***/ ((module) => {

/**
 * A faster alternative to `Function#apply`, this function invokes `func`
 * with the `this` binding of `thisArg` and the arguments of `args`.
 *
 * @private
 * @param {Function} func The function to invoke.
 * @param {*} thisArg The `this` binding of `func`.
 * @param {Array} args The arguments to invoke `func` with.
 * @returns {*} Returns the result of `func`.
 */
function apply(func, thisArg, args) {
  switch (args.length) {
    case 0: return func.call(thisArg);
    case 1: return func.call(thisArg, args[0]);
    case 2: return func.call(thisArg, args[0], args[1]);
    case 3: return func.call(thisArg, args[0], args[1], args[2]);
  }
  return func.apply(thisArg, args);
}

module.exports = apply;


/***/ }),

/***/ "./node_modules/lodash/_arrayAggregator.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_arrayAggregator.js ***!
  \*************************************************/
/***/ ((module) => {

/**
 * A specialized version of `baseAggregator` for arrays.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} setter The function to set `accumulator` values.
 * @param {Function} iteratee The iteratee to transform keys.
 * @param {Object} accumulator The initial aggregated object.
 * @returns {Function} Returns `accumulator`.
 */
function arrayAggregator(array, setter, iteratee, accumulator) {
  var index = -1,
      length = array == null ? 0 : array.length;

  while (++index < length) {
    var value = array[index];
    setter(accumulator, value, iteratee(value), array);
  }
  return accumulator;
}

module.exports = arrayAggregator;


/***/ }),

/***/ "./node_modules/lodash/_arrayEach.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_arrayEach.js ***!
  \*******************************************/
/***/ ((module) => {

/**
 * A specialized version of `_.forEach` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns `array`.
 */
function arrayEach(array, iteratee) {
  var index = -1,
      length = array == null ? 0 : array.length;

  while (++index < length) {
    if (iteratee(array[index], index, array) === false) {
      break;
    }
  }
  return array;
}

module.exports = arrayEach;


/***/ }),

/***/ "./node_modules/lodash/_arrayFilter.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_arrayFilter.js ***!
  \*********************************************/
/***/ ((module) => {

/**
 * A specialized version of `_.filter` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {Array} Returns the new filtered array.
 */
function arrayFilter(array, predicate) {
  var index = -1,
      length = array == null ? 0 : array.length,
      resIndex = 0,
      result = [];

  while (++index < length) {
    var value = array[index];
    if (predicate(value, index, array)) {
      result[resIndex++] = value;
    }
  }
  return result;
}

module.exports = arrayFilter;


/***/ }),

/***/ "./node_modules/lodash/_arrayIncludes.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_arrayIncludes.js ***!
  \***********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseIndexOf = __webpack_require__(/*! ./_baseIndexOf */ "./node_modules/lodash/_baseIndexOf.js");

/**
 * A specialized version of `_.includes` for arrays without support for
 * specifying an index to search from.
 *
 * @private
 * @param {Array} [array] The array to inspect.
 * @param {*} target The value to search for.
 * @returns {boolean} Returns `true` if `target` is found, else `false`.
 */
function arrayIncludes(array, value) {
  var length = array == null ? 0 : array.length;
  return !!length && baseIndexOf(array, value, 0) > -1;
}

module.exports = arrayIncludes;


/***/ }),

/***/ "./node_modules/lodash/_arrayIncludesWith.js":
/*!***************************************************!*\
  !*** ./node_modules/lodash/_arrayIncludesWith.js ***!
  \***************************************************/
/***/ ((module) => {

/**
 * This function is like `arrayIncludes` except that it accepts a comparator.
 *
 * @private
 * @param {Array} [array] The array to inspect.
 * @param {*} target The value to search for.
 * @param {Function} comparator The comparator invoked per element.
 * @returns {boolean} Returns `true` if `target` is found, else `false`.
 */
function arrayIncludesWith(array, value, comparator) {
  var index = -1,
      length = array == null ? 0 : array.length;

  while (++index < length) {
    if (comparator(value, array[index])) {
      return true;
    }
  }
  return false;
}

module.exports = arrayIncludesWith;


/***/ }),

/***/ "./node_modules/lodash/_arrayLikeKeys.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_arrayLikeKeys.js ***!
  \***********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseTimes = __webpack_require__(/*! ./_baseTimes */ "./node_modules/lodash/_baseTimes.js"),
    isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
    isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
    isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Creates an array of the enumerable property names of the array-like `value`.
 *
 * @private
 * @param {*} value The value to query.
 * @param {boolean} inherited Specify returning inherited property names.
 * @returns {Array} Returns the array of property names.
 */
function arrayLikeKeys(value, inherited) {
  var isArr = isArray(value),
      isArg = !isArr && isArguments(value),
      isBuff = !isArr && !isArg && isBuffer(value),
      isType = !isArr && !isArg && !isBuff && isTypedArray(value),
      skipIndexes = isArr || isArg || isBuff || isType,
      result = skipIndexes ? baseTimes(value.length, String) : [],
      length = result.length;

  for (var key in value) {
    if ((inherited || hasOwnProperty.call(value, key)) &&
        !(skipIndexes && (
           // Safari 9 has enumerable `arguments.length` in strict mode.
           key == 'length' ||
           // Node.js 0.10 has enumerable non-index properties on buffers.
           (isBuff && (key == 'offset' || key == 'parent')) ||
           // PhantomJS 2 has enumerable non-index properties on typed arrays.
           (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
           // Skip index properties.
           isIndex(key, length)
        ))) {
      result.push(key);
    }
  }
  return result;
}

module.exports = arrayLikeKeys;


/***/ }),

/***/ "./node_modules/lodash/_arrayMap.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_arrayMap.js ***!
  \******************************************/
/***/ ((module) => {

/**
 * A specialized version of `_.map` for arrays without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the new mapped array.
 */
function arrayMap(array, iteratee) {
  var index = -1,
      length = array == null ? 0 : array.length,
      result = Array(length);

  while (++index < length) {
    result[index] = iteratee(array[index], index, array);
  }
  return result;
}

module.exports = arrayMap;


/***/ }),

/***/ "./node_modules/lodash/_arrayPush.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_arrayPush.js ***!
  \*******************************************/
/***/ ((module) => {

/**
 * Appends the elements of `values` to `array`.
 *
 * @private
 * @param {Array} array The array to modify.
 * @param {Array} values The values to append.
 * @returns {Array} Returns `array`.
 */
function arrayPush(array, values) {
  var index = -1,
      length = values.length,
      offset = array.length;

  while (++index < length) {
    array[offset + index] = values[index];
  }
  return array;
}

module.exports = arrayPush;


/***/ }),

/***/ "./node_modules/lodash/_arraySome.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_arraySome.js ***!
  \*******************************************/
/***/ ((module) => {

/**
 * A specialized version of `_.some` for arrays without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {boolean} Returns `true` if any element passes the predicate check,
 *  else `false`.
 */
function arraySome(array, predicate) {
  var index = -1,
      length = array == null ? 0 : array.length;

  while (++index < length) {
    if (predicate(array[index], index, array)) {
      return true;
    }
  }
  return false;
}

module.exports = arraySome;


/***/ }),

/***/ "./node_modules/lodash/_assignMergeValue.js":
/*!**************************************************!*\
  !*** ./node_modules/lodash/_assignMergeValue.js ***!
  \**************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js"),
    eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");

/**
 * This function is like `assignValue` except that it doesn't assign
 * `undefined` values.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */
function assignMergeValue(object, key, value) {
  if ((value !== undefined && !eq(object[key], value)) ||
      (value === undefined && !(key in object))) {
    baseAssignValue(object, key, value);
  }
}

module.exports = assignMergeValue;


/***/ }),

/***/ "./node_modules/lodash/_assignValue.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_assignValue.js ***!
  \*********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js"),
    eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Assigns `value` to `key` of `object` if the existing value is not equivalent
 * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */
function assignValue(object, key, value) {
  var objValue = object[key];
  if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
      (value === undefined && !(key in object))) {
    baseAssignValue(object, key, value);
  }
}

module.exports = assignValue;


/***/ }),

/***/ "./node_modules/lodash/_assocIndexOf.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_assocIndexOf.js ***!
  \**********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");

/**
 * Gets the index at which the `key` is found in `array` of key-value pairs.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} key The key to search for.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */
function assocIndexOf(array, key) {
  var length = array.length;
  while (length--) {
    if (eq(array[length][0], key)) {
      return length;
    }
  }
  return -1;
}

module.exports = assocIndexOf;


/***/ }),

/***/ "./node_modules/lodash/_baseAggregator.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_baseAggregator.js ***!
  \************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseEach = __webpack_require__(/*! ./_baseEach */ "./node_modules/lodash/_baseEach.js");

/**
 * Aggregates elements of `collection` on `accumulator` with keys transformed
 * by `iteratee` and values set by `setter`.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} setter The function to set `accumulator` values.
 * @param {Function} iteratee The iteratee to transform keys.
 * @param {Object} accumulator The initial aggregated object.
 * @returns {Function} Returns `accumulator`.
 */
function baseAggregator(collection, setter, iteratee, accumulator) {
  baseEach(collection, function(value, key, collection) {
    setter(accumulator, value, iteratee(value), collection);
  });
  return accumulator;
}

module.exports = baseAggregator;


/***/ }),

/***/ "./node_modules/lodash/_baseAssign.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_baseAssign.js ***!
  \********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");

/**
 * The base implementation of `_.assign` without support for multiple sources
 * or `customizer` functions.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @returns {Object} Returns `object`.
 */
function baseAssign(object, source) {
  return object && copyObject(source, keys(source), object);
}

module.exports = baseAssign;


/***/ }),

/***/ "./node_modules/lodash/_baseAssignIn.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_baseAssignIn.js ***!
  \**********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
    keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");

/**
 * The base implementation of `_.assignIn` without support for multiple sources
 * or `customizer` functions.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @returns {Object} Returns `object`.
 */
function baseAssignIn(object, source) {
  return object && copyObject(source, keysIn(source), object);
}

module.exports = baseAssignIn;


/***/ }),

/***/ "./node_modules/lodash/_baseAssignValue.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_baseAssignValue.js ***!
  \*************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var defineProperty = __webpack_require__(/*! ./_defineProperty */ "./node_modules/lodash/_defineProperty.js");

/**
 * The base implementation of `assignValue` and `assignMergeValue` without
 * value checks.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */
function baseAssignValue(object, key, value) {
  if (key == '__proto__' && defineProperty) {
    defineProperty(object, key, {
      'configurable': true,
      'enumerable': true,
      'value': value,
      'writable': true
    });
  } else {
    object[key] = value;
  }
}

module.exports = baseAssignValue;


/***/ }),

/***/ "./node_modules/lodash/_baseClone.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseClone.js ***!
  \*******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
    arrayEach = __webpack_require__(/*! ./_arrayEach */ "./node_modules/lodash/_arrayEach.js"),
    assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
    baseAssign = __webpack_require__(/*! ./_baseAssign */ "./node_modules/lodash/_baseAssign.js"),
    baseAssignIn = __webpack_require__(/*! ./_baseAssignIn */ "./node_modules/lodash/_baseAssignIn.js"),
    cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "./node_modules/lodash/_cloneBuffer.js"),
    copyArray = __webpack_require__(/*! ./_copyArray */ "./node_modules/lodash/_copyArray.js"),
    copySymbols = __webpack_require__(/*! ./_copySymbols */ "./node_modules/lodash/_copySymbols.js"),
    copySymbolsIn = __webpack_require__(/*! ./_copySymbolsIn */ "./node_modules/lodash/_copySymbolsIn.js"),
    getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "./node_modules/lodash/_getAllKeys.js"),
    getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "./node_modules/lodash/_getAllKeysIn.js"),
    getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
    initCloneArray = __webpack_require__(/*! ./_initCloneArray */ "./node_modules/lodash/_initCloneArray.js"),
    initCloneByTag = __webpack_require__(/*! ./_initCloneByTag */ "./node_modules/lodash/_initCloneByTag.js"),
    initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "./node_modules/lodash/_initCloneObject.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
    isMap = __webpack_require__(/*! ./isMap */ "./node_modules/lodash/isMap.js"),
    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
    isSet = __webpack_require__(/*! ./isSet */ "./node_modules/lodash/isSet.js"),
    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js"),
    keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");

/** Used to compose bitmasks for cloning. */
var CLONE_DEEP_FLAG = 1,
    CLONE_FLAT_FLAG = 2,
    CLONE_SYMBOLS_FLAG = 4;

/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
    arrayTag = '[object Array]',
    boolTag = '[object Boolean]',
    dateTag = '[object Date]',
    errorTag = '[object Error]',
    funcTag = '[object Function]',
    genTag = '[object GeneratorFunction]',
    mapTag = '[object Map]',
    numberTag = '[object Number]',
    objectTag = '[object Object]',
    regexpTag = '[object RegExp]',
    setTag = '[object Set]',
    stringTag = '[object String]',
    symbolTag = '[object Symbol]',
    weakMapTag = '[object WeakMap]';

var arrayBufferTag = '[object ArrayBuffer]',
    dataViewTag = '[object DataView]',
    float32Tag = '[object Float32Array]',
    float64Tag = '[object Float64Array]',
    int8Tag = '[object Int8Array]',
    int16Tag = '[object Int16Array]',
    int32Tag = '[object Int32Array]',
    uint8Tag = '[object Uint8Array]',
    uint8ClampedTag = '[object Uint8ClampedArray]',
    uint16Tag = '[object Uint16Array]',
    uint32Tag = '[object Uint32Array]';

/** Used to identify `toStringTag` values supported by `_.clone`. */
var cloneableTags = {};
cloneableTags[argsTag] = cloneableTags[arrayTag] =
cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
cloneableTags[boolTag] = cloneableTags[dateTag] =
cloneableTags[float32Tag] = cloneableTags[float64Tag] =
cloneableTags[int8Tag] = cloneableTags[int16Tag] =
cloneableTags[int32Tag] = cloneableTags[mapTag] =
cloneableTags[numberTag] = cloneableTags[objectTag] =
cloneableTags[regexpTag] = cloneableTags[setTag] =
cloneableTags[stringTag] = cloneableTags[symbolTag] =
cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
cloneableTags[errorTag] = cloneableTags[funcTag] =
cloneableTags[weakMapTag] = false;

/**
 * The base implementation of `_.clone` and `_.cloneDeep` which tracks
 * traversed objects.
 *
 * @private
 * @param {*} value The value to clone.
 * @param {boolean} bitmask The bitmask flags.
 *  1 - Deep clone
 *  2 - Flatten inherited properties
 *  4 - Clone symbols
 * @param {Function} [customizer] The function to customize cloning.
 * @param {string} [key] The key of `value`.
 * @param {Object} [object] The parent object of `value`.
 * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
 * @returns {*} Returns the cloned value.
 */
function baseClone(value, bitmask, customizer, key, object, stack) {
  var result,
      isDeep = bitmask & CLONE_DEEP_FLAG,
      isFlat = bitmask & CLONE_FLAT_FLAG,
      isFull = bitmask & CLONE_SYMBOLS_FLAG;

  if (customizer) {
    result = object ? customizer(value, key, object, stack) : customizer(value);
  }
  if (result !== undefined) {
    return result;
  }
  if (!isObject(value)) {
    return value;
  }
  var isArr = isArray(value);
  if (isArr) {
    result = initCloneArray(value);
    if (!isDeep) {
      return copyArray(value, result);
    }
  } else {
    var tag = getTag(value),
        isFunc = tag == funcTag || tag == genTag;

    if (isBuffer(value)) {
      return cloneBuffer(value, isDeep);
    }
    if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
      result = (isFlat || isFunc) ? {} : initCloneObject(value);
      if (!isDeep) {
        return isFlat
          ? copySymbolsIn(value, baseAssignIn(result, value))
          : copySymbols(value, baseAssign(result, value));
      }
    } else {
      if (!cloneableTags[tag]) {
        return object ? value : {};
      }
      result = initCloneByTag(value, tag, isDeep);
    }
  }
  // Check for circular references and return its corresponding clone.
  stack || (stack = new Stack);
  var stacked = stack.get(value);
  if (stacked) {
    return stacked;
  }
  stack.set(value, result);

  if (isSet(value)) {
    value.forEach(function(subValue) {
      result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
    });
  } else if (isMap(value)) {
    value.forEach(function(subValue, key) {
      result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
    });
  }

  var keysFunc = isFull
    ? (isFlat ? getAllKeysIn : getAllKeys)
    : (isFlat ? keysIn : keys);

  var props = isArr ? undefined : keysFunc(value);
  arrayEach(props || value, function(subValue, key) {
    if (props) {
      key = subValue;
      subValue = value[key];
    }
    // Recursively populate clone (susceptible to call stack limits).
    assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
  });
  return result;
}

module.exports = baseClone;


/***/ }),

/***/ "./node_modules/lodash/_baseCreate.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_baseCreate.js ***!
  \********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");

/** Built-in value references. */
var objectCreate = Object.create;

/**
 * The base implementation of `_.create` without support for assigning
 * properties to the created object.
 *
 * @private
 * @param {Object} proto The object to inherit from.
 * @returns {Object} Returns the new object.
 */
var baseCreate = (function() {
  function object() {}
  return function(proto) {
    if (!isObject(proto)) {
      return {};
    }
    if (objectCreate) {
      return objectCreate(proto);
    }
    object.prototype = proto;
    var result = new object;
    object.prototype = undefined;
    return result;
  };
}());

module.exports = baseCreate;


/***/ }),

/***/ "./node_modules/lodash/_baseDifference.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_baseDifference.js ***!
  \************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var SetCache = __webpack_require__(/*! ./_SetCache */ "./node_modules/lodash/_SetCache.js"),
    arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "./node_modules/lodash/_arrayIncludes.js"),
    arrayIncludesWith = __webpack_require__(/*! ./_arrayIncludesWith */ "./node_modules/lodash/_arrayIncludesWith.js"),
    arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
    baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
    cacheHas = __webpack_require__(/*! ./_cacheHas */ "./node_modules/lodash/_cacheHas.js");

/** Used as the size to enable large array optimizations. */
var LARGE_ARRAY_SIZE = 200;

/**
 * The base implementation of methods like `_.difference` without support
 * for excluding multiple arrays or iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {Array} values The values to exclude.
 * @param {Function} [iteratee] The iteratee invoked per element.
 * @param {Function} [comparator] The comparator invoked per element.
 * @returns {Array} Returns the new array of filtered values.
 */
function baseDifference(array, values, iteratee, comparator) {
  var index = -1,
      includes = arrayIncludes,
      isCommon = true,
      length = array.length,
      result = [],
      valuesLength = values.length;

  if (!length) {
    return result;
  }
  if (iteratee) {
    values = arrayMap(values, baseUnary(iteratee));
  }
  if (comparator) {
    includes = arrayIncludesWith;
    isCommon = false;
  }
  else if (values.length >= LARGE_ARRAY_SIZE) {
    includes = cacheHas;
    isCommon = false;
    values = new SetCache(values);
  }
  outer:
  while (++index < length) {
    var value = array[index],
        computed = iteratee == null ? value : iteratee(value);

    value = (comparator || value !== 0) ? value : 0;
    if (isCommon && computed === computed) {
      var valuesIndex = valuesLength;
      while (valuesIndex--) {
        if (values[valuesIndex] === computed) {
          continue outer;
        }
      }
      result.push(value);
    }
    else if (!includes(values, computed, comparator)) {
      result.push(value);
    }
  }
  return result;
}

module.exports = baseDifference;


/***/ }),

/***/ "./node_modules/lodash/_baseEach.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_baseEach.js ***!
  \******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "./node_modules/lodash/_baseForOwn.js"),
    createBaseEach = __webpack_require__(/*! ./_createBaseEach */ "./node_modules/lodash/_createBaseEach.js");

/**
 * The base implementation of `_.forEach` without support for iteratee shorthands.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array|Object} Returns `collection`.
 */
var baseEach = createBaseEach(baseForOwn);

module.exports = baseEach;


/***/ }),

/***/ "./node_modules/lodash/_baseFindIndex.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_baseFindIndex.js ***!
  \***********************************************/
/***/ ((module) => {

/**
 * The base implementation of `_.findIndex` and `_.findLastIndex` without
 * support for iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {Function} predicate The function invoked per iteration.
 * @param {number} fromIndex The index to search from.
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */
function baseFindIndex(array, predicate, fromIndex, fromRight) {
  var length = array.length,
      index = fromIndex + (fromRight ? 1 : -1);

  while ((fromRight ? index-- : ++index < length)) {
    if (predicate(array[index], index, array)) {
      return index;
    }
  }
  return -1;
}

module.exports = baseFindIndex;


/***/ }),

/***/ "./node_modules/lodash/_baseFlatten.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_baseFlatten.js ***!
  \*********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
    isFlattenable = __webpack_require__(/*! ./_isFlattenable */ "./node_modules/lodash/_isFlattenable.js");

/**
 * The base implementation of `_.flatten` with support for restricting flattening.
 *
 * @private
 * @param {Array} array The array to flatten.
 * @param {number} depth The maximum recursion depth.
 * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
 * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
 * @param {Array} [result=[]] The initial result value.
 * @returns {Array} Returns the new flattened array.
 */
function baseFlatten(array, depth, predicate, isStrict, result) {
  var index = -1,
      length = array.length;

  predicate || (predicate = isFlattenable);
  result || (result = []);

  while (++index < length) {
    var value = array[index];
    if (depth > 0 && predicate(value)) {
      if (depth > 1) {
        // Recursively flatten arrays (susceptible to call stack limits).
        baseFlatten(value, depth - 1, predicate, isStrict, result);
      } else {
        arrayPush(result, value);
      }
    } else if (!isStrict) {
      result[result.length] = value;
    }
  }
  return result;
}

module.exports = baseFlatten;


/***/ }),

/***/ "./node_modules/lodash/_baseFor.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_baseFor.js ***!
  \*****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ "./node_modules/lodash/_createBaseFor.js");

/**
 * The base implementation of `baseForOwn` which iterates over `object`
 * properties returned by `keysFunc` and invokes `iteratee` for each property.
 * Iteratee functions may exit iteration early by explicitly returning `false`.
 *
 * @private
 * @param {Object} object The object to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @param {Function} keysFunc The function to get the keys of `object`.
 * @returns {Object} Returns `object`.
 */
var baseFor = createBaseFor();

module.exports = baseFor;


/***/ }),

/***/ "./node_modules/lodash/_baseForOwn.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_baseForOwn.js ***!
  \********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseFor = __webpack_require__(/*! ./_baseFor */ "./node_modules/lodash/_baseFor.js"),
    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");

/**
 * The base implementation of `_.forOwn` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The object to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Object} Returns `object`.
 */
function baseForOwn(object, iteratee) {
  return object && baseFor(object, iteratee, keys);
}

module.exports = baseForOwn;


/***/ }),

/***/ "./node_modules/lodash/_baseGet.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_baseGet.js ***!
  \*****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
    toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");

/**
 * The base implementation of `_.get` without support for default values.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to get.
 * @returns {*} Returns the resolved value.
 */
function baseGet(object, path) {
  path = castPath(path, object);

  var index = 0,
      length = path.length;

  while (object != null && index < length) {
    object = object[toKey(path[index++])];
  }
  return (index && index == length) ? object : undefined;
}

module.exports = baseGet;


/***/ }),

/***/ "./node_modules/lodash/_baseGetAllKeys.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_baseGetAllKeys.js ***!
  \************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");

/**
 * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
 * `keysFunc` and `symbolsFunc` to get the enumerable property names and
 * symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Function} keysFunc The function to get the keys of `object`.
 * @param {Function} symbolsFunc The function to get the symbols of `object`.
 * @returns {Array} Returns the array of property names and symbols.
 */
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  var result = keysFunc(object);
  return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
}

module.exports = baseGetAllKeys;


/***/ }),

/***/ "./node_modules/lodash/_baseGetTag.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_baseGetTag.js ***!
  \********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
    getRawTag = __webpack_require__(/*! ./_getRawTag */ "./node_modules/lodash/_getRawTag.js"),
    objectToString = __webpack_require__(/*! ./_objectToString */ "./node_modules/lodash/_objectToString.js");

/** `Object#toString` result references. */
var nullTag = '[object Null]',
    undefinedTag = '[object Undefined]';

/** Built-in value references. */
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;

/**
 * The base implementation of `getTag` without fallbacks for buggy environments.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the `toStringTag`.
 */
function baseGetTag(value) {
  if (value == null) {
    return value === undefined ? undefinedTag : nullTag;
  }
  return (symToStringTag && symToStringTag in Object(value))
    ? getRawTag(value)
    : objectToString(value);
}

module.exports = baseGetTag;


/***/ }),

/***/ "./node_modules/lodash/_baseHasIn.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseHasIn.js ***!
  \*******************************************/
/***/ ((module) => {

/**
 * The base implementation of `_.hasIn` without support for deep paths.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {Array|string} key The key to check.
 * @returns {boolean} Returns `true` if `key` exists, else `false`.
 */
function baseHasIn(object, key) {
  return object != null && key in Object(object);
}

module.exports = baseHasIn;


/***/ }),

/***/ "./node_modules/lodash/_baseIndexOf.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_baseIndexOf.js ***!
  \*********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "./node_modules/lodash/_baseFindIndex.js"),
    baseIsNaN = __webpack_require__(/*! ./_baseIsNaN */ "./node_modules/lodash/_baseIsNaN.js"),
    strictIndexOf = __webpack_require__(/*! ./_strictIndexOf */ "./node_modules/lodash/_strictIndexOf.js");

/**
 * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} value The value to search for.
 * @param {number} fromIndex The index to search from.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */
function baseIndexOf(array, value, fromIndex) {
  return value === value
    ? strictIndexOf(array, value, fromIndex)
    : baseFindIndex(array, baseIsNaN, fromIndex);
}

module.exports = baseIndexOf;


/***/ }),

/***/ "./node_modules/lodash/_baseInverter.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_baseInverter.js ***!
  \**********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "./node_modules/lodash/_baseForOwn.js");

/**
 * The base implementation of `_.invert` and `_.invertBy` which inverts
 * `object` with values transformed by `iteratee` and set by `setter`.
 *
 * @private
 * @param {Object} object The object to iterate over.
 * @param {Function} setter The function to set `accumulator` values.
 * @param {Function} iteratee The iteratee to transform values.
 * @param {Object} accumulator The initial inverted object.
 * @returns {Function} Returns `accumulator`.
 */
function baseInverter(object, setter, iteratee, accumulator) {
  baseForOwn(object, function(value, key, object) {
    setter(accumulator, iteratee(value), key, object);
  });
  return accumulator;
}

module.exports = baseInverter;


/***/ }),

/***/ "./node_modules/lodash/_baseIsArguments.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_baseIsArguments.js ***!
  \*************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** `Object#toString` result references. */
var argsTag = '[object Arguments]';

/**
 * The base implementation of `_.isArguments`.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an `arguments` object,
 */
function baseIsArguments(value) {
  return isObjectLike(value) && baseGetTag(value) == argsTag;
}

module.exports = baseIsArguments;


/***/ }),

/***/ "./node_modules/lodash/_baseIsDate.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_baseIsDate.js ***!
  \********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** `Object#toString` result references. */
var dateTag = '[object Date]';

/**
 * The base implementation of `_.isDate` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
 */
function baseIsDate(value) {
  return isObjectLike(value) && baseGetTag(value) == dateTag;
}

module.exports = baseIsDate;


/***/ }),

/***/ "./node_modules/lodash/_baseIsEqual.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_baseIsEqual.js ***!
  \*********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ "./node_modules/lodash/_baseIsEqualDeep.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/**
 * The base implementation of `_.isEqual` which supports partial comparisons
 * and tracks traversed objects.
 *
 * @private
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @param {boolean} bitmask The bitmask flags.
 *  1 - Unordered comparison
 *  2 - Partial comparison
 * @param {Function} [customizer] The function to customize comparisons.
 * @param {Object} [stack] Tracks traversed `value` and `other` objects.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 */
function baseIsEqual(value, other, bitmask, customizer, stack) {
  if (value === other) {
    return true;
  }
  if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
    return value !== value && other !== other;
  }
  return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
}

module.exports = baseIsEqual;


/***/ }),

/***/ "./node_modules/lodash/_baseIsEqualDeep.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_baseIsEqualDeep.js ***!
  \*************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
    equalArrays = __webpack_require__(/*! ./_equalArrays */ "./node_modules/lodash/_equalArrays.js"),
    equalByTag = __webpack_require__(/*! ./_equalByTag */ "./node_modules/lodash/_equalByTag.js"),
    equalObjects = __webpack_require__(/*! ./_equalObjects */ "./node_modules/lodash/_equalObjects.js"),
    getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
    isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1;

/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
    arrayTag = '[object Array]',
    objectTag = '[object Object]';

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * A specialized version of `baseIsEqual` for arrays and objects which performs
 * deep comparisons and tracks traversed objects enabling objects with circular
 * references to be compared.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} [stack] Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  var objIsArr = isArray(object),
      othIsArr = isArray(other),
      objTag = objIsArr ? arrayTag : getTag(object),
      othTag = othIsArr ? arrayTag : getTag(other);

  objTag = objTag == argsTag ? objectTag : objTag;
  othTag = othTag == argsTag ? objectTag : othTag;

  var objIsObj = objTag == objectTag,
      othIsObj = othTag == objectTag,
      isSameTag = objTag == othTag;

  if (isSameTag && isBuffer(object)) {
    if (!isBuffer(other)) {
      return false;
    }
    objIsArr = true;
    objIsObj = false;
  }
  if (isSameTag && !objIsObj) {
    stack || (stack = new Stack);
    return (objIsArr || isTypedArray(object))
      ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
      : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  }
  if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
    var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
        othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');

    if (objIsWrapped || othIsWrapped) {
      var objUnwrapped = objIsWrapped ? object.value() : object,
          othUnwrapped = othIsWrapped ? other.value() : other;

      stack || (stack = new Stack);
      return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
    }
  }
  if (!isSameTag) {
    return false;
  }
  stack || (stack = new Stack);
  return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
}

module.exports = baseIsEqualDeep;


/***/ }),

/***/ "./node_modules/lodash/_baseIsMap.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseIsMap.js ***!
  \*******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** `Object#toString` result references. */
var mapTag = '[object Map]';

/**
 * The base implementation of `_.isMap` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a map, else `false`.
 */
function baseIsMap(value) {
  return isObjectLike(value) && getTag(value) == mapTag;
}

module.exports = baseIsMap;


/***/ }),

/***/ "./node_modules/lodash/_baseIsMatch.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_baseIsMatch.js ***!
  \*********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
    baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js");

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
    COMPARE_UNORDERED_FLAG = 2;

/**
 * The base implementation of `_.isMatch` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The object to inspect.
 * @param {Object} source The object of property values to match.
 * @param {Array} matchData The property names, values, and compare flags to match.
 * @param {Function} [customizer] The function to customize comparisons.
 * @returns {boolean} Returns `true` if `object` is a match, else `false`.
 */
function baseIsMatch(object, source, matchData, customizer) {
  var index = matchData.length,
      length = index,
      noCustomizer = !customizer;

  if (object == null) {
    return !length;
  }
  object = Object(object);
  while (index--) {
    var data = matchData[index];
    if ((noCustomizer && data[2])
          ? data[1] !== object[data[0]]
          : !(data[0] in object)
        ) {
      return false;
    }
  }
  while (++index < length) {
    data = matchData[index];
    var key = data[0],
        objValue = object[key],
        srcValue = data[1];

    if (noCustomizer && data[2]) {
      if (objValue === undefined && !(key in object)) {
        return false;
      }
    } else {
      var stack = new Stack;
      if (customizer) {
        var result = customizer(objValue, srcValue, key, object, source, stack);
      }
      if (!(result === undefined
            ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
            : result
          )) {
        return false;
      }
    }
  }
  return true;
}

module.exports = baseIsMatch;


/***/ }),

/***/ "./node_modules/lodash/_baseIsNaN.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseIsNaN.js ***!
  \*******************************************/
/***/ ((module) => {

/**
 * The base implementation of `_.isNaN` without support for number objects.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
 */
function baseIsNaN(value) {
  return value !== value;
}

module.exports = baseIsNaN;


/***/ }),

/***/ "./node_modules/lodash/_baseIsNative.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_baseIsNative.js ***!
  \**********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
    isMasked = __webpack_require__(/*! ./_isMasked */ "./node_modules/lodash/_isMasked.js"),
    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
    toSource = __webpack_require__(/*! ./_toSource */ "./node_modules/lodash/_toSource.js");

/**
 * Used to match `RegExp`
 * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
 */
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;

/** Used to detect host constructors (Safari). */
var reIsHostCtor = /^\[object .+?Constructor\]$/;

/** Used for built-in method references. */
var funcProto = Function.prototype,
    objectProto = Object.prototype;

/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/** Used to detect if a method is native. */
var reIsNative = RegExp('^' +
  funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
);

/**
 * The base implementation of `_.isNative` without bad shim checks.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a native function,
 *  else `false`.
 */
function baseIsNative(value) {
  if (!isObject(value) || isMasked(value)) {
    return false;
  }
  var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  return pattern.test(toSource(value));
}

module.exports = baseIsNative;


/***/ }),

/***/ "./node_modules/lodash/_baseIsRegExp.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_baseIsRegExp.js ***!
  \**********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** `Object#toString` result references. */
var regexpTag = '[object RegExp]';

/**
 * The base implementation of `_.isRegExp` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
 */
function baseIsRegExp(value) {
  return isObjectLike(value) && baseGetTag(value) == regexpTag;
}

module.exports = baseIsRegExp;


/***/ }),

/***/ "./node_modules/lodash/_baseIsSet.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseIsSet.js ***!
  \*******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** `Object#toString` result references. */
var setTag = '[object Set]';

/**
 * The base implementation of `_.isSet` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a set, else `false`.
 */
function baseIsSet(value) {
  return isObjectLike(value) && getTag(value) == setTag;
}

module.exports = baseIsSet;


/***/ }),

/***/ "./node_modules/lodash/_baseIsTypedArray.js":
/*!**************************************************!*\
  !*** ./node_modules/lodash/_baseIsTypedArray.js ***!
  \**************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
    isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
    arrayTag = '[object Array]',
    boolTag = '[object Boolean]',
    dateTag = '[object Date]',
    errorTag = '[object Error]',
    funcTag = '[object Function]',
    mapTag = '[object Map]',
    numberTag = '[object Number]',
    objectTag = '[object Object]',
    regexpTag = '[object RegExp]',
    setTag = '[object Set]',
    stringTag = '[object String]',
    weakMapTag = '[object WeakMap]';

var arrayBufferTag = '[object ArrayBuffer]',
    dataViewTag = '[object DataView]',
    float32Tag = '[object Float32Array]',
    float64Tag = '[object Float64Array]',
    int8Tag = '[object Int8Array]',
    int16Tag = '[object Int16Array]',
    int32Tag = '[object Int32Array]',
    uint8Tag = '[object Uint8Array]',
    uint8ClampedTag = '[object Uint8ClampedArray]',
    uint16Tag = '[object Uint16Array]',
    uint32Tag = '[object Uint32Array]';

/** Used to identify `toStringTag` values of typed arrays. */
var typedArrayTags = {};
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
typedArrayTags[uint32Tag] = true;
typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
typedArrayTags[errorTag] = typedArrayTags[funcTag] =
typedArrayTags[mapTag] = typedArrayTags[numberTag] =
typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
typedArrayTags[setTag] = typedArrayTags[stringTag] =
typedArrayTags[weakMapTag] = false;

/**
 * The base implementation of `_.isTypedArray` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
 */
function baseIsTypedArray(value) {
  return isObjectLike(value) &&
    isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
}

module.exports = baseIsTypedArray;


/***/ }),

/***/ "./node_modules/lodash/_baseIteratee.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_baseIteratee.js ***!
  \**********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseMatches = __webpack_require__(/*! ./_baseMatches */ "./node_modules/lodash/_baseMatches.js"),
    baseMatchesProperty = __webpack_require__(/*! ./_baseMatchesProperty */ "./node_modules/lodash/_baseMatchesProperty.js"),
    identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    property = __webpack_require__(/*! ./property */ "./node_modules/lodash/property.js");

/**
 * The base implementation of `_.iteratee`.
 *
 * @private
 * @param {*} [value=_.identity] The value to convert to an iteratee.
 * @returns {Function} Returns the iteratee.
 */
function baseIteratee(value) {
  // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  if (typeof value == 'function') {
    return value;
  }
  if (value == null) {
    return identity;
  }
  if (typeof value == 'object') {
    return isArray(value)
      ? baseMatchesProperty(value[0], value[1])
      : baseMatches(value);
  }
  return property(value);
}

module.exports = baseIteratee;


/***/ }),

/***/ "./node_modules/lodash/_baseKeys.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_baseKeys.js ***!
  \******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js"),
    nativeKeys = __webpack_require__(/*! ./_nativeKeys */ "./node_modules/lodash/_nativeKeys.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function baseKeys(object) {
  if (!isPrototype(object)) {
    return nativeKeys(object);
  }
  var result = [];
  for (var key in Object(object)) {
    if (hasOwnProperty.call(object, key) && key != 'constructor') {
      result.push(key);
    }
  }
  return result;
}

module.exports = baseKeys;


/***/ }),

/***/ "./node_modules/lodash/_baseKeysIn.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_baseKeysIn.js ***!
  \********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
    isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js"),
    nativeKeysIn = __webpack_require__(/*! ./_nativeKeysIn */ "./node_modules/lodash/_nativeKeysIn.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function baseKeysIn(object) {
  if (!isObject(object)) {
    return nativeKeysIn(object);
  }
  var isProto = isPrototype(object),
      result = [];

  for (var key in object) {
    if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
      result.push(key);
    }
  }
  return result;
}

module.exports = baseKeysIn;


/***/ }),

/***/ "./node_modules/lodash/_baseMap.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_baseMap.js ***!
  \*****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseEach = __webpack_require__(/*! ./_baseEach */ "./node_modules/lodash/_baseEach.js"),
    isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");

/**
 * The base implementation of `_.map` without support for iteratee shorthands.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the new mapped array.
 */
function baseMap(collection, iteratee) {
  var index = -1,
      result = isArrayLike(collection) ? Array(collection.length) : [];

  baseEach(collection, function(value, key, collection) {
    result[++index] = iteratee(value, key, collection);
  });
  return result;
}

module.exports = baseMap;


/***/ }),

/***/ "./node_modules/lodash/_baseMatches.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_baseMatches.js ***!
  \*********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseIsMatch = __webpack_require__(/*! ./_baseIsMatch */ "./node_modules/lodash/_baseIsMatch.js"),
    getMatchData = __webpack_require__(/*! ./_getMatchData */ "./node_modules/lodash/_getMatchData.js"),
    matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "./node_modules/lodash/_matchesStrictComparable.js");

/**
 * The base implementation of `_.matches` which doesn't clone `source`.
 *
 * @private
 * @param {Object} source The object of property values to match.
 * @returns {Function} Returns the new spec function.
 */
function baseMatches(source) {
  var matchData = getMatchData(source);
  if (matchData.length == 1 && matchData[0][2]) {
    return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  }
  return function(object) {
    return object === source || baseIsMatch(object, source, matchData);
  };
}

module.exports = baseMatches;


/***/ }),

/***/ "./node_modules/lodash/_baseMatchesProperty.js":
/*!*****************************************************!*\
  !*** ./node_modules/lodash/_baseMatchesProperty.js ***!
  \*****************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js"),
    get = __webpack_require__(/*! ./get */ "./node_modules/lodash/get.js"),
    hasIn = __webpack_require__(/*! ./hasIn */ "./node_modules/lodash/hasIn.js"),
    isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
    isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "./node_modules/lodash/_isStrictComparable.js"),
    matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "./node_modules/lodash/_matchesStrictComparable.js"),
    toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
    COMPARE_UNORDERED_FLAG = 2;

/**
 * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
 *
 * @private
 * @param {string} path The path of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new spec function.
 */
function baseMatchesProperty(path, srcValue) {
  if (isKey(path) && isStrictComparable(srcValue)) {
    return matchesStrictComparable(toKey(path), srcValue);
  }
  return function(object) {
    var objValue = get(object, path);
    return (objValue === undefined && objValue === srcValue)
      ? hasIn(object, path)
      : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  };
}

module.exports = baseMatchesProperty;


/***/ }),

/***/ "./node_modules/lodash/_baseMerge.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseMerge.js ***!
  \*******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
    assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "./node_modules/lodash/_assignMergeValue.js"),
    baseFor = __webpack_require__(/*! ./_baseFor */ "./node_modules/lodash/_baseFor.js"),
    baseMergeDeep = __webpack_require__(/*! ./_baseMergeDeep */ "./node_modules/lodash/_baseMergeDeep.js"),
    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
    keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js"),
    safeGet = __webpack_require__(/*! ./_safeGet */ "./node_modules/lodash/_safeGet.js");

/**
 * The base implementation of `_.merge` without support for multiple sources.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @param {number} srcIndex The index of `source`.
 * @param {Function} [customizer] The function to customize merged values.
 * @param {Object} [stack] Tracks traversed source values and their merged
 *  counterparts.
 */
function baseMerge(object, source, srcIndex, customizer, stack) {
  if (object === source) {
    return;
  }
  baseFor(source, function(srcValue, key) {
    stack || (stack = new Stack);
    if (isObject(srcValue)) {
      baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
    }
    else {
      var newValue = customizer
        ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
        : undefined;

      if (newValue === undefined) {
        newValue = srcValue;
      }
      assignMergeValue(object, key, newValue);
    }
  }, keysIn);
}

module.exports = baseMerge;


/***/ }),

/***/ "./node_modules/lodash/_baseMergeDeep.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_baseMergeDeep.js ***!
  \***********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "./node_modules/lodash/_assignMergeValue.js"),
    cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "./node_modules/lodash/_cloneBuffer.js"),
    cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "./node_modules/lodash/_cloneTypedArray.js"),
    copyArray = __webpack_require__(/*! ./_copyArray */ "./node_modules/lodash/_copyArray.js"),
    initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "./node_modules/lodash/_initCloneObject.js"),
    isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "./node_modules/lodash/isArrayLikeObject.js"),
    isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
    isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
    isPlainObject = __webpack_require__(/*! ./isPlainObject */ "./node_modules/lodash/isPlainObject.js"),
    isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js"),
    safeGet = __webpack_require__(/*! ./_safeGet */ "./node_modules/lodash/_safeGet.js"),
    toPlainObject = __webpack_require__(/*! ./toPlainObject */ "./node_modules/lodash/toPlainObject.js");

/**
 * A specialized version of `baseMerge` for arrays and objects which performs
 * deep merges and tracks traversed objects enabling objects with circular
 * references to be merged.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @param {string} key The key of the value to merge.
 * @param {number} srcIndex The index of `source`.
 * @param {Function} mergeFunc The function to merge values.
 * @param {Function} [customizer] The function to customize assigned values.
 * @param {Object} [stack] Tracks traversed source values and their merged
 *  counterparts.
 */
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
  var objValue = safeGet(object, key),
      srcValue = safeGet(source, key),
      stacked = stack.get(srcValue);

  if (stacked) {
    assignMergeValue(object, key, stacked);
    return;
  }
  var newValue = customizer
    ? customizer(objValue, srcValue, (key + ''), object, source, stack)
    : undefined;

  var isCommon = newValue === undefined;

  if (isCommon) {
    var isArr = isArray(srcValue),
        isBuff = !isArr && isBuffer(srcValue),
        isTyped = !isArr && !isBuff && isTypedArray(srcValue);

    newValue = srcValue;
    if (isArr || isBuff || isTyped) {
      if (isArray(objValue)) {
        newValue = objValue;
      }
      else if (isArrayLikeObject(objValue)) {
        newValue = copyArray(objValue);
      }
      else if (isBuff) {
        isCommon = false;
        newValue = cloneBuffer(srcValue, true);
      }
      else if (isTyped) {
        isCommon = false;
        newValue = cloneTypedArray(srcValue, true);
      }
      else {
        newValue = [];
      }
    }
    else if (isPlainObject(srcValue) || isArguments(srcValue)) {
      newValue = objValue;
      if (isArguments(objValue)) {
        newValue = toPlainObject(objValue);
      }
      else if (!isObject(objValue) || isFunction(objValue)) {
        newValue = initCloneObject(srcValue);
      }
    }
    else {
      isCommon = false;
    }
  }
  if (isCommon) {
    // Recursively merge objects and arrays (susceptible to call stack limits).
    stack.set(srcValue, newValue);
    mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
    stack['delete'](srcValue);
  }
  assignMergeValue(object, key, newValue);
}

module.exports = baseMergeDeep;


/***/ }),

/***/ "./node_modules/lodash/_baseOrderBy.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_baseOrderBy.js ***!
  \*********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
    baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js"),
    baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
    baseMap = __webpack_require__(/*! ./_baseMap */ "./node_modules/lodash/_baseMap.js"),
    baseSortBy = __webpack_require__(/*! ./_baseSortBy */ "./node_modules/lodash/_baseSortBy.js"),
    baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
    compareMultiple = __webpack_require__(/*! ./_compareMultiple */ "./node_modules/lodash/_compareMultiple.js"),
    identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");

/**
 * The base implementation of `_.orderBy` without param guards.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
 * @param {string[]} orders The sort orders of `iteratees`.
 * @returns {Array} Returns the new sorted array.
 */
function baseOrderBy(collection, iteratees, orders) {
  if (iteratees.length) {
    iteratees = arrayMap(iteratees, function(iteratee) {
      if (isArray(iteratee)) {
        return function(value) {
          return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
        }
      }
      return iteratee;
    });
  } else {
    iteratees = [identity];
  }

  var index = -1;
  iteratees = arrayMap(iteratees, baseUnary(baseIteratee));

  var result = baseMap(collection, function(value, key, collection) {
    var criteria = arrayMap(iteratees, function(iteratee) {
      return iteratee(value);
    });
    return { 'criteria': criteria, 'index': ++index, 'value': value };
  });

  return baseSortBy(result, function(object, other) {
    return compareMultiple(object, other, orders);
  });
}

module.exports = baseOrderBy;


/***/ }),

/***/ "./node_modules/lodash/_basePick.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_basePick.js ***!
  \******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var basePickBy = __webpack_require__(/*! ./_basePickBy */ "./node_modules/lodash/_basePickBy.js"),
    hasIn = __webpack_require__(/*! ./hasIn */ "./node_modules/lodash/hasIn.js");

/**
 * The base implementation of `_.pick` without support for individual
 * property identifiers.
 *
 * @private
 * @param {Object} object The source object.
 * @param {string[]} paths The property paths to pick.
 * @returns {Object} Returns the new object.
 */
function basePick(object, paths) {
  return basePickBy(object, paths, function(value, path) {
    return hasIn(object, path);
  });
}

module.exports = basePick;


/***/ }),

/***/ "./node_modules/lodash/_basePickBy.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_basePickBy.js ***!
  \********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js"),
    baseSet = __webpack_require__(/*! ./_baseSet */ "./node_modules/lodash/_baseSet.js"),
    castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js");

/**
 * The base implementation of  `_.pickBy` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The source object.
 * @param {string[]} paths The property paths to pick.
 * @param {Function} predicate The function invoked per property.
 * @returns {Object} Returns the new object.
 */
function basePickBy(object, paths, predicate) {
  var index = -1,
      length = paths.length,
      result = {};

  while (++index < length) {
    var path = paths[index],
        value = baseGet(object, path);

    if (predicate(value, path)) {
      baseSet(result, castPath(path, object), value);
    }
  }
  return result;
}

module.exports = basePickBy;


/***/ }),

/***/ "./node_modules/lodash/_baseProperty.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_baseProperty.js ***!
  \**********************************************/
/***/ ((module) => {

/**
 * The base implementation of `_.property` without support for deep paths.
 *
 * @private
 * @param {string} key The key of the property to get.
 * @returns {Function} Returns the new accessor function.
 */
function baseProperty(key) {
  return function(object) {
    return object == null ? undefined : object[key];
  };
}

module.exports = baseProperty;


/***/ }),

/***/ "./node_modules/lodash/_basePropertyDeep.js":
/*!**************************************************!*\
  !*** ./node_modules/lodash/_basePropertyDeep.js ***!
  \**************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js");

/**
 * A specialized version of `baseProperty` which supports deep paths.
 *
 * @private
 * @param {Array|string} path The path of the property to get.
 * @returns {Function} Returns the new accessor function.
 */
function basePropertyDeep(path) {
  return function(object) {
    return baseGet(object, path);
  };
}

module.exports = basePropertyDeep;


/***/ }),

/***/ "./node_modules/lodash/_baseRange.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseRange.js ***!
  \*******************************************/
/***/ ((module) => {

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeCeil = Math.ceil,
    nativeMax = Math.max;

/**
 * The base implementation of `_.range` and `_.rangeRight` which doesn't
 * coerce arguments.
 *
 * @private
 * @param {number} start The start of the range.
 * @param {number} end The end of the range.
 * @param {number} step The value to increment or decrement by.
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Array} Returns the range of numbers.
 */
function baseRange(start, end, step, fromRight) {
  var index = -1,
      length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
      result = Array(length);

  while (length--) {
    result[fromRight ? length : ++index] = start;
    start += step;
  }
  return result;
}

module.exports = baseRange;


/***/ }),

/***/ "./node_modules/lodash/_baseRest.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_baseRest.js ***!
  \******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"),
    overRest = __webpack_require__(/*! ./_overRest */ "./node_modules/lodash/_overRest.js"),
    setToString = __webpack_require__(/*! ./_setToString */ "./node_modules/lodash/_setToString.js");

/**
 * The base implementation of `_.rest` which doesn't validate or coerce arguments.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @param {number} [start=func.length-1] The start position of the rest parameter.
 * @returns {Function} Returns the new function.
 */
function baseRest(func, start) {
  return setToString(overRest(func, start, identity), func + '');
}

module.exports = baseRest;


/***/ }),

/***/ "./node_modules/lodash/_baseSet.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_baseSet.js ***!
  \*****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
    castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
    isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
    toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");

/**
 * The base implementation of `_.set`.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {Array|string} path The path of the property to set.
 * @param {*} value The value to set.
 * @param {Function} [customizer] The function to customize path creation.
 * @returns {Object} Returns `object`.
 */
function baseSet(object, path, value, customizer) {
  if (!isObject(object)) {
    return object;
  }
  path = castPath(path, object);

  var index = -1,
      length = path.length,
      lastIndex = length - 1,
      nested = object;

  while (nested != null && ++index < length) {
    var key = toKey(path[index]),
        newValue = value;

    if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
      return object;
    }

    if (index != lastIndex) {
      var objValue = nested[key];
      newValue = customizer ? customizer(objValue, key, nested) : undefined;
      if (newValue === undefined) {
        newValue = isObject(objValue)
          ? objValue
          : (isIndex(path[index + 1]) ? [] : {});
      }
    }
    assignValue(nested, key, newValue);
    nested = nested[key];
  }
  return object;
}

module.exports = baseSet;


/***/ }),

/***/ "./node_modules/lodash/_baseSetToString.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_baseSetToString.js ***!
  \*************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var constant = __webpack_require__(/*! ./constant */ "./node_modules/lodash/constant.js"),
    defineProperty = __webpack_require__(/*! ./_defineProperty */ "./node_modules/lodash/_defineProperty.js"),
    identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js");

/**
 * The base implementation of `setToString` without support for hot loop shorting.
 *
 * @private
 * @param {Function} func The function to modify.
 * @param {Function} string The `toString` result.
 * @returns {Function} Returns `func`.
 */
var baseSetToString = !defineProperty ? identity : function(func, string) {
  return defineProperty(func, 'toString', {
    'configurable': true,
    'enumerable': false,
    'value': constant(string),
    'writable': true
  });
};

module.exports = baseSetToString;


/***/ }),

/***/ "./node_modules/lodash/_baseSome.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_baseSome.js ***!
  \******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseEach = __webpack_require__(/*! ./_baseEach */ "./node_modules/lodash/_baseEach.js");

/**
 * The base implementation of `_.some` without support for iteratee shorthands.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {boolean} Returns `true` if any element passes the predicate check,
 *  else `false`.
 */
function baseSome(collection, predicate) {
  var result;

  baseEach(collection, function(value, index, collection) {
    result = predicate(value, index, collection);
    return !result;
  });
  return !!result;
}

module.exports = baseSome;


/***/ }),

/***/ "./node_modules/lodash/_baseSortBy.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_baseSortBy.js ***!
  \********************************************/
/***/ ((module) => {

/**
 * The base implementation of `_.sortBy` which uses `comparer` to define the
 * sort order of `array` and replaces criteria objects with their corresponding
 * values.
 *
 * @private
 * @param {Array} array The array to sort.
 * @param {Function} comparer The function to define sort order.
 * @returns {Array} Returns `array`.
 */
function baseSortBy(array, comparer) {
  var length = array.length;

  array.sort(comparer);
  while (length--) {
    array[length] = array[length].value;
  }
  return array;
}

module.exports = baseSortBy;


/***/ }),

/***/ "./node_modules/lodash/_baseSortedUniq.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_baseSortedUniq.js ***!
  \************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");

/**
 * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without
 * support for iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {Function} [iteratee] The iteratee invoked per element.
 * @returns {Array} Returns the new duplicate free array.
 */
function baseSortedUniq(array, iteratee) {
  var index = -1,
      length = array.length,
      resIndex = 0,
      result = [];

  while (++index < length) {
    var value = array[index],
        computed = iteratee ? iteratee(value) : value;

    if (!index || !eq(computed, seen)) {
      var seen = computed;
      result[resIndex++] = value === 0 ? 0 : value;
    }
  }
  return result;
}

module.exports = baseSortedUniq;


/***/ }),

/***/ "./node_modules/lodash/_baseSum.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_baseSum.js ***!
  \*****************************************/
/***/ ((module) => {

/**
 * The base implementation of `_.sum` and `_.sumBy` without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {number} Returns the sum.
 */
function baseSum(array, iteratee) {
  var result,
      index = -1,
      length = array.length;

  while (++index < length) {
    var current = iteratee(array[index]);
    if (current !== undefined) {
      result = result === undefined ? current : (result + current);
    }
  }
  return result;
}

module.exports = baseSum;


/***/ }),

/***/ "./node_modules/lodash/_baseTimes.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseTimes.js ***!
  \*******************************************/
/***/ ((module) => {

/**
 * The base implementation of `_.times` without support for iteratee shorthands
 * or max array length checks.
 *
 * @private
 * @param {number} n The number of times to invoke `iteratee`.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the array of results.
 */
function baseTimes(n, iteratee) {
  var index = -1,
      result = Array(n);

  while (++index < n) {
    result[index] = iteratee(index);
  }
  return result;
}

module.exports = baseTimes;


/***/ }),

/***/ "./node_modules/lodash/_baseToString.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_baseToString.js ***!
  \**********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
    arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");

/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;

/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
    symbolToString = symbolProto ? symbolProto.toString : undefined;

/**
 * The base implementation of `_.toString` which doesn't convert nullish
 * values to empty strings.
 *
 * @private
 * @param {*} value The value to process.
 * @returns {string} Returns the string.
 */
function baseToString(value) {
  // Exit early for strings to avoid a performance hit in some environments.
  if (typeof value == 'string') {
    return value;
  }
  if (isArray(value)) {
    // Recursively convert values (susceptible to call stack limits).
    return arrayMap(value, baseToString) + '';
  }
  if (isSymbol(value)) {
    return symbolToString ? symbolToString.call(value) : '';
  }
  var result = (value + '');
  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
}

module.exports = baseToString;


/***/ }),

/***/ "./node_modules/lodash/_baseTrim.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_baseTrim.js ***!
  \******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var trimmedEndIndex = __webpack_require__(/*! ./_trimmedEndIndex */ "./node_modules/lodash/_trimmedEndIndex.js");

/** Used to match leading whitespace. */
var reTrimStart = /^\s+/;

/**
 * The base implementation of `_.trim`.
 *
 * @private
 * @param {string} string The string to trim.
 * @returns {string} Returns the trimmed string.
 */
function baseTrim(string) {
  return string
    ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
    : string;
}

module.exports = baseTrim;


/***/ }),

/***/ "./node_modules/lodash/_baseUnary.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_baseUnary.js ***!
  \*******************************************/
/***/ ((module) => {

/**
 * The base implementation of `_.unary` without support for storing metadata.
 *
 * @private
 * @param {Function} func The function to cap arguments for.
 * @returns {Function} Returns the new capped function.
 */
function baseUnary(func) {
  return function(value) {
    return func(value);
  };
}

module.exports = baseUnary;


/***/ }),

/***/ "./node_modules/lodash/_baseUniq.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_baseUniq.js ***!
  \******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var SetCache = __webpack_require__(/*! ./_SetCache */ "./node_modules/lodash/_SetCache.js"),
    arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "./node_modules/lodash/_arrayIncludes.js"),
    arrayIncludesWith = __webpack_require__(/*! ./_arrayIncludesWith */ "./node_modules/lodash/_arrayIncludesWith.js"),
    cacheHas = __webpack_require__(/*! ./_cacheHas */ "./node_modules/lodash/_cacheHas.js"),
    createSet = __webpack_require__(/*! ./_createSet */ "./node_modules/lodash/_createSet.js"),
    setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js");

/** Used as the size to enable large array optimizations. */
var LARGE_ARRAY_SIZE = 200;

/**
 * The base implementation of `_.uniqBy` without support for iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {Function} [iteratee] The iteratee invoked per element.
 * @param {Function} [comparator] The comparator invoked per element.
 * @returns {Array} Returns the new duplicate free array.
 */
function baseUniq(array, iteratee, comparator) {
  var index = -1,
      includes = arrayIncludes,
      length = array.length,
      isCommon = true,
      result = [],
      seen = result;

  if (comparator) {
    isCommon = false;
    includes = arrayIncludesWith;
  }
  else if (length >= LARGE_ARRAY_SIZE) {
    var set = iteratee ? null : createSet(array);
    if (set) {
      return setToArray(set);
    }
    isCommon = false;
    includes = cacheHas;
    seen = new SetCache;
  }
  else {
    seen = iteratee ? [] : result;
  }
  outer:
  while (++index < length) {
    var value = array[index],
        computed = iteratee ? iteratee(value) : value;

    value = (comparator || value !== 0) ? value : 0;
    if (isCommon && computed === computed) {
      var seenIndex = seen.length;
      while (seenIndex--) {
        if (seen[seenIndex] === computed) {
          continue outer;
        }
      }
      if (iteratee) {
        seen.push(computed);
      }
      result.push(value);
    }
    else if (!includes(seen, computed, comparator)) {
      if (seen !== result) {
        seen.push(computed);
      }
      result.push(value);
    }
  }
  return result;
}

module.exports = baseUniq;


/***/ }),

/***/ "./node_modules/lodash/_baseValues.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_baseValues.js ***!
  \********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js");

/**
 * The base implementation of `_.values` and `_.valuesIn` which creates an
 * array of `object` property values corresponding to the property names
 * of `props`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array} props The property names to get values for.
 * @returns {Object} Returns the array of property values.
 */
function baseValues(object, props) {
  return arrayMap(props, function(key) {
    return object[key];
  });
}

module.exports = baseValues;


/***/ }),

/***/ "./node_modules/lodash/_cacheHas.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_cacheHas.js ***!
  \******************************************/
/***/ ((module) => {

/**
 * Checks if a `cache` value for `key` exists.
 *
 * @private
 * @param {Object} cache The cache to query.
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function cacheHas(cache, key) {
  return cache.has(key);
}

module.exports = cacheHas;


/***/ }),

/***/ "./node_modules/lodash/_castPath.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_castPath.js ***!
  \******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
    stringToPath = __webpack_require__(/*! ./_stringToPath */ "./node_modules/lodash/_stringToPath.js"),
    toString = __webpack_require__(/*! ./toString */ "./node_modules/lodash/toString.js");

/**
 * Casts `value` to a path array if it's not one.
 *
 * @private
 * @param {*} value The value to inspect.
 * @param {Object} [object] The object to query keys on.
 * @returns {Array} Returns the cast property path array.
 */
function castPath(value, object) {
  if (isArray(value)) {
    return value;
  }
  return isKey(value, object) ? [value] : stringToPath(toString(value));
}

module.exports = castPath;


/***/ }),

/***/ "./node_modules/lodash/_cloneArrayBuffer.js":
/*!**************************************************!*\
  !*** ./node_modules/lodash/_cloneArrayBuffer.js ***!
  \**************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "./node_modules/lodash/_Uint8Array.js");

/**
 * Creates a clone of `arrayBuffer`.
 *
 * @private
 * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
 * @returns {ArrayBuffer} Returns the cloned array buffer.
 */
function cloneArrayBuffer(arrayBuffer) {
  var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  return result;
}

module.exports = cloneArrayBuffer;


/***/ }),

/***/ "./node_modules/lodash/_cloneBuffer.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_cloneBuffer.js ***!
  \*********************************************/
/***/ ((module, exports, __webpack_require__) => {

/* module decorator */ module = __webpack_require__.nmd(module);
var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/** Detect free variable `exports`. */
var freeExports =  true && exports && !exports.nodeType && exports;

/** Detect free variable `module`. */
var freeModule = freeExports && "object" == 'object' && module && !module.nodeType && module;

/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;

/** Built-in value references. */
var Buffer = moduleExports ? root.Buffer : undefined,
    allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;

/**
 * Creates a clone of  `buffer`.
 *
 * @private
 * @param {Buffer} buffer The buffer to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Buffer} Returns the cloned buffer.
 */
function cloneBuffer(buffer, isDeep) {
  if (isDeep) {
    return buffer.slice();
  }
  var length = buffer.length,
      result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);

  buffer.copy(result);
  return result;
}

module.exports = cloneBuffer;


/***/ }),

/***/ "./node_modules/lodash/_cloneDataView.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_cloneDataView.js ***!
  \***********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js");

/**
 * Creates a clone of `dataView`.
 *
 * @private
 * @param {Object} dataView The data view to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the cloned data view.
 */
function cloneDataView(dataView, isDeep) {
  var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
}

module.exports = cloneDataView;


/***/ }),

/***/ "./node_modules/lodash/_cloneRegExp.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_cloneRegExp.js ***!
  \*********************************************/
/***/ ((module) => {

/** Used to match `RegExp` flags from their coerced string values. */
var reFlags = /\w*$/;

/**
 * Creates a clone of `regexp`.
 *
 * @private
 * @param {Object} regexp The regexp to clone.
 * @returns {Object} Returns the cloned regexp.
 */
function cloneRegExp(regexp) {
  var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  result.lastIndex = regexp.lastIndex;
  return result;
}

module.exports = cloneRegExp;


/***/ }),

/***/ "./node_modules/lodash/_cloneSymbol.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_cloneSymbol.js ***!
  \*********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js");

/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
    symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;

/**
 * Creates a clone of the `symbol` object.
 *
 * @private
 * @param {Object} symbol The symbol object to clone.
 * @returns {Object} Returns the cloned symbol object.
 */
function cloneSymbol(symbol) {
  return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
}

module.exports = cloneSymbol;


/***/ }),

/***/ "./node_modules/lodash/_cloneTypedArray.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_cloneTypedArray.js ***!
  \*************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js");

/**
 * Creates a clone of `typedArray`.
 *
 * @private
 * @param {Object} typedArray The typed array to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the cloned typed array.
 */
function cloneTypedArray(typedArray, isDeep) {
  var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
}

module.exports = cloneTypedArray;


/***/ }),

/***/ "./node_modules/lodash/_compareAscending.js":
/*!**************************************************!*\
  !*** ./node_modules/lodash/_compareAscending.js ***!
  \**************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");

/**
 * Compares values to sort them in ascending order.
 *
 * @private
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {number} Returns the sort order indicator for `value`.
 */
function compareAscending(value, other) {
  if (value !== other) {
    var valIsDefined = value !== undefined,
        valIsNull = value === null,
        valIsReflexive = value === value,
        valIsSymbol = isSymbol(value);

    var othIsDefined = other !== undefined,
        othIsNull = other === null,
        othIsReflexive = other === other,
        othIsSymbol = isSymbol(other);

    if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
        (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
        (valIsNull && othIsDefined && othIsReflexive) ||
        (!valIsDefined && othIsReflexive) ||
        !valIsReflexive) {
      return 1;
    }
    if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
        (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
        (othIsNull && valIsDefined && valIsReflexive) ||
        (!othIsDefined && valIsReflexive) ||
        !othIsReflexive) {
      return -1;
    }
  }
  return 0;
}

module.exports = compareAscending;


/***/ }),

/***/ "./node_modules/lodash/_compareMultiple.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_compareMultiple.js ***!
  \*************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var compareAscending = __webpack_require__(/*! ./_compareAscending */ "./node_modules/lodash/_compareAscending.js");

/**
 * Used by `_.orderBy` to compare multiple properties of a value to another
 * and stable sort them.
 *
 * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
 * specify an order of "desc" for descending or "asc" for ascending sort order
 * of corresponding values.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {boolean[]|string[]} orders The order to sort by for each property.
 * @returns {number} Returns the sort order indicator for `object`.
 */
function compareMultiple(object, other, orders) {
  var index = -1,
      objCriteria = object.criteria,
      othCriteria = other.criteria,
      length = objCriteria.length,
      ordersLength = orders.length;

  while (++index < length) {
    var result = compareAscending(objCriteria[index], othCriteria[index]);
    if (result) {
      if (index >= ordersLength) {
        return result;
      }
      var order = orders[index];
      return result * (order == 'desc' ? -1 : 1);
    }
  }
  // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
  // that causes it, under certain circumstances, to provide the same value for
  // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
  // for more details.
  //
  // This also ensures a stable sort in V8 and other engines.
  // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
  return object.index - other.index;
}

module.exports = compareMultiple;


/***/ }),

/***/ "./node_modules/lodash/_copyArray.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_copyArray.js ***!
  \*******************************************/
/***/ ((module) => {

/**
 * Copies the values of `source` to `array`.
 *
 * @private
 * @param {Array} source The array to copy values from.
 * @param {Array} [array=[]] The array to copy values to.
 * @returns {Array} Returns `array`.
 */
function copyArray(source, array) {
  var index = -1,
      length = source.length;

  array || (array = Array(length));
  while (++index < length) {
    array[index] = source[index];
  }
  return array;
}

module.exports = copyArray;


/***/ }),

/***/ "./node_modules/lodash/_copyObject.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_copyObject.js ***!
  \********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
    baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js");

/**
 * Copies properties of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy properties from.
 * @param {Array} props The property identifiers to copy.
 * @param {Object} [object={}] The object to copy properties to.
 * @param {Function} [customizer] The function to customize copied values.
 * @returns {Object} Returns `object`.
 */
function copyObject(source, props, object, customizer) {
  var isNew = !object;
  object || (object = {});

  var index = -1,
      length = props.length;

  while (++index < length) {
    var key = props[index];

    var newValue = customizer
      ? customizer(object[key], source[key], key, object, source)
      : undefined;

    if (newValue === undefined) {
      newValue = source[key];
    }
    if (isNew) {
      baseAssignValue(object, key, newValue);
    } else {
      assignValue(object, key, newValue);
    }
  }
  return object;
}

module.exports = copyObject;


/***/ }),

/***/ "./node_modules/lodash/_copySymbols.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_copySymbols.js ***!
  \*********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
    getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js");

/**
 * Copies own symbols of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy symbols from.
 * @param {Object} [object={}] The object to copy symbols to.
 * @returns {Object} Returns `object`.
 */
function copySymbols(source, object) {
  return copyObject(source, getSymbols(source), object);
}

module.exports = copySymbols;


/***/ }),

/***/ "./node_modules/lodash/_copySymbolsIn.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_copySymbolsIn.js ***!
  \***********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
    getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "./node_modules/lodash/_getSymbolsIn.js");

/**
 * Copies own and inherited symbols of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy symbols from.
 * @param {Object} [object={}] The object to copy symbols to.
 * @returns {Object} Returns `object`.
 */
function copySymbolsIn(source, object) {
  return copyObject(source, getSymbolsIn(source), object);
}

module.exports = copySymbolsIn;


/***/ }),

/***/ "./node_modules/lodash/_coreJsData.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_coreJsData.js ***!
  \********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/** Used to detect overreaching core-js shims. */
var coreJsData = root['__core-js_shared__'];

module.exports = coreJsData;


/***/ }),

/***/ "./node_modules/lodash/_createAggregator.js":
/*!**************************************************!*\
  !*** ./node_modules/lodash/_createAggregator.js ***!
  \**************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var arrayAggregator = __webpack_require__(/*! ./_arrayAggregator */ "./node_modules/lodash/_arrayAggregator.js"),
    baseAggregator = __webpack_require__(/*! ./_baseAggregator */ "./node_modules/lodash/_baseAggregator.js"),
    baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");

/**
 * Creates a function like `_.groupBy`.
 *
 * @private
 * @param {Function} setter The function to set accumulator values.
 * @param {Function} [initializer] The accumulator object initializer.
 * @returns {Function} Returns the new aggregator function.
 */
function createAggregator(setter, initializer) {
  return function(collection, iteratee) {
    var func = isArray(collection) ? arrayAggregator : baseAggregator,
        accumulator = initializer ? initializer() : {};

    return func(collection, setter, baseIteratee(iteratee, 2), accumulator);
  };
}

module.exports = createAggregator;


/***/ }),

/***/ "./node_modules/lodash/_createAssigner.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_createAssigner.js ***!
  \************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseRest = __webpack_require__(/*! ./_baseRest */ "./node_modules/lodash/_baseRest.js"),
    isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js");

/**
 * Creates a function like `_.assign`.
 *
 * @private
 * @param {Function} assigner The function to assign values.
 * @returns {Function} Returns the new assigner function.
 */
function createAssigner(assigner) {
  return baseRest(function(object, sources) {
    var index = -1,
        length = sources.length,
        customizer = length > 1 ? sources[length - 1] : undefined,
        guard = length > 2 ? sources[2] : undefined;

    customizer = (assigner.length > 3 && typeof customizer == 'function')
      ? (length--, customizer)
      : undefined;

    if (guard && isIterateeCall(sources[0], sources[1], guard)) {
      customizer = length < 3 ? undefined : customizer;
      length = 1;
    }
    object = Object(object);
    while (++index < length) {
      var source = sources[index];
      if (source) {
        assigner(object, source, index, customizer);
      }
    }
    return object;
  });
}

module.exports = createAssigner;


/***/ }),

/***/ "./node_modules/lodash/_createBaseEach.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_createBaseEach.js ***!
  \************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");

/**
 * Creates a `baseEach` or `baseEachRight` function.
 *
 * @private
 * @param {Function} eachFunc The function to iterate over a collection.
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Function} Returns the new base function.
 */
function createBaseEach(eachFunc, fromRight) {
  return function(collection, iteratee) {
    if (collection == null) {
      return collection;
    }
    if (!isArrayLike(collection)) {
      return eachFunc(collection, iteratee);
    }
    var length = collection.length,
        index = fromRight ? length : -1,
        iterable = Object(collection);

    while ((fromRight ? index-- : ++index < length)) {
      if (iteratee(iterable[index], index, iterable) === false) {
        break;
      }
    }
    return collection;
  };
}

module.exports = createBaseEach;


/***/ }),

/***/ "./node_modules/lodash/_createBaseFor.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_createBaseFor.js ***!
  \***********************************************/
/***/ ((module) => {

/**
 * Creates a base function for methods like `_.forIn` and `_.forOwn`.
 *
 * @private
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Function} Returns the new base function.
 */
function createBaseFor(fromRight) {
  return function(object, iteratee, keysFunc) {
    var index = -1,
        iterable = Object(object),
        props = keysFunc(object),
        length = props.length;

    while (length--) {
      var key = props[fromRight ? length : ++index];
      if (iteratee(iterable[key], key, iterable) === false) {
        break;
      }
    }
    return object;
  };
}

module.exports = createBaseFor;


/***/ }),

/***/ "./node_modules/lodash/_createFind.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_createFind.js ***!
  \********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
    isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");

/**
 * Creates a `_.find` or `_.findLast` function.
 *
 * @private
 * @param {Function} findIndexFunc The function to find the collection index.
 * @returns {Function} Returns the new find function.
 */
function createFind(findIndexFunc) {
  return function(collection, predicate, fromIndex) {
    var iterable = Object(collection);
    if (!isArrayLike(collection)) {
      var iteratee = baseIteratee(predicate, 3);
      collection = keys(collection);
      predicate = function(key) { return iteratee(iterable[key], key, iterable); };
    }
    var index = findIndexFunc(collection, predicate, fromIndex);
    return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
  };
}

module.exports = createFind;


/***/ }),

/***/ "./node_modules/lodash/_createInverter.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_createInverter.js ***!
  \************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseInverter = __webpack_require__(/*! ./_baseInverter */ "./node_modules/lodash/_baseInverter.js");

/**
 * Creates a function like `_.invertBy`.
 *
 * @private
 * @param {Function} setter The function to set accumulator values.
 * @param {Function} toIteratee The function to resolve iteratees.
 * @returns {Function} Returns the new inverter function.
 */
function createInverter(setter, toIteratee) {
  return function(object, iteratee) {
    return baseInverter(object, setter, toIteratee(iteratee), {});
  };
}

module.exports = createInverter;


/***/ }),

/***/ "./node_modules/lodash/_createRange.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_createRange.js ***!
  \*********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseRange = __webpack_require__(/*! ./_baseRange */ "./node_modules/lodash/_baseRange.js"),
    isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js"),
    toFinite = __webpack_require__(/*! ./toFinite */ "./node_modules/lodash/toFinite.js");

/**
 * Creates a `_.range` or `_.rangeRight` function.
 *
 * @private
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Function} Returns the new range function.
 */
function createRange(fromRight) {
  return function(start, end, step) {
    if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
      end = step = undefined;
    }
    // Ensure the sign of `-0` is preserved.
    start = toFinite(start);
    if (end === undefined) {
      end = start;
      start = 0;
    } else {
      end = toFinite(end);
    }
    step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
    return baseRange(start, end, step, fromRight);
  };
}

module.exports = createRange;


/***/ }),

/***/ "./node_modules/lodash/_createSet.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_createSet.js ***!
  \*******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var Set = __webpack_require__(/*! ./_Set */ "./node_modules/lodash/_Set.js"),
    noop = __webpack_require__(/*! ./noop */ "./node_modules/lodash/noop.js"),
    setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js");

/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;

/**
 * Creates a set object of `values`.
 *
 * @private
 * @param {Array} values The values to add to the set.
 * @returns {Object} Returns the new set.
 */
var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
  return new Set(values);
};

module.exports = createSet;


/***/ }),

/***/ "./node_modules/lodash/_defineProperty.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_defineProperty.js ***!
  \************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js");

var defineProperty = (function() {
  try {
    var func = getNative(Object, 'defineProperty');
    func({}, '', {});
    return func;
  } catch (e) {}
}());

module.exports = defineProperty;


/***/ }),

/***/ "./node_modules/lodash/_equalArrays.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_equalArrays.js ***!
  \*********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var SetCache = __webpack_require__(/*! ./_SetCache */ "./node_modules/lodash/_SetCache.js"),
    arraySome = __webpack_require__(/*! ./_arraySome */ "./node_modules/lodash/_arraySome.js"),
    cacheHas = __webpack_require__(/*! ./_cacheHas */ "./node_modules/lodash/_cacheHas.js");

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
    COMPARE_UNORDERED_FLAG = 2;

/**
 * A specialized version of `baseIsEqualDeep` for arrays with support for
 * partial deep comparisons.
 *
 * @private
 * @param {Array} array The array to compare.
 * @param {Array} other The other array to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `array` and `other` objects.
 * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
 */
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
      arrLength = array.length,
      othLength = other.length;

  if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
    return false;
  }
  // Check that cyclic values are equal.
  var arrStacked = stack.get(array);
  var othStacked = stack.get(other);
  if (arrStacked && othStacked) {
    return arrStacked == other && othStacked == array;
  }
  var index = -1,
      result = true,
      seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;

  stack.set(array, other);
  stack.set(other, array);

  // Ignore non-index properties.
  while (++index < arrLength) {
    var arrValue = array[index],
        othValue = other[index];

    if (customizer) {
      var compared = isPartial
        ? customizer(othValue, arrValue, index, other, array, stack)
        : customizer(arrValue, othValue, index, array, other, stack);
    }
    if (compared !== undefined) {
      if (compared) {
        continue;
      }
      result = false;
      break;
    }
    // Recursively compare arrays (susceptible to call stack limits).
    if (seen) {
      if (!arraySome(other, function(othValue, othIndex) {
            if (!cacheHas(seen, othIndex) &&
                (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
              return seen.push(othIndex);
            }
          })) {
        result = false;
        break;
      }
    } else if (!(
          arrValue === othValue ||
            equalFunc(arrValue, othValue, bitmask, customizer, stack)
        )) {
      result = false;
      break;
    }
  }
  stack['delete'](array);
  stack['delete'](other);
  return result;
}

module.exports = equalArrays;


/***/ }),

/***/ "./node_modules/lodash/_equalByTag.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_equalByTag.js ***!
  \********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
    Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "./node_modules/lodash/_Uint8Array.js"),
    eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"),
    equalArrays = __webpack_require__(/*! ./_equalArrays */ "./node_modules/lodash/_equalArrays.js"),
    mapToArray = __webpack_require__(/*! ./_mapToArray */ "./node_modules/lodash/_mapToArray.js"),
    setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js");

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
    COMPARE_UNORDERED_FLAG = 2;

/** `Object#toString` result references. */
var boolTag = '[object Boolean]',
    dateTag = '[object Date]',
    errorTag = '[object Error]',
    mapTag = '[object Map]',
    numberTag = '[object Number]',
    regexpTag = '[object RegExp]',
    setTag = '[object Set]',
    stringTag = '[object String]',
    symbolTag = '[object Symbol]';

var arrayBufferTag = '[object ArrayBuffer]',
    dataViewTag = '[object DataView]';

/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
    symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;

/**
 * A specialized version of `baseIsEqualDeep` for comparing objects of
 * the same `toStringTag`.
 *
 * **Note:** This function only supports comparing values with tags of
 * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {string} tag The `toStringTag` of the objects to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  switch (tag) {
    case dataViewTag:
      if ((object.byteLength != other.byteLength) ||
          (object.byteOffset != other.byteOffset)) {
        return false;
      }
      object = object.buffer;
      other = other.buffer;

    case arrayBufferTag:
      if ((object.byteLength != other.byteLength) ||
          !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
        return false;
      }
      return true;

    case boolTag:
    case dateTag:
    case numberTag:
      // Coerce booleans to `1` or `0` and dates to milliseconds.
      // Invalid dates are coerced to `NaN`.
      return eq(+object, +other);

    case errorTag:
      return object.name == other.name && object.message == other.message;

    case regexpTag:
    case stringTag:
      // Coerce regexes to strings and treat strings, primitives and objects,
      // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
      // for more details.
      return object == (other + '');

    case mapTag:
      var convert = mapToArray;

    case setTag:
      var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
      convert || (convert = setToArray);

      if (object.size != other.size && !isPartial) {
        return false;
      }
      // Assume cyclic values are equal.
      var stacked = stack.get(object);
      if (stacked) {
        return stacked == other;
      }
      bitmask |= COMPARE_UNORDERED_FLAG;

      // Recursively compare objects (susceptible to call stack limits).
      stack.set(object, other);
      var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
      stack['delete'](object);
      return result;

    case symbolTag:
      if (symbolValueOf) {
        return symbolValueOf.call(object) == symbolValueOf.call(other);
      }
  }
  return false;
}

module.exports = equalByTag;


/***/ }),

/***/ "./node_modules/lodash/_equalObjects.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_equalObjects.js ***!
  \**********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "./node_modules/lodash/_getAllKeys.js");

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1;

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * A specialized version of `baseIsEqualDeep` for objects with support for
 * partial deep comparisons.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
      objProps = getAllKeys(object),
      objLength = objProps.length,
      othProps = getAllKeys(other),
      othLength = othProps.length;

  if (objLength != othLength && !isPartial) {
    return false;
  }
  var index = objLength;
  while (index--) {
    var key = objProps[index];
    if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
      return false;
    }
  }
  // Check that cyclic values are equal.
  var objStacked = stack.get(object);
  var othStacked = stack.get(other);
  if (objStacked && othStacked) {
    return objStacked == other && othStacked == object;
  }
  var result = true;
  stack.set(object, other);
  stack.set(other, object);

  var skipCtor = isPartial;
  while (++index < objLength) {
    key = objProps[index];
    var objValue = object[key],
        othValue = other[key];

    if (customizer) {
      var compared = isPartial
        ? customizer(othValue, objValue, key, other, object, stack)
        : customizer(objValue, othValue, key, object, other, stack);
    }
    // Recursively compare objects (susceptible to call stack limits).
    if (!(compared === undefined
          ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
          : compared
        )) {
      result = false;
      break;
    }
    skipCtor || (skipCtor = key == 'constructor');
  }
  if (result && !skipCtor) {
    var objCtor = object.constructor,
        othCtor = other.constructor;

    // Non `Object` object instances with different constructors are not equal.
    if (objCtor != othCtor &&
        ('constructor' in object && 'constructor' in other) &&
        !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
          typeof othCtor == 'function' && othCtor instanceof othCtor)) {
      result = false;
    }
  }
  stack['delete'](object);
  stack['delete'](other);
  return result;
}

module.exports = equalObjects;


/***/ }),

/***/ "./node_modules/lodash/_flatRest.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_flatRest.js ***!
  \******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var flatten = __webpack_require__(/*! ./flatten */ "./node_modules/lodash/flatten.js"),
    overRest = __webpack_require__(/*! ./_overRest */ "./node_modules/lodash/_overRest.js"),
    setToString = __webpack_require__(/*! ./_setToString */ "./node_modules/lodash/_setToString.js");

/**
 * A specialized version of `baseRest` which flattens the rest array.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @returns {Function} Returns the new function.
 */
function flatRest(func) {
  return setToString(overRest(func, undefined, flatten), func + '');
}

module.exports = flatRest;


/***/ }),

/***/ "./node_modules/lodash/_freeGlobal.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_freeGlobal.js ***!
  \********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

/** Detect free variable `global` from Node.js. */
var freeGlobal = typeof __webpack_require__.g == 'object' && __webpack_require__.g && __webpack_require__.g.Object === Object && __webpack_require__.g;

module.exports = freeGlobal;


/***/ }),

/***/ "./node_modules/lodash/_getAllKeys.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_getAllKeys.js ***!
  \********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "./node_modules/lodash/_baseGetAllKeys.js"),
    getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js"),
    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");

/**
 * Creates an array of own enumerable property names and symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names and symbols.
 */
function getAllKeys(object) {
  return baseGetAllKeys(object, keys, getSymbols);
}

module.exports = getAllKeys;


/***/ }),

/***/ "./node_modules/lodash/_getAllKeysIn.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_getAllKeysIn.js ***!
  \**********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "./node_modules/lodash/_baseGetAllKeys.js"),
    getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "./node_modules/lodash/_getSymbolsIn.js"),
    keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");

/**
 * Creates an array of own and inherited enumerable property names and
 * symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names and symbols.
 */
function getAllKeysIn(object) {
  return baseGetAllKeys(object, keysIn, getSymbolsIn);
}

module.exports = getAllKeysIn;


/***/ }),

/***/ "./node_modules/lodash/_getMapData.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_getMapData.js ***!
  \********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var isKeyable = __webpack_require__(/*! ./_isKeyable */ "./node_modules/lodash/_isKeyable.js");

/**
 * Gets the data for `map`.
 *
 * @private
 * @param {Object} map The map to query.
 * @param {string} key The reference key.
 * @returns {*} Returns the map data.
 */
function getMapData(map, key) {
  var data = map.__data__;
  return isKeyable(key)
    ? data[typeof key == 'string' ? 'string' : 'hash']
    : data.map;
}

module.exports = getMapData;


/***/ }),

/***/ "./node_modules/lodash/_getMatchData.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_getMatchData.js ***!
  \**********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "./node_modules/lodash/_isStrictComparable.js"),
    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");

/**
 * Gets the property names, values, and compare flags of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the match data of `object`.
 */
function getMatchData(object) {
  var result = keys(object),
      length = result.length;

  while (length--) {
    var key = result[length],
        value = object[key];

    result[length] = [key, value, isStrictComparable(value)];
  }
  return result;
}

module.exports = getMatchData;


/***/ }),

/***/ "./node_modules/lodash/_getNative.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_getNative.js ***!
  \*******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ "./node_modules/lodash/_baseIsNative.js"),
    getValue = __webpack_require__(/*! ./_getValue */ "./node_modules/lodash/_getValue.js");

/**
 * Gets the native function at `key` of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {string} key The key of the method to get.
 * @returns {*} Returns the function if it's native, else `undefined`.
 */
function getNative(object, key) {
  var value = getValue(object, key);
  return baseIsNative(value) ? value : undefined;
}

module.exports = getNative;


/***/ }),

/***/ "./node_modules/lodash/_getPrototype.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_getPrototype.js ***!
  \**********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var overArg = __webpack_require__(/*! ./_overArg */ "./node_modules/lodash/_overArg.js");

/** Built-in value references. */
var getPrototype = overArg(Object.getPrototypeOf, Object);

module.exports = getPrototype;


/***/ }),

/***/ "./node_modules/lodash/_getRawTag.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_getRawTag.js ***!
  \*******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Used to resolve the
 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
 * of values.
 */
var nativeObjectToString = objectProto.toString;

/** Built-in value references. */
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;

/**
 * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the raw `toStringTag`.
 */
function getRawTag(value) {
  var isOwn = hasOwnProperty.call(value, symToStringTag),
      tag = value[symToStringTag];

  try {
    value[symToStringTag] = undefined;
    var unmasked = true;
  } catch (e) {}

  var result = nativeObjectToString.call(value);
  if (unmasked) {
    if (isOwn) {
      value[symToStringTag] = tag;
    } else {
      delete value[symToStringTag];
    }
  }
  return result;
}

module.exports = getRawTag;


/***/ }),

/***/ "./node_modules/lodash/_getSymbols.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_getSymbols.js ***!
  \********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "./node_modules/lodash/_arrayFilter.js"),
    stubArray = __webpack_require__(/*! ./stubArray */ "./node_modules/lodash/stubArray.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Built-in value references. */
var propertyIsEnumerable = objectProto.propertyIsEnumerable;

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeGetSymbols = Object.getOwnPropertySymbols;

/**
 * Creates an array of the own enumerable symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of symbols.
 */
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
  if (object == null) {
    return [];
  }
  object = Object(object);
  return arrayFilter(nativeGetSymbols(object), function(symbol) {
    return propertyIsEnumerable.call(object, symbol);
  });
};

module.exports = getSymbols;


/***/ }),

/***/ "./node_modules/lodash/_getSymbolsIn.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_getSymbolsIn.js ***!
  \**********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
    getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
    getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js"),
    stubArray = __webpack_require__(/*! ./stubArray */ "./node_modules/lodash/stubArray.js");

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeGetSymbols = Object.getOwnPropertySymbols;

/**
 * Creates an array of the own and inherited enumerable symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of symbols.
 */
var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
  var result = [];
  while (object) {
    arrayPush(result, getSymbols(object));
    object = getPrototype(object);
  }
  return result;
};

module.exports = getSymbolsIn;


/***/ }),

/***/ "./node_modules/lodash/_getTag.js":
/*!****************************************!*\
  !*** ./node_modules/lodash/_getTag.js ***!
  \****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var DataView = __webpack_require__(/*! ./_DataView */ "./node_modules/lodash/_DataView.js"),
    Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js"),
    Promise = __webpack_require__(/*! ./_Promise */ "./node_modules/lodash/_Promise.js"),
    Set = __webpack_require__(/*! ./_Set */ "./node_modules/lodash/_Set.js"),
    WeakMap = __webpack_require__(/*! ./_WeakMap */ "./node_modules/lodash/_WeakMap.js"),
    baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
    toSource = __webpack_require__(/*! ./_toSource */ "./node_modules/lodash/_toSource.js");

/** `Object#toString` result references. */
var mapTag = '[object Map]',
    objectTag = '[object Object]',
    promiseTag = '[object Promise]',
    setTag = '[object Set]',
    weakMapTag = '[object WeakMap]';

var dataViewTag = '[object DataView]';

/** Used to detect maps, sets, and weakmaps. */
var dataViewCtorString = toSource(DataView),
    mapCtorString = toSource(Map),
    promiseCtorString = toSource(Promise),
    setCtorString = toSource(Set),
    weakMapCtorString = toSource(WeakMap);

/**
 * Gets the `toStringTag` of `value`.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the `toStringTag`.
 */
var getTag = baseGetTag;

// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
    (Map && getTag(new Map) != mapTag) ||
    (Promise && getTag(Promise.resolve()) != promiseTag) ||
    (Set && getTag(new Set) != setTag) ||
    (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  getTag = function(value) {
    var result = baseGetTag(value),
        Ctor = result == objectTag ? value.constructor : undefined,
        ctorString = Ctor ? toSource(Ctor) : '';

    if (ctorString) {
      switch (ctorString) {
        case dataViewCtorString: return dataViewTag;
        case mapCtorString: return mapTag;
        case promiseCtorString: return promiseTag;
        case setCtorString: return setTag;
        case weakMapCtorString: return weakMapTag;
      }
    }
    return result;
  };
}

module.exports = getTag;


/***/ }),

/***/ "./node_modules/lodash/_getValue.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_getValue.js ***!
  \******************************************/
/***/ ((module) => {

/**
 * Gets the value at `key` of `object`.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {string} key The key of the property to get.
 * @returns {*} Returns the property value.
 */
function getValue(object, key) {
  return object == null ? undefined : object[key];
}

module.exports = getValue;


/***/ }),

/***/ "./node_modules/lodash/_hasPath.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_hasPath.js ***!
  \*****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
    isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
    isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js"),
    toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");

/**
 * Checks if `path` exists on `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @param {Function} hasFunc The function to check properties.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 */
function hasPath(object, path, hasFunc) {
  path = castPath(path, object);

  var index = -1,
      length = path.length,
      result = false;

  while (++index < length) {
    var key = toKey(path[index]);
    if (!(result = object != null && hasFunc(object, key))) {
      break;
    }
    object = object[key];
  }
  if (result || ++index != length) {
    return result;
  }
  length = object == null ? 0 : object.length;
  return !!length && isLength(length) && isIndex(key, length) &&
    (isArray(object) || isArguments(object));
}

module.exports = hasPath;


/***/ }),

/***/ "./node_modules/lodash/_hashClear.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_hashClear.js ***!
  \*******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");

/**
 * Removes all key-value entries from the hash.
 *
 * @private
 * @name clear
 * @memberOf Hash
 */
function hashClear() {
  this.__data__ = nativeCreate ? nativeCreate(null) : {};
  this.size = 0;
}

module.exports = hashClear;


/***/ }),

/***/ "./node_modules/lodash/_hashDelete.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_hashDelete.js ***!
  \********************************************/
/***/ ((module) => {

/**
 * Removes `key` and its value from the hash.
 *
 * @private
 * @name delete
 * @memberOf Hash
 * @param {Object} hash The hash to modify.
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function hashDelete(key) {
  var result = this.has(key) && delete this.__data__[key];
  this.size -= result ? 1 : 0;
  return result;
}

module.exports = hashDelete;


/***/ }),

/***/ "./node_modules/lodash/_hashGet.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_hashGet.js ***!
  \*****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");

/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Gets the hash value for `key`.
 *
 * @private
 * @name get
 * @memberOf Hash
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function hashGet(key) {
  var data = this.__data__;
  if (nativeCreate) {
    var result = data[key];
    return result === HASH_UNDEFINED ? undefined : result;
  }
  return hasOwnProperty.call(data, key) ? data[key] : undefined;
}

module.exports = hashGet;


/***/ }),

/***/ "./node_modules/lodash/_hashHas.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_hashHas.js ***!
  \*****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Checks if a hash value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Hash
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function hashHas(key) {
  var data = this.__data__;
  return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
}

module.exports = hashHas;


/***/ }),

/***/ "./node_modules/lodash/_hashSet.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_hashSet.js ***!
  \*****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");

/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';

/**
 * Sets the hash `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Hash
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the hash instance.
 */
function hashSet(key, value) {
  var data = this.__data__;
  this.size += this.has(key) ? 0 : 1;
  data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  return this;
}

module.exports = hashSet;


/***/ }),

/***/ "./node_modules/lodash/_initCloneArray.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_initCloneArray.js ***!
  \************************************************/
/***/ ((module) => {

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Initializes an array clone.
 *
 * @private
 * @param {Array} array The array to clone.
 * @returns {Array} Returns the initialized clone.
 */
function initCloneArray(array) {
  var length = array.length,
      result = new array.constructor(length);

  // Add properties assigned by `RegExp#exec`.
  if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
    result.index = array.index;
    result.input = array.input;
  }
  return result;
}

module.exports = initCloneArray;


/***/ }),

/***/ "./node_modules/lodash/_initCloneByTag.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_initCloneByTag.js ***!
  \************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js"),
    cloneDataView = __webpack_require__(/*! ./_cloneDataView */ "./node_modules/lodash/_cloneDataView.js"),
    cloneRegExp = __webpack_require__(/*! ./_cloneRegExp */ "./node_modules/lodash/_cloneRegExp.js"),
    cloneSymbol = __webpack_require__(/*! ./_cloneSymbol */ "./node_modules/lodash/_cloneSymbol.js"),
    cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "./node_modules/lodash/_cloneTypedArray.js");

/** `Object#toString` result references. */
var boolTag = '[object Boolean]',
    dateTag = '[object Date]',
    mapTag = '[object Map]',
    numberTag = '[object Number]',
    regexpTag = '[object RegExp]',
    setTag = '[object Set]',
    stringTag = '[object String]',
    symbolTag = '[object Symbol]';

var arrayBufferTag = '[object ArrayBuffer]',
    dataViewTag = '[object DataView]',
    float32Tag = '[object Float32Array]',
    float64Tag = '[object Float64Array]',
    int8Tag = '[object Int8Array]',
    int16Tag = '[object Int16Array]',
    int32Tag = '[object Int32Array]',
    uint8Tag = '[object Uint8Array]',
    uint8ClampedTag = '[object Uint8ClampedArray]',
    uint16Tag = '[object Uint16Array]',
    uint32Tag = '[object Uint32Array]';

/**
 * Initializes an object clone based on its `toStringTag`.
 *
 * **Note:** This function only supports cloning values with tags of
 * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
 *
 * @private
 * @param {Object} object The object to clone.
 * @param {string} tag The `toStringTag` of the object to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the initialized clone.
 */
function initCloneByTag(object, tag, isDeep) {
  var Ctor = object.constructor;
  switch (tag) {
    case arrayBufferTag:
      return cloneArrayBuffer(object);

    case boolTag:
    case dateTag:
      return new Ctor(+object);

    case dataViewTag:
      return cloneDataView(object, isDeep);

    case float32Tag: case float64Tag:
    case int8Tag: case int16Tag: case int32Tag:
    case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
      return cloneTypedArray(object, isDeep);

    case mapTag:
      return new Ctor;

    case numberTag:
    case stringTag:
      return new Ctor(object);

    case regexpTag:
      return cloneRegExp(object);

    case setTag:
      return new Ctor;

    case symbolTag:
      return cloneSymbol(object);
  }
}

module.exports = initCloneByTag;


/***/ }),

/***/ "./node_modules/lodash/_initCloneObject.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_initCloneObject.js ***!
  \*************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseCreate = __webpack_require__(/*! ./_baseCreate */ "./node_modules/lodash/_baseCreate.js"),
    getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
    isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js");

/**
 * Initializes an object clone.
 *
 * @private
 * @param {Object} object The object to clone.
 * @returns {Object} Returns the initialized clone.
 */
function initCloneObject(object) {
  return (typeof object.constructor == 'function' && !isPrototype(object))
    ? baseCreate(getPrototype(object))
    : {};
}

module.exports = initCloneObject;


/***/ }),

/***/ "./node_modules/lodash/_isFlattenable.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_isFlattenable.js ***!
  \***********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
    isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");

/** Built-in value references. */
var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;

/**
 * Checks if `value` is a flattenable `arguments` object or array.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
 */
function isFlattenable(value) {
  return isArray(value) || isArguments(value) ||
    !!(spreadableSymbol && value && value[spreadableSymbol]);
}

module.exports = isFlattenable;


/***/ }),

/***/ "./node_modules/lodash/_isIndex.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_isIndex.js ***!
  \*****************************************/
/***/ ((module) => {

/** Used as references for various `Number` constants. */
var MAX_SAFE_INTEGER = 9007199254740991;

/** Used to detect unsigned integer values. */
var reIsUint = /^(?:0|[1-9]\d*)$/;

/**
 * Checks if `value` is a valid array-like index.
 *
 * @private
 * @param {*} value The value to check.
 * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
 * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
 */
function isIndex(value, length) {
  var type = typeof value;
  length = length == null ? MAX_SAFE_INTEGER : length;

  return !!length &&
    (type == 'number' ||
      (type != 'symbol' && reIsUint.test(value))) &&
        (value > -1 && value % 1 == 0 && value < length);
}

module.exports = isIndex;


/***/ }),

/***/ "./node_modules/lodash/_isIterateeCall.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_isIterateeCall.js ***!
  \************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"),
    isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
    isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");

/**
 * Checks if the given arguments are from an iteratee call.
 *
 * @private
 * @param {*} value The potential iteratee value argument.
 * @param {*} index The potential iteratee index or key argument.
 * @param {*} object The potential iteratee object argument.
 * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
 *  else `false`.
 */
function isIterateeCall(value, index, object) {
  if (!isObject(object)) {
    return false;
  }
  var type = typeof index;
  if (type == 'number'
        ? (isArrayLike(object) && isIndex(index, object.length))
        : (type == 'string' && index in object)
      ) {
    return eq(object[index], value);
  }
  return false;
}

module.exports = isIterateeCall;


/***/ }),

/***/ "./node_modules/lodash/_isKey.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/_isKey.js ***!
  \***************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");

/** Used to match property names within property paths. */
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
    reIsPlainProp = /^\w*$/;

/**
 * Checks if `value` is a property name and not a property path.
 *
 * @private
 * @param {*} value The value to check.
 * @param {Object} [object] The object to query keys on.
 * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
 */
function isKey(value, object) {
  if (isArray(value)) {
    return false;
  }
  var type = typeof value;
  if (type == 'number' || type == 'symbol' || type == 'boolean' ||
      value == null || isSymbol(value)) {
    return true;
  }
  return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
    (object != null && value in Object(object));
}

module.exports = isKey;


/***/ }),

/***/ "./node_modules/lodash/_isKeyable.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/_isKeyable.js ***!
  \*******************************************/
/***/ ((module) => {

/**
 * Checks if `value` is suitable for use as unique object key.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
 */
function isKeyable(value) {
  var type = typeof value;
  return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
    ? (value !== '__proto__')
    : (value === null);
}

module.exports = isKeyable;


/***/ }),

/***/ "./node_modules/lodash/_isMasked.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_isMasked.js ***!
  \******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var coreJsData = __webpack_require__(/*! ./_coreJsData */ "./node_modules/lodash/_coreJsData.js");

/** Used to detect methods masquerading as native. */
var maskSrcKey = (function() {
  var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  return uid ? ('Symbol(src)_1.' + uid) : '';
}());

/**
 * Checks if `func` has its source masked.
 *
 * @private
 * @param {Function} func The function to check.
 * @returns {boolean} Returns `true` if `func` is masked, else `false`.
 */
function isMasked(func) {
  return !!maskSrcKey && (maskSrcKey in func);
}

module.exports = isMasked;


/***/ }),

/***/ "./node_modules/lodash/_isPrototype.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_isPrototype.js ***!
  \*********************************************/
/***/ ((module) => {

/** Used for built-in method references. */
var objectProto = Object.prototype;

/**
 * Checks if `value` is likely a prototype object.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
 */
function isPrototype(value) {
  var Ctor = value && value.constructor,
      proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;

  return value === proto;
}

module.exports = isPrototype;


/***/ }),

/***/ "./node_modules/lodash/_isStrictComparable.js":
/*!****************************************************!*\
  !*** ./node_modules/lodash/_isStrictComparable.js ***!
  \****************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");

/**
 * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` if suitable for strict
 *  equality comparisons, else `false`.
 */
function isStrictComparable(value) {
  return value === value && !isObject(value);
}

module.exports = isStrictComparable;


/***/ }),

/***/ "./node_modules/lodash/_listCacheClear.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_listCacheClear.js ***!
  \************************************************/
/***/ ((module) => {

/**
 * Removes all key-value entries from the list cache.
 *
 * @private
 * @name clear
 * @memberOf ListCache
 */
function listCacheClear() {
  this.__data__ = [];
  this.size = 0;
}

module.exports = listCacheClear;


/***/ }),

/***/ "./node_modules/lodash/_listCacheDelete.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_listCacheDelete.js ***!
  \*************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");

/** Used for built-in method references. */
var arrayProto = Array.prototype;

/** Built-in value references. */
var splice = arrayProto.splice;

/**
 * Removes `key` and its value from the list cache.
 *
 * @private
 * @name delete
 * @memberOf ListCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function listCacheDelete(key) {
  var data = this.__data__,
      index = assocIndexOf(data, key);

  if (index < 0) {
    return false;
  }
  var lastIndex = data.length - 1;
  if (index == lastIndex) {
    data.pop();
  } else {
    splice.call(data, index, 1);
  }
  --this.size;
  return true;
}

module.exports = listCacheDelete;


/***/ }),

/***/ "./node_modules/lodash/_listCacheGet.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_listCacheGet.js ***!
  \**********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");

/**
 * Gets the list cache value for `key`.
 *
 * @private
 * @name get
 * @memberOf ListCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function listCacheGet(key) {
  var data = this.__data__,
      index = assocIndexOf(data, key);

  return index < 0 ? undefined : data[index][1];
}

module.exports = listCacheGet;


/***/ }),

/***/ "./node_modules/lodash/_listCacheHas.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_listCacheHas.js ***!
  \**********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");

/**
 * Checks if a list cache value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf ListCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function listCacheHas(key) {
  return assocIndexOf(this.__data__, key) > -1;
}

module.exports = listCacheHas;


/***/ }),

/***/ "./node_modules/lodash/_listCacheSet.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_listCacheSet.js ***!
  \**********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");

/**
 * Sets the list cache `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf ListCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the list cache instance.
 */
function listCacheSet(key, value) {
  var data = this.__data__,
      index = assocIndexOf(data, key);

  if (index < 0) {
    ++this.size;
    data.push([key, value]);
  } else {
    data[index][1] = value;
  }
  return this;
}

module.exports = listCacheSet;


/***/ }),

/***/ "./node_modules/lodash/_mapCacheClear.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_mapCacheClear.js ***!
  \***********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var Hash = __webpack_require__(/*! ./_Hash */ "./node_modules/lodash/_Hash.js"),
    ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
    Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js");

/**
 * Removes all key-value entries from the map.
 *
 * @private
 * @name clear
 * @memberOf MapCache
 */
function mapCacheClear() {
  this.size = 0;
  this.__data__ = {
    'hash': new Hash,
    'map': new (Map || ListCache),
    'string': new Hash
  };
}

module.exports = mapCacheClear;


/***/ }),

/***/ "./node_modules/lodash/_mapCacheDelete.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_mapCacheDelete.js ***!
  \************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");

/**
 * Removes `key` and its value from the map.
 *
 * @private
 * @name delete
 * @memberOf MapCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function mapCacheDelete(key) {
  var result = getMapData(this, key)['delete'](key);
  this.size -= result ? 1 : 0;
  return result;
}

module.exports = mapCacheDelete;


/***/ }),

/***/ "./node_modules/lodash/_mapCacheGet.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_mapCacheGet.js ***!
  \*********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");

/**
 * Gets the map value for `key`.
 *
 * @private
 * @name get
 * @memberOf MapCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function mapCacheGet(key) {
  return getMapData(this, key).get(key);
}

module.exports = mapCacheGet;


/***/ }),

/***/ "./node_modules/lodash/_mapCacheHas.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_mapCacheHas.js ***!
  \*********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");

/**
 * Checks if a map value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf MapCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function mapCacheHas(key) {
  return getMapData(this, key).has(key);
}

module.exports = mapCacheHas;


/***/ }),

/***/ "./node_modules/lodash/_mapCacheSet.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_mapCacheSet.js ***!
  \*********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");

/**
 * Sets the map `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf MapCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the map cache instance.
 */
function mapCacheSet(key, value) {
  var data = getMapData(this, key),
      size = data.size;

  data.set(key, value);
  this.size += data.size == size ? 0 : 1;
  return this;
}

module.exports = mapCacheSet;


/***/ }),

/***/ "./node_modules/lodash/_mapToArray.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_mapToArray.js ***!
  \********************************************/
/***/ ((module) => {

/**
 * Converts `map` to its key-value pairs.
 *
 * @private
 * @param {Object} map The map to convert.
 * @returns {Array} Returns the key-value pairs.
 */
function mapToArray(map) {
  var index = -1,
      result = Array(map.size);

  map.forEach(function(value, key) {
    result[++index] = [key, value];
  });
  return result;
}

module.exports = mapToArray;


/***/ }),

/***/ "./node_modules/lodash/_matchesStrictComparable.js":
/*!*********************************************************!*\
  !*** ./node_modules/lodash/_matchesStrictComparable.js ***!
  \*********************************************************/
/***/ ((module) => {

/**
 * A specialized version of `matchesProperty` for source values suitable
 * for strict equality comparisons, i.e. `===`.
 *
 * @private
 * @param {string} key The key of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new spec function.
 */
function matchesStrictComparable(key, srcValue) {
  return function(object) {
    if (object == null) {
      return false;
    }
    return object[key] === srcValue &&
      (srcValue !== undefined || (key in Object(object)));
  };
}

module.exports = matchesStrictComparable;


/***/ }),

/***/ "./node_modules/lodash/_memoizeCapped.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_memoizeCapped.js ***!
  \***********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var memoize = __webpack_require__(/*! ./memoize */ "./node_modules/lodash/memoize.js");

/** Used as the maximum memoize cache size. */
var MAX_MEMOIZE_SIZE = 500;

/**
 * A specialized version of `_.memoize` which clears the memoized function's
 * cache when it exceeds `MAX_MEMOIZE_SIZE`.
 *
 * @private
 * @param {Function} func The function to have its output memoized.
 * @returns {Function} Returns the new memoized function.
 */
function memoizeCapped(func) {
  var result = memoize(func, function(key) {
    if (cache.size === MAX_MEMOIZE_SIZE) {
      cache.clear();
    }
    return key;
  });

  var cache = result.cache;
  return result;
}

module.exports = memoizeCapped;


/***/ }),

/***/ "./node_modules/lodash/_nativeCreate.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_nativeCreate.js ***!
  \**********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js");

/* Built-in method references that are verified to be native. */
var nativeCreate = getNative(Object, 'create');

module.exports = nativeCreate;


/***/ }),

/***/ "./node_modules/lodash/_nativeKeys.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_nativeKeys.js ***!
  \********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var overArg = __webpack_require__(/*! ./_overArg */ "./node_modules/lodash/_overArg.js");

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeKeys = overArg(Object.keys, Object);

module.exports = nativeKeys;


/***/ }),

/***/ "./node_modules/lodash/_nativeKeysIn.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_nativeKeysIn.js ***!
  \**********************************************/
/***/ ((module) => {

/**
 * This function is like
 * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
 * except that it includes inherited enumerable properties.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function nativeKeysIn(object) {
  var result = [];
  if (object != null) {
    for (var key in Object(object)) {
      result.push(key);
    }
  }
  return result;
}

module.exports = nativeKeysIn;


/***/ }),

/***/ "./node_modules/lodash/_nodeUtil.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_nodeUtil.js ***!
  \******************************************/
/***/ ((module, exports, __webpack_require__) => {

/* module decorator */ module = __webpack_require__.nmd(module);
var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "./node_modules/lodash/_freeGlobal.js");

/** Detect free variable `exports`. */
var freeExports =  true && exports && !exports.nodeType && exports;

/** Detect free variable `module`. */
var freeModule = freeExports && "object" == 'object' && module && !module.nodeType && module;

/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;

/** Detect free variable `process` from Node.js. */
var freeProcess = moduleExports && freeGlobal.process;

/** Used to access faster Node.js helpers. */
var nodeUtil = (function() {
  try {
    // Use `util.types` for Node.js 10+.
    var types = freeModule && freeModule.require && freeModule.require('util').types;

    if (types) {
      return types;
    }

    // Legacy `process.binding('util')` for Node.js < 10.
    return freeProcess && freeProcess.binding && freeProcess.binding('util');
  } catch (e) {}
}());

module.exports = nodeUtil;


/***/ }),

/***/ "./node_modules/lodash/_objectToString.js":
/*!************************************************!*\
  !*** ./node_modules/lodash/_objectToString.js ***!
  \************************************************/
/***/ ((module) => {

/** Used for built-in method references. */
var objectProto = Object.prototype;

/**
 * Used to resolve the
 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
 * of values.
 */
var nativeObjectToString = objectProto.toString;

/**
 * Converts `value` to a string using `Object.prototype.toString`.
 *
 * @private
 * @param {*} value The value to convert.
 * @returns {string} Returns the converted string.
 */
function objectToString(value) {
  return nativeObjectToString.call(value);
}

module.exports = objectToString;


/***/ }),

/***/ "./node_modules/lodash/_overArg.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_overArg.js ***!
  \*****************************************/
/***/ ((module) => {

/**
 * Creates a unary function that invokes `func` with its argument transformed.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {Function} transform The argument transform.
 * @returns {Function} Returns the new function.
 */
function overArg(func, transform) {
  return function(arg) {
    return func(transform(arg));
  };
}

module.exports = overArg;


/***/ }),

/***/ "./node_modules/lodash/_overRest.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_overRest.js ***!
  \******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var apply = __webpack_require__(/*! ./_apply */ "./node_modules/lodash/_apply.js");

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max;

/**
 * A specialized version of `baseRest` which transforms the rest array.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @param {number} [start=func.length-1] The start position of the rest parameter.
 * @param {Function} transform The rest array transform.
 * @returns {Function} Returns the new function.
 */
function overRest(func, start, transform) {
  start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
  return function() {
    var args = arguments,
        index = -1,
        length = nativeMax(args.length - start, 0),
        array = Array(length);

    while (++index < length) {
      array[index] = args[start + index];
    }
    index = -1;
    var otherArgs = Array(start + 1);
    while (++index < start) {
      otherArgs[index] = args[index];
    }
    otherArgs[start] = transform(array);
    return apply(func, this, otherArgs);
  };
}

module.exports = overRest;


/***/ }),

/***/ "./node_modules/lodash/_root.js":
/*!**************************************!*\
  !*** ./node_modules/lodash/_root.js ***!
  \**************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "./node_modules/lodash/_freeGlobal.js");

/** Detect free variable `self`. */
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;

/** Used as a reference to the global object. */
var root = freeGlobal || freeSelf || Function('return this')();

module.exports = root;


/***/ }),

/***/ "./node_modules/lodash/_safeGet.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/_safeGet.js ***!
  \*****************************************/
/***/ ((module) => {

/**
 * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
 *
 * @private
 * @param {Object} object The object to query.
 * @param {string} key The key of the property to get.
 * @returns {*} Returns the property value.
 */
function safeGet(object, key) {
  if (key === 'constructor' && typeof object[key] === 'function') {
    return;
  }

  if (key == '__proto__') {
    return;
  }

  return object[key];
}

module.exports = safeGet;


/***/ }),

/***/ "./node_modules/lodash/_setCacheAdd.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_setCacheAdd.js ***!
  \*********************************************/
/***/ ((module) => {

/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';

/**
 * Adds `value` to the array cache.
 *
 * @private
 * @name add
 * @memberOf SetCache
 * @alias push
 * @param {*} value The value to cache.
 * @returns {Object} Returns the cache instance.
 */
function setCacheAdd(value) {
  this.__data__.set(value, HASH_UNDEFINED);
  return this;
}

module.exports = setCacheAdd;


/***/ }),

/***/ "./node_modules/lodash/_setCacheHas.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_setCacheHas.js ***!
  \*********************************************/
/***/ ((module) => {

/**
 * Checks if `value` is in the array cache.
 *
 * @private
 * @name has
 * @memberOf SetCache
 * @param {*} value The value to search for.
 * @returns {number} Returns `true` if `value` is found, else `false`.
 */
function setCacheHas(value) {
  return this.__data__.has(value);
}

module.exports = setCacheHas;


/***/ }),

/***/ "./node_modules/lodash/_setToArray.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_setToArray.js ***!
  \********************************************/
/***/ ((module) => {

/**
 * Converts `set` to an array of its values.
 *
 * @private
 * @param {Object} set The set to convert.
 * @returns {Array} Returns the values.
 */
function setToArray(set) {
  var index = -1,
      result = Array(set.size);

  set.forEach(function(value) {
    result[++index] = value;
  });
  return result;
}

module.exports = setToArray;


/***/ }),

/***/ "./node_modules/lodash/_setToString.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_setToString.js ***!
  \*********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseSetToString = __webpack_require__(/*! ./_baseSetToString */ "./node_modules/lodash/_baseSetToString.js"),
    shortOut = __webpack_require__(/*! ./_shortOut */ "./node_modules/lodash/_shortOut.js");

/**
 * Sets the `toString` method of `func` to return `string`.
 *
 * @private
 * @param {Function} func The function to modify.
 * @param {Function} string The `toString` result.
 * @returns {Function} Returns `func`.
 */
var setToString = shortOut(baseSetToString);

module.exports = setToString;


/***/ }),

/***/ "./node_modules/lodash/_shortOut.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_shortOut.js ***!
  \******************************************/
/***/ ((module) => {

/** Used to detect hot functions by number of calls within a span of milliseconds. */
var HOT_COUNT = 800,
    HOT_SPAN = 16;

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeNow = Date.now;

/**
 * Creates a function that'll short out and invoke `identity` instead
 * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
 * milliseconds.
 *
 * @private
 * @param {Function} func The function to restrict.
 * @returns {Function} Returns the new shortable function.
 */
function shortOut(func) {
  var count = 0,
      lastCalled = 0;

  return function() {
    var stamp = nativeNow(),
        remaining = HOT_SPAN - (stamp - lastCalled);

    lastCalled = stamp;
    if (remaining > 0) {
      if (++count >= HOT_COUNT) {
        return arguments[0];
      }
    } else {
      count = 0;
    }
    return func.apply(undefined, arguments);
  };
}

module.exports = shortOut;


/***/ }),

/***/ "./node_modules/lodash/_stackClear.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/_stackClear.js ***!
  \********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js");

/**
 * Removes all key-value entries from the stack.
 *
 * @private
 * @name clear
 * @memberOf Stack
 */
function stackClear() {
  this.__data__ = new ListCache;
  this.size = 0;
}

module.exports = stackClear;


/***/ }),

/***/ "./node_modules/lodash/_stackDelete.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/_stackDelete.js ***!
  \*********************************************/
/***/ ((module) => {

/**
 * Removes `key` and its value from the stack.
 *
 * @private
 * @name delete
 * @memberOf Stack
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function stackDelete(key) {
  var data = this.__data__,
      result = data['delete'](key);

  this.size = data.size;
  return result;
}

module.exports = stackDelete;


/***/ }),

/***/ "./node_modules/lodash/_stackGet.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_stackGet.js ***!
  \******************************************/
/***/ ((module) => {

/**
 * Gets the stack value for `key`.
 *
 * @private
 * @name get
 * @memberOf Stack
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function stackGet(key) {
  return this.__data__.get(key);
}

module.exports = stackGet;


/***/ }),

/***/ "./node_modules/lodash/_stackHas.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_stackHas.js ***!
  \******************************************/
/***/ ((module) => {

/**
 * Checks if a stack value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Stack
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function stackHas(key) {
  return this.__data__.has(key);
}

module.exports = stackHas;


/***/ }),

/***/ "./node_modules/lodash/_stackSet.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_stackSet.js ***!
  \******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
    Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js"),
    MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js");

/** Used as the size to enable large array optimizations. */
var LARGE_ARRAY_SIZE = 200;

/**
 * Sets the stack `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Stack
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the stack cache instance.
 */
function stackSet(key, value) {
  var data = this.__data__;
  if (data instanceof ListCache) {
    var pairs = data.__data__;
    if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
      pairs.push([key, value]);
      this.size = ++data.size;
      return this;
    }
    data = this.__data__ = new MapCache(pairs);
  }
  data.set(key, value);
  this.size = data.size;
  return this;
}

module.exports = stackSet;


/***/ }),

/***/ "./node_modules/lodash/_strictIndexOf.js":
/*!***********************************************!*\
  !*** ./node_modules/lodash/_strictIndexOf.js ***!
  \***********************************************/
/***/ ((module) => {

/**
 * A specialized version of `_.indexOf` which performs strict equality
 * comparisons of values, i.e. `===`.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} value The value to search for.
 * @param {number} fromIndex The index to search from.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */
function strictIndexOf(array, value, fromIndex) {
  var index = fromIndex - 1,
      length = array.length;

  while (++index < length) {
    if (array[index] === value) {
      return index;
    }
  }
  return -1;
}

module.exports = strictIndexOf;


/***/ }),

/***/ "./node_modules/lodash/_stringToPath.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/_stringToPath.js ***!
  \**********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ "./node_modules/lodash/_memoizeCapped.js");

/** Used to match property names within property paths. */
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;

/** Used to match backslashes in property paths. */
var reEscapeChar = /\\(\\)?/g;

/**
 * Converts `string` to a property path array.
 *
 * @private
 * @param {string} string The string to convert.
 * @returns {Array} Returns the property path array.
 */
var stringToPath = memoizeCapped(function(string) {
  var result = [];
  if (string.charCodeAt(0) === 46 /* . */) {
    result.push('');
  }
  string.replace(rePropName, function(match, number, quote, subString) {
    result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  });
  return result;
});

module.exports = stringToPath;


/***/ }),

/***/ "./node_modules/lodash/_toKey.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/_toKey.js ***!
  \***************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");

/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;

/**
 * Converts `value` to a string key if it's not a string or symbol.
 *
 * @private
 * @param {*} value The value to inspect.
 * @returns {string|symbol} Returns the key.
 */
function toKey(value) {
  if (typeof value == 'string' || isSymbol(value)) {
    return value;
  }
  var result = (value + '');
  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
}

module.exports = toKey;


/***/ }),

/***/ "./node_modules/lodash/_toSource.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/_toSource.js ***!
  \******************************************/
/***/ ((module) => {

/** Used for built-in method references. */
var funcProto = Function.prototype;

/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;

/**
 * Converts `func` to its source code.
 *
 * @private
 * @param {Function} func The function to convert.
 * @returns {string} Returns the source code.
 */
function toSource(func) {
  if (func != null) {
    try {
      return funcToString.call(func);
    } catch (e) {}
    try {
      return (func + '');
    } catch (e) {}
  }
  return '';
}

module.exports = toSource;


/***/ }),

/***/ "./node_modules/lodash/_trimmedEndIndex.js":
/*!*************************************************!*\
  !*** ./node_modules/lodash/_trimmedEndIndex.js ***!
  \*************************************************/
/***/ ((module) => {

/** Used to match a single whitespace character. */
var reWhitespace = /\s/;

/**
 * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
 * character of `string`.
 *
 * @private
 * @param {string} string The string to inspect.
 * @returns {number} Returns the index of the last non-whitespace character.
 */
function trimmedEndIndex(string) {
  var index = string.length;

  while (index-- && reWhitespace.test(string.charAt(index))) {}
  return index;
}

module.exports = trimmedEndIndex;


/***/ }),

/***/ "./node_modules/lodash/assign.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/assign.js ***!
  \***************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
    copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
    createAssigner = __webpack_require__(/*! ./_createAssigner */ "./node_modules/lodash/_createAssigner.js"),
    isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
    isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js"),
    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Assigns own enumerable string keyed properties of source objects to the
 * destination object. Source objects are applied from left to right.
 * Subsequent sources overwrite property assignments of previous sources.
 *
 * **Note:** This method mutates `object` and is loosely based on
 * [`Object.assign`](https://mdn.io/Object/assign).
 *
 * @static
 * @memberOf _
 * @since 0.10.0
 * @category Object
 * @param {Object} object The destination object.
 * @param {...Object} [sources] The source objects.
 * @returns {Object} Returns `object`.
 * @see _.assignIn
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 * }
 *
 * function Bar() {
 *   this.c = 3;
 * }
 *
 * Foo.prototype.b = 2;
 * Bar.prototype.d = 4;
 *
 * _.assign({ 'a': 0 }, new Foo, new Bar);
 * // => { 'a': 1, 'c': 3 }
 */
var assign = createAssigner(function(object, source) {
  if (isPrototype(source) || isArrayLike(source)) {
    copyObject(source, keys(source), object);
    return;
  }
  for (var key in source) {
    if (hasOwnProperty.call(source, key)) {
      assignValue(object, key, source[key]);
    }
  }
});

module.exports = assign;


/***/ }),

/***/ "./node_modules/lodash/cloneDeep.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/cloneDeep.js ***!
  \******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseClone = __webpack_require__(/*! ./_baseClone */ "./node_modules/lodash/_baseClone.js");

/** Used to compose bitmasks for cloning. */
var CLONE_DEEP_FLAG = 1,
    CLONE_SYMBOLS_FLAG = 4;

/**
 * This method is like `_.clone` except that it recursively clones `value`.
 *
 * @static
 * @memberOf _
 * @since 1.0.0
 * @category Lang
 * @param {*} value The value to recursively clone.
 * @returns {*} Returns the deep cloned value.
 * @see _.clone
 * @example
 *
 * var objects = [{ 'a': 1 }, { 'b': 2 }];
 *
 * var deep = _.cloneDeep(objects);
 * console.log(deep[0] === objects[0]);
 * // => false
 */
function cloneDeep(value) {
  return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
}

module.exports = cloneDeep;


/***/ }),

/***/ "./node_modules/lodash/constant.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/constant.js ***!
  \*****************************************/
/***/ ((module) => {

/**
 * Creates a function that returns `value`.
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Util
 * @param {*} value The value to return from the new function.
 * @returns {Function} Returns the new constant function.
 * @example
 *
 * var objects = _.times(2, _.constant({ 'a': 1 }));
 *
 * console.log(objects);
 * // => [{ 'a': 1 }, { 'a': 1 }]
 *
 * console.log(objects[0] === objects[1]);
 * // => true
 */
function constant(value) {
  return function() {
    return value;
  };
}

module.exports = constant;


/***/ }),

/***/ "./node_modules/lodash/debounce.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/debounce.js ***!
  \*****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
    now = __webpack_require__(/*! ./now */ "./node_modules/lodash/now.js"),
    toNumber = __webpack_require__(/*! ./toNumber */ "./node_modules/lodash/toNumber.js");

/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max,
    nativeMin = Math.min;

/**
 * Creates a debounced function that delays invoking `func` until after `wait`
 * milliseconds have elapsed since the last time the debounced function was
 * invoked. The debounced function comes with a `cancel` method to cancel
 * delayed `func` invocations and a `flush` method to immediately invoke them.
 * Provide `options` to indicate whether `func` should be invoked on the
 * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
 * with the last arguments provided to the debounced function. Subsequent
 * calls to the debounced function return the result of the last `func`
 * invocation.
 *
 * **Note:** If `leading` and `trailing` options are `true`, `func` is
 * invoked on the trailing edge of the timeout only if the debounced function
 * is invoked more than once during the `wait` timeout.
 *
 * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
 * until to the next tick, similar to `setTimeout` with a timeout of `0`.
 *
 * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
 * for details over the differences between `_.debounce` and `_.throttle`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to debounce.
 * @param {number} [wait=0] The number of milliseconds to delay.
 * @param {Object} [options={}] The options object.
 * @param {boolean} [options.leading=false]
 *  Specify invoking on the leading edge of the timeout.
 * @param {number} [options.maxWait]
 *  The maximum time `func` is allowed to be delayed before it's invoked.
 * @param {boolean} [options.trailing=true]
 *  Specify invoking on the trailing edge of the timeout.
 * @returns {Function} Returns the new debounced function.
 * @example
 *
 * // Avoid costly calculations while the window size is in flux.
 * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
 *
 * // Invoke `sendMail` when clicked, debouncing subsequent calls.
 * jQuery(element).on('click', _.debounce(sendMail, 300, {
 *   'leading': true,
 *   'trailing': false
 * }));
 *
 * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
 * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
 * var source = new EventSource('/stream');
 * jQuery(source).on('message', debounced);
 *
 * // Cancel the trailing debounced invocation.
 * jQuery(window).on('popstate', debounced.cancel);
 */
function debounce(func, wait, options) {
  var lastArgs,
      lastThis,
      maxWait,
      result,
      timerId,
      lastCallTime,
      lastInvokeTime = 0,
      leading = false,
      maxing = false,
      trailing = true;

  if (typeof func != 'function') {
    throw new TypeError(FUNC_ERROR_TEXT);
  }
  wait = toNumber(wait) || 0;
  if (isObject(options)) {
    leading = !!options.leading;
    maxing = 'maxWait' in options;
    maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
    trailing = 'trailing' in options ? !!options.trailing : trailing;
  }

  function invokeFunc(time) {
    var args = lastArgs,
        thisArg = lastThis;

    lastArgs = lastThis = undefined;
    lastInvokeTime = time;
    result = func.apply(thisArg, args);
    return result;
  }

  function leadingEdge(time) {
    // Reset any `maxWait` timer.
    lastInvokeTime = time;
    // Start the timer for the trailing edge.
    timerId = setTimeout(timerExpired, wait);
    // Invoke the leading edge.
    return leading ? invokeFunc(time) : result;
  }

  function remainingWait(time) {
    var timeSinceLastCall = time - lastCallTime,
        timeSinceLastInvoke = time - lastInvokeTime,
        timeWaiting = wait - timeSinceLastCall;

    return maxing
      ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
      : timeWaiting;
  }

  function shouldInvoke(time) {
    var timeSinceLastCall = time - lastCallTime,
        timeSinceLastInvoke = time - lastInvokeTime;

    // Either this is the first call, activity has stopped and we're at the
    // trailing edge, the system time has gone backwards and we're treating
    // it as the trailing edge, or we've hit the `maxWait` limit.
    return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
      (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
  }

  function timerExpired() {
    var time = now();
    if (shouldInvoke(time)) {
      return trailingEdge(time);
    }
    // Restart the timer.
    timerId = setTimeout(timerExpired, remainingWait(time));
  }

  function trailingEdge(time) {
    timerId = undefined;

    // Only invoke if we have `lastArgs` which means `func` has been
    // debounced at least once.
    if (trailing && lastArgs) {
      return invokeFunc(time);
    }
    lastArgs = lastThis = undefined;
    return result;
  }

  function cancel() {
    if (timerId !== undefined) {
      clearTimeout(timerId);
    }
    lastInvokeTime = 0;
    lastArgs = lastCallTime = lastThis = timerId = undefined;
  }

  function flush() {
    return timerId === undefined ? result : trailingEdge(now());
  }

  function debounced() {
    var time = now(),
        isInvoking = shouldInvoke(time);

    lastArgs = arguments;
    lastThis = this;
    lastCallTime = time;

    if (isInvoking) {
      if (timerId === undefined) {
        return leadingEdge(lastCallTime);
      }
      if (maxing) {
        // Handle invocations in a tight loop.
        clearTimeout(timerId);
        timerId = setTimeout(timerExpired, wait);
        return invokeFunc(lastCallTime);
      }
    }
    if (timerId === undefined) {
      timerId = setTimeout(timerExpired, wait);
    }
    return result;
  }
  debounced.cancel = cancel;
  debounced.flush = flush;
  return debounced;
}

module.exports = debounce;


/***/ }),

/***/ "./node_modules/lodash/defaults.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/defaults.js ***!
  \*****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseRest = __webpack_require__(/*! ./_baseRest */ "./node_modules/lodash/_baseRest.js"),
    eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"),
    isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js"),
    keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Assigns own and inherited enumerable string keyed properties of source
 * objects to the destination object for all destination properties that
 * resolve to `undefined`. Source objects are applied from left to right.
 * Once a property is set, additional values of the same property are ignored.
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The destination object.
 * @param {...Object} [sources] The source objects.
 * @returns {Object} Returns `object`.
 * @see _.defaultsDeep
 * @example
 *
 * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
 * // => { 'a': 1, 'b': 2 }
 */
var defaults = baseRest(function(object, sources) {
  object = Object(object);

  var index = -1;
  var length = sources.length;
  var guard = length > 2 ? sources[2] : undefined;

  if (guard && isIterateeCall(sources[0], sources[1], guard)) {
    length = 1;
  }

  while (++index < length) {
    var source = sources[index];
    var props = keysIn(source);
    var propsIndex = -1;
    var propsLength = props.length;

    while (++propsIndex < propsLength) {
      var key = props[propsIndex];
      var value = object[key];

      if (value === undefined ||
          (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
        object[key] = source[key];
      }
    }
  }

  return object;
});

module.exports = defaults;


/***/ }),

/***/ "./node_modules/lodash/difference.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/difference.js ***!
  \*******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseDifference = __webpack_require__(/*! ./_baseDifference */ "./node_modules/lodash/_baseDifference.js"),
    baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "./node_modules/lodash/_baseFlatten.js"),
    baseRest = __webpack_require__(/*! ./_baseRest */ "./node_modules/lodash/_baseRest.js"),
    isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "./node_modules/lodash/isArrayLikeObject.js");

/**
 * Creates an array of `array` values not included in the other given arrays
 * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons. The order and references of result values are
 * determined by the first array.
 *
 * **Note:** Unlike `_.pullAll`, this method returns a new array.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @param {...Array} [values] The values to exclude.
 * @returns {Array} Returns the new array of filtered values.
 * @see _.without, _.xor
 * @example
 *
 * _.difference([2, 1], [2, 3]);
 * // => [1]
 */
var difference = baseRest(function(array, values) {
  return isArrayLikeObject(array)
    ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
    : [];
});

module.exports = difference;


/***/ }),

/***/ "./node_modules/lodash/eq.js":
/*!***********************************!*\
  !*** ./node_modules/lodash/eq.js ***!
  \***********************************/
/***/ ((module) => {

/**
 * Performs a
 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * comparison between two values to determine if they are equivalent.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * var object = { 'a': 1 };
 * var other = { 'a': 1 };
 *
 * _.eq(object, object);
 * // => true
 *
 * _.eq(object, other);
 * // => false
 *
 * _.eq('a', 'a');
 * // => true
 *
 * _.eq('a', Object('a'));
 * // => false
 *
 * _.eq(NaN, NaN);
 * // => true
 */
function eq(value, other) {
  return value === other || (value !== value && other !== other);
}

module.exports = eq;


/***/ }),

/***/ "./node_modules/lodash/find.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/find.js ***!
  \*************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var createFind = __webpack_require__(/*! ./_createFind */ "./node_modules/lodash/_createFind.js"),
    findIndex = __webpack_require__(/*! ./findIndex */ "./node_modules/lodash/findIndex.js");

/**
 * Iterates over elements of `collection`, returning the first element
 * `predicate` returns truthy for. The predicate is invoked with three
 * arguments: (value, index|key, collection).
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Collection
 * @param {Array|Object} collection The collection to inspect.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @param {number} [fromIndex=0] The index to search from.
 * @returns {*} Returns the matched element, else `undefined`.
 * @example
 *
 * var users = [
 *   { 'user': 'barney',  'age': 36, 'active': true },
 *   { 'user': 'fred',    'age': 40, 'active': false },
 *   { 'user': 'pebbles', 'age': 1,  'active': true }
 * ];
 *
 * _.find(users, function(o) { return o.age < 40; });
 * // => object for 'barney'
 *
 * // The `_.matches` iteratee shorthand.
 * _.find(users, { 'age': 1, 'active': true });
 * // => object for 'pebbles'
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.find(users, ['active', false]);
 * // => object for 'fred'
 *
 * // The `_.property` iteratee shorthand.
 * _.find(users, 'active');
 * // => object for 'barney'
 */
var find = createFind(findIndex);

module.exports = find;


/***/ }),

/***/ "./node_modules/lodash/findIndex.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/findIndex.js ***!
  \******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "./node_modules/lodash/_baseFindIndex.js"),
    baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
    toInteger = __webpack_require__(/*! ./toInteger */ "./node_modules/lodash/toInteger.js");

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max;

/**
 * This method is like `_.find` except that it returns the index of the first
 * element `predicate` returns truthy for instead of the element itself.
 *
 * @static
 * @memberOf _
 * @since 1.1.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @param {number} [fromIndex=0] The index to search from.
 * @returns {number} Returns the index of the found element, else `-1`.
 * @example
 *
 * var users = [
 *   { 'user': 'barney',  'active': false },
 *   { 'user': 'fred',    'active': false },
 *   { 'user': 'pebbles', 'active': true }
 * ];
 *
 * _.findIndex(users, function(o) { return o.user == 'barney'; });
 * // => 0
 *
 * // The `_.matches` iteratee shorthand.
 * _.findIndex(users, { 'user': 'fred', 'active': false });
 * // => 1
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.findIndex(users, ['active', false]);
 * // => 0
 *
 * // The `_.property` iteratee shorthand.
 * _.findIndex(users, 'active');
 * // => 2
 */
function findIndex(array, predicate, fromIndex) {
  var length = array == null ? 0 : array.length;
  if (!length) {
    return -1;
  }
  var index = fromIndex == null ? 0 : toInteger(fromIndex);
  if (index < 0) {
    index = nativeMax(length + index, 0);
  }
  return baseFindIndex(array, baseIteratee(predicate, 3), index);
}

module.exports = findIndex;


/***/ }),

/***/ "./node_modules/lodash/flatten.js":
/*!****************************************!*\
  !*** ./node_modules/lodash/flatten.js ***!
  \****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "./node_modules/lodash/_baseFlatten.js");

/**
 * Flattens `array` a single level deep.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to flatten.
 * @returns {Array} Returns the new flattened array.
 * @example
 *
 * _.flatten([1, [2, [3, [4]], 5]]);
 * // => [1, 2, [3, [4]], 5]
 */
function flatten(array) {
  var length = array == null ? 0 : array.length;
  return length ? baseFlatten(array, 1) : [];
}

module.exports = flatten;


/***/ }),

/***/ "./node_modules/lodash/fromPairs.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/fromPairs.js ***!
  \******************************************/
/***/ ((module) => {

/**
 * The inverse of `_.toPairs`; this method returns an object composed
 * from key-value `pairs`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {Array} pairs The key-value pairs.
 * @returns {Object} Returns the new object.
 * @example
 *
 * _.fromPairs([['a', 1], ['b', 2]]);
 * // => { 'a': 1, 'b': 2 }
 */
function fromPairs(pairs) {
  var index = -1,
      length = pairs == null ? 0 : pairs.length,
      result = {};

  while (++index < length) {
    var pair = pairs[index];
    result[pair[0]] = pair[1];
  }
  return result;
}

module.exports = fromPairs;


/***/ }),

/***/ "./node_modules/lodash/get.js":
/*!************************************!*\
  !*** ./node_modules/lodash/get.js ***!
  \************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js");

/**
 * Gets the value at `path` of `object`. If the resolved value is
 * `undefined`, the `defaultValue` is returned in its place.
 *
 * @static
 * @memberOf _
 * @since 3.7.0
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to get.
 * @param {*} [defaultValue] The value returned for `undefined` resolved values.
 * @returns {*} Returns the resolved value.
 * @example
 *
 * var object = { 'a': [{ 'b': { 'c': 3 } }] };
 *
 * _.get(object, 'a[0].b.c');
 * // => 3
 *
 * _.get(object, ['a', '0', 'b', 'c']);
 * // => 3
 *
 * _.get(object, 'a.b.c', 'default');
 * // => 'default'
 */
function get(object, path, defaultValue) {
  var result = object == null ? undefined : baseGet(object, path);
  return result === undefined ? defaultValue : result;
}

module.exports = get;


/***/ }),

/***/ "./node_modules/lodash/groupBy.js":
/*!****************************************!*\
  !*** ./node_modules/lodash/groupBy.js ***!
  \****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js"),
    createAggregator = __webpack_require__(/*! ./_createAggregator */ "./node_modules/lodash/_createAggregator.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Creates an object composed of keys generated from the results of running
 * each element of `collection` thru `iteratee`. The order of grouped values
 * is determined by the order they occur in `collection`. The corresponding
 * value of each key is an array of elements responsible for generating the
 * key. The iteratee is invoked with one argument: (value).
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
 * @returns {Object} Returns the composed aggregate object.
 * @example
 *
 * _.groupBy([6.1, 4.2, 6.3], Math.floor);
 * // => { '4': [4.2], '6': [6.1, 6.3] }
 *
 * // The `_.property` iteratee shorthand.
 * _.groupBy(['one', 'two', 'three'], 'length');
 * // => { '3': ['one', 'two'], '5': ['three'] }
 */
var groupBy = createAggregator(function(result, value, key) {
  if (hasOwnProperty.call(result, key)) {
    result[key].push(value);
  } else {
    baseAssignValue(result, key, [value]);
  }
});

module.exports = groupBy;


/***/ }),

/***/ "./node_modules/lodash/hasIn.js":
/*!**************************************!*\
  !*** ./node_modules/lodash/hasIn.js ***!
  \**************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseHasIn = __webpack_require__(/*! ./_baseHasIn */ "./node_modules/lodash/_baseHasIn.js"),
    hasPath = __webpack_require__(/*! ./_hasPath */ "./node_modules/lodash/_hasPath.js");

/**
 * Checks if `path` is a direct or inherited property of `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 * @example
 *
 * var object = _.create({ 'a': _.create({ 'b': 2 }) });
 *
 * _.hasIn(object, 'a');
 * // => true
 *
 * _.hasIn(object, 'a.b');
 * // => true
 *
 * _.hasIn(object, ['a', 'b']);
 * // => true
 *
 * _.hasIn(object, 'b');
 * // => false
 */
function hasIn(object, path) {
  return object != null && hasPath(object, path, baseHasIn);
}

module.exports = hasIn;


/***/ }),

/***/ "./node_modules/lodash/identity.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/identity.js ***!
  \*****************************************/
/***/ ((module) => {

/**
 * This method returns the first argument it receives.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Util
 * @param {*} value Any value.
 * @returns {*} Returns `value`.
 * @example
 *
 * var object = { 'a': 1 };
 *
 * console.log(_.identity(object) === object);
 * // => true
 */
function identity(value) {
  return value;
}

module.exports = identity;


/***/ }),

/***/ "./node_modules/lodash/includes.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/includes.js ***!
  \*****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseIndexOf = __webpack_require__(/*! ./_baseIndexOf */ "./node_modules/lodash/_baseIndexOf.js"),
    isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
    isString = __webpack_require__(/*! ./isString */ "./node_modules/lodash/isString.js"),
    toInteger = __webpack_require__(/*! ./toInteger */ "./node_modules/lodash/toInteger.js"),
    values = __webpack_require__(/*! ./values */ "./node_modules/lodash/values.js");

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max;

/**
 * Checks if `value` is in `collection`. If `collection` is a string, it's
 * checked for a substring of `value`, otherwise
 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * is used for equality comparisons. If `fromIndex` is negative, it's used as
 * the offset from the end of `collection`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Collection
 * @param {Array|Object|string} collection The collection to inspect.
 * @param {*} value The value to search for.
 * @param {number} [fromIndex=0] The index to search from.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
 * @returns {boolean} Returns `true` if `value` is found, else `false`.
 * @example
 *
 * _.includes([1, 2, 3], 1);
 * // => true
 *
 * _.includes([1, 2, 3], 1, 2);
 * // => false
 *
 * _.includes({ 'a': 1, 'b': 2 }, 1);
 * // => true
 *
 * _.includes('abcd', 'bc');
 * // => true
 */
function includes(collection, value, fromIndex, guard) {
  collection = isArrayLike(collection) ? collection : values(collection);
  fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;

  var length = collection.length;
  if (fromIndex < 0) {
    fromIndex = nativeMax(length + fromIndex, 0);
  }
  return isString(collection)
    ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
    : (!!length && baseIndexOf(collection, value, fromIndex) > -1);
}

module.exports = includes;


/***/ }),

/***/ "./node_modules/lodash/invert.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/invert.js ***!
  \***************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var constant = __webpack_require__(/*! ./constant */ "./node_modules/lodash/constant.js"),
    createInverter = __webpack_require__(/*! ./_createInverter */ "./node_modules/lodash/_createInverter.js"),
    identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/**
 * Used to resolve the
 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
 * of values.
 */
var nativeObjectToString = objectProto.toString;

/**
 * Creates an object composed of the inverted keys and values of `object`.
 * If `object` contains duplicate values, subsequent values overwrite
 * property assignments of previous values.
 *
 * @static
 * @memberOf _
 * @since 0.7.0
 * @category Object
 * @param {Object} object The object to invert.
 * @returns {Object} Returns the new inverted object.
 * @example
 *
 * var object = { 'a': 1, 'b': 2, 'c': 1 };
 *
 * _.invert(object);
 * // => { '1': 'c', '2': 'b' }
 */
var invert = createInverter(function(result, value, key) {
  if (value != null &&
      typeof value.toString != 'function') {
    value = nativeObjectToString.call(value);
  }

  result[value] = key;
}, constant(identity));

module.exports = invert;


/***/ }),

/***/ "./node_modules/lodash/isArguments.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/isArguments.js ***!
  \********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ "./node_modules/lodash/_baseIsArguments.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/** Built-in value references. */
var propertyIsEnumerable = objectProto.propertyIsEnumerable;

/**
 * Checks if `value` is likely an `arguments` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an `arguments` object,
 *  else `false`.
 * @example
 *
 * _.isArguments(function() { return arguments; }());
 * // => true
 *
 * _.isArguments([1, 2, 3]);
 * // => false
 */
var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
    !propertyIsEnumerable.call(value, 'callee');
};

module.exports = isArguments;


/***/ }),

/***/ "./node_modules/lodash/isArray.js":
/*!****************************************!*\
  !*** ./node_modules/lodash/isArray.js ***!
  \****************************************/
/***/ ((module) => {

/**
 * Checks if `value` is classified as an `Array` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an array, else `false`.
 * @example
 *
 * _.isArray([1, 2, 3]);
 * // => true
 *
 * _.isArray(document.body.children);
 * // => false
 *
 * _.isArray('abc');
 * // => false
 *
 * _.isArray(_.noop);
 * // => false
 */
var isArray = Array.isArray;

module.exports = isArray;


/***/ }),

/***/ "./node_modules/lodash/isArrayLike.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/isArrayLike.js ***!
  \********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
    isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js");

/**
 * Checks if `value` is array-like. A value is considered array-like if it's
 * not a function and has a `value.length` that's an integer greater than or
 * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
 * @example
 *
 * _.isArrayLike([1, 2, 3]);
 * // => true
 *
 * _.isArrayLike(document.body.children);
 * // => true
 *
 * _.isArrayLike('abc');
 * // => true
 *
 * _.isArrayLike(_.noop);
 * // => false
 */
function isArrayLike(value) {
  return value != null && isLength(value.length) && !isFunction(value);
}

module.exports = isArrayLike;


/***/ }),

/***/ "./node_modules/lodash/isArrayLikeObject.js":
/*!**************************************************!*\
  !*** ./node_modules/lodash/isArrayLikeObject.js ***!
  \**************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/**
 * This method is like `_.isArrayLike` except that it also checks if `value`
 * is an object.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an array-like object,
 *  else `false`.
 * @example
 *
 * _.isArrayLikeObject([1, 2, 3]);
 * // => true
 *
 * _.isArrayLikeObject(document.body.children);
 * // => true
 *
 * _.isArrayLikeObject('abc');
 * // => false
 *
 * _.isArrayLikeObject(_.noop);
 * // => false
 */
function isArrayLikeObject(value) {
  return isObjectLike(value) && isArrayLike(value);
}

module.exports = isArrayLikeObject;


/***/ }),

/***/ "./node_modules/lodash/isBuffer.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/isBuffer.js ***!
  \*****************************************/
/***/ ((module, exports, __webpack_require__) => {

/* module decorator */ module = __webpack_require__.nmd(module);
var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js"),
    stubFalse = __webpack_require__(/*! ./stubFalse */ "./node_modules/lodash/stubFalse.js");

/** Detect free variable `exports`. */
var freeExports =  true && exports && !exports.nodeType && exports;

/** Detect free variable `module`. */
var freeModule = freeExports && "object" == 'object' && module && !module.nodeType && module;

/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;

/** Built-in value references. */
var Buffer = moduleExports ? root.Buffer : undefined;

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;

/**
 * Checks if `value` is a buffer.
 *
 * @static
 * @memberOf _
 * @since 4.3.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
 * @example
 *
 * _.isBuffer(new Buffer(2));
 * // => true
 *
 * _.isBuffer(new Uint8Array(2));
 * // => false
 */
var isBuffer = nativeIsBuffer || stubFalse;

module.exports = isBuffer;


/***/ }),

/***/ "./node_modules/lodash/isDate.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/isDate.js ***!
  \***************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseIsDate = __webpack_require__(/*! ./_baseIsDate */ "./node_modules/lodash/_baseIsDate.js"),
    baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
    nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");

/* Node.js helper references. */
var nodeIsDate = nodeUtil && nodeUtil.isDate;

/**
 * Checks if `value` is classified as a `Date` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
 * @example
 *
 * _.isDate(new Date);
 * // => true
 *
 * _.isDate('Mon April 23 2012');
 * // => false
 */
var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;

module.exports = isDate;


/***/ }),

/***/ "./node_modules/lodash/isEmpty.js":
/*!****************************************!*\
  !*** ./node_modules/lodash/isEmpty.js ***!
  \****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseKeys = __webpack_require__(/*! ./_baseKeys */ "./node_modules/lodash/_baseKeys.js"),
    getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
    isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
    isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
    isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js"),
    isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");

/** `Object#toString` result references. */
var mapTag = '[object Map]',
    setTag = '[object Set]';

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Checks if `value` is an empty object, collection, map, or set.
 *
 * Objects are considered empty if they have no own enumerable string keyed
 * properties.
 *
 * Array-like values such as `arguments` objects, arrays, buffers, strings, or
 * jQuery-like collections are considered empty if they have a `length` of `0`.
 * Similarly, maps and sets are considered empty if they have a `size` of `0`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is empty, else `false`.
 * @example
 *
 * _.isEmpty(null);
 * // => true
 *
 * _.isEmpty(true);
 * // => true
 *
 * _.isEmpty(1);
 * // => true
 *
 * _.isEmpty([1, 2, 3]);
 * // => false
 *
 * _.isEmpty({ 'a': 1 });
 * // => false
 */
function isEmpty(value) {
  if (value == null) {
    return true;
  }
  if (isArrayLike(value) &&
      (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
        isBuffer(value) || isTypedArray(value) || isArguments(value))) {
    return !value.length;
  }
  var tag = getTag(value);
  if (tag == mapTag || tag == setTag) {
    return !value.size;
  }
  if (isPrototype(value)) {
    return !baseKeys(value).length;
  }
  for (var key in value) {
    if (hasOwnProperty.call(value, key)) {
      return false;
    }
  }
  return true;
}

module.exports = isEmpty;


/***/ }),

/***/ "./node_modules/lodash/isEqual.js":
/*!****************************************!*\
  !*** ./node_modules/lodash/isEqual.js ***!
  \****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js");

/**
 * Performs a deep comparison between two values to determine if they are
 * equivalent.
 *
 * **Note:** This method supports comparing arrays, array buffers, booleans,
 * date objects, error objects, maps, numbers, `Object` objects, regexes,
 * sets, strings, symbols, and typed arrays. `Object` objects are compared
 * by their own, not inherited, enumerable properties. Functions and DOM
 * nodes are compared by strict equality, i.e. `===`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * var object = { 'a': 1 };
 * var other = { 'a': 1 };
 *
 * _.isEqual(object, other);
 * // => true
 *
 * object === other;
 * // => false
 */
function isEqual(value, other) {
  return baseIsEqual(value, other);
}

module.exports = isEqual;


/***/ }),

/***/ "./node_modules/lodash/isEqualWith.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/isEqualWith.js ***!
  \********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js");

/**
 * This method is like `_.isEqual` except that it accepts `customizer` which
 * is invoked to compare values. If `customizer` returns `undefined`, comparisons
 * are handled by the method instead. The `customizer` is invoked with up to
 * six arguments: (objValue, othValue [, index|key, object, other, stack]).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @param {Function} [customizer] The function to customize comparisons.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * function isGreeting(value) {
 *   return /^h(?:i|ello)$/.test(value);
 * }
 *
 * function customizer(objValue, othValue) {
 *   if (isGreeting(objValue) && isGreeting(othValue)) {
 *     return true;
 *   }
 * }
 *
 * var array = ['hello', 'goodbye'];
 * var other = ['hi', 'goodbye'];
 *
 * _.isEqualWith(array, other, customizer);
 * // => true
 */
function isEqualWith(value, other, customizer) {
  customizer = typeof customizer == 'function' ? customizer : undefined;
  var result = customizer ? customizer(value, other) : undefined;
  return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;
}

module.exports = isEqualWith;


/***/ }),

/***/ "./node_modules/lodash/isFunction.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/isFunction.js ***!
  \*******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");

/** `Object#toString` result references. */
var asyncTag = '[object AsyncFunction]',
    funcTag = '[object Function]',
    genTag = '[object GeneratorFunction]',
    proxyTag = '[object Proxy]';

/**
 * Checks if `value` is classified as a `Function` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a function, else `false`.
 * @example
 *
 * _.isFunction(_);
 * // => true
 *
 * _.isFunction(/abc/);
 * // => false
 */
function isFunction(value) {
  if (!isObject(value)) {
    return false;
  }
  // The use of `Object#toString` avoids issues with the `typeof` operator
  // in Safari 9 which returns 'object' for typed arrays and other constructors.
  var tag = baseGetTag(value);
  return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
}

module.exports = isFunction;


/***/ }),

/***/ "./node_modules/lodash/isLength.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/isLength.js ***!
  \*****************************************/
/***/ ((module) => {

/** Used as references for various `Number` constants. */
var MAX_SAFE_INTEGER = 9007199254740991;

/**
 * Checks if `value` is a valid array-like length.
 *
 * **Note:** This method is loosely based on
 * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
 * @example
 *
 * _.isLength(3);
 * // => true
 *
 * _.isLength(Number.MIN_VALUE);
 * // => false
 *
 * _.isLength(Infinity);
 * // => false
 *
 * _.isLength('3');
 * // => false
 */
function isLength(value) {
  return typeof value == 'number' &&
    value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
}

module.exports = isLength;


/***/ }),

/***/ "./node_modules/lodash/isMap.js":
/*!**************************************!*\
  !*** ./node_modules/lodash/isMap.js ***!
  \**************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseIsMap = __webpack_require__(/*! ./_baseIsMap */ "./node_modules/lodash/_baseIsMap.js"),
    baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
    nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");

/* Node.js helper references. */
var nodeIsMap = nodeUtil && nodeUtil.isMap;

/**
 * Checks if `value` is classified as a `Map` object.
 *
 * @static
 * @memberOf _
 * @since 4.3.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a map, else `false`.
 * @example
 *
 * _.isMap(new Map);
 * // => true
 *
 * _.isMap(new WeakMap);
 * // => false
 */
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;

module.exports = isMap;


/***/ }),

/***/ "./node_modules/lodash/isNil.js":
/*!**************************************!*\
  !*** ./node_modules/lodash/isNil.js ***!
  \**************************************/
/***/ ((module) => {

/**
 * Checks if `value` is `null` or `undefined`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
 * @example
 *
 * _.isNil(null);
 * // => true
 *
 * _.isNil(void 0);
 * // => true
 *
 * _.isNil(NaN);
 * // => false
 */
function isNil(value) {
  return value == null;
}

module.exports = isNil;


/***/ }),

/***/ "./node_modules/lodash/isObject.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/isObject.js ***!
  \*****************************************/
/***/ ((module) => {

/**
 * Checks if `value` is the
 * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
 * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an object, else `false`.
 * @example
 *
 * _.isObject({});
 * // => true
 *
 * _.isObject([1, 2, 3]);
 * // => true
 *
 * _.isObject(_.noop);
 * // => true
 *
 * _.isObject(null);
 * // => false
 */
function isObject(value) {
  var type = typeof value;
  return value != null && (type == 'object' || type == 'function');
}

module.exports = isObject;


/***/ }),

/***/ "./node_modules/lodash/isObjectLike.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/isObjectLike.js ***!
  \*********************************************/
/***/ ((module) => {

/**
 * Checks if `value` is object-like. A value is object-like if it's not `null`
 * and has a `typeof` result of "object".
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
 * @example
 *
 * _.isObjectLike({});
 * // => true
 *
 * _.isObjectLike([1, 2, 3]);
 * // => true
 *
 * _.isObjectLike(_.noop);
 * // => false
 *
 * _.isObjectLike(null);
 * // => false
 */
function isObjectLike(value) {
  return value != null && typeof value == 'object';
}

module.exports = isObjectLike;


/***/ }),

/***/ "./node_modules/lodash/isPlainObject.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/isPlainObject.js ***!
  \**********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
    getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** `Object#toString` result references. */
var objectTag = '[object Object]';

/** Used for built-in method references. */
var funcProto = Function.prototype,
    objectProto = Object.prototype;

/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/** Used to infer the `Object` constructor. */
var objectCtorString = funcToString.call(Object);

/**
 * Checks if `value` is a plain object, that is, an object created by the
 * `Object` constructor or one with a `[[Prototype]]` of `null`.
 *
 * @static
 * @memberOf _
 * @since 0.8.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 * }
 *
 * _.isPlainObject(new Foo);
 * // => false
 *
 * _.isPlainObject([1, 2, 3]);
 * // => false
 *
 * _.isPlainObject({ 'x': 0, 'y': 0 });
 * // => true
 *
 * _.isPlainObject(Object.create(null));
 * // => true
 */
function isPlainObject(value) {
  if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
    return false;
  }
  var proto = getPrototype(value);
  if (proto === null) {
    return true;
  }
  var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
  return typeof Ctor == 'function' && Ctor instanceof Ctor &&
    funcToString.call(Ctor) == objectCtorString;
}

module.exports = isPlainObject;


/***/ }),

/***/ "./node_modules/lodash/isRegExp.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/isRegExp.js ***!
  \*****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseIsRegExp = __webpack_require__(/*! ./_baseIsRegExp */ "./node_modules/lodash/_baseIsRegExp.js"),
    baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
    nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");

/* Node.js helper references. */
var nodeIsRegExp = nodeUtil && nodeUtil.isRegExp;

/**
 * Checks if `value` is classified as a `RegExp` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
 * @example
 *
 * _.isRegExp(/abc/);
 * // => true
 *
 * _.isRegExp('/abc/');
 * // => false
 */
var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;

module.exports = isRegExp;


/***/ }),

/***/ "./node_modules/lodash/isSet.js":
/*!**************************************!*\
  !*** ./node_modules/lodash/isSet.js ***!
  \**************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseIsSet = __webpack_require__(/*! ./_baseIsSet */ "./node_modules/lodash/_baseIsSet.js"),
    baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
    nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");

/* Node.js helper references. */
var nodeIsSet = nodeUtil && nodeUtil.isSet;

/**
 * Checks if `value` is classified as a `Set` object.
 *
 * @static
 * @memberOf _
 * @since 4.3.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a set, else `false`.
 * @example
 *
 * _.isSet(new Set);
 * // => true
 *
 * _.isSet(new WeakSet);
 * // => false
 */
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;

module.exports = isSet;


/***/ }),

/***/ "./node_modules/lodash/isString.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/isString.js ***!
  \*****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** `Object#toString` result references. */
var stringTag = '[object String]';

/**
 * Checks if `value` is classified as a `String` primitive or object.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a string, else `false`.
 * @example
 *
 * _.isString('abc');
 * // => true
 *
 * _.isString(1);
 * // => false
 */
function isString(value) {
  return typeof value == 'string' ||
    (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
}

module.exports = isString;


/***/ }),

/***/ "./node_modules/lodash/isSymbol.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/isSymbol.js ***!
  \*****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
    isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");

/** `Object#toString` result references. */
var symbolTag = '[object Symbol]';

/**
 * Checks if `value` is classified as a `Symbol` primitive or object.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
 * @example
 *
 * _.isSymbol(Symbol.iterator);
 * // => true
 *
 * _.isSymbol('abc');
 * // => false
 */
function isSymbol(value) {
  return typeof value == 'symbol' ||
    (isObjectLike(value) && baseGetTag(value) == symbolTag);
}

module.exports = isSymbol;


/***/ }),

/***/ "./node_modules/lodash/isTypedArray.js":
/*!*********************************************!*\
  !*** ./node_modules/lodash/isTypedArray.js ***!
  \*********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ "./node_modules/lodash/_baseIsTypedArray.js"),
    baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
    nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");

/* Node.js helper references. */
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;

/**
 * Checks if `value` is classified as a typed array.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
 * @example
 *
 * _.isTypedArray(new Uint8Array);
 * // => true
 *
 * _.isTypedArray([]);
 * // => false
 */
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;

module.exports = isTypedArray;


/***/ }),

/***/ "./node_modules/lodash/isUndefined.js":
/*!********************************************!*\
  !*** ./node_modules/lodash/isUndefined.js ***!
  \********************************************/
/***/ ((module) => {

/**
 * Checks if `value` is `undefined`.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
 * @example
 *
 * _.isUndefined(void 0);
 * // => true
 *
 * _.isUndefined(null);
 * // => false
 */
function isUndefined(value) {
  return value === undefined;
}

module.exports = isUndefined;


/***/ }),

/***/ "./node_modules/lodash/keys.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/keys.js ***!
  \*************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "./node_modules/lodash/_arrayLikeKeys.js"),
    baseKeys = __webpack_require__(/*! ./_baseKeys */ "./node_modules/lodash/_baseKeys.js"),
    isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");

/**
 * Creates an array of the own enumerable property names of `object`.
 *
 * **Note:** Non-object values are coerced to objects. See the
 * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
 * for more details.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.keys(new Foo);
 * // => ['a', 'b'] (iteration order is not guaranteed)
 *
 * _.keys('hi');
 * // => ['0', '1']
 */
function keys(object) {
  return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
}

module.exports = keys;


/***/ }),

/***/ "./node_modules/lodash/keysIn.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/keysIn.js ***!
  \***************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "./node_modules/lodash/_arrayLikeKeys.js"),
    baseKeysIn = __webpack_require__(/*! ./_baseKeysIn */ "./node_modules/lodash/_baseKeysIn.js"),
    isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");

/**
 * Creates an array of the own and inherited enumerable property names of `object`.
 *
 * **Note:** Non-object values are coerced to objects.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.keysIn(new Foo);
 * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
 */
function keysIn(object) {
  return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
}

module.exports = keysIn;


/***/ }),

/***/ "./node_modules/lodash/last.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/last.js ***!
  \*************************************/
/***/ ((module) => {

/**
 * Gets the last element of `array`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to query.
 * @returns {*} Returns the last element of `array`.
 * @example
 *
 * _.last([1, 2, 3]);
 * // => 3
 */
function last(array) {
  var length = array == null ? 0 : array.length;
  return length ? array[length - 1] : undefined;
}

module.exports = last;


/***/ }),

/***/ "./node_modules/lodash/memoize.js":
/*!****************************************!*\
  !*** ./node_modules/lodash/memoize.js ***!
  \****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js");

/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';

/**
 * Creates a function that memoizes the result of `func`. If `resolver` is
 * provided, it determines the cache key for storing the result based on the
 * arguments provided to the memoized function. By default, the first argument
 * provided to the memoized function is used as the map cache key. The `func`
 * is invoked with the `this` binding of the memoized function.
 *
 * **Note:** The cache is exposed as the `cache` property on the memoized
 * function. Its creation may be customized by replacing the `_.memoize.Cache`
 * constructor with one whose instances implement the
 * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
 * method interface of `clear`, `delete`, `get`, `has`, and `set`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to have its output memoized.
 * @param {Function} [resolver] The function to resolve the cache key.
 * @returns {Function} Returns the new memoized function.
 * @example
 *
 * var object = { 'a': 1, 'b': 2 };
 * var other = { 'c': 3, 'd': 4 };
 *
 * var values = _.memoize(_.values);
 * values(object);
 * // => [1, 2]
 *
 * values(other);
 * // => [3, 4]
 *
 * object.a = 2;
 * values(object);
 * // => [1, 2]
 *
 * // Modify the result cache.
 * values.cache.set(object, ['a', 'b']);
 * values(object);
 * // => ['a', 'b']
 *
 * // Replace `_.memoize.Cache`.
 * _.memoize.Cache = WeakMap;
 */
function memoize(func, resolver) {
  if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
    throw new TypeError(FUNC_ERROR_TEXT);
  }
  var memoized = function() {
    var args = arguments,
        key = resolver ? resolver.apply(this, args) : args[0],
        cache = memoized.cache;

    if (cache.has(key)) {
      return cache.get(key);
    }
    var result = func.apply(this, args);
    memoized.cache = cache.set(key, result) || cache;
    return result;
  };
  memoized.cache = new (memoize.Cache || MapCache);
  return memoized;
}

// Expose `MapCache`.
memoize.Cache = MapCache;

module.exports = memoize;


/***/ }),

/***/ "./node_modules/lodash/merge.js":
/*!**************************************!*\
  !*** ./node_modules/lodash/merge.js ***!
  \**************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseMerge = __webpack_require__(/*! ./_baseMerge */ "./node_modules/lodash/_baseMerge.js"),
    createAssigner = __webpack_require__(/*! ./_createAssigner */ "./node_modules/lodash/_createAssigner.js");

/**
 * This method is like `_.assign` except that it recursively merges own and
 * inherited enumerable string keyed properties of source objects into the
 * destination object. Source properties that resolve to `undefined` are
 * skipped if a destination value exists. Array and plain object properties
 * are merged recursively. Other objects and value types are overridden by
 * assignment. Source objects are applied from left to right. Subsequent
 * sources overwrite property assignments of previous sources.
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 0.5.0
 * @category Object
 * @param {Object} object The destination object.
 * @param {...Object} [sources] The source objects.
 * @returns {Object} Returns `object`.
 * @example
 *
 * var object = {
 *   'a': [{ 'b': 2 }, { 'd': 4 }]
 * };
 *
 * var other = {
 *   'a': [{ 'c': 3 }, { 'e': 5 }]
 * };
 *
 * _.merge(object, other);
 * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
 */
var merge = createAssigner(function(object, source, srcIndex) {
  baseMerge(object, source, srcIndex);
});

module.exports = merge;


/***/ }),

/***/ "./node_modules/lodash/mergeWith.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/mergeWith.js ***!
  \******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseMerge = __webpack_require__(/*! ./_baseMerge */ "./node_modules/lodash/_baseMerge.js"),
    createAssigner = __webpack_require__(/*! ./_createAssigner */ "./node_modules/lodash/_createAssigner.js");

/**
 * This method is like `_.merge` except that it accepts `customizer` which
 * is invoked to produce the merged values of the destination and source
 * properties. If `customizer` returns `undefined`, merging is handled by the
 * method instead. The `customizer` is invoked with six arguments:
 * (objValue, srcValue, key, object, source, stack).
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The destination object.
 * @param {...Object} sources The source objects.
 * @param {Function} customizer The function to customize assigned values.
 * @returns {Object} Returns `object`.
 * @example
 *
 * function customizer(objValue, srcValue) {
 *   if (_.isArray(objValue)) {
 *     return objValue.concat(srcValue);
 *   }
 * }
 *
 * var object = { 'a': [1], 'b': [2] };
 * var other = { 'a': [3], 'b': [4] };
 *
 * _.mergeWith(object, other, customizer);
 * // => { 'a': [1, 3], 'b': [2, 4] }
 */
var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
  baseMerge(object, source, srcIndex, customizer);
});

module.exports = mergeWith;


/***/ }),

/***/ "./node_modules/lodash/negate.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/negate.js ***!
  \***************************************/
/***/ ((module) => {

/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';

/**
 * Creates a function that negates the result of the predicate `func`. The
 * `func` predicate is invoked with the `this` binding and arguments of the
 * created function.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Function
 * @param {Function} predicate The predicate to negate.
 * @returns {Function} Returns the new negated function.
 * @example
 *
 * function isEven(n) {
 *   return n % 2 == 0;
 * }
 *
 * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
 * // => [1, 3, 5]
 */
function negate(predicate) {
  if (typeof predicate != 'function') {
    throw new TypeError(FUNC_ERROR_TEXT);
  }
  return function() {
    var args = arguments;
    switch (args.length) {
      case 0: return !predicate.call(this);
      case 1: return !predicate.call(this, args[0]);
      case 2: return !predicate.call(this, args[0], args[1]);
      case 3: return !predicate.call(this, args[0], args[1], args[2]);
    }
    return !predicate.apply(this, args);
  };
}

module.exports = negate;


/***/ }),

/***/ "./node_modules/lodash/noop.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/noop.js ***!
  \*************************************/
/***/ ((module) => {

/**
 * This method returns `undefined`.
 *
 * @static
 * @memberOf _
 * @since 2.3.0
 * @category Util
 * @example
 *
 * _.times(2, _.noop);
 * // => [undefined, undefined]
 */
function noop() {
  // No operation performed.
}

module.exports = noop;


/***/ }),

/***/ "./node_modules/lodash/now.js":
/*!************************************!*\
  !*** ./node_modules/lodash/now.js ***!
  \************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");

/**
 * Gets the timestamp of the number of milliseconds that have elapsed since
 * the Unix epoch (1 January 1970 00:00:00 UTC).
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Date
 * @returns {number} Returns the timestamp.
 * @example
 *
 * _.defer(function(stamp) {
 *   console.log(_.now() - stamp);
 * }, _.now());
 * // => Logs the number of milliseconds it took for the deferred invocation.
 */
var now = function() {
  return root.Date.now();
};

module.exports = now;


/***/ }),

/***/ "./node_modules/lodash/omitBy.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/omitBy.js ***!
  \***************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
    negate = __webpack_require__(/*! ./negate */ "./node_modules/lodash/negate.js"),
    pickBy = __webpack_require__(/*! ./pickBy */ "./node_modules/lodash/pickBy.js");

/**
 * The opposite of `_.pickBy`; this method creates an object composed of
 * the own and inherited enumerable string keyed properties of `object` that
 * `predicate` doesn't return truthy for. The predicate is invoked with two
 * arguments: (value, key).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The source object.
 * @param {Function} [predicate=_.identity] The function invoked per property.
 * @returns {Object} Returns the new object.
 * @example
 *
 * var object = { 'a': 1, 'b': '2', 'c': 3 };
 *
 * _.omitBy(object, _.isNumber);
 * // => { 'b': '2' }
 */
function omitBy(object, predicate) {
  return pickBy(object, negate(baseIteratee(predicate)));
}

module.exports = omitBy;


/***/ }),

/***/ "./node_modules/lodash/orderBy.js":
/*!****************************************!*\
  !*** ./node_modules/lodash/orderBy.js ***!
  \****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseOrderBy = __webpack_require__(/*! ./_baseOrderBy */ "./node_modules/lodash/_baseOrderBy.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");

/**
 * This method is like `_.sortBy` except that it allows specifying the sort
 * orders of the iteratees to sort by. If `orders` is unspecified, all values
 * are sorted in ascending order. Otherwise, specify an order of "desc" for
 * descending or "asc" for ascending sort order of corresponding values.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
 *  The iteratees to sort by.
 * @param {string[]} [orders] The sort orders of `iteratees`.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
 * @returns {Array} Returns the new sorted array.
 * @example
 *
 * var users = [
 *   { 'user': 'fred',   'age': 48 },
 *   { 'user': 'barney', 'age': 34 },
 *   { 'user': 'fred',   'age': 40 },
 *   { 'user': 'barney', 'age': 36 }
 * ];
 *
 * // Sort by `user` in ascending order and by `age` in descending order.
 * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
 * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
 */
function orderBy(collection, iteratees, orders, guard) {
  if (collection == null) {
    return [];
  }
  if (!isArray(iteratees)) {
    iteratees = iteratees == null ? [] : [iteratees];
  }
  orders = guard ? undefined : orders;
  if (!isArray(orders)) {
    orders = orders == null ? [] : [orders];
  }
  return baseOrderBy(collection, iteratees, orders);
}

module.exports = orderBy;


/***/ }),

/***/ "./node_modules/lodash/pick.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/pick.js ***!
  \*************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var basePick = __webpack_require__(/*! ./_basePick */ "./node_modules/lodash/_basePick.js"),
    flatRest = __webpack_require__(/*! ./_flatRest */ "./node_modules/lodash/_flatRest.js");

/**
 * Creates an object composed of the picked `object` properties.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The source object.
 * @param {...(string|string[])} [paths] The property paths to pick.
 * @returns {Object} Returns the new object.
 * @example
 *
 * var object = { 'a': 1, 'b': '2', 'c': 3 };
 *
 * _.pick(object, ['a', 'c']);
 * // => { 'a': 1, 'c': 3 }
 */
var pick = flatRest(function(object, paths) {
  return object == null ? {} : basePick(object, paths);
});

module.exports = pick;


/***/ }),

/***/ "./node_modules/lodash/pickBy.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/pickBy.js ***!
  \***************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
    baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
    basePickBy = __webpack_require__(/*! ./_basePickBy */ "./node_modules/lodash/_basePickBy.js"),
    getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "./node_modules/lodash/_getAllKeysIn.js");

/**
 * Creates an object composed of the `object` properties `predicate` returns
 * truthy for. The predicate is invoked with two arguments: (value, key).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The source object.
 * @param {Function} [predicate=_.identity] The function invoked per property.
 * @returns {Object} Returns the new object.
 * @example
 *
 * var object = { 'a': 1, 'b': '2', 'c': 3 };
 *
 * _.pickBy(object, _.isNumber);
 * // => { 'a': 1, 'c': 3 }
 */
function pickBy(object, predicate) {
  if (object == null) {
    return {};
  }
  var props = arrayMap(getAllKeysIn(object), function(prop) {
    return [prop];
  });
  predicate = baseIteratee(predicate);
  return basePickBy(object, props, function(value, path) {
    return predicate(value, path[0]);
  });
}

module.exports = pickBy;


/***/ }),

/***/ "./node_modules/lodash/property.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/property.js ***!
  \*****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseProperty = __webpack_require__(/*! ./_baseProperty */ "./node_modules/lodash/_baseProperty.js"),
    basePropertyDeep = __webpack_require__(/*! ./_basePropertyDeep */ "./node_modules/lodash/_basePropertyDeep.js"),
    isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
    toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");

/**
 * Creates a function that returns the value at `path` of a given object.
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Util
 * @param {Array|string} path The path of the property to get.
 * @returns {Function} Returns the new accessor function.
 * @example
 *
 * var objects = [
 *   { 'a': { 'b': 2 } },
 *   { 'a': { 'b': 1 } }
 * ];
 *
 * _.map(objects, _.property('a.b'));
 * // => [2, 1]
 *
 * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
 * // => [1, 2]
 */
function property(path) {
  return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
}

module.exports = property;


/***/ }),

/***/ "./node_modules/lodash/range.js":
/*!**************************************!*\
  !*** ./node_modules/lodash/range.js ***!
  \**************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var createRange = __webpack_require__(/*! ./_createRange */ "./node_modules/lodash/_createRange.js");

/**
 * Creates an array of numbers (positive and/or negative) progressing from
 * `start` up to, but not including, `end`. A step of `-1` is used if a negative
 * `start` is specified without an `end` or `step`. If `end` is not specified,
 * it's set to `start` with `start` then set to `0`.
 *
 * **Note:** JavaScript follows the IEEE-754 standard for resolving
 * floating-point values which can produce unexpected results.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Util
 * @param {number} [start=0] The start of the range.
 * @param {number} end The end of the range.
 * @param {number} [step=1] The value to increment or decrement by.
 * @returns {Array} Returns the range of numbers.
 * @see _.inRange, _.rangeRight
 * @example
 *
 * _.range(4);
 * // => [0, 1, 2, 3]
 *
 * _.range(-4);
 * // => [0, -1, -2, -3]
 *
 * _.range(1, 5);
 * // => [1, 2, 3, 4]
 *
 * _.range(0, 20, 5);
 * // => [0, 5, 10, 15]
 *
 * _.range(0, -4, -1);
 * // => [0, -1, -2, -3]
 *
 * _.range(1, 4, 0);
 * // => [1, 1, 1]
 *
 * _.range(0);
 * // => []
 */
var range = createRange();

module.exports = range;


/***/ }),

/***/ "./node_modules/lodash/some.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/some.js ***!
  \*************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var arraySome = __webpack_require__(/*! ./_arraySome */ "./node_modules/lodash/_arraySome.js"),
    baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
    baseSome = __webpack_require__(/*! ./_baseSome */ "./node_modules/lodash/_baseSome.js"),
    isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
    isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js");

/**
 * Checks if `predicate` returns truthy for **any** element of `collection`.
 * Iteration is stopped once `predicate` returns truthy. The predicate is
 * invoked with three arguments: (value, index|key, collection).
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
 * @returns {boolean} Returns `true` if any element passes the predicate check,
 *  else `false`.
 * @example
 *
 * _.some([null, 0, 'yes', false], Boolean);
 * // => true
 *
 * var users = [
 *   { 'user': 'barney', 'active': true },
 *   { 'user': 'fred',   'active': false }
 * ];
 *
 * // The `_.matches` iteratee shorthand.
 * _.some(users, { 'user': 'barney', 'active': false });
 * // => false
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.some(users, ['active', false]);
 * // => true
 *
 * // The `_.property` iteratee shorthand.
 * _.some(users, 'active');
 * // => true
 */
function some(collection, predicate, guard) {
  var func = isArray(collection) ? arraySome : baseSome;
  if (guard && isIterateeCall(collection, predicate, guard)) {
    predicate = undefined;
  }
  return func(collection, baseIteratee(predicate, 3));
}

module.exports = some;


/***/ }),

/***/ "./node_modules/lodash/sortedUniq.js":
/*!*******************************************!*\
  !*** ./node_modules/lodash/sortedUniq.js ***!
  \*******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseSortedUniq = __webpack_require__(/*! ./_baseSortedUniq */ "./node_modules/lodash/_baseSortedUniq.js");

/**
 * This method is like `_.uniq` except that it's designed and optimized
 * for sorted arrays.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @returns {Array} Returns the new duplicate free array.
 * @example
 *
 * _.sortedUniq([1, 1, 2]);
 * // => [1, 2]
 */
function sortedUniq(array) {
  return (array && array.length)
    ? baseSortedUniq(array)
    : [];
}

module.exports = sortedUniq;


/***/ }),

/***/ "./node_modules/lodash/stubArray.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/stubArray.js ***!
  \******************************************/
/***/ ((module) => {

/**
 * This method returns a new empty array.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {Array} Returns the new empty array.
 * @example
 *
 * var arrays = _.times(2, _.stubArray);
 *
 * console.log(arrays);
 * // => [[], []]
 *
 * console.log(arrays[0] === arrays[1]);
 * // => false
 */
function stubArray() {
  return [];
}

module.exports = stubArray;


/***/ }),

/***/ "./node_modules/lodash/stubFalse.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/stubFalse.js ***!
  \******************************************/
/***/ ((module) => {

/**
 * This method returns `false`.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {boolean} Returns `false`.
 * @example
 *
 * _.times(2, _.stubFalse);
 * // => [false, false]
 */
function stubFalse() {
  return false;
}

module.exports = stubFalse;


/***/ }),

/***/ "./node_modules/lodash/sum.js":
/*!************************************!*\
  !*** ./node_modules/lodash/sum.js ***!
  \************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseSum = __webpack_require__(/*! ./_baseSum */ "./node_modules/lodash/_baseSum.js"),
    identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js");

/**
 * Computes the sum of the values in `array`.
 *
 * @static
 * @memberOf _
 * @since 3.4.0
 * @category Math
 * @param {Array} array The array to iterate over.
 * @returns {number} Returns the sum.
 * @example
 *
 * _.sum([4, 2, 8, 6]);
 * // => 20
 */
function sum(array) {
  return (array && array.length)
    ? baseSum(array, identity)
    : 0;
}

module.exports = sum;


/***/ }),

/***/ "./node_modules/lodash/throttle.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/throttle.js ***!
  \*****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var debounce = __webpack_require__(/*! ./debounce */ "./node_modules/lodash/debounce.js"),
    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");

/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';

/**
 * Creates a throttled function that only invokes `func` at most once per
 * every `wait` milliseconds. The throttled function comes with a `cancel`
 * method to cancel delayed `func` invocations and a `flush` method to
 * immediately invoke them. Provide `options` to indicate whether `func`
 * should be invoked on the leading and/or trailing edge of the `wait`
 * timeout. The `func` is invoked with the last arguments provided to the
 * throttled function. Subsequent calls to the throttled function return the
 * result of the last `func` invocation.
 *
 * **Note:** If `leading` and `trailing` options are `true`, `func` is
 * invoked on the trailing edge of the timeout only if the throttled function
 * is invoked more than once during the `wait` timeout.
 *
 * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
 * until to the next tick, similar to `setTimeout` with a timeout of `0`.
 *
 * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
 * for details over the differences between `_.throttle` and `_.debounce`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to throttle.
 * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
 * @param {Object} [options={}] The options object.
 * @param {boolean} [options.leading=true]
 *  Specify invoking on the leading edge of the timeout.
 * @param {boolean} [options.trailing=true]
 *  Specify invoking on the trailing edge of the timeout.
 * @returns {Function} Returns the new throttled function.
 * @example
 *
 * // Avoid excessively updating the position while scrolling.
 * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
 *
 * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
 * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
 * jQuery(element).on('click', throttled);
 *
 * // Cancel the trailing throttled invocation.
 * jQuery(window).on('popstate', throttled.cancel);
 */
function throttle(func, wait, options) {
  var leading = true,
      trailing = true;

  if (typeof func != 'function') {
    throw new TypeError(FUNC_ERROR_TEXT);
  }
  if (isObject(options)) {
    leading = 'leading' in options ? !!options.leading : leading;
    trailing = 'trailing' in options ? !!options.trailing : trailing;
  }
  return debounce(func, wait, {
    'leading': leading,
    'maxWait': wait,
    'trailing': trailing
  });
}

module.exports = throttle;


/***/ }),

/***/ "./node_modules/lodash/toFinite.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/toFinite.js ***!
  \*****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var toNumber = __webpack_require__(/*! ./toNumber */ "./node_modules/lodash/toNumber.js");

/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0,
    MAX_INTEGER = 1.7976931348623157e+308;

/**
 * Converts `value` to a finite number.
 *
 * @static
 * @memberOf _
 * @since 4.12.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {number} Returns the converted number.
 * @example
 *
 * _.toFinite(3.2);
 * // => 3.2
 *
 * _.toFinite(Number.MIN_VALUE);
 * // => 5e-324
 *
 * _.toFinite(Infinity);
 * // => 1.7976931348623157e+308
 *
 * _.toFinite('3.2');
 * // => 3.2
 */
function toFinite(value) {
  if (!value) {
    return value === 0 ? value : 0;
  }
  value = toNumber(value);
  if (value === INFINITY || value === -INFINITY) {
    var sign = (value < 0 ? -1 : 1);
    return sign * MAX_INTEGER;
  }
  return value === value ? value : 0;
}

module.exports = toFinite;


/***/ }),

/***/ "./node_modules/lodash/toInteger.js":
/*!******************************************!*\
  !*** ./node_modules/lodash/toInteger.js ***!
  \******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var toFinite = __webpack_require__(/*! ./toFinite */ "./node_modules/lodash/toFinite.js");

/**
 * Converts `value` to an integer.
 *
 * **Note:** This method is loosely based on
 * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {number} Returns the converted integer.
 * @example
 *
 * _.toInteger(3.2);
 * // => 3
 *
 * _.toInteger(Number.MIN_VALUE);
 * // => 0
 *
 * _.toInteger(Infinity);
 * // => 1.7976931348623157e+308
 *
 * _.toInteger('3.2');
 * // => 3
 */
function toInteger(value) {
  var result = toFinite(value),
      remainder = result % 1;

  return result === result ? (remainder ? result - remainder : result) : 0;
}

module.exports = toInteger;


/***/ }),

/***/ "./node_modules/lodash/toNumber.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/toNumber.js ***!
  \*****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseTrim = __webpack_require__(/*! ./_baseTrim */ "./node_modules/lodash/_baseTrim.js"),
    isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
    isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");

/** Used as references for various `Number` constants. */
var NAN = 0 / 0;

/** Used to detect bad signed hexadecimal string values. */
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;

/** Used to detect binary string values. */
var reIsBinary = /^0b[01]+$/i;

/** Used to detect octal string values. */
var reIsOctal = /^0o[0-7]+$/i;

/** Built-in method references without a dependency on `root`. */
var freeParseInt = parseInt;

/**
 * Converts `value` to a number.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to process.
 * @returns {number} Returns the number.
 * @example
 *
 * _.toNumber(3.2);
 * // => 3.2
 *
 * _.toNumber(Number.MIN_VALUE);
 * // => 5e-324
 *
 * _.toNumber(Infinity);
 * // => Infinity
 *
 * _.toNumber('3.2');
 * // => 3.2
 */
function toNumber(value) {
  if (typeof value == 'number') {
    return value;
  }
  if (isSymbol(value)) {
    return NAN;
  }
  if (isObject(value)) {
    var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
    value = isObject(other) ? (other + '') : other;
  }
  if (typeof value != 'string') {
    return value === 0 ? value : +value;
  }
  value = baseTrim(value);
  var isBinary = reIsBinary.test(value);
  return (isBinary || reIsOctal.test(value))
    ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
    : (reIsBadHex.test(value) ? NAN : +value);
}

module.exports = toNumber;


/***/ }),

/***/ "./node_modules/lodash/toPlainObject.js":
/*!**********************************************!*\
  !*** ./node_modules/lodash/toPlainObject.js ***!
  \**********************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
    keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");

/**
 * Converts `value` to a plain object flattening inherited enumerable string
 * keyed properties of `value` to own properties of the plain object.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {Object} Returns the converted plain object.
 * @example
 *
 * function Foo() {
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.assign({ 'a': 1 }, new Foo);
 * // => { 'a': 1, 'b': 2 }
 *
 * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
 * // => { 'a': 1, 'b': 2, 'c': 3 }
 */
function toPlainObject(value) {
  return copyObject(value, keysIn(value));
}

module.exports = toPlainObject;


/***/ }),

/***/ "./node_modules/lodash/toString.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/toString.js ***!
  \*****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseToString = __webpack_require__(/*! ./_baseToString */ "./node_modules/lodash/_baseToString.js");

/**
 * Converts `value` to a string. An empty string is returned for `null`
 * and `undefined` values. The sign of `-0` is preserved.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {string} Returns the converted string.
 * @example
 *
 * _.toString(null);
 * // => ''
 *
 * _.toString(-0);
 * // => '-0'
 *
 * _.toString([1, 2, 3]);
 * // => '1,2,3'
 */
function toString(value) {
  return value == null ? '' : baseToString(value);
}

module.exports = toString;


/***/ }),

/***/ "./node_modules/lodash/uniq.js":
/*!*************************************!*\
  !*** ./node_modules/lodash/uniq.js ***!
  \*************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseUniq = __webpack_require__(/*! ./_baseUniq */ "./node_modules/lodash/_baseUniq.js");

/**
 * Creates a duplicate-free version of an array, using
 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons, in which only the first occurrence of each element
 * is kept. The order of result values is determined by the order they occur
 * in the array.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @returns {Array} Returns the new duplicate free array.
 * @example
 *
 * _.uniq([2, 1, 2]);
 * // => [2, 1]
 */
function uniq(array) {
  return (array && array.length) ? baseUniq(array) : [];
}

module.exports = uniq;


/***/ }),

/***/ "./node_modules/lodash/uniqBy.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/uniqBy.js ***!
  \***************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
    baseUniq = __webpack_require__(/*! ./_baseUniq */ "./node_modules/lodash/_baseUniq.js");

/**
 * This method is like `_.uniq` except that it accepts `iteratee` which is
 * invoked for each element in `array` to generate the criterion by which
 * uniqueness is computed. The order of result values is determined by the
 * order they occur in the array. The iteratee is invoked with one argument:
 * (value).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
 * @returns {Array} Returns the new duplicate free array.
 * @example
 *
 * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
 * // => [2.1, 1.2]
 *
 * // The `_.property` iteratee shorthand.
 * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
 * // => [{ 'x': 1 }, { 'x': 2 }]
 */
function uniqBy(array, iteratee) {
  return (array && array.length) ? baseUniq(array, baseIteratee(iteratee, 2)) : [];
}

module.exports = uniqBy;


/***/ }),

/***/ "./node_modules/lodash/uniqueId.js":
/*!*****************************************!*\
  !*** ./node_modules/lodash/uniqueId.js ***!
  \*****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var toString = __webpack_require__(/*! ./toString */ "./node_modules/lodash/toString.js");

/** Used to generate unique IDs. */
var idCounter = 0;

/**
 * Generates a unique ID. If `prefix` is given, the ID is appended to it.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Util
 * @param {string} [prefix=''] The value to prefix the ID with.
 * @returns {string} Returns the unique ID.
 * @example
 *
 * _.uniqueId('contact_');
 * // => 'contact_104'
 *
 * _.uniqueId();
 * // => '105'
 */
function uniqueId(prefix) {
  var id = ++idCounter;
  return toString(prefix) + id;
}

module.exports = uniqueId;


/***/ }),

/***/ "./node_modules/lodash/values.js":
/*!***************************************!*\
  !*** ./node_modules/lodash/values.js ***!
  \***************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseValues = __webpack_require__(/*! ./_baseValues */ "./node_modules/lodash/_baseValues.js"),
    keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");

/**
 * Creates an array of the own enumerable string keyed property values of `object`.
 *
 * **Note:** Non-object values are coerced to objects.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property values.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.values(new Foo);
 * // => [1, 2] (iteration order is not guaranteed)
 *
 * _.values('hi');
 * // => ['h', 'i']
 */
function values(object) {
  return object == null ? [] : baseValues(object, keys(object));
}

module.exports = values;


/***/ }),

/***/ "./node_modules/lodash/without.js":
/*!****************************************!*\
  !*** ./node_modules/lodash/without.js ***!
  \****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

var baseDifference = __webpack_require__(/*! ./_baseDifference */ "./node_modules/lodash/_baseDifference.js"),
    baseRest = __webpack_require__(/*! ./_baseRest */ "./node_modules/lodash/_baseRest.js"),
    isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "./node_modules/lodash/isArrayLikeObject.js");

/**
 * Creates an array excluding all given values using
 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons.
 *
 * **Note:** Unlike `_.pull`, this method returns a new array.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @param {...*} [values] The values to exclude.
 * @returns {Array} Returns the new array of filtered values.
 * @see _.difference, _.xor
 * @example
 *
 * _.without([2, 1, 2, 3], 1, 2);
 * // => [3]
 */
var without = baseRest(function(array, values) {
  return isArrayLikeObject(array)
    ? baseDifference(array, values)
    : [];
});

module.exports = without;


/***/ }),

/***/ "./src/css/patternfly-4-cockpit.scss":
/*!*******************************************!*\
  !*** ./src/css/patternfly-4-cockpit.scss ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@fortawesome/fontawesome-svg-core/styles.css":
/*!*******************************************************************!*\
  !*** ./node_modules/@fortawesome/fontawesome-svg-core/styles.css ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Alert/alert.css":
/*!******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Alert/alert.css ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/AlertGroup/alert-group.css":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/AlertGroup/alert-group.css ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Backdrop/backdrop.css":
/*!************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Backdrop/backdrop.css ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Badge/badge.css":
/*!******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Badge/badge.css ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Breadcrumb/breadcrumb.css":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Breadcrumb/breadcrumb.css ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Button/button.css":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Button/button.css ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Card/card.css":
/*!****************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Card/card.css ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Check/check.css":
/*!******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Check/check.css ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Chip/chip.css":
/*!****************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Chip/chip.css ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/ChipGroup/chip-group.css":
/*!***************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/ChipGroup/chip-group.css ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/ClipboardCopy/clipboard-copy.css":
/*!***********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/ClipboardCopy/clipboard-copy.css ***!
  \***********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Content/content.css":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Content/content.css ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/DatePicker/date-picker.css":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/DatePicker/date-picker.css ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Divider/divider.css":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Divider/divider.css ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Drawer/drawer.css":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Drawer/drawer.css ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Dropdown/dropdown.css":
/*!************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Dropdown/dropdown.css ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/DualListSelector/dual-list-selector.css":
/*!******************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/DualListSelector/dual-list-selector.css ***!
  \******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/EmptyState/empty-state.css":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/EmptyState/empty-state.css ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/ExpandableSection/expandable-section.css":
/*!*******************************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/ExpandableSection/expandable-section.css ***!
  \*******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/FileUpload/file-upload.css":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/FileUpload/file-upload.css ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Form/form.css":
/*!****************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Form/form.css ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/FormControl/form-control.css":
/*!*******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/FormControl/form-control.css ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/HelperText/helper-text.css":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/HelperText/helper-text.css ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/InlineEdit/inline-edit.css":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/InlineEdit/inline-edit.css ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/InputGroup/input-group.css":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/InputGroup/input-group.css ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Label/label.css":
/*!******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Label/label.css ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/LabelGroup/label-group.css":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/LabelGroup/label-group.css ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/ModalBox/modal-box.css":
/*!*************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/ModalBox/modal-box.css ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Nav/nav.css":
/*!**************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Nav/nav.css ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/NumberInput/number-input.css":
/*!*******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/NumberInput/number-input.css ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/OptionsMenu/options-menu.css":
/*!*******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/OptionsMenu/options-menu.css ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Page/page.css":
/*!****************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Page/page.css ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Pagination/pagination.css":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Pagination/pagination.css ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Popover/popover.css":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Popover/popover.css ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Popper/Popper.css":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Popper/Popper.css ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Progress/progress.css":
/*!************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Progress/progress.css ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Radio/radio.css":
/*!******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Radio/radio.css ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/SearchInput/search-input.css":
/*!*******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/SearchInput/search-input.css ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Select/select.css":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Select/select.css ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/SimpleList/simple-list.css":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/SimpleList/simple-list.css ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Spinner/spinner.css":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Spinner/spinner.css ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Switch/switch.css":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Switch/switch.css ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/TabContent/tab-content.css":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/TabContent/tab-content.css ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Table/table-grid.css":
/*!***********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Table/table-grid.css ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Table/table-scrollable.css":
/*!*****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Table/table-scrollable.css ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Table/table-tree-view.css":
/*!****************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Table/table-tree-view.css ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Table/table.css":
/*!******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Table/table.css ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Tabs/tabs.css":
/*!****************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Tabs/tabs.css ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Title/title.css":
/*!******************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Title/title.css ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/ToggleGroup/toggle-group.css":
/*!*******************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/ToggleGroup/toggle-group.css ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Tooltip/tooltip.css":
/*!**********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Tooltip/tooltip.css ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/TreeView/tree-view.css":
/*!*************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/TreeView/tree-view.css ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/components/Wizard/wizard.css":
/*!********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/components/Wizard/wizard.css ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/layouts/Bullseye/bullseye.css":
/*!*********************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/layouts/Bullseye/bullseye.css ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/layouts/Grid/grid.css":
/*!*************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/layouts/Grid/grid.css ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/@patternfly/react-styles/css/utilities/Accessibility/accessibility.css":
/*!*********************************************************************************************!*\
  !*** ./node_modules/@patternfly/react-styles/css/utilities/Accessibility/accessibility.css ***!
  \*********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./src/css/branding.css":
/*!******************************!*\
  !*** ./src/css/branding.css ***!
  \******************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./src/css/ds.css":
/*!************************!*\
  !*** ./src/css/ds.css ***!
  \************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin


/***/ }),

/***/ "./node_modules/object-assign/index.js":
/*!*********************************************!*\
  !*** ./node_modules/object-assign/index.js ***!
  \*********************************************/
/***/ ((module) => {

"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/


/* eslint-disable no-unused-vars */
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
var hasOwnProperty = Object.prototype.hasOwnProperty;
var propIsEnumerable = Object.prototype.propertyIsEnumerable;

function toObject(val) {
	if (val === null || val === undefined) {
		throw new TypeError('Object.assign cannot be called with null or undefined');
	}

	return Object(val);
}

function shouldUseNative() {
	try {
		if (!Object.assign) {
			return false;
		}

		// Detect buggy property enumeration order in older V8 versions.

		// https://bugs.chromium.org/p/v8/issues/detail?id=4118
		var test1 = new String('abc');  // eslint-disable-line no-new-wrappers
		test1[5] = 'de';
		if (Object.getOwnPropertyNames(test1)[0] === '5') {
			return false;
		}

		// https://bugs.chromium.org/p/v8/issues/detail?id=3056
		var test2 = {};
		for (var i = 0; i < 10; i++) {
			test2['_' + String.fromCharCode(i)] = i;
		}
		var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
			return test2[n];
		});
		if (order2.join('') !== '0123456789') {
			return false;
		}

		// https://bugs.chromium.org/p/v8/issues/detail?id=3056
		var test3 = {};
		'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
			test3[letter] = letter;
		});
		if (Object.keys(Object.assign({}, test3)).join('') !==
				'abcdefghijklmnopqrst') {
			return false;
		}

		return true;
	} catch (err) {
		// We don't expect any of the above to throw, but better to be safe.
		return false;
	}
}

module.exports = shouldUseNative() ? Object.assign : function (target, source) {
	var from;
	var to = toObject(target);
	var symbols;

	for (var s = 1; s < arguments.length; s++) {
		from = Object(arguments[s]);

		for (var key in from) {
			if (hasOwnProperty.call(from, key)) {
				to[key] = from[key];
			}
		}

		if (getOwnPropertySymbols) {
			symbols = getOwnPropertySymbols(from);
			for (var i = 0; i < symbols.length; i++) {
				if (propIsEnumerable.call(from, symbols[i])) {
					to[symbols[i]] = from[symbols[i]];
				}
			}
		}
	}

	return to;
};


/***/ }),

/***/ "./node_modules/prop-types/checkPropTypes.js":
/*!***************************************************!*\
  !*** ./node_modules/prop-types/checkPropTypes.js ***!
  \***************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/**
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */



var printWarning = function() {};

if (true) {
  var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js");
  var loggedTypeFailures = {};
  var has = __webpack_require__(/*! ./lib/has */ "./node_modules/prop-types/lib/has.js");

  printWarning = function(text) {
    var message = 'Warning: ' + text;
    if (typeof console !== 'undefined') {
      console.error(message);
    }
    try {
      // --- Welcome to debugging React ---
      // This error was thrown as a convenience so that you can use this stack
      // to find the callsite that caused this warning to fire.
      throw new Error(message);
    } catch (x) { /**/ }
  };
}

/**
 * Assert that the values match with the type specs.
 * Error messages are memorized and will only be shown once.
 *
 * @param {object} typeSpecs Map of name to a ReactPropType
 * @param {object} values Runtime values that need to be type-checked
 * @param {string} location e.g. "prop", "context", "child context"
 * @param {string} componentName Name of the component for error messages.
 * @param {?Function} getStack Returns the component stack.
 * @private
 */
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
  if (true) {
    for (var typeSpecName in typeSpecs) {
      if (has(typeSpecs, typeSpecName)) {
        var error;
        // Prop type validation may throw. In case they do, we don't want to
        // fail the render phase where it didn't fail before. So we log it.
        // After these have been cleaned up, we'll let them throw.
        try {
          // This is intentionally an invariant that gets caught. It's the same
          // behavior as without this statement except with a better message.
          if (typeof typeSpecs[typeSpecName] !== 'function') {
            var err = Error(
              (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
              'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
              'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
            );
            err.name = 'Invariant Violation';
            throw err;
          }
          error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
        } catch (ex) {
          error = ex;
        }
        if (error && !(error instanceof Error)) {
          printWarning(
            (componentName || 'React class') + ': type specification of ' +
            location + ' `' + typeSpecName + '` is invalid; the type checker ' +
            'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
            'You may have forgotten to pass an argument to the type checker ' +
            'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
            'shape all require an argument).'
          );
        }
        if (error instanceof Error && !(error.message in loggedTypeFailures)) {
          // Only monitor this failure once because there tends to be a lot of the
          // same error.
          loggedTypeFailures[error.message] = true;

          var stack = getStack ? getStack() : '';

          printWarning(
            'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
          );
        }
      }
    }
  }
}

/**
 * Resets warning cache when testing.
 *
 * @private
 */
checkPropTypes.resetWarningCache = function() {
  if (true) {
    loggedTypeFailures = {};
  }
}

module.exports = checkPropTypes;


/***/ }),

/***/ "./node_modules/prop-types/factoryWithTypeCheckers.js":
/*!************************************************************!*\
  !*** ./node_modules/prop-types/factoryWithTypeCheckers.js ***!
  \************************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";
/**
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */



var ReactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
var assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");

var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js");
var has = __webpack_require__(/*! ./lib/has */ "./node_modules/prop-types/lib/has.js");
var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js");

var printWarning = function() {};

if (true) {
  printWarning = function(text) {
    var message = 'Warning: ' + text;
    if (typeof console !== 'undefined') {
      console.error(message);
    }
    try {
      // --- Welcome to debugging React ---
      // This error was thrown as a convenience so that you can use this stack
      // to find the callsite that caused this warning to fire.
      throw new Error(message);
    } catch (x) {}
  };
}

function emptyFunctionThatReturnsNull() {
  return null;
}

module.exports = function(isValidElement, throwOnDirectAccess) {
  /* global Symbol */
  var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.

  /**
   * Returns the iterator method function contained on the iterable object.
   *
   * Be sure to invoke the function with the iterable as context:
   *
   *     var iteratorFn = getIteratorFn(myIterable);
   *     if (iteratorFn) {
   *       var iterator = iteratorFn.call(myIterable);
   *       ...
   *     }
   *
   * @param {?object} maybeIterable
   * @return {?function}
   */
  function getIteratorFn(maybeIterable) {
    var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
    if (typeof iteratorFn === 'function') {
      return iteratorFn;
    }
  }

  /**
   * Collection of methods that allow declaration and validation of props that are
   * supplied to React components. Example usage:
   *
   *   var Props = require('ReactPropTypes');
   *   var MyArticle = React.createClass({
   *     propTypes: {
   *       // An optional string prop named "description".
   *       description: Props.string,
   *
   *       // A required enum prop named "category".
   *       category: Props.oneOf(['News','Photos']).isRequired,
   *
   *       // A prop named "dialog" that requires an instance of Dialog.
   *       dialog: Props.instanceOf(Dialog).isRequired
   *     },
   *     render: function() { ... }
   *   });
   *
   * A more formal specification of how these methods are used:
   *
   *   type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
   *   decl := ReactPropTypes.{type}(.isRequired)?
   *
   * Each and every declaration produces a function with the same signature. This
   * allows the creation of custom validation functions. For example:
   *
   *  var MyLink = React.createClass({
   *    propTypes: {
   *      // An optional string or URI prop named "href".
   *      href: function(props, propName, componentName) {
   *        var propValue = props[propName];
   *        if (propValue != null && typeof propValue !== 'string' &&
   *            !(propValue instanceof URI)) {
   *          return new Error(
   *            'Expected a string or an URI for ' + propName + ' in ' +
   *            componentName
   *          );
   *        }
   *      }
   *    },
   *    render: function() {...}
   *  });
   *
   * @internal
   */

  var ANONYMOUS = '<<anonymous>>';

  // Important!
  // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
  var ReactPropTypes = {
    array: createPrimitiveTypeChecker('array'),
    bigint: createPrimitiveTypeChecker('bigint'),
    bool: createPrimitiveTypeChecker('boolean'),
    func: createPrimitiveTypeChecker('function'),
    number: createPrimitiveTypeChecker('number'),
    object: createPrimitiveTypeChecker('object'),
    string: createPrimitiveTypeChecker('string'),
    symbol: createPrimitiveTypeChecker('symbol'),

    any: createAnyTypeChecker(),
    arrayOf: createArrayOfTypeChecker,
    element: createElementTypeChecker(),
    elementType: createElementTypeTypeChecker(),
    instanceOf: createInstanceTypeChecker,
    node: createNodeChecker(),
    objectOf: createObjectOfTypeChecker,
    oneOf: createEnumTypeChecker,
    oneOfType: createUnionTypeChecker,
    shape: createShapeTypeChecker,
    exact: createStrictShapeTypeChecker,
  };

  /**
   * inlined Object.is polyfill to avoid requiring consumers ship their own
   * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
   */
  /*eslint-disable no-self-compare*/
  function is(x, y) {
    // SameValue algorithm
    if (x === y) {
      // Steps 1-5, 7-10
      // Steps 6.b-6.e: +0 != -0
      return x !== 0 || 1 / x === 1 / y;
    } else {
      // Step 6.a: NaN == NaN
      return x !== x && y !== y;
    }
  }
  /*eslint-enable no-self-compare*/

  /**
   * We use an Error-like object for backward compatibility as people may call
   * PropTypes directly and inspect their output. However, we don't use real
   * Errors anymore. We don't inspect their stack anyway, and creating them
   * is prohibitively expensive if they are created too often, such as what
   * happens in oneOfType() for any type before the one that matched.
   */
  function PropTypeError(message, data) {
    this.message = message;
    this.data = data && typeof data === 'object' ? data: {};
    this.stack = '';
  }
  // Make `instanceof Error` still work for returned errors.
  PropTypeError.prototype = Error.prototype;

  function createChainableTypeChecker(validate) {
    if (true) {
      var manualPropTypeCallCache = {};
      var manualPropTypeWarningCount = 0;
    }
    function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
      componentName = componentName || ANONYMOUS;
      propFullName = propFullName || propName;

      if (secret !== ReactPropTypesSecret) {
        if (throwOnDirectAccess) {
          // New behavior only for users of `prop-types` package
          var err = new Error(
            'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
            'Use `PropTypes.checkPropTypes()` to call them. ' +
            'Read more at http://fb.me/use-check-prop-types'
          );
          err.name = 'Invariant Violation';
          throw err;
        } else if ( true && typeof console !== 'undefined') {
          // Old behavior for people using React.PropTypes
          var cacheKey = componentName + ':' + propName;
          if (
            !manualPropTypeCallCache[cacheKey] &&
            // Avoid spamming the console because they are often not actionable except for lib authors
            manualPropTypeWarningCount < 3
          ) {
            printWarning(
              'You are manually calling a React.PropTypes validation ' +
              'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
              'and will throw in the standalone `prop-types` package. ' +
              'You may be seeing this warning due to a third-party PropTypes ' +
              'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
            );
            manualPropTypeCallCache[cacheKey] = true;
            manualPropTypeWarningCount++;
          }
        }
      }
      if (props[propName] == null) {
        if (isRequired) {
          if (props[propName] === null) {
            return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
          }
          return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
        }
        return null;
      } else {
        return validate(props, propName, componentName, location, propFullName);
      }
    }

    var chainedCheckType = checkType.bind(null, false);
    chainedCheckType.isRequired = checkType.bind(null, true);

    return chainedCheckType;
  }

  function createPrimitiveTypeChecker(expectedType) {
    function validate(props, propName, componentName, location, propFullName, secret) {
      var propValue = props[propName];
      var propType = getPropType(propValue);
      if (propType !== expectedType) {
        // `propValue` being instance of, say, date/regexp, pass the 'object'
        // check, but we can offer a more precise error message here rather than
        // 'of type `object`'.
        var preciseType = getPreciseType(propValue);

        return new PropTypeError(
          'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
          {expectedType: expectedType}
        );
      }
      return null;
    }
    return createChainableTypeChecker(validate);
  }

  function createAnyTypeChecker() {
    return createChainableTypeChecker(emptyFunctionThatReturnsNull);
  }

  function createArrayOfTypeChecker(typeChecker) {
    function validate(props, propName, componentName, location, propFullName) {
      if (typeof typeChecker !== 'function') {
        return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
      }
      var propValue = props[propName];
      if (!Array.isArray(propValue)) {
        var propType = getPropType(propValue);
        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
      }
      for (var i = 0; i < propValue.length; i++) {
        var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
        if (error instanceof Error) {
          return error;
        }
      }
      return null;
    }
    return createChainableTypeChecker(validate);
  }

  function createElementTypeChecker() {
    function validate(props, propName, componentName, location, propFullName) {
      var propValue = props[propName];
      if (!isValidElement(propValue)) {
        var propType = getPropType(propValue);
        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
      }
      return null;
    }
    return createChainableTypeChecker(validate);
  }

  function createElementTypeTypeChecker() {
    function validate(props, propName, componentName, location, propFullName) {
      var propValue = props[propName];
      if (!ReactIs.isValidElementType(propValue)) {
        var propType = getPropType(propValue);
        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
      }
      return null;
    }
    return createChainableTypeChecker(validate);
  }

  function createInstanceTypeChecker(expectedClass) {
    function validate(props, propName, componentName, location, propFullName) {
      if (!(props[propName] instanceof expectedClass)) {
        var expectedClassName = expectedClass.name || ANONYMOUS;
        var actualClassName = getClassName(props[propName]);
        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
      }
      return null;
    }
    return createChainableTypeChecker(validate);
  }

  function createEnumTypeChecker(expectedValues) {
    if (!Array.isArray(expectedValues)) {
      if (true) {
        if (arguments.length > 1) {
          printWarning(
            'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
            'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
          );
        } else {
          printWarning('Invalid argument supplied to oneOf, expected an array.');
        }
      }
      return emptyFunctionThatReturnsNull;
    }

    function validate(props, propName, componentName, location, propFullName) {
      var propValue = props[propName];
      for (var i = 0; i < expectedValues.length; i++) {
        if (is(propValue, expectedValues[i])) {
          return null;
        }
      }

      var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
        var type = getPreciseType(value);
        if (type === 'symbol') {
          return String(value);
        }
        return value;
      });
      return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
    }
    return createChainableTypeChecker(validate);
  }

  function createObjectOfTypeChecker(typeChecker) {
    function validate(props, propName, componentName, location, propFullName) {
      if (typeof typeChecker !== 'function') {
        return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
      }
      var propValue = props[propName];
      var propType = getPropType(propValue);
      if (propType !== 'object') {
        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
      }
      for (var key in propValue) {
        if (has(propValue, key)) {
          var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
          if (error instanceof Error) {
            return error;
          }
        }
      }
      return null;
    }
    return createChainableTypeChecker(validate);
  }

  function createUnionTypeChecker(arrayOfTypeCheckers) {
    if (!Array.isArray(arrayOfTypeCheckers)) {
       true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0;
      return emptyFunctionThatReturnsNull;
    }

    for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
      var checker = arrayOfTypeCheckers[i];
      if (typeof checker !== 'function') {
        printWarning(
          'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
          'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
        );
        return emptyFunctionThatReturnsNull;
      }
    }

    function validate(props, propName, componentName, location, propFullName) {
      var expectedTypes = [];
      for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
        var checker = arrayOfTypeCheckers[i];
        var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
        if (checkerResult == null) {
          return null;
        }
        if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
          expectedTypes.push(checkerResult.data.expectedType);
        }
      }
      var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
      return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
    }
    return createChainableTypeChecker(validate);
  }

  function createNodeChecker() {
    function validate(props, propName, componentName, location, propFullName) {
      if (!isNode(props[propName])) {
        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
      }
      return null;
    }
    return createChainableTypeChecker(validate);
  }

  function invalidValidatorError(componentName, location, propFullName, key, type) {
    return new PropTypeError(
      (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
      'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
    );
  }

  function createShapeTypeChecker(shapeTypes) {
    function validate(props, propName, componentName, location, propFullName) {
      var propValue = props[propName];
      var propType = getPropType(propValue);
      if (propType !== 'object') {
        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
      }
      for (var key in shapeTypes) {
        var checker = shapeTypes[key];
        if (typeof checker !== 'function') {
          return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
        }
        var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
        if (error) {
          return error;
        }
      }
      return null;
    }
    return createChainableTypeChecker(validate);
  }

  function createStrictShapeTypeChecker(shapeTypes) {
    function validate(props, propName, componentName, location, propFullName) {
      var propValue = props[propName];
      var propType = getPropType(propValue);
      if (propType !== 'object') {
        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
      }
      // We need to check all keys in case some are required but missing from props.
      var allKeys = assign({}, props[propName], shapeTypes);
      for (var key in allKeys) {
        var checker = shapeTypes[key];
        if (has(shapeTypes, key) && typeof checker !== 'function') {
          return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
        }
        if (!checker) {
          return new PropTypeError(
            'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
            '\nBad object: ' + JSON.stringify(props[propName], null, '  ') +
            '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, '  ')
          );
        }
        var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
        if (error) {
          return error;
        }
      }
      return null;
    }

    return createChainableTypeChecker(validate);
  }

  function isNode(propValue) {
    switch (typeof propValue) {
      case 'number':
      case 'string':
      case 'undefined':
        return true;
      case 'boolean':
        return !propValue;
      case 'object':
        if (Array.isArray(propValue)) {
          return propValue.every(isNode);
        }
        if (propValue === null || isValidElement(propValue)) {
          return true;
        }

        var iteratorFn = getIteratorFn(propValue);
        if (iteratorFn) {
          var iterator = iteratorFn.call(propValue);
          var step;
          if (iteratorFn !== propValue.entries) {
            while (!(step = iterator.next()).done) {
              if (!isNode(step.value)) {
                return false;
              }
            }
          } else {
            // Iterator will provide entry [k,v] tuples rather than values.
            while (!(step = iterator.next()).done) {
              var entry = step.value;
              if (entry) {
                if (!isNode(entry[1])) {
                  return false;
                }
              }
            }
          }
        } else {
          return false;
        }

        return true;
      default:
        return false;
    }
  }

  function isSymbol(propType, propValue) {
    // Native Symbol.
    if (propType === 'symbol') {
      return true;
    }

    // falsy value can't be a Symbol
    if (!propValue) {
      return false;
    }

    // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
    if (propValue['@@toStringTag'] === 'Symbol') {
      return true;
    }

    // Fallback for non-spec compliant Symbols which are polyfilled.
    if (typeof Symbol === 'function' && propValue instanceof Symbol) {
      return true;
    }

    return false;
  }

  // Equivalent of `typeof` but with special handling for array and regexp.
  function getPropType(propValue) {
    var propType = typeof propValue;
    if (Array.isArray(propValue)) {
      return 'array';
    }
    if (propValue instanceof RegExp) {
      // Old webkits (at least until Android 4.0) return 'function' rather than
      // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
      // passes PropTypes.object.
      return 'object';
    }
    if (isSymbol(propType, propValue)) {
      return 'symbol';
    }
    return propType;
  }

  // This handles more types than `getPropType`. Only used for error messages.
  // See `createPrimitiveTypeChecker`.
  function getPreciseType(propValue) {
    if (typeof propValue === 'undefined' || propValue === null) {
      return '' + propValue;
    }
    var propType = getPropType(propValue);
    if (propType === 'object') {
      if (propValue instanceof Date) {
        return 'date';
      } else if (propValue instanceof RegExp) {
        return 'regexp';
      }
    }
    return propType;
  }

  // Returns a string that is postfixed to a warning about an invalid type.
  // For example, "undefined" or "of type array"
  function getPostfixForTypeWarning(value) {
    var type = getPreciseType(value);
    switch (type) {
      case 'array':
      case 'object':
        return 'an ' + type;
      case 'boolean':
      case 'date':
      case 'regexp':
        return 'a ' + type;
      default:
        return type;
    }
  }

  // Returns class name of the object, if any.
  function getClassName(propValue) {
    if (!propValue.constructor || !propValue.constructor.name) {
      return ANONYMOUS;
    }
    return propValue.constructor.name;
  }

  ReactPropTypes.checkPropTypes = checkPropTypes;
  ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
  ReactPropTypes.PropTypes = ReactPropTypes;

  return ReactPropTypes;
};


/***/ }),

/***/ "./node_modules/prop-types/index.js":
/*!******************************************!*\
  !*** ./node_modules/prop-types/index.js ***!
  \******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

/**
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

if (true) {
  var ReactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");

  // By explicitly using `prop-types` you are opting into new development behavior.
  // http://fb.me/prop-types-in-prod
  var throwOnDirectAccess = true;
  module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "./node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
} else {}


/***/ }),

/***/ "./node_modules/prop-types/lib/ReactPropTypesSecret.js":
/*!*************************************************************!*\
  !*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
  \*************************************************************/
/***/ ((module) => {

"use strict";
/**
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */



var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';

module.exports = ReactPropTypesSecret;


/***/ }),

/***/ "./node_modules/prop-types/lib/has.js":
/*!********************************************!*\
  !*** ./node_modules/prop-types/lib/has.js ***!
  \********************************************/
/***/ ((module) => {

module.exports = Function.call.bind(Object.prototype.hasOwnProperty);


/***/ }),

/***/ "./node_modules/react-dom/cjs/react-dom.development.js":
/*!*************************************************************!*\
  !*** ./node_modules/react-dom/cjs/react-dom.development.js ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/** @license React v17.0.2
 * react-dom.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */



if (true) {
  (function() {
'use strict';

var React = __webpack_require__(/*! react */ "./node_modules/react/index.js");
var _assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");
var Scheduler = __webpack_require__(/*! scheduler */ "./node_modules/scheduler/index.js");
var tracing = __webpack_require__(/*! scheduler/tracing */ "./node_modules/scheduler/tracing.js");

var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;

// by calls to these methods by a Babel plugin.
//
// In PROD (or in packages without access to React internals),
// they are left as they are instead.

function warn(format) {
  {
    for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
      args[_key - 1] = arguments[_key];
    }

    printWarning('warn', format, args);
  }
}
function error(format) {
  {
    for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
      args[_key2 - 1] = arguments[_key2];
    }

    printWarning('error', format, args);
  }
}

function printWarning(level, format, args) {
  // When changing this logic, you might want to also
  // update consoleWithStackDev.www.js as well.
  {
    var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
    var stack = ReactDebugCurrentFrame.getStackAddendum();

    if (stack !== '') {
      format += '%s';
      args = args.concat([stack]);
    }

    var argsWithFormat = args.map(function (item) {
      return '' + item;
    }); // Careful: RN currently depends on this prefix

    argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
    // breaks IE9: https://github.com/facebook/react/issues/13610
    // eslint-disable-next-line react-internal/no-production-logging

    Function.prototype.apply.call(console[level], console, argsWithFormat);
  }
}

if (!React) {
  {
    throw Error( "ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM." );
  }
}

var FunctionComponent = 0;
var ClassComponent = 1;
var IndeterminateComponent = 2; // Before we know whether it is function or class

var HostRoot = 3; // Root of a host tree. Could be nested inside another node.

var HostPortal = 4; // A subtree. Could be an entry point to a different renderer.

var HostComponent = 5;
var HostText = 6;
var Fragment = 7;
var Mode = 8;
var ContextConsumer = 9;
var ContextProvider = 10;
var ForwardRef = 11;
var Profiler = 12;
var SuspenseComponent = 13;
var MemoComponent = 14;
var SimpleMemoComponent = 15;
var LazyComponent = 16;
var IncompleteClassComponent = 17;
var DehydratedFragment = 18;
var SuspenseListComponent = 19;
var FundamentalComponent = 20;
var ScopeComponent = 21;
var Block = 22;
var OffscreenComponent = 23;
var LegacyHiddenComponent = 24;

// Filter certain DOM attributes (e.g. src, href) if their values are empty strings.

var enableProfilerTimer = true; // Record durations for commit and passive effects phases.

var enableFundamentalAPI = false; // Experimental Scope support.
var enableNewReconciler = false; // Errors that are thrown while unmounting (or after in the case of passive effects)
var warnAboutStringRefs = false;

var allNativeEvents = new Set();
/**
 * Mapping from registration name to event name
 */


var registrationNameDependencies = {};
/**
 * Mapping from lowercase registration names to the properly cased version,
 * used to warn in the case of missing event handlers. Available
 * only in true.
 * @type {Object}
 */

var possibleRegistrationNames =  {} ; // Trust the developer to only use possibleRegistrationNames in true

function registerTwoPhaseEvent(registrationName, dependencies) {
  registerDirectEvent(registrationName, dependencies);
  registerDirectEvent(registrationName + 'Capture', dependencies);
}
function registerDirectEvent(registrationName, dependencies) {
  {
    if (registrationNameDependencies[registrationName]) {
      error('EventRegistry: More than one plugin attempted to publish the same ' + 'registration name, `%s`.', registrationName);
    }
  }

  registrationNameDependencies[registrationName] = dependencies;

  {
    var lowerCasedName = registrationName.toLowerCase();
    possibleRegistrationNames[lowerCasedName] = registrationName;

    if (registrationName === 'onDoubleClick') {
      possibleRegistrationNames.ondblclick = registrationName;
    }
  }

  for (var i = 0; i < dependencies.length; i++) {
    allNativeEvents.add(dependencies[i]);
  }
}

var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');

// A reserved attribute.
// It is handled by React separately and shouldn't be written to the DOM.
var RESERVED = 0; // A simple string attribute.
// Attributes that aren't in the filter are presumed to have this type.

var STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called
// "enumerated" attributes with "true" and "false" as possible values.
// When true, it should be set to a "true" string.
// When false, it should be set to a "false" string.

var BOOLEANISH_STRING = 2; // A real boolean attribute.
// When true, it should be present (set either to an empty string or its name).
// When false, it should be omitted.

var BOOLEAN = 3; // An attribute that can be used as a flag as well as with a value.
// When true, it should be present (set either to an empty string or its name).
// When false, it should be omitted.
// For any other value, should be present with that value.

var OVERLOADED_BOOLEAN = 4; // An attribute that must be numeric or parse as a numeric.
// When falsy, it should be removed.

var NUMERIC = 5; // An attribute that must be positive numeric or parse as a positive numeric.
// When falsy, it should be removed.

var POSITIVE_NUMERIC = 6;

/* eslint-disable max-len */
var ATTRIBUTE_NAME_START_CHAR = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
/* eslint-enable max-len */

var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
var ROOT_ATTRIBUTE_NAME = 'data-reactroot';
var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');
var hasOwnProperty = Object.prototype.hasOwnProperty;
var illegalAttributeNameCache = {};
var validatedAttributeNameCache = {};
function isAttributeNameSafe(attributeName) {
  if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {
    return true;
  }

  if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {
    return false;
  }

  if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {
    validatedAttributeNameCache[attributeName] = true;
    return true;
  }

  illegalAttributeNameCache[attributeName] = true;

  {
    error('Invalid attribute name: `%s`', attributeName);
  }

  return false;
}
function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
  if (propertyInfo !== null) {
    return propertyInfo.type === RESERVED;
  }

  if (isCustomComponentTag) {
    return false;
  }

  if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
    return true;
  }

  return false;
}
function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
  if (propertyInfo !== null && propertyInfo.type === RESERVED) {
    return false;
  }

  switch (typeof value) {
    case 'function': // $FlowIssue symbol is perfectly valid here

    case 'symbol':
      // eslint-disable-line
      return true;

    case 'boolean':
      {
        if (isCustomComponentTag) {
          return false;
        }

        if (propertyInfo !== null) {
          return !propertyInfo.acceptsBooleans;
        } else {
          var prefix = name.toLowerCase().slice(0, 5);
          return prefix !== 'data-' && prefix !== 'aria-';
        }
      }

    default:
      return false;
  }
}
function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {
  if (value === null || typeof value === 'undefined') {
    return true;
  }

  if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) {
    return true;
  }

  if (isCustomComponentTag) {
    return false;
  }

  if (propertyInfo !== null) {

    switch (propertyInfo.type) {
      case BOOLEAN:
        return !value;

      case OVERLOADED_BOOLEAN:
        return value === false;

      case NUMERIC:
        return isNaN(value);

      case POSITIVE_NUMERIC:
        return isNaN(value) || value < 1;
    }
  }

  return false;
}
function getPropertyInfo(name) {
  return properties.hasOwnProperty(name) ? properties[name] : null;
}

function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) {
  this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
  this.attributeName = attributeName;
  this.attributeNamespace = attributeNamespace;
  this.mustUseProperty = mustUseProperty;
  this.propertyName = name;
  this.type = type;
  this.sanitizeURL = sanitizeURL;
  this.removeEmptyString = removeEmptyString;
} // When adding attributes to this list, be sure to also add them to
// the `possibleStandardNames` module to ensure casing and incorrect
// name warnings.


var properties = {}; // These props are reserved by React. They shouldn't be written to the DOM.

var reservedProps = ['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular
// elements (not just inputs). Now that ReactDOMInput assigns to the
// defaultValue property -- do we need this?
'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'];
reservedProps.forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
  name, // attributeName
  null, // attributeNamespace
  false, // sanitizeURL
  false);
}); // A few React string attributes have a different name.
// This is a mapping from React prop names to the attribute names.

[['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
  var name = _ref[0],
      attributeName = _ref[1];
  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  attributeName, // attributeName
  null, // attributeNamespace
  false, // sanitizeURL
  false);
}); // These are "enumerated" HTML attributes that accept "true" and "false".
// In React, we let users pass `true` and `false` even though technically
// these aren't boolean attributes (they are coerced to strings).

['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  name.toLowerCase(), // attributeName
  null, // attributeNamespace
  false, // sanitizeURL
  false);
}); // These are "enumerated" SVG attributes that accept "true" and "false".
// In React, we let users pass `true` and `false` even though technically
// these aren't boolean attributes (they are coerced to strings).
// Since these are SVG attributes, their attribute names are case-sensitive.

['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  name, // attributeName
  null, // attributeNamespace
  false, // sanitizeURL
  false);
}); // These are HTML boolean attributes.

['allowFullScreen', 'async', // Note: there is a special case that prevents it from being written to the DOM
// on the client side because the browsers are inconsistent. Instead we call focus().
'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'disableRemotePlayback', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', // Microdata
'itemScope'].forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty
  name.toLowerCase(), // attributeName
  null, // attributeNamespace
  false, // sanitizeURL
  false);
}); // These are the few React props that we set as DOM properties
// rather than attributes. These are all booleans.

['checked', // Note: `option.selected` is not updated if `select.multiple` is
// disabled with `removeAttribute`. We have special logic for handling this.
'multiple', 'muted', 'selected' // NOTE: if you add a camelCased prop to this list,
// you'll need to set attributeName to name.toLowerCase()
// instead in the assignment below.
].forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty
  name, // attributeName
  null, // attributeNamespace
  false, // sanitizeURL
  false);
}); // These are HTML attributes that are "overloaded booleans": they behave like
// booleans, but can also accept a string value.

['capture', 'download' // NOTE: if you add a camelCased prop to this list,
// you'll need to set attributeName to name.toLowerCase()
// instead in the assignment below.
].forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty
  name, // attributeName
  null, // attributeNamespace
  false, // sanitizeURL
  false);
}); // These are HTML attributes that must be positive numbers.

['cols', 'rows', 'size', 'span' // NOTE: if you add a camelCased prop to this list,
// you'll need to set attributeName to name.toLowerCase()
// instead in the assignment below.
].forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty
  name, // attributeName
  null, // attributeNamespace
  false, // sanitizeURL
  false);
}); // These are HTML attributes that must be numbers.

['rowSpan', 'start'].forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty
  name.toLowerCase(), // attributeName
  null, // attributeNamespace
  false, // sanitizeURL
  false);
});
var CAMELIZE = /[\-\:]([a-z])/g;

var capitalize = function (token) {
  return token[1].toUpperCase();
}; // This is a list of all SVG attributes that need special casing, namespacing,
// or boolean value assignment. Regular attributes that just accept strings
// and have the same names are omitted, just like in the HTML attribute filter.
// Some of these attributes can be hard to find. This list was created by
// scraping the MDN documentation.


['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height' // NOTE: if you add a camelCased prop to this list,
// you'll need to set attributeName to name.toLowerCase()
// instead in the assignment below.
].forEach(function (attributeName) {
  var name = attributeName.replace(CAMELIZE, capitalize);
  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  attributeName, null, // attributeNamespace
  false, // sanitizeURL
  false);
}); // String SVG attributes with the xlink namespace.

['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type' // NOTE: if you add a camelCased prop to this list,
// you'll need to set attributeName to name.toLowerCase()
// instead in the assignment below.
].forEach(function (attributeName) {
  var name = attributeName.replace(CAMELIZE, capitalize);
  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  attributeName, 'http://www.w3.org/1999/xlink', false, // sanitizeURL
  false);
}); // String SVG attributes with the xml namespace.

['xml:base', 'xml:lang', 'xml:space' // NOTE: if you add a camelCased prop to this list,
// you'll need to set attributeName to name.toLowerCase()
// instead in the assignment below.
].forEach(function (attributeName) {
  var name = attributeName.replace(CAMELIZE, capitalize);
  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  attributeName, 'http://www.w3.org/XML/1998/namespace', false, // sanitizeURL
  false);
}); // These attribute exists both in HTML and SVG.
// The attribute name is case-sensitive in SVG so we can't just use
// the React name like we do for attributes that exist only in HTML.

['tabIndex', 'crossOrigin'].forEach(function (attributeName) {
  properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
  attributeName.toLowerCase(), // attributeName
  null, // attributeNamespace
  false, // sanitizeURL
  false);
}); // These attributes accept URLs. These must not allow javascript: URLS.
// These will also need to accept Trusted Types object in the future.

var xlinkHref = 'xlinkHref';
properties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty
'xlink:href', 'http://www.w3.org/1999/xlink', true, // sanitizeURL
false);
['src', 'href', 'action', 'formAction'].forEach(function (attributeName) {
  properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
  attributeName.toLowerCase(), // attributeName
  null, // attributeNamespace
  true, // sanitizeURL
  true);
});

// and any newline or tab are filtered out as if they're not part of the URL.
// https://url.spec.whatwg.org/#url-parsing
// Tab or newline are defined as \r\n\t:
// https://infra.spec.whatwg.org/#ascii-tab-or-newline
// A C0 control is a code point in the range \u0000 NULL to \u001F
// INFORMATION SEPARATOR ONE, inclusive:
// https://infra.spec.whatwg.org/#c0-control-or-space

/* eslint-disable max-len */

var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i;
var didWarn = false;

function sanitizeURL(url) {
  {
    if (!didWarn && isJavaScriptProtocol.test(url)) {
      didWarn = true;

      error('A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(url));
    }
  }
}

/**
 * Get the value for a property on a node. Only used in DEV for SSR validation.
 * The "expected" argument is used as a hint of what the expected value is.
 * Some properties have multiple equivalent values.
 */
function getValueForProperty(node, name, expected, propertyInfo) {
  {
    if (propertyInfo.mustUseProperty) {
      var propertyName = propertyInfo.propertyName;
      return node[propertyName];
    } else {
      if ( propertyInfo.sanitizeURL) {
        // If we haven't fully disabled javascript: URLs, and if
        // the hydration is successful of a javascript: URL, we
        // still want to warn on the client.
        sanitizeURL('' + expected);
      }

      var attributeName = propertyInfo.attributeName;
      var stringValue = null;

      if (propertyInfo.type === OVERLOADED_BOOLEAN) {
        if (node.hasAttribute(attributeName)) {
          var value = node.getAttribute(attributeName);

          if (value === '') {
            return true;
          }

          if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
            return value;
          }

          if (value === '' + expected) {
            return expected;
          }

          return value;
        }
      } else if (node.hasAttribute(attributeName)) {
        if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
          // We had an attribute but shouldn't have had one, so read it
          // for the error message.
          return node.getAttribute(attributeName);
        }

        if (propertyInfo.type === BOOLEAN) {
          // If this was a boolean, it doesn't matter what the value is
          // the fact that we have it is the same as the expected.
          return expected;
        } // Even if this property uses a namespace we use getAttribute
        // because we assume its namespaced name is the same as our config.
        // To use getAttributeNS we need the local name which we don't have
        // in our config atm.


        stringValue = node.getAttribute(attributeName);
      }

      if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
        return stringValue === null ? expected : stringValue;
      } else if (stringValue === '' + expected) {
        return expected;
      } else {
        return stringValue;
      }
    }
  }
}
/**
 * Get the value for a attribute on a node. Only used in DEV for SSR validation.
 * The third argument is used as a hint of what the expected value is. Some
 * attributes have multiple equivalent values.
 */

function getValueForAttribute(node, name, expected) {
  {
    if (!isAttributeNameSafe(name)) {
      return;
    } // If the object is an opaque reference ID, it's expected that
    // the next prop is different than the server value, so just return
    // expected


    if (isOpaqueHydratingObject(expected)) {
      return expected;
    }

    if (!node.hasAttribute(name)) {
      return expected === undefined ? undefined : null;
    }

    var value = node.getAttribute(name);

    if (value === '' + expected) {
      return expected;
    }

    return value;
  }
}
/**
 * Sets the value for a property on a node.
 *
 * @param {DOMElement} node
 * @param {string} name
 * @param {*} value
 */

function setValueForProperty(node, name, value, isCustomComponentTag) {
  var propertyInfo = getPropertyInfo(name);

  if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {
    return;
  }

  if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) {
    value = null;
  } // If the prop isn't in the special list, treat it as a simple attribute.


  if (isCustomComponentTag || propertyInfo === null) {
    if (isAttributeNameSafe(name)) {
      var _attributeName = name;

      if (value === null) {
        node.removeAttribute(_attributeName);
      } else {
        node.setAttribute(_attributeName,  '' + value);
      }
    }

    return;
  }

  var mustUseProperty = propertyInfo.mustUseProperty;

  if (mustUseProperty) {
    var propertyName = propertyInfo.propertyName;

    if (value === null) {
      var type = propertyInfo.type;
      node[propertyName] = type === BOOLEAN ? false : '';
    } else {
      // Contrary to `setAttribute`, object properties are properly
      // `toString`ed by IE8/9.
      node[propertyName] = value;
    }

    return;
  } // The rest are treated as attributes with special cases.


  var attributeName = propertyInfo.attributeName,
      attributeNamespace = propertyInfo.attributeNamespace;

  if (value === null) {
    node.removeAttribute(attributeName);
  } else {
    var _type = propertyInfo.type;
    var attributeValue;

    if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {
      // If attribute type is boolean, we know for sure it won't be an execution sink
      // and we won't require Trusted Type here.
      attributeValue = '';
    } else {
      // `setAttribute` with objects becomes only `[object]` in IE8/9,
      // ('' + value) makes it output the correct toString()-value.
      {
        attributeValue = '' + value;
      }

      if (propertyInfo.sanitizeURL) {
        sanitizeURL(attributeValue.toString());
      }
    }

    if (attributeNamespace) {
      node.setAttributeNS(attributeNamespace, attributeName, attributeValue);
    } else {
      node.setAttribute(attributeName, attributeValue);
    }
  }
}

// ATTENTION
// When adding new symbols to this file,
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
// nor polyfill, then a plain number is used for performance.
var REACT_ELEMENT_TYPE = 0xeac7;
var REACT_PORTAL_TYPE = 0xeaca;
var REACT_FRAGMENT_TYPE = 0xeacb;
var REACT_STRICT_MODE_TYPE = 0xeacc;
var REACT_PROFILER_TYPE = 0xead2;
var REACT_PROVIDER_TYPE = 0xeacd;
var REACT_CONTEXT_TYPE = 0xeace;
var REACT_FORWARD_REF_TYPE = 0xead0;
var REACT_SUSPENSE_TYPE = 0xead1;
var REACT_SUSPENSE_LIST_TYPE = 0xead8;
var REACT_MEMO_TYPE = 0xead3;
var REACT_LAZY_TYPE = 0xead4;
var REACT_BLOCK_TYPE = 0xead9;
var REACT_SERVER_BLOCK_TYPE = 0xeada;
var REACT_FUNDAMENTAL_TYPE = 0xead5;
var REACT_SCOPE_TYPE = 0xead7;
var REACT_OPAQUE_ID_TYPE = 0xeae0;
var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
var REACT_OFFSCREEN_TYPE = 0xeae2;
var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;

if (typeof Symbol === 'function' && Symbol.for) {
  var symbolFor = Symbol.for;
  REACT_ELEMENT_TYPE = symbolFor('react.element');
  REACT_PORTAL_TYPE = symbolFor('react.portal');
  REACT_FRAGMENT_TYPE = symbolFor('react.fragment');
  REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode');
  REACT_PROFILER_TYPE = symbolFor('react.profiler');
  REACT_PROVIDER_TYPE = symbolFor('react.provider');
  REACT_CONTEXT_TYPE = symbolFor('react.context');
  REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
  REACT_SUSPENSE_TYPE = symbolFor('react.suspense');
  REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
  REACT_MEMO_TYPE = symbolFor('react.memo');
  REACT_LAZY_TYPE = symbolFor('react.lazy');
  REACT_BLOCK_TYPE = symbolFor('react.block');
  REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
  REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
  REACT_SCOPE_TYPE = symbolFor('react.scope');
  REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id');
  REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
  REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen');
  REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
}

var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
var FAUX_ITERATOR_SYMBOL = '@@iterator';
function getIteratorFn(maybeIterable) {
  if (maybeIterable === null || typeof maybeIterable !== 'object') {
    return null;
  }

  var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];

  if (typeof maybeIterator === 'function') {
    return maybeIterator;
  }

  return null;
}

// Helpers to patch console.logs to avoid logging during side-effect free
// replaying on render function. This currently only patches the object
// lazily which won't cover if the log function was extracted eagerly.
// We could also eagerly patch the method.
var disabledDepth = 0;
var prevLog;
var prevInfo;
var prevWarn;
var prevError;
var prevGroup;
var prevGroupCollapsed;
var prevGroupEnd;

function disabledLog() {}

disabledLog.__reactDisabledLog = true;
function disableLogs() {
  {
    if (disabledDepth === 0) {
      /* eslint-disable react-internal/no-production-logging */
      prevLog = console.log;
      prevInfo = console.info;
      prevWarn = console.warn;
      prevError = console.error;
      prevGroup = console.group;
      prevGroupCollapsed = console.groupCollapsed;
      prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099

      var props = {
        configurable: true,
        enumerable: true,
        value: disabledLog,
        writable: true
      }; // $FlowFixMe Flow thinks console is immutable.

      Object.defineProperties(console, {
        info: props,
        log: props,
        warn: props,
        error: props,
        group: props,
        groupCollapsed: props,
        groupEnd: props
      });
      /* eslint-enable react-internal/no-production-logging */
    }

    disabledDepth++;
  }
}
function reenableLogs() {
  {
    disabledDepth--;

    if (disabledDepth === 0) {
      /* eslint-disable react-internal/no-production-logging */
      var props = {
        configurable: true,
        enumerable: true,
        writable: true
      }; // $FlowFixMe Flow thinks console is immutable.

      Object.defineProperties(console, {
        log: _assign({}, props, {
          value: prevLog
        }),
        info: _assign({}, props, {
          value: prevInfo
        }),
        warn: _assign({}, props, {
          value: prevWarn
        }),
        error: _assign({}, props, {
          value: prevError
        }),
        group: _assign({}, props, {
          value: prevGroup
        }),
        groupCollapsed: _assign({}, props, {
          value: prevGroupCollapsed
        }),
        groupEnd: _assign({}, props, {
          value: prevGroupEnd
        })
      });
      /* eslint-enable react-internal/no-production-logging */
    }

    if (disabledDepth < 0) {
      error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
    }
  }
}

var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
var prefix;
function describeBuiltInComponentFrame(name, source, ownerFn) {
  {
    if (prefix === undefined) {
      // Extract the VM specific prefix used by each line.
      try {
        throw Error();
      } catch (x) {
        var match = x.stack.trim().match(/\n( *(at )?)/);
        prefix = match && match[1] || '';
      }
    } // We use the prefix to ensure our stacks line up with native stack frames.


    return '\n' + prefix + name;
  }
}
var reentry = false;
var componentFrameCache;

{
  var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
  componentFrameCache = new PossiblyWeakMap();
}

function describeNativeComponentFrame(fn, construct) {
  // If something asked for a stack inside a fake render, it should get ignored.
  if (!fn || reentry) {
    return '';
  }

  {
    var frame = componentFrameCache.get(fn);

    if (frame !== undefined) {
      return frame;
    }
  }

  var control;
  reentry = true;
  var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.

  Error.prepareStackTrace = undefined;
  var previousDispatcher;

  {
    previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
    // for warnings.

    ReactCurrentDispatcher.current = null;
    disableLogs();
  }

  try {
    // This should throw.
    if (construct) {
      // Something should be setting the props in the constructor.
      var Fake = function () {
        throw Error();
      }; // $FlowFixMe


      Object.defineProperty(Fake.prototype, 'props', {
        set: function () {
          // We use a throwing setter instead of frozen or non-writable props
          // because that won't throw in a non-strict mode function.
          throw Error();
        }
      });

      if (typeof Reflect === 'object' && Reflect.construct) {
        // We construct a different control for this case to include any extra
        // frames added by the construct call.
        try {
          Reflect.construct(Fake, []);
        } catch (x) {
          control = x;
        }

        Reflect.construct(fn, [], Fake);
      } else {
        try {
          Fake.call();
        } catch (x) {
          control = x;
        }

        fn.call(Fake.prototype);
      }
    } else {
      try {
        throw Error();
      } catch (x) {
        control = x;
      }

      fn();
    }
  } catch (sample) {
    // This is inlined manually because closure doesn't do it for us.
    if (sample && control && typeof sample.stack === 'string') {
      // This extracts the first frame from the sample that isn't also in the control.
      // Skipping one frame that we assume is the frame that calls the two.
      var sampleLines = sample.stack.split('\n');
      var controlLines = control.stack.split('\n');
      var s = sampleLines.length - 1;
      var c = controlLines.length - 1;

      while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
        // We expect at least one stack frame to be shared.
        // Typically this will be the root most one. However, stack frames may be
        // cut off due to maximum stack limits. In this case, one maybe cut off
        // earlier than the other. We assume that the sample is longer or the same
        // and there for cut off earlier. So we should find the root most frame in
        // the sample somewhere in the control.
        c--;
      }

      for (; s >= 1 && c >= 0; s--, c--) {
        // Next we find the first one that isn't the same which should be the
        // frame that called our sample function and the control.
        if (sampleLines[s] !== controlLines[c]) {
          // In V8, the first line is describing the message but other VMs don't.
          // If we're about to return the first line, and the control is also on the same
          // line, that's a pretty good indicator that our sample threw at same line as
          // the control. I.e. before we entered the sample frame. So we ignore this result.
          // This can happen if you passed a class to function component, or non-function.
          if (s !== 1 || c !== 1) {
            do {
              s--;
              c--; // We may still have similar intermediate frames from the construct call.
              // The next one that isn't the same should be our match though.

              if (c < 0 || sampleLines[s] !== controlLines[c]) {
                // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
                var _frame = '\n' + sampleLines[s].replace(' at new ', ' at ');

                {
                  if (typeof fn === 'function') {
                    componentFrameCache.set(fn, _frame);
                  }
                } // Return the line we found.


                return _frame;
              }
            } while (s >= 1 && c >= 0);
          }

          break;
        }
      }
    }
  } finally {
    reentry = false;

    {
      ReactCurrentDispatcher.current = previousDispatcher;
      reenableLogs();
    }

    Error.prepareStackTrace = previousPrepareStackTrace;
  } // Fallback to just using the name if we couldn't make it throw.


  var name = fn ? fn.displayName || fn.name : '';
  var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';

  {
    if (typeof fn === 'function') {
      componentFrameCache.set(fn, syntheticFrame);
    }
  }

  return syntheticFrame;
}

function describeClassComponentFrame(ctor, source, ownerFn) {
  {
    return describeNativeComponentFrame(ctor, true);
  }
}
function describeFunctionComponentFrame(fn, source, ownerFn) {
  {
    return describeNativeComponentFrame(fn, false);
  }
}

function shouldConstruct(Component) {
  var prototype = Component.prototype;
  return !!(prototype && prototype.isReactComponent);
}

function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {

  if (type == null) {
    return '';
  }

  if (typeof type === 'function') {
    {
      return describeNativeComponentFrame(type, shouldConstruct(type));
    }
  }

  if (typeof type === 'string') {
    return describeBuiltInComponentFrame(type);
  }

  switch (type) {
    case REACT_SUSPENSE_TYPE:
      return describeBuiltInComponentFrame('Suspense');

    case REACT_SUSPENSE_LIST_TYPE:
      return describeBuiltInComponentFrame('SuspenseList');
  }

  if (typeof type === 'object') {
    switch (type.$$typeof) {
      case REACT_FORWARD_REF_TYPE:
        return describeFunctionComponentFrame(type.render);

      case REACT_MEMO_TYPE:
        // Memo may contain any component type so we recursively resolve it.
        return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);

      case REACT_BLOCK_TYPE:
        return describeFunctionComponentFrame(type._render);

      case REACT_LAZY_TYPE:
        {
          var lazyComponent = type;
          var payload = lazyComponent._payload;
          var init = lazyComponent._init;

          try {
            // Lazy may contain any component type so we recursively resolve it.
            return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
          } catch (x) {}
        }
    }
  }

  return '';
}

function describeFiber(fiber) {
  var owner =  fiber._debugOwner ? fiber._debugOwner.type : null ;
  var source =  fiber._debugSource ;

  switch (fiber.tag) {
    case HostComponent:
      return describeBuiltInComponentFrame(fiber.type);

    case LazyComponent:
      return describeBuiltInComponentFrame('Lazy');

    case SuspenseComponent:
      return describeBuiltInComponentFrame('Suspense');

    case SuspenseListComponent:
      return describeBuiltInComponentFrame('SuspenseList');

    case FunctionComponent:
    case IndeterminateComponent:
    case SimpleMemoComponent:
      return describeFunctionComponentFrame(fiber.type);

    case ForwardRef:
      return describeFunctionComponentFrame(fiber.type.render);

    case Block:
      return describeFunctionComponentFrame(fiber.type._render);

    case ClassComponent:
      return describeClassComponentFrame(fiber.type);

    default:
      return '';
  }
}

function getStackByFiberInDevAndProd(workInProgress) {
  try {
    var info = '';
    var node = workInProgress;

    do {
      info += describeFiber(node);
      node = node.return;
    } while (node);

    return info;
  } catch (x) {
    return '\nError generating stack: ' + x.message + '\n' + x.stack;
  }
}

function getWrappedName(outerType, innerType, wrapperName) {
  var functionName = innerType.displayName || innerType.name || '';
  return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
}

function getContextName(type) {
  return type.displayName || 'Context';
}

function getComponentName(type) {
  if (type == null) {
    // Host root, text node or just invalid type.
    return null;
  }

  {
    if (typeof type.tag === 'number') {
      error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
    }
  }

  if (typeof type === 'function') {
    return type.displayName || type.name || null;
  }

  if (typeof type === 'string') {
    return type;
  }

  switch (type) {
    case REACT_FRAGMENT_TYPE:
      return 'Fragment';

    case REACT_PORTAL_TYPE:
      return 'Portal';

    case REACT_PROFILER_TYPE:
      return 'Profiler';

    case REACT_STRICT_MODE_TYPE:
      return 'StrictMode';

    case REACT_SUSPENSE_TYPE:
      return 'Suspense';

    case REACT_SUSPENSE_LIST_TYPE:
      return 'SuspenseList';
  }

  if (typeof type === 'object') {
    switch (type.$$typeof) {
      case REACT_CONTEXT_TYPE:
        var context = type;
        return getContextName(context) + '.Consumer';

      case REACT_PROVIDER_TYPE:
        var provider = type;
        return getContextName(provider._context) + '.Provider';

      case REACT_FORWARD_REF_TYPE:
        return getWrappedName(type, type.render, 'ForwardRef');

      case REACT_MEMO_TYPE:
        return getComponentName(type.type);

      case REACT_BLOCK_TYPE:
        return getComponentName(type._render);

      case REACT_LAZY_TYPE:
        {
          var lazyComponent = type;
          var payload = lazyComponent._payload;
          var init = lazyComponent._init;

          try {
            return getComponentName(init(payload));
          } catch (x) {
            return null;
          }
        }
    }
  }

  return null;
}

var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
var current = null;
var isRendering = false;
function getCurrentFiberOwnerNameInDevOrNull() {
  {
    if (current === null) {
      return null;
    }

    var owner = current._debugOwner;

    if (owner !== null && typeof owner !== 'undefined') {
      return getComponentName(owner.type);
    }
  }

  return null;
}

function getCurrentFiberStackInDev() {
  {
    if (current === null) {
      return '';
    } // Safe because if current fiber exists, we are reconciling,
    // and it is guaranteed to be the work-in-progress version.


    return getStackByFiberInDevAndProd(current);
  }
}

function resetCurrentFiber() {
  {
    ReactDebugCurrentFrame.getCurrentStack = null;
    current = null;
    isRendering = false;
  }
}
function setCurrentFiber(fiber) {
  {
    ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackInDev;
    current = fiber;
    isRendering = false;
  }
}
function setIsRendering(rendering) {
  {
    isRendering = rendering;
  }
}
function getIsRendering() {
  {
    return isRendering;
  }
}

// Flow does not allow string concatenation of most non-string types. To work
// around this limitation, we use an opaque type that can only be obtained by
// passing the value through getToStringValue first.
function toString(value) {
  return '' + value;
}
function getToStringValue(value) {
  switch (typeof value) {
    case 'boolean':
    case 'number':
    case 'object':
    case 'string':
    case 'undefined':
      return value;

    default:
      // function, symbol are assigned as empty strings
      return '';
  }
}

var hasReadOnlyValue = {
  button: true,
  checkbox: true,
  image: true,
  hidden: true,
  radio: true,
  reset: true,
  submit: true
};
function checkControlledValueProps(tagName, props) {
  {
    if (!(hasReadOnlyValue[props.type] || props.onChange || props.onInput || props.readOnly || props.disabled || props.value == null)) {
      error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.');
    }

    if (!(props.onChange || props.readOnly || props.disabled || props.checked == null)) {
      error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.');
    }
  }
}

function isCheckable(elem) {
  var type = elem.type;
  var nodeName = elem.nodeName;
  return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
}

function getTracker(node) {
  return node._valueTracker;
}

function detachTracker(node) {
  node._valueTracker = null;
}

function getValueFromNode(node) {
  var value = '';

  if (!node) {
    return value;
  }

  if (isCheckable(node)) {
    value = node.checked ? 'true' : 'false';
  } else {
    value = node.value;
  }

  return value;
}

function trackValueOnNode(node) {
  var valueField = isCheckable(node) ? 'checked' : 'value';
  var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);
  var currentValue = '' + node[valueField]; // if someone has already defined a value or Safari, then bail
  // and don't track value will cause over reporting of changes,
  // but it's better then a hard failure
  // (needed for certain tests that spyOn input values and Safari)

  if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {
    return;
  }

  var get = descriptor.get,
      set = descriptor.set;
  Object.defineProperty(node, valueField, {
    configurable: true,
    get: function () {
      return get.call(this);
    },
    set: function (value) {
      currentValue = '' + value;
      set.call(this, value);
    }
  }); // We could've passed this the first time
  // but it triggers a bug in IE11 and Edge 14/15.
  // Calling defineProperty() again should be equivalent.
  // https://github.com/facebook/react/issues/11768

  Object.defineProperty(node, valueField, {
    enumerable: descriptor.enumerable
  });
  var tracker = {
    getValue: function () {
      return currentValue;
    },
    setValue: function (value) {
      currentValue = '' + value;
    },
    stopTracking: function () {
      detachTracker(node);
      delete node[valueField];
    }
  };
  return tracker;
}

function track(node) {
  if (getTracker(node)) {
    return;
  } // TODO: Once it's just Fiber we can move this to node._wrapperState


  node._valueTracker = trackValueOnNode(node);
}
function updateValueIfChanged(node) {
  if (!node) {
    return false;
  }

  var tracker = getTracker(node); // if there is no tracker at this point it's unlikely
  // that trying again will succeed

  if (!tracker) {
    return true;
  }

  var lastValue = tracker.getValue();
  var nextValue = getValueFromNode(node);

  if (nextValue !== lastValue) {
    tracker.setValue(nextValue);
    return true;
  }

  return false;
}

function getActiveElement(doc) {
  doc = doc || (typeof document !== 'undefined' ? document : undefined);

  if (typeof doc === 'undefined') {
    return null;
  }

  try {
    return doc.activeElement || doc.body;
  } catch (e) {
    return doc.body;
  }
}

var didWarnValueDefaultValue = false;
var didWarnCheckedDefaultChecked = false;
var didWarnControlledToUncontrolled = false;
var didWarnUncontrolledToControlled = false;

function isControlled(props) {
  var usesChecked = props.type === 'checkbox' || props.type === 'radio';
  return usesChecked ? props.checked != null : props.value != null;
}
/**
 * Implements an <input> host component that allows setting these optional
 * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.
 *
 * If `checked` or `value` are not supplied (or null/undefined), user actions
 * that affect the checked state or value will trigger updates to the element.
 *
 * If they are supplied (and not null/undefined), the rendered element will not
 * trigger updates to the element. Instead, the props must change in order for
 * the rendered element to be updated.
 *
 * The rendered element will be initialized as unchecked (or `defaultChecked`)
 * with an empty value (or `defaultValue`).
 *
 * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html
 */


function getHostProps(element, props) {
  var node = element;
  var checked = props.checked;

  var hostProps = _assign({}, props, {
    defaultChecked: undefined,
    defaultValue: undefined,
    value: undefined,
    checked: checked != null ? checked : node._wrapperState.initialChecked
  });

  return hostProps;
}
function initWrapperState(element, props) {
  {
    checkControlledValueProps('input', props);

    if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
      error('%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);

      didWarnCheckedDefaultChecked = true;
    }

    if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
      error('%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);

      didWarnValueDefaultValue = true;
    }
  }

  var node = element;
  var defaultValue = props.defaultValue == null ? '' : props.defaultValue;
  node._wrapperState = {
    initialChecked: props.checked != null ? props.checked : props.defaultChecked,
    initialValue: getToStringValue(props.value != null ? props.value : defaultValue),
    controlled: isControlled(props)
  };
}
function updateChecked(element, props) {
  var node = element;
  var checked = props.checked;

  if (checked != null) {
    setValueForProperty(node, 'checked', checked, false);
  }
}
function updateWrapper(element, props) {
  var node = element;

  {
    var controlled = isControlled(props);

    if (!node._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) {
      error('A component is changing an uncontrolled input to be controlled. ' + 'This is likely caused by the value changing from undefined to ' + 'a defined value, which should not happen. ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components');

      didWarnUncontrolledToControlled = true;
    }

    if (node._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) {
      error('A component is changing a controlled input to be uncontrolled. ' + 'This is likely caused by the value changing from a defined to ' + 'undefined, which should not happen. ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components');

      didWarnControlledToUncontrolled = true;
    }
  }

  updateChecked(element, props);
  var value = getToStringValue(props.value);
  var type = props.type;

  if (value != null) {
    if (type === 'number') {
      if (value === 0 && node.value === '' || // We explicitly want to coerce to number here if possible.
      // eslint-disable-next-line
      node.value != value) {
        node.value = toString(value);
      }
    } else if (node.value !== toString(value)) {
      node.value = toString(value);
    }
  } else if (type === 'submit' || type === 'reset') {
    // Submit/reset inputs need the attribute removed completely to avoid
    // blank-text buttons.
    node.removeAttribute('value');
    return;
  }

  {
    // When syncing the value attribute, the value comes from a cascade of
    // properties:
    //  1. The value React property
    //  2. The defaultValue React property
    //  3. Otherwise there should be no change
    if (props.hasOwnProperty('value')) {
      setDefaultValue(node, props.type, value);
    } else if (props.hasOwnProperty('defaultValue')) {
      setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
    }
  }

  {
    // When syncing the checked attribute, it only changes when it needs
    // to be removed, such as transitioning from a checkbox into a text input
    if (props.checked == null && props.defaultChecked != null) {
      node.defaultChecked = !!props.defaultChecked;
    }
  }
}
function postMountWrapper(element, props, isHydrating) {
  var node = element; // Do not assign value if it is already set. This prevents user text input
  // from being lost during SSR hydration.

  if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) {
    var type = props.type;
    var isButton = type === 'submit' || type === 'reset'; // Avoid setting value attribute on submit/reset inputs as it overrides the
    // default value provided by the browser. See: #12872

    if (isButton && (props.value === undefined || props.value === null)) {
      return;
    }

    var initialValue = toString(node._wrapperState.initialValue); // Do not assign value if it is already set. This prevents user text input
    // from being lost during SSR hydration.

    if (!isHydrating) {
      {
        // When syncing the value attribute, the value property should use
        // the wrapperState._initialValue property. This uses:
        //
        //   1. The value React property when present
        //   2. The defaultValue React property when present
        //   3. An empty string
        if (initialValue !== node.value) {
          node.value = initialValue;
        }
      }
    }

    {
      // Otherwise, the value attribute is synchronized to the property,
      // so we assign defaultValue to the same thing as the value property
      // assignment step above.
      node.defaultValue = initialValue;
    }
  } // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug
  // this is needed to work around a chrome bug where setting defaultChecked
  // will sometimes influence the value of checked (even after detachment).
  // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416
  // We need to temporarily unset name to avoid disrupting radio button groups.


  var name = node.name;

  if (name !== '') {
    node.name = '';
  }

  {
    // When syncing the checked attribute, both the checked property and
    // attribute are assigned at the same time using defaultChecked. This uses:
    //
    //   1. The checked React property when present
    //   2. The defaultChecked React property when present
    //   3. Otherwise, false
    node.defaultChecked = !node.defaultChecked;
    node.defaultChecked = !!node._wrapperState.initialChecked;
  }

  if (name !== '') {
    node.name = name;
  }
}
function restoreControlledState(element, props) {
  var node = element;
  updateWrapper(node, props);
  updateNamedCousins(node, props);
}

function updateNamedCousins(rootNode, props) {
  var name = props.name;

  if (props.type === 'radio' && name != null) {
    var queryRoot = rootNode;

    while (queryRoot.parentNode) {
      queryRoot = queryRoot.parentNode;
    } // If `rootNode.form` was non-null, then we could try `form.elements`,
    // but that sometimes behaves strangely in IE8. We could also try using
    // `form.getElementsByName`, but that will only return direct children
    // and won't include inputs that use the HTML5 `form=` attribute. Since
    // the input might not even be in a form. It might not even be in the
    // document. Let's just use the local `querySelectorAll` to ensure we don't
    // miss anything.


    var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]');

    for (var i = 0; i < group.length; i++) {
      var otherNode = group[i];

      if (otherNode === rootNode || otherNode.form !== rootNode.form) {
        continue;
      } // This will throw if radio buttons rendered by different copies of React
      // and the same name are rendered into the same form (same as #1939).
      // That's probably okay; we don't support it just as we don't support
      // mixing React radio buttons with non-React ones.


      var otherProps = getFiberCurrentPropsFromNode(otherNode);

      if (!otherProps) {
        {
          throw Error( "ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported." );
        }
      } // We need update the tracked value on the named cousin since the value
      // was changed but the input saw no event or value set


      updateValueIfChanged(otherNode); // If this is a controlled radio button group, forcing the input that
      // was previously checked to update will cause it to be come re-checked
      // as appropriate.

      updateWrapper(otherNode, otherProps);
    }
  }
} // In Chrome, assigning defaultValue to certain input types triggers input validation.
// For number inputs, the display value loses trailing decimal points. For email inputs,
// Chrome raises "The specified value <x> is not a valid email address".
//
// Here we check to see if the defaultValue has actually changed, avoiding these problems
// when the user is inputting text
//
// https://github.com/facebook/react/issues/7253


function setDefaultValue(node, type, value) {
  if ( // Focused number inputs synchronize on blur. See ChangeEventPlugin.js
  type !== 'number' || getActiveElement(node.ownerDocument) !== node) {
    if (value == null) {
      node.defaultValue = toString(node._wrapperState.initialValue);
    } else if (node.defaultValue !== toString(value)) {
      node.defaultValue = toString(value);
    }
  }
}

var didWarnSelectedSetOnOption = false;
var didWarnInvalidChild = false;

function flattenChildren(children) {
  var content = ''; // Flatten children. We'll warn if they are invalid
  // during validateProps() which runs for hydration too.
  // Note that this would throw on non-element objects.
  // Elements are stringified (which is normally irrelevant
  // but matters for <fbt>).

  React.Children.forEach(children, function (child) {
    if (child == null) {
      return;
    }

    content += child; // Note: we don't warn about invalid children here.
    // Instead, this is done separately below so that
    // it happens during the hydration code path too.
  });
  return content;
}
/**
 * Implements an <option> host component that warns when `selected` is set.
 */


function validateProps(element, props) {
  {
    // This mirrors the code path above, but runs for hydration too.
    // Warn about invalid children here so that client and hydration are consistent.
    // TODO: this seems like it could cause a DEV-only throw for hydration
    // if children contains a non-element object. We should try to avoid that.
    if (typeof props.children === 'object' && props.children !== null) {
      React.Children.forEach(props.children, function (child) {
        if (child == null) {
          return;
        }

        if (typeof child === 'string' || typeof child === 'number') {
          return;
        }

        if (typeof child.type !== 'string') {
          return;
        }

        if (!didWarnInvalidChild) {
          didWarnInvalidChild = true;

          error('Only strings and numbers are supported as <option> children.');
        }
      });
    } // TODO: Remove support for `selected` in <option>.


    if (props.selected != null && !didWarnSelectedSetOnOption) {
      error('Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');

      didWarnSelectedSetOnOption = true;
    }
  }
}
function postMountWrapper$1(element, props) {
  // value="" should make a value attribute (#6219)
  if (props.value != null) {
    element.setAttribute('value', toString(getToStringValue(props.value)));
  }
}
function getHostProps$1(element, props) {
  var hostProps = _assign({
    children: undefined
  }, props);

  var content = flattenChildren(props.children);

  if (content) {
    hostProps.children = content;
  }

  return hostProps;
}

var didWarnValueDefaultValue$1;

{
  didWarnValueDefaultValue$1 = false;
}

function getDeclarationErrorAddendum() {
  var ownerName = getCurrentFiberOwnerNameInDevOrNull();

  if (ownerName) {
    return '\n\nCheck the render method of `' + ownerName + '`.';
  }

  return '';
}

var valuePropNames = ['value', 'defaultValue'];
/**
 * Validation function for `value` and `defaultValue`.
 */

function checkSelectPropTypes(props) {
  {
    checkControlledValueProps('select', props);

    for (var i = 0; i < valuePropNames.length; i++) {
      var propName = valuePropNames[i];

      if (props[propName] == null) {
        continue;
      }

      var isArray = Array.isArray(props[propName]);

      if (props.multiple && !isArray) {
        error('The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());
      } else if (!props.multiple && isArray) {
        error('The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());
      }
    }
  }
}

function updateOptions(node, multiple, propValue, setDefaultSelected) {
  var options = node.options;

  if (multiple) {
    var selectedValues = propValue;
    var selectedValue = {};

    for (var i = 0; i < selectedValues.length; i++) {
      // Prefix to avoid chaos with special keys.
      selectedValue['$' + selectedValues[i]] = true;
    }

    for (var _i = 0; _i < options.length; _i++) {
      var selected = selectedValue.hasOwnProperty('$' + options[_i].value);

      if (options[_i].selected !== selected) {
        options[_i].selected = selected;
      }

      if (selected && setDefaultSelected) {
        options[_i].defaultSelected = true;
      }
    }
  } else {
    // Do not set `select.value` as exact behavior isn't consistent across all
    // browsers for all cases.
    var _selectedValue = toString(getToStringValue(propValue));

    var defaultSelected = null;

    for (var _i2 = 0; _i2 < options.length; _i2++) {
      if (options[_i2].value === _selectedValue) {
        options[_i2].selected = true;

        if (setDefaultSelected) {
          options[_i2].defaultSelected = true;
        }

        return;
      }

      if (defaultSelected === null && !options[_i2].disabled) {
        defaultSelected = options[_i2];
      }
    }

    if (defaultSelected !== null) {
      defaultSelected.selected = true;
    }
  }
}
/**
 * Implements a <select> host component that allows optionally setting the
 * props `value` and `defaultValue`. If `multiple` is false, the prop must be a
 * stringable. If `multiple` is true, the prop must be an array of stringables.
 *
 * If `value` is not supplied (or null/undefined), user actions that change the
 * selected option will trigger updates to the rendered options.
 *
 * If it is supplied (and not null/undefined), the rendered options will not
 * update in response to user actions. Instead, the `value` prop must change in
 * order for the rendered options to update.
 *
 * If `defaultValue` is provided, any options with the supplied values will be
 * selected.
 */


function getHostProps$2(element, props) {
  return _assign({}, props, {
    value: undefined
  });
}
function initWrapperState$1(element, props) {
  var node = element;

  {
    checkSelectPropTypes(props);
  }

  node._wrapperState = {
    wasMultiple: !!props.multiple
  };

  {
    if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) {
      error('Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components');

      didWarnValueDefaultValue$1 = true;
    }
  }
}
function postMountWrapper$2(element, props) {
  var node = element;
  node.multiple = !!props.multiple;
  var value = props.value;

  if (value != null) {
    updateOptions(node, !!props.multiple, value, false);
  } else if (props.defaultValue != null) {
    updateOptions(node, !!props.multiple, props.defaultValue, true);
  }
}
function postUpdateWrapper(element, props) {
  var node = element;
  var wasMultiple = node._wrapperState.wasMultiple;
  node._wrapperState.wasMultiple = !!props.multiple;
  var value = props.value;

  if (value != null) {
    updateOptions(node, !!props.multiple, value, false);
  } else if (wasMultiple !== !!props.multiple) {
    // For simplicity, reapply `defaultValue` if `multiple` is toggled.
    if (props.defaultValue != null) {
      updateOptions(node, !!props.multiple, props.defaultValue, true);
    } else {
      // Revert the select back to its default unselected state.
      updateOptions(node, !!props.multiple, props.multiple ? [] : '', false);
    }
  }
}
function restoreControlledState$1(element, props) {
  var node = element;
  var value = props.value;

  if (value != null) {
    updateOptions(node, !!props.multiple, value, false);
  }
}

var didWarnValDefaultVal = false;

/**
 * Implements a <textarea> host component that allows setting `value`, and
 * `defaultValue`. This differs from the traditional DOM API because value is
 * usually set as PCDATA children.
 *
 * If `value` is not supplied (or null/undefined), user actions that affect the
 * value will trigger updates to the element.
 *
 * If `value` is supplied (and not null/undefined), the rendered element will
 * not trigger updates to the element. Instead, the `value` prop must change in
 * order for the rendered element to be updated.
 *
 * The rendered element will be initialized with an empty value, the prop
 * `defaultValue` if specified, or the children content (deprecated).
 */
function getHostProps$3(element, props) {
  var node = element;

  if (!(props.dangerouslySetInnerHTML == null)) {
    {
      throw Error( "`dangerouslySetInnerHTML` does not make sense on <textarea>." );
    }
  } // Always set children to the same thing. In IE9, the selection range will
  // get reset if `textContent` is mutated.  We could add a check in setTextContent
  // to only set the value if/when the value differs from the node value (which would
  // completely solve this IE9 bug), but Sebastian+Sophie seemed to like this
  // solution. The value can be a boolean or object so that's why it's forced
  // to be a string.


  var hostProps = _assign({}, props, {
    value: undefined,
    defaultValue: undefined,
    children: toString(node._wrapperState.initialValue)
  });

  return hostProps;
}
function initWrapperState$2(element, props) {
  var node = element;

  {
    checkControlledValueProps('textarea', props);

    if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {
      error('%s contains a textarea with both value and defaultValue props. ' + 'Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component');

      didWarnValDefaultVal = true;
    }
  }

  var initialValue = props.value; // Only bother fetching default value if we're going to use it

  if (initialValue == null) {
    var children = props.children,
        defaultValue = props.defaultValue;

    if (children != null) {
      {
        error('Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
      }

      {
        if (!(defaultValue == null)) {
          {
            throw Error( "If you supply `defaultValue` on a <textarea>, do not pass children." );
          }
        }

        if (Array.isArray(children)) {
          if (!(children.length <= 1)) {
            {
              throw Error( "<textarea> can only have at most one child." );
            }
          }

          children = children[0];
        }

        defaultValue = children;
      }
    }

    if (defaultValue == null) {
      defaultValue = '';
    }

    initialValue = defaultValue;
  }

  node._wrapperState = {
    initialValue: getToStringValue(initialValue)
  };
}
function updateWrapper$1(element, props) {
  var node = element;
  var value = getToStringValue(props.value);
  var defaultValue = getToStringValue(props.defaultValue);

  if (value != null) {
    // Cast `value` to a string to ensure the value is set correctly. While
    // browsers typically do this as necessary, jsdom doesn't.
    var newValue = toString(value); // To avoid side effects (such as losing text selection), only set value if changed

    if (newValue !== node.value) {
      node.value = newValue;
    }

    if (props.defaultValue == null && node.defaultValue !== newValue) {
      node.defaultValue = newValue;
    }
  }

  if (defaultValue != null) {
    node.defaultValue = toString(defaultValue);
  }
}
function postMountWrapper$3(element, props) {
  var node = element; // This is in postMount because we need access to the DOM node, which is not
  // available until after the component has mounted.

  var textContent = node.textContent; // Only set node.value if textContent is equal to the expected
  // initial value. In IE10/IE11 there is a bug where the placeholder attribute
  // will populate textContent as well.
  // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/

  if (textContent === node._wrapperState.initialValue) {
    if (textContent !== '' && textContent !== null) {
      node.value = textContent;
    }
  }
}
function restoreControlledState$2(element, props) {
  // DOM component is still mounted; update
  updateWrapper$1(element, props);
}

var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
var MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
var Namespaces = {
  html: HTML_NAMESPACE,
  mathml: MATH_NAMESPACE,
  svg: SVG_NAMESPACE
}; // Assumes there is no parent namespace.

function getIntrinsicNamespace(type) {
  switch (type) {
    case 'svg':
      return SVG_NAMESPACE;

    case 'math':
      return MATH_NAMESPACE;

    default:
      return HTML_NAMESPACE;
  }
}
function getChildNamespace(parentNamespace, type) {
  if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) {
    // No (or default) parent namespace: potential entry point.
    return getIntrinsicNamespace(type);
  }

  if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
    // We're leaving SVG.
    return HTML_NAMESPACE;
  } // By default, pass namespace below.


  return parentNamespace;
}

/* globals MSApp */

/**
 * Create a function which has 'unsafe' privileges (required by windows8 apps)
 */
var createMicrosoftUnsafeLocalFunction = function (func) {
  if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {
    return function (arg0, arg1, arg2, arg3) {
      MSApp.execUnsafeLocalFunction(function () {
        return func(arg0, arg1, arg2, arg3);
      });
    };
  } else {
    return func;
  }
};

var reusableSVGContainer;
/**
 * Set the innerHTML property of a node
 *
 * @param {DOMElement} node
 * @param {string} html
 * @internal
 */

var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {
  if (node.namespaceURI === Namespaces.svg) {

    if (!('innerHTML' in node)) {
      // IE does not have innerHTML for SVG nodes, so instead we inject the
      // new markup in a temp node and then move the child nodes across into
      // the target node
      reusableSVGContainer = reusableSVGContainer || document.createElement('div');
      reusableSVGContainer.innerHTML = '<svg>' + html.valueOf().toString() + '</svg>';
      var svgNode = reusableSVGContainer.firstChild;

      while (node.firstChild) {
        node.removeChild(node.firstChild);
      }

      while (svgNode.firstChild) {
        node.appendChild(svgNode.firstChild);
      }

      return;
    }
  }

  node.innerHTML = html;
});

/**
 * HTML nodeType values that represent the type of the node
 */
var ELEMENT_NODE = 1;
var TEXT_NODE = 3;
var COMMENT_NODE = 8;
var DOCUMENT_NODE = 9;
var DOCUMENT_FRAGMENT_NODE = 11;

/**
 * Set the textContent property of a node. For text updates, it's faster
 * to set the `nodeValue` of the Text node directly instead of using
 * `.textContent` which will remove the existing node and create a new one.
 *
 * @param {DOMElement} node
 * @param {string} text
 * @internal
 */

var setTextContent = function (node, text) {
  if (text) {
    var firstChild = node.firstChild;

    if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) {
      firstChild.nodeValue = text;
      return;
    }
  }

  node.textContent = text;
};

// List derived from Gecko source code:
// https://github.com/mozilla/gecko-dev/blob/4e638efc71/layout/style/test/property_database.js
var shorthandToLonghand = {
  animation: ['animationDelay', 'animationDirection', 'animationDuration', 'animationFillMode', 'animationIterationCount', 'animationName', 'animationPlayState', 'animationTimingFunction'],
  background: ['backgroundAttachment', 'backgroundClip', 'backgroundColor', 'backgroundImage', 'backgroundOrigin', 'backgroundPositionX', 'backgroundPositionY', 'backgroundRepeat', 'backgroundSize'],
  backgroundPosition: ['backgroundPositionX', 'backgroundPositionY'],
  border: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth', 'borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth', 'borderLeftColor', 'borderLeftStyle', 'borderLeftWidth', 'borderRightColor', 'borderRightStyle', 'borderRightWidth', 'borderTopColor', 'borderTopStyle', 'borderTopWidth'],
  borderBlockEnd: ['borderBlockEndColor', 'borderBlockEndStyle', 'borderBlockEndWidth'],
  borderBlockStart: ['borderBlockStartColor', 'borderBlockStartStyle', 'borderBlockStartWidth'],
  borderBottom: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth'],
  borderColor: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'],
  borderImage: ['borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth'],
  borderInlineEnd: ['borderInlineEndColor', 'borderInlineEndStyle', 'borderInlineEndWidth'],
  borderInlineStart: ['borderInlineStartColor', 'borderInlineStartStyle', 'borderInlineStartWidth'],
  borderLeft: ['borderLeftColor', 'borderLeftStyle', 'borderLeftWidth'],
  borderRadius: ['borderBottomLeftRadius', 'borderBottomRightRadius', 'borderTopLeftRadius', 'borderTopRightRadius'],
  borderRight: ['borderRightColor', 'borderRightStyle', 'borderRightWidth'],
  borderStyle: ['borderBottomStyle', 'borderLeftStyle', 'borderRightStyle', 'borderTopStyle'],
  borderTop: ['borderTopColor', 'borderTopStyle', 'borderTopWidth'],
  borderWidth: ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth'],
  columnRule: ['columnRuleColor', 'columnRuleStyle', 'columnRuleWidth'],
  columns: ['columnCount', 'columnWidth'],
  flex: ['flexBasis', 'flexGrow', 'flexShrink'],
  flexFlow: ['flexDirection', 'flexWrap'],
  font: ['fontFamily', 'fontFeatureSettings', 'fontKerning', 'fontLanguageOverride', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition', 'fontWeight', 'lineHeight'],
  fontVariant: ['fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition'],
  gap: ['columnGap', 'rowGap'],
  grid: ['gridAutoColumns', 'gridAutoFlow', 'gridAutoRows', 'gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
  gridArea: ['gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart'],
  gridColumn: ['gridColumnEnd', 'gridColumnStart'],
  gridColumnGap: ['columnGap'],
  gridGap: ['columnGap', 'rowGap'],
  gridRow: ['gridRowEnd', 'gridRowStart'],
  gridRowGap: ['rowGap'],
  gridTemplate: ['gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
  listStyle: ['listStyleImage', 'listStylePosition', 'listStyleType'],
  margin: ['marginBottom', 'marginLeft', 'marginRight', 'marginTop'],
  marker: ['markerEnd', 'markerMid', 'markerStart'],
  mask: ['maskClip', 'maskComposite', 'maskImage', 'maskMode', 'maskOrigin', 'maskPositionX', 'maskPositionY', 'maskRepeat', 'maskSize'],
  maskPosition: ['maskPositionX', 'maskPositionY'],
  outline: ['outlineColor', 'outlineStyle', 'outlineWidth'],
  overflow: ['overflowX', 'overflowY'],
  padding: ['paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop'],
  placeContent: ['alignContent', 'justifyContent'],
  placeItems: ['alignItems', 'justifyItems'],
  placeSelf: ['alignSelf', 'justifySelf'],
  textDecoration: ['textDecorationColor', 'textDecorationLine', 'textDecorationStyle'],
  textEmphasis: ['textEmphasisColor', 'textEmphasisStyle'],
  transition: ['transitionDelay', 'transitionDuration', 'transitionProperty', 'transitionTimingFunction'],
  wordWrap: ['overflowWrap']
};

/**
 * CSS properties which accept numbers but are not in units of "px".
 */
var isUnitlessNumber = {
  animationIterationCount: true,
  borderImageOutset: true,
  borderImageSlice: true,
  borderImageWidth: true,
  boxFlex: true,
  boxFlexGroup: true,
  boxOrdinalGroup: true,
  columnCount: true,
  columns: true,
  flex: true,
  flexGrow: true,
  flexPositive: true,
  flexShrink: true,
  flexNegative: true,
  flexOrder: true,
  gridArea: true,
  gridRow: true,
  gridRowEnd: true,
  gridRowSpan: true,
  gridRowStart: true,
  gridColumn: true,
  gridColumnEnd: true,
  gridColumnSpan: true,
  gridColumnStart: true,
  fontWeight: true,
  lineClamp: true,
  lineHeight: true,
  opacity: true,
  order: true,
  orphans: true,
  tabSize: true,
  widows: true,
  zIndex: true,
  zoom: true,
  // SVG-related properties
  fillOpacity: true,
  floodOpacity: true,
  stopOpacity: true,
  strokeDasharray: true,
  strokeDashoffset: true,
  strokeMiterlimit: true,
  strokeOpacity: true,
  strokeWidth: true
};
/**
 * @param {string} prefix vendor-specific prefix, eg: Webkit
 * @param {string} key style name, eg: transitionDuration
 * @return {string} style name prefixed with `prefix`, properly camelCased, eg:
 * WebkitTransitionDuration
 */

function prefixKey(prefix, key) {
  return prefix + key.charAt(0).toUpperCase() + key.substring(1);
}
/**
 * Support style names that may come passed in prefixed by adding permutations
 * of vendor prefixes.
 */


var prefixes = ['Webkit', 'ms', 'Moz', 'O']; // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
// infinite loop, because it iterates over the newly added props too.

Object.keys(isUnitlessNumber).forEach(function (prop) {
  prefixes.forEach(function (prefix) {
    isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
  });
});

/**
 * Convert a value into the proper css writable value. The style name `name`
 * should be logical (no hyphens), as specified
 * in `CSSProperty.isUnitlessNumber`.
 *
 * @param {string} name CSS property name such as `topMargin`.
 * @param {*} value CSS property value such as `10px`.
 * @return {string} Normalized style value with dimensions applied.
 */

function dangerousStyleValue(name, value, isCustomProperty) {
  // Note that we've removed escapeTextForBrowser() calls here since the
  // whole string will be escaped when the attribute is injected into
  // the markup. If you provide unsafe user data here they can inject
  // arbitrary CSS which may be problematic (I couldn't repro this):
  // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
  // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/
  // This is not an XSS hole but instead a potential CSS injection issue
  // which has lead to a greater discussion about how we're going to
  // trust URLs moving forward. See #2115901
  var isEmpty = value == null || typeof value === 'boolean' || value === '';

  if (isEmpty) {
    return '';
  }

  if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {
    return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers
  }

  return ('' + value).trim();
}

var uppercasePattern = /([A-Z])/g;
var msPattern = /^ms-/;
/**
 * Hyphenates a camelcased CSS property name, for example:
 *
 *   > hyphenateStyleName('backgroundColor')
 *   < "background-color"
 *   > hyphenateStyleName('MozTransition')
 *   < "-moz-transition"
 *   > hyphenateStyleName('msTransition')
 *   < "-ms-transition"
 *
 * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
 * is converted to `-ms-`.
 */

function hyphenateStyleName(name) {
  return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');
}

var warnValidStyle = function () {};

{
  // 'msTransform' is correct, but the other prefixes should be capitalized
  var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
  var msPattern$1 = /^-ms-/;
  var hyphenPattern = /-(.)/g; // style values shouldn't contain a semicolon

  var badStyleValueWithSemicolonPattern = /;\s*$/;
  var warnedStyleNames = {};
  var warnedStyleValues = {};
  var warnedForNaNValue = false;
  var warnedForInfinityValue = false;

  var camelize = function (string) {
    return string.replace(hyphenPattern, function (_, character) {
      return character.toUpperCase();
    });
  };

  var warnHyphenatedStyleName = function (name) {
    if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
      return;
    }

    warnedStyleNames[name] = true;

    error('Unsupported style property %s. Did you mean %s?', name, // As Andi Smith suggests
    // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
    // is converted to lowercase `ms`.
    camelize(name.replace(msPattern$1, 'ms-')));
  };

  var warnBadVendoredStyleName = function (name) {
    if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
      return;
    }

    warnedStyleNames[name] = true;

    error('Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));
  };

  var warnStyleValueWithSemicolon = function (name, value) {
    if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
      return;
    }

    warnedStyleValues[value] = true;

    error("Style property values shouldn't contain a semicolon. " + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));
  };

  var warnStyleValueIsNaN = function (name, value) {
    if (warnedForNaNValue) {
      return;
    }

    warnedForNaNValue = true;

    error('`NaN` is an invalid value for the `%s` css style property.', name);
  };

  var warnStyleValueIsInfinity = function (name, value) {
    if (warnedForInfinityValue) {
      return;
    }

    warnedForInfinityValue = true;

    error('`Infinity` is an invalid value for the `%s` css style property.', name);
  };

  warnValidStyle = function (name, value) {
    if (name.indexOf('-') > -1) {
      warnHyphenatedStyleName(name);
    } else if (badVendoredStyleNamePattern.test(name)) {
      warnBadVendoredStyleName(name);
    } else if (badStyleValueWithSemicolonPattern.test(value)) {
      warnStyleValueWithSemicolon(name, value);
    }

    if (typeof value === 'number') {
      if (isNaN(value)) {
        warnStyleValueIsNaN(name, value);
      } else if (!isFinite(value)) {
        warnStyleValueIsInfinity(name, value);
      }
    }
  };
}

var warnValidStyle$1 = warnValidStyle;

/**
 * Operations for dealing with CSS properties.
 */

/**
 * This creates a string that is expected to be equivalent to the style
 * attribute generated by server-side rendering. It by-passes warnings and
 * security checks so it's not safe to use this value for anything other than
 * comparison. It is only used in DEV for SSR validation.
 */

function createDangerousStringForStyles(styles) {
  {
    var serialized = '';
    var delimiter = '';

    for (var styleName in styles) {
      if (!styles.hasOwnProperty(styleName)) {
        continue;
      }

      var styleValue = styles[styleName];

      if (styleValue != null) {
        var isCustomProperty = styleName.indexOf('--') === 0;
        serialized += delimiter + (isCustomProperty ? styleName : hyphenateStyleName(styleName)) + ':';
        serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty);
        delimiter = ';';
      }
    }

    return serialized || null;
  }
}
/**
 * Sets the value for multiple styles on a node.  If a value is specified as
 * '' (empty string), the corresponding style property will be unset.
 *
 * @param {DOMElement} node
 * @param {object} styles
 */

function setValueForStyles(node, styles) {
  var style = node.style;

  for (var styleName in styles) {
    if (!styles.hasOwnProperty(styleName)) {
      continue;
    }

    var isCustomProperty = styleName.indexOf('--') === 0;

    {
      if (!isCustomProperty) {
        warnValidStyle$1(styleName, styles[styleName]);
      }
    }

    var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);

    if (styleName === 'float') {
      styleName = 'cssFloat';
    }

    if (isCustomProperty) {
      style.setProperty(styleName, styleValue);
    } else {
      style[styleName] = styleValue;
    }
  }
}

function isValueEmpty(value) {
  return value == null || typeof value === 'boolean' || value === '';
}
/**
 * Given {color: 'red', overflow: 'hidden'} returns {
 *   color: 'color',
 *   overflowX: 'overflow',
 *   overflowY: 'overflow',
 * }. This can be read as "the overflowY property was set by the overflow
 * shorthand". That is, the values are the property that each was derived from.
 */


function expandShorthandMap(styles) {
  var expanded = {};

  for (var key in styles) {
    var longhands = shorthandToLonghand[key] || [key];

    for (var i = 0; i < longhands.length; i++) {
      expanded[longhands[i]] = key;
    }
  }

  return expanded;
}
/**
 * When mixing shorthand and longhand property names, we warn during updates if
 * we expect an incorrect result to occur. In particular, we warn for:
 *
 * Updating a shorthand property (longhand gets overwritten):
 *   {font: 'foo', fontVariant: 'bar'} -> {font: 'baz', fontVariant: 'bar'}
 *   becomes .style.font = 'baz'
 * Removing a shorthand property (longhand gets lost too):
 *   {font: 'foo', fontVariant: 'bar'} -> {fontVariant: 'bar'}
 *   becomes .style.font = ''
 * Removing a longhand property (should revert to shorthand; doesn't):
 *   {font: 'foo', fontVariant: 'bar'} -> {font: 'foo'}
 *   becomes .style.fontVariant = ''
 */


function validateShorthandPropertyCollisionInDev(styleUpdates, nextStyles) {
  {
    if (!nextStyles) {
      return;
    }

    var expandedUpdates = expandShorthandMap(styleUpdates);
    var expandedStyles = expandShorthandMap(nextStyles);
    var warnedAbout = {};

    for (var key in expandedUpdates) {
      var originalKey = expandedUpdates[key];
      var correctOriginalKey = expandedStyles[key];

      if (correctOriginalKey && originalKey !== correctOriginalKey) {
        var warningKey = originalKey + ',' + correctOriginalKey;

        if (warnedAbout[warningKey]) {
          continue;
        }

        warnedAbout[warningKey] = true;

        error('%s a style property during rerender (%s) when a ' + 'conflicting property is set (%s) can lead to styling bugs. To ' + "avoid this, don't mix shorthand and non-shorthand properties " + 'for the same value; instead, replace the shorthand with ' + 'separate values.', isValueEmpty(styleUpdates[originalKey]) ? 'Removing' : 'Updating', originalKey, correctOriginalKey);
      }
    }
  }
}

// For HTML, certain tags should omit their close tag. We keep a list for
// those special-case tags.
var omittedCloseTags = {
  area: true,
  base: true,
  br: true,
  col: true,
  embed: true,
  hr: true,
  img: true,
  input: true,
  keygen: true,
  link: true,
  meta: true,
  param: true,
  source: true,
  track: true,
  wbr: true // NOTE: menuitem's close tag should be omitted, but that causes problems.

};

// `omittedCloseTags` except that `menuitem` should still have its closing tag.

var voidElementTags = _assign({
  menuitem: true
}, omittedCloseTags);

var HTML = '__html';

function assertValidProps(tag, props) {
  if (!props) {
    return;
  } // Note the use of `==` which checks for null or undefined.


  if (voidElementTags[tag]) {
    if (!(props.children == null && props.dangerouslySetInnerHTML == null)) {
      {
        throw Error( tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`." );
      }
    }
  }

  if (props.dangerouslySetInnerHTML != null) {
    if (!(props.children == null)) {
      {
        throw Error( "Can only set one of `children` or `props.dangerouslySetInnerHTML`." );
      }
    }

    if (!(typeof props.dangerouslySetInnerHTML === 'object' && HTML in props.dangerouslySetInnerHTML)) {
      {
        throw Error( "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information." );
      }
    }
  }

  {
    if (!props.suppressContentEditableWarning && props.contentEditable && props.children != null) {
      error('A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.');
    }
  }

  if (!(props.style == null || typeof props.style === 'object')) {
    {
      throw Error( "The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX." );
    }
  }
}

function isCustomComponent(tagName, props) {
  if (tagName.indexOf('-') === -1) {
    return typeof props.is === 'string';
  }

  switch (tagName) {
    // These are reserved SVG and MathML elements.
    // We don't mind this list too much because we expect it to never grow.
    // The alternative is to track the namespace in a few places which is convoluted.
    // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts
    case 'annotation-xml':
    case 'color-profile':
    case 'font-face':
    case 'font-face-src':
    case 'font-face-uri':
    case 'font-face-format':
    case 'font-face-name':
    case 'missing-glyph':
      return false;

    default:
      return true;
  }
}

// When adding attributes to the HTML or SVG allowed attribute list, be sure to
// also add them to this module to ensure casing and incorrect name
// warnings.
var possibleStandardNames = {
  // HTML
  accept: 'accept',
  acceptcharset: 'acceptCharset',
  'accept-charset': 'acceptCharset',
  accesskey: 'accessKey',
  action: 'action',
  allowfullscreen: 'allowFullScreen',
  alt: 'alt',
  as: 'as',
  async: 'async',
  autocapitalize: 'autoCapitalize',
  autocomplete: 'autoComplete',
  autocorrect: 'autoCorrect',
  autofocus: 'autoFocus',
  autoplay: 'autoPlay',
  autosave: 'autoSave',
  capture: 'capture',
  cellpadding: 'cellPadding',
  cellspacing: 'cellSpacing',
  challenge: 'challenge',
  charset: 'charSet',
  checked: 'checked',
  children: 'children',
  cite: 'cite',
  class: 'className',
  classid: 'classID',
  classname: 'className',
  cols: 'cols',
  colspan: 'colSpan',
  content: 'content',
  contenteditable: 'contentEditable',
  contextmenu: 'contextMenu',
  controls: 'controls',
  controlslist: 'controlsList',
  coords: 'coords',
  crossorigin: 'crossOrigin',
  dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',
  data: 'data',
  datetime: 'dateTime',
  default: 'default',
  defaultchecked: 'defaultChecked',
  defaultvalue: 'defaultValue',
  defer: 'defer',
  dir: 'dir',
  disabled: 'disabled',
  disablepictureinpicture: 'disablePictureInPicture',
  disableremoteplayback: 'disableRemotePlayback',
  download: 'download',
  draggable: 'draggable',
  enctype: 'encType',
  enterkeyhint: 'enterKeyHint',
  for: 'htmlFor',
  form: 'form',
  formmethod: 'formMethod',
  formaction: 'formAction',
  formenctype: 'formEncType',
  formnovalidate: 'formNoValidate',
  formtarget: 'formTarget',
  frameborder: 'frameBorder',
  headers: 'headers',
  height: 'height',
  hidden: 'hidden',
  high: 'high',
  href: 'href',
  hreflang: 'hrefLang',
  htmlfor: 'htmlFor',
  httpequiv: 'httpEquiv',
  'http-equiv': 'httpEquiv',
  icon: 'icon',
  id: 'id',
  innerhtml: 'innerHTML',
  inputmode: 'inputMode',
  integrity: 'integrity',
  is: 'is',
  itemid: 'itemID',
  itemprop: 'itemProp',
  itemref: 'itemRef',
  itemscope: 'itemScope',
  itemtype: 'itemType',
  keyparams: 'keyParams',
  keytype: 'keyType',
  kind: 'kind',
  label: 'label',
  lang: 'lang',
  list: 'list',
  loop: 'loop',
  low: 'low',
  manifest: 'manifest',
  marginwidth: 'marginWidth',
  marginheight: 'marginHeight',
  max: 'max',
  maxlength: 'maxLength',
  media: 'media',
  mediagroup: 'mediaGroup',
  method: 'method',
  min: 'min',
  minlength: 'minLength',
  multiple: 'multiple',
  muted: 'muted',
  name: 'name',
  nomodule: 'noModule',
  nonce: 'nonce',
  novalidate: 'noValidate',
  open: 'open',
  optimum: 'optimum',
  pattern: 'pattern',
  placeholder: 'placeholder',
  playsinline: 'playsInline',
  poster: 'poster',
  preload: 'preload',
  profile: 'profile',
  radiogroup: 'radioGroup',
  readonly: 'readOnly',
  referrerpolicy: 'referrerPolicy',
  rel: 'rel',
  required: 'required',
  reversed: 'reversed',
  role: 'role',
  rows: 'rows',
  rowspan: 'rowSpan',
  sandbox: 'sandbox',
  scope: 'scope',
  scoped: 'scoped',
  scrolling: 'scrolling',
  seamless: 'seamless',
  selected: 'selected',
  shape: 'shape',
  size: 'size',
  sizes: 'sizes',
  span: 'span',
  spellcheck: 'spellCheck',
  src: 'src',
  srcdoc: 'srcDoc',
  srclang: 'srcLang',
  srcset: 'srcSet',
  start: 'start',
  step: 'step',
  style: 'style',
  summary: 'summary',
  tabindex: 'tabIndex',
  target: 'target',
  title: 'title',
  type: 'type',
  usemap: 'useMap',
  value: 'value',
  width: 'width',
  wmode: 'wmode',
  wrap: 'wrap',
  // SVG
  about: 'about',
  accentheight: 'accentHeight',
  'accent-height': 'accentHeight',
  accumulate: 'accumulate',
  additive: 'additive',
  alignmentbaseline: 'alignmentBaseline',
  'alignment-baseline': 'alignmentBaseline',
  allowreorder: 'allowReorder',
  alphabetic: 'alphabetic',
  amplitude: 'amplitude',
  arabicform: 'arabicForm',
  'arabic-form': 'arabicForm',
  ascent: 'ascent',
  attributename: 'attributeName',
  attributetype: 'attributeType',
  autoreverse: 'autoReverse',
  azimuth: 'azimuth',
  basefrequency: 'baseFrequency',
  baselineshift: 'baselineShift',
  'baseline-shift': 'baselineShift',
  baseprofile: 'baseProfile',
  bbox: 'bbox',
  begin: 'begin',
  bias: 'bias',
  by: 'by',
  calcmode: 'calcMode',
  capheight: 'capHeight',
  'cap-height': 'capHeight',
  clip: 'clip',
  clippath: 'clipPath',
  'clip-path': 'clipPath',
  clippathunits: 'clipPathUnits',
  cliprule: 'clipRule',
  'clip-rule': 'clipRule',
  color: 'color',
  colorinterpolation: 'colorInterpolation',
  'color-interpolation': 'colorInterpolation',
  colorinterpolationfilters: 'colorInterpolationFilters',
  'color-interpolation-filters': 'colorInterpolationFilters',
  colorprofile: 'colorProfile',
  'color-profile': 'colorProfile',
  colorrendering: 'colorRendering',
  'color-rendering': 'colorRendering',
  contentscripttype: 'contentScriptType',
  contentstyletype: 'contentStyleType',
  cursor: 'cursor',
  cx: 'cx',
  cy: 'cy',
  d: 'd',
  datatype: 'datatype',
  decelerate: 'decelerate',
  descent: 'descent',
  diffuseconstant: 'diffuseConstant',
  direction: 'direction',
  display: 'display',
  divisor: 'divisor',
  dominantbaseline: 'dominantBaseline',
  'dominant-baseline': 'dominantBaseline',
  dur: 'dur',
  dx: 'dx',
  dy: 'dy',
  edgemode: 'edgeMode',
  elevation: 'elevation',
  enablebackground: 'enableBackground',
  'enable-background': 'enableBackground',
  end: 'end',
  exponent: 'exponent',
  externalresourcesrequired: 'externalResourcesRequired',
  fill: 'fill',
  fillopacity: 'fillOpacity',
  'fill-opacity': 'fillOpacity',
  fillrule: 'fillRule',
  'fill-rule': 'fillRule',
  filter: 'filter',
  filterres: 'filterRes',
  filterunits: 'filterUnits',
  floodopacity: 'floodOpacity',
  'flood-opacity': 'floodOpacity',
  floodcolor: 'floodColor',
  'flood-color': 'floodColor',
  focusable: 'focusable',
  fontfamily: 'fontFamily',
  'font-family': 'fontFamily',
  fontsize: 'fontSize',
  'font-size': 'fontSize',
  fontsizeadjust: 'fontSizeAdjust',
  'font-size-adjust': 'fontSizeAdjust',
  fontstretch: 'fontStretch',
  'font-stretch': 'fontStretch',
  fontstyle: 'fontStyle',
  'font-style': 'fontStyle',
  fontvariant: 'fontVariant',
  'font-variant': 'fontVariant',
  fontweight: 'fontWeight',
  'font-weight': 'fontWeight',
  format: 'format',
  from: 'from',
  fx: 'fx',
  fy: 'fy',
  g1: 'g1',
  g2: 'g2',
  glyphname: 'glyphName',
  'glyph-name': 'glyphName',
  glyphorientationhorizontal: 'glyphOrientationHorizontal',
  'glyph-orientation-horizontal': 'glyphOrientationHorizontal',
  glyphorientationvertical: 'glyphOrientationVertical',
  'glyph-orientation-vertical': 'glyphOrientationVertical',
  glyphref: 'glyphRef',
  gradienttransform: 'gradientTransform',
  gradientunits: 'gradientUnits',
  hanging: 'hanging',
  horizadvx: 'horizAdvX',
  'horiz-adv-x': 'horizAdvX',
  horizoriginx: 'horizOriginX',
  'horiz-origin-x': 'horizOriginX',
  ideographic: 'ideographic',
  imagerendering: 'imageRendering',
  'image-rendering': 'imageRendering',
  in2: 'in2',
  in: 'in',
  inlist: 'inlist',
  intercept: 'intercept',
  k1: 'k1',
  k2: 'k2',
  k3: 'k3',
  k4: 'k4',
  k: 'k',
  kernelmatrix: 'kernelMatrix',
  kernelunitlength: 'kernelUnitLength',
  kerning: 'kerning',
  keypoints: 'keyPoints',
  keysplines: 'keySplines',
  keytimes: 'keyTimes',
  lengthadjust: 'lengthAdjust',
  letterspacing: 'letterSpacing',
  'letter-spacing': 'letterSpacing',
  lightingcolor: 'lightingColor',
  'lighting-color': 'lightingColor',
  limitingconeangle: 'limitingConeAngle',
  local: 'local',
  markerend: 'markerEnd',
  'marker-end': 'markerEnd',
  markerheight: 'markerHeight',
  markermid: 'markerMid',
  'marker-mid': 'markerMid',
  markerstart: 'markerStart',
  'marker-start': 'markerStart',
  markerunits: 'markerUnits',
  markerwidth: 'markerWidth',
  mask: 'mask',
  maskcontentunits: 'maskContentUnits',
  maskunits: 'maskUnits',
  mathematical: 'mathematical',
  mode: 'mode',
  numoctaves: 'numOctaves',
  offset: 'offset',
  opacity: 'opacity',
  operator: 'operator',
  order: 'order',
  orient: 'orient',
  orientation: 'orientation',
  origin: 'origin',
  overflow: 'overflow',
  overlineposition: 'overlinePosition',
  'overline-position': 'overlinePosition',
  overlinethickness: 'overlineThickness',
  'overline-thickness': 'overlineThickness',
  paintorder: 'paintOrder',
  'paint-order': 'paintOrder',
  panose1: 'panose1',
  'panose-1': 'panose1',
  pathlength: 'pathLength',
  patterncontentunits: 'patternContentUnits',
  patterntransform: 'patternTransform',
  patternunits: 'patternUnits',
  pointerevents: 'pointerEvents',
  'pointer-events': 'pointerEvents',
  points: 'points',
  pointsatx: 'pointsAtX',
  pointsaty: 'pointsAtY',
  pointsatz: 'pointsAtZ',
  prefix: 'prefix',
  preservealpha: 'preserveAlpha',
  preserveaspectratio: 'preserveAspectRatio',
  primitiveunits: 'primitiveUnits',
  property: 'property',
  r: 'r',
  radius: 'radius',
  refx: 'refX',
  refy: 'refY',
  renderingintent: 'renderingIntent',
  'rendering-intent': 'renderingIntent',
  repeatcount: 'repeatCount',
  repeatdur: 'repeatDur',
  requiredextensions: 'requiredExtensions',
  requiredfeatures: 'requiredFeatures',
  resource: 'resource',
  restart: 'restart',
  result: 'result',
  results: 'results',
  rotate: 'rotate',
  rx: 'rx',
  ry: 'ry',
  scale: 'scale',
  security: 'security',
  seed: 'seed',
  shaperendering: 'shapeRendering',
  'shape-rendering': 'shapeRendering',
  slope: 'slope',
  spacing: 'spacing',
  specularconstant: 'specularConstant',
  specularexponent: 'specularExponent',
  speed: 'speed',
  spreadmethod: 'spreadMethod',
  startoffset: 'startOffset',
  stddeviation: 'stdDeviation',
  stemh: 'stemh',
  stemv: 'stemv',
  stitchtiles: 'stitchTiles',
  stopcolor: 'stopColor',
  'stop-color': 'stopColor',
  stopopacity: 'stopOpacity',
  'stop-opacity': 'stopOpacity',
  strikethroughposition: 'strikethroughPosition',
  'strikethrough-position': 'strikethroughPosition',
  strikethroughthickness: 'strikethroughThickness',
  'strikethrough-thickness': 'strikethroughThickness',
  string: 'string',
  stroke: 'stroke',
  strokedasharray: 'strokeDasharray',
  'stroke-dasharray': 'strokeDasharray',
  strokedashoffset: 'strokeDashoffset',
  'stroke-dashoffset': 'strokeDashoffset',
  strokelinecap: 'strokeLinecap',
  'stroke-linecap': 'strokeLinecap',
  strokelinejoin: 'strokeLinejoin',
  'stroke-linejoin': 'strokeLinejoin',
  strokemiterlimit: 'strokeMiterlimit',
  'stroke-miterlimit': 'strokeMiterlimit',
  strokewidth: 'strokeWidth',
  'stroke-width': 'strokeWidth',
  strokeopacity: 'strokeOpacity',
  'stroke-opacity': 'strokeOpacity',
  suppresscontenteditablewarning: 'suppressContentEditableWarning',
  suppresshydrationwarning: 'suppressHydrationWarning',
  surfacescale: 'surfaceScale',
  systemlanguage: 'systemLanguage',
  tablevalues: 'tableValues',
  targetx: 'targetX',
  targety: 'targetY',
  textanchor: 'textAnchor',
  'text-anchor': 'textAnchor',
  textdecoration: 'textDecoration',
  'text-decoration': 'textDecoration',
  textlength: 'textLength',
  textrendering: 'textRendering',
  'text-rendering': 'textRendering',
  to: 'to',
  transform: 'transform',
  typeof: 'typeof',
  u1: 'u1',
  u2: 'u2',
  underlineposition: 'underlinePosition',
  'underline-position': 'underlinePosition',
  underlinethickness: 'underlineThickness',
  'underline-thickness': 'underlineThickness',
  unicode: 'unicode',
  unicodebidi: 'unicodeBidi',
  'unicode-bidi': 'unicodeBidi',
  unicoderange: 'unicodeRange',
  'unicode-range': 'unicodeRange',
  unitsperem: 'unitsPerEm',
  'units-per-em': 'unitsPerEm',
  unselectable: 'unselectable',
  valphabetic: 'vAlphabetic',
  'v-alphabetic': 'vAlphabetic',
  values: 'values',
  vectoreffect: 'vectorEffect',
  'vector-effect': 'vectorEffect',
  version: 'version',
  vertadvy: 'vertAdvY',
  'vert-adv-y': 'vertAdvY',
  vertoriginx: 'vertOriginX',
  'vert-origin-x': 'vertOriginX',
  vertoriginy: 'vertOriginY',
  'vert-origin-y': 'vertOriginY',
  vhanging: 'vHanging',
  'v-hanging': 'vHanging',
  videographic: 'vIdeographic',
  'v-ideographic': 'vIdeographic',
  viewbox: 'viewBox',
  viewtarget: 'viewTarget',
  visibility: 'visibility',
  vmathematical: 'vMathematical',
  'v-mathematical': 'vMathematical',
  vocab: 'vocab',
  widths: 'widths',
  wordspacing: 'wordSpacing',
  'word-spacing': 'wordSpacing',
  writingmode: 'writingMode',
  'writing-mode': 'writingMode',
  x1: 'x1',
  x2: 'x2',
  x: 'x',
  xchannelselector: 'xChannelSelector',
  xheight: 'xHeight',
  'x-height': 'xHeight',
  xlinkactuate: 'xlinkActuate',
  'xlink:actuate': 'xlinkActuate',
  xlinkarcrole: 'xlinkArcrole',
  'xlink:arcrole': 'xlinkArcrole',
  xlinkhref: 'xlinkHref',
  'xlink:href': 'xlinkHref',
  xlinkrole: 'xlinkRole',
  'xlink:role': 'xlinkRole',
  xlinkshow: 'xlinkShow',
  'xlink:show': 'xlinkShow',
  xlinktitle: 'xlinkTitle',
  'xlink:title': 'xlinkTitle',
  xlinktype: 'xlinkType',
  'xlink:type': 'xlinkType',
  xmlbase: 'xmlBase',
  'xml:base': 'xmlBase',
  xmllang: 'xmlLang',
  'xml:lang': 'xmlLang',
  xmlns: 'xmlns',
  'xml:space': 'xmlSpace',
  xmlnsxlink: 'xmlnsXlink',
  'xmlns:xlink': 'xmlnsXlink',
  xmlspace: 'xmlSpace',
  y1: 'y1',
  y2: 'y2',
  y: 'y',
  ychannelselector: 'yChannelSelector',
  z: 'z',
  zoomandpan: 'zoomAndPan'
};

var ariaProperties = {
  'aria-current': 0,
  // state
  'aria-details': 0,
  'aria-disabled': 0,
  // state
  'aria-hidden': 0,
  // state
  'aria-invalid': 0,
  // state
  'aria-keyshortcuts': 0,
  'aria-label': 0,
  'aria-roledescription': 0,
  // Widget Attributes
  'aria-autocomplete': 0,
  'aria-checked': 0,
  'aria-expanded': 0,
  'aria-haspopup': 0,
  'aria-level': 0,
  'aria-modal': 0,
  'aria-multiline': 0,
  'aria-multiselectable': 0,
  'aria-orientation': 0,
  'aria-placeholder': 0,
  'aria-pressed': 0,
  'aria-readonly': 0,
  'aria-required': 0,
  'aria-selected': 0,
  'aria-sort': 0,
  'aria-valuemax': 0,
  'aria-valuemin': 0,
  'aria-valuenow': 0,
  'aria-valuetext': 0,
  // Live Region Attributes
  'aria-atomic': 0,
  'aria-busy': 0,
  'aria-live': 0,
  'aria-relevant': 0,
  // Drag-and-Drop Attributes
  'aria-dropeffect': 0,
  'aria-grabbed': 0,
  // Relationship Attributes
  'aria-activedescendant': 0,
  'aria-colcount': 0,
  'aria-colindex': 0,
  'aria-colspan': 0,
  'aria-controls': 0,
  'aria-describedby': 0,
  'aria-errormessage': 0,
  'aria-flowto': 0,
  'aria-labelledby': 0,
  'aria-owns': 0,
  'aria-posinset': 0,
  'aria-rowcount': 0,
  'aria-rowindex': 0,
  'aria-rowspan': 0,
  'aria-setsize': 0
};

var warnedProperties = {};
var rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
var rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;

function validateProperty(tagName, name) {
  {
    if (hasOwnProperty$1.call(warnedProperties, name) && warnedProperties[name]) {
      return true;
    }

    if (rARIACamel.test(name)) {
      var ariaName = 'aria-' + name.slice(4).toLowerCase();
      var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null; // If this is an aria-* attribute, but is not listed in the known DOM
      // DOM properties, then it is an invalid aria-* attribute.

      if (correctName == null) {
        error('Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);

        warnedProperties[name] = true;
        return true;
      } // aria-* attributes should be lowercase; suggest the lowercase version.


      if (name !== correctName) {
        error('Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);

        warnedProperties[name] = true;
        return true;
      }
    }

    if (rARIA.test(name)) {
      var lowerCasedName = name.toLowerCase();
      var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null; // If this is an aria-* attribute, but is not listed in the known DOM
      // DOM properties, then it is an invalid aria-* attribute.

      if (standardName == null) {
        warnedProperties[name] = true;
        return false;
      } // aria-* attributes should be lowercase; suggest the lowercase version.


      if (name !== standardName) {
        error('Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);

        warnedProperties[name] = true;
        return true;
      }
    }
  }

  return true;
}

function warnInvalidARIAProps(type, props) {
  {
    var invalidProps = [];

    for (var key in props) {
      var isValid = validateProperty(type, key);

      if (!isValid) {
        invalidProps.push(key);
      }
    }

    var unknownPropString = invalidProps.map(function (prop) {
      return '`' + prop + '`';
    }).join(', ');

    if (invalidProps.length === 1) {
      error('Invalid aria prop %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type);
    } else if (invalidProps.length > 1) {
      error('Invalid aria props %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type);
    }
  }
}

function validateProperties(type, props) {
  if (isCustomComponent(type, props)) {
    return;
  }

  warnInvalidARIAProps(type, props);
}

var didWarnValueNull = false;
function validateProperties$1(type, props) {
  {
    if (type !== 'input' && type !== 'textarea' && type !== 'select') {
      return;
    }

    if (props != null && props.value === null && !didWarnValueNull) {
      didWarnValueNull = true;

      if (type === 'select' && props.multiple) {
        error('`value` prop on `%s` should not be null. ' + 'Consider using an empty array when `multiple` is set to `true` ' + 'to clear the component or `undefined` for uncontrolled components.', type);
      } else {
        error('`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type);
      }
    }
  }
}

var validateProperty$1 = function () {};

{
  var warnedProperties$1 = {};
  var _hasOwnProperty = Object.prototype.hasOwnProperty;
  var EVENT_NAME_REGEX = /^on./;
  var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;
  var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');

  validateProperty$1 = function (tagName, name, value, eventRegistry) {
    if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {
      return true;
    }

    var lowerCasedName = name.toLowerCase();

    if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
      error('React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.');

      warnedProperties$1[name] = true;
      return true;
    } // We can't rely on the event system being injected on the server.


    if (eventRegistry != null) {
      var registrationNameDependencies = eventRegistry.registrationNameDependencies,
          possibleRegistrationNames = eventRegistry.possibleRegistrationNames;

      if (registrationNameDependencies.hasOwnProperty(name)) {
        return true;
      }

      var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;

      if (registrationName != null) {
        error('Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);

        warnedProperties$1[name] = true;
        return true;
      }

      if (EVENT_NAME_REGEX.test(name)) {
        error('Unknown event handler property `%s`. It will be ignored.', name);

        warnedProperties$1[name] = true;
        return true;
      }
    } else if (EVENT_NAME_REGEX.test(name)) {
      // If no event plugins have been injected, we are in a server environment.
      // So we can't tell if the event name is correct for sure, but we can filter
      // out known bad ones like `onclick`. We can't suggest a specific replacement though.
      if (INVALID_EVENT_NAME_REGEX.test(name)) {
        error('Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);
      }

      warnedProperties$1[name] = true;
      return true;
    } // Let the ARIA attribute hook validate ARIA attributes


    if (rARIA$1.test(name) || rARIACamel$1.test(name)) {
      return true;
    }

    if (lowerCasedName === 'innerhtml') {
      error('Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');

      warnedProperties$1[name] = true;
      return true;
    }

    if (lowerCasedName === 'aria') {
      error('The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');

      warnedProperties$1[name] = true;
      return true;
    }

    if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {
      error('Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);

      warnedProperties$1[name] = true;
      return true;
    }

    if (typeof value === 'number' && isNaN(value)) {
      error('Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);

      warnedProperties$1[name] = true;
      return true;
    }

    var propertyInfo = getPropertyInfo(name);
    var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED; // Known attributes should match the casing specified in the property config.

    if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
      var standardName = possibleStandardNames[lowerCasedName];

      if (standardName !== name) {
        error('Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);

        warnedProperties$1[name] = true;
        return true;
      }
    } else if (!isReserved && name !== lowerCasedName) {
      // Unknown attributes should have lowercase casing since that's how they
      // will be cased anyway with server rendering.
      error('React does not recognize the `%s` prop on a DOM element. If you ' + 'intentionally want it to appear in the DOM as a custom ' + 'attribute, spell it as lowercase `%s` instead. ' + 'If you accidentally passed it from a parent component, remove ' + 'it from the DOM element.', name, lowerCasedName);

      warnedProperties$1[name] = true;
      return true;
    }

    if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
      if (value) {
        error('Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.', value, name, name, value, name);
      } else {
        error('Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', value, name, name, value, name, name, name);
      }

      warnedProperties$1[name] = true;
      return true;
    } // Now that we've validated casing, do not validate
    // data types for reserved props


    if (isReserved) {
      return true;
    } // Warn when a known attribute is a bad type


    if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
      warnedProperties$1[name] = true;
      return false;
    } // Warn when passing the strings 'false' or 'true' into a boolean prop


    if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {
      error('Received the string `%s` for the boolean attribute `%s`. ' + '%s ' + 'Did you mean %s={%s}?', value, name, value === 'false' ? 'The browser will interpret it as a truthy value.' : 'Although this works, it will not work as expected if you pass the string "false".', name, value);

      warnedProperties$1[name] = true;
      return true;
    }

    return true;
  };
}

var warnUnknownProperties = function (type, props, eventRegistry) {
  {
    var unknownProps = [];

    for (var key in props) {
      var isValid = validateProperty$1(type, key, props[key], eventRegistry);

      if (!isValid) {
        unknownProps.push(key);
      }
    }

    var unknownPropString = unknownProps.map(function (prop) {
      return '`' + prop + '`';
    }).join(', ');

    if (unknownProps.length === 1) {
      error('Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://reactjs.org/link/attribute-behavior ', unknownPropString, type);
    } else if (unknownProps.length > 1) {
      error('Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://reactjs.org/link/attribute-behavior ', unknownPropString, type);
    }
  }
};

function validateProperties$2(type, props, eventRegistry) {
  if (isCustomComponent(type, props)) {
    return;
  }

  warnUnknownProperties(type, props, eventRegistry);
}

var IS_EVENT_HANDLE_NON_MANAGED_NODE = 1;
var IS_NON_DELEGATED = 1 << 1;
var IS_CAPTURE_PHASE = 1 << 2;
var IS_REPLAYED = 1 << 4;
// set to LEGACY_FB_SUPPORT. LEGACY_FB_SUPPORT only gets set when
// we call willDeferLaterForLegacyFBSupport, thus not bailing out
// will result in endless cycles like an infinite loop.
// We also don't want to defer during event replaying.

var SHOULD_NOT_PROCESS_POLYFILL_EVENT_PLUGINS = IS_EVENT_HANDLE_NON_MANAGED_NODE | IS_NON_DELEGATED | IS_CAPTURE_PHASE;

/**
 * Gets the target node from a native browser event by accounting for
 * inconsistencies in browser DOM APIs.
 *
 * @param {object} nativeEvent Native browser event.
 * @return {DOMEventTarget} Target node.
 */

function getEventTarget(nativeEvent) {
  // Fallback to nativeEvent.srcElement for IE9
  // https://github.com/facebook/react/issues/12506
  var target = nativeEvent.target || nativeEvent.srcElement || window; // Normalize SVG <use> element events #4963

  if (target.correspondingUseElement) {
    target = target.correspondingUseElement;
  } // Safari may fire events on text nodes (Node.TEXT_NODE is 3).
  // @see http://www.quirksmode.org/js/events_properties.html


  return target.nodeType === TEXT_NODE ? target.parentNode : target;
}

var restoreImpl = null;
var restoreTarget = null;
var restoreQueue = null;

function restoreStateOfTarget(target) {
  // We perform this translation at the end of the event loop so that we
  // always receive the correct fiber here
  var internalInstance = getInstanceFromNode(target);

  if (!internalInstance) {
    // Unmounted
    return;
  }

  if (!(typeof restoreImpl === 'function')) {
    {
      throw Error( "setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue." );
    }
  }

  var stateNode = internalInstance.stateNode; // Guard against Fiber being unmounted.

  if (stateNode) {
    var _props = getFiberCurrentPropsFromNode(stateNode);

    restoreImpl(internalInstance.stateNode, internalInstance.type, _props);
  }
}

function setRestoreImplementation(impl) {
  restoreImpl = impl;
}
function enqueueStateRestore(target) {
  if (restoreTarget) {
    if (restoreQueue) {
      restoreQueue.push(target);
    } else {
      restoreQueue = [target];
    }
  } else {
    restoreTarget = target;
  }
}
function needsStateRestore() {
  return restoreTarget !== null || restoreQueue !== null;
}
function restoreStateIfNeeded() {
  if (!restoreTarget) {
    return;
  }

  var target = restoreTarget;
  var queuedTargets = restoreQueue;
  restoreTarget = null;
  restoreQueue = null;
  restoreStateOfTarget(target);

  if (queuedTargets) {
    for (var i = 0; i < queuedTargets.length; i++) {
      restoreStateOfTarget(queuedTargets[i]);
    }
  }
}

// the renderer. Such as when we're dispatching events or if third party
// libraries need to call batchedUpdates. Eventually, this API will go away when
// everything is batched by default. We'll then have a similar API to opt-out of
// scheduled work and instead do synchronous work.
// Defaults

var batchedUpdatesImpl = function (fn, bookkeeping) {
  return fn(bookkeeping);
};

var discreteUpdatesImpl = function (fn, a, b, c, d) {
  return fn(a, b, c, d);
};

var flushDiscreteUpdatesImpl = function () {};

var batchedEventUpdatesImpl = batchedUpdatesImpl;
var isInsideEventHandler = false;
var isBatchingEventUpdates = false;

function finishEventHandler() {
  // Here we wait until all updates have propagated, which is important
  // when using controlled components within layers:
  // https://github.com/facebook/react/issues/1698
  // Then we restore state of any controlled component.
  var controlledComponentsHavePendingUpdates = needsStateRestore();

  if (controlledComponentsHavePendingUpdates) {
    // If a controlled event was fired, we may need to restore the state of
    // the DOM node back to the controlled value. This is necessary when React
    // bails out of the update without touching the DOM.
    flushDiscreteUpdatesImpl();
    restoreStateIfNeeded();
  }
}

function batchedUpdates(fn, bookkeeping) {
  if (isInsideEventHandler) {
    // If we are currently inside another batch, we need to wait until it
    // fully completes before restoring state.
    return fn(bookkeeping);
  }

  isInsideEventHandler = true;

  try {
    return batchedUpdatesImpl(fn, bookkeeping);
  } finally {
    isInsideEventHandler = false;
    finishEventHandler();
  }
}
function batchedEventUpdates(fn, a, b) {
  if (isBatchingEventUpdates) {
    // If we are currently inside another batch, we need to wait until it
    // fully completes before restoring state.
    return fn(a, b);
  }

  isBatchingEventUpdates = true;

  try {
    return batchedEventUpdatesImpl(fn, a, b);
  } finally {
    isBatchingEventUpdates = false;
    finishEventHandler();
  }
}
function discreteUpdates(fn, a, b, c, d) {
  var prevIsInsideEventHandler = isInsideEventHandler;
  isInsideEventHandler = true;

  try {
    return discreteUpdatesImpl(fn, a, b, c, d);
  } finally {
    isInsideEventHandler = prevIsInsideEventHandler;

    if (!isInsideEventHandler) {
      finishEventHandler();
    }
  }
}
function flushDiscreteUpdatesIfNeeded(timeStamp) {
  {
    if (!isInsideEventHandler) {
      flushDiscreteUpdatesImpl();
    }
  }
}
function setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl, _flushDiscreteUpdatesImpl, _batchedEventUpdatesImpl) {
  batchedUpdatesImpl = _batchedUpdatesImpl;
  discreteUpdatesImpl = _discreteUpdatesImpl;
  flushDiscreteUpdatesImpl = _flushDiscreteUpdatesImpl;
  batchedEventUpdatesImpl = _batchedEventUpdatesImpl;
}

function isInteractive(tag) {
  return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
}

function shouldPreventMouseEvent(name, type, props) {
  switch (name) {
    case 'onClick':
    case 'onClickCapture':
    case 'onDoubleClick':
    case 'onDoubleClickCapture':
    case 'onMouseDown':
    case 'onMouseDownCapture':
    case 'onMouseMove':
    case 'onMouseMoveCapture':
    case 'onMouseUp':
    case 'onMouseUpCapture':
    case 'onMouseEnter':
      return !!(props.disabled && isInteractive(type));

    default:
      return false;
  }
}
/**
 * @param {object} inst The instance, which is the source of events.
 * @param {string} registrationName Name of listener (e.g. `onClick`).
 * @return {?function} The stored callback.
 */


function getListener(inst, registrationName) {
  var stateNode = inst.stateNode;

  if (stateNode === null) {
    // Work in progress (ex: onload events in incremental mode).
    return null;
  }

  var props = getFiberCurrentPropsFromNode(stateNode);

  if (props === null) {
    // Work in progress.
    return null;
  }

  var listener = props[registrationName];

  if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
    return null;
  }

  if (!(!listener || typeof listener === 'function')) {
    {
      throw Error( "Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type." );
    }
  }

  return listener;
}

var passiveBrowserEventsSupported = false; // Check if browser support events with passive listeners
// https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support

if (canUseDOM) {
  try {
    var options = {}; // $FlowFixMe: Ignore Flow complaining about needing a value

    Object.defineProperty(options, 'passive', {
      get: function () {
        passiveBrowserEventsSupported = true;
      }
    });
    window.addEventListener('test', options, options);
    window.removeEventListener('test', options, options);
  } catch (e) {
    passiveBrowserEventsSupported = false;
  }
}

function invokeGuardedCallbackProd(name, func, context, a, b, c, d, e, f) {
  var funcArgs = Array.prototype.slice.call(arguments, 3);

  try {
    func.apply(context, funcArgs);
  } catch (error) {
    this.onError(error);
  }
}

var invokeGuardedCallbackImpl = invokeGuardedCallbackProd;

{
  // In DEV mode, we swap out invokeGuardedCallback for a special version
  // that plays more nicely with the browser's DevTools. The idea is to preserve
  // "Pause on exceptions" behavior. Because React wraps all user-provided
  // functions in invokeGuardedCallback, and the production version of
  // invokeGuardedCallback uses a try-catch, all user exceptions are treated
  // like caught exceptions, and the DevTools won't pause unless the developer
  // takes the extra step of enabling pause on caught exceptions. This is
  // unintuitive, though, because even though React has caught the error, from
  // the developer's perspective, the error is uncaught.
  //
  // To preserve the expected "Pause on exceptions" behavior, we don't use a
  // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake
  // DOM node, and call the user-provided callback from inside an event handler
  // for that fake event. If the callback throws, the error is "captured" using
  // a global event handler. But because the error happens in a different
  // event loop context, it does not interrupt the normal program flow.
  // Effectively, this gives us try-catch behavior without actually using
  // try-catch. Neat!
  // Check that the browser supports the APIs we need to implement our special
  // DEV version of invokeGuardedCallback
  if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {
    var fakeNode = document.createElement('react');

    invokeGuardedCallbackImpl = function invokeGuardedCallbackDev(name, func, context, a, b, c, d, e, f) {
      // If document doesn't exist we know for sure we will crash in this method
      // when we call document.createEvent(). However this can cause confusing
      // errors: https://github.com/facebookincubator/create-react-app/issues/3482
      // So we preemptively throw with a better message instead.
      if (!(typeof document !== 'undefined')) {
        {
          throw Error( "The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous." );
        }
      }

      var evt = document.createEvent('Event');
      var didCall = false; // Keeps track of whether the user-provided callback threw an error. We
      // set this to true at the beginning, then set it to false right after
      // calling the function. If the function errors, `didError` will never be
      // set to false. This strategy works even if the browser is flaky and
      // fails to call our global error handler, because it doesn't rely on
      // the error event at all.

      var didError = true; // Keeps track of the value of window.event so that we can reset it
      // during the callback to let user code access window.event in the
      // browsers that support it.

      var windowEvent = window.event; // Keeps track of the descriptor of window.event to restore it after event
      // dispatching: https://github.com/facebook/react/issues/13688

      var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event');

      function restoreAfterDispatch() {
        // We immediately remove the callback from event listeners so that
        // nested `invokeGuardedCallback` calls do not clash. Otherwise, a
        // nested call would trigger the fake event handlers of any call higher
        // in the stack.
        fakeNode.removeEventListener(evtType, callCallback, false); // We check for window.hasOwnProperty('event') to prevent the
        // window.event assignment in both IE <= 10 as they throw an error
        // "Member not found" in strict mode, and in Firefox which does not
        // support window.event.

        if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) {
          window.event = windowEvent;
        }
      } // Create an event handler for our fake event. We will synchronously
      // dispatch our fake event using `dispatchEvent`. Inside the handler, we
      // call the user-provided callback.


      var funcArgs = Array.prototype.slice.call(arguments, 3);

      function callCallback() {
        didCall = true;
        restoreAfterDispatch();
        func.apply(context, funcArgs);
        didError = false;
      } // Create a global error event handler. We use this to capture the value
      // that was thrown. It's possible that this error handler will fire more
      // than once; for example, if non-React code also calls `dispatchEvent`
      // and a handler for that event throws. We should be resilient to most of
      // those cases. Even if our error event handler fires more than once, the
      // last error event is always used. If the callback actually does error,
      // we know that the last error event is the correct one, because it's not
      // possible for anything else to have happened in between our callback
      // erroring and the code that follows the `dispatchEvent` call below. If
      // the callback doesn't error, but the error event was fired, we know to
      // ignore it because `didError` will be false, as described above.


      var error; // Use this to track whether the error event is ever called.

      var didSetError = false;
      var isCrossOriginError = false;

      function handleWindowError(event) {
        error = event.error;
        didSetError = true;

        if (error === null && event.colno === 0 && event.lineno === 0) {
          isCrossOriginError = true;
        }

        if (event.defaultPrevented) {
          // Some other error handler has prevented default.
          // Browsers silence the error report if this happens.
          // We'll remember this to later decide whether to log it or not.
          if (error != null && typeof error === 'object') {
            try {
              error._suppressLogging = true;
            } catch (inner) {// Ignore.
            }
          }
        }
      } // Create a fake event type.


      var evtType = "react-" + (name ? name : 'invokeguardedcallback'); // Attach our event handlers

      window.addEventListener('error', handleWindowError);
      fakeNode.addEventListener(evtType, callCallback, false); // Synchronously dispatch our fake event. If the user-provided function
      // errors, it will trigger our global error handler.

      evt.initEvent(evtType, false, false);
      fakeNode.dispatchEvent(evt);

      if (windowEventDescriptor) {
        Object.defineProperty(window, 'event', windowEventDescriptor);
      }

      if (didCall && didError) {
        if (!didSetError) {
          // The callback errored, but the error event never fired.
          error = new Error('An error was thrown inside one of your components, but React ' + "doesn't know what it was. This is likely due to browser " + 'flakiness. React does its best to preserve the "Pause on ' + 'exceptions" behavior of the DevTools, which requires some ' + "DEV-mode only tricks. It's possible that these don't work in " + 'your browser. Try triggering the error in production mode, ' + 'or switching to a modern browser. If you suspect that this is ' + 'actually an issue with React, please file an issue.');
        } else if (isCrossOriginError) {
          error = new Error("A cross-origin error was thrown. React doesn't have access to " + 'the actual error object in development. ' + 'See https://reactjs.org/link/crossorigin-error for more information.');
        }

        this.onError(error);
      } // Remove our event listeners


      window.removeEventListener('error', handleWindowError);

      if (!didCall) {
        // Something went really wrong, and our event was not dispatched.
        // https://github.com/facebook/react/issues/16734
        // https://github.com/facebook/react/issues/16585
        // Fall back to the production implementation.
        restoreAfterDispatch();
        return invokeGuardedCallbackProd.apply(this, arguments);
      }
    };
  }
}

var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl;

var hasError = false;
var caughtError = null; // Used by event system to capture/rethrow the first error.

var hasRethrowError = false;
var rethrowError = null;
var reporter = {
  onError: function (error) {
    hasError = true;
    caughtError = error;
  }
};
/**
 * Call a function while guarding against errors that happens within it.
 * Returns an error if it throws, otherwise null.
 *
 * In production, this is implemented using a try-catch. The reason we don't
 * use a try-catch directly is so that we can swap out a different
 * implementation in DEV mode.
 *
 * @param {String} name of the guard to use for logging or debugging
 * @param {Function} func The function to invoke
 * @param {*} context The context to use when calling the function
 * @param {...*} args Arguments for function
 */

function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {
  hasError = false;
  caughtError = null;
  invokeGuardedCallbackImpl$1.apply(reporter, arguments);
}
/**
 * Same as invokeGuardedCallback, but instead of returning an error, it stores
 * it in a global so it can be rethrown by `rethrowCaughtError` later.
 * TODO: See if caughtError and rethrowError can be unified.
 *
 * @param {String} name of the guard to use for logging or debugging
 * @param {Function} func The function to invoke
 * @param {*} context The context to use when calling the function
 * @param {...*} args Arguments for function
 */

function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) {
  invokeGuardedCallback.apply(this, arguments);

  if (hasError) {
    var error = clearCaughtError();

    if (!hasRethrowError) {
      hasRethrowError = true;
      rethrowError = error;
    }
  }
}
/**
 * During execution of guarded functions we will capture the first error which
 * we will rethrow to be handled by the top level error handler.
 */

function rethrowCaughtError() {
  if (hasRethrowError) {
    var error = rethrowError;
    hasRethrowError = false;
    rethrowError = null;
    throw error;
  }
}
function hasCaughtError() {
  return hasError;
}
function clearCaughtError() {
  if (hasError) {
    var error = caughtError;
    hasError = false;
    caughtError = null;
    return error;
  } else {
    {
      {
        throw Error( "clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue." );
      }
    }
  }
}

/**
 * `ReactInstanceMap` maintains a mapping from a public facing stateful
 * instance (key) and the internal representation (value). This allows public
 * methods to accept the user facing instance as an argument and map them back
 * to internal methods.
 *
 * Note that this module is currently shared and assumed to be stateless.
 * If this becomes an actual Map, that will break.
 */
function get(key) {
  return key._reactInternals;
}
function has(key) {
  return key._reactInternals !== undefined;
}
function set(key, value) {
  key._reactInternals = value;
}

// Don't change these two values. They're used by React Dev Tools.
var NoFlags =
/*                      */
0;
var PerformedWork =
/*                */
1; // You can change the rest (and add more).

var Placement =
/*                    */
2;
var Update =
/*                       */
4;
var PlacementAndUpdate =
/*           */
6;
var Deletion =
/*                     */
8;
var ContentReset =
/*                 */
16;
var Callback =
/*                     */
32;
var DidCapture =
/*                   */
64;
var Ref =
/*                          */
128;
var Snapshot =
/*                     */
256;
var Passive =
/*                      */
512; // TODO (effects) Remove this bit once the new reconciler is synced to the old.

var PassiveUnmountPendingDev =
/*     */
8192;
var Hydrating =
/*                    */
1024;
var HydratingAndUpdate =
/*           */
1028; // Passive & Update & Callback & Ref & Snapshot

var LifecycleEffectMask =
/*          */
932; // Union of all host effects

var HostEffectMask =
/*               */
2047; // These are not really side effects, but we still reuse this field.

var Incomplete =
/*                   */
2048;
var ShouldCapture =
/*                */
4096;
var ForceUpdateForLegacySuspense =
/* */
16384; // Static tags describe aspects of a fiber that are not specific to a render,

var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
function getNearestMountedFiber(fiber) {
  var node = fiber;
  var nearestMounted = fiber;

  if (!fiber.alternate) {
    // If there is no alternate, this might be a new tree that isn't inserted
    // yet. If it is, then it will have a pending insertion effect on it.
    var nextNode = node;

    do {
      node = nextNode;

      if ((node.flags & (Placement | Hydrating)) !== NoFlags) {
        // This is an insertion or in-progress hydration. The nearest possible
        // mounted fiber is the parent but we need to continue to figure out
        // if that one is still mounted.
        nearestMounted = node.return;
      }

      nextNode = node.return;
    } while (nextNode);
  } else {
    while (node.return) {
      node = node.return;
    }
  }

  if (node.tag === HostRoot) {
    // TODO: Check if this was a nested HostRoot when used with
    // renderContainerIntoSubtree.
    return nearestMounted;
  } // If we didn't hit the root, that means that we're in an disconnected tree
  // that has been unmounted.


  return null;
}
function getSuspenseInstanceFromFiber(fiber) {
  if (fiber.tag === SuspenseComponent) {
    var suspenseState = fiber.memoizedState;

    if (suspenseState === null) {
      var current = fiber.alternate;

      if (current !== null) {
        suspenseState = current.memoizedState;
      }
    }

    if (suspenseState !== null) {
      return suspenseState.dehydrated;
    }
  }

  return null;
}
function getContainerFromFiber(fiber) {
  return fiber.tag === HostRoot ? fiber.stateNode.containerInfo : null;
}
function isFiberMounted(fiber) {
  return getNearestMountedFiber(fiber) === fiber;
}
function isMounted(component) {
  {
    var owner = ReactCurrentOwner.current;

    if (owner !== null && owner.tag === ClassComponent) {
      var ownerFiber = owner;
      var instance = ownerFiber.stateNode;

      if (!instance._warnedAboutRefsInRender) {
        error('%s is accessing isMounted inside its render() function. ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(ownerFiber.type) || 'A component');
      }

      instance._warnedAboutRefsInRender = true;
    }
  }

  var fiber = get(component);

  if (!fiber) {
    return false;
  }

  return getNearestMountedFiber(fiber) === fiber;
}

function assertIsMounted(fiber) {
  if (!(getNearestMountedFiber(fiber) === fiber)) {
    {
      throw Error( "Unable to find node on an unmounted component." );
    }
  }
}

function findCurrentFiberUsingSlowPath(fiber) {
  var alternate = fiber.alternate;

  if (!alternate) {
    // If there is no alternate, then we only need to check if it is mounted.
    var nearestMounted = getNearestMountedFiber(fiber);

    if (!(nearestMounted !== null)) {
      {
        throw Error( "Unable to find node on an unmounted component." );
      }
    }

    if (nearestMounted !== fiber) {
      return null;
    }

    return fiber;
  } // If we have two possible branches, we'll walk backwards up to the root
  // to see what path the root points to. On the way we may hit one of the
  // special cases and we'll deal with them.


  var a = fiber;
  var b = alternate;

  while (true) {
    var parentA = a.return;

    if (parentA === null) {
      // We're at the root.
      break;
    }

    var parentB = parentA.alternate;

    if (parentB === null) {
      // There is no alternate. This is an unusual case. Currently, it only
      // happens when a Suspense component is hidden. An extra fragment fiber
      // is inserted in between the Suspense fiber and its children. Skip
      // over this extra fragment fiber and proceed to the next parent.
      var nextParent = parentA.return;

      if (nextParent !== null) {
        a = b = nextParent;
        continue;
      } // If there's no parent, we're at the root.


      break;
    } // If both copies of the parent fiber point to the same child, we can
    // assume that the child is current. This happens when we bailout on low
    // priority: the bailed out fiber's child reuses the current child.


    if (parentA.child === parentB.child) {
      var child = parentA.child;

      while (child) {
        if (child === a) {
          // We've determined that A is the current branch.
          assertIsMounted(parentA);
          return fiber;
        }

        if (child === b) {
          // We've determined that B is the current branch.
          assertIsMounted(parentA);
          return alternate;
        }

        child = child.sibling;
      } // We should never have an alternate for any mounting node. So the only
      // way this could possibly happen is if this was unmounted, if at all.


      {
        {
          throw Error( "Unable to find node on an unmounted component." );
        }
      }
    }

    if (a.return !== b.return) {
      // The return pointer of A and the return pointer of B point to different
      // fibers. We assume that return pointers never criss-cross, so A must
      // belong to the child set of A.return, and B must belong to the child
      // set of B.return.
      a = parentA;
      b = parentB;
    } else {
      // The return pointers point to the same fiber. We'll have to use the
      // default, slow path: scan the child sets of each parent alternate to see
      // which child belongs to which set.
      //
      // Search parent A's child set
      var didFindChild = false;
      var _child = parentA.child;

      while (_child) {
        if (_child === a) {
          didFindChild = true;
          a = parentA;
          b = parentB;
          break;
        }

        if (_child === b) {
          didFindChild = true;
          b = parentA;
          a = parentB;
          break;
        }

        _child = _child.sibling;
      }

      if (!didFindChild) {
        // Search parent B's child set
        _child = parentB.child;

        while (_child) {
          if (_child === a) {
            didFindChild = true;
            a = parentB;
            b = parentA;
            break;
          }

          if (_child === b) {
            didFindChild = true;
            b = parentB;
            a = parentA;
            break;
          }

          _child = _child.sibling;
        }

        if (!didFindChild) {
          {
            throw Error( "Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue." );
          }
        }
      }
    }

    if (!(a.alternate === b)) {
      {
        throw Error( "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue." );
      }
    }
  } // If the root is not a host container, we're in a disconnected tree. I.e.
  // unmounted.


  if (!(a.tag === HostRoot)) {
    {
      throw Error( "Unable to find node on an unmounted component." );
    }
  }

  if (a.stateNode.current === a) {
    // We've determined that A is the current branch.
    return fiber;
  } // Otherwise B has to be current branch.


  return alternate;
}
function findCurrentHostFiber(parent) {
  var currentParent = findCurrentFiberUsingSlowPath(parent);

  if (!currentParent) {
    return null;
  } // Next we'll drill down this component to find the first HostComponent/Text.


  var node = currentParent;

  while (true) {
    if (node.tag === HostComponent || node.tag === HostText) {
      return node;
    } else if (node.child) {
      node.child.return = node;
      node = node.child;
      continue;
    }

    if (node === currentParent) {
      return null;
    }

    while (!node.sibling) {
      if (!node.return || node.return === currentParent) {
        return null;
      }

      node = node.return;
    }

    node.sibling.return = node.return;
    node = node.sibling;
  } // Flow needs the return null here, but ESLint complains about it.
  // eslint-disable-next-line no-unreachable


  return null;
}
function findCurrentHostFiberWithNoPortals(parent) {
  var currentParent = findCurrentFiberUsingSlowPath(parent);

  if (!currentParent) {
    return null;
  } // Next we'll drill down this component to find the first HostComponent/Text.


  var node = currentParent;

  while (true) {
    if (node.tag === HostComponent || node.tag === HostText || enableFundamentalAPI ) {
      return node;
    } else if (node.child && node.tag !== HostPortal) {
      node.child.return = node;
      node = node.child;
      continue;
    }

    if (node === currentParent) {
      return null;
    }

    while (!node.sibling) {
      if (!node.return || node.return === currentParent) {
        return null;
      }

      node = node.return;
    }

    node.sibling.return = node.return;
    node = node.sibling;
  } // Flow needs the return null here, but ESLint complains about it.
  // eslint-disable-next-line no-unreachable


  return null;
}
function doesFiberContain(parentFiber, childFiber) {
  var node = childFiber;
  var parentFiberAlternate = parentFiber.alternate;

  while (node !== null) {
    if (node === parentFiber || node === parentFiberAlternate) {
      return true;
    }

    node = node.return;
  }

  return false;
}

var attemptUserBlockingHydration;
function setAttemptUserBlockingHydration(fn) {
  attemptUserBlockingHydration = fn;
}
var attemptContinuousHydration;
function setAttemptContinuousHydration(fn) {
  attemptContinuousHydration = fn;
}
var attemptHydrationAtCurrentPriority;
function setAttemptHydrationAtCurrentPriority(fn) {
  attemptHydrationAtCurrentPriority = fn;
}
var attemptHydrationAtPriority;
function setAttemptHydrationAtPriority(fn) {
  attemptHydrationAtPriority = fn;
} // TODO: Upgrade this definition once we're on a newer version of Flow that
var hasScheduledReplayAttempt = false; // The queue of discrete events to be replayed.

var queuedDiscreteEvents = []; // Indicates if any continuous event targets are non-null for early bailout.
// if the last target was dehydrated.

var queuedFocus = null;
var queuedDrag = null;
var queuedMouse = null; // For pointer events there can be one latest event per pointerId.

var queuedPointers = new Map();
var queuedPointerCaptures = new Map(); // We could consider replaying selectionchange and touchmoves too.

var queuedExplicitHydrationTargets = [];
function hasQueuedDiscreteEvents() {
  return queuedDiscreteEvents.length > 0;
}
var discreteReplayableEvents = ['mousedown', 'mouseup', 'touchcancel', 'touchend', 'touchstart', 'auxclick', 'dblclick', 'pointercancel', 'pointerdown', 'pointerup', 'dragend', 'dragstart', 'drop', 'compositionend', 'compositionstart', 'keydown', 'keypress', 'keyup', 'input', 'textInput', // Intentionally camelCase
'copy', 'cut', 'paste', 'click', 'change', 'contextmenu', 'reset', 'submit'];
function isReplayableDiscreteEvent(eventType) {
  return discreteReplayableEvents.indexOf(eventType) > -1;
}

function createQueuedReplayableEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {
  return {
    blockedOn: blockedOn,
    domEventName: domEventName,
    eventSystemFlags: eventSystemFlags | IS_REPLAYED,
    nativeEvent: nativeEvent,
    targetContainers: [targetContainer]
  };
}

function queueDiscreteEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {
  var queuedEvent = createQueuedReplayableEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent);
  queuedDiscreteEvents.push(queuedEvent);
} // Resets the replaying for this type of continuous event to no event.

function clearIfContinuousEvent(domEventName, nativeEvent) {
  switch (domEventName) {
    case 'focusin':
    case 'focusout':
      queuedFocus = null;
      break;

    case 'dragenter':
    case 'dragleave':
      queuedDrag = null;
      break;

    case 'mouseover':
    case 'mouseout':
      queuedMouse = null;
      break;

    case 'pointerover':
    case 'pointerout':
      {
        var pointerId = nativeEvent.pointerId;
        queuedPointers.delete(pointerId);
        break;
      }

    case 'gotpointercapture':
    case 'lostpointercapture':
      {
        var _pointerId = nativeEvent.pointerId;
        queuedPointerCaptures.delete(_pointerId);
        break;
      }
  }
}

function accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {
  if (existingQueuedEvent === null || existingQueuedEvent.nativeEvent !== nativeEvent) {
    var queuedEvent = createQueuedReplayableEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent);

    if (blockedOn !== null) {
      var _fiber2 = getInstanceFromNode(blockedOn);

      if (_fiber2 !== null) {
        // Attempt to increase the priority of this target.
        attemptContinuousHydration(_fiber2);
      }
    }

    return queuedEvent;
  } // If we have already queued this exact event, then it's because
  // the different event systems have different DOM event listeners.
  // We can accumulate the flags, and the targetContainers, and
  // store a single event to be replayed.


  existingQueuedEvent.eventSystemFlags |= eventSystemFlags;
  var targetContainers = existingQueuedEvent.targetContainers;

  if (targetContainer !== null && targetContainers.indexOf(targetContainer) === -1) {
    targetContainers.push(targetContainer);
  }

  return existingQueuedEvent;
}

function queueIfContinuousEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {
  // These set relatedTarget to null because the replayed event will be treated as if we
  // moved from outside the window (no target) onto the target once it hydrates.
  // Instead of mutating we could clone the event.
  switch (domEventName) {
    case 'focusin':
      {
        var focusEvent = nativeEvent;
        queuedFocus = accumulateOrCreateContinuousQueuedReplayableEvent(queuedFocus, blockedOn, domEventName, eventSystemFlags, targetContainer, focusEvent);
        return true;
      }

    case 'dragenter':
      {
        var dragEvent = nativeEvent;
        queuedDrag = accumulateOrCreateContinuousQueuedReplayableEvent(queuedDrag, blockedOn, domEventName, eventSystemFlags, targetContainer, dragEvent);
        return true;
      }

    case 'mouseover':
      {
        var mouseEvent = nativeEvent;
        queuedMouse = accumulateOrCreateContinuousQueuedReplayableEvent(queuedMouse, blockedOn, domEventName, eventSystemFlags, targetContainer, mouseEvent);
        return true;
      }

    case 'pointerover':
      {
        var pointerEvent = nativeEvent;
        var pointerId = pointerEvent.pointerId;
        queuedPointers.set(pointerId, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointers.get(pointerId) || null, blockedOn, domEventName, eventSystemFlags, targetContainer, pointerEvent));
        return true;
      }

    case 'gotpointercapture':
      {
        var _pointerEvent = nativeEvent;
        var _pointerId2 = _pointerEvent.pointerId;
        queuedPointerCaptures.set(_pointerId2, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointerCaptures.get(_pointerId2) || null, blockedOn, domEventName, eventSystemFlags, targetContainer, _pointerEvent));
        return true;
      }
  }

  return false;
} // Check if this target is unblocked. Returns true if it's unblocked.

function attemptExplicitHydrationTarget(queuedTarget) {
  // TODO: This function shares a lot of logic with attemptToDispatchEvent.
  // Try to unify them. It's a bit tricky since it would require two return
  // values.
  var targetInst = getClosestInstanceFromNode(queuedTarget.target);

  if (targetInst !== null) {
    var nearestMounted = getNearestMountedFiber(targetInst);

    if (nearestMounted !== null) {
      var tag = nearestMounted.tag;

      if (tag === SuspenseComponent) {
        var instance = getSuspenseInstanceFromFiber(nearestMounted);

        if (instance !== null) {
          // We're blocked on hydrating this boundary.
          // Increase its priority.
          queuedTarget.blockedOn = instance;
          attemptHydrationAtPriority(queuedTarget.lanePriority, function () {
            Scheduler.unstable_runWithPriority(queuedTarget.priority, function () {
              attemptHydrationAtCurrentPriority(nearestMounted);
            });
          });
          return;
        }
      } else if (tag === HostRoot) {
        var root = nearestMounted.stateNode;

        if (root.hydrate) {
          queuedTarget.blockedOn = getContainerFromFiber(nearestMounted); // We don't currently have a way to increase the priority of
          // a root other than sync.

          return;
        }
      }
    }
  }

  queuedTarget.blockedOn = null;
}

function attemptReplayContinuousQueuedEvent(queuedEvent) {
  if (queuedEvent.blockedOn !== null) {
    return false;
  }

  var targetContainers = queuedEvent.targetContainers;

  while (targetContainers.length > 0) {
    var targetContainer = targetContainers[0];
    var nextBlockedOn = attemptToDispatchEvent(queuedEvent.domEventName, queuedEvent.eventSystemFlags, targetContainer, queuedEvent.nativeEvent);

    if (nextBlockedOn !== null) {
      // We're still blocked. Try again later.
      var _fiber3 = getInstanceFromNode(nextBlockedOn);

      if (_fiber3 !== null) {
        attemptContinuousHydration(_fiber3);
      }

      queuedEvent.blockedOn = nextBlockedOn;
      return false;
    } // This target container was successfully dispatched. Try the next.


    targetContainers.shift();
  }

  return true;
}

function attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map) {
  if (attemptReplayContinuousQueuedEvent(queuedEvent)) {
    map.delete(key);
  }
}

function replayUnblockedEvents() {
  hasScheduledReplayAttempt = false; // First replay discrete events.

  while (queuedDiscreteEvents.length > 0) {
    var nextDiscreteEvent = queuedDiscreteEvents[0];

    if (nextDiscreteEvent.blockedOn !== null) {
      // We're still blocked.
      // Increase the priority of this boundary to unblock
      // the next discrete event.
      var _fiber4 = getInstanceFromNode(nextDiscreteEvent.blockedOn);

      if (_fiber4 !== null) {
        attemptUserBlockingHydration(_fiber4);
      }

      break;
    }

    var targetContainers = nextDiscreteEvent.targetContainers;

    while (targetContainers.length > 0) {
      var targetContainer = targetContainers[0];
      var nextBlockedOn = attemptToDispatchEvent(nextDiscreteEvent.domEventName, nextDiscreteEvent.eventSystemFlags, targetContainer, nextDiscreteEvent.nativeEvent);

      if (nextBlockedOn !== null) {
        // We're still blocked. Try again later.
        nextDiscreteEvent.blockedOn = nextBlockedOn;
        break;
      } // This target container was successfully dispatched. Try the next.


      targetContainers.shift();
    }

    if (nextDiscreteEvent.blockedOn === null) {
      // We've successfully replayed the first event. Let's try the next one.
      queuedDiscreteEvents.shift();
    }
  } // Next replay any continuous events.


  if (queuedFocus !== null && attemptReplayContinuousQueuedEvent(queuedFocus)) {
    queuedFocus = null;
  }

  if (queuedDrag !== null && attemptReplayContinuousQueuedEvent(queuedDrag)) {
    queuedDrag = null;
  }

  if (queuedMouse !== null && attemptReplayContinuousQueuedEvent(queuedMouse)) {
    queuedMouse = null;
  }

  queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap);
  queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap);
}

function scheduleCallbackIfUnblocked(queuedEvent, unblocked) {
  if (queuedEvent.blockedOn === unblocked) {
    queuedEvent.blockedOn = null;

    if (!hasScheduledReplayAttempt) {
      hasScheduledReplayAttempt = true; // Schedule a callback to attempt replaying as many events as are
      // now unblocked. This first might not actually be unblocked yet.
      // We could check it early to avoid scheduling an unnecessary callback.

      Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority, replayUnblockedEvents);
    }
  }
}

function retryIfBlockedOn(unblocked) {
  // Mark anything that was blocked on this as no longer blocked
  // and eligible for a replay.
  if (queuedDiscreteEvents.length > 0) {
    scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked); // This is a exponential search for each boundary that commits. I think it's
    // worth it because we expect very few discrete events to queue up and once
    // we are actually fully unblocked it will be fast to replay them.

    for (var i = 1; i < queuedDiscreteEvents.length; i++) {
      var queuedEvent = queuedDiscreteEvents[i];

      if (queuedEvent.blockedOn === unblocked) {
        queuedEvent.blockedOn = null;
      }
    }
  }

  if (queuedFocus !== null) {
    scheduleCallbackIfUnblocked(queuedFocus, unblocked);
  }

  if (queuedDrag !== null) {
    scheduleCallbackIfUnblocked(queuedDrag, unblocked);
  }

  if (queuedMouse !== null) {
    scheduleCallbackIfUnblocked(queuedMouse, unblocked);
  }

  var unblock = function (queuedEvent) {
    return scheduleCallbackIfUnblocked(queuedEvent, unblocked);
  };

  queuedPointers.forEach(unblock);
  queuedPointerCaptures.forEach(unblock);

  for (var _i = 0; _i < queuedExplicitHydrationTargets.length; _i++) {
    var queuedTarget = queuedExplicitHydrationTargets[_i];

    if (queuedTarget.blockedOn === unblocked) {
      queuedTarget.blockedOn = null;
    }
  }

  while (queuedExplicitHydrationTargets.length > 0) {
    var nextExplicitTarget = queuedExplicitHydrationTargets[0];

    if (nextExplicitTarget.blockedOn !== null) {
      // We're still blocked.
      break;
    } else {
      attemptExplicitHydrationTarget(nextExplicitTarget);

      if (nextExplicitTarget.blockedOn === null) {
        // We're unblocked.
        queuedExplicitHydrationTargets.shift();
      }
    }
  }
}

var DiscreteEvent = 0;
var UserBlockingEvent = 1;
var ContinuousEvent = 2;

/**
 * Generate a mapping of standard vendor prefixes using the defined style property and event name.
 *
 * @param {string} styleProp
 * @param {string} eventName
 * @returns {object}
 */

function makePrefixMap(styleProp, eventName) {
  var prefixes = {};
  prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
  prefixes['Webkit' + styleProp] = 'webkit' + eventName;
  prefixes['Moz' + styleProp] = 'moz' + eventName;
  return prefixes;
}
/**
 * A list of event names to a configurable list of vendor prefixes.
 */


var vendorPrefixes = {
  animationend: makePrefixMap('Animation', 'AnimationEnd'),
  animationiteration: makePrefixMap('Animation', 'AnimationIteration'),
  animationstart: makePrefixMap('Animation', 'AnimationStart'),
  transitionend: makePrefixMap('Transition', 'TransitionEnd')
};
/**
 * Event names that have already been detected and prefixed (if applicable).
 */

var prefixedEventNames = {};
/**
 * Element to check for prefixes on.
 */

var style = {};
/**
 * Bootstrap if a DOM exists.
 */

if (canUseDOM) {
  style = document.createElement('div').style; // On some platforms, in particular some releases of Android 4.x,
  // the un-prefixed "animation" and "transition" properties are defined on the
  // style object but the events that fire will still be prefixed, so we need
  // to check if the un-prefixed events are usable, and if not remove them from the map.

  if (!('AnimationEvent' in window)) {
    delete vendorPrefixes.animationend.animation;
    delete vendorPrefixes.animationiteration.animation;
    delete vendorPrefixes.animationstart.animation;
  } // Same as above


  if (!('TransitionEvent' in window)) {
    delete vendorPrefixes.transitionend.transition;
  }
}
/**
 * Attempts to determine the correct vendor prefixed event name.
 *
 * @param {string} eventName
 * @returns {string}
 */


function getVendorPrefixedEventName(eventName) {
  if (prefixedEventNames[eventName]) {
    return prefixedEventNames[eventName];
  } else if (!vendorPrefixes[eventName]) {
    return eventName;
  }

  var prefixMap = vendorPrefixes[eventName];

  for (var styleProp in prefixMap) {
    if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
      return prefixedEventNames[eventName] = prefixMap[styleProp];
    }
  }

  return eventName;
}

var ANIMATION_END = getVendorPrefixedEventName('animationend');
var ANIMATION_ITERATION = getVendorPrefixedEventName('animationiteration');
var ANIMATION_START = getVendorPrefixedEventName('animationstart');
var TRANSITION_END = getVendorPrefixedEventName('transitionend');

var topLevelEventsToReactNames = new Map();
var eventPriorities = new Map(); // We store most of the events in this module in pairs of two strings so we can re-use
// the code required to apply the same logic for event prioritization and that of the
// SimpleEventPlugin. This complicates things slightly, but the aim is to reduce code
// duplication (for which there would be quite a bit). For the events that are not needed
// for the SimpleEventPlugin (otherDiscreteEvents) we process them separately as an
// array of top level events.
// Lastly, we ignore prettier so we can keep the formatting sane.
// prettier-ignore

var discreteEventPairsForSimpleEventPlugin = ['cancel', 'cancel', 'click', 'click', 'close', 'close', 'contextmenu', 'contextMenu', 'copy', 'copy', 'cut', 'cut', 'auxclick', 'auxClick', 'dblclick', 'doubleClick', // Careful!
'dragend', 'dragEnd', 'dragstart', 'dragStart', 'drop', 'drop', 'focusin', 'focus', // Careful!
'focusout', 'blur', // Careful!
'input', 'input', 'invalid', 'invalid', 'keydown', 'keyDown', 'keypress', 'keyPress', 'keyup', 'keyUp', 'mousedown', 'mouseDown', 'mouseup', 'mouseUp', 'paste', 'paste', 'pause', 'pause', 'play', 'play', 'pointercancel', 'pointerCancel', 'pointerdown', 'pointerDown', 'pointerup', 'pointerUp', 'ratechange', 'rateChange', 'reset', 'reset', 'seeked', 'seeked', 'submit', 'submit', 'touchcancel', 'touchCancel', 'touchend', 'touchEnd', 'touchstart', 'touchStart', 'volumechange', 'volumeChange'];
var otherDiscreteEvents = ['change', 'selectionchange', 'textInput', 'compositionstart', 'compositionend', 'compositionupdate'];


var userBlockingPairsForSimpleEventPlugin = ['drag', 'drag', 'dragenter', 'dragEnter', 'dragexit', 'dragExit', 'dragleave', 'dragLeave', 'dragover', 'dragOver', 'mousemove', 'mouseMove', 'mouseout', 'mouseOut', 'mouseover', 'mouseOver', 'pointermove', 'pointerMove', 'pointerout', 'pointerOut', 'pointerover', 'pointerOver', 'scroll', 'scroll', 'toggle', 'toggle', 'touchmove', 'touchMove', 'wheel', 'wheel']; // prettier-ignore

var continuousPairsForSimpleEventPlugin = ['abort', 'abort', ANIMATION_END, 'animationEnd', ANIMATION_ITERATION, 'animationIteration', ANIMATION_START, 'animationStart', 'canplay', 'canPlay', 'canplaythrough', 'canPlayThrough', 'durationchange', 'durationChange', 'emptied', 'emptied', 'encrypted', 'encrypted', 'ended', 'ended', 'error', 'error', 'gotpointercapture', 'gotPointerCapture', 'load', 'load', 'loadeddata', 'loadedData', 'loadedmetadata', 'loadedMetadata', 'loadstart', 'loadStart', 'lostpointercapture', 'lostPointerCapture', 'playing', 'playing', 'progress', 'progress', 'seeking', 'seeking', 'stalled', 'stalled', 'suspend', 'suspend', 'timeupdate', 'timeUpdate', TRANSITION_END, 'transitionEnd', 'waiting', 'waiting'];
/**
 * Turns
 * ['abort', ...]
 *
 * into
 *
 * topLevelEventsToReactNames = new Map([
 *   ['abort', 'onAbort'],
 * ]);
 *
 * and registers them.
 */

function registerSimplePluginEventsAndSetTheirPriorities(eventTypes, priority) {
  // As the event types are in pairs of two, we need to iterate
  // through in twos. The events are in pairs of two to save code
  // and improve init perf of processing this array, as it will
  // result in far fewer object allocations and property accesses
  // if we only use three arrays to process all the categories of
  // instead of tuples.
  for (var i = 0; i < eventTypes.length; i += 2) {
    var topEvent = eventTypes[i];
    var event = eventTypes[i + 1];
    var capitalizedEvent = event[0].toUpperCase() + event.slice(1);
    var reactName = 'on' + capitalizedEvent;
    eventPriorities.set(topEvent, priority);
    topLevelEventsToReactNames.set(topEvent, reactName);
    registerTwoPhaseEvent(reactName, [topEvent]);
  }
}

function setEventPriorities(eventTypes, priority) {
  for (var i = 0; i < eventTypes.length; i++) {
    eventPriorities.set(eventTypes[i], priority);
  }
}

function getEventPriorityForPluginSystem(domEventName) {
  var priority = eventPriorities.get(domEventName); // Default to a ContinuousEvent. Note: we might
  // want to warn if we can't detect the priority
  // for the event.

  return priority === undefined ? ContinuousEvent : priority;
}
function registerSimpleEvents() {
  registerSimplePluginEventsAndSetTheirPriorities(discreteEventPairsForSimpleEventPlugin, DiscreteEvent);
  registerSimplePluginEventsAndSetTheirPriorities(userBlockingPairsForSimpleEventPlugin, UserBlockingEvent);
  registerSimplePluginEventsAndSetTheirPriorities(continuousPairsForSimpleEventPlugin, ContinuousEvent);
  setEventPriorities(otherDiscreteEvents, DiscreteEvent);
}

var Scheduler_now = Scheduler.unstable_now;

{
  // Provide explicit error message when production+profiling bundle of e.g.
  // react-dom is used with production (non-profiling) bundle of
  // scheduler/tracing
  if (!(tracing.__interactionsRef != null && tracing.__interactionsRef.current != null)) {
    {
      throw Error( "It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at https://reactjs.org/link/profiling" );
    }
  }
}
// ascending numbers so we can compare them like numbers. They start at 90 to
// avoid clashing with Scheduler's priorities.

var ImmediatePriority = 99;
var UserBlockingPriority = 98;
var NormalPriority = 97;
var LowPriority = 96;
var IdlePriority = 95; // NoPriority is the absence of priority. Also React-only.

var NoPriority = 90;
var initialTimeMs = Scheduler_now(); // If the initial timestamp is reasonably small, use Scheduler's `now` directly.

var SyncLanePriority = 15;
var SyncBatchedLanePriority = 14;
var InputDiscreteHydrationLanePriority = 13;
var InputDiscreteLanePriority = 12;
var InputContinuousHydrationLanePriority = 11;
var InputContinuousLanePriority = 10;
var DefaultHydrationLanePriority = 9;
var DefaultLanePriority = 8;
var TransitionHydrationPriority = 7;
var TransitionPriority = 6;
var RetryLanePriority = 5;
var SelectiveHydrationLanePriority = 4;
var IdleHydrationLanePriority = 3;
var IdleLanePriority = 2;
var OffscreenLanePriority = 1;
var NoLanePriority = 0;
var TotalLanes = 31;
var NoLanes =
/*                        */
0;
var NoLane =
/*                          */
0;
var SyncLane =
/*                        */
1;
var SyncBatchedLane =
/*                 */
2;
var InputDiscreteHydrationLane =
/*      */
4;
var InputDiscreteLanes =
/*                    */
24;
var InputContinuousHydrationLane =
/*           */
32;
var InputContinuousLanes =
/*                  */
192;
var DefaultHydrationLane =
/*            */
256;
var DefaultLanes =
/*                   */
3584;
var TransitionHydrationLane =
/*                */
4096;
var TransitionLanes =
/*                       */
4186112;
var RetryLanes =
/*                            */
62914560;
var SomeRetryLane =
/*                  */
33554432;
var SelectiveHydrationLane =
/*          */
67108864;
var NonIdleLanes =
/*                                 */
134217727;
var IdleHydrationLane =
/*               */
134217728;
var IdleLanes =
/*                             */
805306368;
var OffscreenLane =
/*                   */
1073741824;
var NoTimestamp = -1;
function setCurrentUpdateLanePriority(newLanePriority) {
} // "Registers" used to "return" multiple values
// Used by getHighestPriorityLanes and getNextLanes:

var return_highestLanePriority = DefaultLanePriority;

function getHighestPriorityLanes(lanes) {
  if ((SyncLane & lanes) !== NoLanes) {
    return_highestLanePriority = SyncLanePriority;
    return SyncLane;
  }

  if ((SyncBatchedLane & lanes) !== NoLanes) {
    return_highestLanePriority = SyncBatchedLanePriority;
    return SyncBatchedLane;
  }

  if ((InputDiscreteHydrationLane & lanes) !== NoLanes) {
    return_highestLanePriority = InputDiscreteHydrationLanePriority;
    return InputDiscreteHydrationLane;
  }

  var inputDiscreteLanes = InputDiscreteLanes & lanes;

  if (inputDiscreteLanes !== NoLanes) {
    return_highestLanePriority = InputDiscreteLanePriority;
    return inputDiscreteLanes;
  }

  if ((lanes & InputContinuousHydrationLane) !== NoLanes) {
    return_highestLanePriority = InputContinuousHydrationLanePriority;
    return InputContinuousHydrationLane;
  }

  var inputContinuousLanes = InputContinuousLanes & lanes;

  if (inputContinuousLanes !== NoLanes) {
    return_highestLanePriority = InputContinuousLanePriority;
    return inputContinuousLanes;
  }

  if ((lanes & DefaultHydrationLane) !== NoLanes) {
    return_highestLanePriority = DefaultHydrationLanePriority;
    return DefaultHydrationLane;
  }

  var defaultLanes = DefaultLanes & lanes;

  if (defaultLanes !== NoLanes) {
    return_highestLanePriority = DefaultLanePriority;
    return defaultLanes;
  }

  if ((lanes & TransitionHydrationLane) !== NoLanes) {
    return_highestLanePriority = TransitionHydrationPriority;
    return TransitionHydrationLane;
  }

  var transitionLanes = TransitionLanes & lanes;

  if (transitionLanes !== NoLanes) {
    return_highestLanePriority = TransitionPriority;
    return transitionLanes;
  }

  var retryLanes = RetryLanes & lanes;

  if (retryLanes !== NoLanes) {
    return_highestLanePriority = RetryLanePriority;
    return retryLanes;
  }

  if (lanes & SelectiveHydrationLane) {
    return_highestLanePriority = SelectiveHydrationLanePriority;
    return SelectiveHydrationLane;
  }

  if ((lanes & IdleHydrationLane) !== NoLanes) {
    return_highestLanePriority = IdleHydrationLanePriority;
    return IdleHydrationLane;
  }

  var idleLanes = IdleLanes & lanes;

  if (idleLanes !== NoLanes) {
    return_highestLanePriority = IdleLanePriority;
    return idleLanes;
  }

  if ((OffscreenLane & lanes) !== NoLanes) {
    return_highestLanePriority = OffscreenLanePriority;
    return OffscreenLane;
  }

  {
    error('Should have found matching lanes. This is a bug in React.');
  } // This shouldn't be reachable, but as a fallback, return the entire bitmask.


  return_highestLanePriority = DefaultLanePriority;
  return lanes;
}

function schedulerPriorityToLanePriority(schedulerPriorityLevel) {
  switch (schedulerPriorityLevel) {
    case ImmediatePriority:
      return SyncLanePriority;

    case UserBlockingPriority:
      return InputContinuousLanePriority;

    case NormalPriority:
    case LowPriority:
      // TODO: Handle LowSchedulerPriority, somehow. Maybe the same lane as hydration.
      return DefaultLanePriority;

    case IdlePriority:
      return IdleLanePriority;

    default:
      return NoLanePriority;
  }
}
function lanePriorityToSchedulerPriority(lanePriority) {
  switch (lanePriority) {
    case SyncLanePriority:
    case SyncBatchedLanePriority:
      return ImmediatePriority;

    case InputDiscreteHydrationLanePriority:
    case InputDiscreteLanePriority:
    case InputContinuousHydrationLanePriority:
    case InputContinuousLanePriority:
      return UserBlockingPriority;

    case DefaultHydrationLanePriority:
    case DefaultLanePriority:
    case TransitionHydrationPriority:
    case TransitionPriority:
    case SelectiveHydrationLanePriority:
    case RetryLanePriority:
      return NormalPriority;

    case IdleHydrationLanePriority:
    case IdleLanePriority:
    case OffscreenLanePriority:
      return IdlePriority;

    case NoLanePriority:
      return NoPriority;

    default:
      {
        {
          throw Error( "Invalid update priority: " + lanePriority + ". This is a bug in React." );
        }
      }

  }
}
function getNextLanes(root, wipLanes) {
  // Early bailout if there's no pending work left.
  var pendingLanes = root.pendingLanes;

  if (pendingLanes === NoLanes) {
    return_highestLanePriority = NoLanePriority;
    return NoLanes;
  }

  var nextLanes = NoLanes;
  var nextLanePriority = NoLanePriority;
  var expiredLanes = root.expiredLanes;
  var suspendedLanes = root.suspendedLanes;
  var pingedLanes = root.pingedLanes; // Check if any work has expired.

  if (expiredLanes !== NoLanes) {
    nextLanes = expiredLanes;
    nextLanePriority = return_highestLanePriority = SyncLanePriority;
  } else {
    // Do not work on any idle work until all the non-idle work has finished,
    // even if the work is suspended.
    var nonIdlePendingLanes = pendingLanes & NonIdleLanes;

    if (nonIdlePendingLanes !== NoLanes) {
      var nonIdleUnblockedLanes = nonIdlePendingLanes & ~suspendedLanes;

      if (nonIdleUnblockedLanes !== NoLanes) {
        nextLanes = getHighestPriorityLanes(nonIdleUnblockedLanes);
        nextLanePriority = return_highestLanePriority;
      } else {
        var nonIdlePingedLanes = nonIdlePendingLanes & pingedLanes;

        if (nonIdlePingedLanes !== NoLanes) {
          nextLanes = getHighestPriorityLanes(nonIdlePingedLanes);
          nextLanePriority = return_highestLanePriority;
        }
      }
    } else {
      // The only remaining work is Idle.
      var unblockedLanes = pendingLanes & ~suspendedLanes;

      if (unblockedLanes !== NoLanes) {
        nextLanes = getHighestPriorityLanes(unblockedLanes);
        nextLanePriority = return_highestLanePriority;
      } else {
        if (pingedLanes !== NoLanes) {
          nextLanes = getHighestPriorityLanes(pingedLanes);
          nextLanePriority = return_highestLanePriority;
        }
      }
    }
  }

  if (nextLanes === NoLanes) {
    // This should only be reachable if we're suspended
    // TODO: Consider warning in this path if a fallback timer is not scheduled.
    return NoLanes;
  } // If there are higher priority lanes, we'll include them even if they
  // are suspended.


  nextLanes = pendingLanes & getEqualOrHigherPriorityLanes(nextLanes); // If we're already in the middle of a render, switching lanes will interrupt
  // it and we'll lose our progress. We should only do this if the new lanes are
  // higher priority.

  if (wipLanes !== NoLanes && wipLanes !== nextLanes && // If we already suspended with a delay, then interrupting is fine. Don't
  // bother waiting until the root is complete.
  (wipLanes & suspendedLanes) === NoLanes) {
    getHighestPriorityLanes(wipLanes);
    var wipLanePriority = return_highestLanePriority;

    if (nextLanePriority <= wipLanePriority) {
      return wipLanes;
    } else {
      return_highestLanePriority = nextLanePriority;
    }
  } // Check for entangled lanes and add them to the batch.
  //
  // A lane is said to be entangled with another when it's not allowed to render
  // in a batch that does not also include the other lane. Typically we do this
  // when multiple updates have the same source, and we only want to respond to
  // the most recent event from that source.
  //
  // Note that we apply entanglements *after* checking for partial work above.
  // This means that if a lane is entangled during an interleaved event while
  // it's already rendering, we won't interrupt it. This is intentional, since
  // entanglement is usually "best effort": we'll try our best to render the
  // lanes in the same batch, but it's not worth throwing out partially
  // completed work in order to do it.
  //
  // For those exceptions where entanglement is semantically important, like
  // useMutableSource, we should ensure that there is no partial work at the
  // time we apply the entanglement.


  var entangledLanes = root.entangledLanes;

  if (entangledLanes !== NoLanes) {
    var entanglements = root.entanglements;
    var lanes = nextLanes & entangledLanes;

    while (lanes > 0) {
      var index = pickArbitraryLaneIndex(lanes);
      var lane = 1 << index;
      nextLanes |= entanglements[index];
      lanes &= ~lane;
    }
  }

  return nextLanes;
}
function getMostRecentEventTime(root, lanes) {
  var eventTimes = root.eventTimes;
  var mostRecentEventTime = NoTimestamp;

  while (lanes > 0) {
    var index = pickArbitraryLaneIndex(lanes);
    var lane = 1 << index;
    var eventTime = eventTimes[index];

    if (eventTime > mostRecentEventTime) {
      mostRecentEventTime = eventTime;
    }

    lanes &= ~lane;
  }

  return mostRecentEventTime;
}

function computeExpirationTime(lane, currentTime) {
  // TODO: Expiration heuristic is constant per lane, so could use a map.
  getHighestPriorityLanes(lane);
  var priority = return_highestLanePriority;

  if (priority >= InputContinuousLanePriority) {
    // User interactions should expire slightly more quickly.
    //
    // NOTE: This is set to the corresponding constant as in Scheduler.js. When
    // we made it larger, a product metric in www regressed, suggesting there's
    // a user interaction that's being starved by a series of synchronous
    // updates. If that theory is correct, the proper solution is to fix the
    // starvation. However, this scenario supports the idea that expiration
    // times are an important safeguard when starvation does happen.
    //
    // Also note that, in the case of user input specifically, this will soon no
    // longer be an issue because we plan to make user input synchronous by
    // default (until you enter `startTransition`, of course.)
    //
    // If weren't planning to make these updates synchronous soon anyway, I
    // would probably make this number a configurable parameter.
    return currentTime + 250;
  } else if (priority >= TransitionPriority) {
    return currentTime + 5000;
  } else {
    // Anything idle priority or lower should never expire.
    return NoTimestamp;
  }
}

function markStarvedLanesAsExpired(root, currentTime) {
  // TODO: This gets called every time we yield. We can optimize by storing
  // the earliest expiration time on the root. Then use that to quickly bail out
  // of this function.
  var pendingLanes = root.pendingLanes;
  var suspendedLanes = root.suspendedLanes;
  var pingedLanes = root.pingedLanes;
  var expirationTimes = root.expirationTimes; // Iterate through the pending lanes and check if we've reached their
  // expiration time. If so, we'll assume the update is being starved and mark
  // it as expired to force it to finish.

  var lanes = pendingLanes;

  while (lanes > 0) {
    var index = pickArbitraryLaneIndex(lanes);
    var lane = 1 << index;
    var expirationTime = expirationTimes[index];

    if (expirationTime === NoTimestamp) {
      // Found a pending lane with no expiration time. If it's not suspended, or
      // if it's pinged, assume it's CPU-bound. Compute a new expiration time
      // using the current time.
      if ((lane & suspendedLanes) === NoLanes || (lane & pingedLanes) !== NoLanes) {
        // Assumes timestamps are monotonically increasing.
        expirationTimes[index] = computeExpirationTime(lane, currentTime);
      }
    } else if (expirationTime <= currentTime) {
      // This lane expired
      root.expiredLanes |= lane;
    }

    lanes &= ~lane;
  }
} // This returns the highest priority pending lanes regardless of whether they
function getLanesToRetrySynchronouslyOnError(root) {
  var everythingButOffscreen = root.pendingLanes & ~OffscreenLane;

  if (everythingButOffscreen !== NoLanes) {
    return everythingButOffscreen;
  }

  if (everythingButOffscreen & OffscreenLane) {
    return OffscreenLane;
  }

  return NoLanes;
}
function returnNextLanesPriority() {
  return return_highestLanePriority;
}
function includesNonIdleWork(lanes) {
  return (lanes & NonIdleLanes) !== NoLanes;
}
function includesOnlyRetries(lanes) {
  return (lanes & RetryLanes) === lanes;
}
function includesOnlyTransitions(lanes) {
  return (lanes & TransitionLanes) === lanes;
} // To ensure consistency across multiple updates in the same event, this should
// be a pure function, so that it always returns the same lane for given inputs.

function findUpdateLane(lanePriority, wipLanes) {
  switch (lanePriority) {
    case NoLanePriority:
      break;

    case SyncLanePriority:
      return SyncLane;

    case SyncBatchedLanePriority:
      return SyncBatchedLane;

    case InputDiscreteLanePriority:
      {
        var _lane = pickArbitraryLane(InputDiscreteLanes & ~wipLanes);

        if (_lane === NoLane) {
          // Shift to the next priority level
          return findUpdateLane(InputContinuousLanePriority, wipLanes);
        }

        return _lane;
      }

    case InputContinuousLanePriority:
      {
        var _lane2 = pickArbitraryLane(InputContinuousLanes & ~wipLanes);

        if (_lane2 === NoLane) {
          // Shift to the next priority level
          return findUpdateLane(DefaultLanePriority, wipLanes);
        }

        return _lane2;
      }

    case DefaultLanePriority:
      {
        var _lane3 = pickArbitraryLane(DefaultLanes & ~wipLanes);

        if (_lane3 === NoLane) {
          // If all the default lanes are already being worked on, look for a
          // lane in the transition range.
          _lane3 = pickArbitraryLane(TransitionLanes & ~wipLanes);

          if (_lane3 === NoLane) {
            // All the transition lanes are taken, too. This should be very
            // rare, but as a last resort, pick a default lane. This will have
            // the effect of interrupting the current work-in-progress render.
            _lane3 = pickArbitraryLane(DefaultLanes);
          }
        }

        return _lane3;
      }

    case TransitionPriority: // Should be handled by findTransitionLane instead

    case RetryLanePriority:
      // Should be handled by findRetryLane instead
      break;

    case IdleLanePriority:
      var lane = pickArbitraryLane(IdleLanes & ~wipLanes);

      if (lane === NoLane) {
        lane = pickArbitraryLane(IdleLanes);
      }

      return lane;
  }

  {
    {
      throw Error( "Invalid update priority: " + lanePriority + ". This is a bug in React." );
    }
  }
} // To ensure consistency across multiple updates in the same event, this should
// be pure function, so that it always returns the same lane for given inputs.

function findTransitionLane(wipLanes, pendingLanes) {
  // First look for lanes that are completely unclaimed, i.e. have no
  // pending work.
  var lane = pickArbitraryLane(TransitionLanes & ~pendingLanes);

  if (lane === NoLane) {
    // If all lanes have pending work, look for a lane that isn't currently
    // being worked on.
    lane = pickArbitraryLane(TransitionLanes & ~wipLanes);

    if (lane === NoLane) {
      // If everything is being worked on, pick any lane. This has the
      // effect of interrupting the current work-in-progress.
      lane = pickArbitraryLane(TransitionLanes);
    }
  }

  return lane;
} // To ensure consistency across multiple updates in the same event, this should
// be pure function, so that it always returns the same lane for given inputs.

function findRetryLane(wipLanes) {
  // This is a fork of `findUpdateLane` designed specifically for Suspense
  // "retries" — a special update that attempts to flip a Suspense boundary
  // from its placeholder state to its primary/resolved state.
  var lane = pickArbitraryLane(RetryLanes & ~wipLanes);

  if (lane === NoLane) {
    lane = pickArbitraryLane(RetryLanes);
  }

  return lane;
}

function getHighestPriorityLane(lanes) {
  return lanes & -lanes;
}

function getLowestPriorityLane(lanes) {
  // This finds the most significant non-zero bit.
  var index = 31 - clz32(lanes);
  return index < 0 ? NoLanes : 1 << index;
}

function getEqualOrHigherPriorityLanes(lanes) {
  return (getLowestPriorityLane(lanes) << 1) - 1;
}

function pickArbitraryLane(lanes) {
  // This wrapper function gets inlined. Only exists so to communicate that it
  // doesn't matter which bit is selected; you can pick any bit without
  // affecting the algorithms where its used. Here I'm using
  // getHighestPriorityLane because it requires the fewest operations.
  return getHighestPriorityLane(lanes);
}

function pickArbitraryLaneIndex(lanes) {
  return 31 - clz32(lanes);
}

function laneToIndex(lane) {
  return pickArbitraryLaneIndex(lane);
}

function includesSomeLane(a, b) {
  return (a & b) !== NoLanes;
}
function isSubsetOfLanes(set, subset) {
  return (set & subset) === subset;
}
function mergeLanes(a, b) {
  return a | b;
}
function removeLanes(set, subset) {
  return set & ~subset;
} // Seems redundant, but it changes the type from a single lane (used for
// updates) to a group of lanes (used for flushing work).

function laneToLanes(lane) {
  return lane;
}
function higherPriorityLane(a, b) {
  // This works because the bit ranges decrease in priority as you go left.
  return a !== NoLane && a < b ? a : b;
}
function createLaneMap(initial) {
  // Intentionally pushing one by one.
  // https://v8.dev/blog/elements-kinds#avoid-creating-holes
  var laneMap = [];

  for (var i = 0; i < TotalLanes; i++) {
    laneMap.push(initial);
  }

  return laneMap;
}
function markRootUpdated(root, updateLane, eventTime) {
  root.pendingLanes |= updateLane; // TODO: Theoretically, any update to any lane can unblock any other lane. But
  // it's not practical to try every single possible combination. We need a
  // heuristic to decide which lanes to attempt to render, and in which batches.
  // For now, we use the same heuristic as in the old ExpirationTimes model:
  // retry any lane at equal or lower priority, but don't try updates at higher
  // priority without also including the lower priority updates. This works well
  // when considering updates across different priority levels, but isn't
  // sufficient for updates within the same priority, since we want to treat
  // those updates as parallel.
  // Unsuspend any update at equal or lower priority.

  var higherPriorityLanes = updateLane - 1; // Turns 0b1000 into 0b0111

  root.suspendedLanes &= higherPriorityLanes;
  root.pingedLanes &= higherPriorityLanes;
  var eventTimes = root.eventTimes;
  var index = laneToIndex(updateLane); // We can always overwrite an existing timestamp because we prefer the most
  // recent event, and we assume time is monotonically increasing.

  eventTimes[index] = eventTime;
}
function markRootSuspended(root, suspendedLanes) {
  root.suspendedLanes |= suspendedLanes;
  root.pingedLanes &= ~suspendedLanes; // The suspended lanes are no longer CPU-bound. Clear their expiration times.

  var expirationTimes = root.expirationTimes;
  var lanes = suspendedLanes;

  while (lanes > 0) {
    var index = pickArbitraryLaneIndex(lanes);
    var lane = 1 << index;
    expirationTimes[index] = NoTimestamp;
    lanes &= ~lane;
  }
}
function markRootPinged(root, pingedLanes, eventTime) {
  root.pingedLanes |= root.suspendedLanes & pingedLanes;
}
function markDiscreteUpdatesExpired(root) {
  root.expiredLanes |= InputDiscreteLanes & root.pendingLanes;
}
function hasDiscreteLanes(lanes) {
  return (lanes & InputDiscreteLanes) !== NoLanes;
}
function markRootMutableRead(root, updateLane) {
  root.mutableReadLanes |= updateLane & root.pendingLanes;
}
function markRootFinished(root, remainingLanes) {
  var noLongerPendingLanes = root.pendingLanes & ~remainingLanes;
  root.pendingLanes = remainingLanes; // Let's try everything again

  root.suspendedLanes = 0;
  root.pingedLanes = 0;
  root.expiredLanes &= remainingLanes;
  root.mutableReadLanes &= remainingLanes;
  root.entangledLanes &= remainingLanes;
  var entanglements = root.entanglements;
  var eventTimes = root.eventTimes;
  var expirationTimes = root.expirationTimes; // Clear the lanes that no longer have pending work

  var lanes = noLongerPendingLanes;

  while (lanes > 0) {
    var index = pickArbitraryLaneIndex(lanes);
    var lane = 1 << index;
    entanglements[index] = NoLanes;
    eventTimes[index] = NoTimestamp;
    expirationTimes[index] = NoTimestamp;
    lanes &= ~lane;
  }
}
function markRootEntangled(root, entangledLanes) {
  root.entangledLanes |= entangledLanes;
  var entanglements = root.entanglements;
  var lanes = entangledLanes;

  while (lanes > 0) {
    var index = pickArbitraryLaneIndex(lanes);
    var lane = 1 << index;
    entanglements[index] |= entangledLanes;
    lanes &= ~lane;
  }
}
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback; // Count leading zeros. Only used on lanes, so assume input is an integer.
// Based on:
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/clz32

var log = Math.log;
var LN2 = Math.LN2;

function clz32Fallback(lanes) {
  if (lanes === 0) {
    return 32;
  }

  return 31 - (log(lanes) / LN2 | 0) | 0;
}

// Intentionally not named imports because Rollup would use dynamic dispatch for
var UserBlockingPriority$1 = Scheduler.unstable_UserBlockingPriority,
    runWithPriority = Scheduler.unstable_runWithPriority; // TODO: can we stop exporting these?

var _enabled = true; // This is exported in FB builds for use by legacy FB layer infra.
// We'd like to remove this but it's not clear if this is safe.

function setEnabled(enabled) {
  _enabled = !!enabled;
}
function isEnabled() {
  return _enabled;
}
function createEventListenerWrapperWithPriority(targetContainer, domEventName, eventSystemFlags) {
  var eventPriority = getEventPriorityForPluginSystem(domEventName);
  var listenerWrapper;

  switch (eventPriority) {
    case DiscreteEvent:
      listenerWrapper = dispatchDiscreteEvent;
      break;

    case UserBlockingEvent:
      listenerWrapper = dispatchUserBlockingUpdate;
      break;

    case ContinuousEvent:
    default:
      listenerWrapper = dispatchEvent;
      break;
  }

  return listenerWrapper.bind(null, domEventName, eventSystemFlags, targetContainer);
}

function dispatchDiscreteEvent(domEventName, eventSystemFlags, container, nativeEvent) {
  {
    flushDiscreteUpdatesIfNeeded(nativeEvent.timeStamp);
  }

  discreteUpdates(dispatchEvent, domEventName, eventSystemFlags, container, nativeEvent);
}

function dispatchUserBlockingUpdate(domEventName, eventSystemFlags, container, nativeEvent) {
  {
    runWithPriority(UserBlockingPriority$1, dispatchEvent.bind(null, domEventName, eventSystemFlags, container, nativeEvent));
  }
}

function dispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent) {
  if (!_enabled) {
    return;
  }

  var allowReplay = true;

  {
    // TODO: replaying capture phase events is currently broken
    // because we used to do it during top-level native bubble handlers
    // but now we use different bubble and capture handlers.
    // In eager mode, we attach capture listeners early, so we need
    // to filter them out until we fix the logic to handle them correctly.
    // This could've been outside the flag but I put it inside to reduce risk.
    allowReplay = (eventSystemFlags & IS_CAPTURE_PHASE) === 0;
  }

  if (allowReplay && hasQueuedDiscreteEvents() && isReplayableDiscreteEvent(domEventName)) {
    // If we already have a queue of discrete events, and this is another discrete
    // event, then we can't dispatch it regardless of its target, since they
    // need to dispatch in order.
    queueDiscreteEvent(null, // Flags that we're not actually blocked on anything as far as we know.
    domEventName, eventSystemFlags, targetContainer, nativeEvent);
    return;
  }

  var blockedOn = attemptToDispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent);

  if (blockedOn === null) {
    // We successfully dispatched this event.
    if (allowReplay) {
      clearIfContinuousEvent(domEventName, nativeEvent);
    }

    return;
  }

  if (allowReplay) {
    if (isReplayableDiscreteEvent(domEventName)) {
      // This this to be replayed later once the target is available.
      queueDiscreteEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent);
      return;
    }

    if (queueIfContinuousEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent)) {
      return;
    } // We need to clear only if we didn't queue because
    // queueing is accummulative.


    clearIfContinuousEvent(domEventName, nativeEvent);
  } // This is not replayable so we'll invoke it but without a target,
  // in case the event system needs to trace it.


  dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, null, targetContainer);
} // Attempt dispatching an event. Returns a SuspenseInstance or Container if it's blocked.

function attemptToDispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent) {
  // TODO: Warn if _enabled is false.
  var nativeEventTarget = getEventTarget(nativeEvent);
  var targetInst = getClosestInstanceFromNode(nativeEventTarget);

  if (targetInst !== null) {
    var nearestMounted = getNearestMountedFiber(targetInst);

    if (nearestMounted === null) {
      // This tree has been unmounted already. Dispatch without a target.
      targetInst = null;
    } else {
      var tag = nearestMounted.tag;

      if (tag === SuspenseComponent) {
        var instance = getSuspenseInstanceFromFiber(nearestMounted);

        if (instance !== null) {
          // Queue the event to be replayed later. Abort dispatching since we
          // don't want this event dispatched twice through the event system.
          // TODO: If this is the first discrete event in the queue. Schedule an increased
          // priority for this boundary.
          return instance;
        } // This shouldn't happen, something went wrong but to avoid blocking
        // the whole system, dispatch the event without a target.
        // TODO: Warn.


        targetInst = null;
      } else if (tag === HostRoot) {
        var root = nearestMounted.stateNode;

        if (root.hydrate) {
          // If this happens during a replay something went wrong and it might block
          // the whole system.
          return getContainerFromFiber(nearestMounted);
        }

        targetInst = null;
      } else if (nearestMounted !== targetInst) {
        // If we get an event (ex: img onload) before committing that
        // component's mount, ignore it for now (that is, treat it as if it was an
        // event on a non-React tree). We might also consider queueing events and
        // dispatching them after the mount.
        targetInst = null;
      }
    }
  }

  dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, targetInst, targetContainer); // We're not blocked on anything.

  return null;
}

function addEventBubbleListener(target, eventType, listener) {
  target.addEventListener(eventType, listener, false);
  return listener;
}
function addEventCaptureListener(target, eventType, listener) {
  target.addEventListener(eventType, listener, true);
  return listener;
}
function addEventCaptureListenerWithPassiveFlag(target, eventType, listener, passive) {
  target.addEventListener(eventType, listener, {
    capture: true,
    passive: passive
  });
  return listener;
}
function addEventBubbleListenerWithPassiveFlag(target, eventType, listener, passive) {
  target.addEventListener(eventType, listener, {
    passive: passive
  });
  return listener;
}

/**
 * These variables store information about text content of a target node,
 * allowing comparison of content before and after a given event.
 *
 * Identify the node where selection currently begins, then observe
 * both its text content and its current position in the DOM. Since the
 * browser may natively replace the target node during composition, we can
 * use its position to find its replacement.
 *
 *
 */
var root = null;
var startText = null;
var fallbackText = null;
function initialize(nativeEventTarget) {
  root = nativeEventTarget;
  startText = getText();
  return true;
}
function reset() {
  root = null;
  startText = null;
  fallbackText = null;
}
function getData() {
  if (fallbackText) {
    return fallbackText;
  }

  var start;
  var startValue = startText;
  var startLength = startValue.length;
  var end;
  var endValue = getText();
  var endLength = endValue.length;

  for (start = 0; start < startLength; start++) {
    if (startValue[start] !== endValue[start]) {
      break;
    }
  }

  var minEnd = startLength - start;

  for (end = 1; end <= minEnd; end++) {
    if (startValue[startLength - end] !== endValue[endLength - end]) {
      break;
    }
  }

  var sliceTail = end > 1 ? 1 - end : undefined;
  fallbackText = endValue.slice(start, sliceTail);
  return fallbackText;
}
function getText() {
  if ('value' in root) {
    return root.value;
  }

  return root.textContent;
}

/**
 * `charCode` represents the actual "character code" and is safe to use with
 * `String.fromCharCode`. As such, only keys that correspond to printable
 * characters produce a valid `charCode`, the only exception to this is Enter.
 * The Tab-key is considered non-printable and does not have a `charCode`,
 * presumably because it does not produce a tab-character in browsers.
 *
 * @param {object} nativeEvent Native browser event.
 * @return {number} Normalized `charCode` property.
 */
function getEventCharCode(nativeEvent) {
  var charCode;
  var keyCode = nativeEvent.keyCode;

  if ('charCode' in nativeEvent) {
    charCode = nativeEvent.charCode; // FF does not set `charCode` for the Enter-key, check against `keyCode`.

    if (charCode === 0 && keyCode === 13) {
      charCode = 13;
    }
  } else {
    // IE8 does not implement `charCode`, but `keyCode` has the correct value.
    charCode = keyCode;
  } // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux)
  // report Enter as charCode 10 when ctrl is pressed.


  if (charCode === 10) {
    charCode = 13;
  } // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.
  // Must not discard the (non-)printable Enter-key.


  if (charCode >= 32 || charCode === 13) {
    return charCode;
  }

  return 0;
}

function functionThatReturnsTrue() {
  return true;
}

function functionThatReturnsFalse() {
  return false;
} // This is intentionally a factory so that we have different returned constructors.
// If we had a single constructor, it would be megamorphic and engines would deopt.


function createSyntheticEvent(Interface) {
  /**
   * Synthetic events are dispatched by event plugins, typically in response to a
   * top-level event delegation handler.
   *
   * These systems should generally use pooling to reduce the frequency of garbage
   * collection. The system should check `isPersistent` to determine whether the
   * event should be released into the pool after being dispatched. Users that
   * need a persisted event should invoke `persist`.
   *
   * Synthetic events (and subclasses) implement the DOM Level 3 Events API by
   * normalizing browser quirks. Subclasses do not necessarily have to implement a
   * DOM interface; custom application-specific events can also subclass this.
   */
  function SyntheticBaseEvent(reactName, reactEventType, targetInst, nativeEvent, nativeEventTarget) {
    this._reactName = reactName;
    this._targetInst = targetInst;
    this.type = reactEventType;
    this.nativeEvent = nativeEvent;
    this.target = nativeEventTarget;
    this.currentTarget = null;

    for (var _propName in Interface) {
      if (!Interface.hasOwnProperty(_propName)) {
        continue;
      }

      var normalize = Interface[_propName];

      if (normalize) {
        this[_propName] = normalize(nativeEvent);
      } else {
        this[_propName] = nativeEvent[_propName];
      }
    }

    var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;

    if (defaultPrevented) {
      this.isDefaultPrevented = functionThatReturnsTrue;
    } else {
      this.isDefaultPrevented = functionThatReturnsFalse;
    }

    this.isPropagationStopped = functionThatReturnsFalse;
    return this;
  }

  _assign(SyntheticBaseEvent.prototype, {
    preventDefault: function () {
      this.defaultPrevented = true;
      var event = this.nativeEvent;

      if (!event) {
        return;
      }

      if (event.preventDefault) {
        event.preventDefault(); // $FlowFixMe - flow is not aware of `unknown` in IE
      } else if (typeof event.returnValue !== 'unknown') {
        event.returnValue = false;
      }

      this.isDefaultPrevented = functionThatReturnsTrue;
    },
    stopPropagation: function () {
      var event = this.nativeEvent;

      if (!event) {
        return;
      }

      if (event.stopPropagation) {
        event.stopPropagation(); // $FlowFixMe - flow is not aware of `unknown` in IE
      } else if (typeof event.cancelBubble !== 'unknown') {
        // The ChangeEventPlugin registers a "propertychange" event for
        // IE. This event does not support bubbling or cancelling, and
        // any references to cancelBubble throw "Member not found".  A
        // typeof check of "unknown" circumvents this issue (and is also
        // IE specific).
        event.cancelBubble = true;
      }

      this.isPropagationStopped = functionThatReturnsTrue;
    },

    /**
     * We release all dispatched `SyntheticEvent`s after each event loop, adding
     * them back into the pool. This allows a way to hold onto a reference that
     * won't be added back into the pool.
     */
    persist: function () {// Modern event system doesn't use pooling.
    },

    /**
     * Checks if this event should be released back into the pool.
     *
     * @return {boolean} True if this should not be released, false otherwise.
     */
    isPersistent: functionThatReturnsTrue
  });

  return SyntheticBaseEvent;
}
/**
 * @interface Event
 * @see http://www.w3.org/TR/DOM-Level-3-Events/
 */


var EventInterface = {
  eventPhase: 0,
  bubbles: 0,
  cancelable: 0,
  timeStamp: function (event) {
    return event.timeStamp || Date.now();
  },
  defaultPrevented: 0,
  isTrusted: 0
};
var SyntheticEvent = createSyntheticEvent(EventInterface);

var UIEventInterface = _assign({}, EventInterface, {
  view: 0,
  detail: 0
});

var SyntheticUIEvent = createSyntheticEvent(UIEventInterface);
var lastMovementX;
var lastMovementY;
var lastMouseEvent;

function updateMouseMovementPolyfillState(event) {
  if (event !== lastMouseEvent) {
    if (lastMouseEvent && event.type === 'mousemove') {
      lastMovementX = event.screenX - lastMouseEvent.screenX;
      lastMovementY = event.screenY - lastMouseEvent.screenY;
    } else {
      lastMovementX = 0;
      lastMovementY = 0;
    }

    lastMouseEvent = event;
  }
}
/**
 * @interface MouseEvent
 * @see http://www.w3.org/TR/DOM-Level-3-Events/
 */


var MouseEventInterface = _assign({}, UIEventInterface, {
  screenX: 0,
  screenY: 0,
  clientX: 0,
  clientY: 0,
  pageX: 0,
  pageY: 0,
  ctrlKey: 0,
  shiftKey: 0,
  altKey: 0,
  metaKey: 0,
  getModifierState: getEventModifierState,
  button: 0,
  buttons: 0,
  relatedTarget: function (event) {
    if (event.relatedTarget === undefined) return event.fromElement === event.srcElement ? event.toElement : event.fromElement;
    return event.relatedTarget;
  },
  movementX: function (event) {
    if ('movementX' in event) {
      return event.movementX;
    }

    updateMouseMovementPolyfillState(event);
    return lastMovementX;
  },
  movementY: function (event) {
    if ('movementY' in event) {
      return event.movementY;
    } // Don't need to call updateMouseMovementPolyfillState() here
    // because it's guaranteed to have already run when movementX
    // was copied.


    return lastMovementY;
  }
});

var SyntheticMouseEvent = createSyntheticEvent(MouseEventInterface);
/**
 * @interface DragEvent
 * @see http://www.w3.org/TR/DOM-Level-3-Events/
 */

var DragEventInterface = _assign({}, MouseEventInterface, {
  dataTransfer: 0
});

var SyntheticDragEvent = createSyntheticEvent(DragEventInterface);
/**
 * @interface FocusEvent
 * @see http://www.w3.org/TR/DOM-Level-3-Events/
 */

var FocusEventInterface = _assign({}, UIEventInterface, {
  relatedTarget: 0
});

var SyntheticFocusEvent = createSyntheticEvent(FocusEventInterface);
/**
 * @interface Event
 * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
 * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
 */

var AnimationEventInterface = _assign({}, EventInterface, {
  animationName: 0,
  elapsedTime: 0,
  pseudoElement: 0
});

var SyntheticAnimationEvent = createSyntheticEvent(AnimationEventInterface);
/**
 * @interface Event
 * @see http://www.w3.org/TR/clipboard-apis/
 */

var ClipboardEventInterface = _assign({}, EventInterface, {
  clipboardData: function (event) {
    return 'clipboardData' in event ? event.clipboardData : window.clipboardData;
  }
});

var SyntheticClipboardEvent = createSyntheticEvent(ClipboardEventInterface);
/**
 * @interface Event
 * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
 */

var CompositionEventInterface = _assign({}, EventInterface, {
  data: 0
});

var SyntheticCompositionEvent = createSyntheticEvent(CompositionEventInterface);
/**
 * @interface Event
 * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
 *      /#events-inputevents
 */
// Happens to share the same list for now.

var SyntheticInputEvent = SyntheticCompositionEvent;
/**
 * Normalization of deprecated HTML5 `key` values
 * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
 */

var normalizeKey = {
  Esc: 'Escape',
  Spacebar: ' ',
  Left: 'ArrowLeft',
  Up: 'ArrowUp',
  Right: 'ArrowRight',
  Down: 'ArrowDown',
  Del: 'Delete',
  Win: 'OS',
  Menu: 'ContextMenu',
  Apps: 'ContextMenu',
  Scroll: 'ScrollLock',
  MozPrintableKey: 'Unidentified'
};
/**
 * Translation from legacy `keyCode` to HTML5 `key`
 * Only special keys supported, all others depend on keyboard layout or browser
 * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
 */

var translateToKey = {
  '8': 'Backspace',
  '9': 'Tab',
  '12': 'Clear',
  '13': 'Enter',
  '16': 'Shift',
  '17': 'Control',
  '18': 'Alt',
  '19': 'Pause',
  '20': 'CapsLock',
  '27': 'Escape',
  '32': ' ',
  '33': 'PageUp',
  '34': 'PageDown',
  '35': 'End',
  '36': 'Home',
  '37': 'ArrowLeft',
  '38': 'ArrowUp',
  '39': 'ArrowRight',
  '40': 'ArrowDown',
  '45': 'Insert',
  '46': 'Delete',
  '112': 'F1',
  '113': 'F2',
  '114': 'F3',
  '115': 'F4',
  '116': 'F5',
  '117': 'F6',
  '118': 'F7',
  '119': 'F8',
  '120': 'F9',
  '121': 'F10',
  '122': 'F11',
  '123': 'F12',
  '144': 'NumLock',
  '145': 'ScrollLock',
  '224': 'Meta'
};
/**
 * @param {object} nativeEvent Native browser event.
 * @return {string} Normalized `key` property.
 */

function getEventKey(nativeEvent) {
  if (nativeEvent.key) {
    // Normalize inconsistent values reported by browsers due to
    // implementations of a working draft specification.
    // FireFox implements `key` but returns `MozPrintableKey` for all
    // printable characters (normalized to `Unidentified`), ignore it.
    var key = normalizeKey[nativeEvent.key] || nativeEvent.key;

    if (key !== 'Unidentified') {
      return key;
    }
  } // Browser does not implement `key`, polyfill as much of it as we can.


  if (nativeEvent.type === 'keypress') {
    var charCode = getEventCharCode(nativeEvent); // The enter-key is technically both printable and non-printable and can
    // thus be captured by `keypress`, no other non-printable key should.

    return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);
  }

  if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {
    // While user keyboard layout determines the actual meaning of each
    // `keyCode` value, almost all function keys have a universal value.
    return translateToKey[nativeEvent.keyCode] || 'Unidentified';
  }

  return '';
}
/**
 * Translation from modifier key to the associated property in the event.
 * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers
 */


var modifierKeyToProp = {
  Alt: 'altKey',
  Control: 'ctrlKey',
  Meta: 'metaKey',
  Shift: 'shiftKey'
}; // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
// getModifierState. If getModifierState is not supported, we map it to a set of
// modifier keys exposed by the event. In this case, Lock-keys are not supported.

function modifierStateGetter(keyArg) {
  var syntheticEvent = this;
  var nativeEvent = syntheticEvent.nativeEvent;

  if (nativeEvent.getModifierState) {
    return nativeEvent.getModifierState(keyArg);
  }

  var keyProp = modifierKeyToProp[keyArg];
  return keyProp ? !!nativeEvent[keyProp] : false;
}

function getEventModifierState(nativeEvent) {
  return modifierStateGetter;
}
/**
 * @interface KeyboardEvent
 * @see http://www.w3.org/TR/DOM-Level-3-Events/
 */


var KeyboardEventInterface = _assign({}, UIEventInterface, {
  key: getEventKey,
  code: 0,
  location: 0,
  ctrlKey: 0,
  shiftKey: 0,
  altKey: 0,
  metaKey: 0,
  repeat: 0,
  locale: 0,
  getModifierState: getEventModifierState,
  // Legacy Interface
  charCode: function (event) {
    // `charCode` is the result of a KeyPress event and represents the value of
    // the actual printable character.
    // KeyPress is deprecated, but its replacement is not yet final and not
    // implemented in any major browser. Only KeyPress has charCode.
    if (event.type === 'keypress') {
      return getEventCharCode(event);
    }

    return 0;
  },
  keyCode: function (event) {
    // `keyCode` is the result of a KeyDown/Up event and represents the value of
    // physical keyboard key.
    // The actual meaning of the value depends on the users' keyboard layout
    // which cannot be detected. Assuming that it is a US keyboard layout
    // provides a surprisingly accurate mapping for US and European users.
    // Due to this, it is left to the user to implement at this time.
    if (event.type === 'keydown' || event.type === 'keyup') {
      return event.keyCode;
    }

    return 0;
  },
  which: function (event) {
    // `which` is an alias for either `keyCode` or `charCode` depending on the
    // type of the event.
    if (event.type === 'keypress') {
      return getEventCharCode(event);
    }

    if (event.type === 'keydown' || event.type === 'keyup') {
      return event.keyCode;
    }

    return 0;
  }
});

var SyntheticKeyboardEvent = createSyntheticEvent(KeyboardEventInterface);
/**
 * @interface PointerEvent
 * @see http://www.w3.org/TR/pointerevents/
 */

var PointerEventInterface = _assign({}, MouseEventInterface, {
  pointerId: 0,
  width: 0,
  height: 0,
  pressure: 0,
  tangentialPressure: 0,
  tiltX: 0,
  tiltY: 0,
  twist: 0,
  pointerType: 0,
  isPrimary: 0
});

var SyntheticPointerEvent = createSyntheticEvent(PointerEventInterface);
/**
 * @interface TouchEvent
 * @see http://www.w3.org/TR/touch-events/
 */

var TouchEventInterface = _assign({}, UIEventInterface, {
  touches: 0,
  targetTouches: 0,
  changedTouches: 0,
  altKey: 0,
  metaKey: 0,
  ctrlKey: 0,
  shiftKey: 0,
  getModifierState: getEventModifierState
});

var SyntheticTouchEvent = createSyntheticEvent(TouchEventInterface);
/**
 * @interface Event
 * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
 * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
 */

var TransitionEventInterface = _assign({}, EventInterface, {
  propertyName: 0,
  elapsedTime: 0,
  pseudoElement: 0
});

var SyntheticTransitionEvent = createSyntheticEvent(TransitionEventInterface);
/**
 * @interface WheelEvent
 * @see http://www.w3.org/TR/DOM-Level-3-Events/
 */

var WheelEventInterface = _assign({}, MouseEventInterface, {
  deltaX: function (event) {
    return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
    'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
  },
  deltaY: function (event) {
    return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
    'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
    'wheelDelta' in event ? -event.wheelDelta : 0;
  },
  deltaZ: 0,
  // Browsers without "deltaMode" is reporting in raw wheel delta where one
  // notch on the scroll is always +/- 120, roughly equivalent to pixels.
  // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
  // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
  deltaMode: 0
});

var SyntheticWheelEvent = createSyntheticEvent(WheelEventInterface);

var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space

var START_KEYCODE = 229;
var canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window;
var documentMode = null;

if (canUseDOM && 'documentMode' in document) {
  documentMode = document.documentMode;
} // Webkit offers a very useful `textInput` event that can be used to
// directly represent `beforeInput`. The IE `textinput` event is not as
// useful, so we don't use it.


var canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode; // In IE9+, we have access to composition events, but the data supplied
// by the native compositionend event may be incorrect. Japanese ideographic
// spaces, for instance (\u3000) are not recorded correctly.

var useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);
var SPACEBAR_CODE = 32;
var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);

function registerEvents() {
  registerTwoPhaseEvent('onBeforeInput', ['compositionend', 'keypress', 'textInput', 'paste']);
  registerTwoPhaseEvent('onCompositionEnd', ['compositionend', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']);
  registerTwoPhaseEvent('onCompositionStart', ['compositionstart', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']);
  registerTwoPhaseEvent('onCompositionUpdate', ['compositionupdate', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']);
} // Track whether we've ever handled a keypress on the space key.


var hasSpaceKeypress = false;
/**
 * Return whether a native keypress event is assumed to be a command.
 * This is required because Firefox fires `keypress` events for key commands
 * (cut, copy, select-all, etc.) even though no character is inserted.
 */

function isKeypressCommand(nativeEvent) {
  return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) && // ctrlKey && altKey is equivalent to AltGr, and is not a command.
  !(nativeEvent.ctrlKey && nativeEvent.altKey);
}
/**
 * Translate native top level events into event types.
 */


function getCompositionEventType(domEventName) {
  switch (domEventName) {
    case 'compositionstart':
      return 'onCompositionStart';

    case 'compositionend':
      return 'onCompositionEnd';

    case 'compositionupdate':
      return 'onCompositionUpdate';
  }
}
/**
 * Does our fallback best-guess model think this event signifies that
 * composition has begun?
 */


function isFallbackCompositionStart(domEventName, nativeEvent) {
  return domEventName === 'keydown' && nativeEvent.keyCode === START_KEYCODE;
}
/**
 * Does our fallback mode think that this event is the end of composition?
 */


function isFallbackCompositionEnd(domEventName, nativeEvent) {
  switch (domEventName) {
    case 'keyup':
      // Command keys insert or clear IME input.
      return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;

    case 'keydown':
      // Expect IME keyCode on each keydown. If we get any other
      // code we must have exited earlier.
      return nativeEvent.keyCode !== START_KEYCODE;

    case 'keypress':
    case 'mousedown':
    case 'focusout':
      // Events are not possible without cancelling IME.
      return true;

    default:
      return false;
  }
}
/**
 * Google Input Tools provides composition data via a CustomEvent,
 * with the `data` property populated in the `detail` object. If this
 * is available on the event object, use it. If not, this is a plain
 * composition event and we have nothing special to extract.
 *
 * @param {object} nativeEvent
 * @return {?string}
 */


function getDataFromCustomEvent(nativeEvent) {
  var detail = nativeEvent.detail;

  if (typeof detail === 'object' && 'data' in detail) {
    return detail.data;
  }

  return null;
}
/**
 * Check if a composition event was triggered by Korean IME.
 * Our fallback mode does not work well with IE's Korean IME,
 * so just use native composition events when Korean IME is used.
 * Although CompositionEvent.locale property is deprecated,
 * it is available in IE, where our fallback mode is enabled.
 *
 * @param {object} nativeEvent
 * @return {boolean}
 */


function isUsingKoreanIME(nativeEvent) {
  return nativeEvent.locale === 'ko';
} // Track the current IME composition status, if any.


var isComposing = false;
/**
 * @return {?object} A SyntheticCompositionEvent.
 */

function extractCompositionEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget) {
  var eventType;
  var fallbackData;

  if (canUseCompositionEvent) {
    eventType = getCompositionEventType(domEventName);
  } else if (!isComposing) {
    if (isFallbackCompositionStart(domEventName, nativeEvent)) {
      eventType = 'onCompositionStart';
    }
  } else if (isFallbackCompositionEnd(domEventName, nativeEvent)) {
    eventType = 'onCompositionEnd';
  }

  if (!eventType) {
    return null;
  }

  if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) {
    // The current composition is stored statically and must not be
    // overwritten while composition continues.
    if (!isComposing && eventType === 'onCompositionStart') {
      isComposing = initialize(nativeEventTarget);
    } else if (eventType === 'onCompositionEnd') {
      if (isComposing) {
        fallbackData = getData();
      }
    }
  }

  var listeners = accumulateTwoPhaseListeners(targetInst, eventType);

  if (listeners.length > 0) {
    var event = new SyntheticCompositionEvent(eventType, domEventName, null, nativeEvent, nativeEventTarget);
    dispatchQueue.push({
      event: event,
      listeners: listeners
    });

    if (fallbackData) {
      // Inject data generated from fallback path into the synthetic event.
      // This matches the property of native CompositionEventInterface.
      event.data = fallbackData;
    } else {
      var customData = getDataFromCustomEvent(nativeEvent);

      if (customData !== null) {
        event.data = customData;
      }
    }
  }
}

function getNativeBeforeInputChars(domEventName, nativeEvent) {
  switch (domEventName) {
    case 'compositionend':
      return getDataFromCustomEvent(nativeEvent);

    case 'keypress':
      /**
       * If native `textInput` events are available, our goal is to make
       * use of them. However, there is a special case: the spacebar key.
       * In Webkit, preventing default on a spacebar `textInput` event
       * cancels character insertion, but it *also* causes the browser
       * to fall back to its default spacebar behavior of scrolling the
       * page.
       *
       * Tracking at:
       * https://code.google.com/p/chromium/issues/detail?id=355103
       *
       * To avoid this issue, use the keypress event as if no `textInput`
       * event is available.
       */
      var which = nativeEvent.which;

      if (which !== SPACEBAR_CODE) {
        return null;
      }

      hasSpaceKeypress = true;
      return SPACEBAR_CHAR;

    case 'textInput':
      // Record the characters to be added to the DOM.
      var chars = nativeEvent.data; // If it's a spacebar character, assume that we have already handled
      // it at the keypress level and bail immediately. Android Chrome
      // doesn't give us keycodes, so we need to ignore it.

      if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
        return null;
      }

      return chars;

    default:
      // For other native event types, do nothing.
      return null;
  }
}
/**
 * For browsers that do not provide the `textInput` event, extract the
 * appropriate string to use for SyntheticInputEvent.
 */


function getFallbackBeforeInputChars(domEventName, nativeEvent) {
  // If we are currently composing (IME) and using a fallback to do so,
  // try to extract the composed characters from the fallback object.
  // If composition event is available, we extract a string only at
  // compositionevent, otherwise extract it at fallback events.
  if (isComposing) {
    if (domEventName === 'compositionend' || !canUseCompositionEvent && isFallbackCompositionEnd(domEventName, nativeEvent)) {
      var chars = getData();
      reset();
      isComposing = false;
      return chars;
    }

    return null;
  }

  switch (domEventName) {
    case 'paste':
      // If a paste event occurs after a keypress, throw out the input
      // chars. Paste events should not lead to BeforeInput events.
      return null;

    case 'keypress':
      /**
       * As of v27, Firefox may fire keypress events even when no character
       * will be inserted. A few possibilities:
       *
       * - `which` is `0`. Arrow keys, Esc key, etc.
       *
       * - `which` is the pressed key code, but no char is available.
       *   Ex: 'AltGr + d` in Polish. There is no modified character for
       *   this key combination and no character is inserted into the
       *   document, but FF fires the keypress for char code `100` anyway.
       *   No `input` event will occur.
       *
       * - `which` is the pressed key code, but a command combination is
       *   being used. Ex: `Cmd+C`. No character is inserted, and no
       *   `input` event will occur.
       */
      if (!isKeypressCommand(nativeEvent)) {
        // IE fires the `keypress` event when a user types an emoji via
        // Touch keyboard of Windows.  In such a case, the `char` property
        // holds an emoji character like `\uD83D\uDE0A`.  Because its length
        // is 2, the property `which` does not represent an emoji correctly.
        // In such a case, we directly return the `char` property instead of
        // using `which`.
        if (nativeEvent.char && nativeEvent.char.length > 1) {
          return nativeEvent.char;
        } else if (nativeEvent.which) {
          return String.fromCharCode(nativeEvent.which);
        }
      }

      return null;

    case 'compositionend':
      return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data;

    default:
      return null;
  }
}
/**
 * Extract a SyntheticInputEvent for `beforeInput`, based on either native
 * `textInput` or fallback behavior.
 *
 * @return {?object} A SyntheticInputEvent.
 */


function extractBeforeInputEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget) {
  var chars;

  if (canUseTextInputEvent) {
    chars = getNativeBeforeInputChars(domEventName, nativeEvent);
  } else {
    chars = getFallbackBeforeInputChars(domEventName, nativeEvent);
  } // If no characters are being inserted, no BeforeInput event should
  // be fired.


  if (!chars) {
    return null;
  }

  var listeners = accumulateTwoPhaseListeners(targetInst, 'onBeforeInput');

  if (listeners.length > 0) {
    var event = new SyntheticInputEvent('onBeforeInput', 'beforeinput', null, nativeEvent, nativeEventTarget);
    dispatchQueue.push({
      event: event,
      listeners: listeners
    });
    event.data = chars;
  }
}
/**
 * Create an `onBeforeInput` event to match
 * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.
 *
 * This event plugin is based on the native `textInput` event
 * available in Chrome, Safari, Opera, and IE. This event fires after
 * `onKeyPress` and `onCompositionEnd`, but before `onInput`.
 *
 * `beforeInput` is spec'd but not implemented in any browsers, and
 * the `input` event does not provide any useful information about what has
 * actually been added, contrary to the spec. Thus, `textInput` is the best
 * available event to identify the characters that have actually been inserted
 * into the target node.
 *
 * This plugin is also responsible for emitting `composition` events, thus
 * allowing us to share composition fallback code for both `beforeInput` and
 * `composition` event types.
 */


function extractEvents(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
  extractCompositionEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
  extractBeforeInputEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
}

/**
 * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
 */
var supportedInputTypes = {
  color: true,
  date: true,
  datetime: true,
  'datetime-local': true,
  email: true,
  month: true,
  number: true,
  password: true,
  range: true,
  search: true,
  tel: true,
  text: true,
  time: true,
  url: true,
  week: true
};

function isTextInputElement(elem) {
  var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();

  if (nodeName === 'input') {
    return !!supportedInputTypes[elem.type];
  }

  if (nodeName === 'textarea') {
    return true;
  }

  return false;
}

/**
 * Checks if an event is supported in the current execution environment.
 *
 * NOTE: This will not work correctly for non-generic events such as `change`,
 * `reset`, `load`, `error`, and `select`.
 *
 * Borrows from Modernizr.
 *
 * @param {string} eventNameSuffix Event name, e.g. "click".
 * @return {boolean} True if the event is supported.
 * @internal
 * @license Modernizr 3.0.0pre (Custom Build) | MIT
 */

function isEventSupported(eventNameSuffix) {
  if (!canUseDOM) {
    return false;
  }

  var eventName = 'on' + eventNameSuffix;
  var isSupported = (eventName in document);

  if (!isSupported) {
    var element = document.createElement('div');
    element.setAttribute(eventName, 'return;');
    isSupported = typeof element[eventName] === 'function';
  }

  return isSupported;
}

function registerEvents$1() {
  registerTwoPhaseEvent('onChange', ['change', 'click', 'focusin', 'focusout', 'input', 'keydown', 'keyup', 'selectionchange']);
}

function createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, target) {
  // Flag this event loop as needing state restore.
  enqueueStateRestore(target);
  var listeners = accumulateTwoPhaseListeners(inst, 'onChange');

  if (listeners.length > 0) {
    var event = new SyntheticEvent('onChange', 'change', null, nativeEvent, target);
    dispatchQueue.push({
      event: event,
      listeners: listeners
    });
  }
}
/**
 * For IE shims
 */


var activeElement = null;
var activeElementInst = null;
/**
 * SECTION: handle `change` event
 */

function shouldUseChangeEvent(elem) {
  var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
  return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
}

function manualDispatchChangeEvent(nativeEvent) {
  var dispatchQueue = [];
  createAndAccumulateChangeEvent(dispatchQueue, activeElementInst, nativeEvent, getEventTarget(nativeEvent)); // If change and propertychange bubbled, we'd just bind to it like all the
  // other events and have it go through ReactBrowserEventEmitter. Since it
  // doesn't, we manually listen for the events and so we have to enqueue and
  // process the abstract event manually.
  //
  // Batching is necessary here in order to ensure that all event handlers run
  // before the next rerender (including event handlers attached to ancestor
  // elements instead of directly on the input). Without this, controlled
  // components don't work properly in conjunction with event bubbling because
  // the component is rerendered and the value reverted before all the event
  // handlers can run. See https://github.com/facebook/react/issues/708.

  batchedUpdates(runEventInBatch, dispatchQueue);
}

function runEventInBatch(dispatchQueue) {
  processDispatchQueue(dispatchQueue, 0);
}

function getInstIfValueChanged(targetInst) {
  var targetNode = getNodeFromInstance(targetInst);

  if (updateValueIfChanged(targetNode)) {
    return targetInst;
  }
}

function getTargetInstForChangeEvent(domEventName, targetInst) {
  if (domEventName === 'change') {
    return targetInst;
  }
}
/**
 * SECTION: handle `input` event
 */


var isInputEventSupported = false;

if (canUseDOM) {
  // IE9 claims to support the input event but fails to trigger it when
  // deleting text, so we ignore its input events.
  isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);
}
/**
 * (For IE <=9) Starts tracking propertychange events on the passed-in element
 * and override the value property so that we can distinguish user events from
 * value changes in JS.
 */


function startWatchingForValueChange(target, targetInst) {
  activeElement = target;
  activeElementInst = targetInst;
  activeElement.attachEvent('onpropertychange', handlePropertyChange);
}
/**
 * (For IE <=9) Removes the event listeners from the currently-tracked element,
 * if any exists.
 */


function stopWatchingForValueChange() {
  if (!activeElement) {
    return;
  }

  activeElement.detachEvent('onpropertychange', handlePropertyChange);
  activeElement = null;
  activeElementInst = null;
}
/**
 * (For IE <=9) Handles a propertychange event, sending a `change` event if
 * the value of the active element has changed.
 */


function handlePropertyChange(nativeEvent) {
  if (nativeEvent.propertyName !== 'value') {
    return;
  }

  if (getInstIfValueChanged(activeElementInst)) {
    manualDispatchChangeEvent(nativeEvent);
  }
}

function handleEventsForInputEventPolyfill(domEventName, target, targetInst) {
  if (domEventName === 'focusin') {
    // In IE9, propertychange fires for most input events but is buggy and
    // doesn't fire when text is deleted, but conveniently, selectionchange
    // appears to fire in all of the remaining cases so we catch those and
    // forward the event if the value has changed
    // In either case, we don't want to call the event handler if the value
    // is changed from JS so we redefine a setter for `.value` that updates
    // our activeElementValue variable, allowing us to ignore those changes
    //
    // stopWatching() should be a noop here but we call it just in case we
    // missed a blur event somehow.
    stopWatchingForValueChange();
    startWatchingForValueChange(target, targetInst);
  } else if (domEventName === 'focusout') {
    stopWatchingForValueChange();
  }
} // For IE8 and IE9.


function getTargetInstForInputEventPolyfill(domEventName, targetInst) {
  if (domEventName === 'selectionchange' || domEventName === 'keyup' || domEventName === 'keydown') {
    // On the selectionchange event, the target is just document which isn't
    // helpful for us so just check activeElement instead.
    //
    // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire
    // propertychange on the first input event after setting `value` from a
    // script and fires only keydown, keypress, keyup. Catching keyup usually
    // gets it and catching keydown lets us fire an event for the first
    // keystroke if user does a key repeat (it'll be a little delayed: right
    // before the second keystroke). Other input methods (e.g., paste) seem to
    // fire selectionchange normally.
    return getInstIfValueChanged(activeElementInst);
  }
}
/**
 * SECTION: handle `click` event
 */


function shouldUseClickEvent(elem) {
  // Use the `click` event to detect changes to checkbox and radio inputs.
  // This approach works across all browsers, whereas `change` does not fire
  // until `blur` in IE8.
  var nodeName = elem.nodeName;
  return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');
}

function getTargetInstForClickEvent(domEventName, targetInst) {
  if (domEventName === 'click') {
    return getInstIfValueChanged(targetInst);
  }
}

function getTargetInstForInputOrChangeEvent(domEventName, targetInst) {
  if (domEventName === 'input' || domEventName === 'change') {
    return getInstIfValueChanged(targetInst);
  }
}

function handleControlledInputBlur(node) {
  var state = node._wrapperState;

  if (!state || !state.controlled || node.type !== 'number') {
    return;
  }

  {
    // If controlled, assign the value attribute to the current value on blur
    setDefaultValue(node, 'number', node.value);
  }
}
/**
 * This plugin creates an `onChange` event that normalizes change events
 * across form elements. This event fires at a time when it's possible to
 * change the element's value without seeing a flicker.
 *
 * Supported elements are:
 * - input (see `isTextInputElement`)
 * - textarea
 * - select
 */


function extractEvents$1(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
  var targetNode = targetInst ? getNodeFromInstance(targetInst) : window;
  var getTargetInstFunc, handleEventFunc;

  if (shouldUseChangeEvent(targetNode)) {
    getTargetInstFunc = getTargetInstForChangeEvent;
  } else if (isTextInputElement(targetNode)) {
    if (isInputEventSupported) {
      getTargetInstFunc = getTargetInstForInputOrChangeEvent;
    } else {
      getTargetInstFunc = getTargetInstForInputEventPolyfill;
      handleEventFunc = handleEventsForInputEventPolyfill;
    }
  } else if (shouldUseClickEvent(targetNode)) {
    getTargetInstFunc = getTargetInstForClickEvent;
  }

  if (getTargetInstFunc) {
    var inst = getTargetInstFunc(domEventName, targetInst);

    if (inst) {
      createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, nativeEventTarget);
      return;
    }
  }

  if (handleEventFunc) {
    handleEventFunc(domEventName, targetNode, targetInst);
  } // When blurring, set the value attribute for number inputs


  if (domEventName === 'focusout') {
    handleControlledInputBlur(targetNode);
  }
}

function registerEvents$2() {
  registerDirectEvent('onMouseEnter', ['mouseout', 'mouseover']);
  registerDirectEvent('onMouseLeave', ['mouseout', 'mouseover']);
  registerDirectEvent('onPointerEnter', ['pointerout', 'pointerover']);
  registerDirectEvent('onPointerLeave', ['pointerout', 'pointerover']);
}
/**
 * For almost every interaction we care about, there will be both a top-level
 * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that
 * we do not extract duplicate events. However, moving the mouse into the
 * browser from outside will not fire a `mouseout` event. In this case, we use
 * the `mouseover` top-level event.
 */


function extractEvents$2(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
  var isOverEvent = domEventName === 'mouseover' || domEventName === 'pointerover';
  var isOutEvent = domEventName === 'mouseout' || domEventName === 'pointerout';

  if (isOverEvent && (eventSystemFlags & IS_REPLAYED) === 0) {
    // If this is an over event with a target, we might have already dispatched
    // the event in the out event of the other target. If this is replayed,
    // then it's because we couldn't dispatch against this target previously
    // so we have to do it now instead.
    var related = nativeEvent.relatedTarget || nativeEvent.fromElement;

    if (related) {
      // If the related node is managed by React, we can assume that we have
      // already dispatched the corresponding events during its mouseout.
      if (getClosestInstanceFromNode(related) || isContainerMarkedAsRoot(related)) {
        return;
      }
    }
  }

  if (!isOutEvent && !isOverEvent) {
    // Must not be a mouse or pointer in or out - ignoring.
    return;
  }

  var win; // TODO: why is this nullable in the types but we read from it?

  if (nativeEventTarget.window === nativeEventTarget) {
    // `nativeEventTarget` is probably a window object.
    win = nativeEventTarget;
  } else {
    // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
    var doc = nativeEventTarget.ownerDocument;

    if (doc) {
      win = doc.defaultView || doc.parentWindow;
    } else {
      win = window;
    }
  }

  var from;
  var to;

  if (isOutEvent) {
    var _related = nativeEvent.relatedTarget || nativeEvent.toElement;

    from = targetInst;
    to = _related ? getClosestInstanceFromNode(_related) : null;

    if (to !== null) {
      var nearestMounted = getNearestMountedFiber(to);

      if (to !== nearestMounted || to.tag !== HostComponent && to.tag !== HostText) {
        to = null;
      }
    }
  } else {
    // Moving to a node from outside the window.
    from = null;
    to = targetInst;
  }

  if (from === to) {
    // Nothing pertains to our managed components.
    return;
  }

  var SyntheticEventCtor = SyntheticMouseEvent;
  var leaveEventType = 'onMouseLeave';
  var enterEventType = 'onMouseEnter';
  var eventTypePrefix = 'mouse';

  if (domEventName === 'pointerout' || domEventName === 'pointerover') {
    SyntheticEventCtor = SyntheticPointerEvent;
    leaveEventType = 'onPointerLeave';
    enterEventType = 'onPointerEnter';
    eventTypePrefix = 'pointer';
  }

  var fromNode = from == null ? win : getNodeFromInstance(from);
  var toNode = to == null ? win : getNodeFromInstance(to);
  var leave = new SyntheticEventCtor(leaveEventType, eventTypePrefix + 'leave', from, nativeEvent, nativeEventTarget);
  leave.target = fromNode;
  leave.relatedTarget = toNode;
  var enter = null; // We should only process this nativeEvent if we are processing
  // the first ancestor. Next time, we will ignore the event.

  var nativeTargetInst = getClosestInstanceFromNode(nativeEventTarget);

  if (nativeTargetInst === targetInst) {
    var enterEvent = new SyntheticEventCtor(enterEventType, eventTypePrefix + 'enter', to, nativeEvent, nativeEventTarget);
    enterEvent.target = toNode;
    enterEvent.relatedTarget = fromNode;
    enter = enterEvent;
  }

  accumulateEnterLeaveTwoPhaseListeners(dispatchQueue, leave, enter, from, to);
}

/**
 * inlined Object.is polyfill to avoid requiring consumers ship their own
 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
 */
function is(x, y) {
  return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
  ;
}

var objectIs = typeof Object.is === 'function' ? Object.is : is;

var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
/**
 * Performs equality by iterating through keys on an object and returning false
 * when any key has values which are not strictly equal between the arguments.
 * Returns true when the values of all keys are strictly equal.
 */

function shallowEqual(objA, objB) {
  if (objectIs(objA, objB)) {
    return true;
  }

  if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
    return false;
  }

  var keysA = Object.keys(objA);
  var keysB = Object.keys(objB);

  if (keysA.length !== keysB.length) {
    return false;
  } // Test for A's keys different from B.


  for (var i = 0; i < keysA.length; i++) {
    if (!hasOwnProperty$2.call(objB, keysA[i]) || !objectIs(objA[keysA[i]], objB[keysA[i]])) {
      return false;
    }
  }

  return true;
}

/**
 * Given any node return the first leaf node without children.
 *
 * @param {DOMElement|DOMTextNode} node
 * @return {DOMElement|DOMTextNode}
 */

function getLeafNode(node) {
  while (node && node.firstChild) {
    node = node.firstChild;
  }

  return node;
}
/**
 * Get the next sibling within a container. This will walk up the
 * DOM if a node's siblings have been exhausted.
 *
 * @param {DOMElement|DOMTextNode} node
 * @return {?DOMElement|DOMTextNode}
 */


function getSiblingNode(node) {
  while (node) {
    if (node.nextSibling) {
      return node.nextSibling;
    }

    node = node.parentNode;
  }
}
/**
 * Get object describing the nodes which contain characters at offset.
 *
 * @param {DOMElement|DOMTextNode} root
 * @param {number} offset
 * @return {?object}
 */


function getNodeForCharacterOffset(root, offset) {
  var node = getLeafNode(root);
  var nodeStart = 0;
  var nodeEnd = 0;

  while (node) {
    if (node.nodeType === TEXT_NODE) {
      nodeEnd = nodeStart + node.textContent.length;

      if (nodeStart <= offset && nodeEnd >= offset) {
        return {
          node: node,
          offset: offset - nodeStart
        };
      }

      nodeStart = nodeEnd;
    }

    node = getLeafNode(getSiblingNode(node));
  }
}

/**
 * @param {DOMElement} outerNode
 * @return {?object}
 */

function getOffsets(outerNode) {
  var ownerDocument = outerNode.ownerDocument;
  var win = ownerDocument && ownerDocument.defaultView || window;
  var selection = win.getSelection && win.getSelection();

  if (!selection || selection.rangeCount === 0) {
    return null;
  }

  var anchorNode = selection.anchorNode,
      anchorOffset = selection.anchorOffset,
      focusNode = selection.focusNode,
      focusOffset = selection.focusOffset; // In Firefox, anchorNode and focusNode can be "anonymous divs", e.g. the
  // up/down buttons on an <input type="number">. Anonymous divs do not seem to
  // expose properties, triggering a "Permission denied error" if any of its
  // properties are accessed. The only seemingly possible way to avoid erroring
  // is to access a property that typically works for non-anonymous divs and
  // catch any error that may otherwise arise. See
  // https://bugzilla.mozilla.org/show_bug.cgi?id=208427

  try {
    /* eslint-disable no-unused-expressions */
    anchorNode.nodeType;
    focusNode.nodeType;
    /* eslint-enable no-unused-expressions */
  } catch (e) {
    return null;
  }

  return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset);
}
/**
 * Returns {start, end} where `start` is the character/codepoint index of
 * (anchorNode, anchorOffset) within the textContent of `outerNode`, and
 * `end` is the index of (focusNode, focusOffset).
 *
 * Returns null if you pass in garbage input but we should probably just crash.
 *
 * Exported only for testing.
 */

function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) {
  var length = 0;
  var start = -1;
  var end = -1;
  var indexWithinAnchor = 0;
  var indexWithinFocus = 0;
  var node = outerNode;
  var parentNode = null;

  outer: while (true) {
    var next = null;

    while (true) {
      if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) {
        start = length + anchorOffset;
      }

      if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) {
        end = length + focusOffset;
      }

      if (node.nodeType === TEXT_NODE) {
        length += node.nodeValue.length;
      }

      if ((next = node.firstChild) === null) {
        break;
      } // Moving from `node` to its first child `next`.


      parentNode = node;
      node = next;
    }

    while (true) {
      if (node === outerNode) {
        // If `outerNode` has children, this is always the second time visiting
        // it. If it has no children, this is still the first loop, and the only
        // valid selection is anchorNode and focusNode both equal to this node
        // and both offsets 0, in which case we will have handled above.
        break outer;
      }

      if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) {
        start = length;
      }

      if (parentNode === focusNode && ++indexWithinFocus === focusOffset) {
        end = length;
      }

      if ((next = node.nextSibling) !== null) {
        break;
      }

      node = parentNode;
      parentNode = node.parentNode;
    } // Moving from `node` to its next sibling `next`.


    node = next;
  }

  if (start === -1 || end === -1) {
    // This should never happen. (Would happen if the anchor/focus nodes aren't
    // actually inside the passed-in node.)
    return null;
  }

  return {
    start: start,
    end: end
  };
}
/**
 * In modern non-IE browsers, we can support both forward and backward
 * selections.
 *
 * Note: IE10+ supports the Selection object, but it does not support
 * the `extend` method, which means that even in modern IE, it's not possible
 * to programmatically create a backward selection. Thus, for all IE
 * versions, we use the old IE API to create our selections.
 *
 * @param {DOMElement|DOMTextNode} node
 * @param {object} offsets
 */

function setOffsets(node, offsets) {
  var doc = node.ownerDocument || document;
  var win = doc && doc.defaultView || window; // Edge fails with "Object expected" in some scenarios.
  // (For instance: TinyMCE editor used in a list component that supports pasting to add more,
  // fails when pasting 100+ items)

  if (!win.getSelection) {
    return;
  }

  var selection = win.getSelection();
  var length = node.textContent.length;
  var start = Math.min(offsets.start, length);
  var end = offsets.end === undefined ? start : Math.min(offsets.end, length); // IE 11 uses modern selection, but doesn't support the extend method.
  // Flip backward selections, so we can set with a single range.

  if (!selection.extend && start > end) {
    var temp = end;
    end = start;
    start = temp;
  }

  var startMarker = getNodeForCharacterOffset(node, start);
  var endMarker = getNodeForCharacterOffset(node, end);

  if (startMarker && endMarker) {
    if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) {
      return;
    }

    var range = doc.createRange();
    range.setStart(startMarker.node, startMarker.offset);
    selection.removeAllRanges();

    if (start > end) {
      selection.addRange(range);
      selection.extend(endMarker.node, endMarker.offset);
    } else {
      range.setEnd(endMarker.node, endMarker.offset);
      selection.addRange(range);
    }
  }
}

function isTextNode(node) {
  return node && node.nodeType === TEXT_NODE;
}

function containsNode(outerNode, innerNode) {
  if (!outerNode || !innerNode) {
    return false;
  } else if (outerNode === innerNode) {
    return true;
  } else if (isTextNode(outerNode)) {
    return false;
  } else if (isTextNode(innerNode)) {
    return containsNode(outerNode, innerNode.parentNode);
  } else if ('contains' in outerNode) {
    return outerNode.contains(innerNode);
  } else if (outerNode.compareDocumentPosition) {
    return !!(outerNode.compareDocumentPosition(innerNode) & 16);
  } else {
    return false;
  }
}

function isInDocument(node) {
  return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node);
}

function isSameOriginFrame(iframe) {
  try {
    // Accessing the contentDocument of a HTMLIframeElement can cause the browser
    // to throw, e.g. if it has a cross-origin src attribute.
    // Safari will show an error in the console when the access results in "Blocked a frame with origin". e.g:
    // iframe.contentDocument.defaultView;
    // A safety way is to access one of the cross origin properties: Window or Location
    // Which might result in "SecurityError" DOM Exception and it is compatible to Safari.
    // https://html.spec.whatwg.org/multipage/browsers.html#integration-with-idl
    return typeof iframe.contentWindow.location.href === 'string';
  } catch (err) {
    return false;
  }
}

function getActiveElementDeep() {
  var win = window;
  var element = getActiveElement();

  while (element instanceof win.HTMLIFrameElement) {
    if (isSameOriginFrame(element)) {
      win = element.contentWindow;
    } else {
      return element;
    }

    element = getActiveElement(win.document);
  }

  return element;
}
/**
 * @ReactInputSelection: React input selection module. Based on Selection.js,
 * but modified to be suitable for react and has a couple of bug fixes (doesn't
 * assume buttons have range selections allowed).
 * Input selection module for React.
 */

/**
 * @hasSelectionCapabilities: we get the element types that support selection
 * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart`
 * and `selectionEnd` rows.
 */


function hasSelectionCapabilities(elem) {
  var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true');
}
function getSelectionInformation() {
  var focusedElem = getActiveElementDeep();
  return {
    focusedElem: focusedElem,
    selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection(focusedElem) : null
  };
}
/**
 * @restoreSelection: If any selection information was potentially lost,
 * restore it. This is useful when performing operations that could remove dom
 * nodes and place them back in, resulting in focus being lost.
 */

function restoreSelection(priorSelectionInformation) {
  var curFocusedElem = getActiveElementDeep();
  var priorFocusedElem = priorSelectionInformation.focusedElem;
  var priorSelectionRange = priorSelectionInformation.selectionRange;

  if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {
    if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {
      setSelection(priorFocusedElem, priorSelectionRange);
    } // Focusing a node can change the scroll position, which is undesirable


    var ancestors = [];
    var ancestor = priorFocusedElem;

    while (ancestor = ancestor.parentNode) {
      if (ancestor.nodeType === ELEMENT_NODE) {
        ancestors.push({
          element: ancestor,
          left: ancestor.scrollLeft,
          top: ancestor.scrollTop
        });
      }
    }

    if (typeof priorFocusedElem.focus === 'function') {
      priorFocusedElem.focus();
    }

    for (var i = 0; i < ancestors.length; i++) {
      var info = ancestors[i];
      info.element.scrollLeft = info.left;
      info.element.scrollTop = info.top;
    }
  }
}
/**
 * @getSelection: Gets the selection bounds of a focused textarea, input or
 * contentEditable node.
 * -@input: Look up selection bounds of this input
 * -@return {start: selectionStart, end: selectionEnd}
 */

function getSelection(input) {
  var selection;

  if ('selectionStart' in input) {
    // Modern browser with input or textarea.
    selection = {
      start: input.selectionStart,
      end: input.selectionEnd
    };
  } else {
    // Content editable or old IE textarea.
    selection = getOffsets(input);
  }

  return selection || {
    start: 0,
    end: 0
  };
}
/**
 * @setSelection: Sets the selection bounds of a textarea or input and focuses
 * the input.
 * -@input     Set selection bounds of this input or textarea
 * -@offsets   Object of same form that is returned from get*
 */

function setSelection(input, offsets) {
  var start = offsets.start;
  var end = offsets.end;

  if (end === undefined) {
    end = start;
  }

  if ('selectionStart' in input) {
    input.selectionStart = start;
    input.selectionEnd = Math.min(end, input.value.length);
  } else {
    setOffsets(input, offsets);
  }
}

var skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11;

function registerEvents$3() {
  registerTwoPhaseEvent('onSelect', ['focusout', 'contextmenu', 'dragend', 'focusin', 'keydown', 'keyup', 'mousedown', 'mouseup', 'selectionchange']);
}

var activeElement$1 = null;
var activeElementInst$1 = null;
var lastSelection = null;
var mouseDown = false;
/**
 * Get an object which is a unique representation of the current selection.
 *
 * The return value will not be consistent across nodes or browsers, but
 * two identical selections on the same node will return identical objects.
 */

function getSelection$1(node) {
  if ('selectionStart' in node && hasSelectionCapabilities(node)) {
    return {
      start: node.selectionStart,
      end: node.selectionEnd
    };
  } else {
    var win = node.ownerDocument && node.ownerDocument.defaultView || window;
    var selection = win.getSelection();
    return {
      anchorNode: selection.anchorNode,
      anchorOffset: selection.anchorOffset,
      focusNode: selection.focusNode,
      focusOffset: selection.focusOffset
    };
  }
}
/**
 * Get document associated with the event target.
 */


function getEventTargetDocument(eventTarget) {
  return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument;
}
/**
 * Poll selection to see whether it's changed.
 *
 * @param {object} nativeEvent
 * @param {object} nativeEventTarget
 * @return {?SyntheticEvent}
 */


function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) {
  // Ensure we have the right element, and that the user is not dragging a
  // selection (this matches native `select` event behavior). In HTML5, select
  // fires only on input and textarea thus if there's no focused element we
  // won't dispatch.
  var doc = getEventTargetDocument(nativeEventTarget);

  if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) {
    return;
  } // Only fire when selection has actually changed.


  var currentSelection = getSelection$1(activeElement$1);

  if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
    lastSelection = currentSelection;
    var listeners = accumulateTwoPhaseListeners(activeElementInst$1, 'onSelect');

    if (listeners.length > 0) {
      var event = new SyntheticEvent('onSelect', 'select', null, nativeEvent, nativeEventTarget);
      dispatchQueue.push({
        event: event,
        listeners: listeners
      });
      event.target = activeElement$1;
    }
  }
}
/**
 * This plugin creates an `onSelect` event that normalizes select events
 * across form elements.
 *
 * Supported elements are:
 * - input (see `isTextInputElement`)
 * - textarea
 * - contentEditable
 *
 * This differs from native browser implementations in the following ways:
 * - Fires on contentEditable fields as well as inputs.
 * - Fires for collapsed selection.
 * - Fires after user input.
 */


function extractEvents$3(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {

  var targetNode = targetInst ? getNodeFromInstance(targetInst) : window;

  switch (domEventName) {
    // Track the input node that has focus.
    case 'focusin':
      if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {
        activeElement$1 = targetNode;
        activeElementInst$1 = targetInst;
        lastSelection = null;
      }

      break;

    case 'focusout':
      activeElement$1 = null;
      activeElementInst$1 = null;
      lastSelection = null;
      break;
    // Don't fire the event while the user is dragging. This matches the
    // semantics of the native select event.

    case 'mousedown':
      mouseDown = true;
      break;

    case 'contextmenu':
    case 'mouseup':
    case 'dragend':
      mouseDown = false;
      constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);
      break;
    // Chrome and IE fire non-standard event when selection is changed (and
    // sometimes when it hasn't). IE's event fires out of order with respect
    // to key and input events on deletion, so we discard it.
    //
    // Firefox doesn't support selectionchange, so check selection status
    // after each key entry. The selection changes after keydown and before
    // keyup, but we check on keydown as well in the case of holding down a
    // key, when multiple keydown events are fired but only one keyup is.
    // This is also our approach for IE handling, for the reason above.

    case 'selectionchange':
      if (skipSelectionChangeEvent) {
        break;
      }

    // falls through

    case 'keydown':
    case 'keyup':
      constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);
  }
}

function extractEvents$4(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
  var reactName = topLevelEventsToReactNames.get(domEventName);

  if (reactName === undefined) {
    return;
  }

  var SyntheticEventCtor = SyntheticEvent;
  var reactEventType = domEventName;

  switch (domEventName) {
    case 'keypress':
      // Firefox creates a keypress event for function keys too. This removes
      // the unwanted keypress events. Enter is however both printable and
      // non-printable. One would expect Tab to be as well (but it isn't).
      if (getEventCharCode(nativeEvent) === 0) {
        return;
      }

    /* falls through */

    case 'keydown':
    case 'keyup':
      SyntheticEventCtor = SyntheticKeyboardEvent;
      break;

    case 'focusin':
      reactEventType = 'focus';
      SyntheticEventCtor = SyntheticFocusEvent;
      break;

    case 'focusout':
      reactEventType = 'blur';
      SyntheticEventCtor = SyntheticFocusEvent;
      break;

    case 'beforeblur':
    case 'afterblur':
      SyntheticEventCtor = SyntheticFocusEvent;
      break;

    case 'click':
      // Firefox creates a click event on right mouse clicks. This removes the
      // unwanted click events.
      if (nativeEvent.button === 2) {
        return;
      }

    /* falls through */

    case 'auxclick':
    case 'dblclick':
    case 'mousedown':
    case 'mousemove':
    case 'mouseup': // TODO: Disabled elements should not respond to mouse events

    /* falls through */

    case 'mouseout':
    case 'mouseover':
    case 'contextmenu':
      SyntheticEventCtor = SyntheticMouseEvent;
      break;

    case 'drag':
    case 'dragend':
    case 'dragenter':
    case 'dragexit':
    case 'dragleave':
    case 'dragover':
    case 'dragstart':
    case 'drop':
      SyntheticEventCtor = SyntheticDragEvent;
      break;

    case 'touchcancel':
    case 'touchend':
    case 'touchmove':
    case 'touchstart':
      SyntheticEventCtor = SyntheticTouchEvent;
      break;

    case ANIMATION_END:
    case ANIMATION_ITERATION:
    case ANIMATION_START:
      SyntheticEventCtor = SyntheticAnimationEvent;
      break;

    case TRANSITION_END:
      SyntheticEventCtor = SyntheticTransitionEvent;
      break;

    case 'scroll':
      SyntheticEventCtor = SyntheticUIEvent;
      break;

    case 'wheel':
      SyntheticEventCtor = SyntheticWheelEvent;
      break;

    case 'copy':
    case 'cut':
    case 'paste':
      SyntheticEventCtor = SyntheticClipboardEvent;
      break;

    case 'gotpointercapture':
    case 'lostpointercapture':
    case 'pointercancel':
    case 'pointerdown':
    case 'pointermove':
    case 'pointerout':
    case 'pointerover':
    case 'pointerup':
      SyntheticEventCtor = SyntheticPointerEvent;
      break;
  }

  var inCapturePhase = (eventSystemFlags & IS_CAPTURE_PHASE) !== 0;

  {
    // Some events don't bubble in the browser.
    // In the past, React has always bubbled them, but this can be surprising.
    // We're going to try aligning closer to the browser behavior by not bubbling
    // them in React either. We'll start by not bubbling onScroll, and then expand.
    var accumulateTargetOnly = !inCapturePhase && // TODO: ideally, we'd eventually add all events from
    // nonDelegatedEvents list in DOMPluginEventSystem.
    // Then we can remove this special list.
    // This is a breaking change that can wait until React 18.
    domEventName === 'scroll';

    var _listeners = accumulateSinglePhaseListeners(targetInst, reactName, nativeEvent.type, inCapturePhase, accumulateTargetOnly);

    if (_listeners.length > 0) {
      // Intentionally create event lazily.
      var _event = new SyntheticEventCtor(reactName, reactEventType, null, nativeEvent, nativeEventTarget);

      dispatchQueue.push({
        event: _event,
        listeners: _listeners
      });
    }
  }
}

// TODO: remove top-level side effect.
registerSimpleEvents();
registerEvents$2();
registerEvents$1();
registerEvents$3();
registerEvents();

function extractEvents$5(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
  // TODO: we should remove the concept of a "SimpleEventPlugin".
  // This is the basic functionality of the event system. All
  // the other plugins are essentially polyfills. So the plugin
  // should probably be inlined somewhere and have its logic
  // be core the to event system. This would potentially allow
  // us to ship builds of React without the polyfilled plugins below.
  extractEvents$4(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
  var shouldProcessPolyfillPlugins = (eventSystemFlags & SHOULD_NOT_PROCESS_POLYFILL_EVENT_PLUGINS) === 0; // We don't process these events unless we are in the
  // event's native "bubble" phase, which means that we're
  // not in the capture phase. That's because we emulate
  // the capture phase here still. This is a trade-off,
  // because in an ideal world we would not emulate and use
  // the phases properly, like we do with the SimpleEvent
  // plugin. However, the plugins below either expect
  // emulation (EnterLeave) or use state localized to that
  // plugin (BeforeInput, Change, Select). The state in
  // these modules complicates things, as you'll essentially
  // get the case where the capture phase event might change
  // state, only for the following bubble event to come in
  // later and not trigger anything as the state now
  // invalidates the heuristics of the event plugin. We
  // could alter all these plugins to work in such ways, but
  // that might cause other unknown side-effects that we
  // can't forsee right now.

  if (shouldProcessPolyfillPlugins) {
    extractEvents$2(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
    extractEvents$1(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
    extractEvents$3(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
    extractEvents(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
  }
} // List of events that need to be individually attached to media elements.


var mediaEventTypes = ['abort', 'canplay', 'canplaythrough', 'durationchange', 'emptied', 'encrypted', 'ended', 'error', 'loadeddata', 'loadedmetadata', 'loadstart', 'pause', 'play', 'playing', 'progress', 'ratechange', 'seeked', 'seeking', 'stalled', 'suspend', 'timeupdate', 'volumechange', 'waiting']; // We should not delegate these events to the container, but rather
// set them on the actual target element itself. This is primarily
// because these events do not consistently bubble in the DOM.

var nonDelegatedEvents = new Set(['cancel', 'close', 'invalid', 'load', 'scroll', 'toggle'].concat(mediaEventTypes));

function executeDispatch(event, listener, currentTarget) {
  var type = event.type || 'unknown-event';
  event.currentTarget = currentTarget;
  invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);
  event.currentTarget = null;
}

function processDispatchQueueItemsInOrder(event, dispatchListeners, inCapturePhase) {
  var previousInstance;

  if (inCapturePhase) {
    for (var i = dispatchListeners.length - 1; i >= 0; i--) {
      var _dispatchListeners$i = dispatchListeners[i],
          instance = _dispatchListeners$i.instance,
          currentTarget = _dispatchListeners$i.currentTarget,
          listener = _dispatchListeners$i.listener;

      if (instance !== previousInstance && event.isPropagationStopped()) {
        return;
      }

      executeDispatch(event, listener, currentTarget);
      previousInstance = instance;
    }
  } else {
    for (var _i = 0; _i < dispatchListeners.length; _i++) {
      var _dispatchListeners$_i = dispatchListeners[_i],
          _instance = _dispatchListeners$_i.instance,
          _currentTarget = _dispatchListeners$_i.currentTarget,
          _listener = _dispatchListeners$_i.listener;

      if (_instance !== previousInstance && event.isPropagationStopped()) {
        return;
      }

      executeDispatch(event, _listener, _currentTarget);
      previousInstance = _instance;
    }
  }
}

function processDispatchQueue(dispatchQueue, eventSystemFlags) {
  var inCapturePhase = (eventSystemFlags & IS_CAPTURE_PHASE) !== 0;

  for (var i = 0; i < dispatchQueue.length; i++) {
    var _dispatchQueue$i = dispatchQueue[i],
        event = _dispatchQueue$i.event,
        listeners = _dispatchQueue$i.listeners;
    processDispatchQueueItemsInOrder(event, listeners, inCapturePhase); //  event system doesn't use pooling.
  } // This would be a good time to rethrow if any of the event handlers threw.


  rethrowCaughtError();
}

function dispatchEventsForPlugins(domEventName, eventSystemFlags, nativeEvent, targetInst, targetContainer) {
  var nativeEventTarget = getEventTarget(nativeEvent);
  var dispatchQueue = [];
  extractEvents$5(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
  processDispatchQueue(dispatchQueue, eventSystemFlags);
}

function listenToNonDelegatedEvent(domEventName, targetElement) {
  var isCapturePhaseListener = false;
  var listenerSet = getEventListenerSet(targetElement);
  var listenerSetKey = getListenerSetKey(domEventName, isCapturePhaseListener);

  if (!listenerSet.has(listenerSetKey)) {
    addTrappedEventListener(targetElement, domEventName, IS_NON_DELEGATED, isCapturePhaseListener);
    listenerSet.add(listenerSetKey);
  }
}
var listeningMarker = '_reactListening' + Math.random().toString(36).slice(2);
function listenToAllSupportedEvents(rootContainerElement) {
  {
    if (rootContainerElement[listeningMarker]) {
      // Performance optimization: don't iterate through events
      // for the same portal container or root node more than once.
      // TODO: once we remove the flag, we may be able to also
      // remove some of the bookkeeping maps used for laziness.
      return;
    }

    rootContainerElement[listeningMarker] = true;
    allNativeEvents.forEach(function (domEventName) {
      if (!nonDelegatedEvents.has(domEventName)) {
        listenToNativeEvent(domEventName, false, rootContainerElement, null);
      }

      listenToNativeEvent(domEventName, true, rootContainerElement, null);
    });
  }
}
function listenToNativeEvent(domEventName, isCapturePhaseListener, rootContainerElement, targetElement) {
  var eventSystemFlags = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
  var target = rootContainerElement; // selectionchange needs to be attached to the document
  // otherwise it won't capture incoming events that are only
  // triggered on the document directly.

  if (domEventName === 'selectionchange' && rootContainerElement.nodeType !== DOCUMENT_NODE) {
    target = rootContainerElement.ownerDocument;
  } // If the event can be delegated (or is capture phase), we can
  // register it to the root container. Otherwise, we should
  // register the event to the target element and mark it as
  // a non-delegated event.


  if (targetElement !== null && !isCapturePhaseListener && nonDelegatedEvents.has(domEventName)) {
    // For all non-delegated events, apart from scroll, we attach
    // their event listeners to the respective elements that their
    // events fire on. That means we can skip this step, as event
    // listener has already been added previously. However, we
    // special case the scroll event because the reality is that any
    // element can scroll.
    // TODO: ideally, we'd eventually apply the same logic to all
    // events from the nonDelegatedEvents list. Then we can remove
    // this special case and use the same logic for all events.
    if (domEventName !== 'scroll') {
      return;
    }

    eventSystemFlags |= IS_NON_DELEGATED;
    target = targetElement;
  }

  var listenerSet = getEventListenerSet(target);
  var listenerSetKey = getListenerSetKey(domEventName, isCapturePhaseListener); // If the listener entry is empty or we should upgrade, then
  // we need to trap an event listener onto the target.

  if (!listenerSet.has(listenerSetKey)) {
    if (isCapturePhaseListener) {
      eventSystemFlags |= IS_CAPTURE_PHASE;
    }

    addTrappedEventListener(target, domEventName, eventSystemFlags, isCapturePhaseListener);
    listenerSet.add(listenerSetKey);
  }
}

function addTrappedEventListener(targetContainer, domEventName, eventSystemFlags, isCapturePhaseListener, isDeferredListenerForLegacyFBSupport) {
  var listener = createEventListenerWrapperWithPriority(targetContainer, domEventName, eventSystemFlags); // If passive option is not supported, then the event will be
  // active and not passive.

  var isPassiveListener = undefined;

  if (passiveBrowserEventsSupported) {
    // Browsers introduced an intervention, making these events
    // passive by default on document. React doesn't bind them
    // to document anymore, but changing this now would undo
    // the performance wins from the change. So we emulate
    // the existing behavior manually on the roots now.
    // https://github.com/facebook/react/issues/19651
    if (domEventName === 'touchstart' || domEventName === 'touchmove' || domEventName === 'wheel') {
      isPassiveListener = true;
    }
  }

  targetContainer =  targetContainer;
  var unsubscribeListener; // When legacyFBSupport is enabled, it's for when we


  if (isCapturePhaseListener) {
    if (isPassiveListener !== undefined) {
      unsubscribeListener = addEventCaptureListenerWithPassiveFlag(targetContainer, domEventName, listener, isPassiveListener);
    } else {
      unsubscribeListener = addEventCaptureListener(targetContainer, domEventName, listener);
    }
  } else {
    if (isPassiveListener !== undefined) {
      unsubscribeListener = addEventBubbleListenerWithPassiveFlag(targetContainer, domEventName, listener, isPassiveListener);
    } else {
      unsubscribeListener = addEventBubbleListener(targetContainer, domEventName, listener);
    }
  }
}

function isMatchingRootContainer(grandContainer, targetContainer) {
  return grandContainer === targetContainer || grandContainer.nodeType === COMMENT_NODE && grandContainer.parentNode === targetContainer;
}

function dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, targetInst, targetContainer) {
  var ancestorInst = targetInst;

  if ((eventSystemFlags & IS_EVENT_HANDLE_NON_MANAGED_NODE) === 0 && (eventSystemFlags & IS_NON_DELEGATED) === 0) {
    var targetContainerNode = targetContainer; // If we are using the legacy FB support flag, we

    if (targetInst !== null) {
      // The below logic attempts to work out if we need to change
      // the target fiber to a different ancestor. We had similar logic
      // in the legacy event system, except the big difference between
      // systems is that the modern event system now has an event listener
      // attached to each React Root and React Portal Root. Together,
      // the DOM nodes representing these roots are the "rootContainer".
      // To figure out which ancestor instance we should use, we traverse
      // up the fiber tree from the target instance and attempt to find
      // root boundaries that match that of our current "rootContainer".
      // If we find that "rootContainer", we find the parent fiber
      // sub-tree for that root and make that our ancestor instance.
      var node = targetInst;

      mainLoop: while (true) {
        if (node === null) {
          return;
        }

        var nodeTag = node.tag;

        if (nodeTag === HostRoot || nodeTag === HostPortal) {
          var container = node.stateNode.containerInfo;

          if (isMatchingRootContainer(container, targetContainerNode)) {
            break;
          }

          if (nodeTag === HostPortal) {
            // The target is a portal, but it's not the rootContainer we're looking for.
            // Normally portals handle their own events all the way down to the root.
            // So we should be able to stop now. However, we don't know if this portal
            // was part of *our* root.
            var grandNode = node.return;

            while (grandNode !== null) {
              var grandTag = grandNode.tag;

              if (grandTag === HostRoot || grandTag === HostPortal) {
                var grandContainer = grandNode.stateNode.containerInfo;

                if (isMatchingRootContainer(grandContainer, targetContainerNode)) {
                  // This is the rootContainer we're looking for and we found it as
                  // a parent of the Portal. That means we can ignore it because the
                  // Portal will bubble through to us.
                  return;
                }
              }

              grandNode = grandNode.return;
            }
          } // Now we need to find it's corresponding host fiber in the other
          // tree. To do this we can use getClosestInstanceFromNode, but we
          // need to validate that the fiber is a host instance, otherwise
          // we need to traverse up through the DOM till we find the correct
          // node that is from the other tree.


          while (container !== null) {
            var parentNode = getClosestInstanceFromNode(container);

            if (parentNode === null) {
              return;
            }

            var parentTag = parentNode.tag;

            if (parentTag === HostComponent || parentTag === HostText) {
              node = ancestorInst = parentNode;
              continue mainLoop;
            }

            container = container.parentNode;
          }
        }

        node = node.return;
      }
    }
  }

  batchedEventUpdates(function () {
    return dispatchEventsForPlugins(domEventName, eventSystemFlags, nativeEvent, ancestorInst);
  });
}

function createDispatchListener(instance, listener, currentTarget) {
  return {
    instance: instance,
    listener: listener,
    currentTarget: currentTarget
  };
}

function accumulateSinglePhaseListeners(targetFiber, reactName, nativeEventType, inCapturePhase, accumulateTargetOnly) {
  var captureName = reactName !== null ? reactName + 'Capture' : null;
  var reactEventName = inCapturePhase ? captureName : reactName;
  var listeners = [];
  var instance = targetFiber;
  var lastHostComponent = null; // Accumulate all instances and listeners via the target -> root path.

  while (instance !== null) {
    var _instance2 = instance,
        stateNode = _instance2.stateNode,
        tag = _instance2.tag; // Handle listeners that are on HostComponents (i.e. <div>)

    if (tag === HostComponent && stateNode !== null) {
      lastHostComponent = stateNode; // createEventHandle listeners


      if (reactEventName !== null) {
        var listener = getListener(instance, reactEventName);

        if (listener != null) {
          listeners.push(createDispatchListener(instance, listener, lastHostComponent));
        }
      }
    } // If we are only accumulating events for the target, then we don't
    // continue to propagate through the React fiber tree to find other
    // listeners.


    if (accumulateTargetOnly) {
      break;
    }

    instance = instance.return;
  }

  return listeners;
} // We should only use this function for:
// - BeforeInputEventPlugin
// - ChangeEventPlugin
// - SelectEventPlugin
// This is because we only process these plugins
// in the bubble phase, so we need to accumulate two
// phase event listeners (via emulation).

function accumulateTwoPhaseListeners(targetFiber, reactName) {
  var captureName = reactName + 'Capture';
  var listeners = [];
  var instance = targetFiber; // Accumulate all instances and listeners via the target -> root path.

  while (instance !== null) {
    var _instance3 = instance,
        stateNode = _instance3.stateNode,
        tag = _instance3.tag; // Handle listeners that are on HostComponents (i.e. <div>)

    if (tag === HostComponent && stateNode !== null) {
      var currentTarget = stateNode;
      var captureListener = getListener(instance, captureName);

      if (captureListener != null) {
        listeners.unshift(createDispatchListener(instance, captureListener, currentTarget));
      }

      var bubbleListener = getListener(instance, reactName);

      if (bubbleListener != null) {
        listeners.push(createDispatchListener(instance, bubbleListener, currentTarget));
      }
    }

    instance = instance.return;
  }

  return listeners;
}

function getParent(inst) {
  if (inst === null) {
    return null;
  }

  do {
    inst = inst.return; // TODO: If this is a HostRoot we might want to bail out.
    // That is depending on if we want nested subtrees (layers) to bubble
    // events to their parent. We could also go through parentNode on the
    // host node but that wouldn't work for React Native and doesn't let us
    // do the portal feature.
  } while (inst && inst.tag !== HostComponent);

  if (inst) {
    return inst;
  }

  return null;
}
/**
 * Return the lowest common ancestor of A and B, or null if they are in
 * different trees.
 */


function getLowestCommonAncestor(instA, instB) {
  var nodeA = instA;
  var nodeB = instB;
  var depthA = 0;

  for (var tempA = nodeA; tempA; tempA = getParent(tempA)) {
    depthA++;
  }

  var depthB = 0;

  for (var tempB = nodeB; tempB; tempB = getParent(tempB)) {
    depthB++;
  } // If A is deeper, crawl up.


  while (depthA - depthB > 0) {
    nodeA = getParent(nodeA);
    depthA--;
  } // If B is deeper, crawl up.


  while (depthB - depthA > 0) {
    nodeB = getParent(nodeB);
    depthB--;
  } // Walk in lockstep until we find a match.


  var depth = depthA;

  while (depth--) {
    if (nodeA === nodeB || nodeB !== null && nodeA === nodeB.alternate) {
      return nodeA;
    }

    nodeA = getParent(nodeA);
    nodeB = getParent(nodeB);
  }

  return null;
}

function accumulateEnterLeaveListenersForEvent(dispatchQueue, event, target, common, inCapturePhase) {
  var registrationName = event._reactName;
  var listeners = [];
  var instance = target;

  while (instance !== null) {
    if (instance === common) {
      break;
    }

    var _instance4 = instance,
        alternate = _instance4.alternate,
        stateNode = _instance4.stateNode,
        tag = _instance4.tag;

    if (alternate !== null && alternate === common) {
      break;
    }

    if (tag === HostComponent && stateNode !== null) {
      var currentTarget = stateNode;

      if (inCapturePhase) {
        var captureListener = getListener(instance, registrationName);

        if (captureListener != null) {
          listeners.unshift(createDispatchListener(instance, captureListener, currentTarget));
        }
      } else if (!inCapturePhase) {
        var bubbleListener = getListener(instance, registrationName);

        if (bubbleListener != null) {
          listeners.push(createDispatchListener(instance, bubbleListener, currentTarget));
        }
      }
    }

    instance = instance.return;
  }

  if (listeners.length !== 0) {
    dispatchQueue.push({
      event: event,
      listeners: listeners
    });
  }
} // We should only use this function for:
// - EnterLeaveEventPlugin
// This is because we only process this plugin
// in the bubble phase, so we need to accumulate two
// phase event listeners.


function accumulateEnterLeaveTwoPhaseListeners(dispatchQueue, leaveEvent, enterEvent, from, to) {
  var common = from && to ? getLowestCommonAncestor(from, to) : null;

  if (from !== null) {
    accumulateEnterLeaveListenersForEvent(dispatchQueue, leaveEvent, from, common, false);
  }

  if (to !== null && enterEvent !== null) {
    accumulateEnterLeaveListenersForEvent(dispatchQueue, enterEvent, to, common, true);
  }
}
function getListenerSetKey(domEventName, capture) {
  return domEventName + "__" + (capture ? 'capture' : 'bubble');
}

var didWarnInvalidHydration = false;
var DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML';
var SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning';
var SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning';
var AUTOFOCUS = 'autoFocus';
var CHILDREN = 'children';
var STYLE = 'style';
var HTML$1 = '__html';
var HTML_NAMESPACE$1 = Namespaces.html;
var warnedUnknownTags;
var suppressHydrationWarning;
var validatePropertiesInDevelopment;
var warnForTextDifference;
var warnForPropDifference;
var warnForExtraAttributes;
var warnForInvalidEventListener;
var canDiffStyleForHydrationWarning;
var normalizeMarkupForTextOrAttribute;
var normalizeHTML;

{
  warnedUnknownTags = {
    // There are working polyfills for <dialog>. Let people use it.
    dialog: true,
    // Electron ships a custom <webview> tag to display external web content in
    // an isolated frame and process.
    // This tag is not present in non Electron environments such as JSDom which
    // is often used for testing purposes.
    // @see https://electronjs.org/docs/api/webview-tag
    webview: true
  };

  validatePropertiesInDevelopment = function (type, props) {
    validateProperties(type, props);
    validateProperties$1(type, props);
    validateProperties$2(type, props, {
      registrationNameDependencies: registrationNameDependencies,
      possibleRegistrationNames: possibleRegistrationNames
    });
  }; // IE 11 parses & normalizes the style attribute as opposed to other
  // browsers. It adds spaces and sorts the properties in some
  // non-alphabetical order. Handling that would require sorting CSS
  // properties in the client & server versions or applying
  // `expectedStyle` to a temporary DOM node to read its `style` attribute
  // normalized. Since it only affects IE, we're skipping style warnings
  // in that browser completely in favor of doing all that work.
  // See https://github.com/facebook/react/issues/11807


  canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode; // HTML parsing normalizes CR and CRLF to LF.
  // It also can turn \u0000 into \uFFFD inside attributes.
  // https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream
  // If we have a mismatch, it might be caused by that.
  // We will still patch up in this case but not fire the warning.

  var NORMALIZE_NEWLINES_REGEX = /\r\n?/g;
  var NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g;

  normalizeMarkupForTextOrAttribute = function (markup) {
    var markupString = typeof markup === 'string' ? markup : '' + markup;
    return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, '');
  };

  warnForTextDifference = function (serverText, clientText) {
    if (didWarnInvalidHydration) {
      return;
    }

    var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText);
    var normalizedServerText = normalizeMarkupForTextOrAttribute(serverText);

    if (normalizedServerText === normalizedClientText) {
      return;
    }

    didWarnInvalidHydration = true;

    error('Text content did not match. Server: "%s" Client: "%s"', normalizedServerText, normalizedClientText);
  };

  warnForPropDifference = function (propName, serverValue, clientValue) {
    if (didWarnInvalidHydration) {
      return;
    }

    var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue);
    var normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue);

    if (normalizedServerValue === normalizedClientValue) {
      return;
    }

    didWarnInvalidHydration = true;

    error('Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue));
  };

  warnForExtraAttributes = function (attributeNames) {
    if (didWarnInvalidHydration) {
      return;
    }

    didWarnInvalidHydration = true;
    var names = [];
    attributeNames.forEach(function (name) {
      names.push(name);
    });

    error('Extra attributes from the server: %s', names);
  };

  warnForInvalidEventListener = function (registrationName, listener) {
    if (listener === false) {
      error('Expected `%s` listener to be a function, instead got `false`.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', registrationName, registrationName, registrationName);
    } else {
      error('Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);
    }
  }; // Parse the HTML and read it back to normalize the HTML string so that it
  // can be used for comparison.


  normalizeHTML = function (parent, html) {
    // We could have created a separate document here to avoid
    // re-initializing custom elements if they exist. But this breaks
    // how <noscript> is being handled. So we use the same document.
    // See the discussion in https://github.com/facebook/react/pull/11157.
    var testElement = parent.namespaceURI === HTML_NAMESPACE$1 ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName);
    testElement.innerHTML = html;
    return testElement.innerHTML;
  };
}

function getOwnerDocumentFromRootContainer(rootContainerElement) {
  return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;
}

function noop() {}

function trapClickOnNonInteractiveElement(node) {
  // Mobile Safari does not fire properly bubble click events on
  // non-interactive elements, which means delegated click listeners do not
  // fire. The workaround for this bug involves attaching an empty click
  // listener on the target node.
  // https://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  // Just set it using the onclick property so that we don't have to manage any
  // bookkeeping for it. Not sure if we need to clear it when the listener is
  // removed.
  // TODO: Only do this for the relevant Safaris maybe?
  node.onclick = noop;
}

function setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) {
  for (var propKey in nextProps) {
    if (!nextProps.hasOwnProperty(propKey)) {
      continue;
    }

    var nextProp = nextProps[propKey];

    if (propKey === STYLE) {
      {
        if (nextProp) {
          // Freeze the next style object so that we can assume it won't be
          // mutated. We have already warned for this in the past.
          Object.freeze(nextProp);
        }
      } // Relies on `updateStylesByID` not mutating `styleUpdates`.


      setValueForStyles(domElement, nextProp);
    } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
      var nextHtml = nextProp ? nextProp[HTML$1] : undefined;

      if (nextHtml != null) {
        setInnerHTML(domElement, nextHtml);
      }
    } else if (propKey === CHILDREN) {
      if (typeof nextProp === 'string') {
        // Avoid setting initial textContent when the text is empty. In IE11 setting
        // textContent on a <textarea> will cause the placeholder to not
        // show within the <textarea> until it has been focused and blurred again.
        // https://github.com/facebook/react/issues/6731#issuecomment-254874553
        var canSetTextContent = tag !== 'textarea' || nextProp !== '';

        if (canSetTextContent) {
          setTextContent(domElement, nextProp);
        }
      } else if (typeof nextProp === 'number') {
        setTextContent(domElement, '' + nextProp);
      }
    } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (propKey === AUTOFOCUS) ; else if (registrationNameDependencies.hasOwnProperty(propKey)) {
      if (nextProp != null) {
        if ( typeof nextProp !== 'function') {
          warnForInvalidEventListener(propKey, nextProp);
        }

        if (propKey === 'onScroll') {
          listenToNonDelegatedEvent('scroll', domElement);
        }
      }
    } else if (nextProp != null) {
      setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag);
    }
  }
}

function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {
  // TODO: Handle wasCustomComponentTag
  for (var i = 0; i < updatePayload.length; i += 2) {
    var propKey = updatePayload[i];
    var propValue = updatePayload[i + 1];

    if (propKey === STYLE) {
      setValueForStyles(domElement, propValue);
    } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
      setInnerHTML(domElement, propValue);
    } else if (propKey === CHILDREN) {
      setTextContent(domElement, propValue);
    } else {
      setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);
    }
  }
}

function createElement(type, props, rootContainerElement, parentNamespace) {
  var isCustomComponentTag; // We create tags in the namespace of their parent container, except HTML
  // tags get no namespace.

  var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement);
  var domElement;
  var namespaceURI = parentNamespace;

  if (namespaceURI === HTML_NAMESPACE$1) {
    namespaceURI = getIntrinsicNamespace(type);
  }

  if (namespaceURI === HTML_NAMESPACE$1) {
    {
      isCustomComponentTag = isCustomComponent(type, props); // Should this check be gated by parent namespace? Not sure we want to
      // allow <SVG> or <mATH>.

      if (!isCustomComponentTag && type !== type.toLowerCase()) {
        error('<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type);
      }
    }

    if (type === 'script') {
      // Create the script via .innerHTML so its "parser-inserted" flag is
      // set to true and it does not execute
      var div = ownerDocument.createElement('div');

      div.innerHTML = '<script><' + '/script>'; // eslint-disable-line
      // This is guaranteed to yield a script element.

      var firstChild = div.firstChild;
      domElement = div.removeChild(firstChild);
    } else if (typeof props.is === 'string') {
      // $FlowIssue `createElement` should be updated for Web Components
      domElement = ownerDocument.createElement(type, {
        is: props.is
      });
    } else {
      // Separate else branch instead of using `props.is || undefined` above because of a Firefox bug.
      // See discussion in https://github.com/facebook/react/pull/6896
      // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
      domElement = ownerDocument.createElement(type); // Normally attributes are assigned in `setInitialDOMProperties`, however the `multiple` and `size`
      // attributes on `select`s needs to be added before `option`s are inserted.
      // This prevents:
      // - a bug where the `select` does not scroll to the correct option because singular
      //  `select` elements automatically pick the first item #13222
      // - a bug where the `select` set the first item as selected despite the `size` attribute #14239
      // See https://github.com/facebook/react/issues/13222
      // and https://github.com/facebook/react/issues/14239

      if (type === 'select') {
        var node = domElement;

        if (props.multiple) {
          node.multiple = true;
        } else if (props.size) {
          // Setting a size greater than 1 causes a select to behave like `multiple=true`, where
          // it is possible that no option is selected.
          //
          // This is only necessary when a select in "single selection mode".
          node.size = props.size;
        }
      }
    }
  } else {
    domElement = ownerDocument.createElementNS(namespaceURI, type);
  }

  {
    if (namespaceURI === HTML_NAMESPACE$1) {
      if (!isCustomComponentTag && Object.prototype.toString.call(domElement) === '[object HTMLUnknownElement]' && !Object.prototype.hasOwnProperty.call(warnedUnknownTags, type)) {
        warnedUnknownTags[type] = true;

        error('The tag <%s> is unrecognized in this browser. ' + 'If you meant to render a React component, start its name with ' + 'an uppercase letter.', type);
      }
    }
  }

  return domElement;
}
function createTextNode(text, rootContainerElement) {
  return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text);
}
function setInitialProperties(domElement, tag, rawProps, rootContainerElement) {
  var isCustomComponentTag = isCustomComponent(tag, rawProps);

  {
    validatePropertiesInDevelopment(tag, rawProps);
  } // TODO: Make sure that we check isMounted before firing any of these events.


  var props;

  switch (tag) {
    case 'dialog':
      listenToNonDelegatedEvent('cancel', domElement);
      listenToNonDelegatedEvent('close', domElement);
      props = rawProps;
      break;

    case 'iframe':
    case 'object':
    case 'embed':
      // We listen to this event in case to ensure emulated bubble
      // listeners still fire for the load event.
      listenToNonDelegatedEvent('load', domElement);
      props = rawProps;
      break;

    case 'video':
    case 'audio':
      // We listen to these events in case to ensure emulated bubble
      // listeners still fire for all the media events.
      for (var i = 0; i < mediaEventTypes.length; i++) {
        listenToNonDelegatedEvent(mediaEventTypes[i], domElement);
      }

      props = rawProps;
      break;

    case 'source':
      // We listen to this event in case to ensure emulated bubble
      // listeners still fire for the error event.
      listenToNonDelegatedEvent('error', domElement);
      props = rawProps;
      break;

    case 'img':
    case 'image':
    case 'link':
      // We listen to these events in case to ensure emulated bubble
      // listeners still fire for error and load events.
      listenToNonDelegatedEvent('error', domElement);
      listenToNonDelegatedEvent('load', domElement);
      props = rawProps;
      break;

    case 'details':
      // We listen to this event in case to ensure emulated bubble
      // listeners still fire for the toggle event.
      listenToNonDelegatedEvent('toggle', domElement);
      props = rawProps;
      break;

    case 'input':
      initWrapperState(domElement, rawProps);
      props = getHostProps(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
      // listeners still fire for the invalid event.

      listenToNonDelegatedEvent('invalid', domElement);

      break;

    case 'option':
      validateProps(domElement, rawProps);
      props = getHostProps$1(domElement, rawProps);
      break;

    case 'select':
      initWrapperState$1(domElement, rawProps);
      props = getHostProps$2(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
      // listeners still fire for the invalid event.

      listenToNonDelegatedEvent('invalid', domElement);

      break;

    case 'textarea':
      initWrapperState$2(domElement, rawProps);
      props = getHostProps$3(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
      // listeners still fire for the invalid event.

      listenToNonDelegatedEvent('invalid', domElement);

      break;

    default:
      props = rawProps;
  }

  assertValidProps(tag, props);
  setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag);

  switch (tag) {
    case 'input':
      // TODO: Make sure we check if this is still unmounted or do any clean
      // up necessary since we never stop tracking anymore.
      track(domElement);
      postMountWrapper(domElement, rawProps, false);
      break;

    case 'textarea':
      // TODO: Make sure we check if this is still unmounted or do any clean
      // up necessary since we never stop tracking anymore.
      track(domElement);
      postMountWrapper$3(domElement);
      break;

    case 'option':
      postMountWrapper$1(domElement, rawProps);
      break;

    case 'select':
      postMountWrapper$2(domElement, rawProps);
      break;

    default:
      if (typeof props.onClick === 'function') {
        // TODO: This cast may not be sound for SVG, MathML or custom elements.
        trapClickOnNonInteractiveElement(domElement);
      }

      break;
  }
} // Calculate the diff between the two objects.

function diffProperties(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) {
  {
    validatePropertiesInDevelopment(tag, nextRawProps);
  }

  var updatePayload = null;
  var lastProps;
  var nextProps;

  switch (tag) {
    case 'input':
      lastProps = getHostProps(domElement, lastRawProps);
      nextProps = getHostProps(domElement, nextRawProps);
      updatePayload = [];
      break;

    case 'option':
      lastProps = getHostProps$1(domElement, lastRawProps);
      nextProps = getHostProps$1(domElement, nextRawProps);
      updatePayload = [];
      break;

    case 'select':
      lastProps = getHostProps$2(domElement, lastRawProps);
      nextProps = getHostProps$2(domElement, nextRawProps);
      updatePayload = [];
      break;

    case 'textarea':
      lastProps = getHostProps$3(domElement, lastRawProps);
      nextProps = getHostProps$3(domElement, nextRawProps);
      updatePayload = [];
      break;

    default:
      lastProps = lastRawProps;
      nextProps = nextRawProps;

      if (typeof lastProps.onClick !== 'function' && typeof nextProps.onClick === 'function') {
        // TODO: This cast may not be sound for SVG, MathML or custom elements.
        trapClickOnNonInteractiveElement(domElement);
      }

      break;
  }

  assertValidProps(tag, nextProps);
  var propKey;
  var styleName;
  var styleUpdates = null;

  for (propKey in lastProps) {
    if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {
      continue;
    }

    if (propKey === STYLE) {
      var lastStyle = lastProps[propKey];

      for (styleName in lastStyle) {
        if (lastStyle.hasOwnProperty(styleName)) {
          if (!styleUpdates) {
            styleUpdates = {};
          }

          styleUpdates[styleName] = '';
        }
      }
    } else if (propKey === DANGEROUSLY_SET_INNER_HTML || propKey === CHILDREN) ; else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (propKey === AUTOFOCUS) ; else if (registrationNameDependencies.hasOwnProperty(propKey)) {
      // This is a special case. If any listener updates we need to ensure
      // that the "current" fiber pointer gets updated so we need a commit
      // to update this element.
      if (!updatePayload) {
        updatePayload = [];
      }
    } else {
      // For all other deleted properties we add it to the queue. We use
      // the allowed property list in the commit phase instead.
      (updatePayload = updatePayload || []).push(propKey, null);
    }
  }

  for (propKey in nextProps) {
    var nextProp = nextProps[propKey];
    var lastProp = lastProps != null ? lastProps[propKey] : undefined;

    if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {
      continue;
    }

    if (propKey === STYLE) {
      {
        if (nextProp) {
          // Freeze the next style object so that we can assume it won't be
          // mutated. We have already warned for this in the past.
          Object.freeze(nextProp);
        }
      }

      if (lastProp) {
        // Unset styles on `lastProp` but not on `nextProp`.
        for (styleName in lastProp) {
          if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {
            if (!styleUpdates) {
              styleUpdates = {};
            }

            styleUpdates[styleName] = '';
          }
        } // Update styles that changed since `lastProp`.


        for (styleName in nextProp) {
          if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {
            if (!styleUpdates) {
              styleUpdates = {};
            }

            styleUpdates[styleName] = nextProp[styleName];
          }
        }
      } else {
        // Relies on `updateStylesByID` not mutating `styleUpdates`.
        if (!styleUpdates) {
          if (!updatePayload) {
            updatePayload = [];
          }

          updatePayload.push(propKey, styleUpdates);
        }

        styleUpdates = nextProp;
      }
    } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
      var nextHtml = nextProp ? nextProp[HTML$1] : undefined;
      var lastHtml = lastProp ? lastProp[HTML$1] : undefined;

      if (nextHtml != null) {
        if (lastHtml !== nextHtml) {
          (updatePayload = updatePayload || []).push(propKey, nextHtml);
        }
      }
    } else if (propKey === CHILDREN) {
      if (typeof nextProp === 'string' || typeof nextProp === 'number') {
        (updatePayload = updatePayload || []).push(propKey, '' + nextProp);
      }
    } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (registrationNameDependencies.hasOwnProperty(propKey)) {
      if (nextProp != null) {
        // We eagerly listen to this even though we haven't committed yet.
        if ( typeof nextProp !== 'function') {
          warnForInvalidEventListener(propKey, nextProp);
        }

        if (propKey === 'onScroll') {
          listenToNonDelegatedEvent('scroll', domElement);
        }
      }

      if (!updatePayload && lastProp !== nextProp) {
        // This is a special case. If any listener updates we need to ensure
        // that the "current" props pointer gets updated so we need a commit
        // to update this element.
        updatePayload = [];
      }
    } else if (typeof nextProp === 'object' && nextProp !== null && nextProp.$$typeof === REACT_OPAQUE_ID_TYPE) {
      // If we encounter useOpaqueReference's opaque object, this means we are hydrating.
      // In this case, call the opaque object's toString function which generates a new client
      // ID so client and server IDs match and throws to rerender.
      nextProp.toString();
    } else {
      // For any other property we always add it to the queue and then we
      // filter it out using the allowed property list during the commit.
      (updatePayload = updatePayload || []).push(propKey, nextProp);
    }
  }

  if (styleUpdates) {
    {
      validateShorthandPropertyCollisionInDev(styleUpdates, nextProps[STYLE]);
    }

    (updatePayload = updatePayload || []).push(STYLE, styleUpdates);
  }

  return updatePayload;
} // Apply the diff.

function updateProperties(domElement, updatePayload, tag, lastRawProps, nextRawProps) {
  // Update checked *before* name.
  // In the middle of an update, it is possible to have multiple checked.
  // When a checked radio tries to change name, browser makes another radio's checked false.
  if (tag === 'input' && nextRawProps.type === 'radio' && nextRawProps.name != null) {
    updateChecked(domElement, nextRawProps);
  }

  var wasCustomComponentTag = isCustomComponent(tag, lastRawProps);
  var isCustomComponentTag = isCustomComponent(tag, nextRawProps); // Apply the diff.

  updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag); // TODO: Ensure that an update gets scheduled if any of the special props
  // changed.

  switch (tag) {
    case 'input':
      // Update the wrapper around inputs *after* updating props. This has to
      // happen after `updateDOMProperties`. Otherwise HTML5 input validations
      // raise warnings and prevent the new value from being assigned.
      updateWrapper(domElement, nextRawProps);
      break;

    case 'textarea':
      updateWrapper$1(domElement, nextRawProps);
      break;

    case 'select':
      // <select> value update needs to occur after <option> children
      // reconciliation
      postUpdateWrapper(domElement, nextRawProps);
      break;
  }
}

function getPossibleStandardName(propName) {
  {
    var lowerCasedName = propName.toLowerCase();

    if (!possibleStandardNames.hasOwnProperty(lowerCasedName)) {
      return null;
    }

    return possibleStandardNames[lowerCasedName] || null;
  }
}

function diffHydratedProperties(domElement, tag, rawProps, parentNamespace, rootContainerElement) {
  var isCustomComponentTag;
  var extraAttributeNames;

  {
    suppressHydrationWarning = rawProps[SUPPRESS_HYDRATION_WARNING] === true;
    isCustomComponentTag = isCustomComponent(tag, rawProps);
    validatePropertiesInDevelopment(tag, rawProps);
  } // TODO: Make sure that we check isMounted before firing any of these events.


  switch (tag) {
    case 'dialog':
      listenToNonDelegatedEvent('cancel', domElement);
      listenToNonDelegatedEvent('close', domElement);
      break;

    case 'iframe':
    case 'object':
    case 'embed':
      // We listen to this event in case to ensure emulated bubble
      // listeners still fire for the load event.
      listenToNonDelegatedEvent('load', domElement);
      break;

    case 'video':
    case 'audio':
      // We listen to these events in case to ensure emulated bubble
      // listeners still fire for all the media events.
      for (var i = 0; i < mediaEventTypes.length; i++) {
        listenToNonDelegatedEvent(mediaEventTypes[i], domElement);
      }

      break;

    case 'source':
      // We listen to this event in case to ensure emulated bubble
      // listeners still fire for the error event.
      listenToNonDelegatedEvent('error', domElement);
      break;

    case 'img':
    case 'image':
    case 'link':
      // We listen to these events in case to ensure emulated bubble
      // listeners still fire for error and load events.
      listenToNonDelegatedEvent('error', domElement);
      listenToNonDelegatedEvent('load', domElement);
      break;

    case 'details':
      // We listen to this event in case to ensure emulated bubble
      // listeners still fire for the toggle event.
      listenToNonDelegatedEvent('toggle', domElement);
      break;

    case 'input':
      initWrapperState(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
      // listeners still fire for the invalid event.

      listenToNonDelegatedEvent('invalid', domElement);

      break;

    case 'option':
      validateProps(domElement, rawProps);
      break;

    case 'select':
      initWrapperState$1(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
      // listeners still fire for the invalid event.

      listenToNonDelegatedEvent('invalid', domElement);

      break;

    case 'textarea':
      initWrapperState$2(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
      // listeners still fire for the invalid event.

      listenToNonDelegatedEvent('invalid', domElement);

      break;
  }

  assertValidProps(tag, rawProps);

  {
    extraAttributeNames = new Set();
    var attributes = domElement.attributes;

    for (var _i = 0; _i < attributes.length; _i++) {
      var name = attributes[_i].name.toLowerCase();

      switch (name) {
        // Built-in SSR attribute is allowed
        case 'data-reactroot':
          break;
        // Controlled attributes are not validated
        // TODO: Only ignore them on controlled tags.

        case 'value':
          break;

        case 'checked':
          break;

        case 'selected':
          break;

        default:
          // Intentionally use the original name.
          // See discussion in https://github.com/facebook/react/pull/10676.
          extraAttributeNames.add(attributes[_i].name);
      }
    }
  }

  var updatePayload = null;

  for (var propKey in rawProps) {
    if (!rawProps.hasOwnProperty(propKey)) {
      continue;
    }

    var nextProp = rawProps[propKey];

    if (propKey === CHILDREN) {
      // For text content children we compare against textContent. This
      // might match additional HTML that is hidden when we read it using
      // textContent. E.g. "foo" will match "f<span>oo</span>" but that still
      // satisfies our requirement. Our requirement is not to produce perfect
      // HTML and attributes. Ideally we should preserve structure but it's
      // ok not to if the visible content is still enough to indicate what
      // even listeners these nodes might be wired up to.
      // TODO: Warn if there is more than a single textNode as a child.
      // TODO: Should we use domElement.firstChild.nodeValue to compare?
      if (typeof nextProp === 'string') {
        if (domElement.textContent !== nextProp) {
          if ( !suppressHydrationWarning) {
            warnForTextDifference(domElement.textContent, nextProp);
          }

          updatePayload = [CHILDREN, nextProp];
        }
      } else if (typeof nextProp === 'number') {
        if (domElement.textContent !== '' + nextProp) {
          if ( !suppressHydrationWarning) {
            warnForTextDifference(domElement.textContent, nextProp);
          }

          updatePayload = [CHILDREN, '' + nextProp];
        }
      }
    } else if (registrationNameDependencies.hasOwnProperty(propKey)) {
      if (nextProp != null) {
        if ( typeof nextProp !== 'function') {
          warnForInvalidEventListener(propKey, nextProp);
        }

        if (propKey === 'onScroll') {
          listenToNonDelegatedEvent('scroll', domElement);
        }
      }
    } else if ( // Convince Flow we've calculated it (it's DEV-only in this method.)
    typeof isCustomComponentTag === 'boolean') {
      // Validate that the properties correspond to their expected values.
      var serverValue = void 0;
      var propertyInfo = getPropertyInfo(propKey);

      if (suppressHydrationWarning) ; else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING || // Controlled attributes are not validated
      // TODO: Only ignore them on controlled tags.
      propKey === 'value' || propKey === 'checked' || propKey === 'selected') ; else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
        var serverHTML = domElement.innerHTML;
        var nextHtml = nextProp ? nextProp[HTML$1] : undefined;

        if (nextHtml != null) {
          var expectedHTML = normalizeHTML(domElement, nextHtml);

          if (expectedHTML !== serverHTML) {
            warnForPropDifference(propKey, serverHTML, expectedHTML);
          }
        }
      } else if (propKey === STYLE) {
        // $FlowFixMe - Should be inferred as not undefined.
        extraAttributeNames.delete(propKey);

        if (canDiffStyleForHydrationWarning) {
          var expectedStyle = createDangerousStringForStyles(nextProp);
          serverValue = domElement.getAttribute('style');

          if (expectedStyle !== serverValue) {
            warnForPropDifference(propKey, serverValue, expectedStyle);
          }
        }
      } else if (isCustomComponentTag) {
        // $FlowFixMe - Should be inferred as not undefined.
        extraAttributeNames.delete(propKey.toLowerCase());
        serverValue = getValueForAttribute(domElement, propKey, nextProp);

        if (nextProp !== serverValue) {
          warnForPropDifference(propKey, serverValue, nextProp);
        }
      } else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) {
        var isMismatchDueToBadCasing = false;

        if (propertyInfo !== null) {
          // $FlowFixMe - Should be inferred as not undefined.
          extraAttributeNames.delete(propertyInfo.attributeName);
          serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo);
        } else {
          var ownNamespace = parentNamespace;

          if (ownNamespace === HTML_NAMESPACE$1) {
            ownNamespace = getIntrinsicNamespace(tag);
          }

          if (ownNamespace === HTML_NAMESPACE$1) {
            // $FlowFixMe - Should be inferred as not undefined.
            extraAttributeNames.delete(propKey.toLowerCase());
          } else {
            var standardName = getPossibleStandardName(propKey);

            if (standardName !== null && standardName !== propKey) {
              // If an SVG prop is supplied with bad casing, it will
              // be successfully parsed from HTML, but will produce a mismatch
              // (and would be incorrectly rendered on the client).
              // However, we already warn about bad casing elsewhere.
              // So we'll skip the misleading extra mismatch warning in this case.
              isMismatchDueToBadCasing = true; // $FlowFixMe - Should be inferred as not undefined.

              extraAttributeNames.delete(standardName);
            } // $FlowFixMe - Should be inferred as not undefined.


            extraAttributeNames.delete(propKey);
          }

          serverValue = getValueForAttribute(domElement, propKey, nextProp);
        }

        if (nextProp !== serverValue && !isMismatchDueToBadCasing) {
          warnForPropDifference(propKey, serverValue, nextProp);
        }
      }
    }
  }

  {
    // $FlowFixMe - Should be inferred as not undefined.
    if (extraAttributeNames.size > 0 && !suppressHydrationWarning) {
      // $FlowFixMe - Should be inferred as not undefined.
      warnForExtraAttributes(extraAttributeNames);
    }
  }

  switch (tag) {
    case 'input':
      // TODO: Make sure we check if this is still unmounted or do any clean
      // up necessary since we never stop tracking anymore.
      track(domElement);
      postMountWrapper(domElement, rawProps, true);
      break;

    case 'textarea':
      // TODO: Make sure we check if this is still unmounted or do any clean
      // up necessary since we never stop tracking anymore.
      track(domElement);
      postMountWrapper$3(domElement);
      break;

    case 'select':
    case 'option':
      // For input and textarea we current always set the value property at
      // post mount to force it to diverge from attributes. However, for
      // option and select we don't quite do the same thing and select
      // is not resilient to the DOM state changing so we don't do that here.
      // TODO: Consider not doing this for input and textarea.
      break;

    default:
      if (typeof rawProps.onClick === 'function') {
        // TODO: This cast may not be sound for SVG, MathML or custom elements.
        trapClickOnNonInteractiveElement(domElement);
      }

      break;
  }

  return updatePayload;
}
function diffHydratedText(textNode, text) {
  var isDifferent = textNode.nodeValue !== text;
  return isDifferent;
}
function warnForUnmatchedText(textNode, text) {
  {
    warnForTextDifference(textNode.nodeValue, text);
  }
}
function warnForDeletedHydratableElement(parentNode, child) {
  {
    if (didWarnInvalidHydration) {
      return;
    }

    didWarnInvalidHydration = true;

    error('Did not expect server HTML to contain a <%s> in <%s>.', child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase());
  }
}
function warnForDeletedHydratableText(parentNode, child) {
  {
    if (didWarnInvalidHydration) {
      return;
    }

    didWarnInvalidHydration = true;

    error('Did not expect server HTML to contain the text node "%s" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase());
  }
}
function warnForInsertedHydratedElement(parentNode, tag, props) {
  {
    if (didWarnInvalidHydration) {
      return;
    }

    didWarnInvalidHydration = true;

    error('Expected server HTML to contain a matching <%s> in <%s>.', tag, parentNode.nodeName.toLowerCase());
  }
}
function warnForInsertedHydratedText(parentNode, text) {
  {
    if (text === '') {
      // We expect to insert empty text nodes since they're not represented in
      // the HTML.
      // TODO: Remove this special case if we can just avoid inserting empty
      // text nodes.
      return;
    }

    if (didWarnInvalidHydration) {
      return;
    }

    didWarnInvalidHydration = true;

    error('Expected server HTML to contain a matching text node for "%s" in <%s>.', text, parentNode.nodeName.toLowerCase());
  }
}
function restoreControlledState$3(domElement, tag, props) {
  switch (tag) {
    case 'input':
      restoreControlledState(domElement, props);
      return;

    case 'textarea':
      restoreControlledState$2(domElement, props);
      return;

    case 'select':
      restoreControlledState$1(domElement, props);
      return;
  }
}

var validateDOMNesting = function () {};

var updatedAncestorInfo = function () {};

{
  // This validation code was written based on the HTML5 parsing spec:
  // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  //
  // Note: this does not catch all invalid nesting, nor does it try to (as it's
  // not clear what practical benefit doing so provides); instead, we warn only
  // for cases where the parser will give a parse tree differing from what React
  // intended. For example, <b><div></div></b> is invalid but we don't warn
  // because it still parses correctly; we do warn for other cases like nested
  // <p> tags where the beginning of the second element implicitly closes the
  // first, causing a confusing mess.
  // https://html.spec.whatwg.org/multipage/syntax.html#special
  var specialTags = ['address', 'applet', 'area', 'article', 'aside', 'base', 'basefont', 'bgsound', 'blockquote', 'body', 'br', 'button', 'caption', 'center', 'col', 'colgroup', 'dd', 'details', 'dir', 'div', 'dl', 'dt', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'iframe', 'img', 'input', 'isindex', 'li', 'link', 'listing', 'main', 'marquee', 'menu', 'menuitem', 'meta', 'nav', 'noembed', 'noframes', 'noscript', 'object', 'ol', 'p', 'param', 'plaintext', 'pre', 'script', 'section', 'select', 'source', 'style', 'summary', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'title', 'tr', 'track', 'ul', 'wbr', 'xmp']; // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope

  var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template', // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point
  // TODO: Distinguish by namespace here -- for <title>, including it here
  // errs on the side of fewer warnings
  'foreignObject', 'desc', 'title']; // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope

  var buttonScopeTags = inScopeTags.concat(['button']); // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags

  var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];
  var emptyAncestorInfo = {
    current: null,
    formTag: null,
    aTagInScope: null,
    buttonTagInScope: null,
    nobrTagInScope: null,
    pTagInButtonScope: null,
    listItemTagAutoclosing: null,
    dlItemTagAutoclosing: null
  };

  updatedAncestorInfo = function (oldInfo, tag) {
    var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo);

    var info = {
      tag: tag
    };

    if (inScopeTags.indexOf(tag) !== -1) {
      ancestorInfo.aTagInScope = null;
      ancestorInfo.buttonTagInScope = null;
      ancestorInfo.nobrTagInScope = null;
    }

    if (buttonScopeTags.indexOf(tag) !== -1) {
      ancestorInfo.pTagInButtonScope = null;
    } // See rules for 'li', 'dd', 'dt' start tags in
    // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody


    if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {
      ancestorInfo.listItemTagAutoclosing = null;
      ancestorInfo.dlItemTagAutoclosing = null;
    }

    ancestorInfo.current = info;

    if (tag === 'form') {
      ancestorInfo.formTag = info;
    }

    if (tag === 'a') {
      ancestorInfo.aTagInScope = info;
    }

    if (tag === 'button') {
      ancestorInfo.buttonTagInScope = info;
    }

    if (tag === 'nobr') {
      ancestorInfo.nobrTagInScope = info;
    }

    if (tag === 'p') {
      ancestorInfo.pTagInButtonScope = info;
    }

    if (tag === 'li') {
      ancestorInfo.listItemTagAutoclosing = info;
    }

    if (tag === 'dd' || tag === 'dt') {
      ancestorInfo.dlItemTagAutoclosing = info;
    }

    return ancestorInfo;
  };
  /**
   * Returns whether
   */


  var isTagValidWithParent = function (tag, parentTag) {
    // First, let's check if we're in an unusual parsing mode...
    switch (parentTag) {
      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect
      case 'select':
        return tag === 'option' || tag === 'optgroup' || tag === '#text';

      case 'optgroup':
        return tag === 'option' || tag === '#text';
      // Strictly speaking, seeing an <option> doesn't mean we're in a <select>
      // but

      case 'option':
        return tag === '#text';
      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd
      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption
      // No special behavior since these rules fall back to "in body" mode for
      // all except special table nodes which cause bad parsing behavior anyway.
      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr

      case 'tr':
        return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';
      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody

      case 'tbody':
      case 'thead':
      case 'tfoot':
        return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';
      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup

      case 'colgroup':
        return tag === 'col' || tag === 'template';
      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable

      case 'table':
        return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';
      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead

      case 'head':
        return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';
      // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element

      case 'html':
        return tag === 'head' || tag === 'body' || tag === 'frameset';

      case 'frameset':
        return tag === 'frame';

      case '#document':
        return tag === 'html';
    } // Probably in the "in body" parsing mode, so we outlaw only tag combos
    // where the parsing rules cause implicit opens or closes to be added.
    // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody


    switch (tag) {
      case 'h1':
      case 'h2':
      case 'h3':
      case 'h4':
      case 'h5':
      case 'h6':
        return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';

      case 'rp':
      case 'rt':
        return impliedEndTags.indexOf(parentTag) === -1;

      case 'body':
      case 'caption':
      case 'col':
      case 'colgroup':
      case 'frameset':
      case 'frame':
      case 'head':
      case 'html':
      case 'tbody':
      case 'td':
      case 'tfoot':
      case 'th':
      case 'thead':
      case 'tr':
        // These tags are only valid with a few parents that have special child
        // parsing rules -- if we're down here, then none of those matched and
        // so we allow it only if we don't know what the parent is, as all other
        // cases are invalid.
        return parentTag == null;
    }

    return true;
  };
  /**
   * Returns whether
   */


  var findInvalidAncestorForTag = function (tag, ancestorInfo) {
    switch (tag) {
      case 'address':
      case 'article':
      case 'aside':
      case 'blockquote':
      case 'center':
      case 'details':
      case 'dialog':
      case 'dir':
      case 'div':
      case 'dl':
      case 'fieldset':
      case 'figcaption':
      case 'figure':
      case 'footer':
      case 'header':
      case 'hgroup':
      case 'main':
      case 'menu':
      case 'nav':
      case 'ol':
      case 'p':
      case 'section':
      case 'summary':
      case 'ul':
      case 'pre':
      case 'listing':
      case 'table':
      case 'hr':
      case 'xmp':
      case 'h1':
      case 'h2':
      case 'h3':
      case 'h4':
      case 'h5':
      case 'h6':
        return ancestorInfo.pTagInButtonScope;

      case 'form':
        return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;

      case 'li':
        return ancestorInfo.listItemTagAutoclosing;

      case 'dd':
      case 'dt':
        return ancestorInfo.dlItemTagAutoclosing;

      case 'button':
        return ancestorInfo.buttonTagInScope;

      case 'a':
        // Spec says something about storing a list of markers, but it sounds
        // equivalent to this check.
        return ancestorInfo.aTagInScope;

      case 'nobr':
        return ancestorInfo.nobrTagInScope;
    }

    return null;
  };

  var didWarn$1 = {};

  validateDOMNesting = function (childTag, childText, ancestorInfo) {
    ancestorInfo = ancestorInfo || emptyAncestorInfo;
    var parentInfo = ancestorInfo.current;
    var parentTag = parentInfo && parentInfo.tag;

    if (childText != null) {
      if (childTag != null) {
        error('validateDOMNesting: when childText is passed, childTag should be null');
      }

      childTag = '#text';
    }

    var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;
    var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);
    var invalidParentOrAncestor = invalidParent || invalidAncestor;

    if (!invalidParentOrAncestor) {
      return;
    }

    var ancestorTag = invalidParentOrAncestor.tag;
    var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag;

    if (didWarn$1[warnKey]) {
      return;
    }

    didWarn$1[warnKey] = true;
    var tagDisplayName = childTag;
    var whitespaceInfo = '';

    if (childTag === '#text') {
      if (/\S/.test(childText)) {
        tagDisplayName = 'Text nodes';
      } else {
        tagDisplayName = 'Whitespace text nodes';
        whitespaceInfo = " Make sure you don't have any extra whitespace between tags on " + 'each line of your source code.';
      }
    } else {
      tagDisplayName = '<' + childTag + '>';
    }

    if (invalidParent) {
      var info = '';

      if (ancestorTag === 'table' && childTag === 'tr') {
        info += ' Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by ' + 'the browser.';
      }

      error('validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info);
    } else {
      error('validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.', tagDisplayName, ancestorTag);
    }
  };
}

var SUPPRESS_HYDRATION_WARNING$1;

{
  SUPPRESS_HYDRATION_WARNING$1 = 'suppressHydrationWarning';
}

var SUSPENSE_START_DATA = '$';
var SUSPENSE_END_DATA = '/$';
var SUSPENSE_PENDING_START_DATA = '$?';
var SUSPENSE_FALLBACK_START_DATA = '$!';
var STYLE$1 = 'style';
var eventsEnabled = null;
var selectionInformation = null;

function shouldAutoFocusHostComponent(type, props) {
  switch (type) {
    case 'button':
    case 'input':
    case 'select':
    case 'textarea':
      return !!props.autoFocus;
  }

  return false;
}
function getRootHostContext(rootContainerInstance) {
  var type;
  var namespace;
  var nodeType = rootContainerInstance.nodeType;

  switch (nodeType) {
    case DOCUMENT_NODE:
    case DOCUMENT_FRAGMENT_NODE:
      {
        type = nodeType === DOCUMENT_NODE ? '#document' : '#fragment';
        var root = rootContainerInstance.documentElement;
        namespace = root ? root.namespaceURI : getChildNamespace(null, '');
        break;
      }

    default:
      {
        var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance;
        var ownNamespace = container.namespaceURI || null;
        type = container.tagName;
        namespace = getChildNamespace(ownNamespace, type);
        break;
      }
  }

  {
    var validatedTag = type.toLowerCase();
    var ancestorInfo = updatedAncestorInfo(null, validatedTag);
    return {
      namespace: namespace,
      ancestorInfo: ancestorInfo
    };
  }
}
function getChildHostContext(parentHostContext, type, rootContainerInstance) {
  {
    var parentHostContextDev = parentHostContext;
    var namespace = getChildNamespace(parentHostContextDev.namespace, type);
    var ancestorInfo = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);
    return {
      namespace: namespace,
      ancestorInfo: ancestorInfo
    };
  }
}
function getPublicInstance(instance) {
  return instance;
}
function prepareForCommit(containerInfo) {
  eventsEnabled = isEnabled();
  selectionInformation = getSelectionInformation();
  var activeInstance = null;

  setEnabled(false);
  return activeInstance;
}
function resetAfterCommit(containerInfo) {
  restoreSelection(selectionInformation);
  setEnabled(eventsEnabled);
  eventsEnabled = null;
  selectionInformation = null;
}
function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  var parentNamespace;

  {
    // TODO: take namespace into account when validating.
    var hostContextDev = hostContext;
    validateDOMNesting(type, null, hostContextDev.ancestorInfo);

    if (typeof props.children === 'string' || typeof props.children === 'number') {
      var string = '' + props.children;
      var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
      validateDOMNesting(null, string, ownAncestorInfo);
    }

    parentNamespace = hostContextDev.namespace;
  }

  var domElement = createElement(type, props, rootContainerInstance, parentNamespace);
  precacheFiberNode(internalInstanceHandle, domElement);
  updateFiberProps(domElement, props);
  return domElement;
}
function appendInitialChild(parentInstance, child) {
  parentInstance.appendChild(child);
}
function finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext) {
  setInitialProperties(domElement, type, props, rootContainerInstance);
  return shouldAutoFocusHostComponent(type, props);
}
function prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext) {
  {
    var hostContextDev = hostContext;

    if (typeof newProps.children !== typeof oldProps.children && (typeof newProps.children === 'string' || typeof newProps.children === 'number')) {
      var string = '' + newProps.children;
      var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
      validateDOMNesting(null, string, ownAncestorInfo);
    }
  }

  return diffProperties(domElement, type, oldProps, newProps);
}
function shouldSetTextContent(type, props) {
  return type === 'textarea' || type === 'option' || type === 'noscript' || typeof props.children === 'string' || typeof props.children === 'number' || typeof props.dangerouslySetInnerHTML === 'object' && props.dangerouslySetInnerHTML !== null && props.dangerouslySetInnerHTML.__html != null;
}
function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) {
  {
    var hostContextDev = hostContext;
    validateDOMNesting(null, text, hostContextDev.ancestorInfo);
  }

  var textNode = createTextNode(text, rootContainerInstance);
  precacheFiberNode(internalInstanceHandle, textNode);
  return textNode;
}
// if a component just imports ReactDOM (e.g. for findDOMNode).
// Some environments might not have setTimeout or clearTimeout.

var scheduleTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
var cancelTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;
var noTimeout = -1; // -------------------
function commitMount(domElement, type, newProps, internalInstanceHandle) {
  // Despite the naming that might imply otherwise, this method only
  // fires if there is an `Update` effect scheduled during mounting.
  // This happens if `finalizeInitialChildren` returns `true` (which it
  // does to implement the `autoFocus` attribute on the client). But
  // there are also other cases when this might happen (such as patching
  // up text content during hydration mismatch). So we'll check this again.
  if (shouldAutoFocusHostComponent(type, newProps)) {
    domElement.focus();
  }
}
function commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle) {
  // Update the props handle so that we know which props are the ones with
  // with current event handlers.
  updateFiberProps(domElement, newProps); // Apply the diff to the DOM node.

  updateProperties(domElement, updatePayload, type, oldProps, newProps);
}
function resetTextContent(domElement) {
  setTextContent(domElement, '');
}
function commitTextUpdate(textInstance, oldText, newText) {
  textInstance.nodeValue = newText;
}
function appendChild(parentInstance, child) {
  parentInstance.appendChild(child);
}
function appendChildToContainer(container, child) {
  var parentNode;

  if (container.nodeType === COMMENT_NODE) {
    parentNode = container.parentNode;
    parentNode.insertBefore(child, container);
  } else {
    parentNode = container;
    parentNode.appendChild(child);
  } // This container might be used for a portal.
  // If something inside a portal is clicked, that click should bubble
  // through the React tree. However, on Mobile Safari the click would
  // never bubble through the *DOM* tree unless an ancestor with onclick
  // event exists. So we wouldn't see it and dispatch it.
  // This is why we ensure that non React root containers have inline onclick
  // defined.
  // https://github.com/facebook/react/issues/11918


  var reactRootContainer = container._reactRootContainer;

  if ((reactRootContainer === null || reactRootContainer === undefined) && parentNode.onclick === null) {
    // TODO: This cast may not be sound for SVG, MathML or custom elements.
    trapClickOnNonInteractiveElement(parentNode);
  }
}
function insertBefore(parentInstance, child, beforeChild) {
  parentInstance.insertBefore(child, beforeChild);
}
function insertInContainerBefore(container, child, beforeChild) {
  if (container.nodeType === COMMENT_NODE) {
    container.parentNode.insertBefore(child, beforeChild);
  } else {
    container.insertBefore(child, beforeChild);
  }
}

function removeChild(parentInstance, child) {
  parentInstance.removeChild(child);
}
function removeChildFromContainer(container, child) {
  if (container.nodeType === COMMENT_NODE) {
    container.parentNode.removeChild(child);
  } else {
    container.removeChild(child);
  }
}
function hideInstance(instance) {
  // TODO: Does this work for all element types? What about MathML? Should we
  // pass host context to this method?
  instance = instance;
  var style = instance.style;

  if (typeof style.setProperty === 'function') {
    style.setProperty('display', 'none', 'important');
  } else {
    style.display = 'none';
  }
}
function hideTextInstance(textInstance) {
  textInstance.nodeValue = '';
}
function unhideInstance(instance, props) {
  instance = instance;
  var styleProp = props[STYLE$1];
  var display = styleProp !== undefined && styleProp !== null && styleProp.hasOwnProperty('display') ? styleProp.display : null;
  instance.style.display = dangerousStyleValue('display', display);
}
function unhideTextInstance(textInstance, text) {
  textInstance.nodeValue = text;
}
function clearContainer(container) {
  if (container.nodeType === ELEMENT_NODE) {
    container.textContent = '';
  } else if (container.nodeType === DOCUMENT_NODE) {
    var body = container.body;

    if (body != null) {
      body.textContent = '';
    }
  }
} // -------------------
function canHydrateInstance(instance, type, props) {
  if (instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase()) {
    return null;
  } // This has now been refined to an element node.


  return instance;
}
function canHydrateTextInstance(instance, text) {
  if (text === '' || instance.nodeType !== TEXT_NODE) {
    // Empty strings are not parsed by HTML so there won't be a correct match here.
    return null;
  } // This has now been refined to a text node.


  return instance;
}
function isSuspenseInstancePending(instance) {
  return instance.data === SUSPENSE_PENDING_START_DATA;
}
function isSuspenseInstanceFallback(instance) {
  return instance.data === SUSPENSE_FALLBACK_START_DATA;
}

function getNextHydratable(node) {
  // Skip non-hydratable nodes.
  for (; node != null; node = node.nextSibling) {
    var nodeType = node.nodeType;

    if (nodeType === ELEMENT_NODE || nodeType === TEXT_NODE) {
      break;
    }
  }

  return node;
}

function getNextHydratableSibling(instance) {
  return getNextHydratable(instance.nextSibling);
}
function getFirstHydratableChild(parentInstance) {
  return getNextHydratable(parentInstance.firstChild);
}
function hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  precacheFiberNode(internalInstanceHandle, instance); // TODO: Possibly defer this until the commit phase where all the events
  // get attached.

  updateFiberProps(instance, props);
  var parentNamespace;

  {
    var hostContextDev = hostContext;
    parentNamespace = hostContextDev.namespace;
  }

  return diffHydratedProperties(instance, type, props, parentNamespace);
}
function hydrateTextInstance(textInstance, text, internalInstanceHandle) {
  precacheFiberNode(internalInstanceHandle, textInstance);
  return diffHydratedText(textInstance, text);
}
function getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance) {
  var node = suspenseInstance.nextSibling; // Skip past all nodes within this suspense boundary.
  // There might be nested nodes so we need to keep track of how
  // deep we are and only break out when we're back on top.

  var depth = 0;

  while (node) {
    if (node.nodeType === COMMENT_NODE) {
      var data = node.data;

      if (data === SUSPENSE_END_DATA) {
        if (depth === 0) {
          return getNextHydratableSibling(node);
        } else {
          depth--;
        }
      } else if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) {
        depth++;
      }
    }

    node = node.nextSibling;
  } // TODO: Warn, we didn't find the end comment boundary.


  return null;
} // Returns the SuspenseInstance if this node is a direct child of a
// SuspenseInstance. I.e. if its previous sibling is a Comment with
// SUSPENSE_x_START_DATA. Otherwise, null.

function getParentSuspenseInstance(targetInstance) {
  var node = targetInstance.previousSibling; // Skip past all nodes within this suspense boundary.
  // There might be nested nodes so we need to keep track of how
  // deep we are and only break out when we're back on top.

  var depth = 0;

  while (node) {
    if (node.nodeType === COMMENT_NODE) {
      var data = node.data;

      if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) {
        if (depth === 0) {
          return node;
        } else {
          depth--;
        }
      } else if (data === SUSPENSE_END_DATA) {
        depth++;
      }
    }

    node = node.previousSibling;
  }

  return null;
}
function commitHydratedContainer(container) {
  // Retry if any event replaying was blocked on this.
  retryIfBlockedOn(container);
}
function commitHydratedSuspenseInstance(suspenseInstance) {
  // Retry if any event replaying was blocked on this.
  retryIfBlockedOn(suspenseInstance);
}
function didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text) {
  {
    warnForUnmatchedText(textInstance, text);
  }
}
function didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text) {
  if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
    warnForUnmatchedText(textInstance, text);
  }
}
function didNotHydrateContainerInstance(parentContainer, instance) {
  {
    if (instance.nodeType === ELEMENT_NODE) {
      warnForDeletedHydratableElement(parentContainer, instance);
    } else if (instance.nodeType === COMMENT_NODE) ; else {
      warnForDeletedHydratableText(parentContainer, instance);
    }
  }
}
function didNotHydrateInstance(parentType, parentProps, parentInstance, instance) {
  if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
    if (instance.nodeType === ELEMENT_NODE) {
      warnForDeletedHydratableElement(parentInstance, instance);
    } else if (instance.nodeType === COMMENT_NODE) ; else {
      warnForDeletedHydratableText(parentInstance, instance);
    }
  }
}
function didNotFindHydratableContainerInstance(parentContainer, type, props) {
  {
    warnForInsertedHydratedElement(parentContainer, type);
  }
}
function didNotFindHydratableContainerTextInstance(parentContainer, text) {
  {
    warnForInsertedHydratedText(parentContainer, text);
  }
}
function didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props) {
  if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
    warnForInsertedHydratedElement(parentInstance, type);
  }
}
function didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text) {
  if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
    warnForInsertedHydratedText(parentInstance, text);
  }
}
function didNotFindHydratableSuspenseInstance(parentType, parentProps, parentInstance) {
  if ( parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) ;
}
var clientId = 0;
function makeClientIdInDEV(warnOnAccessInDEV) {
  var id = 'r:' + (clientId++).toString(36);
  return {
    toString: function () {
      warnOnAccessInDEV();
      return id;
    },
    valueOf: function () {
      warnOnAccessInDEV();
      return id;
    }
  };
}
function isOpaqueHydratingObject(value) {
  return value !== null && typeof value === 'object' && value.$$typeof === REACT_OPAQUE_ID_TYPE;
}
function makeOpaqueHydratingObject(attemptToReadValue) {
  return {
    $$typeof: REACT_OPAQUE_ID_TYPE,
    toString: attemptToReadValue,
    valueOf: attemptToReadValue
  };
}
function preparePortalMount(portalInstance) {
  {
    listenToAllSupportedEvents(portalInstance);
  }
}

var randomKey = Math.random().toString(36).slice(2);
var internalInstanceKey = '__reactFiber$' + randomKey;
var internalPropsKey = '__reactProps$' + randomKey;
var internalContainerInstanceKey = '__reactContainer$' + randomKey;
var internalEventHandlersKey = '__reactEvents$' + randomKey;
function precacheFiberNode(hostInst, node) {
  node[internalInstanceKey] = hostInst;
}
function markContainerAsRoot(hostRoot, node) {
  node[internalContainerInstanceKey] = hostRoot;
}
function unmarkContainerAsRoot(node) {
  node[internalContainerInstanceKey] = null;
}
function isContainerMarkedAsRoot(node) {
  return !!node[internalContainerInstanceKey];
} // Given a DOM node, return the closest HostComponent or HostText fiber ancestor.
// If the target node is part of a hydrated or not yet rendered subtree, then
// this may also return a SuspenseComponent or HostRoot to indicate that.
// Conceptually the HostRoot fiber is a child of the Container node. So if you
// pass the Container node as the targetNode, you will not actually get the
// HostRoot back. To get to the HostRoot, you need to pass a child of it.
// The same thing applies to Suspense boundaries.

function getClosestInstanceFromNode(targetNode) {
  var targetInst = targetNode[internalInstanceKey];

  if (targetInst) {
    // Don't return HostRoot or SuspenseComponent here.
    return targetInst;
  } // If the direct event target isn't a React owned DOM node, we need to look
  // to see if one of its parents is a React owned DOM node.


  var parentNode = targetNode.parentNode;

  while (parentNode) {
    // We'll check if this is a container root that could include
    // React nodes in the future. We need to check this first because
    // if we're a child of a dehydrated container, we need to first
    // find that inner container before moving on to finding the parent
    // instance. Note that we don't check this field on  the targetNode
    // itself because the fibers are conceptually between the container
    // node and the first child. It isn't surrounding the container node.
    // If it's not a container, we check if it's an instance.
    targetInst = parentNode[internalContainerInstanceKey] || parentNode[internalInstanceKey];

    if (targetInst) {
      // Since this wasn't the direct target of the event, we might have
      // stepped past dehydrated DOM nodes to get here. However they could
      // also have been non-React nodes. We need to answer which one.
      // If we the instance doesn't have any children, then there can't be
      // a nested suspense boundary within it. So we can use this as a fast
      // bailout. Most of the time, when people add non-React children to
      // the tree, it is using a ref to a child-less DOM node.
      // Normally we'd only need to check one of the fibers because if it
      // has ever gone from having children to deleting them or vice versa
      // it would have deleted the dehydrated boundary nested inside already.
      // However, since the HostRoot starts out with an alternate it might
      // have one on the alternate so we need to check in case this was a
      // root.
      var alternate = targetInst.alternate;

      if (targetInst.child !== null || alternate !== null && alternate.child !== null) {
        // Next we need to figure out if the node that skipped past is
        // nested within a dehydrated boundary and if so, which one.
        var suspenseInstance = getParentSuspenseInstance(targetNode);

        while (suspenseInstance !== null) {
          // We found a suspense instance. That means that we haven't
          // hydrated it yet. Even though we leave the comments in the
          // DOM after hydrating, and there are boundaries in the DOM
          // that could already be hydrated, we wouldn't have found them
          // through this pass since if the target is hydrated it would
          // have had an internalInstanceKey on it.
          // Let's get the fiber associated with the SuspenseComponent
          // as the deepest instance.
          var targetSuspenseInst = suspenseInstance[internalInstanceKey];

          if (targetSuspenseInst) {
            return targetSuspenseInst;
          } // If we don't find a Fiber on the comment, it might be because
          // we haven't gotten to hydrate it yet. There might still be a
          // parent boundary that hasn't above this one so we need to find
          // the outer most that is known.


          suspenseInstance = getParentSuspenseInstance(suspenseInstance); // If we don't find one, then that should mean that the parent
          // host component also hasn't hydrated yet. We can return it
          // below since it will bail out on the isMounted check later.
        }
      }

      return targetInst;
    }

    targetNode = parentNode;
    parentNode = targetNode.parentNode;
  }

  return null;
}
/**
 * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent
 * instance, or null if the node was not rendered by this React.
 */

function getInstanceFromNode(node) {
  var inst = node[internalInstanceKey] || node[internalContainerInstanceKey];

  if (inst) {
    if (inst.tag === HostComponent || inst.tag === HostText || inst.tag === SuspenseComponent || inst.tag === HostRoot) {
      return inst;
    } else {
      return null;
    }
  }

  return null;
}
/**
 * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding
 * DOM node.
 */

function getNodeFromInstance(inst) {
  if (inst.tag === HostComponent || inst.tag === HostText) {
    // In Fiber this, is just the state node right now. We assume it will be
    // a host component or host text.
    return inst.stateNode;
  } // Without this first invariant, passing a non-DOM-component triggers the next
  // invariant for a missing parent, which is super confusing.


  {
    {
      throw Error( "getNodeFromInstance: Invalid argument." );
    }
  }
}
function getFiberCurrentPropsFromNode(node) {
  return node[internalPropsKey] || null;
}
function updateFiberProps(node, props) {
  node[internalPropsKey] = props;
}
function getEventListenerSet(node) {
  var elementListenerSet = node[internalEventHandlersKey];

  if (elementListenerSet === undefined) {
    elementListenerSet = node[internalEventHandlersKey] = new Set();
  }

  return elementListenerSet;
}

var loggedTypeFailures = {};
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;

function setCurrentlyValidatingElement(element) {
  {
    if (element) {
      var owner = element._owner;
      var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
      ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
    } else {
      ReactDebugCurrentFrame$1.setExtraStackFrame(null);
    }
  }
}

function checkPropTypes(typeSpecs, values, location, componentName, element) {
  {
    // $FlowFixMe This is okay but Flow doesn't know it.
    var has = Function.call.bind(Object.prototype.hasOwnProperty);

    for (var typeSpecName in typeSpecs) {
      if (has(typeSpecs, typeSpecName)) {
        var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
        // fail the render phase where it didn't fail before. So we log it.
        // After these have been cleaned up, we'll let them throw.

        try {
          // This is intentionally an invariant that gets caught. It's the same
          // behavior as without this statement except with a better message.
          if (typeof typeSpecs[typeSpecName] !== 'function') {
            var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
            err.name = 'Invariant Violation';
            throw err;
          }

          error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
        } catch (ex) {
          error$1 = ex;
        }

        if (error$1 && !(error$1 instanceof Error)) {
          setCurrentlyValidatingElement(element);

          error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);

          setCurrentlyValidatingElement(null);
        }

        if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
          // Only monitor this failure once because there tends to be a lot of the
          // same error.
          loggedTypeFailures[error$1.message] = true;
          setCurrentlyValidatingElement(element);

          error('Failed %s type: %s', location, error$1.message);

          setCurrentlyValidatingElement(null);
        }
      }
    }
  }
}

var valueStack = [];
var fiberStack;

{
  fiberStack = [];
}

var index = -1;

function createCursor(defaultValue) {
  return {
    current: defaultValue
  };
}

function pop(cursor, fiber) {
  if (index < 0) {
    {
      error('Unexpected pop.');
    }

    return;
  }

  {
    if (fiber !== fiberStack[index]) {
      error('Unexpected Fiber popped.');
    }
  }

  cursor.current = valueStack[index];
  valueStack[index] = null;

  {
    fiberStack[index] = null;
  }

  index--;
}

function push(cursor, value, fiber) {
  index++;
  valueStack[index] = cursor.current;

  {
    fiberStack[index] = fiber;
  }

  cursor.current = value;
}

var warnedAboutMissingGetChildContext;

{
  warnedAboutMissingGetChildContext = {};
}

var emptyContextObject = {};

{
  Object.freeze(emptyContextObject);
} // A cursor to the current merged context object on the stack.


var contextStackCursor = createCursor(emptyContextObject); // A cursor to a boolean indicating whether the context has changed.

var didPerformWorkStackCursor = createCursor(false); // Keep track of the previous context object that was on the stack.
// We use this to get access to the parent context after we have already
// pushed the next context provider, and now need to merge their contexts.

var previousContext = emptyContextObject;

function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) {
  {
    if (didPushOwnContextIfProvider && isContextProvider(Component)) {
      // If the fiber is a context provider itself, when we read its context
      // we may have already pushed its own child context on the stack. A context
      // provider should not "see" its own child context. Therefore we read the
      // previous (parent) context instead for a context provider.
      return previousContext;
    }

    return contextStackCursor.current;
  }
}

function cacheContext(workInProgress, unmaskedContext, maskedContext) {
  {
    var instance = workInProgress.stateNode;
    instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
    instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
  }
}

function getMaskedContext(workInProgress, unmaskedContext) {
  {
    var type = workInProgress.type;
    var contextTypes = type.contextTypes;

    if (!contextTypes) {
      return emptyContextObject;
    } // Avoid recreating masked context unless unmasked context has changed.
    // Failing to do this will result in unnecessary calls to componentWillReceiveProps.
    // This may trigger infinite loops if componentWillReceiveProps calls setState.


    var instance = workInProgress.stateNode;

    if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) {
      return instance.__reactInternalMemoizedMaskedChildContext;
    }

    var context = {};

    for (var key in contextTypes) {
      context[key] = unmaskedContext[key];
    }

    {
      var name = getComponentName(type) || 'Unknown';
      checkPropTypes(contextTypes, context, 'context', name);
    } // Cache unmasked context so we can avoid recreating masked context unless necessary.
    // Context is created before the class component is instantiated so check for instance.


    if (instance) {
      cacheContext(workInProgress, unmaskedContext, context);
    }

    return context;
  }
}

function hasContextChanged() {
  {
    return didPerformWorkStackCursor.current;
  }
}

function isContextProvider(type) {
  {
    var childContextTypes = type.childContextTypes;
    return childContextTypes !== null && childContextTypes !== undefined;
  }
}

function popContext(fiber) {
  {
    pop(didPerformWorkStackCursor, fiber);
    pop(contextStackCursor, fiber);
  }
}

function popTopLevelContextObject(fiber) {
  {
    pop(didPerformWorkStackCursor, fiber);
    pop(contextStackCursor, fiber);
  }
}

function pushTopLevelContextObject(fiber, context, didChange) {
  {
    if (!(contextStackCursor.current === emptyContextObject)) {
      {
        throw Error( "Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue." );
      }
    }

    push(contextStackCursor, context, fiber);
    push(didPerformWorkStackCursor, didChange, fiber);
  }
}

function processChildContext(fiber, type, parentContext) {
  {
    var instance = fiber.stateNode;
    var childContextTypes = type.childContextTypes; // TODO (bvaughn) Replace this behavior with an invariant() in the future.
    // It has only been added in Fiber to match the (unintentional) behavior in Stack.

    if (typeof instance.getChildContext !== 'function') {
      {
        var componentName = getComponentName(type) || 'Unknown';

        if (!warnedAboutMissingGetChildContext[componentName]) {
          warnedAboutMissingGetChildContext[componentName] = true;

          error('%s.childContextTypes is specified but there is no getChildContext() method ' + 'on the instance. You can either define getChildContext() on %s or remove ' + 'childContextTypes from it.', componentName, componentName);
        }
      }

      return parentContext;
    }

    var childContext = instance.getChildContext();

    for (var contextKey in childContext) {
      if (!(contextKey in childContextTypes)) {
        {
          throw Error( (getComponentName(type) || 'Unknown') + ".getChildContext(): key \"" + contextKey + "\" is not defined in childContextTypes." );
        }
      }
    }

    {
      var name = getComponentName(type) || 'Unknown';
      checkPropTypes(childContextTypes, childContext, 'child context', name);
    }

    return _assign({}, parentContext, childContext);
  }
}

function pushContextProvider(workInProgress) {
  {
    var instance = workInProgress.stateNode; // We push the context as early as possible to ensure stack integrity.
    // If the instance does not exist yet, we will push null at first,
    // and replace it on the stack later when invalidating the context.

    var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject; // Remember the parent context so we can merge with it later.
    // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.

    previousContext = contextStackCursor.current;
    push(contextStackCursor, memoizedMergedChildContext, workInProgress);
    push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress);
    return true;
  }
}

function invalidateContextProvider(workInProgress, type, didChange) {
  {
    var instance = workInProgress.stateNode;

    if (!instance) {
      {
        throw Error( "Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue." );
      }
    }

    if (didChange) {
      // Merge parent and own context.
      // Skip this if we're not updating due to sCU.
      // This avoids unnecessarily recomputing memoized values.
      var mergedContext = processChildContext(workInProgress, type, previousContext);
      instance.__reactInternalMemoizedMergedChildContext = mergedContext; // Replace the old (or empty) context with the new one.
      // It is important to unwind the context in the reverse order.

      pop(didPerformWorkStackCursor, workInProgress);
      pop(contextStackCursor, workInProgress); // Now push the new context and mark that it has changed.

      push(contextStackCursor, mergedContext, workInProgress);
      push(didPerformWorkStackCursor, didChange, workInProgress);
    } else {
      pop(didPerformWorkStackCursor, workInProgress);
      push(didPerformWorkStackCursor, didChange, workInProgress);
    }
  }
}

function findCurrentUnmaskedContext(fiber) {
  {
    // Currently this is only used with renderSubtreeIntoContainer; not sure if it
    // makes sense elsewhere
    if (!(isFiberMounted(fiber) && fiber.tag === ClassComponent)) {
      {
        throw Error( "Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue." );
      }
    }

    var node = fiber;

    do {
      switch (node.tag) {
        case HostRoot:
          return node.stateNode.context;

        case ClassComponent:
          {
            var Component = node.type;

            if (isContextProvider(Component)) {
              return node.stateNode.__reactInternalMemoizedMergedChildContext;
            }

            break;
          }
      }

      node = node.return;
    } while (node !== null);

    {
      {
        throw Error( "Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue." );
      }
    }
  }
}

var LegacyRoot = 0;
var BlockingRoot = 1;
var ConcurrentRoot = 2;

var rendererID = null;
var injectedHook = null;
var hasLoggedError = false;
var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined';
function injectInternals(internals) {
  if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
    // No DevTools
    return false;
  }

  var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;

  if (hook.isDisabled) {
    // This isn't a real property on the hook, but it can be set to opt out
    // of DevTools integration and associated warnings and logs.
    // https://github.com/facebook/react/issues/3877
    return true;
  }

  if (!hook.supportsFiber) {
    {
      error('The installed version of React DevTools is too old and will not work ' + 'with the current version of React. Please update React DevTools. ' + 'https://reactjs.org/link/react-devtools');
    } // DevTools exists, even though it doesn't support Fiber.


    return true;
  }

  try {
    rendererID = hook.inject(internals); // We have successfully injected, so now it is safe to set up hooks.

    injectedHook = hook;
  } catch (err) {
    // Catch all errors because it is unsafe to throw during initialization.
    {
      error('React instrumentation encountered an error: %s.', err);
    }
  } // DevTools exists


  return true;
}
function onScheduleRoot(root, children) {
  {
    if (injectedHook && typeof injectedHook.onScheduleFiberRoot === 'function') {
      try {
        injectedHook.onScheduleFiberRoot(rendererID, root, children);
      } catch (err) {
        if ( !hasLoggedError) {
          hasLoggedError = true;

          error('React instrumentation encountered an error: %s', err);
        }
      }
    }
  }
}
function onCommitRoot(root, priorityLevel) {
  if (injectedHook && typeof injectedHook.onCommitFiberRoot === 'function') {
    try {
      var didError = (root.current.flags & DidCapture) === DidCapture;

      if (enableProfilerTimer) {
        injectedHook.onCommitFiberRoot(rendererID, root, priorityLevel, didError);
      } else {
        injectedHook.onCommitFiberRoot(rendererID, root, undefined, didError);
      }
    } catch (err) {
      {
        if (!hasLoggedError) {
          hasLoggedError = true;

          error('React instrumentation encountered an error: %s', err);
        }
      }
    }
  }
}
function onCommitUnmount(fiber) {
  if (injectedHook && typeof injectedHook.onCommitFiberUnmount === 'function') {
    try {
      injectedHook.onCommitFiberUnmount(rendererID, fiber);
    } catch (err) {
      {
        if (!hasLoggedError) {
          hasLoggedError = true;

          error('React instrumentation encountered an error: %s', err);
        }
      }
    }
  }
}

var Scheduler_runWithPriority = Scheduler.unstable_runWithPriority,
    Scheduler_scheduleCallback = Scheduler.unstable_scheduleCallback,
    Scheduler_cancelCallback = Scheduler.unstable_cancelCallback,
    Scheduler_shouldYield = Scheduler.unstable_shouldYield,
    Scheduler_requestPaint = Scheduler.unstable_requestPaint,
    Scheduler_now$1 = Scheduler.unstable_now,
    Scheduler_getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel,
    Scheduler_ImmediatePriority = Scheduler.unstable_ImmediatePriority,
    Scheduler_UserBlockingPriority = Scheduler.unstable_UserBlockingPriority,
    Scheduler_NormalPriority = Scheduler.unstable_NormalPriority,
    Scheduler_LowPriority = Scheduler.unstable_LowPriority,
    Scheduler_IdlePriority = Scheduler.unstable_IdlePriority;

{
  // Provide explicit error message when production+profiling bundle of e.g.
  // react-dom is used with production (non-profiling) bundle of
  // scheduler/tracing
  if (!(tracing.__interactionsRef != null && tracing.__interactionsRef.current != null)) {
    {
      throw Error( "It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at https://reactjs.org/link/profiling" );
    }
  }
}

var fakeCallbackNode = {}; // Except for NoPriority, these correspond to Scheduler priorities. We use
// ascending numbers so we can compare them like numbers. They start at 90 to
// avoid clashing with Scheduler's priorities.

var ImmediatePriority$1 = 99;
var UserBlockingPriority$2 = 98;
var NormalPriority$1 = 97;
var LowPriority$1 = 96;
var IdlePriority$1 = 95; // NoPriority is the absence of priority. Also React-only.

var NoPriority$1 = 90;
var shouldYield = Scheduler_shouldYield;
var requestPaint = // Fall back gracefully if we're running an older version of Scheduler.
Scheduler_requestPaint !== undefined ? Scheduler_requestPaint : function () {};
var syncQueue = null;
var immediateQueueCallbackNode = null;
var isFlushingSyncQueue = false;
var initialTimeMs$1 = Scheduler_now$1(); // If the initial timestamp is reasonably small, use Scheduler's `now` directly.
// This will be the case for modern browsers that support `performance.now`. In
// older browsers, Scheduler falls back to `Date.now`, which returns a Unix
// timestamp. In that case, subtract the module initialization time to simulate
// the behavior of performance.now and keep our times small enough to fit
// within 32 bits.
// TODO: Consider lifting this into Scheduler.

var now = initialTimeMs$1 < 10000 ? Scheduler_now$1 : function () {
  return Scheduler_now$1() - initialTimeMs$1;
};
function getCurrentPriorityLevel() {
  switch (Scheduler_getCurrentPriorityLevel()) {
    case Scheduler_ImmediatePriority:
      return ImmediatePriority$1;

    case Scheduler_UserBlockingPriority:
      return UserBlockingPriority$2;

    case Scheduler_NormalPriority:
      return NormalPriority$1;

    case Scheduler_LowPriority:
      return LowPriority$1;

    case Scheduler_IdlePriority:
      return IdlePriority$1;

    default:
      {
        {
          throw Error( "Unknown priority level." );
        }
      }

  }
}

function reactPriorityToSchedulerPriority(reactPriorityLevel) {
  switch (reactPriorityLevel) {
    case ImmediatePriority$1:
      return Scheduler_ImmediatePriority;

    case UserBlockingPriority$2:
      return Scheduler_UserBlockingPriority;

    case NormalPriority$1:
      return Scheduler_NormalPriority;

    case LowPriority$1:
      return Scheduler_LowPriority;

    case IdlePriority$1:
      return Scheduler_IdlePriority;

    default:
      {
        {
          throw Error( "Unknown priority level." );
        }
      }

  }
}

function runWithPriority$1(reactPriorityLevel, fn) {
  var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
  return Scheduler_runWithPriority(priorityLevel, fn);
}
function scheduleCallback(reactPriorityLevel, callback, options) {
  var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
  return Scheduler_scheduleCallback(priorityLevel, callback, options);
}
function scheduleSyncCallback(callback) {
  // Push this callback into an internal queue. We'll flush these either in
  // the next tick, or earlier if something calls `flushSyncCallbackQueue`.
  if (syncQueue === null) {
    syncQueue = [callback]; // Flush the queue in the next tick, at the earliest.

    immediateQueueCallbackNode = Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueueImpl);
  } else {
    // Push onto existing queue. Don't need to schedule a callback because
    // we already scheduled one when we created the queue.
    syncQueue.push(callback);
  }

  return fakeCallbackNode;
}
function cancelCallback(callbackNode) {
  if (callbackNode !== fakeCallbackNode) {
    Scheduler_cancelCallback(callbackNode);
  }
}
function flushSyncCallbackQueue() {
  if (immediateQueueCallbackNode !== null) {
    var node = immediateQueueCallbackNode;
    immediateQueueCallbackNode = null;
    Scheduler_cancelCallback(node);
  }

  flushSyncCallbackQueueImpl();
}

function flushSyncCallbackQueueImpl() {
  if (!isFlushingSyncQueue && syncQueue !== null) {
    // Prevent re-entrancy.
    isFlushingSyncQueue = true;
    var i = 0;

    {
      try {
        var _isSync2 = true;
        var _queue = syncQueue;
        runWithPriority$1(ImmediatePriority$1, function () {
          for (; i < _queue.length; i++) {
            var callback = _queue[i];

            do {
              callback = callback(_isSync2);
            } while (callback !== null);
          }
        });
        syncQueue = null;
      } catch (error) {
        // If something throws, leave the remaining callbacks on the queue.
        if (syncQueue !== null) {
          syncQueue = syncQueue.slice(i + 1);
        } // Resume flushing in the next tick


        Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueue);
        throw error;
      } finally {
        isFlushingSyncQueue = false;
      }
    }
  }
}

// TODO: this is special because it gets imported during build.
var ReactVersion = '17.0.2';

var NoMode = 0;
var StrictMode = 1; // TODO: Remove BlockingMode and ConcurrentMode by reading from the root
// tag instead

var BlockingMode = 2;
var ConcurrentMode = 4;
var ProfileMode = 8;
var DebugTracingMode = 16;

var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
var NoTransition = 0;
function requestCurrentTransition() {
  return ReactCurrentBatchConfig.transition;
}

var ReactStrictModeWarnings = {
  recordUnsafeLifecycleWarnings: function (fiber, instance) {},
  flushPendingUnsafeLifecycleWarnings: function () {},
  recordLegacyContextWarning: function (fiber, instance) {},
  flushLegacyContextWarning: function () {},
  discardPendingWarnings: function () {}
};

{
  var findStrictRoot = function (fiber) {
    var maybeStrictRoot = null;
    var node = fiber;

    while (node !== null) {
      if (node.mode & StrictMode) {
        maybeStrictRoot = node;
      }

      node = node.return;
    }

    return maybeStrictRoot;
  };

  var setToSortedString = function (set) {
    var array = [];
    set.forEach(function (value) {
      array.push(value);
    });
    return array.sort().join(', ');
  };

  var pendingComponentWillMountWarnings = [];
  var pendingUNSAFE_ComponentWillMountWarnings = [];
  var pendingComponentWillReceivePropsWarnings = [];
  var pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  var pendingComponentWillUpdateWarnings = [];
  var pendingUNSAFE_ComponentWillUpdateWarnings = []; // Tracks components we have already warned about.

  var didWarnAboutUnsafeLifecycles = new Set();

  ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) {
    // Dedup strategy: Warn once per component.
    if (didWarnAboutUnsafeLifecycles.has(fiber.type)) {
      return;
    }

    if (typeof instance.componentWillMount === 'function' && // Don't warn about react-lifecycles-compat polyfilled components.
    instance.componentWillMount.__suppressDeprecationWarning !== true) {
      pendingComponentWillMountWarnings.push(fiber);
    }

    if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillMount === 'function') {
      pendingUNSAFE_ComponentWillMountWarnings.push(fiber);
    }

    if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
      pendingComponentWillReceivePropsWarnings.push(fiber);
    }

    if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
      pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber);
    }

    if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
      pendingComponentWillUpdateWarnings.push(fiber);
    }

    if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillUpdate === 'function') {
      pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber);
    }
  };

  ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () {
    // We do an initial pass to gather component names
    var componentWillMountUniqueNames = new Set();

    if (pendingComponentWillMountWarnings.length > 0) {
      pendingComponentWillMountWarnings.forEach(function (fiber) {
        componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component');
        didWarnAboutUnsafeLifecycles.add(fiber.type);
      });
      pendingComponentWillMountWarnings = [];
    }

    var UNSAFE_componentWillMountUniqueNames = new Set();

    if (pendingUNSAFE_ComponentWillMountWarnings.length > 0) {
      pendingUNSAFE_ComponentWillMountWarnings.forEach(function (fiber) {
        UNSAFE_componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component');
        didWarnAboutUnsafeLifecycles.add(fiber.type);
      });
      pendingUNSAFE_ComponentWillMountWarnings = [];
    }

    var componentWillReceivePropsUniqueNames = new Set();

    if (pendingComponentWillReceivePropsWarnings.length > 0) {
      pendingComponentWillReceivePropsWarnings.forEach(function (fiber) {
        componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component');
        didWarnAboutUnsafeLifecycles.add(fiber.type);
      });
      pendingComponentWillReceivePropsWarnings = [];
    }

    var UNSAFE_componentWillReceivePropsUniqueNames = new Set();

    if (pendingUNSAFE_ComponentWillReceivePropsWarnings.length > 0) {
      pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function (fiber) {
        UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component');
        didWarnAboutUnsafeLifecycles.add(fiber.type);
      });
      pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
    }

    var componentWillUpdateUniqueNames = new Set();

    if (pendingComponentWillUpdateWarnings.length > 0) {
      pendingComponentWillUpdateWarnings.forEach(function (fiber) {
        componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component');
        didWarnAboutUnsafeLifecycles.add(fiber.type);
      });
      pendingComponentWillUpdateWarnings = [];
    }

    var UNSAFE_componentWillUpdateUniqueNames = new Set();

    if (pendingUNSAFE_ComponentWillUpdateWarnings.length > 0) {
      pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function (fiber) {
        UNSAFE_componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component');
        didWarnAboutUnsafeLifecycles.add(fiber.type);
      });
      pendingUNSAFE_ComponentWillUpdateWarnings = [];
    } // Finally, we flush all the warnings
    // UNSAFE_ ones before the deprecated ones, since they'll be 'louder'


    if (UNSAFE_componentWillMountUniqueNames.size > 0) {
      var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames);

      error('Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\n' + '\nPlease update the following components: %s', sortedNames);
    }

    if (UNSAFE_componentWillReceivePropsUniqueNames.size > 0) {
      var _sortedNames = setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames);

      error('Using UNSAFE_componentWillReceiveProps in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + "* If you're updating state whenever props change, " + 'refactor your code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n' + '\nPlease update the following components: %s', _sortedNames);
    }

    if (UNSAFE_componentWillUpdateUniqueNames.size > 0) {
      var _sortedNames2 = setToSortedString(UNSAFE_componentWillUpdateUniqueNames);

      error('Using UNSAFE_componentWillUpdate in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + '\nPlease update the following components: %s', _sortedNames2);
    }

    if (componentWillMountUniqueNames.size > 0) {
      var _sortedNames3 = setToSortedString(componentWillMountUniqueNames);

      warn('componentWillMount has been renamed, and is not recommended for use. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\n' + '* Rename componentWillMount to UNSAFE_componentWillMount to suppress ' + 'this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames3);
    }

    if (componentWillReceivePropsUniqueNames.size > 0) {
      var _sortedNames4 = setToSortedString(componentWillReceivePropsUniqueNames);

      warn('componentWillReceiveProps has been renamed, and is not recommended for use. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + "* If you're updating state whenever props change, refactor your " + 'code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n' + '* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress ' + 'this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames4);
    }

    if (componentWillUpdateUniqueNames.size > 0) {
      var _sortedNames5 = setToSortedString(componentWillUpdateUniqueNames);

      warn('componentWillUpdate has been renamed, and is not recommended for use. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + '* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress ' + 'this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames5);
    }
  };

  var pendingLegacyContextWarning = new Map(); // Tracks components we have already warned about.

  var didWarnAboutLegacyContext = new Set();

  ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) {
    var strictRoot = findStrictRoot(fiber);

    if (strictRoot === null) {
      error('Expected to find a StrictMode component in a strict mode tree. ' + 'This error is likely caused by a bug in React. Please file an issue.');

      return;
    } // Dedup strategy: Warn once per component.


    if (didWarnAboutLegacyContext.has(fiber.type)) {
      return;
    }

    var warningsForRoot = pendingLegacyContextWarning.get(strictRoot);

    if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === 'function') {
      if (warningsForRoot === undefined) {
        warningsForRoot = [];
        pendingLegacyContextWarning.set(strictRoot, warningsForRoot);
      }

      warningsForRoot.push(fiber);
    }
  };

  ReactStrictModeWarnings.flushLegacyContextWarning = function () {
    pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) {
      if (fiberArray.length === 0) {
        return;
      }

      var firstFiber = fiberArray[0];
      var uniqueNames = new Set();
      fiberArray.forEach(function (fiber) {
        uniqueNames.add(getComponentName(fiber.type) || 'Component');
        didWarnAboutLegacyContext.add(fiber.type);
      });
      var sortedNames = setToSortedString(uniqueNames);

      try {
        setCurrentFiber(firstFiber);

        error('Legacy context API has been detected within a strict-mode tree.' + '\n\nThe old API will be supported in all 16.x releases, but applications ' + 'using it should migrate to the new version.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context', sortedNames);
      } finally {
        resetCurrentFiber();
      }
    });
  };

  ReactStrictModeWarnings.discardPendingWarnings = function () {
    pendingComponentWillMountWarnings = [];
    pendingUNSAFE_ComponentWillMountWarnings = [];
    pendingComponentWillReceivePropsWarnings = [];
    pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
    pendingComponentWillUpdateWarnings = [];
    pendingUNSAFE_ComponentWillUpdateWarnings = [];
    pendingLegacyContextWarning = new Map();
  };
}

function resolveDefaultProps(Component, baseProps) {
  if (Component && Component.defaultProps) {
    // Resolve default props. Taken from ReactElement
    var props = _assign({}, baseProps);

    var defaultProps = Component.defaultProps;

    for (var propName in defaultProps) {
      if (props[propName] === undefined) {
        props[propName] = defaultProps[propName];
      }
    }

    return props;
  }

  return baseProps;
}

// Max 31 bit integer. The max integer size in V8 for 32-bit systems.
// Math.pow(2, 30) - 1
// 0b111111111111111111111111111111
var MAX_SIGNED_31_BIT_INT = 1073741823;

var valueCursor = createCursor(null);
var rendererSigil;

{
  // Use this to detect multiple renderers using the same context
  rendererSigil = {};
}

var currentlyRenderingFiber = null;
var lastContextDependency = null;
var lastContextWithAllBitsObserved = null;
var isDisallowedContextReadInDEV = false;
function resetContextDependencies() {
  // This is called right before React yields execution, to ensure `readContext`
  // cannot be called outside the render phase.
  currentlyRenderingFiber = null;
  lastContextDependency = null;
  lastContextWithAllBitsObserved = null;

  {
    isDisallowedContextReadInDEV = false;
  }
}
function enterDisallowedContextReadInDEV() {
  {
    isDisallowedContextReadInDEV = true;
  }
}
function exitDisallowedContextReadInDEV() {
  {
    isDisallowedContextReadInDEV = false;
  }
}
function pushProvider(providerFiber, nextValue) {
  var context = providerFiber.type._context;

  {
    push(valueCursor, context._currentValue, providerFiber);
    context._currentValue = nextValue;

    {
      if (context._currentRenderer !== undefined && context._currentRenderer !== null && context._currentRenderer !== rendererSigil) {
        error('Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.');
      }

      context._currentRenderer = rendererSigil;
    }
  }
}
function popProvider(providerFiber) {
  var currentValue = valueCursor.current;
  pop(valueCursor, providerFiber);
  var context = providerFiber.type._context;

  {
    context._currentValue = currentValue;
  }
}
function calculateChangedBits(context, newValue, oldValue) {
  if (objectIs(oldValue, newValue)) {
    // No change
    return 0;
  } else {
    var changedBits = typeof context._calculateChangedBits === 'function' ? context._calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;

    {
      if ((changedBits & MAX_SIGNED_31_BIT_INT) !== changedBits) {
        error('calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits);
      }
    }

    return changedBits | 0;
  }
}
function scheduleWorkOnParentPath(parent, renderLanes) {
  // Update the child lanes of all the ancestors, including the alternates.
  var node = parent;

  while (node !== null) {
    var alternate = node.alternate;

    if (!isSubsetOfLanes(node.childLanes, renderLanes)) {
      node.childLanes = mergeLanes(node.childLanes, renderLanes);

      if (alternate !== null) {
        alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes);
      }
    } else if (alternate !== null && !isSubsetOfLanes(alternate.childLanes, renderLanes)) {
      alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes);
    } else {
      // Neither alternate was updated, which means the rest of the
      // ancestor path already has sufficient priority.
      break;
    }

    node = node.return;
  }
}
function propagateContextChange(workInProgress, context, changedBits, renderLanes) {
  var fiber = workInProgress.child;

  if (fiber !== null) {
    // Set the return pointer of the child to the work-in-progress fiber.
    fiber.return = workInProgress;
  }

  while (fiber !== null) {
    var nextFiber = void 0; // Visit this fiber.

    var list = fiber.dependencies;

    if (list !== null) {
      nextFiber = fiber.child;
      var dependency = list.firstContext;

      while (dependency !== null) {
        // Check if the context matches.
        if (dependency.context === context && (dependency.observedBits & changedBits) !== 0) {
          // Match! Schedule an update on this fiber.
          if (fiber.tag === ClassComponent) {
            // Schedule a force update on the work-in-progress.
            var update = createUpdate(NoTimestamp, pickArbitraryLane(renderLanes));
            update.tag = ForceUpdate; // TODO: Because we don't have a work-in-progress, this will add the
            // update to the current fiber, too, which means it will persist even if
            // this render is thrown away. Since it's a race condition, not sure it's
            // worth fixing.

            enqueueUpdate(fiber, update);
          }

          fiber.lanes = mergeLanes(fiber.lanes, renderLanes);
          var alternate = fiber.alternate;

          if (alternate !== null) {
            alternate.lanes = mergeLanes(alternate.lanes, renderLanes);
          }

          scheduleWorkOnParentPath(fiber.return, renderLanes); // Mark the updated lanes on the list, too.

          list.lanes = mergeLanes(list.lanes, renderLanes); // Since we already found a match, we can stop traversing the
          // dependency list.

          break;
        }

        dependency = dependency.next;
      }
    } else if (fiber.tag === ContextProvider) {
      // Don't scan deeper if this is a matching provider
      nextFiber = fiber.type === workInProgress.type ? null : fiber.child;
    } else {
      // Traverse down.
      nextFiber = fiber.child;
    }

    if (nextFiber !== null) {
      // Set the return pointer of the child to the work-in-progress fiber.
      nextFiber.return = fiber;
    } else {
      // No child. Traverse to next sibling.
      nextFiber = fiber;

      while (nextFiber !== null) {
        if (nextFiber === workInProgress) {
          // We're back to the root of this subtree. Exit.
          nextFiber = null;
          break;
        }

        var sibling = nextFiber.sibling;

        if (sibling !== null) {
          // Set the return pointer of the sibling to the work-in-progress fiber.
          sibling.return = nextFiber.return;
          nextFiber = sibling;
          break;
        } // No more siblings. Traverse up.


        nextFiber = nextFiber.return;
      }
    }

    fiber = nextFiber;
  }
}
function prepareToReadContext(workInProgress, renderLanes) {
  currentlyRenderingFiber = workInProgress;
  lastContextDependency = null;
  lastContextWithAllBitsObserved = null;
  var dependencies = workInProgress.dependencies;

  if (dependencies !== null) {
    var firstContext = dependencies.firstContext;

    if (firstContext !== null) {
      if (includesSomeLane(dependencies.lanes, renderLanes)) {
        // Context list has a pending update. Mark that this fiber performed work.
        markWorkInProgressReceivedUpdate();
      } // Reset the work-in-progress list


      dependencies.firstContext = null;
    }
  }
}
function readContext(context, observedBits) {
  {
    // This warning would fire if you read context inside a Hook like useMemo.
    // Unlike the class check below, it's not enforced in production for perf.
    if (isDisallowedContextReadInDEV) {
      error('Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');
    }
  }

  if (lastContextWithAllBitsObserved === context) ; else if (observedBits === false || observedBits === 0) ; else {
    var resolvedObservedBits; // Avoid deopting on observable arguments or heterogeneous types.

    if (typeof observedBits !== 'number' || observedBits === MAX_SIGNED_31_BIT_INT) {
      // Observe all updates.
      lastContextWithAllBitsObserved = context;
      resolvedObservedBits = MAX_SIGNED_31_BIT_INT;
    } else {
      resolvedObservedBits = observedBits;
    }

    var contextItem = {
      context: context,
      observedBits: resolvedObservedBits,
      next: null
    };

    if (lastContextDependency === null) {
      if (!(currentlyRenderingFiber !== null)) {
        {
          throw Error( "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." );
        }
      } // This is the first dependency for this component. Create a new list.


      lastContextDependency = contextItem;
      currentlyRenderingFiber.dependencies = {
        lanes: NoLanes,
        firstContext: contextItem,
        responders: null
      };
    } else {
      // Append a new context item.
      lastContextDependency = lastContextDependency.next = contextItem;
    }
  }

  return  context._currentValue ;
}

var UpdateState = 0;
var ReplaceState = 1;
var ForceUpdate = 2;
var CaptureUpdate = 3; // Global state that is reset at the beginning of calling `processUpdateQueue`.
// It should only be read right after calling `processUpdateQueue`, via
// `checkHasForceUpdateAfterProcessing`.

var hasForceUpdate = false;
var didWarnUpdateInsideUpdate;
var currentlyProcessingQueue;

{
  didWarnUpdateInsideUpdate = false;
  currentlyProcessingQueue = null;
}

function initializeUpdateQueue(fiber) {
  var queue = {
    baseState: fiber.memoizedState,
    firstBaseUpdate: null,
    lastBaseUpdate: null,
    shared: {
      pending: null
    },
    effects: null
  };
  fiber.updateQueue = queue;
}
function cloneUpdateQueue(current, workInProgress) {
  // Clone the update queue from current. Unless it's already a clone.
  var queue = workInProgress.updateQueue;
  var currentQueue = current.updateQueue;

  if (queue === currentQueue) {
    var clone = {
      baseState: currentQueue.baseState,
      firstBaseUpdate: currentQueue.firstBaseUpdate,
      lastBaseUpdate: currentQueue.lastBaseUpdate,
      shared: currentQueue.shared,
      effects: currentQueue.effects
    };
    workInProgress.updateQueue = clone;
  }
}
function createUpdate(eventTime, lane) {
  var update = {
    eventTime: eventTime,
    lane: lane,
    tag: UpdateState,
    payload: null,
    callback: null,
    next: null
  };
  return update;
}
function enqueueUpdate(fiber, update) {
  var updateQueue = fiber.updateQueue;

  if (updateQueue === null) {
    // Only occurs if the fiber has been unmounted.
    return;
  }

  var sharedQueue = updateQueue.shared;
  var pending = sharedQueue.pending;

  if (pending === null) {
    // This is the first update. Create a circular list.
    update.next = update;
  } else {
    update.next = pending.next;
    pending.next = update;
  }

  sharedQueue.pending = update;

  {
    if (currentlyProcessingQueue === sharedQueue && !didWarnUpdateInsideUpdate) {
      error('An update (setState, replaceState, or forceUpdate) was scheduled ' + 'from inside an update function. Update functions should be pure, ' + 'with zero side-effects. Consider using componentDidUpdate or a ' + 'callback.');

      didWarnUpdateInsideUpdate = true;
    }
  }
}
function enqueueCapturedUpdate(workInProgress, capturedUpdate) {
  // Captured updates are updates that are thrown by a child during the render
  // phase. They should be discarded if the render is aborted. Therefore,
  // we should only put them on the work-in-progress queue, not the current one.
  var queue = workInProgress.updateQueue; // Check if the work-in-progress queue is a clone.

  var current = workInProgress.alternate;

  if (current !== null) {
    var currentQueue = current.updateQueue;

    if (queue === currentQueue) {
      // The work-in-progress queue is the same as current. This happens when
      // we bail out on a parent fiber that then captures an error thrown by
      // a child. Since we want to append the update only to the work-in
      // -progress queue, we need to clone the updates. We usually clone during
      // processUpdateQueue, but that didn't happen in this case because we
      // skipped over the parent when we bailed out.
      var newFirst = null;
      var newLast = null;
      var firstBaseUpdate = queue.firstBaseUpdate;

      if (firstBaseUpdate !== null) {
        // Loop through the updates and clone them.
        var update = firstBaseUpdate;

        do {
          var clone = {
            eventTime: update.eventTime,
            lane: update.lane,
            tag: update.tag,
            payload: update.payload,
            callback: update.callback,
            next: null
          };

          if (newLast === null) {
            newFirst = newLast = clone;
          } else {
            newLast.next = clone;
            newLast = clone;
          }

          update = update.next;
        } while (update !== null); // Append the captured update the end of the cloned list.


        if (newLast === null) {
          newFirst = newLast = capturedUpdate;
        } else {
          newLast.next = capturedUpdate;
          newLast = capturedUpdate;
        }
      } else {
        // There are no base updates.
        newFirst = newLast = capturedUpdate;
      }

      queue = {
        baseState: currentQueue.baseState,
        firstBaseUpdate: newFirst,
        lastBaseUpdate: newLast,
        shared: currentQueue.shared,
        effects: currentQueue.effects
      };
      workInProgress.updateQueue = queue;
      return;
    }
  } // Append the update to the end of the list.


  var lastBaseUpdate = queue.lastBaseUpdate;

  if (lastBaseUpdate === null) {
    queue.firstBaseUpdate = capturedUpdate;
  } else {
    lastBaseUpdate.next = capturedUpdate;
  }

  queue.lastBaseUpdate = capturedUpdate;
}

function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) {
  switch (update.tag) {
    case ReplaceState:
      {
        var payload = update.payload;

        if (typeof payload === 'function') {
          // Updater function
          {
            enterDisallowedContextReadInDEV();
          }

          var nextState = payload.call(instance, prevState, nextProps);

          {
            if ( workInProgress.mode & StrictMode) {
              disableLogs();

              try {
                payload.call(instance, prevState, nextProps);
              } finally {
                reenableLogs();
              }
            }

            exitDisallowedContextReadInDEV();
          }

          return nextState;
        } // State object


        return payload;
      }

    case CaptureUpdate:
      {
        workInProgress.flags = workInProgress.flags & ~ShouldCapture | DidCapture;
      }
    // Intentional fallthrough

    case UpdateState:
      {
        var _payload = update.payload;
        var partialState;

        if (typeof _payload === 'function') {
          // Updater function
          {
            enterDisallowedContextReadInDEV();
          }

          partialState = _payload.call(instance, prevState, nextProps);

          {
            if ( workInProgress.mode & StrictMode) {
              disableLogs();

              try {
                _payload.call(instance, prevState, nextProps);
              } finally {
                reenableLogs();
              }
            }

            exitDisallowedContextReadInDEV();
          }
        } else {
          // Partial state object
          partialState = _payload;
        }

        if (partialState === null || partialState === undefined) {
          // Null and undefined are treated as no-ops.
          return prevState;
        } // Merge the partial state and the previous state.


        return _assign({}, prevState, partialState);
      }

    case ForceUpdate:
      {
        hasForceUpdate = true;
        return prevState;
      }
  }

  return prevState;
}

function processUpdateQueue(workInProgress, props, instance, renderLanes) {
  // This is always non-null on a ClassComponent or HostRoot
  var queue = workInProgress.updateQueue;
  hasForceUpdate = false;

  {
    currentlyProcessingQueue = queue.shared;
  }

  var firstBaseUpdate = queue.firstBaseUpdate;
  var lastBaseUpdate = queue.lastBaseUpdate; // Check if there are pending updates. If so, transfer them to the base queue.

  var pendingQueue = queue.shared.pending;

  if (pendingQueue !== null) {
    queue.shared.pending = null; // The pending queue is circular. Disconnect the pointer between first
    // and last so that it's non-circular.

    var lastPendingUpdate = pendingQueue;
    var firstPendingUpdate = lastPendingUpdate.next;
    lastPendingUpdate.next = null; // Append pending updates to base queue

    if (lastBaseUpdate === null) {
      firstBaseUpdate = firstPendingUpdate;
    } else {
      lastBaseUpdate.next = firstPendingUpdate;
    }

    lastBaseUpdate = lastPendingUpdate; // If there's a current queue, and it's different from the base queue, then
    // we need to transfer the updates to that queue, too. Because the base
    // queue is a singly-linked list with no cycles, we can append to both
    // lists and take advantage of structural sharing.
    // TODO: Pass `current` as argument

    var current = workInProgress.alternate;

    if (current !== null) {
      // This is always non-null on a ClassComponent or HostRoot
      var currentQueue = current.updateQueue;
      var currentLastBaseUpdate = currentQueue.lastBaseUpdate;

      if (currentLastBaseUpdate !== lastBaseUpdate) {
        if (currentLastBaseUpdate === null) {
          currentQueue.firstBaseUpdate = firstPendingUpdate;
        } else {
          currentLastBaseUpdate.next = firstPendingUpdate;
        }

        currentQueue.lastBaseUpdate = lastPendingUpdate;
      }
    }
  } // These values may change as we process the queue.


  if (firstBaseUpdate !== null) {
    // Iterate through the list of updates to compute the result.
    var newState = queue.baseState; // TODO: Don't need to accumulate this. Instead, we can remove renderLanes
    // from the original lanes.

    var newLanes = NoLanes;
    var newBaseState = null;
    var newFirstBaseUpdate = null;
    var newLastBaseUpdate = null;
    var update = firstBaseUpdate;

    do {
      var updateLane = update.lane;
      var updateEventTime = update.eventTime;

      if (!isSubsetOfLanes(renderLanes, updateLane)) {
        // Priority is insufficient. Skip this update. If this is the first
        // skipped update, the previous update/state is the new base
        // update/state.
        var clone = {
          eventTime: updateEventTime,
          lane: updateLane,
          tag: update.tag,
          payload: update.payload,
          callback: update.callback,
          next: null
        };

        if (newLastBaseUpdate === null) {
          newFirstBaseUpdate = newLastBaseUpdate = clone;
          newBaseState = newState;
        } else {
          newLastBaseUpdate = newLastBaseUpdate.next = clone;
        } // Update the remaining priority in the queue.


        newLanes = mergeLanes(newLanes, updateLane);
      } else {
        // This update does have sufficient priority.
        if (newLastBaseUpdate !== null) {
          var _clone = {
            eventTime: updateEventTime,
            // This update is going to be committed so we never want uncommit
            // it. Using NoLane works because 0 is a subset of all bitmasks, so
            // this will never be skipped by the check above.
            lane: NoLane,
            tag: update.tag,
            payload: update.payload,
            callback: update.callback,
            next: null
          };
          newLastBaseUpdate = newLastBaseUpdate.next = _clone;
        } // Process this update.


        newState = getStateFromUpdate(workInProgress, queue, update, newState, props, instance);
        var callback = update.callback;

        if (callback !== null) {
          workInProgress.flags |= Callback;
          var effects = queue.effects;

          if (effects === null) {
            queue.effects = [update];
          } else {
            effects.push(update);
          }
        }
      }

      update = update.next;

      if (update === null) {
        pendingQueue = queue.shared.pending;

        if (pendingQueue === null) {
          break;
        } else {
          // An update was scheduled from inside a reducer. Add the new
          // pending updates to the end of the list and keep processing.
          var _lastPendingUpdate = pendingQueue; // Intentionally unsound. Pending updates form a circular list, but we
          // unravel them when transferring them to the base queue.

          var _firstPendingUpdate = _lastPendingUpdate.next;
          _lastPendingUpdate.next = null;
          update = _firstPendingUpdate;
          queue.lastBaseUpdate = _lastPendingUpdate;
          queue.shared.pending = null;
        }
      }
    } while (true);

    if (newLastBaseUpdate === null) {
      newBaseState = newState;
    }

    queue.baseState = newBaseState;
    queue.firstBaseUpdate = newFirstBaseUpdate;
    queue.lastBaseUpdate = newLastBaseUpdate; // Set the remaining expiration time to be whatever is remaining in the queue.
    // This should be fine because the only two other things that contribute to
    // expiration time are props and context. We're already in the middle of the
    // begin phase by the time we start processing the queue, so we've already
    // dealt with the props. Context in components that specify
    // shouldComponentUpdate is tricky; but we'll have to account for
    // that regardless.

    markSkippedUpdateLanes(newLanes);
    workInProgress.lanes = newLanes;
    workInProgress.memoizedState = newState;
  }

  {
    currentlyProcessingQueue = null;
  }
}

function callCallback(callback, context) {
  if (!(typeof callback === 'function')) {
    {
      throw Error( "Invalid argument passed as callback. Expected a function. Instead received: " + callback );
    }
  }

  callback.call(context);
}

function resetHasForceUpdateBeforeProcessing() {
  hasForceUpdate = false;
}
function checkHasForceUpdateAfterProcessing() {
  return hasForceUpdate;
}
function commitUpdateQueue(finishedWork, finishedQueue, instance) {
  // Commit the effects
  var effects = finishedQueue.effects;
  finishedQueue.effects = null;

  if (effects !== null) {
    for (var i = 0; i < effects.length; i++) {
      var effect = effects[i];
      var callback = effect.callback;

      if (callback !== null) {
        effect.callback = null;
        callCallback(callback, instance);
      }
    }
  }
}

var fakeInternalInstance = {};
var isArray = Array.isArray; // React.Component uses a shared frozen object by default.
// We'll use it to determine whether we need to initialize legacy refs.

var emptyRefsObject = new React.Component().refs;
var didWarnAboutStateAssignmentForComponent;
var didWarnAboutUninitializedState;
var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate;
var didWarnAboutLegacyLifecyclesAndDerivedState;
var didWarnAboutUndefinedDerivedState;
var warnOnUndefinedDerivedState;
var warnOnInvalidCallback;
var didWarnAboutDirectlyAssigningPropsToState;
var didWarnAboutContextTypeAndContextTypes;
var didWarnAboutInvalidateContextType;

{
  didWarnAboutStateAssignmentForComponent = new Set();
  didWarnAboutUninitializedState = new Set();
  didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();
  didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
  didWarnAboutDirectlyAssigningPropsToState = new Set();
  didWarnAboutUndefinedDerivedState = new Set();
  didWarnAboutContextTypeAndContextTypes = new Set();
  didWarnAboutInvalidateContextType = new Set();
  var didWarnOnInvalidCallback = new Set();

  warnOnInvalidCallback = function (callback, callerName) {
    if (callback === null || typeof callback === 'function') {
      return;
    }

    var key = callerName + '_' + callback;

    if (!didWarnOnInvalidCallback.has(key)) {
      didWarnOnInvalidCallback.add(key);

      error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
    }
  };

  warnOnUndefinedDerivedState = function (type, partialState) {
    if (partialState === undefined) {
      var componentName = getComponentName(type) || 'Component';

      if (!didWarnAboutUndefinedDerivedState.has(componentName)) {
        didWarnAboutUndefinedDerivedState.add(componentName);

        error('%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);
      }
    }
  }; // This is so gross but it's at least non-critical and can be removed if
  // it causes problems. This is meant to give a nicer error message for
  // ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component,
  // ...)) which otherwise throws a "_processChildContext is not a function"
  // exception.


  Object.defineProperty(fakeInternalInstance, '_processChildContext', {
    enumerable: false,
    value: function () {
      {
        {
          throw Error( "_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal)." );
        }
      }
    }
  });
  Object.freeze(fakeInternalInstance);
}

function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) {
  var prevState = workInProgress.memoizedState;

  {
    if ( workInProgress.mode & StrictMode) {
      disableLogs();

      try {
        // Invoke the function an extra time to help detect side-effects.
        getDerivedStateFromProps(nextProps, prevState);
      } finally {
        reenableLogs();
      }
    }
  }

  var partialState = getDerivedStateFromProps(nextProps, prevState);

  {
    warnOnUndefinedDerivedState(ctor, partialState);
  } // Merge the partial state and the previous state.


  var memoizedState = partialState === null || partialState === undefined ? prevState : _assign({}, prevState, partialState);
  workInProgress.memoizedState = memoizedState; // Once the update queue is empty, persist the derived state onto the
  // base state.

  if (workInProgress.lanes === NoLanes) {
    // Queue is always non-null for classes
    var updateQueue = workInProgress.updateQueue;
    updateQueue.baseState = memoizedState;
  }
}
var classComponentUpdater = {
  isMounted: isMounted,
  enqueueSetState: function (inst, payload, callback) {
    var fiber = get(inst);
    var eventTime = requestEventTime();
    var lane = requestUpdateLane(fiber);
    var update = createUpdate(eventTime, lane);
    update.payload = payload;

    if (callback !== undefined && callback !== null) {
      {
        warnOnInvalidCallback(callback, 'setState');
      }

      update.callback = callback;
    }

    enqueueUpdate(fiber, update);
    scheduleUpdateOnFiber(fiber, lane, eventTime);
  },
  enqueueReplaceState: function (inst, payload, callback) {
    var fiber = get(inst);
    var eventTime = requestEventTime();
    var lane = requestUpdateLane(fiber);
    var update = createUpdate(eventTime, lane);
    update.tag = ReplaceState;
    update.payload = payload;

    if (callback !== undefined && callback !== null) {
      {
        warnOnInvalidCallback(callback, 'replaceState');
      }

      update.callback = callback;
    }

    enqueueUpdate(fiber, update);
    scheduleUpdateOnFiber(fiber, lane, eventTime);
  },
  enqueueForceUpdate: function (inst, callback) {
    var fiber = get(inst);
    var eventTime = requestEventTime();
    var lane = requestUpdateLane(fiber);
    var update = createUpdate(eventTime, lane);
    update.tag = ForceUpdate;

    if (callback !== undefined && callback !== null) {
      {
        warnOnInvalidCallback(callback, 'forceUpdate');
      }

      update.callback = callback;
    }

    enqueueUpdate(fiber, update);
    scheduleUpdateOnFiber(fiber, lane, eventTime);
  }
};

function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) {
  var instance = workInProgress.stateNode;

  if (typeof instance.shouldComponentUpdate === 'function') {
    {
      if ( workInProgress.mode & StrictMode) {
        disableLogs();

        try {
          // Invoke the function an extra time to help detect side-effects.
          instance.shouldComponentUpdate(newProps, newState, nextContext);
        } finally {
          reenableLogs();
        }
      }
    }

    var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);

    {
      if (shouldUpdate === undefined) {
        error('%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentName(ctor) || 'Component');
      }
    }

    return shouldUpdate;
  }

  if (ctor.prototype && ctor.prototype.isPureReactComponent) {
    return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState);
  }

  return true;
}

function checkClassInstance(workInProgress, ctor, newProps) {
  var instance = workInProgress.stateNode;

  {
    var name = getComponentName(ctor) || 'Component';
    var renderPresent = instance.render;

    if (!renderPresent) {
      if (ctor.prototype && typeof ctor.prototype.render === 'function') {
        error('%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);
      } else {
        error('%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
      }
    }

    if (instance.getInitialState && !instance.getInitialState.isReactClassApproved && !instance.state) {
      error('getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', name);
    }

    if (instance.getDefaultProps && !instance.getDefaultProps.isReactClassApproved) {
      error('getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', name);
    }

    if (instance.propTypes) {
      error('propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name);
    }

    if (instance.contextType) {
      error('contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name);
    }

    {
      if (instance.contextTypes) {
        error('contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name);
      }

      if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {
        didWarnAboutContextTypeAndContextTypes.add(ctor);

        error('%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);
      }
    }

    if (typeof instance.componentShouldUpdate === 'function') {
      error('%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', name);
    }

    if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {
      error('%s has a method called shouldComponentUpdate(). ' + 'shouldComponentUpdate should not be used when extending React.PureComponent. ' + 'Please extend React.Component if shouldComponentUpdate is used.', getComponentName(ctor) || 'A pure component');
    }

    if (typeof instance.componentDidUnmount === 'function') {
      error('%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name);
    }

    if (typeof instance.componentDidReceiveProps === 'function') {
      error('%s has a method called ' + 'componentDidReceiveProps(). But there is no such lifecycle method. ' + 'If you meant to update the state in response to changing props, ' + 'use componentWillReceiveProps(). If you meant to fetch data or ' + 'run side-effects or mutations after React has updated the UI, use componentDidUpdate().', name);
    }

    if (typeof instance.componentWillRecieveProps === 'function') {
      error('%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name);
    }

    if (typeof instance.UNSAFE_componentWillRecieveProps === 'function') {
      error('%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name);
    }

    var hasMutatedProps = instance.props !== newProps;

    if (instance.props !== undefined && hasMutatedProps) {
      error('%s(...): When calling super() in `%s`, make sure to pass ' + "up the same props that your component's constructor was passed.", name, name);
    }

    if (instance.defaultProps) {
      error('Setting defaultProps as an instance property on %s is not supported and will be ignored.' + ' Instead, define defaultProps as a static property on %s.', name, name);
    }

    if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {
      didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);

      error('%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentName(ctor));
    }

    if (typeof instance.getDerivedStateFromProps === 'function') {
      error('%s: getDerivedStateFromProps() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);
    }

    if (typeof instance.getDerivedStateFromError === 'function') {
      error('%s: getDerivedStateFromError() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);
    }

    if (typeof ctor.getSnapshotBeforeUpdate === 'function') {
      error('%s: getSnapshotBeforeUpdate() is defined as a static method ' + 'and will be ignored. Instead, declare it as an instance method.', name);
    }

    var _state = instance.state;

    if (_state && (typeof _state !== 'object' || isArray(_state))) {
      error('%s.state: must be set to an object or null', name);
    }

    if (typeof instance.getChildContext === 'function' && typeof ctor.childContextTypes !== 'object') {
      error('%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name);
    }
  }
}

function adoptClassInstance(workInProgress, instance) {
  instance.updater = classComponentUpdater;
  workInProgress.stateNode = instance; // The instance needs access to the fiber so that it can schedule updates

  set(instance, workInProgress);

  {
    instance._reactInternalInstance = fakeInternalInstance;
  }
}

function constructClassInstance(workInProgress, ctor, props) {
  var isLegacyContextConsumer = false;
  var unmaskedContext = emptyContextObject;
  var context = emptyContextObject;
  var contextType = ctor.contextType;

  {
    if ('contextType' in ctor) {
      var isValid = // Allow null for conditional declaration
      contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined; // Not a <Context.Consumer>

      if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) {
        didWarnAboutInvalidateContextType.add(ctor);
        var addendum = '';

        if (contextType === undefined) {
          addendum = ' However, it is set to undefined. ' + 'This can be caused by a typo or by mixing up named and default imports. ' + 'This can also happen due to a circular dependency, so ' + 'try moving the createContext() call to a separate file.';
        } else if (typeof contextType !== 'object') {
          addendum = ' However, it is set to a ' + typeof contextType + '.';
        } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) {
          addendum = ' Did you accidentally pass the Context.Provider instead?';
        } else if (contextType._context !== undefined) {
          // <Context.Consumer>
          addendum = ' Did you accidentally pass the Context.Consumer instead?';
        } else {
          addendum = ' However, it is set to an object with keys {' + Object.keys(contextType).join(', ') + '}.';
        }

        error('%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext().%s', getComponentName(ctor) || 'Component', addendum);
      }
    }
  }

  if (typeof contextType === 'object' && contextType !== null) {
    context = readContext(contextType);
  } else {
    unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
    var contextTypes = ctor.contextTypes;
    isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined;
    context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject;
  } // Instantiate twice to help detect side-effects.


  {
    if ( workInProgress.mode & StrictMode) {
      disableLogs();

      try {
        new ctor(props, context); // eslint-disable-line no-new
      } finally {
        reenableLogs();
      }
    }
  }

  var instance = new ctor(props, context);
  var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null;
  adoptClassInstance(workInProgress, instance);

  {
    if (typeof ctor.getDerivedStateFromProps === 'function' && state === null) {
      var componentName = getComponentName(ctor) || 'Component';

      if (!didWarnAboutUninitializedState.has(componentName)) {
        didWarnAboutUninitializedState.add(componentName);

        error('`%s` uses `getDerivedStateFromProps` but its initial state is ' + '%s. This is not recommended. Instead, define the initial state by ' + 'assigning an object to `this.state` in the constructor of `%s`. ' + 'This ensures that `getDerivedStateFromProps` arguments have a consistent shape.', componentName, instance.state === null ? 'null' : 'undefined', componentName);
      }
    } // If new component APIs are defined, "unsafe" lifecycles won't be called.
    // Warn about these lifecycles if they are present.
    // Don't warn about react-lifecycles-compat polyfilled methods though.


    if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {
      var foundWillMountName = null;
      var foundWillReceivePropsName = null;
      var foundWillUpdateName = null;

      if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
        foundWillMountName = 'componentWillMount';
      } else if (typeof instance.UNSAFE_componentWillMount === 'function') {
        foundWillMountName = 'UNSAFE_componentWillMount';
      }

      if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
        foundWillReceivePropsName = 'componentWillReceiveProps';
      } else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
        foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
      }

      if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
        foundWillUpdateName = 'componentWillUpdate';
      } else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
        foundWillUpdateName = 'UNSAFE_componentWillUpdate';
      }

      if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
        var _componentName = getComponentName(ctor) || 'Component';

        var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';

        if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {
          didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);

          error('Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + '%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n' + 'The above lifecycles should be removed. Learn more about this warning here:\n' + 'https://reactjs.org/link/unsafe-component-lifecycles', _componentName, newApiName, foundWillMountName !== null ? "\n  " + foundWillMountName : '', foundWillReceivePropsName !== null ? "\n  " + foundWillReceivePropsName : '', foundWillUpdateName !== null ? "\n  " + foundWillUpdateName : '');
        }
      }
    }
  } // Cache unmasked context so we can avoid recreating masked context unless necessary.
  // ReactFiberContext usually updates this cache but can't for newly-created instances.


  if (isLegacyContextConsumer) {
    cacheContext(workInProgress, unmaskedContext, context);
  }

  return instance;
}

function callComponentWillMount(workInProgress, instance) {
  var oldState = instance.state;

  if (typeof instance.componentWillMount === 'function') {
    instance.componentWillMount();
  }

  if (typeof instance.UNSAFE_componentWillMount === 'function') {
    instance.UNSAFE_componentWillMount();
  }

  if (oldState !== instance.state) {
    {
      error('%s.componentWillMount(): Assigning directly to this.state is ' + "deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentName(workInProgress.type) || 'Component');
    }

    classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  }
}

function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) {
  var oldState = instance.state;

  if (typeof instance.componentWillReceiveProps === 'function') {
    instance.componentWillReceiveProps(newProps, nextContext);
  }

  if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
    instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
  }

  if (instance.state !== oldState) {
    {
      var componentName = getComponentName(workInProgress.type) || 'Component';

      if (!didWarnAboutStateAssignmentForComponent.has(componentName)) {
        didWarnAboutStateAssignmentForComponent.add(componentName);

        error('%s.componentWillReceiveProps(): Assigning directly to ' + "this.state is deprecated (except inside a component's " + 'constructor). Use setState instead.', componentName);
      }
    }

    classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  }
} // Invokes the mount life-cycles on a previously never rendered instance.


function mountClassInstance(workInProgress, ctor, newProps, renderLanes) {
  {
    checkClassInstance(workInProgress, ctor, newProps);
  }

  var instance = workInProgress.stateNode;
  instance.props = newProps;
  instance.state = workInProgress.memoizedState;
  instance.refs = emptyRefsObject;
  initializeUpdateQueue(workInProgress);
  var contextType = ctor.contextType;

  if (typeof contextType === 'object' && contextType !== null) {
    instance.context = readContext(contextType);
  } else {
    var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
    instance.context = getMaskedContext(workInProgress, unmaskedContext);
  }

  {
    if (instance.state === newProps) {
      var componentName = getComponentName(ctor) || 'Component';

      if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {
        didWarnAboutDirectlyAssigningPropsToState.add(componentName);

        error('%s: It is not recommended to assign props directly to state ' + "because updates to props won't be reflected in state. " + 'In most cases, it is better to use props directly.', componentName);
      }
    }

    if (workInProgress.mode & StrictMode) {
      ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance);
    }

    {
      ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance);
    }
  }

  processUpdateQueue(workInProgress, newProps, instance, renderLanes);
  instance.state = workInProgress.memoizedState;
  var getDerivedStateFromProps = ctor.getDerivedStateFromProps;

  if (typeof getDerivedStateFromProps === 'function') {
    applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
    instance.state = workInProgress.memoizedState;
  } // In order to support react-lifecycles-compat polyfilled components,
  // Unsafe lifecycles should not be invoked for components using the new APIs.


  if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
    callComponentWillMount(workInProgress, instance); // If we had additional state updates during this life-cycle, let's
    // process them now.

    processUpdateQueue(workInProgress, newProps, instance, renderLanes);
    instance.state = workInProgress.memoizedState;
  }

  if (typeof instance.componentDidMount === 'function') {
    workInProgress.flags |= Update;
  }
}

function resumeMountClassInstance(workInProgress, ctor, newProps, renderLanes) {
  var instance = workInProgress.stateNode;
  var oldProps = workInProgress.memoizedProps;
  instance.props = oldProps;
  var oldContext = instance.context;
  var contextType = ctor.contextType;
  var nextContext = emptyContextObject;

  if (typeof contextType === 'object' && contextType !== null) {
    nextContext = readContext(contextType);
  } else {
    var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
    nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext);
  }

  var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function'; // Note: During these life-cycles, instance.props/instance.state are what
  // ever the previously attempted to render - not the "current". However,
  // during componentDidUpdate we pass the "current" props.
  // In order to support react-lifecycles-compat polyfilled components,
  // Unsafe lifecycles should not be invoked for components using the new APIs.

  if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
    if (oldProps !== newProps || oldContext !== nextContext) {
      callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
    }
  }

  resetHasForceUpdateBeforeProcessing();
  var oldState = workInProgress.memoizedState;
  var newState = instance.state = oldState;
  processUpdateQueue(workInProgress, newProps, instance, renderLanes);
  newState = workInProgress.memoizedState;

  if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
    // If an update was already in progress, we should schedule an Update
    // effect even though we're bailing out, so that cWU/cDU are called.
    if (typeof instance.componentDidMount === 'function') {
      workInProgress.flags |= Update;
    }

    return false;
  }

  if (typeof getDerivedStateFromProps === 'function') {
    applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
    newState = workInProgress.memoizedState;
  }

  var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);

  if (shouldUpdate) {
    // In order to support react-lifecycles-compat polyfilled components,
    // Unsafe lifecycles should not be invoked for components using the new APIs.
    if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
      if (typeof instance.componentWillMount === 'function') {
        instance.componentWillMount();
      }

      if (typeof instance.UNSAFE_componentWillMount === 'function') {
        instance.UNSAFE_componentWillMount();
      }
    }

    if (typeof instance.componentDidMount === 'function') {
      workInProgress.flags |= Update;
    }
  } else {
    // If an update was already in progress, we should schedule an Update
    // effect even though we're bailing out, so that cWU/cDU are called.
    if (typeof instance.componentDidMount === 'function') {
      workInProgress.flags |= Update;
    } // If shouldComponentUpdate returned false, we should still update the
    // memoized state to indicate that this work can be reused.


    workInProgress.memoizedProps = newProps;
    workInProgress.memoizedState = newState;
  } // Update the existing instance's state, props, and context pointers even
  // if shouldComponentUpdate returns false.


  instance.props = newProps;
  instance.state = newState;
  instance.context = nextContext;
  return shouldUpdate;
} // Invokes the update life-cycles and returns false if it shouldn't rerender.


function updateClassInstance(current, workInProgress, ctor, newProps, renderLanes) {
  var instance = workInProgress.stateNode;
  cloneUpdateQueue(current, workInProgress);
  var unresolvedOldProps = workInProgress.memoizedProps;
  var oldProps = workInProgress.type === workInProgress.elementType ? unresolvedOldProps : resolveDefaultProps(workInProgress.type, unresolvedOldProps);
  instance.props = oldProps;
  var unresolvedNewProps = workInProgress.pendingProps;
  var oldContext = instance.context;
  var contextType = ctor.contextType;
  var nextContext = emptyContextObject;

  if (typeof contextType === 'object' && contextType !== null) {
    nextContext = readContext(contextType);
  } else {
    var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
    nextContext = getMaskedContext(workInProgress, nextUnmaskedContext);
  }

  var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function'; // Note: During these life-cycles, instance.props/instance.state are what
  // ever the previously attempted to render - not the "current". However,
  // during componentDidUpdate we pass the "current" props.
  // In order to support react-lifecycles-compat polyfilled components,
  // Unsafe lifecycles should not be invoked for components using the new APIs.

  if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
    if (unresolvedOldProps !== unresolvedNewProps || oldContext !== nextContext) {
      callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
    }
  }

  resetHasForceUpdateBeforeProcessing();
  var oldState = workInProgress.memoizedState;
  var newState = instance.state = oldState;
  processUpdateQueue(workInProgress, newProps, instance, renderLanes);
  newState = workInProgress.memoizedState;

  if (unresolvedOldProps === unresolvedNewProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
    // If an update was already in progress, we should schedule an Update
    // effect even though we're bailing out, so that cWU/cDU are called.
    if (typeof instance.componentDidUpdate === 'function') {
      if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {
        workInProgress.flags |= Update;
      }
    }

    if (typeof instance.getSnapshotBeforeUpdate === 'function') {
      if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {
        workInProgress.flags |= Snapshot;
      }
    }

    return false;
  }

  if (typeof getDerivedStateFromProps === 'function') {
    applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
    newState = workInProgress.memoizedState;
  }

  var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);

  if (shouldUpdate) {
    // In order to support react-lifecycles-compat polyfilled components,
    // Unsafe lifecycles should not be invoked for components using the new APIs.
    if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === 'function' || typeof instance.componentWillUpdate === 'function')) {
      if (typeof instance.componentWillUpdate === 'function') {
        instance.componentWillUpdate(newProps, newState, nextContext);
      }

      if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
        instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext);
      }
    }

    if (typeof instance.componentDidUpdate === 'function') {
      workInProgress.flags |= Update;
    }

    if (typeof instance.getSnapshotBeforeUpdate === 'function') {
      workInProgress.flags |= Snapshot;
    }
  } else {
    // If an update was already in progress, we should schedule an Update
    // effect even though we're bailing out, so that cWU/cDU are called.
    if (typeof instance.componentDidUpdate === 'function') {
      if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {
        workInProgress.flags |= Update;
      }
    }

    if (typeof instance.getSnapshotBeforeUpdate === 'function') {
      if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {
        workInProgress.flags |= Snapshot;
      }
    } // If shouldComponentUpdate returned false, we should still update the
    // memoized props/state to indicate that this work can be reused.


    workInProgress.memoizedProps = newProps;
    workInProgress.memoizedState = newState;
  } // Update the existing instance's state, props, and context pointers even
  // if shouldComponentUpdate returns false.


  instance.props = newProps;
  instance.state = newState;
  instance.context = nextContext;
  return shouldUpdate;
}

var didWarnAboutMaps;
var didWarnAboutGenerators;
var didWarnAboutStringRefs;
var ownerHasKeyUseWarning;
var ownerHasFunctionTypeWarning;

var warnForMissingKey = function (child, returnFiber) {};

{
  didWarnAboutMaps = false;
  didWarnAboutGenerators = false;
  didWarnAboutStringRefs = {};
  /**
   * Warn if there's no key explicitly set on dynamic arrays of children or
   * object keys are not valid. This allows us to keep track of children between
   * updates.
   */

  ownerHasKeyUseWarning = {};
  ownerHasFunctionTypeWarning = {};

  warnForMissingKey = function (child, returnFiber) {
    if (child === null || typeof child !== 'object') {
      return;
    }

    if (!child._store || child._store.validated || child.key != null) {
      return;
    }

    if (!(typeof child._store === 'object')) {
      {
        throw Error( "React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue." );
      }
    }

    child._store.validated = true;
    var componentName = getComponentName(returnFiber.type) || 'Component';

    if (ownerHasKeyUseWarning[componentName]) {
      return;
    }

    ownerHasKeyUseWarning[componentName] = true;

    error('Each child in a list should have a unique ' + '"key" prop. See https://reactjs.org/link/warning-keys for ' + 'more information.');
  };
}

var isArray$1 = Array.isArray;

function coerceRef(returnFiber, current, element) {
  var mixedRef = element.ref;

  if (mixedRef !== null && typeof mixedRef !== 'function' && typeof mixedRef !== 'object') {
    {
      // TODO: Clean this up once we turn on the string ref warning for
      // everyone, because the strict mode case will no longer be relevant
      if ((returnFiber.mode & StrictMode || warnAboutStringRefs) && // We warn in ReactElement.js if owner and self are equal for string refs
      // because these cannot be automatically converted to an arrow function
      // using a codemod. Therefore, we don't have to warn about string refs again.
      !(element._owner && element._self && element._owner.stateNode !== element._self)) {
        var componentName = getComponentName(returnFiber.type) || 'Component';

        if (!didWarnAboutStringRefs[componentName]) {
          {
            error('A string ref, "%s", has been found within a strict mode tree. ' + 'String refs are a source of potential bugs and should be avoided. ' + 'We recommend using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', mixedRef);
          }

          didWarnAboutStringRefs[componentName] = true;
        }
      }
    }

    if (element._owner) {
      var owner = element._owner;
      var inst;

      if (owner) {
        var ownerFiber = owner;

        if (!(ownerFiber.tag === ClassComponent)) {
          {
            throw Error( "Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref" );
          }
        }

        inst = ownerFiber.stateNode;
      }

      if (!inst) {
        {
          throw Error( "Missing owner for string ref " + mixedRef + ". This error is likely caused by a bug in React. Please file an issue." );
        }
      }

      var stringRef = '' + mixedRef; // Check if previous string ref matches new string ref

      if (current !== null && current.ref !== null && typeof current.ref === 'function' && current.ref._stringRef === stringRef) {
        return current.ref;
      }

      var ref = function (value) {
        var refs = inst.refs;

        if (refs === emptyRefsObject) {
          // This is a lazy pooled frozen object, so we need to initialize.
          refs = inst.refs = {};
        }

        if (value === null) {
          delete refs[stringRef];
        } else {
          refs[stringRef] = value;
        }
      };

      ref._stringRef = stringRef;
      return ref;
    } else {
      if (!(typeof mixedRef === 'string')) {
        {
          throw Error( "Expected ref to be a function, a string, an object returned by React.createRef(), or null." );
        }
      }

      if (!element._owner) {
        {
          throw Error( "Element ref was specified as a string (" + mixedRef + ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://reactjs.org/link/refs-must-have-owner for more information." );
        }
      }
    }
  }

  return mixedRef;
}

function throwOnInvalidObjectType(returnFiber, newChild) {
  if (returnFiber.type !== 'textarea') {
    {
      {
        throw Error( "Objects are not valid as a React child (found: " + (Object.prototype.toString.call(newChild) === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : newChild) + "). If you meant to render a collection of children, use an array instead." );
      }
    }
  }
}

function warnOnFunctionType(returnFiber) {
  {
    var componentName = getComponentName(returnFiber.type) || 'Component';

    if (ownerHasFunctionTypeWarning[componentName]) {
      return;
    }

    ownerHasFunctionTypeWarning[componentName] = true;

    error('Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.');
  }
} // We avoid inlining this to avoid potential deopts from using try/catch.
// to be able to optimize each path individually by branching early. This needs
// a compiler or we can do it manually. Helpers that don't need this branching
// live outside of this function.


function ChildReconciler(shouldTrackSideEffects) {
  function deleteChild(returnFiber, childToDelete) {
    if (!shouldTrackSideEffects) {
      // Noop.
      return;
    } // Deletions are added in reversed order so we add it to the front.
    // At this point, the return fiber's effect list is empty except for
    // deletions, so we can just append the deletion to the list. The remaining
    // effects aren't added until the complete phase. Once we implement
    // resuming, this may not be true.


    var last = returnFiber.lastEffect;

    if (last !== null) {
      last.nextEffect = childToDelete;
      returnFiber.lastEffect = childToDelete;
    } else {
      returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
    }

    childToDelete.nextEffect = null;
    childToDelete.flags = Deletion;
  }

  function deleteRemainingChildren(returnFiber, currentFirstChild) {
    if (!shouldTrackSideEffects) {
      // Noop.
      return null;
    } // TODO: For the shouldClone case, this could be micro-optimized a bit by
    // assuming that after the first child we've already added everything.


    var childToDelete = currentFirstChild;

    while (childToDelete !== null) {
      deleteChild(returnFiber, childToDelete);
      childToDelete = childToDelete.sibling;
    }

    return null;
  }

  function mapRemainingChildren(returnFiber, currentFirstChild) {
    // Add the remaining children to a temporary map so that we can find them by
    // keys quickly. Implicit (null) keys get added to this set with their index
    // instead.
    var existingChildren = new Map();
    var existingChild = currentFirstChild;

    while (existingChild !== null) {
      if (existingChild.key !== null) {
        existingChildren.set(existingChild.key, existingChild);
      } else {
        existingChildren.set(existingChild.index, existingChild);
      }

      existingChild = existingChild.sibling;
    }

    return existingChildren;
  }

  function useFiber(fiber, pendingProps) {
    // We currently set sibling to null and index to 0 here because it is easy
    // to forget to do before returning it. E.g. for the single child case.
    var clone = createWorkInProgress(fiber, pendingProps);
    clone.index = 0;
    clone.sibling = null;
    return clone;
  }

  function placeChild(newFiber, lastPlacedIndex, newIndex) {
    newFiber.index = newIndex;

    if (!shouldTrackSideEffects) {
      // Noop.
      return lastPlacedIndex;
    }

    var current = newFiber.alternate;

    if (current !== null) {
      var oldIndex = current.index;

      if (oldIndex < lastPlacedIndex) {
        // This is a move.
        newFiber.flags = Placement;
        return lastPlacedIndex;
      } else {
        // This item can stay in place.
        return oldIndex;
      }
    } else {
      // This is an insertion.
      newFiber.flags = Placement;
      return lastPlacedIndex;
    }
  }

  function placeSingleChild(newFiber) {
    // This is simpler for the single child case. We only need to do a
    // placement for inserting new children.
    if (shouldTrackSideEffects && newFiber.alternate === null) {
      newFiber.flags = Placement;
    }

    return newFiber;
  }

  function updateTextNode(returnFiber, current, textContent, lanes) {
    if (current === null || current.tag !== HostText) {
      // Insert
      var created = createFiberFromText(textContent, returnFiber.mode, lanes);
      created.return = returnFiber;
      return created;
    } else {
      // Update
      var existing = useFiber(current, textContent);
      existing.return = returnFiber;
      return existing;
    }
  }

  function updateElement(returnFiber, current, element, lanes) {
    if (current !== null) {
      if (current.elementType === element.type || ( // Keep this check inline so it only runs on the false path:
       isCompatibleFamilyForHotReloading(current, element) )) {
        // Move based on index
        var existing = useFiber(current, element.props);
        existing.ref = coerceRef(returnFiber, current, element);
        existing.return = returnFiber;

        {
          existing._debugSource = element._source;
          existing._debugOwner = element._owner;
        }

        return existing;
      }
    } // Insert


    var created = createFiberFromElement(element, returnFiber.mode, lanes);
    created.ref = coerceRef(returnFiber, current, element);
    created.return = returnFiber;
    return created;
  }

  function updatePortal(returnFiber, current, portal, lanes) {
    if (current === null || current.tag !== HostPortal || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) {
      // Insert
      var created = createFiberFromPortal(portal, returnFiber.mode, lanes);
      created.return = returnFiber;
      return created;
    } else {
      // Update
      var existing = useFiber(current, portal.children || []);
      existing.return = returnFiber;
      return existing;
    }
  }

  function updateFragment(returnFiber, current, fragment, lanes, key) {
    if (current === null || current.tag !== Fragment) {
      // Insert
      var created = createFiberFromFragment(fragment, returnFiber.mode, lanes, key);
      created.return = returnFiber;
      return created;
    } else {
      // Update
      var existing = useFiber(current, fragment);
      existing.return = returnFiber;
      return existing;
    }
  }

  function createChild(returnFiber, newChild, lanes) {
    if (typeof newChild === 'string' || typeof newChild === 'number') {
      // Text nodes don't have keys. If the previous node is implicitly keyed
      // we can continue to replace it without aborting even if it is not a text
      // node.
      var created = createFiberFromText('' + newChild, returnFiber.mode, lanes);
      created.return = returnFiber;
      return created;
    }

    if (typeof newChild === 'object' && newChild !== null) {
      switch (newChild.$$typeof) {
        case REACT_ELEMENT_TYPE:
          {
            var _created = createFiberFromElement(newChild, returnFiber.mode, lanes);

            _created.ref = coerceRef(returnFiber, null, newChild);
            _created.return = returnFiber;
            return _created;
          }

        case REACT_PORTAL_TYPE:
          {
            var _created2 = createFiberFromPortal(newChild, returnFiber.mode, lanes);

            _created2.return = returnFiber;
            return _created2;
          }
      }

      if (isArray$1(newChild) || getIteratorFn(newChild)) {
        var _created3 = createFiberFromFragment(newChild, returnFiber.mode, lanes, null);

        _created3.return = returnFiber;
        return _created3;
      }

      throwOnInvalidObjectType(returnFiber, newChild);
    }

    {
      if (typeof newChild === 'function') {
        warnOnFunctionType(returnFiber);
      }
    }

    return null;
  }

  function updateSlot(returnFiber, oldFiber, newChild, lanes) {
    // Update the fiber if the keys match, otherwise return null.
    var key = oldFiber !== null ? oldFiber.key : null;

    if (typeof newChild === 'string' || typeof newChild === 'number') {
      // Text nodes don't have keys. If the previous node is implicitly keyed
      // we can continue to replace it without aborting even if it is not a text
      // node.
      if (key !== null) {
        return null;
      }

      return updateTextNode(returnFiber, oldFiber, '' + newChild, lanes);
    }

    if (typeof newChild === 'object' && newChild !== null) {
      switch (newChild.$$typeof) {
        case REACT_ELEMENT_TYPE:
          {
            if (newChild.key === key) {
              if (newChild.type === REACT_FRAGMENT_TYPE) {
                return updateFragment(returnFiber, oldFiber, newChild.props.children, lanes, key);
              }

              return updateElement(returnFiber, oldFiber, newChild, lanes);
            } else {
              return null;
            }
          }

        case REACT_PORTAL_TYPE:
          {
            if (newChild.key === key) {
              return updatePortal(returnFiber, oldFiber, newChild, lanes);
            } else {
              return null;
            }
          }
      }

      if (isArray$1(newChild) || getIteratorFn(newChild)) {
        if (key !== null) {
          return null;
        }

        return updateFragment(returnFiber, oldFiber, newChild, lanes, null);
      }

      throwOnInvalidObjectType(returnFiber, newChild);
    }

    {
      if (typeof newChild === 'function') {
        warnOnFunctionType(returnFiber);
      }
    }

    return null;
  }

  function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) {
    if (typeof newChild === 'string' || typeof newChild === 'number') {
      // Text nodes don't have keys, so we neither have to check the old nor
      // new node for the key. If both are text nodes, they match.
      var matchedFiber = existingChildren.get(newIdx) || null;
      return updateTextNode(returnFiber, matchedFiber, '' + newChild, lanes);
    }

    if (typeof newChild === 'object' && newChild !== null) {
      switch (newChild.$$typeof) {
        case REACT_ELEMENT_TYPE:
          {
            var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;

            if (newChild.type === REACT_FRAGMENT_TYPE) {
              return updateFragment(returnFiber, _matchedFiber, newChild.props.children, lanes, newChild.key);
            }

            return updateElement(returnFiber, _matchedFiber, newChild, lanes);
          }

        case REACT_PORTAL_TYPE:
          {
            var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;

            return updatePortal(returnFiber, _matchedFiber2, newChild, lanes);
          }

      }

      if (isArray$1(newChild) || getIteratorFn(newChild)) {
        var _matchedFiber3 = existingChildren.get(newIdx) || null;

        return updateFragment(returnFiber, _matchedFiber3, newChild, lanes, null);
      }

      throwOnInvalidObjectType(returnFiber, newChild);
    }

    {
      if (typeof newChild === 'function') {
        warnOnFunctionType(returnFiber);
      }
    }

    return null;
  }
  /**
   * Warns if there is a duplicate or missing key
   */


  function warnOnInvalidKey(child, knownKeys, returnFiber) {
    {
      if (typeof child !== 'object' || child === null) {
        return knownKeys;
      }

      switch (child.$$typeof) {
        case REACT_ELEMENT_TYPE:
        case REACT_PORTAL_TYPE:
          warnForMissingKey(child, returnFiber);
          var key = child.key;

          if (typeof key !== 'string') {
            break;
          }

          if (knownKeys === null) {
            knownKeys = new Set();
            knownKeys.add(key);
            break;
          }

          if (!knownKeys.has(key)) {
            knownKeys.add(key);
            break;
          }

          error('Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);

          break;
      }
    }

    return knownKeys;
  }

  function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, lanes) {
    // This algorithm can't optimize by searching from both ends since we
    // don't have backpointers on fibers. I'm trying to see how far we can get
    // with that model. If it ends up not being worth the tradeoffs, we can
    // add it later.
    // Even with a two ended optimization, we'd want to optimize for the case
    // where there are few changes and brute force the comparison instead of
    // going for the Map. It'd like to explore hitting that path first in
    // forward-only mode and only go for the Map once we notice that we need
    // lots of look ahead. This doesn't handle reversal as well as two ended
    // search but that's unusual. Besides, for the two ended optimization to
    // work on Iterables, we'd need to copy the whole set.
    // In this first iteration, we'll just live with hitting the bad case
    // (adding everything to a Map) in for every insert/move.
    // If you change this code, also update reconcileChildrenIterator() which
    // uses the same algorithm.
    {
      // First, validate keys.
      var knownKeys = null;

      for (var i = 0; i < newChildren.length; i++) {
        var child = newChildren[i];
        knownKeys = warnOnInvalidKey(child, knownKeys, returnFiber);
      }
    }

    var resultingFirstChild = null;
    var previousNewFiber = null;
    var oldFiber = currentFirstChild;
    var lastPlacedIndex = 0;
    var newIdx = 0;
    var nextOldFiber = null;

    for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) {
      if (oldFiber.index > newIdx) {
        nextOldFiber = oldFiber;
        oldFiber = null;
      } else {
        nextOldFiber = oldFiber.sibling;
      }

      var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], lanes);

      if (newFiber === null) {
        // TODO: This breaks on empty slots like null children. That's
        // unfortunate because it triggers the slow path all the time. We need
        // a better way to communicate whether this was a miss or null,
        // boolean, undefined, etc.
        if (oldFiber === null) {
          oldFiber = nextOldFiber;
        }

        break;
      }

      if (shouldTrackSideEffects) {
        if (oldFiber && newFiber.alternate === null) {
          // We matched the slot, but we didn't reuse the existing fiber, so we
          // need to delete the existing child.
          deleteChild(returnFiber, oldFiber);
        }
      }

      lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);

      if (previousNewFiber === null) {
        // TODO: Move out of the loop. This only happens for the first run.
        resultingFirstChild = newFiber;
      } else {
        // TODO: Defer siblings if we're not at the right index for this slot.
        // I.e. if we had null values before, then we want to defer this
        // for each null value. However, we also don't want to call updateSlot
        // with the previous one.
        previousNewFiber.sibling = newFiber;
      }

      previousNewFiber = newFiber;
      oldFiber = nextOldFiber;
    }

    if (newIdx === newChildren.length) {
      // We've reached the end of the new children. We can delete the rest.
      deleteRemainingChildren(returnFiber, oldFiber);
      return resultingFirstChild;
    }

    if (oldFiber === null) {
      // If we don't have any more existing children we can choose a fast path
      // since the rest will all be insertions.
      for (; newIdx < newChildren.length; newIdx++) {
        var _newFiber = createChild(returnFiber, newChildren[newIdx], lanes);

        if (_newFiber === null) {
          continue;
        }

        lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx);

        if (previousNewFiber === null) {
          // TODO: Move out of the loop. This only happens for the first run.
          resultingFirstChild = _newFiber;
        } else {
          previousNewFiber.sibling = _newFiber;
        }

        previousNewFiber = _newFiber;
      }

      return resultingFirstChild;
    } // Add all children to a key map for quick lookups.


    var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.

    for (; newIdx < newChildren.length; newIdx++) {
      var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], lanes);

      if (_newFiber2 !== null) {
        if (shouldTrackSideEffects) {
          if (_newFiber2.alternate !== null) {
            // The new fiber is a work in progress, but if there exists a
            // current, that means that we reused the fiber. We need to delete
            // it from the child list so that we don't add it to the deletion
            // list.
            existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key);
          }
        }

        lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx);

        if (previousNewFiber === null) {
          resultingFirstChild = _newFiber2;
        } else {
          previousNewFiber.sibling = _newFiber2;
        }

        previousNewFiber = _newFiber2;
      }
    }

    if (shouldTrackSideEffects) {
      // Any existing children that weren't consumed above were deleted. We need
      // to add them to the deletion list.
      existingChildren.forEach(function (child) {
        return deleteChild(returnFiber, child);
      });
    }

    return resultingFirstChild;
  }

  function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, lanes) {
    // This is the same implementation as reconcileChildrenArray(),
    // but using the iterator instead.
    var iteratorFn = getIteratorFn(newChildrenIterable);

    if (!(typeof iteratorFn === 'function')) {
      {
        throw Error( "An object is not an iterable. This error is likely caused by a bug in React. Please file an issue." );
      }
    }

    {
      // We don't support rendering Generators because it's a mutation.
      // See https://github.com/facebook/react/issues/12995
      if (typeof Symbol === 'function' && // $FlowFixMe Flow doesn't know about toStringTag
      newChildrenIterable[Symbol.toStringTag] === 'Generator') {
        if (!didWarnAboutGenerators) {
          error('Using Generators as children is unsupported and will likely yield ' + 'unexpected results because enumerating a generator mutates it. ' + 'You may convert it to an array with `Array.from()` or the ' + '`[...spread]` operator before rendering. Keep in mind ' + 'you might need to polyfill these features for older browsers.');
        }

        didWarnAboutGenerators = true;
      } // Warn about using Maps as children


      if (newChildrenIterable.entries === iteratorFn) {
        if (!didWarnAboutMaps) {
          error('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');
        }

        didWarnAboutMaps = true;
      } // First, validate keys.
      // We'll get a different iterator later for the main pass.


      var _newChildren = iteratorFn.call(newChildrenIterable);

      if (_newChildren) {
        var knownKeys = null;

        var _step = _newChildren.next();

        for (; !_step.done; _step = _newChildren.next()) {
          var child = _step.value;
          knownKeys = warnOnInvalidKey(child, knownKeys, returnFiber);
        }
      }
    }

    var newChildren = iteratorFn.call(newChildrenIterable);

    if (!(newChildren != null)) {
      {
        throw Error( "An iterable object provided no iterator." );
      }
    }

    var resultingFirstChild = null;
    var previousNewFiber = null;
    var oldFiber = currentFirstChild;
    var lastPlacedIndex = 0;
    var newIdx = 0;
    var nextOldFiber = null;
    var step = newChildren.next();

    for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) {
      if (oldFiber.index > newIdx) {
        nextOldFiber = oldFiber;
        oldFiber = null;
      } else {
        nextOldFiber = oldFiber.sibling;
      }

      var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes);

      if (newFiber === null) {
        // TODO: This breaks on empty slots like null children. That's
        // unfortunate because it triggers the slow path all the time. We need
        // a better way to communicate whether this was a miss or null,
        // boolean, undefined, etc.
        if (oldFiber === null) {
          oldFiber = nextOldFiber;
        }

        break;
      }

      if (shouldTrackSideEffects) {
        if (oldFiber && newFiber.alternate === null) {
          // We matched the slot, but we didn't reuse the existing fiber, so we
          // need to delete the existing child.
          deleteChild(returnFiber, oldFiber);
        }
      }

      lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);

      if (previousNewFiber === null) {
        // TODO: Move out of the loop. This only happens for the first run.
        resultingFirstChild = newFiber;
      } else {
        // TODO: Defer siblings if we're not at the right index for this slot.
        // I.e. if we had null values before, then we want to defer this
        // for each null value. However, we also don't want to call updateSlot
        // with the previous one.
        previousNewFiber.sibling = newFiber;
      }

      previousNewFiber = newFiber;
      oldFiber = nextOldFiber;
    }

    if (step.done) {
      // We've reached the end of the new children. We can delete the rest.
      deleteRemainingChildren(returnFiber, oldFiber);
      return resultingFirstChild;
    }

    if (oldFiber === null) {
      // If we don't have any more existing children we can choose a fast path
      // since the rest will all be insertions.
      for (; !step.done; newIdx++, step = newChildren.next()) {
        var _newFiber3 = createChild(returnFiber, step.value, lanes);

        if (_newFiber3 === null) {
          continue;
        }

        lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx);

        if (previousNewFiber === null) {
          // TODO: Move out of the loop. This only happens for the first run.
          resultingFirstChild = _newFiber3;
        } else {
          previousNewFiber.sibling = _newFiber3;
        }

        previousNewFiber = _newFiber3;
      }

      return resultingFirstChild;
    } // Add all children to a key map for quick lookups.


    var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.

    for (; !step.done; newIdx++, step = newChildren.next()) {
      var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, lanes);

      if (_newFiber4 !== null) {
        if (shouldTrackSideEffects) {
          if (_newFiber4.alternate !== null) {
            // The new fiber is a work in progress, but if there exists a
            // current, that means that we reused the fiber. We need to delete
            // it from the child list so that we don't add it to the deletion
            // list.
            existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key);
          }
        }

        lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx);

        if (previousNewFiber === null) {
          resultingFirstChild = _newFiber4;
        } else {
          previousNewFiber.sibling = _newFiber4;
        }

        previousNewFiber = _newFiber4;
      }
    }

    if (shouldTrackSideEffects) {
      // Any existing children that weren't consumed above were deleted. We need
      // to add them to the deletion list.
      existingChildren.forEach(function (child) {
        return deleteChild(returnFiber, child);
      });
    }

    return resultingFirstChild;
  }

  function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, lanes) {
    // There's no need to check for keys on text nodes since we don't have a
    // way to define them.
    if (currentFirstChild !== null && currentFirstChild.tag === HostText) {
      // We already have an existing node so let's just update it and delete
      // the rest.
      deleteRemainingChildren(returnFiber, currentFirstChild.sibling);
      var existing = useFiber(currentFirstChild, textContent);
      existing.return = returnFiber;
      return existing;
    } // The existing first child is not a text node so we need to create one
    // and delete the existing ones.


    deleteRemainingChildren(returnFiber, currentFirstChild);
    var created = createFiberFromText(textContent, returnFiber.mode, lanes);
    created.return = returnFiber;
    return created;
  }

  function reconcileSingleElement(returnFiber, currentFirstChild, element, lanes) {
    var key = element.key;
    var child = currentFirstChild;

    while (child !== null) {
      // TODO: If key === null and child.key === null, then this only applies to
      // the first item in the list.
      if (child.key === key) {
        switch (child.tag) {
          case Fragment:
            {
              if (element.type === REACT_FRAGMENT_TYPE) {
                deleteRemainingChildren(returnFiber, child.sibling);
                var existing = useFiber(child, element.props.children);
                existing.return = returnFiber;

                {
                  existing._debugSource = element._source;
                  existing._debugOwner = element._owner;
                }

                return existing;
              }

              break;
            }

          case Block:

          // We intentionally fallthrough here if enableBlocksAPI is not on.
          // eslint-disable-next-lined no-fallthrough

          default:
            {
              if (child.elementType === element.type || ( // Keep this check inline so it only runs on the false path:
               isCompatibleFamilyForHotReloading(child, element) )) {
                deleteRemainingChildren(returnFiber, child.sibling);

                var _existing3 = useFiber(child, element.props);

                _existing3.ref = coerceRef(returnFiber, child, element);
                _existing3.return = returnFiber;

                {
                  _existing3._debugSource = element._source;
                  _existing3._debugOwner = element._owner;
                }

                return _existing3;
              }

              break;
            }
        } // Didn't match.


        deleteRemainingChildren(returnFiber, child);
        break;
      } else {
        deleteChild(returnFiber, child);
      }

      child = child.sibling;
    }

    if (element.type === REACT_FRAGMENT_TYPE) {
      var created = createFiberFromFragment(element.props.children, returnFiber.mode, lanes, element.key);
      created.return = returnFiber;
      return created;
    } else {
      var _created4 = createFiberFromElement(element, returnFiber.mode, lanes);

      _created4.ref = coerceRef(returnFiber, currentFirstChild, element);
      _created4.return = returnFiber;
      return _created4;
    }
  }

  function reconcileSinglePortal(returnFiber, currentFirstChild, portal, lanes) {
    var key = portal.key;
    var child = currentFirstChild;

    while (child !== null) {
      // TODO: If key === null and child.key === null, then this only applies to
      // the first item in the list.
      if (child.key === key) {
        if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) {
          deleteRemainingChildren(returnFiber, child.sibling);
          var existing = useFiber(child, portal.children || []);
          existing.return = returnFiber;
          return existing;
        } else {
          deleteRemainingChildren(returnFiber, child);
          break;
        }
      } else {
        deleteChild(returnFiber, child);
      }

      child = child.sibling;
    }

    var created = createFiberFromPortal(portal, returnFiber.mode, lanes);
    created.return = returnFiber;
    return created;
  } // This API will tag the children with the side-effect of the reconciliation
  // itself. They will be added to the side-effect list as we pass through the
  // children and the parent.


  function reconcileChildFibers(returnFiber, currentFirstChild, newChild, lanes) {
    // This function is not recursive.
    // If the top level item is an array, we treat it as a set of children,
    // not as a fragment. Nested arrays on the other hand will be treated as
    // fragment nodes. Recursion happens at the normal flow.
    // Handle top level unkeyed fragments as if they were arrays.
    // This leads to an ambiguity between <>{[...]}</> and <>...</>.
    // We treat the ambiguous cases above the same.
    var isUnkeyedTopLevelFragment = typeof newChild === 'object' && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null;

    if (isUnkeyedTopLevelFragment) {
      newChild = newChild.props.children;
    } // Handle object types


    var isObject = typeof newChild === 'object' && newChild !== null;

    if (isObject) {
      switch (newChild.$$typeof) {
        case REACT_ELEMENT_TYPE:
          return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, lanes));

        case REACT_PORTAL_TYPE:
          return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, lanes));

      }
    }

    if (typeof newChild === 'string' || typeof newChild === 'number') {
      return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, '' + newChild, lanes));
    }

    if (isArray$1(newChild)) {
      return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, lanes);
    }

    if (getIteratorFn(newChild)) {
      return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, lanes);
    }

    if (isObject) {
      throwOnInvalidObjectType(returnFiber, newChild);
    }

    {
      if (typeof newChild === 'function') {
        warnOnFunctionType(returnFiber);
      }
    }

    if (typeof newChild === 'undefined' && !isUnkeyedTopLevelFragment) {
      // If the new child is undefined, and the return fiber is a composite
      // component, throw an error. If Fiber return types are disabled,
      // we already threw above.
      switch (returnFiber.tag) {
        case ClassComponent:
          {
            {
              var instance = returnFiber.stateNode;

              if (instance.render._isMockFunction) {
                // We allow auto-mocks to proceed as if they're returning null.
                break;
              }
            }
          }
        // Intentionally fall through to the next case, which handles both
        // functions and classes
        // eslint-disable-next-lined no-fallthrough

        case Block:
        case FunctionComponent:
        case ForwardRef:
        case SimpleMemoComponent:
          {
            {
              {
                throw Error( (getComponentName(returnFiber.type) || 'Component') + "(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null." );
              }
            }
          }
      }
    } // Remaining cases are all treated as empty.


    return deleteRemainingChildren(returnFiber, currentFirstChild);
  }

  return reconcileChildFibers;
}

var reconcileChildFibers = ChildReconciler(true);
var mountChildFibers = ChildReconciler(false);
function cloneChildFibers(current, workInProgress) {
  if (!(current === null || workInProgress.child === current.child)) {
    {
      throw Error( "Resuming work not yet implemented." );
    }
  }

  if (workInProgress.child === null) {
    return;
  }

  var currentChild = workInProgress.child;
  var newChild = createWorkInProgress(currentChild, currentChild.pendingProps);
  workInProgress.child = newChild;
  newChild.return = workInProgress;

  while (currentChild.sibling !== null) {
    currentChild = currentChild.sibling;
    newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps);
    newChild.return = workInProgress;
  }

  newChild.sibling = null;
} // Reset a workInProgress child set to prepare it for a second pass.

function resetChildFibers(workInProgress, lanes) {
  var child = workInProgress.child;

  while (child !== null) {
    resetWorkInProgress(child, lanes);
    child = child.sibling;
  }
}

var NO_CONTEXT = {};
var contextStackCursor$1 = createCursor(NO_CONTEXT);
var contextFiberStackCursor = createCursor(NO_CONTEXT);
var rootInstanceStackCursor = createCursor(NO_CONTEXT);

function requiredContext(c) {
  if (!(c !== NO_CONTEXT)) {
    {
      throw Error( "Expected host context to exist. This error is likely caused by a bug in React. Please file an issue." );
    }
  }

  return c;
}

function getRootHostContainer() {
  var rootInstance = requiredContext(rootInstanceStackCursor.current);
  return rootInstance;
}

function pushHostContainer(fiber, nextRootInstance) {
  // Push current root instance onto the stack;
  // This allows us to reset root when portals are popped.
  push(rootInstanceStackCursor, nextRootInstance, fiber); // Track the context and the Fiber that provided it.
  // This enables us to pop only Fibers that provide unique contexts.

  push(contextFiberStackCursor, fiber, fiber); // Finally, we need to push the host context to the stack.
  // However, we can't just call getRootHostContext() and push it because
  // we'd have a different number of entries on the stack depending on
  // whether getRootHostContext() throws somewhere in renderer code or not.
  // So we push an empty value first. This lets us safely unwind on errors.

  push(contextStackCursor$1, NO_CONTEXT, fiber);
  var nextRootContext = getRootHostContext(nextRootInstance); // Now that we know this function doesn't throw, replace it.

  pop(contextStackCursor$1, fiber);
  push(contextStackCursor$1, nextRootContext, fiber);
}

function popHostContainer(fiber) {
  pop(contextStackCursor$1, fiber);
  pop(contextFiberStackCursor, fiber);
  pop(rootInstanceStackCursor, fiber);
}

function getHostContext() {
  var context = requiredContext(contextStackCursor$1.current);
  return context;
}

function pushHostContext(fiber) {
  var rootInstance = requiredContext(rootInstanceStackCursor.current);
  var context = requiredContext(contextStackCursor$1.current);
  var nextContext = getChildHostContext(context, fiber.type); // Don't push this Fiber's context unless it's unique.

  if (context === nextContext) {
    return;
  } // Track the context and the Fiber that provided it.
  // This enables us to pop only Fibers that provide unique contexts.


  push(contextFiberStackCursor, fiber, fiber);
  push(contextStackCursor$1, nextContext, fiber);
}

function popHostContext(fiber) {
  // Do not pop unless this Fiber provided the current context.
  // pushHostContext() only pushes Fibers that provide unique contexts.
  if (contextFiberStackCursor.current !== fiber) {
    return;
  }

  pop(contextStackCursor$1, fiber);
  pop(contextFiberStackCursor, fiber);
}

var DefaultSuspenseContext = 0; // The Suspense Context is split into two parts. The lower bits is
// inherited deeply down the subtree. The upper bits only affect
// this immediate suspense boundary and gets reset each new
// boundary or suspense list.

var SubtreeSuspenseContextMask = 1; // Subtree Flags:
// InvisibleParentSuspenseContext indicates that one of our parent Suspense
// boundaries is not currently showing visible main content.
// Either because it is already showing a fallback or is not mounted at all.
// We can use this to determine if it is desirable to trigger a fallback at
// the parent. If not, then we might need to trigger undesirable boundaries
// and/or suspend the commit to avoid hiding the parent content.

var InvisibleParentSuspenseContext = 1; // Shallow Flags:
// ForceSuspenseFallback can be used by SuspenseList to force newly added
// items into their fallback state during one of the render passes.

var ForceSuspenseFallback = 2;
var suspenseStackCursor = createCursor(DefaultSuspenseContext);
function hasSuspenseContext(parentContext, flag) {
  return (parentContext & flag) !== 0;
}
function setDefaultShallowSuspenseContext(parentContext) {
  return parentContext & SubtreeSuspenseContextMask;
}
function setShallowSuspenseContext(parentContext, shallowContext) {
  return parentContext & SubtreeSuspenseContextMask | shallowContext;
}
function addSubtreeSuspenseContext(parentContext, subtreeContext) {
  return parentContext | subtreeContext;
}
function pushSuspenseContext(fiber, newContext) {
  push(suspenseStackCursor, newContext, fiber);
}
function popSuspenseContext(fiber) {
  pop(suspenseStackCursor, fiber);
}

function shouldCaptureSuspense(workInProgress, hasInvisibleParent) {
  // If it was the primary children that just suspended, capture and render the
  // fallback. Otherwise, don't capture and bubble to the next boundary.
  var nextState = workInProgress.memoizedState;

  if (nextState !== null) {
    if (nextState.dehydrated !== null) {
      // A dehydrated boundary always captures.
      return true;
    }

    return false;
  }

  var props = workInProgress.memoizedProps; // In order to capture, the Suspense component must have a fallback prop.

  if (props.fallback === undefined) {
    return false;
  } // Regular boundaries always capture.


  if (props.unstable_avoidThisFallback !== true) {
    return true;
  } // If it's a boundary we should avoid, then we prefer to bubble up to the
  // parent boundary if it is currently invisible.


  if (hasInvisibleParent) {
    return false;
  } // If the parent is not able to handle it, we must handle it.


  return true;
}
function findFirstSuspended(row) {
  var node = row;

  while (node !== null) {
    if (node.tag === SuspenseComponent) {
      var state = node.memoizedState;

      if (state !== null) {
        var dehydrated = state.dehydrated;

        if (dehydrated === null || isSuspenseInstancePending(dehydrated) || isSuspenseInstanceFallback(dehydrated)) {
          return node;
        }
      }
    } else if (node.tag === SuspenseListComponent && // revealOrder undefined can't be trusted because it don't
    // keep track of whether it suspended or not.
    node.memoizedProps.revealOrder !== undefined) {
      var didSuspend = (node.flags & DidCapture) !== NoFlags;

      if (didSuspend) {
        return node;
      }
    } else if (node.child !== null) {
      node.child.return = node;
      node = node.child;
      continue;
    }

    if (node === row) {
      return null;
    }

    while (node.sibling === null) {
      if (node.return === null || node.return === row) {
        return null;
      }

      node = node.return;
    }

    node.sibling.return = node.return;
    node = node.sibling;
  }

  return null;
}

var NoFlags$1 =
/*  */
0; // Represents whether effect should fire.

var HasEffect =
/* */
1; // Represents the phase in which the effect (not the clean-up) fires.

var Layout =
/*    */
2;
var Passive$1 =
/*   */
4;

// This may have been an insertion or a hydration.

var hydrationParentFiber = null;
var nextHydratableInstance = null;
var isHydrating = false;

function enterHydrationState(fiber) {

  var parentInstance = fiber.stateNode.containerInfo;
  nextHydratableInstance = getFirstHydratableChild(parentInstance);
  hydrationParentFiber = fiber;
  isHydrating = true;
  return true;
}

function deleteHydratableInstance(returnFiber, instance) {
  {
    switch (returnFiber.tag) {
      case HostRoot:
        didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance);
        break;

      case HostComponent:
        didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance);
        break;
    }
  }

  var childToDelete = createFiberFromHostInstanceForDeletion();
  childToDelete.stateNode = instance;
  childToDelete.return = returnFiber;
  childToDelete.flags = Deletion; // This might seem like it belongs on progressedFirstDeletion. However,
  // these children are not part of the reconciliation list of children.
  // Even if we abort and rereconcile the children, that will try to hydrate
  // again and the nodes are still in the host tree so these will be
  // recreated.

  if (returnFiber.lastEffect !== null) {
    returnFiber.lastEffect.nextEffect = childToDelete;
    returnFiber.lastEffect = childToDelete;
  } else {
    returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
  }
}

function insertNonHydratedInstance(returnFiber, fiber) {
  fiber.flags = fiber.flags & ~Hydrating | Placement;

  {
    switch (returnFiber.tag) {
      case HostRoot:
        {
          var parentContainer = returnFiber.stateNode.containerInfo;

          switch (fiber.tag) {
            case HostComponent:
              var type = fiber.type;
              var props = fiber.pendingProps;
              didNotFindHydratableContainerInstance(parentContainer, type);
              break;

            case HostText:
              var text = fiber.pendingProps;
              didNotFindHydratableContainerTextInstance(parentContainer, text);
              break;
          }

          break;
        }

      case HostComponent:
        {
          var parentType = returnFiber.type;
          var parentProps = returnFiber.memoizedProps;
          var parentInstance = returnFiber.stateNode;

          switch (fiber.tag) {
            case HostComponent:
              var _type = fiber.type;
              var _props = fiber.pendingProps;
              didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type);
              break;

            case HostText:
              var _text = fiber.pendingProps;
              didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text);
              break;

            case SuspenseComponent:
              didNotFindHydratableSuspenseInstance(parentType, parentProps);
              break;
          }

          break;
        }

      default:
        return;
    }
  }
}

function tryHydrate(fiber, nextInstance) {
  switch (fiber.tag) {
    case HostComponent:
      {
        var type = fiber.type;
        var props = fiber.pendingProps;
        var instance = canHydrateInstance(nextInstance, type);

        if (instance !== null) {
          fiber.stateNode = instance;
          return true;
        }

        return false;
      }

    case HostText:
      {
        var text = fiber.pendingProps;
        var textInstance = canHydrateTextInstance(nextInstance, text);

        if (textInstance !== null) {
          fiber.stateNode = textInstance;
          return true;
        }

        return false;
      }

    case SuspenseComponent:
      {

        return false;
      }

    default:
      return false;
  }
}

function tryToClaimNextHydratableInstance(fiber) {
  if (!isHydrating) {
    return;
  }

  var nextInstance = nextHydratableInstance;

  if (!nextInstance) {
    // Nothing to hydrate. Make it an insertion.
    insertNonHydratedInstance(hydrationParentFiber, fiber);
    isHydrating = false;
    hydrationParentFiber = fiber;
    return;
  }

  var firstAttemptedInstance = nextInstance;

  if (!tryHydrate(fiber, nextInstance)) {
    // If we can't hydrate this instance let's try the next one.
    // We use this as a heuristic. It's based on intuition and not data so it
    // might be flawed or unnecessary.
    nextInstance = getNextHydratableSibling(firstAttemptedInstance);

    if (!nextInstance || !tryHydrate(fiber, nextInstance)) {
      // Nothing to hydrate. Make it an insertion.
      insertNonHydratedInstance(hydrationParentFiber, fiber);
      isHydrating = false;
      hydrationParentFiber = fiber;
      return;
    } // We matched the next one, we'll now assume that the first one was
    // superfluous and we'll delete it. Since we can't eagerly delete it
    // we'll have to schedule a deletion. To do that, this node needs a dummy
    // fiber associated with it.


    deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance);
  }

  hydrationParentFiber = fiber;
  nextHydratableInstance = getFirstHydratableChild(nextInstance);
}

function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {

  var instance = fiber.stateNode;
  var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber); // TODO: Type this specific to this type of component.

  fiber.updateQueue = updatePayload; // If the update payload indicates that there is a change or if there
  // is a new ref we mark this as an update.

  if (updatePayload !== null) {
    return true;
  }

  return false;
}

function prepareToHydrateHostTextInstance(fiber) {

  var textInstance = fiber.stateNode;
  var textContent = fiber.memoizedProps;
  var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber);

  {
    if (shouldUpdate) {
      // We assume that prepareToHydrateHostTextInstance is called in a context where the
      // hydration parent is the parent host component of this host text.
      var returnFiber = hydrationParentFiber;

      if (returnFiber !== null) {
        switch (returnFiber.tag) {
          case HostRoot:
            {
              var parentContainer = returnFiber.stateNode.containerInfo;
              didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent);
              break;
            }

          case HostComponent:
            {
              var parentType = returnFiber.type;
              var parentProps = returnFiber.memoizedProps;
              var parentInstance = returnFiber.stateNode;
              didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent);
              break;
            }
        }
      }
    }
  }

  return shouldUpdate;
}

function skipPastDehydratedSuspenseInstance(fiber) {

  var suspenseState = fiber.memoizedState;
  var suspenseInstance = suspenseState !== null ? suspenseState.dehydrated : null;

  if (!suspenseInstance) {
    {
      throw Error( "Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue." );
    }
  }

  return getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance);
}

function popToNextHostParent(fiber) {
  var parent = fiber.return;

  while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot && parent.tag !== SuspenseComponent) {
    parent = parent.return;
  }

  hydrationParentFiber = parent;
}

function popHydrationState(fiber) {

  if (fiber !== hydrationParentFiber) {
    // We're deeper than the current hydration context, inside an inserted
    // tree.
    return false;
  }

  if (!isHydrating) {
    // If we're not currently hydrating but we're in a hydration context, then
    // we were an insertion and now need to pop up reenter hydration of our
    // siblings.
    popToNextHostParent(fiber);
    isHydrating = true;
    return false;
  }

  var type = fiber.type; // If we have any remaining hydratable nodes, we need to delete them now.
  // We only do this deeper than head and body since they tend to have random
  // other nodes in them. We also ignore components with pure text content in
  // side of them.
  // TODO: Better heuristic.

  if (fiber.tag !== HostComponent || type !== 'head' && type !== 'body' && !shouldSetTextContent(type, fiber.memoizedProps)) {
    var nextInstance = nextHydratableInstance;

    while (nextInstance) {
      deleteHydratableInstance(fiber, nextInstance);
      nextInstance = getNextHydratableSibling(nextInstance);
    }
  }

  popToNextHostParent(fiber);

  if (fiber.tag === SuspenseComponent) {
    nextHydratableInstance = skipPastDehydratedSuspenseInstance(fiber);
  } else {
    nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null;
  }

  return true;
}

function resetHydrationState() {

  hydrationParentFiber = null;
  nextHydratableInstance = null;
  isHydrating = false;
}

function getIsHydrating() {
  return isHydrating;
}

// and should be reset before starting a new render.
// This tracks which mutable sources need to be reset after a render.

var workInProgressSources = [];
var rendererSigil$1;

{
  // Used to detect multiple renderers using the same mutable source.
  rendererSigil$1 = {};
}

function markSourceAsDirty(mutableSource) {
  workInProgressSources.push(mutableSource);
}
function resetWorkInProgressVersions() {
  for (var i = 0; i < workInProgressSources.length; i++) {
    var mutableSource = workInProgressSources[i];

    {
      mutableSource._workInProgressVersionPrimary = null;
    }
  }

  workInProgressSources.length = 0;
}
function getWorkInProgressVersion(mutableSource) {
  {
    return mutableSource._workInProgressVersionPrimary;
  }
}
function setWorkInProgressVersion(mutableSource, version) {
  {
    mutableSource._workInProgressVersionPrimary = version;
  }

  workInProgressSources.push(mutableSource);
}
function warnAboutMultipleRenderersDEV(mutableSource) {
  {
    {
      if (mutableSource._currentPrimaryRenderer == null) {
        mutableSource._currentPrimaryRenderer = rendererSigil$1;
      } else if (mutableSource._currentPrimaryRenderer !== rendererSigil$1) {
        error('Detected multiple renderers concurrently rendering the ' + 'same mutable source. This is currently unsupported.');
      }
    }
  }
} // Eager reads the version of a mutable source and stores it on the root.

var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,
    ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig;
var didWarnAboutMismatchedHooksForComponent;
var didWarnAboutUseOpaqueIdentifier;

{
  didWarnAboutUseOpaqueIdentifier = {};
  didWarnAboutMismatchedHooksForComponent = new Set();
}

// These are set right before calling the component.
var renderLanes = NoLanes; // The work-in-progress fiber. I've named it differently to distinguish it from
// the work-in-progress hook.

var currentlyRenderingFiber$1 = null; // Hooks are stored as a linked list on the fiber's memoizedState field. The
// current hook list is the list that belongs to the current fiber. The
// work-in-progress hook list is a new list that will be added to the
// work-in-progress fiber.

var currentHook = null;
var workInProgressHook = null; // Whether an update was scheduled at any point during the render phase. This
// does not get reset if we do another render pass; only when we're completely
// finished evaluating this component. This is an optimization so we know
// whether we need to clear render phase updates after a throw.

var didScheduleRenderPhaseUpdate = false; // Where an update was scheduled only during the current render pass. This
// gets reset after each attempt.
// TODO: Maybe there's some way to consolidate this with
// `didScheduleRenderPhaseUpdate`. Or with `numberOfReRenders`.

var didScheduleRenderPhaseUpdateDuringThisPass = false;
var RE_RENDER_LIMIT = 25; // In DEV, this is the name of the currently executing primitive hook

var currentHookNameInDev = null; // In DEV, this list ensures that hooks are called in the same order between renders.
// The list stores the order of hooks used during the initial render (mount).
// Subsequent renders (updates) reference this list.

var hookTypesDev = null;
var hookTypesUpdateIndexDev = -1; // In DEV, this tracks whether currently rendering component needs to ignore
// the dependencies for Hooks that need them (e.g. useEffect or useMemo).
// When true, such Hooks will always be "remounted". Only used during hot reload.

var ignorePreviousDependencies = false;

function mountHookTypesDev() {
  {
    var hookName = currentHookNameInDev;

    if (hookTypesDev === null) {
      hookTypesDev = [hookName];
    } else {
      hookTypesDev.push(hookName);
    }
  }
}

function updateHookTypesDev() {
  {
    var hookName = currentHookNameInDev;

    if (hookTypesDev !== null) {
      hookTypesUpdateIndexDev++;

      if (hookTypesDev[hookTypesUpdateIndexDev] !== hookName) {
        warnOnHookMismatchInDev(hookName);
      }
    }
  }
}

function checkDepsAreArrayDev(deps) {
  {
    if (deps !== undefined && deps !== null && !Array.isArray(deps)) {
      // Verify deps, but only on mount to avoid extra checks.
      // It's unlikely their type would change as usually you define them inline.
      error('%s received a final argument that is not an array (instead, received `%s`). When ' + 'specified, the final argument must be an array.', currentHookNameInDev, typeof deps);
    }
  }
}

function warnOnHookMismatchInDev(currentHookName) {
  {
    var componentName = getComponentName(currentlyRenderingFiber$1.type);

    if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) {
      didWarnAboutMismatchedHooksForComponent.add(componentName);

      if (hookTypesDev !== null) {
        var table = '';
        var secondColumnStart = 30;

        for (var i = 0; i <= hookTypesUpdateIndexDev; i++) {
          var oldHookName = hookTypesDev[i];
          var newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName;
          var row = i + 1 + ". " + oldHookName; // Extra space so second column lines up
          // lol @ IE not supporting String#repeat

          while (row.length < secondColumnStart) {
            row += ' ';
          }

          row += newHookName + '\n';
          table += row;
        }

        error('React has detected a change in the order of Hooks called by %s. ' + 'This will lead to bugs and errors if not fixed. ' + 'For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n' + '   Previous render            Next render\n' + '   ------------------------------------------------------\n' + '%s' + '   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n', componentName, table);
      }
    }
  }
}

function throwInvalidHookError() {
  {
    {
      throw Error( "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." );
    }
  }
}

function areHookInputsEqual(nextDeps, prevDeps) {
  {
    if (ignorePreviousDependencies) {
      // Only true when this component is being hot reloaded.
      return false;
    }
  }

  if (prevDeps === null) {
    {
      error('%s received a final argument during this render, but not during ' + 'the previous render. Even though the final argument is optional, ' + 'its type cannot change between renders.', currentHookNameInDev);
    }

    return false;
  }

  {
    // Don't bother comparing lengths in prod because these arrays should be
    // passed inline.
    if (nextDeps.length !== prevDeps.length) {
      error('The final argument passed to %s changed size between renders. The ' + 'order and size of this array must remain constant.\n\n' + 'Previous: %s\n' + 'Incoming: %s', currentHookNameInDev, "[" + prevDeps.join(', ') + "]", "[" + nextDeps.join(', ') + "]");
    }
  }

  for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) {
    if (objectIs(nextDeps[i], prevDeps[i])) {
      continue;
    }

    return false;
  }

  return true;
}

function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderLanes) {
  renderLanes = nextRenderLanes;
  currentlyRenderingFiber$1 = workInProgress;

  {
    hookTypesDev = current !== null ? current._debugHookTypes : null;
    hookTypesUpdateIndexDev = -1; // Used for hot reloading:

    ignorePreviousDependencies = current !== null && current.type !== workInProgress.type;
  }

  workInProgress.memoizedState = null;
  workInProgress.updateQueue = null;
  workInProgress.lanes = NoLanes; // The following should have already been reset
  // currentHook = null;
  // workInProgressHook = null;
  // didScheduleRenderPhaseUpdate = false;
  // TODO Warn if no hooks are used at all during mount, then some are used during update.
  // Currently we will identify the update render as a mount because memoizedState === null.
  // This is tricky because it's valid for certain types of components (e.g. React.lazy)
  // Using memoizedState to differentiate between mount/update only works if at least one stateful hook is used.
  // Non-stateful hooks (e.g. context) don't get added to memoizedState,
  // so memoizedState would be null during updates and mounts.

  {
    if (current !== null && current.memoizedState !== null) {
      ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV;
    } else if (hookTypesDev !== null) {
      // This dispatcher handles an edge case where a component is updating,
      // but no stateful hooks have been used.
      // We want to match the production code behavior (which will use HooksDispatcherOnMount),
      // but with the extra DEV validation to ensure hooks ordering hasn't changed.
      // This dispatcher does that.
      ReactCurrentDispatcher$1.current = HooksDispatcherOnMountWithHookTypesInDEV;
    } else {
      ReactCurrentDispatcher$1.current = HooksDispatcherOnMountInDEV;
    }
  }

  var children = Component(props, secondArg); // Check if there was a render phase update

  if (didScheduleRenderPhaseUpdateDuringThisPass) {
    // Keep rendering in a loop for as long as render phase updates continue to
    // be scheduled. Use a counter to prevent infinite loops.
    var numberOfReRenders = 0;

    do {
      didScheduleRenderPhaseUpdateDuringThisPass = false;

      if (!(numberOfReRenders < RE_RENDER_LIMIT)) {
        {
          throw Error( "Too many re-renders. React limits the number of renders to prevent an infinite loop." );
        }
      }

      numberOfReRenders += 1;

      {
        // Even when hot reloading, allow dependencies to stabilize
        // after first render to prevent infinite render phase updates.
        ignorePreviousDependencies = false;
      } // Start over from the beginning of the list


      currentHook = null;
      workInProgressHook = null;
      workInProgress.updateQueue = null;

      {
        // Also validate hook order for cascading updates.
        hookTypesUpdateIndexDev = -1;
      }

      ReactCurrentDispatcher$1.current =  HooksDispatcherOnRerenderInDEV ;
      children = Component(props, secondArg);
    } while (didScheduleRenderPhaseUpdateDuringThisPass);
  } // We can assume the previous dispatcher is always this one, since we set it
  // at the beginning of the render phase and there's no re-entrancy.


  ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;

  {
    workInProgress._debugHookTypes = hookTypesDev;
  } // This check uses currentHook so that it works the same in DEV and prod bundles.
  // hookTypesDev could catch more cases (e.g. context) but only in DEV bundles.


  var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null;
  renderLanes = NoLanes;
  currentlyRenderingFiber$1 = null;
  currentHook = null;
  workInProgressHook = null;

  {
    currentHookNameInDev = null;
    hookTypesDev = null;
    hookTypesUpdateIndexDev = -1;
  }

  didScheduleRenderPhaseUpdate = false;

  if (!!didRenderTooFewHooks) {
    {
      throw Error( "Rendered fewer hooks than expected. This may be caused by an accidental early return statement." );
    }
  }

  return children;
}
function bailoutHooks(current, workInProgress, lanes) {
  workInProgress.updateQueue = current.updateQueue;
  workInProgress.flags &= ~(Passive | Update);
  current.lanes = removeLanes(current.lanes, lanes);
}
function resetHooksAfterThrow() {
  // We can assume the previous dispatcher is always this one, since we set it
  // at the beginning of the render phase and there's no re-entrancy.
  ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;

  if (didScheduleRenderPhaseUpdate) {
    // There were render phase updates. These are only valid for this render
    // phase, which we are now aborting. Remove the updates from the queues so
    // they do not persist to the next render. Do not remove updates from hooks
    // that weren't processed.
    //
    // Only reset the updates from the queue if it has a clone. If it does
    // not have a clone, that means it wasn't processed, and the updates were
    // scheduled before we entered the render phase.
    var hook = currentlyRenderingFiber$1.memoizedState;

    while (hook !== null) {
      var queue = hook.queue;

      if (queue !== null) {
        queue.pending = null;
      }

      hook = hook.next;
    }

    didScheduleRenderPhaseUpdate = false;
  }

  renderLanes = NoLanes;
  currentlyRenderingFiber$1 = null;
  currentHook = null;
  workInProgressHook = null;

  {
    hookTypesDev = null;
    hookTypesUpdateIndexDev = -1;
    currentHookNameInDev = null;
    isUpdatingOpaqueValueInRenderPhase = false;
  }

  didScheduleRenderPhaseUpdateDuringThisPass = false;
}

function mountWorkInProgressHook() {
  var hook = {
    memoizedState: null,
    baseState: null,
    baseQueue: null,
    queue: null,
    next: null
  };

  if (workInProgressHook === null) {
    // This is the first hook in the list
    currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook;
  } else {
    // Append to the end of the list
    workInProgressHook = workInProgressHook.next = hook;
  }

  return workInProgressHook;
}

function updateWorkInProgressHook() {
  // This function is used both for updates and for re-renders triggered by a
  // render phase update. It assumes there is either a current hook we can
  // clone, or a work-in-progress hook from a previous render pass that we can
  // use as a base. When we reach the end of the base list, we must switch to
  // the dispatcher used for mounts.
  var nextCurrentHook;

  if (currentHook === null) {
    var current = currentlyRenderingFiber$1.alternate;

    if (current !== null) {
      nextCurrentHook = current.memoizedState;
    } else {
      nextCurrentHook = null;
    }
  } else {
    nextCurrentHook = currentHook.next;
  }

  var nextWorkInProgressHook;

  if (workInProgressHook === null) {
    nextWorkInProgressHook = currentlyRenderingFiber$1.memoizedState;
  } else {
    nextWorkInProgressHook = workInProgressHook.next;
  }

  if (nextWorkInProgressHook !== null) {
    // There's already a work-in-progress. Reuse it.
    workInProgressHook = nextWorkInProgressHook;
    nextWorkInProgressHook = workInProgressHook.next;
    currentHook = nextCurrentHook;
  } else {
    // Clone from the current hook.
    if (!(nextCurrentHook !== null)) {
      {
        throw Error( "Rendered more hooks than during the previous render." );
      }
    }

    currentHook = nextCurrentHook;
    var newHook = {
      memoizedState: currentHook.memoizedState,
      baseState: currentHook.baseState,
      baseQueue: currentHook.baseQueue,
      queue: currentHook.queue,
      next: null
    };

    if (workInProgressHook === null) {
      // This is the first hook in the list.
      currentlyRenderingFiber$1.memoizedState = workInProgressHook = newHook;
    } else {
      // Append to the end of the list.
      workInProgressHook = workInProgressHook.next = newHook;
    }
  }

  return workInProgressHook;
}

function createFunctionComponentUpdateQueue() {
  return {
    lastEffect: null
  };
}

function basicStateReducer(state, action) {
  // $FlowFixMe: Flow doesn't like mixed types
  return typeof action === 'function' ? action(state) : action;
}

function mountReducer(reducer, initialArg, init) {
  var hook = mountWorkInProgressHook();
  var initialState;

  if (init !== undefined) {
    initialState = init(initialArg);
  } else {
    initialState = initialArg;
  }

  hook.memoizedState = hook.baseState = initialState;
  var queue = hook.queue = {
    pending: null,
    dispatch: null,
    lastRenderedReducer: reducer,
    lastRenderedState: initialState
  };
  var dispatch = queue.dispatch = dispatchAction.bind(null, currentlyRenderingFiber$1, queue);
  return [hook.memoizedState, dispatch];
}

function updateReducer(reducer, initialArg, init) {
  var hook = updateWorkInProgressHook();
  var queue = hook.queue;

  if (!(queue !== null)) {
    {
      throw Error( "Should have a queue. This is likely a bug in React. Please file an issue." );
    }
  }

  queue.lastRenderedReducer = reducer;
  var current = currentHook; // The last rebase update that is NOT part of the base state.

  var baseQueue = current.baseQueue; // The last pending update that hasn't been processed yet.

  var pendingQueue = queue.pending;

  if (pendingQueue !== null) {
    // We have new updates that haven't been processed yet.
    // We'll add them to the base queue.
    if (baseQueue !== null) {
      // Merge the pending queue and the base queue.
      var baseFirst = baseQueue.next;
      var pendingFirst = pendingQueue.next;
      baseQueue.next = pendingFirst;
      pendingQueue.next = baseFirst;
    }

    {
      if (current.baseQueue !== baseQueue) {
        // Internal invariant that should never happen, but feasibly could in
        // the future if we implement resuming, or some form of that.
        error('Internal error: Expected work-in-progress queue to be a clone. ' + 'This is a bug in React.');
      }
    }

    current.baseQueue = baseQueue = pendingQueue;
    queue.pending = null;
  }

  if (baseQueue !== null) {
    // We have a queue to process.
    var first = baseQueue.next;
    var newState = current.baseState;
    var newBaseState = null;
    var newBaseQueueFirst = null;
    var newBaseQueueLast = null;
    var update = first;

    do {
      var updateLane = update.lane;

      if (!isSubsetOfLanes(renderLanes, updateLane)) {
        // Priority is insufficient. Skip this update. If this is the first
        // skipped update, the previous update/state is the new base
        // update/state.
        var clone = {
          lane: updateLane,
          action: update.action,
          eagerReducer: update.eagerReducer,
          eagerState: update.eagerState,
          next: null
        };

        if (newBaseQueueLast === null) {
          newBaseQueueFirst = newBaseQueueLast = clone;
          newBaseState = newState;
        } else {
          newBaseQueueLast = newBaseQueueLast.next = clone;
        } // Update the remaining priority in the queue.
        // TODO: Don't need to accumulate this. Instead, we can remove
        // renderLanes from the original lanes.


        currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, updateLane);
        markSkippedUpdateLanes(updateLane);
      } else {
        // This update does have sufficient priority.
        if (newBaseQueueLast !== null) {
          var _clone = {
            // This update is going to be committed so we never want uncommit
            // it. Using NoLane works because 0 is a subset of all bitmasks, so
            // this will never be skipped by the check above.
            lane: NoLane,
            action: update.action,
            eagerReducer: update.eagerReducer,
            eagerState: update.eagerState,
            next: null
          };
          newBaseQueueLast = newBaseQueueLast.next = _clone;
        } // Process this update.


        if (update.eagerReducer === reducer) {
          // If this update was processed eagerly, and its reducer matches the
          // current reducer, we can use the eagerly computed state.
          newState = update.eagerState;
        } else {
          var action = update.action;
          newState = reducer(newState, action);
        }
      }

      update = update.next;
    } while (update !== null && update !== first);

    if (newBaseQueueLast === null) {
      newBaseState = newState;
    } else {
      newBaseQueueLast.next = newBaseQueueFirst;
    } // Mark that the fiber performed work, but only if the new state is
    // different from the current state.


    if (!objectIs(newState, hook.memoizedState)) {
      markWorkInProgressReceivedUpdate();
    }

    hook.memoizedState = newState;
    hook.baseState = newBaseState;
    hook.baseQueue = newBaseQueueLast;
    queue.lastRenderedState = newState;
  }

  var dispatch = queue.dispatch;
  return [hook.memoizedState, dispatch];
}

function rerenderReducer(reducer, initialArg, init) {
  var hook = updateWorkInProgressHook();
  var queue = hook.queue;

  if (!(queue !== null)) {
    {
      throw Error( "Should have a queue. This is likely a bug in React. Please file an issue." );
    }
  }

  queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous
  // work-in-progress hook.

  var dispatch = queue.dispatch;
  var lastRenderPhaseUpdate = queue.pending;
  var newState = hook.memoizedState;

  if (lastRenderPhaseUpdate !== null) {
    // The queue doesn't persist past this render pass.
    queue.pending = null;
    var firstRenderPhaseUpdate = lastRenderPhaseUpdate.next;
    var update = firstRenderPhaseUpdate;

    do {
      // Process this render phase update. We don't have to check the
      // priority because it will always be the same as the current
      // render's.
      var action = update.action;
      newState = reducer(newState, action);
      update = update.next;
    } while (update !== firstRenderPhaseUpdate); // Mark that the fiber performed work, but only if the new state is
    // different from the current state.


    if (!objectIs(newState, hook.memoizedState)) {
      markWorkInProgressReceivedUpdate();
    }

    hook.memoizedState = newState; // Don't persist the state accumulated from the render phase updates to
    // the base state unless the queue is empty.
    // TODO: Not sure if this is the desired semantics, but it's what we
    // do for gDSFP. I can't remember why.

    if (hook.baseQueue === null) {
      hook.baseState = newState;
    }

    queue.lastRenderedState = newState;
  }

  return [newState, dispatch];
}

function readFromUnsubcribedMutableSource(root, source, getSnapshot) {
  {
    warnAboutMultipleRenderersDEV(source);
  }

  var getVersion = source._getVersion;
  var version = getVersion(source._source); // Is it safe for this component to read from this source during the current render?

  var isSafeToReadFromSource = false; // Check the version first.
  // If this render has already been started with a specific version,
  // we can use it alone to determine if we can safely read from the source.

  var currentRenderVersion = getWorkInProgressVersion(source);

  if (currentRenderVersion !== null) {
    // It's safe to read if the store hasn't been mutated since the last time
    // we read something.
    isSafeToReadFromSource = currentRenderVersion === version;
  } else {
    // If there's no version, then this is the first time we've read from the
    // source during the current render pass, so we need to do a bit more work.
    // What we need to determine is if there are any hooks that already
    // subscribed to the source, and if so, whether there are any pending
    // mutations that haven't been synchronized yet.
    //
    // If there are no pending mutations, then `root.mutableReadLanes` will be
    // empty, and we know we can safely read.
    //
    // If there *are* pending mutations, we may still be able to safely read
    // if the currently rendering lanes are inclusive of the pending mutation
    // lanes, since that guarantees that the value we're about to read from
    // the source is consistent with the values that we read during the most
    // recent mutation.
    isSafeToReadFromSource = isSubsetOfLanes(renderLanes, root.mutableReadLanes);

    if (isSafeToReadFromSource) {
      // If it's safe to read from this source during the current render,
      // store the version in case other components read from it.
      // A changed version number will let those components know to throw and restart the render.
      setWorkInProgressVersion(source, version);
    }
  }

  if (isSafeToReadFromSource) {
    var snapshot = getSnapshot(source._source);

    {
      if (typeof snapshot === 'function') {
        error('Mutable source should not return a function as the snapshot value. ' + 'Functions may close over mutable values and cause tearing.');
      }
    }

    return snapshot;
  } else {
    // This handles the special case of a mutable source being shared between renderers.
    // In that case, if the source is mutated between the first and second renderer,
    // The second renderer don't know that it needs to reset the WIP version during unwind,
    // (because the hook only marks sources as dirty if it's written to their WIP version).
    // That would cause this tear check to throw again and eventually be visible to the user.
    // We can avoid this infinite loop by explicitly marking the source as dirty.
    //
    // This can lead to tearing in the first renderer when it resumes,
    // but there's nothing we can do about that (short of throwing here and refusing to continue the render).
    markSourceAsDirty(source);

    {
      {
        throw Error( "Cannot read from mutable source during the current render without tearing. This is a bug in React. Please file an issue." );
      }
    }
  }
}

function useMutableSource(hook, source, getSnapshot, subscribe) {
  var root = getWorkInProgressRoot();

  if (!(root !== null)) {
    {
      throw Error( "Expected a work-in-progress root. This is a bug in React. Please file an issue." );
    }
  }

  var getVersion = source._getVersion;
  var version = getVersion(source._source);
  var dispatcher = ReactCurrentDispatcher$1.current; // eslint-disable-next-line prefer-const

  var _dispatcher$useState = dispatcher.useState(function () {
    return readFromUnsubcribedMutableSource(root, source, getSnapshot);
  }),
      currentSnapshot = _dispatcher$useState[0],
      setSnapshot = _dispatcher$useState[1];

  var snapshot = currentSnapshot; // Grab a handle to the state hook as well.
  // We use it to clear the pending update queue if we have a new source.

  var stateHook = workInProgressHook;
  var memoizedState = hook.memoizedState;
  var refs = memoizedState.refs;
  var prevGetSnapshot = refs.getSnapshot;
  var prevSource = memoizedState.source;
  var prevSubscribe = memoizedState.subscribe;
  var fiber = currentlyRenderingFiber$1;
  hook.memoizedState = {
    refs: refs,
    source: source,
    subscribe: subscribe
  }; // Sync the values needed by our subscription handler after each commit.

  dispatcher.useEffect(function () {
    refs.getSnapshot = getSnapshot; // Normally the dispatch function for a state hook never changes,
    // but this hook recreates the queue in certain cases  to avoid updates from stale sources.
    // handleChange() below needs to reference the dispatch function without re-subscribing,
    // so we use a ref to ensure that it always has the latest version.

    refs.setSnapshot = setSnapshot; // Check for a possible change between when we last rendered now.

    var maybeNewVersion = getVersion(source._source);

    if (!objectIs(version, maybeNewVersion)) {
      var maybeNewSnapshot = getSnapshot(source._source);

      {
        if (typeof maybeNewSnapshot === 'function') {
          error('Mutable source should not return a function as the snapshot value. ' + 'Functions may close over mutable values and cause tearing.');
        }
      }

      if (!objectIs(snapshot, maybeNewSnapshot)) {
        setSnapshot(maybeNewSnapshot);
        var lane = requestUpdateLane(fiber);
        markRootMutableRead(root, lane);
      } // If the source mutated between render and now,
      // there may be state updates already scheduled from the old source.
      // Entangle the updates so that they render in the same batch.


      markRootEntangled(root, root.mutableReadLanes);
    }
  }, [getSnapshot, source, subscribe]); // If we got a new source or subscribe function, re-subscribe in a passive effect.

  dispatcher.useEffect(function () {
    var handleChange = function () {
      var latestGetSnapshot = refs.getSnapshot;
      var latestSetSnapshot = refs.setSnapshot;

      try {
        latestSetSnapshot(latestGetSnapshot(source._source)); // Record a pending mutable source update with the same expiration time.

        var lane = requestUpdateLane(fiber);
        markRootMutableRead(root, lane);
      } catch (error) {
        // A selector might throw after a source mutation.
        // e.g. it might try to read from a part of the store that no longer exists.
        // In this case we should still schedule an update with React.
        // Worst case the selector will throw again and then an error boundary will handle it.
        latestSetSnapshot(function () {
          throw error;
        });
      }
    };

    var unsubscribe = subscribe(source._source, handleChange);

    {
      if (typeof unsubscribe !== 'function') {
        error('Mutable source subscribe function must return an unsubscribe function.');
      }
    }

    return unsubscribe;
  }, [source, subscribe]); // If any of the inputs to useMutableSource change, reading is potentially unsafe.
  //
  // If either the source or the subscription have changed we can't can't trust the update queue.
  // Maybe the source changed in a way that the old subscription ignored but the new one depends on.
  //
  // If the getSnapshot function changed, we also shouldn't rely on the update queue.
  // It's possible that the underlying source was mutated between the when the last "change" event fired,
  // and when the current render (with the new getSnapshot function) is processed.
  //
  // In both cases, we need to throw away pending updates (since they are no longer relevant)
  // and treat reading from the source as we do in the mount case.

  if (!objectIs(prevGetSnapshot, getSnapshot) || !objectIs(prevSource, source) || !objectIs(prevSubscribe, subscribe)) {
    // Create a new queue and setState method,
    // So if there are interleaved updates, they get pushed to the older queue.
    // When this becomes current, the previous queue and dispatch method will be discarded,
    // including any interleaving updates that occur.
    var newQueue = {
      pending: null,
      dispatch: null,
      lastRenderedReducer: basicStateReducer,
      lastRenderedState: snapshot
    };
    newQueue.dispatch = setSnapshot = dispatchAction.bind(null, currentlyRenderingFiber$1, newQueue);
    stateHook.queue = newQueue;
    stateHook.baseQueue = null;
    snapshot = readFromUnsubcribedMutableSource(root, source, getSnapshot);
    stateHook.memoizedState = stateHook.baseState = snapshot;
  }

  return snapshot;
}

function mountMutableSource(source, getSnapshot, subscribe) {
  var hook = mountWorkInProgressHook();
  hook.memoizedState = {
    refs: {
      getSnapshot: getSnapshot,
      setSnapshot: null
    },
    source: source,
    subscribe: subscribe
  };
  return useMutableSource(hook, source, getSnapshot, subscribe);
}

function updateMutableSource(source, getSnapshot, subscribe) {
  var hook = updateWorkInProgressHook();
  return useMutableSource(hook, source, getSnapshot, subscribe);
}

function mountState(initialState) {
  var hook = mountWorkInProgressHook();

  if (typeof initialState === 'function') {
    // $FlowFixMe: Flow doesn't like mixed types
    initialState = initialState();
  }

  hook.memoizedState = hook.baseState = initialState;
  var queue = hook.queue = {
    pending: null,
    dispatch: null,
    lastRenderedReducer: basicStateReducer,
    lastRenderedState: initialState
  };
  var dispatch = queue.dispatch = dispatchAction.bind(null, currentlyRenderingFiber$1, queue);
  return [hook.memoizedState, dispatch];
}

function updateState(initialState) {
  return updateReducer(basicStateReducer);
}

function rerenderState(initialState) {
  return rerenderReducer(basicStateReducer);
}

function pushEffect(tag, create, destroy, deps) {
  var effect = {
    tag: tag,
    create: create,
    destroy: destroy,
    deps: deps,
    // Circular
    next: null
  };
  var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue;

  if (componentUpdateQueue === null) {
    componentUpdateQueue = createFunctionComponentUpdateQueue();
    currentlyRenderingFiber$1.updateQueue = componentUpdateQueue;
    componentUpdateQueue.lastEffect = effect.next = effect;
  } else {
    var lastEffect = componentUpdateQueue.lastEffect;

    if (lastEffect === null) {
      componentUpdateQueue.lastEffect = effect.next = effect;
    } else {
      var firstEffect = lastEffect.next;
      lastEffect.next = effect;
      effect.next = firstEffect;
      componentUpdateQueue.lastEffect = effect;
    }
  }

  return effect;
}

function mountRef(initialValue) {
  var hook = mountWorkInProgressHook();
  var ref = {
    current: initialValue
  };

  {
    Object.seal(ref);
  }

  hook.memoizedState = ref;
  return ref;
}

function updateRef(initialValue) {
  var hook = updateWorkInProgressHook();
  return hook.memoizedState;
}

function mountEffectImpl(fiberFlags, hookFlags, create, deps) {
  var hook = mountWorkInProgressHook();
  var nextDeps = deps === undefined ? null : deps;
  currentlyRenderingFiber$1.flags |= fiberFlags;
  hook.memoizedState = pushEffect(HasEffect | hookFlags, create, undefined, nextDeps);
}

function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
  var hook = updateWorkInProgressHook();
  var nextDeps = deps === undefined ? null : deps;
  var destroy = undefined;

  if (currentHook !== null) {
    var prevEffect = currentHook.memoizedState;
    destroy = prevEffect.destroy;

    if (nextDeps !== null) {
      var prevDeps = prevEffect.deps;

      if (areHookInputsEqual(nextDeps, prevDeps)) {
        pushEffect(hookFlags, create, destroy, nextDeps);
        return;
      }
    }
  }

  currentlyRenderingFiber$1.flags |= fiberFlags;
  hook.memoizedState = pushEffect(HasEffect | hookFlags, create, destroy, nextDeps);
}

function mountEffect(create, deps) {
  {
    // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
    if ('undefined' !== typeof jest) {
      warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
    }
  }

  return mountEffectImpl(Update | Passive, Passive$1, create, deps);
}

function updateEffect(create, deps) {
  {
    // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
    if ('undefined' !== typeof jest) {
      warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
    }
  }

  return updateEffectImpl(Update | Passive, Passive$1, create, deps);
}

function mountLayoutEffect(create, deps) {
  return mountEffectImpl(Update, Layout, create, deps);
}

function updateLayoutEffect(create, deps) {
  return updateEffectImpl(Update, Layout, create, deps);
}

function imperativeHandleEffect(create, ref) {
  if (typeof ref === 'function') {
    var refCallback = ref;

    var _inst = create();

    refCallback(_inst);
    return function () {
      refCallback(null);
    };
  } else if (ref !== null && ref !== undefined) {
    var refObject = ref;

    {
      if (!refObject.hasOwnProperty('current')) {
        error('Expected useImperativeHandle() first argument to either be a ' + 'ref callback or React.createRef() object. Instead received: %s.', 'an object with keys {' + Object.keys(refObject).join(', ') + '}');
      }
    }

    var _inst2 = create();

    refObject.current = _inst2;
    return function () {
      refObject.current = null;
    };
  }
}

function mountImperativeHandle(ref, create, deps) {
  {
    if (typeof create !== 'function') {
      error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null');
    }
  } // TODO: If deps are provided, should we skip comparing the ref itself?


  var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
  return mountEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
}

function updateImperativeHandle(ref, create, deps) {
  {
    if (typeof create !== 'function') {
      error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null');
    }
  } // TODO: If deps are provided, should we skip comparing the ref itself?


  var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
  return updateEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
}

function mountDebugValue(value, formatterFn) {// This hook is normally a no-op.
  // The react-debug-hooks package injects its own implementation
  // so that e.g. DevTools can display custom hook values.
}

var updateDebugValue = mountDebugValue;

function mountCallback(callback, deps) {
  var hook = mountWorkInProgressHook();
  var nextDeps = deps === undefined ? null : deps;
  hook.memoizedState = [callback, nextDeps];
  return callback;
}

function updateCallback(callback, deps) {
  var hook = updateWorkInProgressHook();
  var nextDeps = deps === undefined ? null : deps;
  var prevState = hook.memoizedState;

  if (prevState !== null) {
    if (nextDeps !== null) {
      var prevDeps = prevState[1];

      if (areHookInputsEqual(nextDeps, prevDeps)) {
        return prevState[0];
      }
    }
  }

  hook.memoizedState = [callback, nextDeps];
  return callback;
}

function mountMemo(nextCreate, deps) {
  var hook = mountWorkInProgressHook();
  var nextDeps = deps === undefined ? null : deps;
  var nextValue = nextCreate();
  hook.memoizedState = [nextValue, nextDeps];
  return nextValue;
}

function updateMemo(nextCreate, deps) {
  var hook = updateWorkInProgressHook();
  var nextDeps = deps === undefined ? null : deps;
  var prevState = hook.memoizedState;

  if (prevState !== null) {
    // Assume these are defined. If they're not, areHookInputsEqual will warn.
    if (nextDeps !== null) {
      var prevDeps = prevState[1];

      if (areHookInputsEqual(nextDeps, prevDeps)) {
        return prevState[0];
      }
    }
  }

  var nextValue = nextCreate();
  hook.memoizedState = [nextValue, nextDeps];
  return nextValue;
}

function mountDeferredValue(value) {
  var _mountState = mountState(value),
      prevValue = _mountState[0],
      setValue = _mountState[1];

  mountEffect(function () {
    var prevTransition = ReactCurrentBatchConfig$1.transition;
    ReactCurrentBatchConfig$1.transition = 1;

    try {
      setValue(value);
    } finally {
      ReactCurrentBatchConfig$1.transition = prevTransition;
    }
  }, [value]);
  return prevValue;
}

function updateDeferredValue(value) {
  var _updateState = updateState(),
      prevValue = _updateState[0],
      setValue = _updateState[1];

  updateEffect(function () {
    var prevTransition = ReactCurrentBatchConfig$1.transition;
    ReactCurrentBatchConfig$1.transition = 1;

    try {
      setValue(value);
    } finally {
      ReactCurrentBatchConfig$1.transition = prevTransition;
    }
  }, [value]);
  return prevValue;
}

function rerenderDeferredValue(value) {
  var _rerenderState = rerenderState(),
      prevValue = _rerenderState[0],
      setValue = _rerenderState[1];

  updateEffect(function () {
    var prevTransition = ReactCurrentBatchConfig$1.transition;
    ReactCurrentBatchConfig$1.transition = 1;

    try {
      setValue(value);
    } finally {
      ReactCurrentBatchConfig$1.transition = prevTransition;
    }
  }, [value]);
  return prevValue;
}

function startTransition(setPending, callback) {
  var priorityLevel = getCurrentPriorityLevel();

  {
    runWithPriority$1(priorityLevel < UserBlockingPriority$2 ? UserBlockingPriority$2 : priorityLevel, function () {
      setPending(true);
    });
    runWithPriority$1(priorityLevel > NormalPriority$1 ? NormalPriority$1 : priorityLevel, function () {
      var prevTransition = ReactCurrentBatchConfig$1.transition;
      ReactCurrentBatchConfig$1.transition = 1;

      try {
        setPending(false);
        callback();
      } finally {
        ReactCurrentBatchConfig$1.transition = prevTransition;
      }
    });
  }
}

function mountTransition() {
  var _mountState2 = mountState(false),
      isPending = _mountState2[0],
      setPending = _mountState2[1]; // The `start` method can be stored on a ref, since `setPending`
  // never changes.


  var start = startTransition.bind(null, setPending);
  mountRef(start);
  return [start, isPending];
}

function updateTransition() {
  var _updateState2 = updateState(),
      isPending = _updateState2[0];

  var startRef = updateRef();
  var start = startRef.current;
  return [start, isPending];
}

function rerenderTransition() {
  var _rerenderState2 = rerenderState(),
      isPending = _rerenderState2[0];

  var startRef = updateRef();
  var start = startRef.current;
  return [start, isPending];
}

var isUpdatingOpaqueValueInRenderPhase = false;
function getIsUpdatingOpaqueValueInRenderPhaseInDEV() {
  {
    return isUpdatingOpaqueValueInRenderPhase;
  }
}

function warnOnOpaqueIdentifierAccessInDEV(fiber) {
  {
    // TODO: Should warn in effects and callbacks, too
    var name = getComponentName(fiber.type) || 'Unknown';

    if (getIsRendering() && !didWarnAboutUseOpaqueIdentifier[name]) {
      error('The object passed back from useOpaqueIdentifier is meant to be ' + 'passed through to attributes only. Do not read the ' + 'value directly.');

      didWarnAboutUseOpaqueIdentifier[name] = true;
    }
  }
}

function mountOpaqueIdentifier() {
  var makeId =  makeClientIdInDEV.bind(null, warnOnOpaqueIdentifierAccessInDEV.bind(null, currentlyRenderingFiber$1)) ;

  if (getIsHydrating()) {
    var didUpgrade = false;
    var fiber = currentlyRenderingFiber$1;

    var readValue = function () {
      if (!didUpgrade) {
        // Only upgrade once. This works even inside the render phase because
        // the update is added to a shared queue, which outlasts the
        // in-progress render.
        didUpgrade = true;

        {
          isUpdatingOpaqueValueInRenderPhase = true;
          setId(makeId());
          isUpdatingOpaqueValueInRenderPhase = false;
          warnOnOpaqueIdentifierAccessInDEV(fiber);
        }
      }

      {
        {
          throw Error( "The object passed back from useOpaqueIdentifier is meant to be passed through to attributes only. Do not read the value directly." );
        }
      }
    };

    var id = makeOpaqueHydratingObject(readValue);
    var setId = mountState(id)[1];

    if ((currentlyRenderingFiber$1.mode & BlockingMode) === NoMode) {
      currentlyRenderingFiber$1.flags |= Update | Passive;
      pushEffect(HasEffect | Passive$1, function () {
        setId(makeId());
      }, undefined, null);
    }

    return id;
  } else {
    var _id = makeId();

    mountState(_id);
    return _id;
  }
}

function updateOpaqueIdentifier() {
  var id = updateState()[0];
  return id;
}

function rerenderOpaqueIdentifier() {
  var id = rerenderState()[0];
  return id;
}

function dispatchAction(fiber, queue, action) {
  {
    if (typeof arguments[3] === 'function') {
      error("State updates from the useState() and useReducer() Hooks don't support the " + 'second callback argument. To execute a side effect after ' + 'rendering, declare it in the component body with useEffect().');
    }
  }

  var eventTime = requestEventTime();
  var lane = requestUpdateLane(fiber);
  var update = {
    lane: lane,
    action: action,
    eagerReducer: null,
    eagerState: null,
    next: null
  }; // Append the update to the end of the list.

  var pending = queue.pending;

  if (pending === null) {
    // This is the first update. Create a circular list.
    update.next = update;
  } else {
    update.next = pending.next;
    pending.next = update;
  }

  queue.pending = update;
  var alternate = fiber.alternate;

  if (fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1) {
    // This is a render phase update. Stash it in a lazily-created map of
    // queue -> linked list of updates. After this render pass, we'll restart
    // and apply the stashed updates on top of the work-in-progress hook.
    didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = true;
  } else {
    if (fiber.lanes === NoLanes && (alternate === null || alternate.lanes === NoLanes)) {
      // The queue is currently empty, which means we can eagerly compute the
      // next state before entering the render phase. If the new state is the
      // same as the current state, we may be able to bail out entirely.
      var lastRenderedReducer = queue.lastRenderedReducer;

      if (lastRenderedReducer !== null) {
        var prevDispatcher;

        {
          prevDispatcher = ReactCurrentDispatcher$1.current;
          ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
        }

        try {
          var currentState = queue.lastRenderedState;
          var eagerState = lastRenderedReducer(currentState, action); // Stash the eagerly computed state, and the reducer used to compute
          // it, on the update object. If the reducer hasn't changed by the
          // time we enter the render phase, then the eager state can be used
          // without calling the reducer again.

          update.eagerReducer = lastRenderedReducer;
          update.eagerState = eagerState;

          if (objectIs(eagerState, currentState)) {
            // Fast path. We can bail out without scheduling React to re-render.
            // It's still possible that we'll need to rebase this update later,
            // if the component re-renders for a different reason and by that
            // time the reducer has changed.
            return;
          }
        } catch (error) {// Suppress the error. It will throw again in the render phase.
        } finally {
          {
            ReactCurrentDispatcher$1.current = prevDispatcher;
          }
        }
      }
    }

    {
      // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
      if ('undefined' !== typeof jest) {
        warnIfNotScopedWithMatchingAct(fiber);
        warnIfNotCurrentlyActingUpdatesInDev(fiber);
      }
    }

    scheduleUpdateOnFiber(fiber, lane, eventTime);
  }
}

var ContextOnlyDispatcher = {
  readContext: readContext,
  useCallback: throwInvalidHookError,
  useContext: throwInvalidHookError,
  useEffect: throwInvalidHookError,
  useImperativeHandle: throwInvalidHookError,
  useLayoutEffect: throwInvalidHookError,
  useMemo: throwInvalidHookError,
  useReducer: throwInvalidHookError,
  useRef: throwInvalidHookError,
  useState: throwInvalidHookError,
  useDebugValue: throwInvalidHookError,
  useDeferredValue: throwInvalidHookError,
  useTransition: throwInvalidHookError,
  useMutableSource: throwInvalidHookError,
  useOpaqueIdentifier: throwInvalidHookError,
  unstable_isNewReconciler: enableNewReconciler
};
var HooksDispatcherOnMountInDEV = null;
var HooksDispatcherOnMountWithHookTypesInDEV = null;
var HooksDispatcherOnUpdateInDEV = null;
var HooksDispatcherOnRerenderInDEV = null;
var InvalidNestedHooksDispatcherOnMountInDEV = null;
var InvalidNestedHooksDispatcherOnUpdateInDEV = null;
var InvalidNestedHooksDispatcherOnRerenderInDEV = null;

{
  var warnInvalidContextAccess = function () {
    error('Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');
  };

  var warnInvalidHookAccess = function () {
    error('Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. ' + 'You can only call Hooks at the top level of your React function. ' + 'For more information, see ' + 'https://reactjs.org/link/rules-of-hooks');
  };

  HooksDispatcherOnMountInDEV = {
    readContext: function (context, observedBits) {
      return readContext(context, observedBits);
    },
    useCallback: function (callback, deps) {
      currentHookNameInDev = 'useCallback';
      mountHookTypesDev();
      checkDepsAreArrayDev(deps);
      return mountCallback(callback, deps);
    },
    useContext: function (context, observedBits) {
      currentHookNameInDev = 'useContext';
      mountHookTypesDev();
      return readContext(context, observedBits);
    },
    useEffect: function (create, deps) {
      currentHookNameInDev = 'useEffect';
      mountHookTypesDev();
      checkDepsAreArrayDev(deps);
      return mountEffect(create, deps);
    },
    useImperativeHandle: function (ref, create, deps) {
      currentHookNameInDev = 'useImperativeHandle';
      mountHookTypesDev();
      checkDepsAreArrayDev(deps);
      return mountImperativeHandle(ref, create, deps);
    },
    useLayoutEffect: function (create, deps) {
      currentHookNameInDev = 'useLayoutEffect';
      mountHookTypesDev();
      checkDepsAreArrayDev(deps);
      return mountLayoutEffect(create, deps);
    },
    useMemo: function (create, deps) {
      currentHookNameInDev = 'useMemo';
      mountHookTypesDev();
      checkDepsAreArrayDev(deps);
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountMemo(create, deps);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useReducer: function (reducer, initialArg, init) {
      currentHookNameInDev = 'useReducer';
      mountHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountReducer(reducer, initialArg, init);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useRef: function (initialValue) {
      currentHookNameInDev = 'useRef';
      mountHookTypesDev();
      return mountRef(initialValue);
    },
    useState: function (initialState) {
      currentHookNameInDev = 'useState';
      mountHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountState(initialState);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useDebugValue: function (value, formatterFn) {
      currentHookNameInDev = 'useDebugValue';
      mountHookTypesDev();
      return mountDebugValue();
    },
    useDeferredValue: function (value) {
      currentHookNameInDev = 'useDeferredValue';
      mountHookTypesDev();
      return mountDeferredValue(value);
    },
    useTransition: function () {
      currentHookNameInDev = 'useTransition';
      mountHookTypesDev();
      return mountTransition();
    },
    useMutableSource: function (source, getSnapshot, subscribe) {
      currentHookNameInDev = 'useMutableSource';
      mountHookTypesDev();
      return mountMutableSource(source, getSnapshot, subscribe);
    },
    useOpaqueIdentifier: function () {
      currentHookNameInDev = 'useOpaqueIdentifier';
      mountHookTypesDev();
      return mountOpaqueIdentifier();
    },
    unstable_isNewReconciler: enableNewReconciler
  };
  HooksDispatcherOnMountWithHookTypesInDEV = {
    readContext: function (context, observedBits) {
      return readContext(context, observedBits);
    },
    useCallback: function (callback, deps) {
      currentHookNameInDev = 'useCallback';
      updateHookTypesDev();
      return mountCallback(callback, deps);
    },
    useContext: function (context, observedBits) {
      currentHookNameInDev = 'useContext';
      updateHookTypesDev();
      return readContext(context, observedBits);
    },
    useEffect: function (create, deps) {
      currentHookNameInDev = 'useEffect';
      updateHookTypesDev();
      return mountEffect(create, deps);
    },
    useImperativeHandle: function (ref, create, deps) {
      currentHookNameInDev = 'useImperativeHandle';
      updateHookTypesDev();
      return mountImperativeHandle(ref, create, deps);
    },
    useLayoutEffect: function (create, deps) {
      currentHookNameInDev = 'useLayoutEffect';
      updateHookTypesDev();
      return mountLayoutEffect(create, deps);
    },
    useMemo: function (create, deps) {
      currentHookNameInDev = 'useMemo';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountMemo(create, deps);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useReducer: function (reducer, initialArg, init) {
      currentHookNameInDev = 'useReducer';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountReducer(reducer, initialArg, init);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useRef: function (initialValue) {
      currentHookNameInDev = 'useRef';
      updateHookTypesDev();
      return mountRef(initialValue);
    },
    useState: function (initialState) {
      currentHookNameInDev = 'useState';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountState(initialState);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useDebugValue: function (value, formatterFn) {
      currentHookNameInDev = 'useDebugValue';
      updateHookTypesDev();
      return mountDebugValue();
    },
    useDeferredValue: function (value) {
      currentHookNameInDev = 'useDeferredValue';
      updateHookTypesDev();
      return mountDeferredValue(value);
    },
    useTransition: function () {
      currentHookNameInDev = 'useTransition';
      updateHookTypesDev();
      return mountTransition();
    },
    useMutableSource: function (source, getSnapshot, subscribe) {
      currentHookNameInDev = 'useMutableSource';
      updateHookTypesDev();
      return mountMutableSource(source, getSnapshot, subscribe);
    },
    useOpaqueIdentifier: function () {
      currentHookNameInDev = 'useOpaqueIdentifier';
      updateHookTypesDev();
      return mountOpaqueIdentifier();
    },
    unstable_isNewReconciler: enableNewReconciler
  };
  HooksDispatcherOnUpdateInDEV = {
    readContext: function (context, observedBits) {
      return readContext(context, observedBits);
    },
    useCallback: function (callback, deps) {
      currentHookNameInDev = 'useCallback';
      updateHookTypesDev();
      return updateCallback(callback, deps);
    },
    useContext: function (context, observedBits) {
      currentHookNameInDev = 'useContext';
      updateHookTypesDev();
      return readContext(context, observedBits);
    },
    useEffect: function (create, deps) {
      currentHookNameInDev = 'useEffect';
      updateHookTypesDev();
      return updateEffect(create, deps);
    },
    useImperativeHandle: function (ref, create, deps) {
      currentHookNameInDev = 'useImperativeHandle';
      updateHookTypesDev();
      return updateImperativeHandle(ref, create, deps);
    },
    useLayoutEffect: function (create, deps) {
      currentHookNameInDev = 'useLayoutEffect';
      updateHookTypesDev();
      return updateLayoutEffect(create, deps);
    },
    useMemo: function (create, deps) {
      currentHookNameInDev = 'useMemo';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return updateMemo(create, deps);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useReducer: function (reducer, initialArg, init) {
      currentHookNameInDev = 'useReducer';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return updateReducer(reducer, initialArg, init);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useRef: function (initialValue) {
      currentHookNameInDev = 'useRef';
      updateHookTypesDev();
      return updateRef();
    },
    useState: function (initialState) {
      currentHookNameInDev = 'useState';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return updateState(initialState);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useDebugValue: function (value, formatterFn) {
      currentHookNameInDev = 'useDebugValue';
      updateHookTypesDev();
      return updateDebugValue();
    },
    useDeferredValue: function (value) {
      currentHookNameInDev = 'useDeferredValue';
      updateHookTypesDev();
      return updateDeferredValue(value);
    },
    useTransition: function () {
      currentHookNameInDev = 'useTransition';
      updateHookTypesDev();
      return updateTransition();
    },
    useMutableSource: function (source, getSnapshot, subscribe) {
      currentHookNameInDev = 'useMutableSource';
      updateHookTypesDev();
      return updateMutableSource(source, getSnapshot, subscribe);
    },
    useOpaqueIdentifier: function () {
      currentHookNameInDev = 'useOpaqueIdentifier';
      updateHookTypesDev();
      return updateOpaqueIdentifier();
    },
    unstable_isNewReconciler: enableNewReconciler
  };
  HooksDispatcherOnRerenderInDEV = {
    readContext: function (context, observedBits) {
      return readContext(context, observedBits);
    },
    useCallback: function (callback, deps) {
      currentHookNameInDev = 'useCallback';
      updateHookTypesDev();
      return updateCallback(callback, deps);
    },
    useContext: function (context, observedBits) {
      currentHookNameInDev = 'useContext';
      updateHookTypesDev();
      return readContext(context, observedBits);
    },
    useEffect: function (create, deps) {
      currentHookNameInDev = 'useEffect';
      updateHookTypesDev();
      return updateEffect(create, deps);
    },
    useImperativeHandle: function (ref, create, deps) {
      currentHookNameInDev = 'useImperativeHandle';
      updateHookTypesDev();
      return updateImperativeHandle(ref, create, deps);
    },
    useLayoutEffect: function (create, deps) {
      currentHookNameInDev = 'useLayoutEffect';
      updateHookTypesDev();
      return updateLayoutEffect(create, deps);
    },
    useMemo: function (create, deps) {
      currentHookNameInDev = 'useMemo';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;

      try {
        return updateMemo(create, deps);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useReducer: function (reducer, initialArg, init) {
      currentHookNameInDev = 'useReducer';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;

      try {
        return rerenderReducer(reducer, initialArg, init);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useRef: function (initialValue) {
      currentHookNameInDev = 'useRef';
      updateHookTypesDev();
      return updateRef();
    },
    useState: function (initialState) {
      currentHookNameInDev = 'useState';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;

      try {
        return rerenderState(initialState);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useDebugValue: function (value, formatterFn) {
      currentHookNameInDev = 'useDebugValue';
      updateHookTypesDev();
      return updateDebugValue();
    },
    useDeferredValue: function (value) {
      currentHookNameInDev = 'useDeferredValue';
      updateHookTypesDev();
      return rerenderDeferredValue(value);
    },
    useTransition: function () {
      currentHookNameInDev = 'useTransition';
      updateHookTypesDev();
      return rerenderTransition();
    },
    useMutableSource: function (source, getSnapshot, subscribe) {
      currentHookNameInDev = 'useMutableSource';
      updateHookTypesDev();
      return updateMutableSource(source, getSnapshot, subscribe);
    },
    useOpaqueIdentifier: function () {
      currentHookNameInDev = 'useOpaqueIdentifier';
      updateHookTypesDev();
      return rerenderOpaqueIdentifier();
    },
    unstable_isNewReconciler: enableNewReconciler
  };
  InvalidNestedHooksDispatcherOnMountInDEV = {
    readContext: function (context, observedBits) {
      warnInvalidContextAccess();
      return readContext(context, observedBits);
    },
    useCallback: function (callback, deps) {
      currentHookNameInDev = 'useCallback';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountCallback(callback, deps);
    },
    useContext: function (context, observedBits) {
      currentHookNameInDev = 'useContext';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return readContext(context, observedBits);
    },
    useEffect: function (create, deps) {
      currentHookNameInDev = 'useEffect';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountEffect(create, deps);
    },
    useImperativeHandle: function (ref, create, deps) {
      currentHookNameInDev = 'useImperativeHandle';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountImperativeHandle(ref, create, deps);
    },
    useLayoutEffect: function (create, deps) {
      currentHookNameInDev = 'useLayoutEffect';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountLayoutEffect(create, deps);
    },
    useMemo: function (create, deps) {
      currentHookNameInDev = 'useMemo';
      warnInvalidHookAccess();
      mountHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountMemo(create, deps);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useReducer: function (reducer, initialArg, init) {
      currentHookNameInDev = 'useReducer';
      warnInvalidHookAccess();
      mountHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountReducer(reducer, initialArg, init);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useRef: function (initialValue) {
      currentHookNameInDev = 'useRef';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountRef(initialValue);
    },
    useState: function (initialState) {
      currentHookNameInDev = 'useState';
      warnInvalidHookAccess();
      mountHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountState(initialState);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useDebugValue: function (value, formatterFn) {
      currentHookNameInDev = 'useDebugValue';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountDebugValue();
    },
    useDeferredValue: function (value) {
      currentHookNameInDev = 'useDeferredValue';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountDeferredValue(value);
    },
    useTransition: function () {
      currentHookNameInDev = 'useTransition';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountTransition();
    },
    useMutableSource: function (source, getSnapshot, subscribe) {
      currentHookNameInDev = 'useMutableSource';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountMutableSource(source, getSnapshot, subscribe);
    },
    useOpaqueIdentifier: function () {
      currentHookNameInDev = 'useOpaqueIdentifier';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountOpaqueIdentifier();
    },
    unstable_isNewReconciler: enableNewReconciler
  };
  InvalidNestedHooksDispatcherOnUpdateInDEV = {
    readContext: function (context, observedBits) {
      warnInvalidContextAccess();
      return readContext(context, observedBits);
    },
    useCallback: function (callback, deps) {
      currentHookNameInDev = 'useCallback';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateCallback(callback, deps);
    },
    useContext: function (context, observedBits) {
      currentHookNameInDev = 'useContext';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return readContext(context, observedBits);
    },
    useEffect: function (create, deps) {
      currentHookNameInDev = 'useEffect';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateEffect(create, deps);
    },
    useImperativeHandle: function (ref, create, deps) {
      currentHookNameInDev = 'useImperativeHandle';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateImperativeHandle(ref, create, deps);
    },
    useLayoutEffect: function (create, deps) {
      currentHookNameInDev = 'useLayoutEffect';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateLayoutEffect(create, deps);
    },
    useMemo: function (create, deps) {
      currentHookNameInDev = 'useMemo';
      warnInvalidHookAccess();
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return updateMemo(create, deps);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useReducer: function (reducer, initialArg, init) {
      currentHookNameInDev = 'useReducer';
      warnInvalidHookAccess();
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return updateReducer(reducer, initialArg, init);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useRef: function (initialValue) {
      currentHookNameInDev = 'useRef';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateRef();
    },
    useState: function (initialState) {
      currentHookNameInDev = 'useState';
      warnInvalidHookAccess();
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return updateState(initialState);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useDebugValue: function (value, formatterFn) {
      currentHookNameInDev = 'useDebugValue';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateDebugValue();
    },
    useDeferredValue: function (value) {
      currentHookNameInDev = 'useDeferredValue';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateDeferredValue(value);
    },
    useTransition: function () {
      currentHookNameInDev = 'useTransition';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateTransition();
    },
    useMutableSource: function (source, getSnapshot, subscribe) {
      currentHookNameInDev = 'useMutableSource';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateMutableSource(source, getSnapshot, subscribe);
    },
    useOpaqueIdentifier: function () {
      currentHookNameInDev = 'useOpaqueIdentifier';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateOpaqueIdentifier();
    },
    unstable_isNewReconciler: enableNewReconciler
  };
  InvalidNestedHooksDispatcherOnRerenderInDEV = {
    readContext: function (context, observedBits) {
      warnInvalidContextAccess();
      return readContext(context, observedBits);
    },
    useCallback: function (callback, deps) {
      currentHookNameInDev = 'useCallback';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateCallback(callback, deps);
    },
    useContext: function (context, observedBits) {
      currentHookNameInDev = 'useContext';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return readContext(context, observedBits);
    },
    useEffect: function (create, deps) {
      currentHookNameInDev = 'useEffect';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateEffect(create, deps);
    },
    useImperativeHandle: function (ref, create, deps) {
      currentHookNameInDev = 'useImperativeHandle';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateImperativeHandle(ref, create, deps);
    },
    useLayoutEffect: function (create, deps) {
      currentHookNameInDev = 'useLayoutEffect';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateLayoutEffect(create, deps);
    },
    useMemo: function (create, deps) {
      currentHookNameInDev = 'useMemo';
      warnInvalidHookAccess();
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return updateMemo(create, deps);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useReducer: function (reducer, initialArg, init) {
      currentHookNameInDev = 'useReducer';
      warnInvalidHookAccess();
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return rerenderReducer(reducer, initialArg, init);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useRef: function (initialValue) {
      currentHookNameInDev = 'useRef';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateRef();
    },
    useState: function (initialState) {
      currentHookNameInDev = 'useState';
      warnInvalidHookAccess();
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return rerenderState(initialState);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useDebugValue: function (value, formatterFn) {
      currentHookNameInDev = 'useDebugValue';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateDebugValue();
    },
    useDeferredValue: function (value) {
      currentHookNameInDev = 'useDeferredValue';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return rerenderDeferredValue(value);
    },
    useTransition: function () {
      currentHookNameInDev = 'useTransition';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return rerenderTransition();
    },
    useMutableSource: function (source, getSnapshot, subscribe) {
      currentHookNameInDev = 'useMutableSource';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateMutableSource(source, getSnapshot, subscribe);
    },
    useOpaqueIdentifier: function () {
      currentHookNameInDev = 'useOpaqueIdentifier';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return rerenderOpaqueIdentifier();
    },
    unstable_isNewReconciler: enableNewReconciler
  };
}

var now$1 = Scheduler.unstable_now;
var commitTime = 0;
var profilerStartTime = -1;

function getCommitTime() {
  return commitTime;
}

function recordCommitTime() {

  commitTime = now$1();
}

function startProfilerTimer(fiber) {

  profilerStartTime = now$1();

  if (fiber.actualStartTime < 0) {
    fiber.actualStartTime = now$1();
  }
}

function stopProfilerTimerIfRunning(fiber) {

  profilerStartTime = -1;
}

function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {

  if (profilerStartTime >= 0) {
    var elapsedTime = now$1() - profilerStartTime;
    fiber.actualDuration += elapsedTime;

    if (overrideBaseTime) {
      fiber.selfBaseDuration = elapsedTime;
    }

    profilerStartTime = -1;
  }
}

function transferActualDuration(fiber) {
  // Transfer time spent rendering these children so we don't lose it
  // after we rerender. This is used as a helper in special cases
  // where we should count the work of multiple passes.
  var child = fiber.child;

  while (child) {
    fiber.actualDuration += child.actualDuration;
    child = child.sibling;
  }
}

var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
var didReceiveUpdate = false;
var didWarnAboutBadClass;
var didWarnAboutModulePatternComponent;
var didWarnAboutContextTypeOnFunctionComponent;
var didWarnAboutGetDerivedStateOnFunctionComponent;
var didWarnAboutFunctionRefs;
var didWarnAboutReassigningProps;
var didWarnAboutRevealOrder;
var didWarnAboutTailOptions;

{
  didWarnAboutBadClass = {};
  didWarnAboutModulePatternComponent = {};
  didWarnAboutContextTypeOnFunctionComponent = {};
  didWarnAboutGetDerivedStateOnFunctionComponent = {};
  didWarnAboutFunctionRefs = {};
  didWarnAboutReassigningProps = false;
  didWarnAboutRevealOrder = {};
  didWarnAboutTailOptions = {};
}

function reconcileChildren(current, workInProgress, nextChildren, renderLanes) {
  if (current === null) {
    // If this is a fresh new component that hasn't been rendered yet, we
    // won't update its child set by applying minimal side-effects. Instead,
    // we will add them all to the child before it gets rendered. That means
    // we can optimize this reconciliation pass by not tracking side-effects.
    workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderLanes);
  } else {
    // If the current child is the same as the work in progress, it means that
    // we haven't yet started any work on these children. Therefore, we use
    // the clone algorithm to create a copy of all the current children.
    // If we had any progressed work already, that is invalid at this point so
    // let's throw it out.
    workInProgress.child = reconcileChildFibers(workInProgress, current.child, nextChildren, renderLanes);
  }
}

function forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderLanes) {
  // This function is fork of reconcileChildren. It's used in cases where we
  // want to reconcile without matching against the existing set. This has the
  // effect of all current children being unmounted; even if the type and key
  // are the same, the old child is unmounted and a new child is created.
  //
  // To do this, we're going to go through the reconcile algorithm twice. In
  // the first pass, we schedule a deletion for all the current children by
  // passing null.
  workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderLanes); // In the second pass, we mount the new children. The trick here is that we
  // pass null in place of where we usually pass the current child set. This has
  // the effect of remounting all children regardless of whether their
  // identities match.

  workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes);
}

function updateForwardRef(current, workInProgress, Component, nextProps, renderLanes) {
  // TODO: current can be non-null here even if the component
  // hasn't yet mounted. This happens after the first render suspends.
  // We'll need to figure out if this is fine or can cause issues.
  {
    if (workInProgress.type !== workInProgress.elementType) {
      // Lazy component props can't be validated in createElement
      // because they're only guaranteed to be resolved here.
      var innerPropTypes = Component.propTypes;

      if (innerPropTypes) {
        checkPropTypes(innerPropTypes, nextProps, // Resolved props
        'prop', getComponentName(Component));
      }
    }
  }

  var render = Component.render;
  var ref = workInProgress.ref; // The rest is a fork of updateFunctionComponent

  var nextChildren;
  prepareToReadContext(workInProgress, renderLanes);

  {
    ReactCurrentOwner$1.current = workInProgress;
    setIsRendering(true);
    nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderLanes);

    if ( workInProgress.mode & StrictMode) {
      disableLogs();

      try {
        nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderLanes);
      } finally {
        reenableLogs();
      }
    }

    setIsRendering(false);
  }

  if (current !== null && !didReceiveUpdate) {
    bailoutHooks(current, workInProgress, renderLanes);
    return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
  } // React DevTools reads this flag.


  workInProgress.flags |= PerformedWork;
  reconcileChildren(current, workInProgress, nextChildren, renderLanes);
  return workInProgress.child;
}

function updateMemoComponent(current, workInProgress, Component, nextProps, updateLanes, renderLanes) {
  if (current === null) {
    var type = Component.type;

    if (isSimpleFunctionComponent(type) && Component.compare === null && // SimpleMemoComponent codepath doesn't resolve outer props either.
    Component.defaultProps === undefined) {
      var resolvedType = type;

      {
        resolvedType = resolveFunctionForHotReloading(type);
      } // If this is a plain function component without default props,
      // and with only the default shallow comparison, we upgrade it
      // to a SimpleMemoComponent to allow fast path updates.


      workInProgress.tag = SimpleMemoComponent;
      workInProgress.type = resolvedType;

      {
        validateFunctionComponentInDev(workInProgress, type);
      }

      return updateSimpleMemoComponent(current, workInProgress, resolvedType, nextProps, updateLanes, renderLanes);
    }

    {
      var innerPropTypes = type.propTypes;

      if (innerPropTypes) {
        // Inner memo component props aren't currently validated in createElement.
        // We could move it there, but we'd still need this for lazy code path.
        checkPropTypes(innerPropTypes, nextProps, // Resolved props
        'prop', getComponentName(type));
      }
    }

    var child = createFiberFromTypeAndProps(Component.type, null, nextProps, workInProgress, workInProgress.mode, renderLanes);
    child.ref = workInProgress.ref;
    child.return = workInProgress;
    workInProgress.child = child;
    return child;
  }

  {
    var _type = Component.type;
    var _innerPropTypes = _type.propTypes;

    if (_innerPropTypes) {
      // Inner memo component props aren't currently validated in createElement.
      // We could move it there, but we'd still need this for lazy code path.
      checkPropTypes(_innerPropTypes, nextProps, // Resolved props
      'prop', getComponentName(_type));
    }
  }

  var currentChild = current.child; // This is always exactly one child

  if (!includesSomeLane(updateLanes, renderLanes)) {
    // This will be the props with resolved defaultProps,
    // unlike current.memoizedProps which will be the unresolved ones.
    var prevProps = currentChild.memoizedProps; // Default to shallow comparison

    var compare = Component.compare;
    compare = compare !== null ? compare : shallowEqual;

    if (compare(prevProps, nextProps) && current.ref === workInProgress.ref) {
      return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
    }
  } // React DevTools reads this flag.


  workInProgress.flags |= PerformedWork;
  var newChild = createWorkInProgress(currentChild, nextProps);
  newChild.ref = workInProgress.ref;
  newChild.return = workInProgress;
  workInProgress.child = newChild;
  return newChild;
}

function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, updateLanes, renderLanes) {
  // TODO: current can be non-null here even if the component
  // hasn't yet mounted. This happens when the inner render suspends.
  // We'll need to figure out if this is fine or can cause issues.
  {
    if (workInProgress.type !== workInProgress.elementType) {
      // Lazy component props can't be validated in createElement
      // because they're only guaranteed to be resolved here.
      var outerMemoType = workInProgress.elementType;

      if (outerMemoType.$$typeof === REACT_LAZY_TYPE) {
        // We warn when you define propTypes on lazy()
        // so let's just skip over it to find memo() outer wrapper.
        // Inner props for memo are validated later.
        var lazyComponent = outerMemoType;
        var payload = lazyComponent._payload;
        var init = lazyComponent._init;

        try {
          outerMemoType = init(payload);
        } catch (x) {
          outerMemoType = null;
        } // Inner propTypes will be validated in the function component path.


        var outerPropTypes = outerMemoType && outerMemoType.propTypes;

        if (outerPropTypes) {
          checkPropTypes(outerPropTypes, nextProps, // Resolved (SimpleMemoComponent has no defaultProps)
          'prop', getComponentName(outerMemoType));
        }
      }
    }
  }

  if (current !== null) {
    var prevProps = current.memoizedProps;

    if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref && ( // Prevent bailout if the implementation changed due to hot reload.
     workInProgress.type === current.type )) {
      didReceiveUpdate = false;

      if (!includesSomeLane(renderLanes, updateLanes)) {
        // The pending lanes were cleared at the beginning of beginWork. We're
        // about to bail out, but there might be other lanes that weren't
        // included in the current render. Usually, the priority level of the
        // remaining updates is accumlated during the evaluation of the
        // component (i.e. when processing the update queue). But since since
        // we're bailing out early *without* evaluating the component, we need
        // to account for it here, too. Reset to the value of the current fiber.
        // NOTE: This only applies to SimpleMemoComponent, not MemoComponent,
        // because a MemoComponent fiber does not have hooks or an update queue;
        // rather, it wraps around an inner component, which may or may not
        // contains hooks.
        // TODO: Move the reset at in beginWork out of the common path so that
        // this is no longer necessary.
        workInProgress.lanes = current.lanes;
        return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
      } else if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) {
        // This is a special case that only exists for legacy mode.
        // See https://github.com/facebook/react/pull/19216.
        didReceiveUpdate = true;
      }
    }
  }

  return updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes);
}

function updateOffscreenComponent(current, workInProgress, renderLanes) {
  var nextProps = workInProgress.pendingProps;
  var nextChildren = nextProps.children;
  var prevState = current !== null ? current.memoizedState : null;

  if (nextProps.mode === 'hidden' || nextProps.mode === 'unstable-defer-without-hiding') {
    if ((workInProgress.mode & ConcurrentMode) === NoMode) {
      // In legacy sync mode, don't defer the subtree. Render it now.
      // TODO: Figure out what we should do in Blocking mode.
      var nextState = {
        baseLanes: NoLanes
      };
      workInProgress.memoizedState = nextState;
      pushRenderLanes(workInProgress, renderLanes);
    } else if (!includesSomeLane(renderLanes, OffscreenLane)) {
      var nextBaseLanes;

      if (prevState !== null) {
        var prevBaseLanes = prevState.baseLanes;
        nextBaseLanes = mergeLanes(prevBaseLanes, renderLanes);
      } else {
        nextBaseLanes = renderLanes;
      } // Schedule this fiber to re-render at offscreen priority. Then bailout.


      {
        markSpawnedWork(OffscreenLane);
      }

      workInProgress.lanes = workInProgress.childLanes = laneToLanes(OffscreenLane);
      var _nextState = {
        baseLanes: nextBaseLanes
      };
      workInProgress.memoizedState = _nextState; // We're about to bail out, but we need to push this to the stack anyway
      // to avoid a push/pop misalignment.

      pushRenderLanes(workInProgress, nextBaseLanes);
      return null;
    } else {
      // Rendering at offscreen, so we can clear the base lanes.
      var _nextState2 = {
        baseLanes: NoLanes
      };
      workInProgress.memoizedState = _nextState2; // Push the lanes that were skipped when we bailed out.

      var subtreeRenderLanes = prevState !== null ? prevState.baseLanes : renderLanes;
      pushRenderLanes(workInProgress, subtreeRenderLanes);
    }
  } else {
    var _subtreeRenderLanes;

    if (prevState !== null) {
      _subtreeRenderLanes = mergeLanes(prevState.baseLanes, renderLanes); // Since we're not hidden anymore, reset the state

      workInProgress.memoizedState = null;
    } else {
      // We weren't previously hidden, and we still aren't, so there's nothing
      // special to do. Need to push to the stack regardless, though, to avoid
      // a push/pop misalignment.
      _subtreeRenderLanes = renderLanes;
    }

    pushRenderLanes(workInProgress, _subtreeRenderLanes);
  }

  reconcileChildren(current, workInProgress, nextChildren, renderLanes);
  return workInProgress.child;
} // Note: These happen to have identical begin phases, for now. We shouldn't hold
// ourselves to this constraint, though. If the behavior diverges, we should
// fork the function.


var updateLegacyHiddenComponent = updateOffscreenComponent;

function updateFragment(current, workInProgress, renderLanes) {
  var nextChildren = workInProgress.pendingProps;
  reconcileChildren(current, workInProgress, nextChildren, renderLanes);
  return workInProgress.child;
}

function updateMode(current, workInProgress, renderLanes) {
  var nextChildren = workInProgress.pendingProps.children;
  reconcileChildren(current, workInProgress, nextChildren, renderLanes);
  return workInProgress.child;
}

function updateProfiler(current, workInProgress, renderLanes) {
  {
    workInProgress.flags |= Update; // Reset effect durations for the next eventual effect phase.
    // These are reset during render to allow the DevTools commit hook a chance to read them,

    var stateNode = workInProgress.stateNode;
    stateNode.effectDuration = 0;
    stateNode.passiveEffectDuration = 0;
  }

  var nextProps = workInProgress.pendingProps;
  var nextChildren = nextProps.children;
  reconcileChildren(current, workInProgress, nextChildren, renderLanes);
  return workInProgress.child;
}

function markRef(current, workInProgress) {
  var ref = workInProgress.ref;

  if (current === null && ref !== null || current !== null && current.ref !== ref) {
    // Schedule a Ref effect
    workInProgress.flags |= Ref;
  }
}

function updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes) {
  {
    if (workInProgress.type !== workInProgress.elementType) {
      // Lazy component props can't be validated in createElement
      // because they're only guaranteed to be resolved here.
      var innerPropTypes = Component.propTypes;

      if (innerPropTypes) {
        checkPropTypes(innerPropTypes, nextProps, // Resolved props
        'prop', getComponentName(Component));
      }
    }
  }

  var context;

  {
    var unmaskedContext = getUnmaskedContext(workInProgress, Component, true);
    context = getMaskedContext(workInProgress, unmaskedContext);
  }

  var nextChildren;
  prepareToReadContext(workInProgress, renderLanes);

  {
    ReactCurrentOwner$1.current = workInProgress;
    setIsRendering(true);
    nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes);

    if ( workInProgress.mode & StrictMode) {
      disableLogs();

      try {
        nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes);
      } finally {
        reenableLogs();
      }
    }

    setIsRendering(false);
  }

  if (current !== null && !didReceiveUpdate) {
    bailoutHooks(current, workInProgress, renderLanes);
    return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
  } // React DevTools reads this flag.


  workInProgress.flags |= PerformedWork;
  reconcileChildren(current, workInProgress, nextChildren, renderLanes);
  return workInProgress.child;
}

function updateClassComponent(current, workInProgress, Component, nextProps, renderLanes) {
  {
    if (workInProgress.type !== workInProgress.elementType) {
      // Lazy component props can't be validated in createElement
      // because they're only guaranteed to be resolved here.
      var innerPropTypes = Component.propTypes;

      if (innerPropTypes) {
        checkPropTypes(innerPropTypes, nextProps, // Resolved props
        'prop', getComponentName(Component));
      }
    }
  } // Push context providers early to prevent context stack mismatches.
  // During mounting we don't know the child context yet as the instance doesn't exist.
  // We will invalidate the child context in finishClassComponent() right after rendering.


  var hasContext;

  if (isContextProvider(Component)) {
    hasContext = true;
    pushContextProvider(workInProgress);
  } else {
    hasContext = false;
  }

  prepareToReadContext(workInProgress, renderLanes);
  var instance = workInProgress.stateNode;
  var shouldUpdate;

  if (instance === null) {
    if (current !== null) {
      // A class component without an instance only mounts if it suspended
      // inside a non-concurrent tree, in an inconsistent state. We want to
      // treat it like a new mount, even though an empty version of it already
      // committed. Disconnect the alternate pointers.
      current.alternate = null;
      workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect

      workInProgress.flags |= Placement;
    } // In the initial pass we might need to construct the instance.


    constructClassInstance(workInProgress, Component, nextProps);
    mountClassInstance(workInProgress, Component, nextProps, renderLanes);
    shouldUpdate = true;
  } else if (current === null) {
    // In a resume, we'll already have an instance we can reuse.
    shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderLanes);
  } else {
    shouldUpdate = updateClassInstance(current, workInProgress, Component, nextProps, renderLanes);
  }

  var nextUnitOfWork = finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes);

  {
    var inst = workInProgress.stateNode;

    if (shouldUpdate && inst.props !== nextProps) {
      if (!didWarnAboutReassigningProps) {
        error('It looks like %s is reassigning its own `this.props` while rendering. ' + 'This is not supported and can lead to confusing bugs.', getComponentName(workInProgress.type) || 'a component');
      }

      didWarnAboutReassigningProps = true;
    }
  }

  return nextUnitOfWork;
}

function finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes) {
  // Refs should update even if shouldComponentUpdate returns false
  markRef(current, workInProgress);
  var didCaptureError = (workInProgress.flags & DidCapture) !== NoFlags;

  if (!shouldUpdate && !didCaptureError) {
    // Context providers should defer to sCU for rendering
    if (hasContext) {
      invalidateContextProvider(workInProgress, Component, false);
    }

    return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
  }

  var instance = workInProgress.stateNode; // Rerender

  ReactCurrentOwner$1.current = workInProgress;
  var nextChildren;

  if (didCaptureError && typeof Component.getDerivedStateFromError !== 'function') {
    // If we captured an error, but getDerivedStateFromError is not defined,
    // unmount all the children. componentDidCatch will schedule an update to
    // re-render a fallback. This is temporary until we migrate everyone to
    // the new API.
    // TODO: Warn in a future release.
    nextChildren = null;

    {
      stopProfilerTimerIfRunning();
    }
  } else {
    {
      setIsRendering(true);
      nextChildren = instance.render();

      if ( workInProgress.mode & StrictMode) {
        disableLogs();

        try {
          instance.render();
        } finally {
          reenableLogs();
        }
      }

      setIsRendering(false);
    }
  } // React DevTools reads this flag.


  workInProgress.flags |= PerformedWork;

  if (current !== null && didCaptureError) {
    // If we're recovering from an error, reconcile without reusing any of
    // the existing children. Conceptually, the normal children and the children
    // that are shown on error are two different sets, so we shouldn't reuse
    // normal children even if their identities match.
    forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderLanes);
  } else {
    reconcileChildren(current, workInProgress, nextChildren, renderLanes);
  } // Memoize state using the values we just used to render.
  // TODO: Restructure so we never read values from the instance.


  workInProgress.memoizedState = instance.state; // The context might have changed so we need to recalculate it.

  if (hasContext) {
    invalidateContextProvider(workInProgress, Component, true);
  }

  return workInProgress.child;
}

function pushHostRootContext(workInProgress) {
  var root = workInProgress.stateNode;

  if (root.pendingContext) {
    pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
  } else if (root.context) {
    // Should always be set
    pushTopLevelContextObject(workInProgress, root.context, false);
  }

  pushHostContainer(workInProgress, root.containerInfo);
}

function updateHostRoot(current, workInProgress, renderLanes) {
  pushHostRootContext(workInProgress);
  var updateQueue = workInProgress.updateQueue;

  if (!(current !== null && updateQueue !== null)) {
    {
      throw Error( "If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue." );
    }
  }

  var nextProps = workInProgress.pendingProps;
  var prevState = workInProgress.memoizedState;
  var prevChildren = prevState !== null ? prevState.element : null;
  cloneUpdateQueue(current, workInProgress);
  processUpdateQueue(workInProgress, nextProps, null, renderLanes);
  var nextState = workInProgress.memoizedState; // Caution: React DevTools currently depends on this property
  // being called "element".

  var nextChildren = nextState.element;

  if (nextChildren === prevChildren) {
    resetHydrationState();
    return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
  }

  var root = workInProgress.stateNode;

  if (root.hydrate && enterHydrationState(workInProgress)) {
    // If we don't have any current children this might be the first pass.
    // We always try to hydrate. If this isn't a hydration pass there won't
    // be any children to hydrate which is effectively the same thing as
    // not hydrating.
    {
      var mutableSourceEagerHydrationData = root.mutableSourceEagerHydrationData;

      if (mutableSourceEagerHydrationData != null) {
        for (var i = 0; i < mutableSourceEagerHydrationData.length; i += 2) {
          var mutableSource = mutableSourceEagerHydrationData[i];
          var version = mutableSourceEagerHydrationData[i + 1];
          setWorkInProgressVersion(mutableSource, version);
        }
      }
    }

    var child = mountChildFibers(workInProgress, null, nextChildren, renderLanes);
    workInProgress.child = child;
    var node = child;

    while (node) {
      // Mark each child as hydrating. This is a fast path to know whether this
      // tree is part of a hydrating tree. This is used to determine if a child
      // node has fully mounted yet, and for scheduling event replaying.
      // Conceptually this is similar to Placement in that a new subtree is
      // inserted into the React tree here. It just happens to not need DOM
      // mutations because it already exists.
      node.flags = node.flags & ~Placement | Hydrating;
      node = node.sibling;
    }
  } else {
    // Otherwise reset hydration state in case we aborted and resumed another
    // root.
    reconcileChildren(current, workInProgress, nextChildren, renderLanes);
    resetHydrationState();
  }

  return workInProgress.child;
}

function updateHostComponent(current, workInProgress, renderLanes) {
  pushHostContext(workInProgress);

  if (current === null) {
    tryToClaimNextHydratableInstance(workInProgress);
  }

  var type = workInProgress.type;
  var nextProps = workInProgress.pendingProps;
  var prevProps = current !== null ? current.memoizedProps : null;
  var nextChildren = nextProps.children;
  var isDirectTextChild = shouldSetTextContent(type, nextProps);

  if (isDirectTextChild) {
    // We special case a direct text child of a host node. This is a common
    // case. We won't handle it as a reified child. We will instead handle
    // this in the host environment that also has access to this prop. That
    // avoids allocating another HostText fiber and traversing it.
    nextChildren = null;
  } else if (prevProps !== null && shouldSetTextContent(type, prevProps)) {
    // If we're switching from a direct text child to a normal child, or to
    // empty, we need to schedule the text content to be reset.
    workInProgress.flags |= ContentReset;
  }

  markRef(current, workInProgress);
  reconcileChildren(current, workInProgress, nextChildren, renderLanes);
  return workInProgress.child;
}

function updateHostText(current, workInProgress) {
  if (current === null) {
    tryToClaimNextHydratableInstance(workInProgress);
  } // Nothing to do here. This is terminal. We'll do the completion step
  // immediately after.


  return null;
}

function mountLazyComponent(_current, workInProgress, elementType, updateLanes, renderLanes) {
  if (_current !== null) {
    // A lazy component only mounts if it suspended inside a non-
    // concurrent tree, in an inconsistent state. We want to treat it like
    // a new mount, even though an empty version of it already committed.
    // Disconnect the alternate pointers.
    _current.alternate = null;
    workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect

    workInProgress.flags |= Placement;
  }

  var props = workInProgress.pendingProps;
  var lazyComponent = elementType;
  var payload = lazyComponent._payload;
  var init = lazyComponent._init;
  var Component = init(payload); // Store the unwrapped component in the type.

  workInProgress.type = Component;
  var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component);
  var resolvedProps = resolveDefaultProps(Component, props);
  var child;

  switch (resolvedTag) {
    case FunctionComponent:
      {
        {
          validateFunctionComponentInDev(workInProgress, Component);
          workInProgress.type = Component = resolveFunctionForHotReloading(Component);
        }

        child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderLanes);
        return child;
      }

    case ClassComponent:
      {
        {
          workInProgress.type = Component = resolveClassForHotReloading(Component);
        }

        child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderLanes);
        return child;
      }

    case ForwardRef:
      {
        {
          workInProgress.type = Component = resolveForwardRefForHotReloading(Component);
        }

        child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderLanes);
        return child;
      }

    case MemoComponent:
      {
        {
          if (workInProgress.type !== workInProgress.elementType) {
            var outerPropTypes = Component.propTypes;

            if (outerPropTypes) {
              checkPropTypes(outerPropTypes, resolvedProps, // Resolved for outer only
              'prop', getComponentName(Component));
            }
          }
        }

        child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), // The inner type can have defaults too
        updateLanes, renderLanes);
        return child;
      }
  }

  var hint = '';

  {
    if (Component !== null && typeof Component === 'object' && Component.$$typeof === REACT_LAZY_TYPE) {
      hint = ' Did you wrap a component in React.lazy() more than once?';
    }
  } // This message intentionally doesn't mention ForwardRef or MemoComponent
  // because the fact that it's a separate type of work is an
  // implementation detail.


  {
    {
      throw Error( "Element type is invalid. Received a promise that resolves to: " + Component + ". Lazy element type must resolve to a class or function." + hint );
    }
  }
}

function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderLanes) {
  if (_current !== null) {
    // An incomplete component only mounts if it suspended inside a non-
    // concurrent tree, in an inconsistent state. We want to treat it like
    // a new mount, even though an empty version of it already committed.
    // Disconnect the alternate pointers.
    _current.alternate = null;
    workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect

    workInProgress.flags |= Placement;
  } // Promote the fiber to a class and try rendering again.


  workInProgress.tag = ClassComponent; // The rest of this function is a fork of `updateClassComponent`
  // Push context providers early to prevent context stack mismatches.
  // During mounting we don't know the child context yet as the instance doesn't exist.
  // We will invalidate the child context in finishClassComponent() right after rendering.

  var hasContext;

  if (isContextProvider(Component)) {
    hasContext = true;
    pushContextProvider(workInProgress);
  } else {
    hasContext = false;
  }

  prepareToReadContext(workInProgress, renderLanes);
  constructClassInstance(workInProgress, Component, nextProps);
  mountClassInstance(workInProgress, Component, nextProps, renderLanes);
  return finishClassComponent(null, workInProgress, Component, true, hasContext, renderLanes);
}

function mountIndeterminateComponent(_current, workInProgress, Component, renderLanes) {
  if (_current !== null) {
    // An indeterminate component only mounts if it suspended inside a non-
    // concurrent tree, in an inconsistent state. We want to treat it like
    // a new mount, even though an empty version of it already committed.
    // Disconnect the alternate pointers.
    _current.alternate = null;
    workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect

    workInProgress.flags |= Placement;
  }

  var props = workInProgress.pendingProps;
  var context;

  {
    var unmaskedContext = getUnmaskedContext(workInProgress, Component, false);
    context = getMaskedContext(workInProgress, unmaskedContext);
  }

  prepareToReadContext(workInProgress, renderLanes);
  var value;

  {
    if (Component.prototype && typeof Component.prototype.render === 'function') {
      var componentName = getComponentName(Component) || 'Unknown';

      if (!didWarnAboutBadClass[componentName]) {
        error("The <%s /> component appears to have a render method, but doesn't extend React.Component. " + 'This is likely to cause errors. Change %s to extend React.Component instead.', componentName, componentName);

        didWarnAboutBadClass[componentName] = true;
      }
    }

    if (workInProgress.mode & StrictMode) {
      ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null);
    }

    setIsRendering(true);
    ReactCurrentOwner$1.current = workInProgress;
    value = renderWithHooks(null, workInProgress, Component, props, context, renderLanes);
    setIsRendering(false);
  } // React DevTools reads this flag.


  workInProgress.flags |= PerformedWork;

  {
    // Support for module components is deprecated and is removed behind a flag.
    // Whether or not it would crash later, we want to show a good message in DEV first.
    if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
      var _componentName = getComponentName(Component) || 'Unknown';

      if (!didWarnAboutModulePatternComponent[_componentName]) {
        error('The <%s /> component appears to be a function component that returns a class instance. ' + 'Change %s to a class that extends React.Component instead. ' + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + 'cannot be called with `new` by React.', _componentName, _componentName, _componentName);

        didWarnAboutModulePatternComponent[_componentName] = true;
      }
    }
  }

  if ( // Run these checks in production only if the flag is off.
  // Eventually we'll delete this branch altogether.
   typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
    {
      var _componentName2 = getComponentName(Component) || 'Unknown';

      if (!didWarnAboutModulePatternComponent[_componentName2]) {
        error('The <%s /> component appears to be a function component that returns a class instance. ' + 'Change %s to a class that extends React.Component instead. ' + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + 'cannot be called with `new` by React.', _componentName2, _componentName2, _componentName2);

        didWarnAboutModulePatternComponent[_componentName2] = true;
      }
    } // Proceed under the assumption that this is a class instance


    workInProgress.tag = ClassComponent; // Throw out any hooks that were used.

    workInProgress.memoizedState = null;
    workInProgress.updateQueue = null; // Push context providers early to prevent context stack mismatches.
    // During mounting we don't know the child context yet as the instance doesn't exist.
    // We will invalidate the child context in finishClassComponent() right after rendering.

    var hasContext = false;

    if (isContextProvider(Component)) {
      hasContext = true;
      pushContextProvider(workInProgress);
    } else {
      hasContext = false;
    }

    workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null;
    initializeUpdateQueue(workInProgress);
    var getDerivedStateFromProps = Component.getDerivedStateFromProps;

    if (typeof getDerivedStateFromProps === 'function') {
      applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, props);
    }

    adoptClassInstance(workInProgress, value);
    mountClassInstance(workInProgress, Component, props, renderLanes);
    return finishClassComponent(null, workInProgress, Component, true, hasContext, renderLanes);
  } else {
    // Proceed under the assumption that this is a function component
    workInProgress.tag = FunctionComponent;

    {

      if ( workInProgress.mode & StrictMode) {
        disableLogs();

        try {
          value = renderWithHooks(null, workInProgress, Component, props, context, renderLanes);
        } finally {
          reenableLogs();
        }
      }
    }

    reconcileChildren(null, workInProgress, value, renderLanes);

    {
      validateFunctionComponentInDev(workInProgress, Component);
    }

    return workInProgress.child;
  }
}

function validateFunctionComponentInDev(workInProgress, Component) {
  {
    if (Component) {
      if (Component.childContextTypes) {
        error('%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component');
      }
    }

    if (workInProgress.ref !== null) {
      var info = '';
      var ownerName = getCurrentFiberOwnerNameInDevOrNull();

      if (ownerName) {
        info += '\n\nCheck the render method of `' + ownerName + '`.';
      }

      var warningKey = ownerName || workInProgress._debugID || '';
      var debugSource = workInProgress._debugSource;

      if (debugSource) {
        warningKey = debugSource.fileName + ':' + debugSource.lineNumber;
      }

      if (!didWarnAboutFunctionRefs[warningKey]) {
        didWarnAboutFunctionRefs[warningKey] = true;

        error('Function components cannot be given refs. ' + 'Attempts to access this ref will fail. ' + 'Did you mean to use React.forwardRef()?%s', info);
      }
    }

    if (typeof Component.getDerivedStateFromProps === 'function') {
      var _componentName3 = getComponentName(Component) || 'Unknown';

      if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3]) {
        error('%s: Function components do not support getDerivedStateFromProps.', _componentName3);

        didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = true;
      }
    }

    if (typeof Component.contextType === 'object' && Component.contextType !== null) {
      var _componentName4 = getComponentName(Component) || 'Unknown';

      if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) {
        error('%s: Function components do not support contextType.', _componentName4);

        didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true;
      }
    }
  }
}

var SUSPENDED_MARKER = {
  dehydrated: null,
  retryLane: NoLane
};

function mountSuspenseOffscreenState(renderLanes) {
  return {
    baseLanes: renderLanes
  };
}

function updateSuspenseOffscreenState(prevOffscreenState, renderLanes) {
  return {
    baseLanes: mergeLanes(prevOffscreenState.baseLanes, renderLanes)
  };
} // TODO: Probably should inline this back


function shouldRemainOnFallback(suspenseContext, current, workInProgress, renderLanes) {
  // If we're already showing a fallback, there are cases where we need to
  // remain on that fallback regardless of whether the content has resolved.
  // For example, SuspenseList coordinates when nested content appears.
  if (current !== null) {
    var suspenseState = current.memoizedState;

    if (suspenseState === null) {
      // Currently showing content. Don't hide it, even if ForceSuspenseFallack
      // is true. More precise name might be "ForceRemainSuspenseFallback".
      // Note: This is a factoring smell. Can't remain on a fallback if there's
      // no fallback to remain on.
      return false;
    }
  } // Not currently showing content. Consult the Suspense context.


  return hasSuspenseContext(suspenseContext, ForceSuspenseFallback);
}

function getRemainingWorkInPrimaryTree(current, renderLanes) {
  // TODO: Should not remove render lanes that were pinged during this render
  return removeLanes(current.childLanes, renderLanes);
}

function updateSuspenseComponent(current, workInProgress, renderLanes) {
  var nextProps = workInProgress.pendingProps; // This is used by DevTools to force a boundary to suspend.

  {
    if (shouldSuspend(workInProgress)) {
      workInProgress.flags |= DidCapture;
    }
  }

  var suspenseContext = suspenseStackCursor.current;
  var showFallback = false;
  var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags;

  if (didSuspend || shouldRemainOnFallback(suspenseContext, current)) {
    // Something in this boundary's subtree already suspended. Switch to
    // rendering the fallback children.
    showFallback = true;
    workInProgress.flags &= ~DidCapture;
  } else {
    // Attempting the main content
    if (current === null || current.memoizedState !== null) {
      // This is a new mount or this boundary is already showing a fallback state.
      // Mark this subtree context as having at least one invisible parent that could
      // handle the fallback state.
      // Boundaries without fallbacks or should be avoided are not considered since
      // they cannot handle preferred fallback states.
      if (nextProps.fallback !== undefined && nextProps.unstable_avoidThisFallback !== true) {
        suspenseContext = addSubtreeSuspenseContext(suspenseContext, InvisibleParentSuspenseContext);
      }
    }
  }

  suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  pushSuspenseContext(workInProgress, suspenseContext); // OK, the next part is confusing. We're about to reconcile the Suspense
  // boundary's children. This involves some custom reconcilation logic. Two
  // main reasons this is so complicated.
  //
  // First, Legacy Mode has different semantics for backwards compatibility. The
  // primary tree will commit in an inconsistent state, so when we do the
  // second pass to render the fallback, we do some exceedingly, uh, clever
  // hacks to make that not totally break. Like transferring effects and
  // deletions from hidden tree. In Concurrent Mode, it's much simpler,
  // because we bailout on the primary tree completely and leave it in its old
  // state, no effects. Same as what we do for Offscreen (except that
  // Offscreen doesn't have the first render pass).
  //
  // Second is hydration. During hydration, the Suspense fiber has a slightly
  // different layout, where the child points to a dehydrated fragment, which
  // contains the DOM rendered by the server.
  //
  // Third, even if you set all that aside, Suspense is like error boundaries in
  // that we first we try to render one tree, and if that fails, we render again
  // and switch to a different tree. Like a try/catch block. So we have to track
  // which branch we're currently rendering. Ideally we would model this using
  // a stack.

  if (current === null) {
    // Initial mount
    // If we're currently hydrating, try to hydrate this boundary.
    // But only if this has a fallback.
    if (nextProps.fallback !== undefined) {
      tryToClaimNextHydratableInstance(workInProgress); // This could've been a dehydrated suspense component.
    }

    var nextPrimaryChildren = nextProps.children;
    var nextFallbackChildren = nextProps.fallback;

    if (showFallback) {
      var fallbackFragment = mountSuspenseFallbackChildren(workInProgress, nextPrimaryChildren, nextFallbackChildren, renderLanes);
      var primaryChildFragment = workInProgress.child;
      primaryChildFragment.memoizedState = mountSuspenseOffscreenState(renderLanes);
      workInProgress.memoizedState = SUSPENDED_MARKER;
      return fallbackFragment;
    } else if (typeof nextProps.unstable_expectedLoadTime === 'number') {
      // This is a CPU-bound tree. Skip this tree and show a placeholder to
      // unblock the surrounding content. Then immediately retry after the
      // initial commit.
      var _fallbackFragment = mountSuspenseFallbackChildren(workInProgress, nextPrimaryChildren, nextFallbackChildren, renderLanes);

      var _primaryChildFragment = workInProgress.child;
      _primaryChildFragment.memoizedState = mountSuspenseOffscreenState(renderLanes);
      workInProgress.memoizedState = SUSPENDED_MARKER; // Since nothing actually suspended, there will nothing to ping this to
      // get it started back up to attempt the next item. While in terms of
      // priority this work has the same priority as this current render, it's
      // not part of the same transition once the transition has committed. If
      // it's sync, we still want to yield so that it can be painted.
      // Conceptually, this is really the same as pinging. We can use any
      // RetryLane even if it's the one currently rendering since we're leaving
      // it behind on this node.

      workInProgress.lanes = SomeRetryLane;

      {
        markSpawnedWork(SomeRetryLane);
      }

      return _fallbackFragment;
    } else {
      return mountSuspensePrimaryChildren(workInProgress, nextPrimaryChildren, renderLanes);
    }
  } else {
    // This is an update.
    // If the current fiber has a SuspenseState, that means it's already showing
    // a fallback.
    var prevState = current.memoizedState;

    if (prevState !== null) {

      if (showFallback) {
        var _nextFallbackChildren2 = nextProps.fallback;
        var _nextPrimaryChildren2 = nextProps.children;

        var _fallbackChildFragment = updateSuspenseFallbackChildren(current, workInProgress, _nextPrimaryChildren2, _nextFallbackChildren2, renderLanes);

        var _primaryChildFragment3 = workInProgress.child;
        var prevOffscreenState = current.child.memoizedState;
        _primaryChildFragment3.memoizedState = prevOffscreenState === null ? mountSuspenseOffscreenState(renderLanes) : updateSuspenseOffscreenState(prevOffscreenState, renderLanes);
        _primaryChildFragment3.childLanes = getRemainingWorkInPrimaryTree(current, renderLanes);
        workInProgress.memoizedState = SUSPENDED_MARKER;
        return _fallbackChildFragment;
      } else {
        var _nextPrimaryChildren3 = nextProps.children;

        var _primaryChildFragment4 = updateSuspensePrimaryChildren(current, workInProgress, _nextPrimaryChildren3, renderLanes);

        workInProgress.memoizedState = null;
        return _primaryChildFragment4;
      }
    } else {
      // The current tree is not already showing a fallback.
      if (showFallback) {
        // Timed out.
        var _nextFallbackChildren3 = nextProps.fallback;
        var _nextPrimaryChildren4 = nextProps.children;

        var _fallbackChildFragment2 = updateSuspenseFallbackChildren(current, workInProgress, _nextPrimaryChildren4, _nextFallbackChildren3, renderLanes);

        var _primaryChildFragment5 = workInProgress.child;
        var _prevOffscreenState = current.child.memoizedState;
        _primaryChildFragment5.memoizedState = _prevOffscreenState === null ? mountSuspenseOffscreenState(renderLanes) : updateSuspenseOffscreenState(_prevOffscreenState, renderLanes);
        _primaryChildFragment5.childLanes = getRemainingWorkInPrimaryTree(current, renderLanes); // Skip the primary children, and continue working on the
        // fallback children.

        workInProgress.memoizedState = SUSPENDED_MARKER;
        return _fallbackChildFragment2;
      } else {
        // Still haven't timed out. Continue rendering the children, like we
        // normally do.
        var _nextPrimaryChildren5 = nextProps.children;

        var _primaryChildFragment6 = updateSuspensePrimaryChildren(current, workInProgress, _nextPrimaryChildren5, renderLanes);

        workInProgress.memoizedState = null;
        return _primaryChildFragment6;
      }
    }
  }
}

function mountSuspensePrimaryChildren(workInProgress, primaryChildren, renderLanes) {
  var mode = workInProgress.mode;
  var primaryChildProps = {
    mode: 'visible',
    children: primaryChildren
  };
  var primaryChildFragment = createFiberFromOffscreen(primaryChildProps, mode, renderLanes, null);
  primaryChildFragment.return = workInProgress;
  workInProgress.child = primaryChildFragment;
  return primaryChildFragment;
}

function mountSuspenseFallbackChildren(workInProgress, primaryChildren, fallbackChildren, renderLanes) {
  var mode = workInProgress.mode;
  var progressedPrimaryFragment = workInProgress.child;
  var primaryChildProps = {
    mode: 'hidden',
    children: primaryChildren
  };
  var primaryChildFragment;
  var fallbackChildFragment;

  if ((mode & BlockingMode) === NoMode && progressedPrimaryFragment !== null) {
    // In legacy mode, we commit the primary tree as if it successfully
    // completed, even though it's in an inconsistent state.
    primaryChildFragment = progressedPrimaryFragment;
    primaryChildFragment.childLanes = NoLanes;
    primaryChildFragment.pendingProps = primaryChildProps;

    if ( workInProgress.mode & ProfileMode) {
      // Reset the durations from the first pass so they aren't included in the
      // final amounts. This seems counterintuitive, since we're intentionally
      // not measuring part of the render phase, but this makes it match what we
      // do in Concurrent Mode.
      primaryChildFragment.actualDuration = 0;
      primaryChildFragment.actualStartTime = -1;
      primaryChildFragment.selfBaseDuration = 0;
      primaryChildFragment.treeBaseDuration = 0;
    }

    fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null);
  } else {
    primaryChildFragment = createFiberFromOffscreen(primaryChildProps, mode, NoLanes, null);
    fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null);
  }

  primaryChildFragment.return = workInProgress;
  fallbackChildFragment.return = workInProgress;
  primaryChildFragment.sibling = fallbackChildFragment;
  workInProgress.child = primaryChildFragment;
  return fallbackChildFragment;
}

function createWorkInProgressOffscreenFiber(current, offscreenProps) {
  // The props argument to `createWorkInProgress` is `any` typed, so we use this
  // wrapper function to constrain it.
  return createWorkInProgress(current, offscreenProps);
}

function updateSuspensePrimaryChildren(current, workInProgress, primaryChildren, renderLanes) {
  var currentPrimaryChildFragment = current.child;
  var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;
  var primaryChildFragment = createWorkInProgressOffscreenFiber(currentPrimaryChildFragment, {
    mode: 'visible',
    children: primaryChildren
  });

  if ((workInProgress.mode & BlockingMode) === NoMode) {
    primaryChildFragment.lanes = renderLanes;
  }

  primaryChildFragment.return = workInProgress;
  primaryChildFragment.sibling = null;

  if (currentFallbackChildFragment !== null) {
    // Delete the fallback child fragment
    currentFallbackChildFragment.nextEffect = null;
    currentFallbackChildFragment.flags = Deletion;
    workInProgress.firstEffect = workInProgress.lastEffect = currentFallbackChildFragment;
  }

  workInProgress.child = primaryChildFragment;
  return primaryChildFragment;
}

function updateSuspenseFallbackChildren(current, workInProgress, primaryChildren, fallbackChildren, renderLanes) {
  var mode = workInProgress.mode;
  var currentPrimaryChildFragment = current.child;
  var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;
  var primaryChildProps = {
    mode: 'hidden',
    children: primaryChildren
  };
  var primaryChildFragment;

  if ( // In legacy mode, we commit the primary tree as if it successfully
  // completed, even though it's in an inconsistent state.
  (mode & BlockingMode) === NoMode && // Make sure we're on the second pass, i.e. the primary child fragment was
  // already cloned. In legacy mode, the only case where this isn't true is
  // when DevTools forces us to display a fallback; we skip the first render
  // pass entirely and go straight to rendering the fallback. (In Concurrent
  // Mode, SuspenseList can also trigger this scenario, but this is a legacy-
  // only codepath.)
  workInProgress.child !== currentPrimaryChildFragment) {
    var progressedPrimaryFragment = workInProgress.child;
    primaryChildFragment = progressedPrimaryFragment;
    primaryChildFragment.childLanes = NoLanes;
    primaryChildFragment.pendingProps = primaryChildProps;

    if ( workInProgress.mode & ProfileMode) {
      // Reset the durations from the first pass so they aren't included in the
      // final amounts. This seems counterintuitive, since we're intentionally
      // not measuring part of the render phase, but this makes it match what we
      // do in Concurrent Mode.
      primaryChildFragment.actualDuration = 0;
      primaryChildFragment.actualStartTime = -1;
      primaryChildFragment.selfBaseDuration = currentPrimaryChildFragment.selfBaseDuration;
      primaryChildFragment.treeBaseDuration = currentPrimaryChildFragment.treeBaseDuration;
    } // The fallback fiber was added as a deletion effect during the first pass.
    // However, since we're going to remain on the fallback, we no longer want
    // to delete it. So we need to remove it from the list. Deletions are stored
    // on the same list as effects. We want to keep the effects from the primary
    // tree. So we copy the primary child fragment's effect list, which does not
    // include the fallback deletion effect.


    var progressedLastEffect = primaryChildFragment.lastEffect;

    if (progressedLastEffect !== null) {
      workInProgress.firstEffect = primaryChildFragment.firstEffect;
      workInProgress.lastEffect = progressedLastEffect;
      progressedLastEffect.nextEffect = null;
    } else {
      // TODO: Reset this somewhere else? Lol legacy mode is so weird.
      workInProgress.firstEffect = workInProgress.lastEffect = null;
    }
  } else {
    primaryChildFragment = createWorkInProgressOffscreenFiber(currentPrimaryChildFragment, primaryChildProps);
  }

  var fallbackChildFragment;

  if (currentFallbackChildFragment !== null) {
    fallbackChildFragment = createWorkInProgress(currentFallbackChildFragment, fallbackChildren);
  } else {
    fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null); // Needs a placement effect because the parent (the Suspense boundary) already
    // mounted but this is a new fiber.

    fallbackChildFragment.flags |= Placement;
  }

  fallbackChildFragment.return = workInProgress;
  primaryChildFragment.return = workInProgress;
  primaryChildFragment.sibling = fallbackChildFragment;
  workInProgress.child = primaryChildFragment;
  return fallbackChildFragment;
}

function scheduleWorkOnFiber(fiber, renderLanes) {
  fiber.lanes = mergeLanes(fiber.lanes, renderLanes);
  var alternate = fiber.alternate;

  if (alternate !== null) {
    alternate.lanes = mergeLanes(alternate.lanes, renderLanes);
  }

  scheduleWorkOnParentPath(fiber.return, renderLanes);
}

function propagateSuspenseContextChange(workInProgress, firstChild, renderLanes) {
  // Mark any Suspense boundaries with fallbacks as having work to do.
  // If they were previously forced into fallbacks, they may now be able
  // to unblock.
  var node = firstChild;

  while (node !== null) {
    if (node.tag === SuspenseComponent) {
      var state = node.memoizedState;

      if (state !== null) {
        scheduleWorkOnFiber(node, renderLanes);
      }
    } else if (node.tag === SuspenseListComponent) {
      // If the tail is hidden there might not be an Suspense boundaries
      // to schedule work on. In this case we have to schedule it on the
      // list itself.
      // We don't have to traverse to the children of the list since
      // the list will propagate the change when it rerenders.
      scheduleWorkOnFiber(node, renderLanes);
    } else if (node.child !== null) {
      node.child.return = node;
      node = node.child;
      continue;
    }

    if (node === workInProgress) {
      return;
    }

    while (node.sibling === null) {
      if (node.return === null || node.return === workInProgress) {
        return;
      }

      node = node.return;
    }

    node.sibling.return = node.return;
    node = node.sibling;
  }
}

function findLastContentRow(firstChild) {
  // This is going to find the last row among these children that is already
  // showing content on the screen, as opposed to being in fallback state or
  // new. If a row has multiple Suspense boundaries, any of them being in the
  // fallback state, counts as the whole row being in a fallback state.
  // Note that the "rows" will be workInProgress, but any nested children
  // will still be current since we haven't rendered them yet. The mounted
  // order may not be the same as the new order. We use the new order.
  var row = firstChild;
  var lastContentRow = null;

  while (row !== null) {
    var currentRow = row.alternate; // New rows can't be content rows.

    if (currentRow !== null && findFirstSuspended(currentRow) === null) {
      lastContentRow = row;
    }

    row = row.sibling;
  }

  return lastContentRow;
}

function validateRevealOrder(revealOrder) {
  {
    if (revealOrder !== undefined && revealOrder !== 'forwards' && revealOrder !== 'backwards' && revealOrder !== 'together' && !didWarnAboutRevealOrder[revealOrder]) {
      didWarnAboutRevealOrder[revealOrder] = true;

      if (typeof revealOrder === 'string') {
        switch (revealOrder.toLowerCase()) {
          case 'together':
          case 'forwards':
          case 'backwards':
            {
              error('"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'Use lowercase "%s" instead.', revealOrder, revealOrder.toLowerCase());

              break;
            }

          case 'forward':
          case 'backward':
            {
              error('"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'React uses the -s suffix in the spelling. Use "%ss" instead.', revealOrder, revealOrder.toLowerCase());

              break;
            }

          default:
            error('"%s" is not a supported revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);

            break;
        }
      } else {
        error('%s is not a supported value for revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);
      }
    }
  }
}

function validateTailOptions(tailMode, revealOrder) {
  {
    if (tailMode !== undefined && !didWarnAboutTailOptions[tailMode]) {
      if (tailMode !== 'collapsed' && tailMode !== 'hidden') {
        didWarnAboutTailOptions[tailMode] = true;

        error('"%s" is not a supported value for tail on <SuspenseList />. ' + 'Did you mean "collapsed" or "hidden"?', tailMode);
      } else if (revealOrder !== 'forwards' && revealOrder !== 'backwards') {
        didWarnAboutTailOptions[tailMode] = true;

        error('<SuspenseList tail="%s" /> is only valid if revealOrder is ' + '"forwards" or "backwards". ' + 'Did you mean to specify revealOrder="forwards"?', tailMode);
      }
    }
  }
}

function validateSuspenseListNestedChild(childSlot, index) {
  {
    var isArray = Array.isArray(childSlot);
    var isIterable = !isArray && typeof getIteratorFn(childSlot) === 'function';

    if (isArray || isIterable) {
      var type = isArray ? 'array' : 'iterable';

      error('A nested %s was passed to row #%s in <SuspenseList />. Wrap it in ' + 'an additional SuspenseList to configure its revealOrder: ' + '<SuspenseList revealOrder=...> ... ' + '<SuspenseList revealOrder=...>{%s}</SuspenseList> ... ' + '</SuspenseList>', type, index, type);

      return false;
    }
  }

  return true;
}

function validateSuspenseListChildren(children, revealOrder) {
  {
    if ((revealOrder === 'forwards' || revealOrder === 'backwards') && children !== undefined && children !== null && children !== false) {
      if (Array.isArray(children)) {
        for (var i = 0; i < children.length; i++) {
          if (!validateSuspenseListNestedChild(children[i], i)) {
            return;
          }
        }
      } else {
        var iteratorFn = getIteratorFn(children);

        if (typeof iteratorFn === 'function') {
          var childrenIterator = iteratorFn.call(children);

          if (childrenIterator) {
            var step = childrenIterator.next();
            var _i = 0;

            for (; !step.done; step = childrenIterator.next()) {
              if (!validateSuspenseListNestedChild(step.value, _i)) {
                return;
              }

              _i++;
            }
          }
        } else {
          error('A single row was passed to a <SuspenseList revealOrder="%s" />. ' + 'This is not useful since it needs multiple rows. ' + 'Did you mean to pass multiple children or an array?', revealOrder);
        }
      }
    }
  }
}

function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode, lastEffectBeforeRendering) {
  var renderState = workInProgress.memoizedState;

  if (renderState === null) {
    workInProgress.memoizedState = {
      isBackwards: isBackwards,
      rendering: null,
      renderingStartTime: 0,
      last: lastContentRow,
      tail: tail,
      tailMode: tailMode,
      lastEffect: lastEffectBeforeRendering
    };
  } else {
    // We can reuse the existing object from previous renders.
    renderState.isBackwards = isBackwards;
    renderState.rendering = null;
    renderState.renderingStartTime = 0;
    renderState.last = lastContentRow;
    renderState.tail = tail;
    renderState.tailMode = tailMode;
    renderState.lastEffect = lastEffectBeforeRendering;
  }
} // This can end up rendering this component multiple passes.
// The first pass splits the children fibers into two sets. A head and tail.
// We first render the head. If anything is in fallback state, we do another
// pass through beginWork to rerender all children (including the tail) with
// the force suspend context. If the first render didn't have anything in
// in fallback state. Then we render each row in the tail one-by-one.
// That happens in the completeWork phase without going back to beginWork.


function updateSuspenseListComponent(current, workInProgress, renderLanes) {
  var nextProps = workInProgress.pendingProps;
  var revealOrder = nextProps.revealOrder;
  var tailMode = nextProps.tail;
  var newChildren = nextProps.children;
  validateRevealOrder(revealOrder);
  validateTailOptions(tailMode, revealOrder);
  validateSuspenseListChildren(newChildren, revealOrder);
  reconcileChildren(current, workInProgress, newChildren, renderLanes);
  var suspenseContext = suspenseStackCursor.current;
  var shouldForceFallback = hasSuspenseContext(suspenseContext, ForceSuspenseFallback);

  if (shouldForceFallback) {
    suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
    workInProgress.flags |= DidCapture;
  } else {
    var didSuspendBefore = current !== null && (current.flags & DidCapture) !== NoFlags;

    if (didSuspendBefore) {
      // If we previously forced a fallback, we need to schedule work
      // on any nested boundaries to let them know to try to render
      // again. This is the same as context updating.
      propagateSuspenseContextChange(workInProgress, workInProgress.child, renderLanes);
    }

    suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  }

  pushSuspenseContext(workInProgress, suspenseContext);

  if ((workInProgress.mode & BlockingMode) === NoMode) {
    // In legacy mode, SuspenseList doesn't work so we just
    // use make it a noop by treating it as the default revealOrder.
    workInProgress.memoizedState = null;
  } else {
    switch (revealOrder) {
      case 'forwards':
        {
          var lastContentRow = findLastContentRow(workInProgress.child);
          var tail;

          if (lastContentRow === null) {
            // The whole list is part of the tail.
            // TODO: We could fast path by just rendering the tail now.
            tail = workInProgress.child;
            workInProgress.child = null;
          } else {
            // Disconnect the tail rows after the content row.
            // We're going to render them separately later.
            tail = lastContentRow.sibling;
            lastContentRow.sibling = null;
          }

          initSuspenseListRenderState(workInProgress, false, // isBackwards
          tail, lastContentRow, tailMode, workInProgress.lastEffect);
          break;
        }

      case 'backwards':
        {
          // We're going to find the first row that has existing content.
          // At the same time we're going to reverse the list of everything
          // we pass in the meantime. That's going to be our tail in reverse
          // order.
          var _tail = null;
          var row = workInProgress.child;
          workInProgress.child = null;

          while (row !== null) {
            var currentRow = row.alternate; // New rows can't be content rows.

            if (currentRow !== null && findFirstSuspended(currentRow) === null) {
              // This is the beginning of the main content.
              workInProgress.child = row;
              break;
            }

            var nextRow = row.sibling;
            row.sibling = _tail;
            _tail = row;
            row = nextRow;
          } // TODO: If workInProgress.child is null, we can continue on the tail immediately.


          initSuspenseListRenderState(workInProgress, true, // isBackwards
          _tail, null, // last
          tailMode, workInProgress.lastEffect);
          break;
        }

      case 'together':
        {
          initSuspenseListRenderState(workInProgress, false, // isBackwards
          null, // tail
          null, // last
          undefined, workInProgress.lastEffect);
          break;
        }

      default:
        {
          // The default reveal order is the same as not having
          // a boundary.
          workInProgress.memoizedState = null;
        }
    }
  }

  return workInProgress.child;
}

function updatePortalComponent(current, workInProgress, renderLanes) {
  pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  var nextChildren = workInProgress.pendingProps;

  if (current === null) {
    // Portals are special because we don't append the children during mount
    // but at commit. Therefore we need to track insertions which the normal
    // flow doesn't do during mount. This doesn't happen at the root because
    // the root always starts with a "current" with a null child.
    // TODO: Consider unifying this with how the root works.
    workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes);
  } else {
    reconcileChildren(current, workInProgress, nextChildren, renderLanes);
  }

  return workInProgress.child;
}

var hasWarnedAboutUsingNoValuePropOnContextProvider = false;

function updateContextProvider(current, workInProgress, renderLanes) {
  var providerType = workInProgress.type;
  var context = providerType._context;
  var newProps = workInProgress.pendingProps;
  var oldProps = workInProgress.memoizedProps;
  var newValue = newProps.value;

  {
    if (!('value' in newProps)) {
      if (!hasWarnedAboutUsingNoValuePropOnContextProvider) {
        hasWarnedAboutUsingNoValuePropOnContextProvider = true;

        error('The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?');
      }
    }

    var providerPropTypes = workInProgress.type.propTypes;

    if (providerPropTypes) {
      checkPropTypes(providerPropTypes, newProps, 'prop', 'Context.Provider');
    }
  }

  pushProvider(workInProgress, newValue);

  if (oldProps !== null) {
    var oldValue = oldProps.value;
    var changedBits = calculateChangedBits(context, newValue, oldValue);

    if (changedBits === 0) {
      // No change. Bailout early if children are the same.
      if (oldProps.children === newProps.children && !hasContextChanged()) {
        return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
      }
    } else {
      // The context value changed. Search for matching consumers and schedule
      // them to update.
      propagateContextChange(workInProgress, context, changedBits, renderLanes);
    }
  }

  var newChildren = newProps.children;
  reconcileChildren(current, workInProgress, newChildren, renderLanes);
  return workInProgress.child;
}

var hasWarnedAboutUsingContextAsConsumer = false;

function updateContextConsumer(current, workInProgress, renderLanes) {
  var context = workInProgress.type; // The logic below for Context differs depending on PROD or DEV mode. In
  // DEV mode, we create a separate object for Context.Consumer that acts
  // like a proxy to Context. This proxy object adds unnecessary code in PROD
  // so we use the old behaviour (Context.Consumer references Context) to
  // reduce size and overhead. The separate object references context via
  // a property called "_context", which also gives us the ability to check
  // in DEV mode if this property exists or not and warn if it does not.

  {
    if (context._context === undefined) {
      // This may be because it's a Context (rather than a Consumer).
      // Or it may be because it's older React where they're the same thing.
      // We only want to warn if we're sure it's a new React.
      if (context !== context.Consumer) {
        if (!hasWarnedAboutUsingContextAsConsumer) {
          hasWarnedAboutUsingContextAsConsumer = true;

          error('Rendering <Context> directly is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
        }
      }
    } else {
      context = context._context;
    }
  }

  var newProps = workInProgress.pendingProps;
  var render = newProps.children;

  {
    if (typeof render !== 'function') {
      error('A context consumer was rendered with multiple children, or a child ' + "that isn't a function. A context consumer expects a single child " + 'that is a function. If you did pass a function, make sure there ' + 'is no trailing or leading whitespace around it.');
    }
  }

  prepareToReadContext(workInProgress, renderLanes);
  var newValue = readContext(context, newProps.unstable_observedBits);
  var newChildren;

  {
    ReactCurrentOwner$1.current = workInProgress;
    setIsRendering(true);
    newChildren = render(newValue);
    setIsRendering(false);
  } // React DevTools reads this flag.


  workInProgress.flags |= PerformedWork;
  reconcileChildren(current, workInProgress, newChildren, renderLanes);
  return workInProgress.child;
}

function markWorkInProgressReceivedUpdate() {
  didReceiveUpdate = true;
}

function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) {
  if (current !== null) {
    // Reuse previous dependencies
    workInProgress.dependencies = current.dependencies;
  }

  {
    // Don't update "base" render times for bailouts.
    stopProfilerTimerIfRunning();
  }

  markSkippedUpdateLanes(workInProgress.lanes); // Check if the children have any pending work.

  if (!includesSomeLane(renderLanes, workInProgress.childLanes)) {
    // The children don't have any work either. We can skip them.
    // TODO: Once we add back resuming, we should check if the children are
    // a work-in-progress set. If so, we need to transfer their effects.
    return null;
  } else {
    // This fiber doesn't have work, but its subtree does. Clone the child
    // fibers and continue.
    cloneChildFibers(current, workInProgress);
    return workInProgress.child;
  }
}

function remountFiber(current, oldWorkInProgress, newWorkInProgress) {
  {
    var returnFiber = oldWorkInProgress.return;

    if (returnFiber === null) {
      throw new Error('Cannot swap the root fiber.');
    } // Disconnect from the old current.
    // It will get deleted.


    current.alternate = null;
    oldWorkInProgress.alternate = null; // Connect to the new tree.

    newWorkInProgress.index = oldWorkInProgress.index;
    newWorkInProgress.sibling = oldWorkInProgress.sibling;
    newWorkInProgress.return = oldWorkInProgress.return;
    newWorkInProgress.ref = oldWorkInProgress.ref; // Replace the child/sibling pointers above it.

    if (oldWorkInProgress === returnFiber.child) {
      returnFiber.child = newWorkInProgress;
    } else {
      var prevSibling = returnFiber.child;

      if (prevSibling === null) {
        throw new Error('Expected parent to have a child.');
      }

      while (prevSibling.sibling !== oldWorkInProgress) {
        prevSibling = prevSibling.sibling;

        if (prevSibling === null) {
          throw new Error('Expected to find the previous sibling.');
        }
      }

      prevSibling.sibling = newWorkInProgress;
    } // Delete the old fiber and place the new one.
    // Since the old fiber is disconnected, we have to schedule it manually.


    var last = returnFiber.lastEffect;

    if (last !== null) {
      last.nextEffect = current;
      returnFiber.lastEffect = current;
    } else {
      returnFiber.firstEffect = returnFiber.lastEffect = current;
    }

    current.nextEffect = null;
    current.flags = Deletion;
    newWorkInProgress.flags |= Placement; // Restart work from the new fiber.

    return newWorkInProgress;
  }
}

function beginWork(current, workInProgress, renderLanes) {
  var updateLanes = workInProgress.lanes;

  {
    if (workInProgress._debugNeedsRemount && current !== null) {
      // This will restart the begin phase with a new fiber.
      return remountFiber(current, workInProgress, createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner || null, workInProgress.mode, workInProgress.lanes));
    }
  }

  if (current !== null) {
    var oldProps = current.memoizedProps;
    var newProps = workInProgress.pendingProps;

    if (oldProps !== newProps || hasContextChanged() || ( // Force a re-render if the implementation changed due to hot reload:
     workInProgress.type !== current.type )) {
      // If props or context changed, mark the fiber as having performed work.
      // This may be unset if the props are determined to be equal later (memo).
      didReceiveUpdate = true;
    } else if (!includesSomeLane(renderLanes, updateLanes)) {
      didReceiveUpdate = false; // This fiber does not have any pending work. Bailout without entering
      // the begin phase. There's still some bookkeeping we that needs to be done
      // in this optimized path, mostly pushing stuff onto the stack.

      switch (workInProgress.tag) {
        case HostRoot:
          pushHostRootContext(workInProgress);
          resetHydrationState();
          break;

        case HostComponent:
          pushHostContext(workInProgress);
          break;

        case ClassComponent:
          {
            var Component = workInProgress.type;

            if (isContextProvider(Component)) {
              pushContextProvider(workInProgress);
            }

            break;
          }

        case HostPortal:
          pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
          break;

        case ContextProvider:
          {
            var newValue = workInProgress.memoizedProps.value;
            pushProvider(workInProgress, newValue);
            break;
          }

        case Profiler:
          {
            // Profiler should only call onRender when one of its descendants actually rendered.
            var hasChildWork = includesSomeLane(renderLanes, workInProgress.childLanes);

            if (hasChildWork) {
              workInProgress.flags |= Update;
            } // Reset effect durations for the next eventual effect phase.
            // These are reset during render to allow the DevTools commit hook a chance to read them,


            var stateNode = workInProgress.stateNode;
            stateNode.effectDuration = 0;
            stateNode.passiveEffectDuration = 0;
          }

          break;

        case SuspenseComponent:
          {
            var state = workInProgress.memoizedState;

            if (state !== null) {
              // whether to retry the primary children, or to skip over it and
              // go straight to the fallback. Check the priority of the primary
              // child fragment.


              var primaryChildFragment = workInProgress.child;
              var primaryChildLanes = primaryChildFragment.childLanes;

              if (includesSomeLane(renderLanes, primaryChildLanes)) {
                // The primary children have pending work. Use the normal path
                // to attempt to render the primary children again.
                return updateSuspenseComponent(current, workInProgress, renderLanes);
              } else {
                // The primary child fragment does not have pending work marked
                // on it
                pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); // The primary children do not have pending work with sufficient
                // priority. Bailout.

                var child = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);

                if (child !== null) {
                  // The fallback children have pending work. Skip over the
                  // primary children and work on the fallback.
                  return child.sibling;
                } else {
                  return null;
                }
              }
            } else {
              pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
            }

            break;
          }

        case SuspenseListComponent:
          {
            var didSuspendBefore = (current.flags & DidCapture) !== NoFlags;

            var _hasChildWork = includesSomeLane(renderLanes, workInProgress.childLanes);

            if (didSuspendBefore) {
              if (_hasChildWork) {
                // If something was in fallback state last time, and we have all the
                // same children then we're still in progressive loading state.
                // Something might get unblocked by state updates or retries in the
                // tree which will affect the tail. So we need to use the normal
                // path to compute the correct tail.
                return updateSuspenseListComponent(current, workInProgress, renderLanes);
              } // If none of the children had any work, that means that none of
              // them got retried so they'll still be blocked in the same way
              // as before. We can fast bail out.


              workInProgress.flags |= DidCapture;
            } // If nothing suspended before and we're rendering the same children,
            // then the tail doesn't matter. Anything new that suspends will work
            // in the "together" mode, so we can continue from the state we had.


            var renderState = workInProgress.memoizedState;

            if (renderState !== null) {
              // Reset to the "together" mode in case we've started a different
              // update in the past but didn't complete it.
              renderState.rendering = null;
              renderState.tail = null;
              renderState.lastEffect = null;
            }

            pushSuspenseContext(workInProgress, suspenseStackCursor.current);

            if (_hasChildWork) {
              break;
            } else {
              // If none of the children had any work, that means that none of
              // them got retried so they'll still be blocked in the same way
              // as before. We can fast bail out.
              return null;
            }
          }

        case OffscreenComponent:
        case LegacyHiddenComponent:
          {
            // Need to check if the tree still needs to be deferred. This is
            // almost identical to the logic used in the normal update path,
            // so we'll just enter that. The only difference is we'll bail out
            // at the next level instead of this one, because the child props
            // have not changed. Which is fine.
            // TODO: Probably should refactor `beginWork` to split the bailout
            // path from the normal path. I'm tempted to do a labeled break here
            // but I won't :)
            workInProgress.lanes = NoLanes;
            return updateOffscreenComponent(current, workInProgress, renderLanes);
          }
      }

      return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
    } else {
      if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) {
        // This is a special case that only exists for legacy mode.
        // See https://github.com/facebook/react/pull/19216.
        didReceiveUpdate = true;
      } else {
        // An update was scheduled on this fiber, but there are no new props
        // nor legacy context. Set this to false. If an update queue or context
        // consumer produces a changed value, it will set this to true. Otherwise,
        // the component will assume the children have not changed and bail out.
        didReceiveUpdate = false;
      }
    }
  } else {
    didReceiveUpdate = false;
  } // Before entering the begin phase, clear pending update priority.
  // TODO: This assumes that we're about to evaluate the component and process
  // the update queue. However, there's an exception: SimpleMemoComponent
  // sometimes bails out later in the begin phase. This indicates that we should
  // move this assignment out of the common path and into each branch.


  workInProgress.lanes = NoLanes;

  switch (workInProgress.tag) {
    case IndeterminateComponent:
      {
        return mountIndeterminateComponent(current, workInProgress, workInProgress.type, renderLanes);
      }

    case LazyComponent:
      {
        var elementType = workInProgress.elementType;
        return mountLazyComponent(current, workInProgress, elementType, updateLanes, renderLanes);
      }

    case FunctionComponent:
      {
        var _Component = workInProgress.type;
        var unresolvedProps = workInProgress.pendingProps;
        var resolvedProps = workInProgress.elementType === _Component ? unresolvedProps : resolveDefaultProps(_Component, unresolvedProps);
        return updateFunctionComponent(current, workInProgress, _Component, resolvedProps, renderLanes);
      }

    case ClassComponent:
      {
        var _Component2 = workInProgress.type;
        var _unresolvedProps = workInProgress.pendingProps;

        var _resolvedProps = workInProgress.elementType === _Component2 ? _unresolvedProps : resolveDefaultProps(_Component2, _unresolvedProps);

        return updateClassComponent(current, workInProgress, _Component2, _resolvedProps, renderLanes);
      }

    case HostRoot:
      return updateHostRoot(current, workInProgress, renderLanes);

    case HostComponent:
      return updateHostComponent(current, workInProgress, renderLanes);

    case HostText:
      return updateHostText(current, workInProgress);

    case SuspenseComponent:
      return updateSuspenseComponent(current, workInProgress, renderLanes);

    case HostPortal:
      return updatePortalComponent(current, workInProgress, renderLanes);

    case ForwardRef:
      {
        var type = workInProgress.type;
        var _unresolvedProps2 = workInProgress.pendingProps;

        var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);

        return updateForwardRef(current, workInProgress, type, _resolvedProps2, renderLanes);
      }

    case Fragment:
      return updateFragment(current, workInProgress, renderLanes);

    case Mode:
      return updateMode(current, workInProgress, renderLanes);

    case Profiler:
      return updateProfiler(current, workInProgress, renderLanes);

    case ContextProvider:
      return updateContextProvider(current, workInProgress, renderLanes);

    case ContextConsumer:
      return updateContextConsumer(current, workInProgress, renderLanes);

    case MemoComponent:
      {
        var _type2 = workInProgress.type;
        var _unresolvedProps3 = workInProgress.pendingProps; // Resolve outer props first, then resolve inner props.

        var _resolvedProps3 = resolveDefaultProps(_type2, _unresolvedProps3);

        {
          if (workInProgress.type !== workInProgress.elementType) {
            var outerPropTypes = _type2.propTypes;

            if (outerPropTypes) {
              checkPropTypes(outerPropTypes, _resolvedProps3, // Resolved for outer only
              'prop', getComponentName(_type2));
            }
          }
        }

        _resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3);
        return updateMemoComponent(current, workInProgress, _type2, _resolvedProps3, updateLanes, renderLanes);
      }

    case SimpleMemoComponent:
      {
        return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, updateLanes, renderLanes);
      }

    case IncompleteClassComponent:
      {
        var _Component3 = workInProgress.type;
        var _unresolvedProps4 = workInProgress.pendingProps;

        var _resolvedProps4 = workInProgress.elementType === _Component3 ? _unresolvedProps4 : resolveDefaultProps(_Component3, _unresolvedProps4);

        return mountIncompleteClassComponent(current, workInProgress, _Component3, _resolvedProps4, renderLanes);
      }

    case SuspenseListComponent:
      {
        return updateSuspenseListComponent(current, workInProgress, renderLanes);
      }

    case FundamentalComponent:
      {

        break;
      }

    case ScopeComponent:
      {

        break;
      }

    case Block:
      {

        break;
      }

    case OffscreenComponent:
      {
        return updateOffscreenComponent(current, workInProgress, renderLanes);
      }

    case LegacyHiddenComponent:
      {
        return updateLegacyHiddenComponent(current, workInProgress, renderLanes);
      }
  }

  {
    {
      throw Error( "Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue." );
    }
  }
}

function markUpdate(workInProgress) {
  // Tag the fiber with an update effect. This turns a Placement into
  // a PlacementAndUpdate.
  workInProgress.flags |= Update;
}

function markRef$1(workInProgress) {
  workInProgress.flags |= Ref;
}

var appendAllChildren;
var updateHostContainer;
var updateHostComponent$1;
var updateHostText$1;

{
  // Mutation mode
  appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
    // We only have the top Fiber that was created but we need recurse down its
    // children to find all the terminal nodes.
    var node = workInProgress.child;

    while (node !== null) {
      if (node.tag === HostComponent || node.tag === HostText) {
        appendInitialChild(parent, node.stateNode);
      } else if (node.tag === HostPortal) ; else if (node.child !== null) {
        node.child.return = node;
        node = node.child;
        continue;
      }

      if (node === workInProgress) {
        return;
      }

      while (node.sibling === null) {
        if (node.return === null || node.return === workInProgress) {
          return;
        }

        node = node.return;
      }

      node.sibling.return = node.return;
      node = node.sibling;
    }
  };

  updateHostContainer = function (workInProgress) {// Noop
  };

  updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
    // If we have an alternate, that means this is an update and we need to
    // schedule a side-effect to do the updates.
    var oldProps = current.memoizedProps;

    if (oldProps === newProps) {
      // In mutation mode, this is sufficient for a bailout because
      // we won't touch this node even if children changed.
      return;
    } // If we get updated because one of our children updated, we don't
    // have newProps so we'll have to reuse them.
    // TODO: Split the update API as separate for the props vs. children.
    // Even better would be if children weren't special cased at all tho.


    var instance = workInProgress.stateNode;
    var currentHostContext = getHostContext(); // TODO: Experiencing an error where oldProps is null. Suggests a host
    // component is hitting the resume path. Figure out why. Possibly
    // related to `hidden`.

    var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext); // TODO: Type this specific to this type of component.

    workInProgress.updateQueue = updatePayload; // If the update payload indicates that there is a change or if there
    // is a new ref we mark this as an update. All the work is done in commitWork.

    if (updatePayload) {
      markUpdate(workInProgress);
    }
  };

  updateHostText$1 = function (current, workInProgress, oldText, newText) {
    // If the text differs, mark it as an update. All the work in done in commitWork.
    if (oldText !== newText) {
      markUpdate(workInProgress);
    }
  };
}

function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
  if (getIsHydrating()) {
    // If we're hydrating, we should consume as many items as we can
    // so we don't leave any behind.
    return;
  }

  switch (renderState.tailMode) {
    case 'hidden':
      {
        // Any insertions at the end of the tail list after this point
        // should be invisible. If there are already mounted boundaries
        // anything before them are not considered for collapsing.
        // Therefore we need to go through the whole tail to find if
        // there are any.
        var tailNode = renderState.tail;
        var lastTailNode = null;

        while (tailNode !== null) {
          if (tailNode.alternate !== null) {
            lastTailNode = tailNode;
          }

          tailNode = tailNode.sibling;
        } // Next we're simply going to delete all insertions after the
        // last rendered item.


        if (lastTailNode === null) {
          // All remaining items in the tail are insertions.
          renderState.tail = null;
        } else {
          // Detach the insertion after the last node that was already
          // inserted.
          lastTailNode.sibling = null;
        }

        break;
      }

    case 'collapsed':
      {
        // Any insertions at the end of the tail list after this point
        // should be invisible. If there are already mounted boundaries
        // anything before them are not considered for collapsing.
        // Therefore we need to go through the whole tail to find if
        // there are any.
        var _tailNode = renderState.tail;
        var _lastTailNode = null;

        while (_tailNode !== null) {
          if (_tailNode.alternate !== null) {
            _lastTailNode = _tailNode;
          }

          _tailNode = _tailNode.sibling;
        } // Next we're simply going to delete all insertions after the
        // last rendered item.


        if (_lastTailNode === null) {
          // All remaining items in the tail are insertions.
          if (!hasRenderedATailFallback && renderState.tail !== null) {
            // We suspended during the head. We want to show at least one
            // row at the tail. So we'll keep on and cut off the rest.
            renderState.tail.sibling = null;
          } else {
            renderState.tail = null;
          }
        } else {
          // Detach the insertion after the last node that was already
          // inserted.
          _lastTailNode.sibling = null;
        }

        break;
      }
  }
}

function completeWork(current, workInProgress, renderLanes) {
  var newProps = workInProgress.pendingProps;

  switch (workInProgress.tag) {
    case IndeterminateComponent:
    case LazyComponent:
    case SimpleMemoComponent:
    case FunctionComponent:
    case ForwardRef:
    case Fragment:
    case Mode:
    case Profiler:
    case ContextConsumer:
    case MemoComponent:
      return null;

    case ClassComponent:
      {
        var Component = workInProgress.type;

        if (isContextProvider(Component)) {
          popContext(workInProgress);
        }

        return null;
      }

    case HostRoot:
      {
        popHostContainer(workInProgress);
        popTopLevelContextObject(workInProgress);
        resetWorkInProgressVersions();
        var fiberRoot = workInProgress.stateNode;

        if (fiberRoot.pendingContext) {
          fiberRoot.context = fiberRoot.pendingContext;
          fiberRoot.pendingContext = null;
        }

        if (current === null || current.child === null) {
          // If we hydrated, pop so that we can delete any remaining children
          // that weren't hydrated.
          var wasHydrated = popHydrationState(workInProgress);

          if (wasHydrated) {
            // If we hydrated, then we'll need to schedule an update for
            // the commit side-effects on the root.
            markUpdate(workInProgress);
          } else if (!fiberRoot.hydrate) {
            // Schedule an effect to clear this container at the start of the next commit.
            // This handles the case of React rendering into a container with previous children.
            // It's also safe to do for updates too, because current.child would only be null
            // if the previous render was null (so the the container would already be empty).
            workInProgress.flags |= Snapshot;
          }
        }

        updateHostContainer(workInProgress);
        return null;
      }

    case HostComponent:
      {
        popHostContext(workInProgress);
        var rootContainerInstance = getRootHostContainer();
        var type = workInProgress.type;

        if (current !== null && workInProgress.stateNode != null) {
          updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance);

          if (current.ref !== workInProgress.ref) {
            markRef$1(workInProgress);
          }
        } else {
          if (!newProps) {
            if (!(workInProgress.stateNode !== null)) {
              {
                throw Error( "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue." );
              }
            } // This can happen when we abort work.


            return null;
          }

          var currentHostContext = getHostContext(); // TODO: Move createInstance to beginWork and keep it on a context
          // "stack" as the parent. Then append children as we go in beginWork
          // or completeWork depending on whether we want to add them top->down or
          // bottom->up. Top->down is faster in IE11.

          var _wasHydrated = popHydrationState(workInProgress);

          if (_wasHydrated) {
            // TODO: Move this and createInstance step into the beginPhase
            // to consolidate.
            if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, currentHostContext)) {
              // If changes to the hydrated node need to be applied at the
              // commit-phase we mark this as such.
              markUpdate(workInProgress);
            }
          } else {
            var instance = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress);
            appendAllChildren(instance, workInProgress, false, false);
            workInProgress.stateNode = instance; // Certain renderers require commit-time effects for initial mount.
            // (eg DOM renderer supports auto-focus for certain elements).
            // Make sure such renderers get scheduled for later work.

            if (finalizeInitialChildren(instance, type, newProps, rootContainerInstance)) {
              markUpdate(workInProgress);
            }
          }

          if (workInProgress.ref !== null) {
            // If there is a ref on a host node we need to schedule a callback
            markRef$1(workInProgress);
          }
        }

        return null;
      }

    case HostText:
      {
        var newText = newProps;

        if (current && workInProgress.stateNode != null) {
          var oldText = current.memoizedProps; // If we have an alternate, that means this is an update and we need
          // to schedule a side-effect to do the updates.

          updateHostText$1(current, workInProgress, oldText, newText);
        } else {
          if (typeof newText !== 'string') {
            if (!(workInProgress.stateNode !== null)) {
              {
                throw Error( "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue." );
              }
            } // This can happen when we abort work.

          }

          var _rootContainerInstance = getRootHostContainer();

          var _currentHostContext = getHostContext();

          var _wasHydrated2 = popHydrationState(workInProgress);

          if (_wasHydrated2) {
            if (prepareToHydrateHostTextInstance(workInProgress)) {
              markUpdate(workInProgress);
            }
          } else {
            workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress);
          }
        }

        return null;
      }

    case SuspenseComponent:
      {
        popSuspenseContext(workInProgress);
        var nextState = workInProgress.memoizedState;

        if ((workInProgress.flags & DidCapture) !== NoFlags) {
          // Something suspended. Re-render with the fallback children.
          workInProgress.lanes = renderLanes; // Do not reset the effect list.

          if ( (workInProgress.mode & ProfileMode) !== NoMode) {
            transferActualDuration(workInProgress);
          }

          return workInProgress;
        }

        var nextDidTimeout = nextState !== null;
        var prevDidTimeout = false;

        if (current === null) {
          if (workInProgress.memoizedProps.fallback !== undefined) {
            popHydrationState(workInProgress);
          }
        } else {
          var prevState = current.memoizedState;
          prevDidTimeout = prevState !== null;
        }

        if (nextDidTimeout && !prevDidTimeout) {
          // If this subtreee is running in blocking mode we can suspend,
          // otherwise we won't suspend.
          // TODO: This will still suspend a synchronous tree if anything
          // in the concurrent tree already suspended during this render.
          // This is a known bug.
          if ((workInProgress.mode & BlockingMode) !== NoMode) {
            // TODO: Move this back to throwException because this is too late
            // if this is a large tree which is common for initial loads. We
            // don't know if we should restart a render or not until we get
            // this marker, and this is too late.
            // If this render already had a ping or lower pri updates,
            // and this is the first time we know we're going to suspend we
            // should be able to immediately restart from within throwException.
            var hasInvisibleChildContext = current === null && workInProgress.memoizedProps.unstable_avoidThisFallback !== true;

            if (hasInvisibleChildContext || hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext)) {
              // If this was in an invisible tree or a new render, then showing
              // this boundary is ok.
              renderDidSuspend();
            } else {
              // Otherwise, we're going to have to hide content so we should
              // suspend for longer if possible.
              renderDidSuspendDelayIfPossible();
            }
          }
        }

        {
          // TODO: Only schedule updates if these values are non equal, i.e. it changed.
          if (nextDidTimeout || prevDidTimeout) {
            // If this boundary just timed out, schedule an effect to attach a
            // retry listener to the promise. This flag is also used to hide the
            // primary children. In mutation mode, we also need the flag to
            // *unhide* children that were previously hidden, so check if this
            // is currently timed out, too.
            workInProgress.flags |= Update;
          }
        }

        return null;
      }

    case HostPortal:
      popHostContainer(workInProgress);
      updateHostContainer(workInProgress);

      if (current === null) {
        preparePortalMount(workInProgress.stateNode.containerInfo);
      }

      return null;

    case ContextProvider:
      // Pop provider fiber
      popProvider(workInProgress);
      return null;

    case IncompleteClassComponent:
      {
        // Same as class component case. I put it down here so that the tags are
        // sequential to ensure this switch is compiled to a jump table.
        var _Component = workInProgress.type;

        if (isContextProvider(_Component)) {
          popContext(workInProgress);
        }

        return null;
      }

    case SuspenseListComponent:
      {
        popSuspenseContext(workInProgress);
        var renderState = workInProgress.memoizedState;

        if (renderState === null) {
          // We're running in the default, "independent" mode.
          // We don't do anything in this mode.
          return null;
        }

        var didSuspendAlready = (workInProgress.flags & DidCapture) !== NoFlags;
        var renderedTail = renderState.rendering;

        if (renderedTail === null) {
          // We just rendered the head.
          if (!didSuspendAlready) {
            // This is the first pass. We need to figure out if anything is still
            // suspended in the rendered set.
            // If new content unsuspended, but there's still some content that
            // didn't. Then we need to do a second pass that forces everything
            // to keep showing their fallbacks.
            // We might be suspended if something in this render pass suspended, or
            // something in the previous committed pass suspended. Otherwise,
            // there's no chance so we can skip the expensive call to
            // findFirstSuspended.
            var cannotBeSuspended = renderHasNotSuspendedYet() && (current === null || (current.flags & DidCapture) === NoFlags);

            if (!cannotBeSuspended) {
              var row = workInProgress.child;

              while (row !== null) {
                var suspended = findFirstSuspended(row);

                if (suspended !== null) {
                  didSuspendAlready = true;
                  workInProgress.flags |= DidCapture;
                  cutOffTailIfNeeded(renderState, false); // If this is a newly suspended tree, it might not get committed as
                  // part of the second pass. In that case nothing will subscribe to
                  // its thennables. Instead, we'll transfer its thennables to the
                  // SuspenseList so that it can retry if they resolve.
                  // There might be multiple of these in the list but since we're
                  // going to wait for all of them anyway, it doesn't really matter
                  // which ones gets to ping. In theory we could get clever and keep
                  // track of how many dependencies remain but it gets tricky because
                  // in the meantime, we can add/remove/change items and dependencies.
                  // We might bail out of the loop before finding any but that
                  // doesn't matter since that means that the other boundaries that
                  // we did find already has their listeners attached.

                  var newThennables = suspended.updateQueue;

                  if (newThennables !== null) {
                    workInProgress.updateQueue = newThennables;
                    workInProgress.flags |= Update;
                  } // Rerender the whole list, but this time, we'll force fallbacks
                  // to stay in place.
                  // Reset the effect list before doing the second pass since that's now invalid.


                  if (renderState.lastEffect === null) {
                    workInProgress.firstEffect = null;
                  }

                  workInProgress.lastEffect = renderState.lastEffect; // Reset the child fibers to their original state.

                  resetChildFibers(workInProgress, renderLanes); // Set up the Suspense Context to force suspense and immediately
                  // rerender the children.

                  pushSuspenseContext(workInProgress, setShallowSuspenseContext(suspenseStackCursor.current, ForceSuspenseFallback));
                  return workInProgress.child;
                }

                row = row.sibling;
              }
            }

            if (renderState.tail !== null && now() > getRenderTargetTime()) {
              // We have already passed our CPU deadline but we still have rows
              // left in the tail. We'll just give up further attempts to render
              // the main content and only render fallbacks.
              workInProgress.flags |= DidCapture;
              didSuspendAlready = true;
              cutOffTailIfNeeded(renderState, false); // Since nothing actually suspended, there will nothing to ping this
              // to get it started back up to attempt the next item. While in terms
              // of priority this work has the same priority as this current render,
              // it's not part of the same transition once the transition has
              // committed. If it's sync, we still want to yield so that it can be
              // painted. Conceptually, this is really the same as pinging.
              // We can use any RetryLane even if it's the one currently rendering
              // since we're leaving it behind on this node.

              workInProgress.lanes = SomeRetryLane;

              {
                markSpawnedWork(SomeRetryLane);
              }
            }
          } else {
            cutOffTailIfNeeded(renderState, false);
          } // Next we're going to render the tail.

        } else {
          // Append the rendered row to the child list.
          if (!didSuspendAlready) {
            var _suspended = findFirstSuspended(renderedTail);

            if (_suspended !== null) {
              workInProgress.flags |= DidCapture;
              didSuspendAlready = true; // Ensure we transfer the update queue to the parent so that it doesn't
              // get lost if this row ends up dropped during a second pass.

              var _newThennables = _suspended.updateQueue;

              if (_newThennables !== null) {
                workInProgress.updateQueue = _newThennables;
                workInProgress.flags |= Update;
              }

              cutOffTailIfNeeded(renderState, true); // This might have been modified.

              if (renderState.tail === null && renderState.tailMode === 'hidden' && !renderedTail.alternate && !getIsHydrating() // We don't cut it if we're hydrating.
              ) {
                  // We need to delete the row we just rendered.
                  // Reset the effect list to what it was before we rendered this
                  // child. The nested children have already appended themselves.
                  var lastEffect = workInProgress.lastEffect = renderState.lastEffect; // Remove any effects that were appended after this point.

                  if (lastEffect !== null) {
                    lastEffect.nextEffect = null;
                  } // We're done.


                  return null;
                }
            } else if ( // The time it took to render last row is greater than the remaining
            // time we have to render. So rendering one more row would likely
            // exceed it.
            now() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes !== OffscreenLane) {
              // We have now passed our CPU deadline and we'll just give up further
              // attempts to render the main content and only render fallbacks.
              // The assumption is that this is usually faster.
              workInProgress.flags |= DidCapture;
              didSuspendAlready = true;
              cutOffTailIfNeeded(renderState, false); // Since nothing actually suspended, there will nothing to ping this
              // to get it started back up to attempt the next item. While in terms
              // of priority this work has the same priority as this current render,
              // it's not part of the same transition once the transition has
              // committed. If it's sync, we still want to yield so that it can be
              // painted. Conceptually, this is really the same as pinging.
              // We can use any RetryLane even if it's the one currently rendering
              // since we're leaving it behind on this node.

              workInProgress.lanes = SomeRetryLane;

              {
                markSpawnedWork(SomeRetryLane);
              }
            }
          }

          if (renderState.isBackwards) {
            // The effect list of the backwards tail will have been added
            // to the end. This breaks the guarantee that life-cycles fire in
            // sibling order but that isn't a strong guarantee promised by React.
            // Especially since these might also just pop in during future commits.
            // Append to the beginning of the list.
            renderedTail.sibling = workInProgress.child;
            workInProgress.child = renderedTail;
          } else {
            var previousSibling = renderState.last;

            if (previousSibling !== null) {
              previousSibling.sibling = renderedTail;
            } else {
              workInProgress.child = renderedTail;
            }

            renderState.last = renderedTail;
          }
        }

        if (renderState.tail !== null) {
          // We still have tail rows to render.
          // Pop a row.
          var next = renderState.tail;
          renderState.rendering = next;
          renderState.tail = next.sibling;
          renderState.lastEffect = workInProgress.lastEffect;
          renderState.renderingStartTime = now();
          next.sibling = null; // Restore the context.
          // TODO: We can probably just avoid popping it instead and only
          // setting it the first time we go from not suspended to suspended.

          var suspenseContext = suspenseStackCursor.current;

          if (didSuspendAlready) {
            suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
          } else {
            suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
          }

          pushSuspenseContext(workInProgress, suspenseContext); // Do a pass over the next row.

          return next;
        }

        return null;
      }

    case FundamentalComponent:
      {

        break;
      }

    case ScopeComponent:
      {

        break;
      }

    case Block:

      break;

    case OffscreenComponent:
    case LegacyHiddenComponent:
      {
        popRenderLanes(workInProgress);

        if (current !== null) {
          var _nextState = workInProgress.memoizedState;
          var _prevState = current.memoizedState;
          var prevIsHidden = _prevState !== null;
          var nextIsHidden = _nextState !== null;

          if (prevIsHidden !== nextIsHidden && newProps.mode !== 'unstable-defer-without-hiding') {
            workInProgress.flags |= Update;
          }
        }

        return null;
      }
  }

  {
    {
      throw Error( "Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue." );
    }
  }
}

function unwindWork(workInProgress, renderLanes) {
  switch (workInProgress.tag) {
    case ClassComponent:
      {
        var Component = workInProgress.type;

        if (isContextProvider(Component)) {
          popContext(workInProgress);
        }

        var flags = workInProgress.flags;

        if (flags & ShouldCapture) {
          workInProgress.flags = flags & ~ShouldCapture | DidCapture;

          if ( (workInProgress.mode & ProfileMode) !== NoMode) {
            transferActualDuration(workInProgress);
          }

          return workInProgress;
        }

        return null;
      }

    case HostRoot:
      {
        popHostContainer(workInProgress);
        popTopLevelContextObject(workInProgress);
        resetWorkInProgressVersions();
        var _flags = workInProgress.flags;

        if (!((_flags & DidCapture) === NoFlags)) {
          {
            throw Error( "The root failed to unmount after an error. This is likely a bug in React. Please file an issue." );
          }
        }

        workInProgress.flags = _flags & ~ShouldCapture | DidCapture;
        return workInProgress;
      }

    case HostComponent:
      {
        // TODO: popHydrationState
        popHostContext(workInProgress);
        return null;
      }

    case SuspenseComponent:
      {
        popSuspenseContext(workInProgress);

        var _flags2 = workInProgress.flags;

        if (_flags2 & ShouldCapture) {
          workInProgress.flags = _flags2 & ~ShouldCapture | DidCapture; // Captured a suspense effect. Re-render the boundary.

          if ( (workInProgress.mode & ProfileMode) !== NoMode) {
            transferActualDuration(workInProgress);
          }

          return workInProgress;
        }

        return null;
      }

    case SuspenseListComponent:
      {
        popSuspenseContext(workInProgress); // SuspenseList doesn't actually catch anything. It should've been
        // caught by a nested boundary. If not, it should bubble through.

        return null;
      }

    case HostPortal:
      popHostContainer(workInProgress);
      return null;

    case ContextProvider:
      popProvider(workInProgress);
      return null;

    case OffscreenComponent:
    case LegacyHiddenComponent:
      popRenderLanes(workInProgress);
      return null;

    default:
      return null;
  }
}

function unwindInterruptedWork(interruptedWork) {
  switch (interruptedWork.tag) {
    case ClassComponent:
      {
        var childContextTypes = interruptedWork.type.childContextTypes;

        if (childContextTypes !== null && childContextTypes !== undefined) {
          popContext(interruptedWork);
        }

        break;
      }

    case HostRoot:
      {
        popHostContainer(interruptedWork);
        popTopLevelContextObject(interruptedWork);
        resetWorkInProgressVersions();
        break;
      }

    case HostComponent:
      {
        popHostContext(interruptedWork);
        break;
      }

    case HostPortal:
      popHostContainer(interruptedWork);
      break;

    case SuspenseComponent:
      popSuspenseContext(interruptedWork);
      break;

    case SuspenseListComponent:
      popSuspenseContext(interruptedWork);
      break;

    case ContextProvider:
      popProvider(interruptedWork);
      break;

    case OffscreenComponent:
    case LegacyHiddenComponent:
      popRenderLanes(interruptedWork);
      break;
  }
}

function createCapturedValue(value, source) {
  // If the value is an error, call this function immediately after it is thrown
  // so the stack is accurate.
  return {
    value: value,
    source: source,
    stack: getStackByFiberInDevAndProd(source)
  };
}

// This module is forked in different environments.
// By default, return `true` to log errors to the console.
// Forks can return `false` if this isn't desirable.
function showErrorDialog(boundary, errorInfo) {
  return true;
}

function logCapturedError(boundary, errorInfo) {
  try {
    var logError = showErrorDialog(boundary, errorInfo); // Allow injected showErrorDialog() to prevent default console.error logging.
    // This enables renderers like ReactNative to better manage redbox behavior.

    if (logError === false) {
      return;
    }

    var error = errorInfo.value;

    if (true) {
      var source = errorInfo.source;
      var stack = errorInfo.stack;
      var componentStack = stack !== null ? stack : ''; // Browsers support silencing uncaught errors by calling
      // `preventDefault()` in window `error` handler.
      // We record this information as an expando on the error.

      if (error != null && error._suppressLogging) {
        if (boundary.tag === ClassComponent) {
          // The error is recoverable and was silenced.
          // Ignore it and don't print the stack addendum.
          // This is handy for testing error boundaries without noise.
          return;
        } // The error is fatal. Since the silencing might have
        // been accidental, we'll surface it anyway.
        // However, the browser would have silenced the original error
        // so we'll print it first, and then print the stack addendum.


        console['error'](error); // Don't transform to our wrapper
        // For a more detailed description of this block, see:
        // https://github.com/facebook/react/pull/13384
      }

      var componentName = source ? getComponentName(source.type) : null;
      var componentNameMessage = componentName ? "The above error occurred in the <" + componentName + "> component:" : 'The above error occurred in one of your React components:';
      var errorBoundaryMessage;
      var errorBoundaryName = getComponentName(boundary.type);

      if (errorBoundaryName) {
        errorBoundaryMessage = "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " + errorBoundaryName + ".");
      } else {
        errorBoundaryMessage = 'Consider adding an error boundary to your tree to customize error handling behavior.\n' + 'Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.';
      }

      var combinedMessage = componentNameMessage + "\n" + componentStack + "\n\n" + ("" + errorBoundaryMessage); // In development, we provide our own message with just the component stack.
      // We don't include the original error message and JS stack because the browser
      // has already printed it. Even if the application swallows the error, it is still
      // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils.

      console['error'](combinedMessage); // Don't transform to our wrapper
    } else {}
  } catch (e) {
    // This method must not throw, or React internal state will get messed up.
    // If console.error is overridden, or logCapturedError() shows a dialog that throws,
    // we want to report this error outside of the normal stack as a last resort.
    // https://github.com/facebook/react/issues/13188
    setTimeout(function () {
      throw e;
    });
  }
}

var PossiblyWeakMap$1 = typeof WeakMap === 'function' ? WeakMap : Map;

function createRootErrorUpdate(fiber, errorInfo, lane) {
  var update = createUpdate(NoTimestamp, lane); // Unmount the root by rendering null.

  update.tag = CaptureUpdate; // Caution: React DevTools currently depends on this property
  // being called "element".

  update.payload = {
    element: null
  };
  var error = errorInfo.value;

  update.callback = function () {
    onUncaughtError(error);
    logCapturedError(fiber, errorInfo);
  };

  return update;
}

function createClassErrorUpdate(fiber, errorInfo, lane) {
  var update = createUpdate(NoTimestamp, lane);
  update.tag = CaptureUpdate;
  var getDerivedStateFromError = fiber.type.getDerivedStateFromError;

  if (typeof getDerivedStateFromError === 'function') {
    var error$1 = errorInfo.value;

    update.payload = function () {
      logCapturedError(fiber, errorInfo);
      return getDerivedStateFromError(error$1);
    };
  }

  var inst = fiber.stateNode;

  if (inst !== null && typeof inst.componentDidCatch === 'function') {
    update.callback = function callback() {
      {
        markFailedErrorBoundaryForHotReloading(fiber);
      }

      if (typeof getDerivedStateFromError !== 'function') {
        // To preserve the preexisting retry behavior of error boundaries,
        // we keep track of which ones already failed during this batch.
        // This gets reset before we yield back to the browser.
        // TODO: Warn in strict mode if getDerivedStateFromError is
        // not defined.
        markLegacyErrorBoundaryAsFailed(this); // Only log here if componentDidCatch is the only error boundary method defined

        logCapturedError(fiber, errorInfo);
      }

      var error$1 = errorInfo.value;
      var stack = errorInfo.stack;
      this.componentDidCatch(error$1, {
        componentStack: stack !== null ? stack : ''
      });

      {
        if (typeof getDerivedStateFromError !== 'function') {
          // If componentDidCatch is the only error boundary method defined,
          // then it needs to call setState to recover from errors.
          // If no state update is scheduled then the boundary will swallow the error.
          if (!includesSomeLane(fiber.lanes, SyncLane)) {
            error('%s: Error boundaries should implement getDerivedStateFromError(). ' + 'In that method, return a state update to display an error message or fallback UI.', getComponentName(fiber.type) || 'Unknown');
          }
        }
      }
    };
  } else {
    update.callback = function () {
      markFailedErrorBoundaryForHotReloading(fiber);
    };
  }

  return update;
}

function attachPingListener(root, wakeable, lanes) {
  // Attach a listener to the promise to "ping" the root and retry. But only if
  // one does not already exist for the lanes we're currently rendering (which
  // acts like a "thread ID" here).
  var pingCache = root.pingCache;
  var threadIDs;

  if (pingCache === null) {
    pingCache = root.pingCache = new PossiblyWeakMap$1();
    threadIDs = new Set();
    pingCache.set(wakeable, threadIDs);
  } else {
    threadIDs = pingCache.get(wakeable);

    if (threadIDs === undefined) {
      threadIDs = new Set();
      pingCache.set(wakeable, threadIDs);
    }
  }

  if (!threadIDs.has(lanes)) {
    // Memoize using the thread ID to prevent redundant listeners.
    threadIDs.add(lanes);
    var ping = pingSuspendedRoot.bind(null, root, wakeable, lanes);
    wakeable.then(ping, ping);
  }
}

function throwException(root, returnFiber, sourceFiber, value, rootRenderLanes) {
  // The source fiber did not complete.
  sourceFiber.flags |= Incomplete; // Its effect list is no longer valid.

  sourceFiber.firstEffect = sourceFiber.lastEffect = null;

  if (value !== null && typeof value === 'object' && typeof value.then === 'function') {
    // This is a wakeable.
    var wakeable = value;

    if ((sourceFiber.mode & BlockingMode) === NoMode) {
      // Reset the memoizedState to what it was before we attempted
      // to render it.
      var currentSource = sourceFiber.alternate;

      if (currentSource) {
        sourceFiber.updateQueue = currentSource.updateQueue;
        sourceFiber.memoizedState = currentSource.memoizedState;
        sourceFiber.lanes = currentSource.lanes;
      } else {
        sourceFiber.updateQueue = null;
        sourceFiber.memoizedState = null;
      }
    }

    var hasInvisibleParentBoundary = hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext); // Schedule the nearest Suspense to re-render the timed out view.

    var _workInProgress = returnFiber;

    do {
      if (_workInProgress.tag === SuspenseComponent && shouldCaptureSuspense(_workInProgress, hasInvisibleParentBoundary)) {
        // Found the nearest boundary.
        // Stash the promise on the boundary fiber. If the boundary times out, we'll
        // attach another listener to flip the boundary back to its normal state.
        var wakeables = _workInProgress.updateQueue;

        if (wakeables === null) {
          var updateQueue = new Set();
          updateQueue.add(wakeable);
          _workInProgress.updateQueue = updateQueue;
        } else {
          wakeables.add(wakeable);
        } // If the boundary is outside of blocking mode, we should *not*
        // suspend the commit. Pretend as if the suspended component rendered
        // null and keep rendering. In the commit phase, we'll schedule a
        // subsequent synchronous update to re-render the Suspense.
        //
        // Note: It doesn't matter whether the component that suspended was
        // inside a blocking mode tree. If the Suspense is outside of it, we
        // should *not* suspend the commit.


        if ((_workInProgress.mode & BlockingMode) === NoMode) {
          _workInProgress.flags |= DidCapture;
          sourceFiber.flags |= ForceUpdateForLegacySuspense; // We're going to commit this fiber even though it didn't complete.
          // But we shouldn't call any lifecycle methods or callbacks. Remove
          // all lifecycle effect tags.

          sourceFiber.flags &= ~(LifecycleEffectMask | Incomplete);

          if (sourceFiber.tag === ClassComponent) {
            var currentSourceFiber = sourceFiber.alternate;

            if (currentSourceFiber === null) {
              // This is a new mount. Change the tag so it's not mistaken for a
              // completed class component. For example, we should not call
              // componentWillUnmount if it is deleted.
              sourceFiber.tag = IncompleteClassComponent;
            } else {
              // When we try rendering again, we should not reuse the current fiber,
              // since it's known to be in an inconsistent state. Use a force update to
              // prevent a bail out.
              var update = createUpdate(NoTimestamp, SyncLane);
              update.tag = ForceUpdate;
              enqueueUpdate(sourceFiber, update);
            }
          } // The source fiber did not complete. Mark it with Sync priority to
          // indicate that it still has pending work.


          sourceFiber.lanes = mergeLanes(sourceFiber.lanes, SyncLane); // Exit without suspending.

          return;
        } // Confirmed that the boundary is in a concurrent mode tree. Continue
        // with the normal suspend path.
        //
        // After this we'll use a set of heuristics to determine whether this
        // render pass will run to completion or restart or "suspend" the commit.
        // The actual logic for this is spread out in different places.
        //
        // This first principle is that if we're going to suspend when we complete
        // a root, then we should also restart if we get an update or ping that
        // might unsuspend it, and vice versa. The only reason to suspend is
        // because you think you might want to restart before committing. However,
        // it doesn't make sense to restart only while in the period we're suspended.
        //
        // Restarting too aggressively is also not good because it starves out any
        // intermediate loading state. So we use heuristics to determine when.
        // Suspense Heuristics
        //
        // If nothing threw a Promise or all the same fallbacks are already showing,
        // then don't suspend/restart.
        //
        // If this is an initial render of a new tree of Suspense boundaries and
        // those trigger a fallback, then don't suspend/restart. We want to ensure
        // that we can show the initial loading state as quickly as possible.
        //
        // If we hit a "Delayed" case, such as when we'd switch from content back into
        // a fallback, then we should always suspend/restart. Transitions apply
        // to this case. If none is defined, JND is used instead.
        //
        // If we're already showing a fallback and it gets "retried", allowing us to show
        // another level, but there's still an inner boundary that would show a fallback,
        // then we suspend/restart for 500ms since the last time we showed a fallback
        // anywhere in the tree. This effectively throttles progressive loading into a
        // consistent train of commits. This also gives us an opportunity to restart to
        // get to the completed state slightly earlier.
        //
        // If there's ambiguity due to batching it's resolved in preference of:
        // 1) "delayed", 2) "initial render", 3) "retry".
        //
        // We want to ensure that a "busy" state doesn't get force committed. We want to
        // ensure that new initial loading states can commit as soon as possible.


        attachPingListener(root, wakeable, rootRenderLanes);
        _workInProgress.flags |= ShouldCapture;
        _workInProgress.lanes = rootRenderLanes;
        return;
      } // This boundary already captured during this render. Continue to the next
      // boundary.


      _workInProgress = _workInProgress.return;
    } while (_workInProgress !== null); // No boundary was found. Fallthrough to error mode.
    // TODO: Use invariant so the message is stripped in prod?


    value = new Error((getComponentName(sourceFiber.type) || 'A React component') + ' suspended while rendering, but no fallback UI was specified.\n' + '\n' + 'Add a <Suspense fallback=...> component higher in the tree to ' + 'provide a loading indicator or placeholder to display.');
  } // We didn't find a boundary that could handle this type of exception. Start
  // over and traverse parent path again, this time treating the exception
  // as an error.


  renderDidError();
  value = createCapturedValue(value, sourceFiber);
  var workInProgress = returnFiber;

  do {
    switch (workInProgress.tag) {
      case HostRoot:
        {
          var _errorInfo = value;
          workInProgress.flags |= ShouldCapture;
          var lane = pickArbitraryLane(rootRenderLanes);
          workInProgress.lanes = mergeLanes(workInProgress.lanes, lane);

          var _update = createRootErrorUpdate(workInProgress, _errorInfo, lane);

          enqueueCapturedUpdate(workInProgress, _update);
          return;
        }

      case ClassComponent:
        // Capture and retry
        var errorInfo = value;
        var ctor = workInProgress.type;
        var instance = workInProgress.stateNode;

        if ((workInProgress.flags & DidCapture) === NoFlags && (typeof ctor.getDerivedStateFromError === 'function' || instance !== null && typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance))) {
          workInProgress.flags |= ShouldCapture;

          var _lane = pickArbitraryLane(rootRenderLanes);

          workInProgress.lanes = mergeLanes(workInProgress.lanes, _lane); // Schedule the error boundary to re-render using updated state

          var _update2 = createClassErrorUpdate(workInProgress, errorInfo, _lane);

          enqueueCapturedUpdate(workInProgress, _update2);
          return;
        }

        break;
    }

    workInProgress = workInProgress.return;
  } while (workInProgress !== null);
}

var didWarnAboutUndefinedSnapshotBeforeUpdate = null;

{
  didWarnAboutUndefinedSnapshotBeforeUpdate = new Set();
}

var PossiblyWeakSet = typeof WeakSet === 'function' ? WeakSet : Set;

var callComponentWillUnmountWithTimer = function (current, instance) {
  instance.props = current.memoizedProps;
  instance.state = current.memoizedState;

  {
    instance.componentWillUnmount();
  }
}; // Capture errors so they don't interrupt unmounting.


function safelyCallComponentWillUnmount(current, instance) {
  {
    invokeGuardedCallback(null, callComponentWillUnmountWithTimer, null, current, instance);

    if (hasCaughtError()) {
      var unmountError = clearCaughtError();
      captureCommitPhaseError(current, unmountError);
    }
  }
}

function safelyDetachRef(current) {
  var ref = current.ref;

  if (ref !== null) {
    if (typeof ref === 'function') {
      {
        invokeGuardedCallback(null, ref, null, null);

        if (hasCaughtError()) {
          var refError = clearCaughtError();
          captureCommitPhaseError(current, refError);
        }
      }
    } else {
      ref.current = null;
    }
  }
}

function safelyCallDestroy(current, destroy) {
  {
    invokeGuardedCallback(null, destroy, null);

    if (hasCaughtError()) {
      var error = clearCaughtError();
      captureCommitPhaseError(current, error);
    }
  }
}

function commitBeforeMutationLifeCycles(current, finishedWork) {
  switch (finishedWork.tag) {
    case FunctionComponent:
    case ForwardRef:
    case SimpleMemoComponent:
    case Block:
      {
        return;
      }

    case ClassComponent:
      {
        if (finishedWork.flags & Snapshot) {
          if (current !== null) {
            var prevProps = current.memoizedProps;
            var prevState = current.memoizedState;
            var instance = finishedWork.stateNode; // We could update instance props and state here,
            // but instead we rely on them being set during last render.
            // TODO: revisit this when we implement resuming.

            {
              if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
                if (instance.props !== finishedWork.memoizedProps) {
                  error('Expected %s props to match memoized props before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
                }

                if (instance.state !== finishedWork.memoizedState) {
                  error('Expected %s state to match memoized state before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.state`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
                }
              }
            }

            var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState);

            {
              var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate;

              if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) {
                didWarnSet.add(finishedWork.type);

                error('%s.getSnapshotBeforeUpdate(): A snapshot value (or null) ' + 'must be returned. You have returned undefined.', getComponentName(finishedWork.type));
              }
            }

            instance.__reactInternalSnapshotBeforeUpdate = snapshot;
          }
        }

        return;
      }

    case HostRoot:
      {
        {
          if (finishedWork.flags & Snapshot) {
            var root = finishedWork.stateNode;
            clearContainer(root.containerInfo);
          }
        }

        return;
      }

    case HostComponent:
    case HostText:
    case HostPortal:
    case IncompleteClassComponent:
      // Nothing to do for these component types
      return;
  }

  {
    {
      throw Error( "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue." );
    }
  }
}

function commitHookEffectListUnmount(tag, finishedWork) {
  var updateQueue = finishedWork.updateQueue;
  var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;

  if (lastEffect !== null) {
    var firstEffect = lastEffect.next;
    var effect = firstEffect;

    do {
      if ((effect.tag & tag) === tag) {
        // Unmount
        var destroy = effect.destroy;
        effect.destroy = undefined;

        if (destroy !== undefined) {
          destroy();
        }
      }

      effect = effect.next;
    } while (effect !== firstEffect);
  }
}

function commitHookEffectListMount(tag, finishedWork) {
  var updateQueue = finishedWork.updateQueue;
  var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;

  if (lastEffect !== null) {
    var firstEffect = lastEffect.next;
    var effect = firstEffect;

    do {
      if ((effect.tag & tag) === tag) {
        // Mount
        var create = effect.create;
        effect.destroy = create();

        {
          var destroy = effect.destroy;

          if (destroy !== undefined && typeof destroy !== 'function') {
            var addendum = void 0;

            if (destroy === null) {
              addendum = ' You returned null. If your effect does not require clean ' + 'up, return undefined (or nothing).';
            } else if (typeof destroy.then === 'function') {
              addendum = '\n\nIt looks like you wrote useEffect(async () => ...) or returned a Promise. ' + 'Instead, write the async function inside your effect ' + 'and call it immediately:\n\n' + 'useEffect(() => {\n' + '  async function fetchData() {\n' + '    // You can await here\n' + '    const response = await MyAPI.getData(someId);\n' + '    // ...\n' + '  }\n' + '  fetchData();\n' + "}, [someId]); // Or [] if effect doesn't need props or state\n\n" + 'Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching';
            } else {
              addendum = ' You returned: ' + destroy;
            }

            error('An effect function must not return anything besides a function, ' + 'which is used for clean-up.%s', addendum);
          }
        }
      }

      effect = effect.next;
    } while (effect !== firstEffect);
  }
}

function schedulePassiveEffects(finishedWork) {
  var updateQueue = finishedWork.updateQueue;
  var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;

  if (lastEffect !== null) {
    var firstEffect = lastEffect.next;
    var effect = firstEffect;

    do {
      var _effect = effect,
          next = _effect.next,
          tag = _effect.tag;

      if ((tag & Passive$1) !== NoFlags$1 && (tag & HasEffect) !== NoFlags$1) {
        enqueuePendingPassiveHookEffectUnmount(finishedWork, effect);
        enqueuePendingPassiveHookEffectMount(finishedWork, effect);
      }

      effect = next;
    } while (effect !== firstEffect);
  }
}

function commitLifeCycles(finishedRoot, current, finishedWork, committedLanes) {
  switch (finishedWork.tag) {
    case FunctionComponent:
    case ForwardRef:
    case SimpleMemoComponent:
    case Block:
      {
        // At this point layout effects have already been destroyed (during mutation phase).
        // This is done to prevent sibling component effects from interfering with each other,
        // e.g. a destroy function in one component should never override a ref set
        // by a create function in another component during the same commit.
        {
          commitHookEffectListMount(Layout | HasEffect, finishedWork);
        }

        schedulePassiveEffects(finishedWork);
        return;
      }

    case ClassComponent:
      {
        var instance = finishedWork.stateNode;

        if (finishedWork.flags & Update) {
          if (current === null) {
            // We could update instance props and state here,
            // but instead we rely on them being set during last render.
            // TODO: revisit this when we implement resuming.
            {
              if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
                if (instance.props !== finishedWork.memoizedProps) {
                  error('Expected %s props to match memoized props before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
                }

                if (instance.state !== finishedWork.memoizedState) {
                  error('Expected %s state to match memoized state before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.state`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
                }
              }
            }

            {
              instance.componentDidMount();
            }
          } else {
            var prevProps = finishedWork.elementType === finishedWork.type ? current.memoizedProps : resolveDefaultProps(finishedWork.type, current.memoizedProps);
            var prevState = current.memoizedState; // We could update instance props and state here,
            // but instead we rely on them being set during last render.
            // TODO: revisit this when we implement resuming.

            {
              if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
                if (instance.props !== finishedWork.memoizedProps) {
                  error('Expected %s props to match memoized props before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
                }

                if (instance.state !== finishedWork.memoizedState) {
                  error('Expected %s state to match memoized state before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.state`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
                }
              }
            }

            {
              instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);
            }
          }
        } // TODO: I think this is now always non-null by the time it reaches the
        // commit phase. Consider removing the type check.


        var updateQueue = finishedWork.updateQueue;

        if (updateQueue !== null) {
          {
            if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
              if (instance.props !== finishedWork.memoizedProps) {
                error('Expected %s props to match memoized props before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
              }

              if (instance.state !== finishedWork.memoizedState) {
                error('Expected %s state to match memoized state before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.state`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance');
              }
            }
          } // We could update instance props and state here,
          // but instead we rely on them being set during last render.
          // TODO: revisit this when we implement resuming.


          commitUpdateQueue(finishedWork, updateQueue, instance);
        }

        return;
      }

    case HostRoot:
      {
        // TODO: I think this is now always non-null by the time it reaches the
        // commit phase. Consider removing the type check.
        var _updateQueue = finishedWork.updateQueue;

        if (_updateQueue !== null) {
          var _instance = null;

          if (finishedWork.child !== null) {
            switch (finishedWork.child.tag) {
              case HostComponent:
                _instance = getPublicInstance(finishedWork.child.stateNode);
                break;

              case ClassComponent:
                _instance = finishedWork.child.stateNode;
                break;
            }
          }

          commitUpdateQueue(finishedWork, _updateQueue, _instance);
        }

        return;
      }

    case HostComponent:
      {
        var _instance2 = finishedWork.stateNode; // Renderers may schedule work to be done after host components are mounted
        // (eg DOM renderer may schedule auto-focus for inputs and form controls).
        // These effects should only be committed when components are first mounted,
        // aka when there is no current/alternate.

        if (current === null && finishedWork.flags & Update) {
          var type = finishedWork.type;
          var props = finishedWork.memoizedProps;
          commitMount(_instance2, type, props);
        }

        return;
      }

    case HostText:
      {
        // We have no life-cycles associated with text.
        return;
      }

    case HostPortal:
      {
        // We have no life-cycles associated with portals.
        return;
      }

    case Profiler:
      {
        {
          var _finishedWork$memoize2 = finishedWork.memoizedProps,
              onCommit = _finishedWork$memoize2.onCommit,
              onRender = _finishedWork$memoize2.onRender;
          var effectDuration = finishedWork.stateNode.effectDuration;
          var commitTime = getCommitTime();

          if (typeof onRender === 'function') {
            {
              onRender(finishedWork.memoizedProps.id, current === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, commitTime, finishedRoot.memoizedInteractions);
            }
          }
        }

        return;
      }

    case SuspenseComponent:
      {
        commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);
        return;
      }

    case SuspenseListComponent:
    case IncompleteClassComponent:
    case FundamentalComponent:
    case ScopeComponent:
    case OffscreenComponent:
    case LegacyHiddenComponent:
      return;
  }

  {
    {
      throw Error( "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue." );
    }
  }
}

function hideOrUnhideAllChildren(finishedWork, isHidden) {
  {
    // We only have the top Fiber that was inserted but we need to recurse down its
    // children to find all the terminal nodes.
    var node = finishedWork;

    while (true) {
      if (node.tag === HostComponent) {
        var instance = node.stateNode;

        if (isHidden) {
          hideInstance(instance);
        } else {
          unhideInstance(node.stateNode, node.memoizedProps);
        }
      } else if (node.tag === HostText) {
        var _instance3 = node.stateNode;

        if (isHidden) {
          hideTextInstance(_instance3);
        } else {
          unhideTextInstance(_instance3, node.memoizedProps);
        }
      } else if ((node.tag === OffscreenComponent || node.tag === LegacyHiddenComponent) && node.memoizedState !== null && node !== finishedWork) ; else if (node.child !== null) {
        node.child.return = node;
        node = node.child;
        continue;
      }

      if (node === finishedWork) {
        return;
      }

      while (node.sibling === null) {
        if (node.return === null || node.return === finishedWork) {
          return;
        }

        node = node.return;
      }

      node.sibling.return = node.return;
      node = node.sibling;
    }
  }
}

function commitAttachRef(finishedWork) {
  var ref = finishedWork.ref;

  if (ref !== null) {
    var instance = finishedWork.stateNode;
    var instanceToUse;

    switch (finishedWork.tag) {
      case HostComponent:
        instanceToUse = getPublicInstance(instance);
        break;

      default:
        instanceToUse = instance;
    } // Moved outside to ensure DCE works with this flag

    if (typeof ref === 'function') {
      ref(instanceToUse);
    } else {
      {
        if (!ref.hasOwnProperty('current')) {
          error('Unexpected ref object provided for %s. ' + 'Use either a ref-setter function or React.createRef().', getComponentName(finishedWork.type));
        }
      }

      ref.current = instanceToUse;
    }
  }
}

function commitDetachRef(current) {
  var currentRef = current.ref;

  if (currentRef !== null) {
    if (typeof currentRef === 'function') {
      currentRef(null);
    } else {
      currentRef.current = null;
    }
  }
} // User-originating errors (lifecycles and refs) should not interrupt
// deletion, so don't let them throw. Host-originating errors should
// interrupt deletion, so it's okay


function commitUnmount(finishedRoot, current, renderPriorityLevel) {
  onCommitUnmount(current);

  switch (current.tag) {
    case FunctionComponent:
    case ForwardRef:
    case MemoComponent:
    case SimpleMemoComponent:
    case Block:
      {
        var updateQueue = current.updateQueue;

        if (updateQueue !== null) {
          var lastEffect = updateQueue.lastEffect;

          if (lastEffect !== null) {
            var firstEffect = lastEffect.next;
            var effect = firstEffect;

            do {
              var _effect2 = effect,
                  destroy = _effect2.destroy,
                  tag = _effect2.tag;

              if (destroy !== undefined) {
                if ((tag & Passive$1) !== NoFlags$1) {
                  enqueuePendingPassiveHookEffectUnmount(current, effect);
                } else {
                  {
                    safelyCallDestroy(current, destroy);
                  }
                }
              }

              effect = effect.next;
            } while (effect !== firstEffect);
          }
        }

        return;
      }

    case ClassComponent:
      {
        safelyDetachRef(current);
        var instance = current.stateNode;

        if (typeof instance.componentWillUnmount === 'function') {
          safelyCallComponentWillUnmount(current, instance);
        }

        return;
      }

    case HostComponent:
      {
        safelyDetachRef(current);
        return;
      }

    case HostPortal:
      {
        // TODO: this is recursive.
        // We are also not using this parent because
        // the portal will get pushed immediately.
        {
          unmountHostComponents(finishedRoot, current);
        }

        return;
      }

    case FundamentalComponent:
      {

        return;
      }

    case DehydratedFragment:
      {

        return;
      }

    case ScopeComponent:
      {

        return;
      }
  }
}

function commitNestedUnmounts(finishedRoot, root, renderPriorityLevel) {
  // While we're inside a removed host node we don't want to call
  // removeChild on the inner nodes because they're removed by the top
  // call anyway. We also want to call componentWillUnmount on all
  // composites before this host node is removed from the tree. Therefore
  // we do an inner loop while we're still inside the host node.
  var node = root;

  while (true) {
    commitUnmount(finishedRoot, node); // Visit children because they may contain more composite or host nodes.
    // Skip portals because commitUnmount() currently visits them recursively.

    if (node.child !== null && ( // If we use mutation we drill down into portals using commitUnmount above.
    // If we don't use mutation we drill down into portals here instead.
     node.tag !== HostPortal)) {
      node.child.return = node;
      node = node.child;
      continue;
    }

    if (node === root) {
      return;
    }

    while (node.sibling === null) {
      if (node.return === null || node.return === root) {
        return;
      }

      node = node.return;
    }

    node.sibling.return = node.return;
    node = node.sibling;
  }
}

function detachFiberMutation(fiber) {
  // Cut off the return pointers to disconnect it from the tree. Ideally, we
  // should clear the child pointer of the parent alternate to let this
  // get GC:ed but we don't know which for sure which parent is the current
  // one so we'll settle for GC:ing the subtree of this child. This child
  // itself will be GC:ed when the parent updates the next time.
  // Note: we cannot null out sibling here, otherwise it can cause issues
  // with findDOMNode and how it requires the sibling field to carry out
  // traversal in a later effect. See PR #16820. We now clear the sibling
  // field after effects, see: detachFiberAfterEffects.
  //
  // Don't disconnect stateNode now; it will be detached in detachFiberAfterEffects.
  // It may be required if the current component is an error boundary,
  // and one of its descendants throws while unmounting a passive effect.
  fiber.alternate = null;
  fiber.child = null;
  fiber.dependencies = null;
  fiber.firstEffect = null;
  fiber.lastEffect = null;
  fiber.memoizedProps = null;
  fiber.memoizedState = null;
  fiber.pendingProps = null;
  fiber.return = null;
  fiber.updateQueue = null;

  {
    fiber._debugOwner = null;
  }
}

function getHostParentFiber(fiber) {
  var parent = fiber.return;

  while (parent !== null) {
    if (isHostParent(parent)) {
      return parent;
    }

    parent = parent.return;
  }

  {
    {
      throw Error( "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." );
    }
  }
}

function isHostParent(fiber) {
  return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal;
}

function getHostSibling(fiber) {
  // We're going to search forward into the tree until we find a sibling host
  // node. Unfortunately, if multiple insertions are done in a row we have to
  // search past them. This leads to exponential search for the next sibling.
  // TODO: Find a more efficient way to do this.
  var node = fiber;

  siblings: while (true) {
    // If we didn't find anything, let's try the next sibling.
    while (node.sibling === null) {
      if (node.return === null || isHostParent(node.return)) {
        // If we pop out of the root or hit the parent the fiber we are the
        // last sibling.
        return null;
      }

      node = node.return;
    }

    node.sibling.return = node.return;
    node = node.sibling;

    while (node.tag !== HostComponent && node.tag !== HostText && node.tag !== DehydratedFragment) {
      // If it is not host node and, we might have a host node inside it.
      // Try to search down until we find one.
      if (node.flags & Placement) {
        // If we don't have a child, try the siblings instead.
        continue siblings;
      } // If we don't have a child, try the siblings instead.
      // We also skip portals because they are not part of this host tree.


      if (node.child === null || node.tag === HostPortal) {
        continue siblings;
      } else {
        node.child.return = node;
        node = node.child;
      }
    } // Check if this host node is stable or about to be placed.


    if (!(node.flags & Placement)) {
      // Found it!
      return node.stateNode;
    }
  }
}

function commitPlacement(finishedWork) {


  var parentFiber = getHostParentFiber(finishedWork); // Note: these two variables *must* always be updated together.

  var parent;
  var isContainer;
  var parentStateNode = parentFiber.stateNode;

  switch (parentFiber.tag) {
    case HostComponent:
      parent = parentStateNode;
      isContainer = false;
      break;

    case HostRoot:
      parent = parentStateNode.containerInfo;
      isContainer = true;
      break;

    case HostPortal:
      parent = parentStateNode.containerInfo;
      isContainer = true;
      break;

    case FundamentalComponent:

    // eslint-disable-next-line-no-fallthrough

    default:
      {
        {
          throw Error( "Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue." );
        }
      }

  }

  if (parentFiber.flags & ContentReset) {
    // Reset the text content of the parent before doing any insertions
    resetTextContent(parent); // Clear ContentReset from the effect tag

    parentFiber.flags &= ~ContentReset;
  }

  var before = getHostSibling(finishedWork); // We only have the top Fiber that was inserted but we need to recurse down its
  // children to find all the terminal nodes.

  if (isContainer) {
    insertOrAppendPlacementNodeIntoContainer(finishedWork, before, parent);
  } else {
    insertOrAppendPlacementNode(finishedWork, before, parent);
  }
}

function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
  var tag = node.tag;
  var isHost = tag === HostComponent || tag === HostText;

  if (isHost || enableFundamentalAPI ) {
    var stateNode = isHost ? node.stateNode : node.stateNode.instance;

    if (before) {
      insertInContainerBefore(parent, stateNode, before);
    } else {
      appendChildToContainer(parent, stateNode);
    }
  } else if (tag === HostPortal) ; else {
    var child = node.child;

    if (child !== null) {
      insertOrAppendPlacementNodeIntoContainer(child, before, parent);
      var sibling = child.sibling;

      while (sibling !== null) {
        insertOrAppendPlacementNodeIntoContainer(sibling, before, parent);
        sibling = sibling.sibling;
      }
    }
  }
}

function insertOrAppendPlacementNode(node, before, parent) {
  var tag = node.tag;
  var isHost = tag === HostComponent || tag === HostText;

  if (isHost || enableFundamentalAPI ) {
    var stateNode = isHost ? node.stateNode : node.stateNode.instance;

    if (before) {
      insertBefore(parent, stateNode, before);
    } else {
      appendChild(parent, stateNode);
    }
  } else if (tag === HostPortal) ; else {
    var child = node.child;

    if (child !== null) {
      insertOrAppendPlacementNode(child, before, parent);
      var sibling = child.sibling;

      while (sibling !== null) {
        insertOrAppendPlacementNode(sibling, before, parent);
        sibling = sibling.sibling;
      }
    }
  }
}

function unmountHostComponents(finishedRoot, current, renderPriorityLevel) {
  // We only have the top Fiber that was deleted but we need to recurse down its
  // children to find all the terminal nodes.
  var node = current; // Each iteration, currentParent is populated with node's host parent if not
  // currentParentIsValid.

  var currentParentIsValid = false; // Note: these two variables *must* always be updated together.

  var currentParent;
  var currentParentIsContainer;

  while (true) {
    if (!currentParentIsValid) {
      var parent = node.return;

      findParent: while (true) {
        if (!(parent !== null)) {
          {
            throw Error( "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." );
          }
        }

        var parentStateNode = parent.stateNode;

        switch (parent.tag) {
          case HostComponent:
            currentParent = parentStateNode;
            currentParentIsContainer = false;
            break findParent;

          case HostRoot:
            currentParent = parentStateNode.containerInfo;
            currentParentIsContainer = true;
            break findParent;

          case HostPortal:
            currentParent = parentStateNode.containerInfo;
            currentParentIsContainer = true;
            break findParent;

        }

        parent = parent.return;
      }

      currentParentIsValid = true;
    }

    if (node.tag === HostComponent || node.tag === HostText) {
      commitNestedUnmounts(finishedRoot, node); // After all the children have unmounted, it is now safe to remove the
      // node from the tree.

      if (currentParentIsContainer) {
        removeChildFromContainer(currentParent, node.stateNode);
      } else {
        removeChild(currentParent, node.stateNode);
      } // Don't visit children because we already visited them.

    } else if (node.tag === HostPortal) {
      if (node.child !== null) {
        // When we go into a portal, it becomes the parent to remove from.
        // We will reassign it back when we pop the portal on the way up.
        currentParent = node.stateNode.containerInfo;
        currentParentIsContainer = true; // Visit children because portals might contain host components.

        node.child.return = node;
        node = node.child;
        continue;
      }
    } else {
      commitUnmount(finishedRoot, node); // Visit children because we may find more host components below.

      if (node.child !== null) {
        node.child.return = node;
        node = node.child;
        continue;
      }
    }

    if (node === current) {
      return;
    }

    while (node.sibling === null) {
      if (node.return === null || node.return === current) {
        return;
      }

      node = node.return;

      if (node.tag === HostPortal) {
        // When we go out of the portal, we need to restore the parent.
        // Since we don't keep a stack of them, we will search for it.
        currentParentIsValid = false;
      }
    }

    node.sibling.return = node.return;
    node = node.sibling;
  }
}

function commitDeletion(finishedRoot, current, renderPriorityLevel) {
  {
    // Recursively delete all host nodes from the parent.
    // Detach refs and call componentWillUnmount() on the whole subtree.
    unmountHostComponents(finishedRoot, current);
  }

  var alternate = current.alternate;
  detachFiberMutation(current);

  if (alternate !== null) {
    detachFiberMutation(alternate);
  }
}

function commitWork(current, finishedWork) {

  switch (finishedWork.tag) {
    case FunctionComponent:
    case ForwardRef:
    case MemoComponent:
    case SimpleMemoComponent:
    case Block:
      {
        // Layout effects are destroyed during the mutation phase so that all
        // destroy functions for all fibers are called before any create functions.
        // This prevents sibling component effects from interfering with each other,
        // e.g. a destroy function in one component should never override a ref set
        // by a create function in another component during the same commit.
        {
          commitHookEffectListUnmount(Layout | HasEffect, finishedWork);
        }

        return;
      }

    case ClassComponent:
      {
        return;
      }

    case HostComponent:
      {
        var instance = finishedWork.stateNode;

        if (instance != null) {
          // Commit the work prepared earlier.
          var newProps = finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps
          // as the newProps. The updatePayload will contain the real change in
          // this case.

          var oldProps = current !== null ? current.memoizedProps : newProps;
          var type = finishedWork.type; // TODO: Type the updateQueue to be specific to host components.

          var updatePayload = finishedWork.updateQueue;
          finishedWork.updateQueue = null;

          if (updatePayload !== null) {
            commitUpdate(instance, updatePayload, type, oldProps, newProps);
          }
        }

        return;
      }

    case HostText:
      {
        if (!(finishedWork.stateNode !== null)) {
          {
            throw Error( "This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue." );
          }
        }

        var textInstance = finishedWork.stateNode;
        var newText = finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps
        // as the newProps. The updatePayload will contain the real change in
        // this case.

        var oldText = current !== null ? current.memoizedProps : newText;
        commitTextUpdate(textInstance, oldText, newText);
        return;
      }

    case HostRoot:
      {
        {
          var _root = finishedWork.stateNode;

          if (_root.hydrate) {
            // We've just hydrated. No need to hydrate again.
            _root.hydrate = false;
            commitHydratedContainer(_root.containerInfo);
          }
        }

        return;
      }

    case Profiler:
      {
        return;
      }

    case SuspenseComponent:
      {
        commitSuspenseComponent(finishedWork);
        attachSuspenseRetryListeners(finishedWork);
        return;
      }

    case SuspenseListComponent:
      {
        attachSuspenseRetryListeners(finishedWork);
        return;
      }

    case IncompleteClassComponent:
      {
        return;
      }

    case FundamentalComponent:
      {

        break;
      }

    case ScopeComponent:
      {

        break;
      }

    case OffscreenComponent:
    case LegacyHiddenComponent:
      {
        var newState = finishedWork.memoizedState;
        var isHidden = newState !== null;
        hideOrUnhideAllChildren(finishedWork, isHidden);
        return;
      }
  }

  {
    {
      throw Error( "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue." );
    }
  }
}

function commitSuspenseComponent(finishedWork) {
  var newState = finishedWork.memoizedState;

  if (newState !== null) {
    markCommitTimeOfFallback();

    {
      // Hide the Offscreen component that contains the primary children. TODO:
      // Ideally, this effect would have been scheduled on the Offscreen fiber
      // itself. That's how unhiding works: the Offscreen component schedules an
      // effect on itself. However, in this case, the component didn't complete,
      // so the fiber was never added to the effect list in the normal path. We
      // could have appended it to the effect list in the Suspense component's
      // second pass, but doing it this way is less complicated. This would be
      // simpler if we got rid of the effect list and traversed the tree, like
      // we're planning to do.
      var primaryChildParent = finishedWork.child;
      hideOrUnhideAllChildren(primaryChildParent, true);
    }
  }
}

function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {

  var newState = finishedWork.memoizedState;

  if (newState === null) {
    var current = finishedWork.alternate;

    if (current !== null) {
      var prevState = current.memoizedState;

      if (prevState !== null) {
        var suspenseInstance = prevState.dehydrated;

        if (suspenseInstance !== null) {
          commitHydratedSuspenseInstance(suspenseInstance);
        }
      }
    }
  }
}

function attachSuspenseRetryListeners(finishedWork) {
  // If this boundary just timed out, then it will have a set of wakeables.
  // For each wakeable, attach a listener so that when it resolves, React
  // attempts to re-render the boundary in the primary (pre-timeout) state.
  var wakeables = finishedWork.updateQueue;

  if (wakeables !== null) {
    finishedWork.updateQueue = null;
    var retryCache = finishedWork.stateNode;

    if (retryCache === null) {
      retryCache = finishedWork.stateNode = new PossiblyWeakSet();
    }

    wakeables.forEach(function (wakeable) {
      // Memoize using the boundary fiber to prevent redundant listeners.
      var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable);

      if (!retryCache.has(wakeable)) {
        {
          if (wakeable.__reactDoNotTraceInteractions !== true) {
            retry = tracing.unstable_wrap(retry);
          }
        }

        retryCache.add(wakeable);
        wakeable.then(retry, retry);
      }
    });
  }
} // This function detects when a Suspense boundary goes from visible to hidden.
// It returns false if the boundary is already hidden.
// TODO: Use an effect tag.


function isSuspenseBoundaryBeingHidden(current, finishedWork) {
  if (current !== null) {
    var oldState = current.memoizedState;

    if (oldState === null || oldState.dehydrated !== null) {
      var newState = finishedWork.memoizedState;
      return newState !== null && newState.dehydrated === null;
    }
  }

  return false;
}

function commitResetTextContent(current) {

  resetTextContent(current.stateNode);
}

var COMPONENT_TYPE = 0;
var HAS_PSEUDO_CLASS_TYPE = 1;
var ROLE_TYPE = 2;
var TEST_NAME_TYPE = 3;
var TEXT_TYPE = 4;

if (typeof Symbol === 'function' && Symbol.for) {
  var symbolFor$1 = Symbol.for;
  COMPONENT_TYPE = symbolFor$1('selector.component');
  HAS_PSEUDO_CLASS_TYPE = symbolFor$1('selector.has_pseudo_class');
  ROLE_TYPE = symbolFor$1('selector.role');
  TEST_NAME_TYPE = symbolFor$1('selector.test_id');
  TEXT_TYPE = symbolFor$1('selector.text');
}
var commitHooks = [];
function onCommitRoot$1() {
  {
    commitHooks.forEach(function (commitHook) {
      return commitHook();
    });
  }
}

var ceil = Math.ceil;
var ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher,
    ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner,
    IsSomeRendererActing = ReactSharedInternals.IsSomeRendererActing;
var NoContext =
/*             */
0;
var BatchedContext =
/*               */
1;
var EventContext =
/*                 */
2;
var DiscreteEventContext =
/*         */
4;
var LegacyUnbatchedContext =
/*       */
8;
var RenderContext =
/*                */
16;
var CommitContext =
/*                */
32;
var RetryAfterError =
/*       */
64;
var RootIncomplete = 0;
var RootFatalErrored = 1;
var RootErrored = 2;
var RootSuspended = 3;
var RootSuspendedWithDelay = 4;
var RootCompleted = 5; // Describes where we are in the React execution stack

var executionContext = NoContext; // The root we're working on

var workInProgressRoot = null; // The fiber we're working on

var workInProgress = null; // The lanes we're rendering

var workInProgressRootRenderLanes = NoLanes; // Stack that allows components to change the render lanes for its subtree
// This is a superset of the lanes we started working on at the root. The only
// case where it's different from `workInProgressRootRenderLanes` is when we
// enter a subtree that is hidden and needs to be unhidden: Suspense and
// Offscreen component.
//
// Most things in the work loop should deal with workInProgressRootRenderLanes.
// Most things in begin/complete phases should deal with subtreeRenderLanes.

var subtreeRenderLanes = NoLanes;
var subtreeRenderLanesCursor = createCursor(NoLanes); // Whether to root completed, errored, suspended, etc.

var workInProgressRootExitStatus = RootIncomplete; // A fatal error, if one is thrown

var workInProgressRootFatalError = null; // "Included" lanes refer to lanes that were worked on during this render. It's
// slightly different than `renderLanes` because `renderLanes` can change as you
// enter and exit an Offscreen tree. This value is the combination of all render
// lanes for the entire render phase.

var workInProgressRootIncludedLanes = NoLanes; // The work left over by components that were visited during this render. Only
// includes unprocessed updates, not work in bailed out children.

var workInProgressRootSkippedLanes = NoLanes; // Lanes that were updated (in an interleaved event) during this render.

var workInProgressRootUpdatedLanes = NoLanes; // Lanes that were pinged (in an interleaved event) during this render.

var workInProgressRootPingedLanes = NoLanes;
var mostRecentlyUpdatedRoot = null; // The most recent time we committed a fallback. This lets us ensure a train
// model where we don't commit new loading states in too quick succession.

var globalMostRecentFallbackTime = 0;
var FALLBACK_THROTTLE_MS = 500; // The absolute time for when we should start giving up on rendering
// more and prefer CPU suspense heuristics instead.

var workInProgressRootRenderTargetTime = Infinity; // How long a render is supposed to take before we start following CPU
// suspense heuristics and opt out of rendering more content.

var RENDER_TIMEOUT_MS = 500;

function resetRenderTimer() {
  workInProgressRootRenderTargetTime = now() + RENDER_TIMEOUT_MS;
}

function getRenderTargetTime() {
  return workInProgressRootRenderTargetTime;
}
var nextEffect = null;
var hasUncaughtError = false;
var firstUncaughtError = null;
var legacyErrorBoundariesThatAlreadyFailed = null;
var rootDoesHavePassiveEffects = false;
var rootWithPendingPassiveEffects = null;
var pendingPassiveEffectsRenderPriority = NoPriority$1;
var pendingPassiveEffectsLanes = NoLanes;
var pendingPassiveHookEffectsMount = [];
var pendingPassiveHookEffectsUnmount = [];
var rootsWithPendingDiscreteUpdates = null; // Use these to prevent an infinite loop of nested updates

var NESTED_UPDATE_LIMIT = 50;
var nestedUpdateCount = 0;
var rootWithNestedUpdates = null;
var NESTED_PASSIVE_UPDATE_LIMIT = 50;
var nestedPassiveUpdateCount = 0; // Marks the need to reschedule pending interactions at these lanes
// during the commit phase. This enables them to be traced across components
// that spawn new work during render. E.g. hidden boundaries, suspended SSR
// hydration or SuspenseList.
// TODO: Can use a bitmask instead of an array

var spawnedWorkDuringRender = null; // If two updates are scheduled within the same event, we should treat their
// event times as simultaneous, even if the actual clock time has advanced
// between the first and second call.

var currentEventTime = NoTimestamp;
var currentEventWipLanes = NoLanes;
var currentEventPendingLanes = NoLanes; // Dev only flag that tracks if passive effects are currently being flushed.
// We warn about state updates for unmounted components differently in this case.

var isFlushingPassiveEffects = false;
var focusedInstanceHandle = null;
var shouldFireAfterActiveInstanceBlur = false;
function getWorkInProgressRoot() {
  return workInProgressRoot;
}
function requestEventTime() {
  if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
    // We're inside React, so it's fine to read the actual time.
    return now();
  } // We're not inside React, so we may be in the middle of a browser event.


  if (currentEventTime !== NoTimestamp) {
    // Use the same start time for all updates until we enter React again.
    return currentEventTime;
  } // This is the first update since React yielded. Compute a new start time.


  currentEventTime = now();
  return currentEventTime;
}
function requestUpdateLane(fiber) {
  // Special cases
  var mode = fiber.mode;

  if ((mode & BlockingMode) === NoMode) {
    return SyncLane;
  } else if ((mode & ConcurrentMode) === NoMode) {
    return getCurrentPriorityLevel() === ImmediatePriority$1 ? SyncLane : SyncBatchedLane;
  } // The algorithm for assigning an update to a lane should be stable for all
  // updates at the same priority within the same event. To do this, the inputs
  // to the algorithm must be the same. For example, we use the `renderLanes`
  // to avoid choosing a lane that is already in the middle of rendering.
  //
  // However, the "included" lanes could be mutated in between updates in the
  // same event, like if you perform an update inside `flushSync`. Or any other
  // code path that might call `prepareFreshStack`.
  //
  // The trick we use is to cache the first of each of these inputs within an
  // event. Then reset the cached values once we can be sure the event is over.
  // Our heuristic for that is whenever we enter a concurrent work loop.
  //
  // We'll do the same for `currentEventPendingLanes` below.


  if (currentEventWipLanes === NoLanes) {
    currentEventWipLanes = workInProgressRootIncludedLanes;
  }

  var isTransition = requestCurrentTransition() !== NoTransition;

  if (isTransition) {
    if (currentEventPendingLanes !== NoLanes) {
      currentEventPendingLanes = mostRecentlyUpdatedRoot !== null ? mostRecentlyUpdatedRoot.pendingLanes : NoLanes;
    }

    return findTransitionLane(currentEventWipLanes, currentEventPendingLanes);
  } // TODO: Remove this dependency on the Scheduler priority.
  // To do that, we're replacing it with an update lane priority.


  var schedulerPriority = getCurrentPriorityLevel(); // The old behavior was using the priority level of the Scheduler.
  // This couples React to the Scheduler internals, so we're replacing it
  // with the currentUpdateLanePriority above. As an example of how this
  // could be problematic, if we're not inside `Scheduler.runWithPriority`,
  // then we'll get the priority of the current running Scheduler task,
  // which is probably not what we want.

  var lane;

  if ( // TODO: Temporary. We're removing the concept of discrete updates.
  (executionContext & DiscreteEventContext) !== NoContext && schedulerPriority === UserBlockingPriority$2) {
    lane = findUpdateLane(InputDiscreteLanePriority, currentEventWipLanes);
  } else {
    var schedulerLanePriority = schedulerPriorityToLanePriority(schedulerPriority);

    lane = findUpdateLane(schedulerLanePriority, currentEventWipLanes);
  }

  return lane;
}

function requestRetryLane(fiber) {
  // This is a fork of `requestUpdateLane` designed specifically for Suspense
  // "retries" — a special update that attempts to flip a Suspense boundary
  // from its placeholder state to its primary/resolved state.
  // Special cases
  var mode = fiber.mode;

  if ((mode & BlockingMode) === NoMode) {
    return SyncLane;
  } else if ((mode & ConcurrentMode) === NoMode) {
    return getCurrentPriorityLevel() === ImmediatePriority$1 ? SyncLane : SyncBatchedLane;
  } // See `requestUpdateLane` for explanation of `currentEventWipLanes`


  if (currentEventWipLanes === NoLanes) {
    currentEventWipLanes = workInProgressRootIncludedLanes;
  }

  return findRetryLane(currentEventWipLanes);
}

function scheduleUpdateOnFiber(fiber, lane, eventTime) {
  checkForNestedUpdates();
  warnAboutRenderPhaseUpdatesInDEV(fiber);
  var root = markUpdateLaneFromFiberToRoot(fiber, lane);

  if (root === null) {
    warnAboutUpdateOnUnmountedFiberInDEV(fiber);
    return null;
  } // Mark that the root has a pending update.


  markRootUpdated(root, lane, eventTime);

  if (root === workInProgressRoot) {
    // Received an update to a tree that's in the middle of rendering. Mark
    // that there was an interleaved update work on this root. Unless the
    // `deferRenderPhaseUpdateToNextBatch` flag is off and this is a render
    // phase update. In that case, we don't treat render phase updates as if
    // they were interleaved, for backwards compat reasons.
    {
      workInProgressRootUpdatedLanes = mergeLanes(workInProgressRootUpdatedLanes, lane);
    }

    if (workInProgressRootExitStatus === RootSuspendedWithDelay) {
      // The root already suspended with a delay, which means this render
      // definitely won't finish. Since we have a new update, let's mark it as
      // suspended now, right before marking the incoming update. This has the
      // effect of interrupting the current render and switching to the update.
      // TODO: Make sure this doesn't override pings that happen while we've
      // already started rendering.
      markRootSuspended$1(root, workInProgressRootRenderLanes);
    }
  } // TODO: requestUpdateLanePriority also reads the priority. Pass the
  // priority as an argument to that function and this one.


  var priorityLevel = getCurrentPriorityLevel();

  if (lane === SyncLane) {
    if ( // Check if we're inside unbatchedUpdates
    (executionContext & LegacyUnbatchedContext) !== NoContext && // Check if we're not already rendering
    (executionContext & (RenderContext | CommitContext)) === NoContext) {
      // Register pending interactions on the root to avoid losing traced interaction data.
      schedulePendingInteractions(root, lane); // This is a legacy edge case. The initial mount of a ReactDOM.render-ed
      // root inside of batchedUpdates should be synchronous, but layout updates
      // should be deferred until the end of the batch.

      performSyncWorkOnRoot(root);
    } else {
      ensureRootIsScheduled(root, eventTime);
      schedulePendingInteractions(root, lane);

      if (executionContext === NoContext) {
        // Flush the synchronous work now, unless we're already working or inside
        // a batch. This is intentionally inside scheduleUpdateOnFiber instead of
        // scheduleCallbackForFiber to preserve the ability to schedule a callback
        // without immediately flushing it. We only do this for user-initiated
        // updates, to preserve historical behavior of legacy mode.
        resetRenderTimer();
        flushSyncCallbackQueue();
      }
    }
  } else {
    // Schedule a discrete update but only if it's not Sync.
    if ((executionContext & DiscreteEventContext) !== NoContext && ( // Only updates at user-blocking priority or greater are considered
    // discrete, even inside a discrete event.
    priorityLevel === UserBlockingPriority$2 || priorityLevel === ImmediatePriority$1)) {
      // This is the result of a discrete event. Track the lowest priority
      // discrete update per root so we can flush them early, if needed.
      if (rootsWithPendingDiscreteUpdates === null) {
        rootsWithPendingDiscreteUpdates = new Set([root]);
      } else {
        rootsWithPendingDiscreteUpdates.add(root);
      }
    } // Schedule other updates after in case the callback is sync.


    ensureRootIsScheduled(root, eventTime);
    schedulePendingInteractions(root, lane);
  } // We use this when assigning a lane for a transition inside
  // `requestUpdateLane`. We assume it's the same as the root being updated,
  // since in the common case of a single root app it probably is. If it's not
  // the same root, then it's not a huge deal, we just might batch more stuff
  // together more than necessary.


  mostRecentlyUpdatedRoot = root;
} // This is split into a separate function so we can mark a fiber with pending
// work without treating it as a typical update that originates from an event;
// e.g. retrying a Suspense boundary isn't an update, but it does schedule work
// on a fiber.

function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
  // Update the source fiber's lanes
  sourceFiber.lanes = mergeLanes(sourceFiber.lanes, lane);
  var alternate = sourceFiber.alternate;

  if (alternate !== null) {
    alternate.lanes = mergeLanes(alternate.lanes, lane);
  }

  {
    if (alternate === null && (sourceFiber.flags & (Placement | Hydrating)) !== NoFlags) {
      warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber);
    }
  } // Walk the parent path to the root and update the child expiration time.


  var node = sourceFiber;
  var parent = sourceFiber.return;

  while (parent !== null) {
    parent.childLanes = mergeLanes(parent.childLanes, lane);
    alternate = parent.alternate;

    if (alternate !== null) {
      alternate.childLanes = mergeLanes(alternate.childLanes, lane);
    } else {
      {
        if ((parent.flags & (Placement | Hydrating)) !== NoFlags) {
          warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber);
        }
      }
    }

    node = parent;
    parent = parent.return;
  }

  if (node.tag === HostRoot) {
    var root = node.stateNode;
    return root;
  } else {
    return null;
  }
} // Use this function to schedule a task for a root. There's only one task per
// root; if a task was already scheduled, we'll check to make sure the priority
// of the existing task is the same as the priority of the next level that the
// root has work on. This function is called on every update, and right before
// exiting a task.


function ensureRootIsScheduled(root, currentTime) {
  var existingCallbackNode = root.callbackNode; // Check if any lanes are being starved by other work. If so, mark them as
  // expired so we know to work on those next.

  markStarvedLanesAsExpired(root, currentTime); // Determine the next lanes to work on, and their priority.

  var nextLanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes); // This returns the priority level computed during the `getNextLanes` call.

  var newCallbackPriority = returnNextLanesPriority();

  if (nextLanes === NoLanes) {
    // Special case: There's nothing to work on.
    if (existingCallbackNode !== null) {
      cancelCallback(existingCallbackNode);
      root.callbackNode = null;
      root.callbackPriority = NoLanePriority;
    }

    return;
  } // Check if there's an existing task. We may be able to reuse it.


  if (existingCallbackNode !== null) {
    var existingCallbackPriority = root.callbackPriority;

    if (existingCallbackPriority === newCallbackPriority) {
      // The priority hasn't changed. We can reuse the existing task. Exit.
      return;
    } // The priority changed. Cancel the existing callback. We'll schedule a new
    // one below.


    cancelCallback(existingCallbackNode);
  } // Schedule a new callback.


  var newCallbackNode;

  if (newCallbackPriority === SyncLanePriority) {
    // Special case: Sync React callbacks are scheduled on a special
    // internal queue
    newCallbackNode = scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root));
  } else if (newCallbackPriority === SyncBatchedLanePriority) {
    newCallbackNode = scheduleCallback(ImmediatePriority$1, performSyncWorkOnRoot.bind(null, root));
  } else {
    var schedulerPriorityLevel = lanePriorityToSchedulerPriority(newCallbackPriority);
    newCallbackNode = scheduleCallback(schedulerPriorityLevel, performConcurrentWorkOnRoot.bind(null, root));
  }

  root.callbackPriority = newCallbackPriority;
  root.callbackNode = newCallbackNode;
} // This is the entry point for every concurrent task, i.e. anything that
// goes through Scheduler.


function performConcurrentWorkOnRoot(root) {
  // Since we know we're in a React event, we can clear the current
  // event time. The next update will compute a new event time.
  currentEventTime = NoTimestamp;
  currentEventWipLanes = NoLanes;
  currentEventPendingLanes = NoLanes;

  if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
    {
      throw Error( "Should not already be working." );
    }
  } // Flush any pending passive effects before deciding which lanes to work on,
  // in case they schedule additional work.


  var originalCallbackNode = root.callbackNode;
  var didFlushPassiveEffects = flushPassiveEffects();

  if (didFlushPassiveEffects) {
    // Something in the passive effect phase may have canceled the current task.
    // Check if the task node for this root was changed.
    if (root.callbackNode !== originalCallbackNode) {
      // The current task was canceled. Exit. We don't need to call
      // `ensureRootIsScheduled` because the check above implies either that
      // there's a new task, or that there's no remaining work on this root.
      return null;
    }
  } // Determine the next expiration time to work on, using the fields stored
  // on the root.


  var lanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes);

  if (lanes === NoLanes) {
    // Defensive coding. This is never expected to happen.
    return null;
  }

  var exitStatus = renderRootConcurrent(root, lanes);

  if (includesSomeLane(workInProgressRootIncludedLanes, workInProgressRootUpdatedLanes)) {
    // The render included lanes that were updated during the render phase.
    // For example, when unhiding a hidden tree, we include all the lanes
    // that were previously skipped when the tree was hidden. That set of
    // lanes is a superset of the lanes we started rendering with.
    //
    // So we'll throw out the current work and restart.
    prepareFreshStack(root, NoLanes);
  } else if (exitStatus !== RootIncomplete) {
    if (exitStatus === RootErrored) {
      executionContext |= RetryAfterError; // If an error occurred during hydration,
      // discard server response and fall back to client side render.

      if (root.hydrate) {
        root.hydrate = false;
        clearContainer(root.containerInfo);
      } // If something threw an error, try rendering one more time. We'll render
      // synchronously to block concurrent data mutations, and we'll includes
      // all pending updates are included. If it still fails after the second
      // attempt, we'll give up and commit the resulting tree.


      lanes = getLanesToRetrySynchronouslyOnError(root);

      if (lanes !== NoLanes) {
        exitStatus = renderRootSync(root, lanes);
      }
    }

    if (exitStatus === RootFatalErrored) {
      var fatalError = workInProgressRootFatalError;
      prepareFreshStack(root, NoLanes);
      markRootSuspended$1(root, lanes);
      ensureRootIsScheduled(root, now());
      throw fatalError;
    } // We now have a consistent tree. The next step is either to commit it,
    // or, if something suspended, wait to commit it after a timeout.


    var finishedWork = root.current.alternate;
    root.finishedWork = finishedWork;
    root.finishedLanes = lanes;
    finishConcurrentRender(root, exitStatus, lanes);
  }

  ensureRootIsScheduled(root, now());

  if (root.callbackNode === originalCallbackNode) {
    // The task node scheduled for this root is the same one that's
    // currently executed. Need to return a continuation.
    return performConcurrentWorkOnRoot.bind(null, root);
  }

  return null;
}

function finishConcurrentRender(root, exitStatus, lanes) {
  switch (exitStatus) {
    case RootIncomplete:
    case RootFatalErrored:
      {
        {
          {
            throw Error( "Root did not complete. This is a bug in React." );
          }
        }
      }
    // Flow knows about invariant, so it complains if I add a break
    // statement, but eslint doesn't know about invariant, so it complains
    // if I do. eslint-disable-next-line no-fallthrough

    case RootErrored:
      {
        // We should have already attempted to retry this tree. If we reached
        // this point, it errored again. Commit it.
        commitRoot(root);
        break;
      }

    case RootSuspended:
      {
        markRootSuspended$1(root, lanes); // We have an acceptable loading state. We need to figure out if we
        // should immediately commit it or wait a bit.

        if (includesOnlyRetries(lanes) && // do not delay if we're inside an act() scope
        !shouldForceFlushFallbacksInDEV()) {
          // This render only included retries, no updates. Throttle committing
          // retries so that we don't show too many loading states too quickly.
          var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now(); // Don't bother with a very short suspense time.

          if (msUntilTimeout > 10) {
            var nextLanes = getNextLanes(root, NoLanes);

            if (nextLanes !== NoLanes) {
              // There's additional work on this root.
              break;
            }

            var suspendedLanes = root.suspendedLanes;

            if (!isSubsetOfLanes(suspendedLanes, lanes)) {
              // We should prefer to render the fallback of at the last
              // suspended level. Ping the last suspended level to try
              // rendering it again.
              // FIXME: What if the suspended lanes are Idle? Should not restart.
              var eventTime = requestEventTime();
              markRootPinged(root, suspendedLanes);
              break;
            } // The render is suspended, it hasn't timed out, and there's no
            // lower priority work to do. Instead of committing the fallback
            // immediately, wait for more data to arrive.


            root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), msUntilTimeout);
            break;
          }
        } // The work expired. Commit immediately.


        commitRoot(root);
        break;
      }

    case RootSuspendedWithDelay:
      {
        markRootSuspended$1(root, lanes);

        if (includesOnlyTransitions(lanes)) {
          // This is a transition, so we should exit without committing a
          // placeholder and without scheduling a timeout. Delay indefinitely
          // until we receive more data.
          break;
        }

        if (!shouldForceFlushFallbacksInDEV()) {
          // This is not a transition, but we did trigger an avoided state.
          // Schedule a placeholder to display after a short delay, using the Just
          // Noticeable Difference.
          // TODO: Is the JND optimization worth the added complexity? If this is
          // the only reason we track the event time, then probably not.
          // Consider removing.
          var mostRecentEventTime = getMostRecentEventTime(root, lanes);
          var eventTimeMs = mostRecentEventTime;
          var timeElapsedMs = now() - eventTimeMs;

          var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; // Don't bother with a very short suspense time.


          if (_msUntilTimeout > 10) {
            // Instead of committing the fallback immediately, wait for more data
            // to arrive.
            root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout);
            break;
          }
        } // Commit the placeholder.


        commitRoot(root);
        break;
      }

    case RootCompleted:
      {
        // The work completed. Ready to commit.
        commitRoot(root);
        break;
      }

    default:
      {
        {
          {
            throw Error( "Unknown root exit status." );
          }
        }
      }
  }
}

function markRootSuspended$1(root, suspendedLanes) {
  // When suspending, we should always exclude lanes that were pinged or (more
  // rarely, since we try to avoid it) updated during the render phase.
  // TODO: Lol maybe there's a better way to factor this besides this
  // obnoxiously named function :)
  suspendedLanes = removeLanes(suspendedLanes, workInProgressRootPingedLanes);
  suspendedLanes = removeLanes(suspendedLanes, workInProgressRootUpdatedLanes);
  markRootSuspended(root, suspendedLanes);
} // This is the entry point for synchronous tasks that don't go
// through Scheduler


function performSyncWorkOnRoot(root) {
  if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
    {
      throw Error( "Should not already be working." );
    }
  }

  flushPassiveEffects();
  var lanes;
  var exitStatus;

  if (root === workInProgressRoot && includesSomeLane(root.expiredLanes, workInProgressRootRenderLanes)) {
    // There's a partial tree, and at least one of its lanes has expired. Finish
    // rendering it before rendering the rest of the expired work.
    lanes = workInProgressRootRenderLanes;
    exitStatus = renderRootSync(root, lanes);

    if (includesSomeLane(workInProgressRootIncludedLanes, workInProgressRootUpdatedLanes)) {
      // The render included lanes that were updated during the render phase.
      // For example, when unhiding a hidden tree, we include all the lanes
      // that were previously skipped when the tree was hidden. That set of
      // lanes is a superset of the lanes we started rendering with.
      //
      // Note that this only happens when part of the tree is rendered
      // concurrently. If the whole tree is rendered synchronously, then there
      // are no interleaved events.
      lanes = getNextLanes(root, lanes);
      exitStatus = renderRootSync(root, lanes);
    }
  } else {
    lanes = getNextLanes(root, NoLanes);
    exitStatus = renderRootSync(root, lanes);
  }

  if (root.tag !== LegacyRoot && exitStatus === RootErrored) {
    executionContext |= RetryAfterError; // If an error occurred during hydration,
    // discard server response and fall back to client side render.

    if (root.hydrate) {
      root.hydrate = false;
      clearContainer(root.containerInfo);
    } // If something threw an error, try rendering one more time. We'll render
    // synchronously to block concurrent data mutations, and we'll includes
    // all pending updates are included. If it still fails after the second
    // attempt, we'll give up and commit the resulting tree.


    lanes = getLanesToRetrySynchronouslyOnError(root);

    if (lanes !== NoLanes) {
      exitStatus = renderRootSync(root, lanes);
    }
  }

  if (exitStatus === RootFatalErrored) {
    var fatalError = workInProgressRootFatalError;
    prepareFreshStack(root, NoLanes);
    markRootSuspended$1(root, lanes);
    ensureRootIsScheduled(root, now());
    throw fatalError;
  } // We now have a consistent tree. Because this is a sync render, we
  // will commit it even if something suspended.


  var finishedWork = root.current.alternate;
  root.finishedWork = finishedWork;
  root.finishedLanes = lanes;
  commitRoot(root); // Before exiting, make sure there's a callback scheduled for the next
  // pending level.

  ensureRootIsScheduled(root, now());
  return null;
}
function flushDiscreteUpdates() {
  // TODO: Should be able to flush inside batchedUpdates, but not inside `act`.
  // However, `act` uses `batchedUpdates`, so there's no way to distinguish
  // those two cases. Need to fix this before exposing flushDiscreteUpdates
  // as a public API.
  if ((executionContext & (BatchedContext | RenderContext | CommitContext)) !== NoContext) {
    {
      if ((executionContext & RenderContext) !== NoContext) {
        error('unstable_flushDiscreteUpdates: Cannot flush updates when React is ' + 'already rendering.');
      }
    } // We're already rendering, so we can't synchronously flush pending work.
    // This is probably a nested event dispatch triggered by a lifecycle/effect,
    // like `el.focus()`. Exit.


    return;
  }

  flushPendingDiscreteUpdates(); // If the discrete updates scheduled passive effects, flush them now so that
  // they fire before the next serial event.

  flushPassiveEffects();
}

function flushPendingDiscreteUpdates() {
  if (rootsWithPendingDiscreteUpdates !== null) {
    // For each root with pending discrete updates, schedule a callback to
    // immediately flush them.
    var roots = rootsWithPendingDiscreteUpdates;
    rootsWithPendingDiscreteUpdates = null;
    roots.forEach(function (root) {
      markDiscreteUpdatesExpired(root);
      ensureRootIsScheduled(root, now());
    });
  } // Now flush the immediate queue.


  flushSyncCallbackQueue();
}

function batchedUpdates$1(fn, a) {
  var prevExecutionContext = executionContext;
  executionContext |= BatchedContext;

  try {
    return fn(a);
  } finally {
    executionContext = prevExecutionContext;

    if (executionContext === NoContext) {
      // Flush the immediate callbacks that were scheduled during this batch
      resetRenderTimer();
      flushSyncCallbackQueue();
    }
  }
}
function batchedEventUpdates$1(fn, a) {
  var prevExecutionContext = executionContext;
  executionContext |= EventContext;

  try {
    return fn(a);
  } finally {
    executionContext = prevExecutionContext;

    if (executionContext === NoContext) {
      // Flush the immediate callbacks that were scheduled during this batch
      resetRenderTimer();
      flushSyncCallbackQueue();
    }
  }
}
function discreteUpdates$1(fn, a, b, c, d) {
  var prevExecutionContext = executionContext;
  executionContext |= DiscreteEventContext;

  {
    try {
      return runWithPriority$1(UserBlockingPriority$2, fn.bind(null, a, b, c, d));
    } finally {
      executionContext = prevExecutionContext;

      if (executionContext === NoContext) {
        // Flush the immediate callbacks that were scheduled during this batch
        resetRenderTimer();
        flushSyncCallbackQueue();
      }
    }
  }
}
function unbatchedUpdates(fn, a) {
  var prevExecutionContext = executionContext;
  executionContext &= ~BatchedContext;
  executionContext |= LegacyUnbatchedContext;

  try {
    return fn(a);
  } finally {
    executionContext = prevExecutionContext;

    if (executionContext === NoContext) {
      // Flush the immediate callbacks that were scheduled during this batch
      resetRenderTimer();
      flushSyncCallbackQueue();
    }
  }
}
function flushSync(fn, a) {
  var prevExecutionContext = executionContext;

  if ((prevExecutionContext & (RenderContext | CommitContext)) !== NoContext) {
    {
      error('flushSync was called from inside a lifecycle method. React cannot ' + 'flush when React is already rendering. Consider moving this call to ' + 'a scheduler task or micro task.');
    }

    return fn(a);
  }

  executionContext |= BatchedContext;

  {
    try {
      if (fn) {
        return runWithPriority$1(ImmediatePriority$1, fn.bind(null, a));
      } else {
        return undefined;
      }
    } finally {
      executionContext = prevExecutionContext; // Flush the immediate callbacks that were scheduled during this batch.
      // Note that this will happen even if batchedUpdates is higher up
      // the stack.

      flushSyncCallbackQueue();
    }
  }
}
function pushRenderLanes(fiber, lanes) {
  push(subtreeRenderLanesCursor, subtreeRenderLanes, fiber);
  subtreeRenderLanes = mergeLanes(subtreeRenderLanes, lanes);
  workInProgressRootIncludedLanes = mergeLanes(workInProgressRootIncludedLanes, lanes);
}
function popRenderLanes(fiber) {
  subtreeRenderLanes = subtreeRenderLanesCursor.current;
  pop(subtreeRenderLanesCursor, fiber);
}

function prepareFreshStack(root, lanes) {
  root.finishedWork = null;
  root.finishedLanes = NoLanes;
  var timeoutHandle = root.timeoutHandle;

  if (timeoutHandle !== noTimeout) {
    // The root previous suspended and scheduled a timeout to commit a fallback
    // state. Now that we have additional work, cancel the timeout.
    root.timeoutHandle = noTimeout; // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above

    cancelTimeout(timeoutHandle);
  }

  if (workInProgress !== null) {
    var interruptedWork = workInProgress.return;

    while (interruptedWork !== null) {
      unwindInterruptedWork(interruptedWork);
      interruptedWork = interruptedWork.return;
    }
  }

  workInProgressRoot = root;
  workInProgress = createWorkInProgress(root.current, null);
  workInProgressRootRenderLanes = subtreeRenderLanes = workInProgressRootIncludedLanes = lanes;
  workInProgressRootExitStatus = RootIncomplete;
  workInProgressRootFatalError = null;
  workInProgressRootSkippedLanes = NoLanes;
  workInProgressRootUpdatedLanes = NoLanes;
  workInProgressRootPingedLanes = NoLanes;

  {
    spawnedWorkDuringRender = null;
  }

  {
    ReactStrictModeWarnings.discardPendingWarnings();
  }
}

function handleError(root, thrownValue) {
  do {
    var erroredWork = workInProgress;

    try {
      // Reset module-level state that was set during the render phase.
      resetContextDependencies();
      resetHooksAfterThrow();
      resetCurrentFiber(); // TODO: I found and added this missing line while investigating a
      // separate issue. Write a regression test using string refs.

      ReactCurrentOwner$2.current = null;

      if (erroredWork === null || erroredWork.return === null) {
        // Expected to be working on a non-root fiber. This is a fatal error
        // because there's no ancestor that can handle it; the root is
        // supposed to capture all errors that weren't caught by an error
        // boundary.
        workInProgressRootExitStatus = RootFatalErrored;
        workInProgressRootFatalError = thrownValue; // Set `workInProgress` to null. This represents advancing to the next
        // sibling, or the parent if there are no siblings. But since the root
        // has no siblings nor a parent, we set it to null. Usually this is
        // handled by `completeUnitOfWork` or `unwindWork`, but since we're
        // intentionally not calling those, we need set it here.
        // TODO: Consider calling `unwindWork` to pop the contexts.

        workInProgress = null;
        return;
      }

      if (enableProfilerTimer && erroredWork.mode & ProfileMode) {
        // Record the time spent rendering before an error was thrown. This
        // avoids inaccurate Profiler durations in the case of a
        // suspended render.
        stopProfilerTimerIfRunningAndRecordDelta(erroredWork, true);
      }

      throwException(root, erroredWork.return, erroredWork, thrownValue, workInProgressRootRenderLanes);
      completeUnitOfWork(erroredWork);
    } catch (yetAnotherThrownValue) {
      // Something in the return path also threw.
      thrownValue = yetAnotherThrownValue;

      if (workInProgress === erroredWork && erroredWork !== null) {
        // If this boundary has already errored, then we had trouble processing
        // the error. Bubble it to the next boundary.
        erroredWork = erroredWork.return;
        workInProgress = erroredWork;
      } else {
        erroredWork = workInProgress;
      }

      continue;
    } // Return to the normal work loop.


    return;
  } while (true);
}

function pushDispatcher() {
  var prevDispatcher = ReactCurrentDispatcher$2.current;
  ReactCurrentDispatcher$2.current = ContextOnlyDispatcher;

  if (prevDispatcher === null) {
    // The React isomorphic package does not include a default dispatcher.
    // Instead the first renderer will lazily attach one, in order to give
    // nicer error messages.
    return ContextOnlyDispatcher;
  } else {
    return prevDispatcher;
  }
}

function popDispatcher(prevDispatcher) {
  ReactCurrentDispatcher$2.current = prevDispatcher;
}

function pushInteractions(root) {
  {
    var prevInteractions = tracing.__interactionsRef.current;
    tracing.__interactionsRef.current = root.memoizedInteractions;
    return prevInteractions;
  }
}

function popInteractions(prevInteractions) {
  {
    tracing.__interactionsRef.current = prevInteractions;
  }
}

function markCommitTimeOfFallback() {
  globalMostRecentFallbackTime = now();
}
function markSkippedUpdateLanes(lane) {
  workInProgressRootSkippedLanes = mergeLanes(lane, workInProgressRootSkippedLanes);
}
function renderDidSuspend() {
  if (workInProgressRootExitStatus === RootIncomplete) {
    workInProgressRootExitStatus = RootSuspended;
  }
}
function renderDidSuspendDelayIfPossible() {
  if (workInProgressRootExitStatus === RootIncomplete || workInProgressRootExitStatus === RootSuspended) {
    workInProgressRootExitStatus = RootSuspendedWithDelay;
  } // Check if there are updates that we skipped tree that might have unblocked
  // this render.


  if (workInProgressRoot !== null && (includesNonIdleWork(workInProgressRootSkippedLanes) || includesNonIdleWork(workInProgressRootUpdatedLanes))) {
    // Mark the current render as suspended so that we switch to working on
    // the updates that were skipped. Usually we only suspend at the end of
    // the render phase.
    // TODO: We should probably always mark the root as suspended immediately
    // (inside this function), since by suspending at the end of the render
    // phase introduces a potential mistake where we suspend lanes that were
    // pinged or updated while we were rendering.
    markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes);
  }
}
function renderDidError() {
  if (workInProgressRootExitStatus !== RootCompleted) {
    workInProgressRootExitStatus = RootErrored;
  }
} // Called during render to determine if anything has suspended.
// Returns false if we're not sure.

function renderHasNotSuspendedYet() {
  // If something errored or completed, we can't really be sure,
  // so those are false.
  return workInProgressRootExitStatus === RootIncomplete;
}

function renderRootSync(root, lanes) {
  var prevExecutionContext = executionContext;
  executionContext |= RenderContext;
  var prevDispatcher = pushDispatcher(); // If the root or lanes have changed, throw out the existing stack
  // and prepare a fresh one. Otherwise we'll continue where we left off.

  if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) {
    prepareFreshStack(root, lanes);
    startWorkOnPendingInteractions(root, lanes);
  }

  var prevInteractions = pushInteractions(root);

  do {
    try {
      workLoopSync();
      break;
    } catch (thrownValue) {
      handleError(root, thrownValue);
    }
  } while (true);

  resetContextDependencies();

  {
    popInteractions(prevInteractions);
  }

  executionContext = prevExecutionContext;
  popDispatcher(prevDispatcher);

  if (workInProgress !== null) {
    // This is a sync render, so we should have finished the whole tree.
    {
      {
        throw Error( "Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue." );
      }
    }
  }


  workInProgressRoot = null;
  workInProgressRootRenderLanes = NoLanes;
  return workInProgressRootExitStatus;
} // The work loop is an extremely hot path. Tell Closure not to inline it.

/** @noinline */


function workLoopSync() {
  // Already timed out, so perform work without checking if we need to yield.
  while (workInProgress !== null) {
    performUnitOfWork(workInProgress);
  }
}

function renderRootConcurrent(root, lanes) {
  var prevExecutionContext = executionContext;
  executionContext |= RenderContext;
  var prevDispatcher = pushDispatcher(); // If the root or lanes have changed, throw out the existing stack
  // and prepare a fresh one. Otherwise we'll continue where we left off.

  if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) {
    resetRenderTimer();
    prepareFreshStack(root, lanes);
    startWorkOnPendingInteractions(root, lanes);
  }

  var prevInteractions = pushInteractions(root);

  do {
    try {
      workLoopConcurrent();
      break;
    } catch (thrownValue) {
      handleError(root, thrownValue);
    }
  } while (true);

  resetContextDependencies();

  {
    popInteractions(prevInteractions);
  }

  popDispatcher(prevDispatcher);
  executionContext = prevExecutionContext;


  if (workInProgress !== null) {

    return RootIncomplete;
  } else {


    workInProgressRoot = null;
    workInProgressRootRenderLanes = NoLanes; // Return the final exit status.

    return workInProgressRootExitStatus;
  }
}
/** @noinline */


function workLoopConcurrent() {
  // Perform work until Scheduler asks us to yield
  while (workInProgress !== null && !shouldYield()) {
    performUnitOfWork(workInProgress);
  }
}

function performUnitOfWork(unitOfWork) {
  // The current, flushed, state of this fiber is the alternate. Ideally
  // nothing should rely on this, but relying on it here means that we don't
  // need an additional field on the work in progress.
  var current = unitOfWork.alternate;
  setCurrentFiber(unitOfWork);
  var next;

  if ( (unitOfWork.mode & ProfileMode) !== NoMode) {
    startProfilerTimer(unitOfWork);
    next = beginWork$1(current, unitOfWork, subtreeRenderLanes);
    stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true);
  } else {
    next = beginWork$1(current, unitOfWork, subtreeRenderLanes);
  }

  resetCurrentFiber();
  unitOfWork.memoizedProps = unitOfWork.pendingProps;

  if (next === null) {
    // If this doesn't spawn new work, complete the current work.
    completeUnitOfWork(unitOfWork);
  } else {
    workInProgress = next;
  }

  ReactCurrentOwner$2.current = null;
}

function completeUnitOfWork(unitOfWork) {
  // Attempt to complete the current unit of work, then move to the next
  // sibling. If there are no more siblings, return to the parent fiber.
  var completedWork = unitOfWork;

  do {
    // The current, flushed, state of this fiber is the alternate. Ideally
    // nothing should rely on this, but relying on it here means that we don't
    // need an additional field on the work in progress.
    var current = completedWork.alternate;
    var returnFiber = completedWork.return; // Check if the work completed or if something threw.

    if ((completedWork.flags & Incomplete) === NoFlags) {
      setCurrentFiber(completedWork);
      var next = void 0;

      if ( (completedWork.mode & ProfileMode) === NoMode) {
        next = completeWork(current, completedWork, subtreeRenderLanes);
      } else {
        startProfilerTimer(completedWork);
        next = completeWork(current, completedWork, subtreeRenderLanes); // Update render duration assuming we didn't error.

        stopProfilerTimerIfRunningAndRecordDelta(completedWork, false);
      }

      resetCurrentFiber();

      if (next !== null) {
        // Completing this fiber spawned new work. Work on that next.
        workInProgress = next;
        return;
      }

      resetChildLanes(completedWork);

      if (returnFiber !== null && // Do not append effects to parents if a sibling failed to complete
      (returnFiber.flags & Incomplete) === NoFlags) {
        // Append all the effects of the subtree and this fiber onto the effect
        // list of the parent. The completion order of the children affects the
        // side-effect order.
        if (returnFiber.firstEffect === null) {
          returnFiber.firstEffect = completedWork.firstEffect;
        }

        if (completedWork.lastEffect !== null) {
          if (returnFiber.lastEffect !== null) {
            returnFiber.lastEffect.nextEffect = completedWork.firstEffect;
          }

          returnFiber.lastEffect = completedWork.lastEffect;
        } // If this fiber had side-effects, we append it AFTER the children's
        // side-effects. We can perform certain side-effects earlier if needed,
        // by doing multiple passes over the effect list. We don't want to
        // schedule our own side-effect on our own list because if end up
        // reusing children we'll schedule this effect onto itself since we're
        // at the end.


        var flags = completedWork.flags; // Skip both NoWork and PerformedWork tags when creating the effect
        // list. PerformedWork effect is read by React DevTools but shouldn't be
        // committed.

        if (flags > PerformedWork) {
          if (returnFiber.lastEffect !== null) {
            returnFiber.lastEffect.nextEffect = completedWork;
          } else {
            returnFiber.firstEffect = completedWork;
          }

          returnFiber.lastEffect = completedWork;
        }
      }
    } else {
      // This fiber did not complete because something threw. Pop values off
      // the stack without entering the complete phase. If this is a boundary,
      // capture values if possible.
      var _next = unwindWork(completedWork); // Because this fiber did not complete, don't reset its expiration time.


      if (_next !== null) {
        // If completing this work spawned new work, do that next. We'll come
        // back here again.
        // Since we're restarting, remove anything that is not a host effect
        // from the effect tag.
        _next.flags &= HostEffectMask;
        workInProgress = _next;
        return;
      }

      if ( (completedWork.mode & ProfileMode) !== NoMode) {
        // Record the render duration for the fiber that errored.
        stopProfilerTimerIfRunningAndRecordDelta(completedWork, false); // Include the time spent working on failed children before continuing.

        var actualDuration = completedWork.actualDuration;
        var child = completedWork.child;

        while (child !== null) {
          actualDuration += child.actualDuration;
          child = child.sibling;
        }

        completedWork.actualDuration = actualDuration;
      }

      if (returnFiber !== null) {
        // Mark the parent fiber as incomplete and clear its effect list.
        returnFiber.firstEffect = returnFiber.lastEffect = null;
        returnFiber.flags |= Incomplete;
      }
    }

    var siblingFiber = completedWork.sibling;

    if (siblingFiber !== null) {
      // If there is more work to do in this returnFiber, do that next.
      workInProgress = siblingFiber;
      return;
    } // Otherwise, return to the parent


    completedWork = returnFiber; // Update the next thing we're working on in case something throws.

    workInProgress = completedWork;
  } while (completedWork !== null); // We've reached the root.


  if (workInProgressRootExitStatus === RootIncomplete) {
    workInProgressRootExitStatus = RootCompleted;
  }
}

function resetChildLanes(completedWork) {
  if ( // TODO: Move this check out of the hot path by moving `resetChildLanes`
  // to switch statement in `completeWork`.
  (completedWork.tag === LegacyHiddenComponent || completedWork.tag === OffscreenComponent) && completedWork.memoizedState !== null && !includesSomeLane(subtreeRenderLanes, OffscreenLane) && (completedWork.mode & ConcurrentMode) !== NoLanes) {
    // The children of this component are hidden. Don't bubble their
    // expiration times.
    return;
  }

  var newChildLanes = NoLanes; // Bubble up the earliest expiration time.

  if ( (completedWork.mode & ProfileMode) !== NoMode) {
    // In profiling mode, resetChildExpirationTime is also used to reset
    // profiler durations.
    var actualDuration = completedWork.actualDuration;
    var treeBaseDuration = completedWork.selfBaseDuration; // When a fiber is cloned, its actualDuration is reset to 0. This value will
    // only be updated if work is done on the fiber (i.e. it doesn't bailout).
    // When work is done, it should bubble to the parent's actualDuration. If
    // the fiber has not been cloned though, (meaning no work was done), then
    // this value will reflect the amount of time spent working on a previous
    // render. In that case it should not bubble. We determine whether it was
    // cloned by comparing the child pointer.

    var shouldBubbleActualDurations = completedWork.alternate === null || completedWork.child !== completedWork.alternate.child;
    var child = completedWork.child;

    while (child !== null) {
      newChildLanes = mergeLanes(newChildLanes, mergeLanes(child.lanes, child.childLanes));

      if (shouldBubbleActualDurations) {
        actualDuration += child.actualDuration;
      }

      treeBaseDuration += child.treeBaseDuration;
      child = child.sibling;
    }

    var isTimedOutSuspense = completedWork.tag === SuspenseComponent && completedWork.memoizedState !== null;

    if (isTimedOutSuspense) {
      // Don't count time spent in a timed out Suspense subtree as part of the base duration.
      var primaryChildFragment = completedWork.child;

      if (primaryChildFragment !== null) {
        treeBaseDuration -= primaryChildFragment.treeBaseDuration;
      }
    }

    completedWork.actualDuration = actualDuration;
    completedWork.treeBaseDuration = treeBaseDuration;
  } else {
    var _child = completedWork.child;

    while (_child !== null) {
      newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child.lanes, _child.childLanes));
      _child = _child.sibling;
    }
  }

  completedWork.childLanes = newChildLanes;
}

function commitRoot(root) {
  var renderPriorityLevel = getCurrentPriorityLevel();
  runWithPriority$1(ImmediatePriority$1, commitRootImpl.bind(null, root, renderPriorityLevel));
  return null;
}

function commitRootImpl(root, renderPriorityLevel) {
  do {
    // `flushPassiveEffects` will call `flushSyncUpdateQueue` at the end, which
    // means `flushPassiveEffects` will sometimes result in additional
    // passive effects. So we need to keep flushing in a loop until there are
    // no more pending effects.
    // TODO: Might be better if `flushPassiveEffects` did not automatically
    // flush synchronous work at the end, to avoid factoring hazards like this.
    flushPassiveEffects();
  } while (rootWithPendingPassiveEffects !== null);

  flushRenderPhaseStrictModeWarningsInDEV();

  if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
    {
      throw Error( "Should not already be working." );
    }
  }

  var finishedWork = root.finishedWork;
  var lanes = root.finishedLanes;

  if (finishedWork === null) {

    return null;
  }

  root.finishedWork = null;
  root.finishedLanes = NoLanes;

  if (!(finishedWork !== root.current)) {
    {
      throw Error( "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." );
    }
  } // commitRoot never returns a continuation; it always finishes synchronously.
  // So we can clear these now to allow a new callback to be scheduled.


  root.callbackNode = null; // Update the first and last pending times on this root. The new first
  // pending time is whatever is left on the root fiber.

  var remainingLanes = mergeLanes(finishedWork.lanes, finishedWork.childLanes);
  markRootFinished(root, remainingLanes); // Clear already finished discrete updates in case that a later call of
  // `flushDiscreteUpdates` starts a useless render pass which may cancels
  // a scheduled timeout.

  if (rootsWithPendingDiscreteUpdates !== null) {
    if (!hasDiscreteLanes(remainingLanes) && rootsWithPendingDiscreteUpdates.has(root)) {
      rootsWithPendingDiscreteUpdates.delete(root);
    }
  }

  if (root === workInProgressRoot) {
    // We can reset these now that they are finished.
    workInProgressRoot = null;
    workInProgress = null;
    workInProgressRootRenderLanes = NoLanes;
  } // Get the list of effects.


  var firstEffect;

  if (finishedWork.flags > PerformedWork) {
    // A fiber's effect list consists only of its children, not itself. So if
    // the root has an effect, we need to add it to the end of the list. The
    // resulting list is the set that would belong to the root's parent, if it
    // had one; that is, all the effects in the tree including the root.
    if (finishedWork.lastEffect !== null) {
      finishedWork.lastEffect.nextEffect = finishedWork;
      firstEffect = finishedWork.firstEffect;
    } else {
      firstEffect = finishedWork;
    }
  } else {
    // There is no effect on the root.
    firstEffect = finishedWork.firstEffect;
  }

  if (firstEffect !== null) {

    var prevExecutionContext = executionContext;
    executionContext |= CommitContext;
    var prevInteractions = pushInteractions(root); // Reset this to null before calling lifecycles

    ReactCurrentOwner$2.current = null; // The commit phase is broken into several sub-phases. We do a separate pass
    // of the effect list for each phase: all mutation effects come before all
    // layout effects, and so on.
    // The first phase a "before mutation" phase. We use this phase to read the
    // state of the host tree right before we mutate it. This is where
    // getSnapshotBeforeUpdate is called.

    focusedInstanceHandle = prepareForCommit(root.containerInfo);
    shouldFireAfterActiveInstanceBlur = false;
    nextEffect = firstEffect;

    do {
      {
        invokeGuardedCallback(null, commitBeforeMutationEffects, null);

        if (hasCaughtError()) {
          if (!(nextEffect !== null)) {
            {
              throw Error( "Should be working on an effect." );
            }
          }

          var error = clearCaughtError();
          captureCommitPhaseError(nextEffect, error);
          nextEffect = nextEffect.nextEffect;
        }
      }
    } while (nextEffect !== null); // We no longer need to track the active instance fiber


    focusedInstanceHandle = null;

    {
      // Mark the current commit time to be shared by all Profilers in this
      // batch. This enables them to be grouped later.
      recordCommitTime();
    } // The next phase is the mutation phase, where we mutate the host tree.


    nextEffect = firstEffect;

    do {
      {
        invokeGuardedCallback(null, commitMutationEffects, null, root, renderPriorityLevel);

        if (hasCaughtError()) {
          if (!(nextEffect !== null)) {
            {
              throw Error( "Should be working on an effect." );
            }
          }

          var _error = clearCaughtError();

          captureCommitPhaseError(nextEffect, _error);
          nextEffect = nextEffect.nextEffect;
        }
      }
    } while (nextEffect !== null);

    resetAfterCommit(root.containerInfo); // The work-in-progress tree is now the current tree. This must come after
    // the mutation phase, so that the previous tree is still current during
    // componentWillUnmount, but before the layout phase, so that the finished
    // work is current during componentDidMount/Update.

    root.current = finishedWork; // The next phase is the layout phase, where we call effects that read
    // the host tree after it's been mutated. The idiomatic use case for this is
    // layout, but class component lifecycles also fire here for legacy reasons.

    nextEffect = firstEffect;

    do {
      {
        invokeGuardedCallback(null, commitLayoutEffects, null, root, lanes);

        if (hasCaughtError()) {
          if (!(nextEffect !== null)) {
            {
              throw Error( "Should be working on an effect." );
            }
          }

          var _error2 = clearCaughtError();

          captureCommitPhaseError(nextEffect, _error2);
          nextEffect = nextEffect.nextEffect;
        }
      }
    } while (nextEffect !== null);

    nextEffect = null; // Tell Scheduler to yield at the end of the frame, so the browser has an
    // opportunity to paint.

    requestPaint();

    {
      popInteractions(prevInteractions);
    }

    executionContext = prevExecutionContext;
  } else {
    // No effects.
    root.current = finishedWork; // Measure these anyway so the flamegraph explicitly shows that there were
    // no effects.
    // TODO: Maybe there's a better way to report this.

    {
      recordCommitTime();
    }
  }

  var rootDidHavePassiveEffects = rootDoesHavePassiveEffects;

  if (rootDoesHavePassiveEffects) {
    // This commit has passive effects. Stash a reference to them. But don't
    // schedule a callback until after flushing layout work.
    rootDoesHavePassiveEffects = false;
    rootWithPendingPassiveEffects = root;
    pendingPassiveEffectsLanes = lanes;
    pendingPassiveEffectsRenderPriority = renderPriorityLevel;
  } else {
    // We are done with the effect chain at this point so let's clear the
    // nextEffect pointers to assist with GC. If we have passive effects, we'll
    // clear this in flushPassiveEffects.
    nextEffect = firstEffect;

    while (nextEffect !== null) {
      var nextNextEffect = nextEffect.nextEffect;
      nextEffect.nextEffect = null;

      if (nextEffect.flags & Deletion) {
        detachFiberAfterEffects(nextEffect);
      }

      nextEffect = nextNextEffect;
    }
  } // Read this again, since an effect might have updated it


  remainingLanes = root.pendingLanes; // Check if there's remaining work on this root

  if (remainingLanes !== NoLanes) {
    {
      if (spawnedWorkDuringRender !== null) {
        var expirationTimes = spawnedWorkDuringRender;
        spawnedWorkDuringRender = null;

        for (var i = 0; i < expirationTimes.length; i++) {
          scheduleInteractions(root, expirationTimes[i], root.memoizedInteractions);
        }
      }

      schedulePendingInteractions(root, remainingLanes);
    }
  } else {
    // If there's no remaining work, we can clear the set of already failed
    // error boundaries.
    legacyErrorBoundariesThatAlreadyFailed = null;
  }

  {
    if (!rootDidHavePassiveEffects) {
      // If there are no passive effects, then we can complete the pending interactions.
      // Otherwise, we'll wait until after the passive effects are flushed.
      // Wait to do this until after remaining work has been scheduled,
      // so that we don't prematurely signal complete for interactions when there's e.g. hidden work.
      finishPendingInteractions(root, lanes);
    }
  }

  if (remainingLanes === SyncLane) {
    // Count the number of times the root synchronously re-renders without
    // finishing. If there are too many, it indicates an infinite update loop.
    if (root === rootWithNestedUpdates) {
      nestedUpdateCount++;
    } else {
      nestedUpdateCount = 0;
      rootWithNestedUpdates = root;
    }
  } else {
    nestedUpdateCount = 0;
  }

  onCommitRoot(finishedWork.stateNode, renderPriorityLevel);

  {
    onCommitRoot$1();
  } // Always call this before exiting `commitRoot`, to ensure that any
  // additional work on this root is scheduled.


  ensureRootIsScheduled(root, now());

  if (hasUncaughtError) {
    hasUncaughtError = false;
    var _error3 = firstUncaughtError;
    firstUncaughtError = null;
    throw _error3;
  }

  if ((executionContext & LegacyUnbatchedContext) !== NoContext) {
    // a ReactDOM.render-ed root inside of batchedUpdates. The commit fired
    // synchronously, but layout updates should be deferred until the end
    // of the batch.


    return null;
  } // If layout work was scheduled, flush it now.


  flushSyncCallbackQueue();

  return null;
}

function commitBeforeMutationEffects() {
  while (nextEffect !== null) {
    var current = nextEffect.alternate;

    if (!shouldFireAfterActiveInstanceBlur && focusedInstanceHandle !== null) {
      if ((nextEffect.flags & Deletion) !== NoFlags) {
        if (doesFiberContain(nextEffect, focusedInstanceHandle)) {
          shouldFireAfterActiveInstanceBlur = true;
        }
      } else {
        // TODO: Move this out of the hot path using a dedicated effect tag.
        if (nextEffect.tag === SuspenseComponent && isSuspenseBoundaryBeingHidden(current, nextEffect) && doesFiberContain(nextEffect, focusedInstanceHandle)) {
          shouldFireAfterActiveInstanceBlur = true;
        }
      }
    }

    var flags = nextEffect.flags;

    if ((flags & Snapshot) !== NoFlags) {
      setCurrentFiber(nextEffect);
      commitBeforeMutationLifeCycles(current, nextEffect);
      resetCurrentFiber();
    }

    if ((flags & Passive) !== NoFlags) {
      // If there are passive effects, schedule a callback to flush at
      // the earliest opportunity.
      if (!rootDoesHavePassiveEffects) {
        rootDoesHavePassiveEffects = true;
        scheduleCallback(NormalPriority$1, function () {
          flushPassiveEffects();
          return null;
        });
      }
    }

    nextEffect = nextEffect.nextEffect;
  }
}

function commitMutationEffects(root, renderPriorityLevel) {
  // TODO: Should probably move the bulk of this function to commitWork.
  while (nextEffect !== null) {
    setCurrentFiber(nextEffect);
    var flags = nextEffect.flags;

    if (flags & ContentReset) {
      commitResetTextContent(nextEffect);
    }

    if (flags & Ref) {
      var current = nextEffect.alternate;

      if (current !== null) {
        commitDetachRef(current);
      }
    } // The following switch statement is only concerned about placement,
    // updates, and deletions. To avoid needing to add a case for every possible
    // bitmap value, we remove the secondary effects from the effect tag and
    // switch on that value.


    var primaryFlags = flags & (Placement | Update | Deletion | Hydrating);

    switch (primaryFlags) {
      case Placement:
        {
          commitPlacement(nextEffect); // Clear the "placement" from effect tag so that we know that this is
          // inserted, before any life-cycles like componentDidMount gets called.
          // TODO: findDOMNode doesn't rely on this any more but isMounted does
          // and isMounted is deprecated anyway so we should be able to kill this.

          nextEffect.flags &= ~Placement;
          break;
        }

      case PlacementAndUpdate:
        {
          // Placement
          commitPlacement(nextEffect); // Clear the "placement" from effect tag so that we know that this is
          // inserted, before any life-cycles like componentDidMount gets called.

          nextEffect.flags &= ~Placement; // Update

          var _current = nextEffect.alternate;
          commitWork(_current, nextEffect);
          break;
        }

      case Hydrating:
        {
          nextEffect.flags &= ~Hydrating;
          break;
        }

      case HydratingAndUpdate:
        {
          nextEffect.flags &= ~Hydrating; // Update

          var _current2 = nextEffect.alternate;
          commitWork(_current2, nextEffect);
          break;
        }

      case Update:
        {
          var _current3 = nextEffect.alternate;
          commitWork(_current3, nextEffect);
          break;
        }

      case Deletion:
        {
          commitDeletion(root, nextEffect);
          break;
        }
    }

    resetCurrentFiber();
    nextEffect = nextEffect.nextEffect;
  }
}

function commitLayoutEffects(root, committedLanes) {


  while (nextEffect !== null) {
    setCurrentFiber(nextEffect);
    var flags = nextEffect.flags;

    if (flags & (Update | Callback)) {
      var current = nextEffect.alternate;
      commitLifeCycles(root, current, nextEffect);
    }

    {
      if (flags & Ref) {
        commitAttachRef(nextEffect);
      }
    }

    resetCurrentFiber();
    nextEffect = nextEffect.nextEffect;
  }
}

function flushPassiveEffects() {
  // Returns whether passive effects were flushed.
  if (pendingPassiveEffectsRenderPriority !== NoPriority$1) {
    var priorityLevel = pendingPassiveEffectsRenderPriority > NormalPriority$1 ? NormalPriority$1 : pendingPassiveEffectsRenderPriority;
    pendingPassiveEffectsRenderPriority = NoPriority$1;

    {
      return runWithPriority$1(priorityLevel, flushPassiveEffectsImpl);
    }
  }

  return false;
}
function enqueuePendingPassiveHookEffectMount(fiber, effect) {
  pendingPassiveHookEffectsMount.push(effect, fiber);

  if (!rootDoesHavePassiveEffects) {
    rootDoesHavePassiveEffects = true;
    scheduleCallback(NormalPriority$1, function () {
      flushPassiveEffects();
      return null;
    });
  }
}
function enqueuePendingPassiveHookEffectUnmount(fiber, effect) {
  pendingPassiveHookEffectsUnmount.push(effect, fiber);

  {
    fiber.flags |= PassiveUnmountPendingDev;
    var alternate = fiber.alternate;

    if (alternate !== null) {
      alternate.flags |= PassiveUnmountPendingDev;
    }
  }

  if (!rootDoesHavePassiveEffects) {
    rootDoesHavePassiveEffects = true;
    scheduleCallback(NormalPriority$1, function () {
      flushPassiveEffects();
      return null;
    });
  }
}

function invokePassiveEffectCreate(effect) {
  var create = effect.create;
  effect.destroy = create();
}

function flushPassiveEffectsImpl() {
  if (rootWithPendingPassiveEffects === null) {
    return false;
  }

  var root = rootWithPendingPassiveEffects;
  var lanes = pendingPassiveEffectsLanes;
  rootWithPendingPassiveEffects = null;
  pendingPassiveEffectsLanes = NoLanes;

  if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
    {
      throw Error( "Cannot flush passive effects while already rendering." );
    }
  }

  {
    isFlushingPassiveEffects = true;
  }

  var prevExecutionContext = executionContext;
  executionContext |= CommitContext;
  var prevInteractions = pushInteractions(root); // It's important that ALL pending passive effect destroy functions are called
  // before ANY passive effect create functions are called.
  // Otherwise effects in sibling components might interfere with each other.
  // e.g. a destroy function in one component may unintentionally override a ref
  // value set by a create function in another component.
  // Layout effects have the same constraint.
  // First pass: Destroy stale passive effects.

  var unmountEffects = pendingPassiveHookEffectsUnmount;
  pendingPassiveHookEffectsUnmount = [];

  for (var i = 0; i < unmountEffects.length; i += 2) {
    var _effect = unmountEffects[i];
    var fiber = unmountEffects[i + 1];
    var destroy = _effect.destroy;
    _effect.destroy = undefined;

    {
      fiber.flags &= ~PassiveUnmountPendingDev;
      var alternate = fiber.alternate;

      if (alternate !== null) {
        alternate.flags &= ~PassiveUnmountPendingDev;
      }
    }

    if (typeof destroy === 'function') {
      {
        setCurrentFiber(fiber);

        {
          invokeGuardedCallback(null, destroy, null);
        }

        if (hasCaughtError()) {
          if (!(fiber !== null)) {
            {
              throw Error( "Should be working on an effect." );
            }
          }

          var error = clearCaughtError();
          captureCommitPhaseError(fiber, error);
        }

        resetCurrentFiber();
      }
    }
  } // Second pass: Create new passive effects.


  var mountEffects = pendingPassiveHookEffectsMount;
  pendingPassiveHookEffectsMount = [];

  for (var _i = 0; _i < mountEffects.length; _i += 2) {
    var _effect2 = mountEffects[_i];
    var _fiber = mountEffects[_i + 1];

    {
      setCurrentFiber(_fiber);

      {
        invokeGuardedCallback(null, invokePassiveEffectCreate, null, _effect2);
      }

      if (hasCaughtError()) {
        if (!(_fiber !== null)) {
          {
            throw Error( "Should be working on an effect." );
          }
        }

        var _error4 = clearCaughtError();

        captureCommitPhaseError(_fiber, _error4);
      }

      resetCurrentFiber();
    }
  } // Note: This currently assumes there are no passive effects on the root fiber
  // because the root is not part of its own effect list.
  // This could change in the future.


  var effect = root.current.firstEffect;

  while (effect !== null) {
    var nextNextEffect = effect.nextEffect; // Remove nextEffect pointer to assist GC

    effect.nextEffect = null;

    if (effect.flags & Deletion) {
      detachFiberAfterEffects(effect);
    }

    effect = nextNextEffect;
  }

  {
    popInteractions(prevInteractions);
    finishPendingInteractions(root, lanes);
  }

  {
    isFlushingPassiveEffects = false;
  }

  executionContext = prevExecutionContext;
  flushSyncCallbackQueue(); // If additional passive effects were scheduled, increment a counter. If this
  // exceeds the limit, we'll fire a warning.

  nestedPassiveUpdateCount = rootWithPendingPassiveEffects === null ? 0 : nestedPassiveUpdateCount + 1;
  return true;
}

function isAlreadyFailedLegacyErrorBoundary(instance) {
  return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance);
}
function markLegacyErrorBoundaryAsFailed(instance) {
  if (legacyErrorBoundariesThatAlreadyFailed === null) {
    legacyErrorBoundariesThatAlreadyFailed = new Set([instance]);
  } else {
    legacyErrorBoundariesThatAlreadyFailed.add(instance);
  }
}

function prepareToThrowUncaughtError(error) {
  if (!hasUncaughtError) {
    hasUncaughtError = true;
    firstUncaughtError = error;
  }
}

var onUncaughtError = prepareToThrowUncaughtError;

function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
  var errorInfo = createCapturedValue(error, sourceFiber);
  var update = createRootErrorUpdate(rootFiber, errorInfo, SyncLane);
  enqueueUpdate(rootFiber, update);
  var eventTime = requestEventTime();
  var root = markUpdateLaneFromFiberToRoot(rootFiber, SyncLane);

  if (root !== null) {
    markRootUpdated(root, SyncLane, eventTime);
    ensureRootIsScheduled(root, eventTime);
    schedulePendingInteractions(root, SyncLane);
  }
}

function captureCommitPhaseError(sourceFiber, error) {
  if (sourceFiber.tag === HostRoot) {
    // Error was thrown at the root. There is no parent, so the root
    // itself should capture it.
    captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);
    return;
  }

  var fiber = sourceFiber.return;

  while (fiber !== null) {
    if (fiber.tag === HostRoot) {
      captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error);
      return;
    } else if (fiber.tag === ClassComponent) {
      var ctor = fiber.type;
      var instance = fiber.stateNode;

      if (typeof ctor.getDerivedStateFromError === 'function' || typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {
        var errorInfo = createCapturedValue(error, sourceFiber);
        var update = createClassErrorUpdate(fiber, errorInfo, SyncLane);
        enqueueUpdate(fiber, update);
        var eventTime = requestEventTime();
        var root = markUpdateLaneFromFiberToRoot(fiber, SyncLane);

        if (root !== null) {
          markRootUpdated(root, SyncLane, eventTime);
          ensureRootIsScheduled(root, eventTime);
          schedulePendingInteractions(root, SyncLane);
        } else {
          // This component has already been unmounted.
          // We can't schedule any follow up work for the root because the fiber is already unmounted,
          // but we can still call the log-only boundary so the error isn't swallowed.
          //
          // TODO This is only a temporary bandaid for the old reconciler fork.
          // We can delete this special case once the new fork is merged.
          if (typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {
            try {
              instance.componentDidCatch(error, errorInfo);
            } catch (errorToIgnore) {// TODO Ignore this error? Rethrow it?
              // This is kind of an edge case.
            }
          }
        }

        return;
      }
    }

    fiber = fiber.return;
  }
}
function pingSuspendedRoot(root, wakeable, pingedLanes) {
  var pingCache = root.pingCache;

  if (pingCache !== null) {
    // The wakeable resolved, so we no longer need to memoize, because it will
    // never be thrown again.
    pingCache.delete(wakeable);
  }

  var eventTime = requestEventTime();
  markRootPinged(root, pingedLanes);

  if (workInProgressRoot === root && isSubsetOfLanes(workInProgressRootRenderLanes, pingedLanes)) {
    // Received a ping at the same priority level at which we're currently
    // rendering. We might want to restart this render. This should mirror
    // the logic of whether or not a root suspends once it completes.
    // TODO: If we're rendering sync either due to Sync, Batched or expired,
    // we should probably never restart.
    // If we're suspended with delay, or if it's a retry, we'll always suspend
    // so we can always restart.
    if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && includesOnlyRetries(workInProgressRootRenderLanes) && now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) {
      // Restart from the root.
      prepareFreshStack(root, NoLanes);
    } else {
      // Even though we can't restart right now, we might get an
      // opportunity later. So we mark this render as having a ping.
      workInProgressRootPingedLanes = mergeLanes(workInProgressRootPingedLanes, pingedLanes);
    }
  }

  ensureRootIsScheduled(root, eventTime);
  schedulePendingInteractions(root, pingedLanes);
}

function retryTimedOutBoundary(boundaryFiber, retryLane) {
  // The boundary fiber (a Suspense component or SuspenseList component)
  // previously was rendered in its fallback state. One of the promises that
  // suspended it has resolved, which means at least part of the tree was
  // likely unblocked. Try rendering again, at a new expiration time.
  if (retryLane === NoLane) {
    retryLane = requestRetryLane(boundaryFiber);
  } // TODO: Special case idle priority?


  var eventTime = requestEventTime();
  var root = markUpdateLaneFromFiberToRoot(boundaryFiber, retryLane);

  if (root !== null) {
    markRootUpdated(root, retryLane, eventTime);
    ensureRootIsScheduled(root, eventTime);
    schedulePendingInteractions(root, retryLane);
  }
}
function resolveRetryWakeable(boundaryFiber, wakeable) {
  var retryLane = NoLane; // Default

  var retryCache;

  {
    retryCache = boundaryFiber.stateNode;
  }

  if (retryCache !== null) {
    // The wakeable resolved, so we no longer need to memoize, because it will
    // never be thrown again.
    retryCache.delete(wakeable);
  }

  retryTimedOutBoundary(boundaryFiber, retryLane);
} // Computes the next Just Noticeable Difference (JND) boundary.
// The theory is that a person can't tell the difference between small differences in time.
// Therefore, if we wait a bit longer than necessary that won't translate to a noticeable
// difference in the experience. However, waiting for longer might mean that we can avoid
// showing an intermediate loading state. The longer we have already waited, the harder it
// is to tell small differences in time. Therefore, the longer we've already waited,
// the longer we can wait additionally. At some point we have to give up though.
// We pick a train model where the next boundary commits at a consistent schedule.
// These particular numbers are vague estimates. We expect to adjust them based on research.

function jnd(timeElapsed) {
  return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3000 ? 3000 : timeElapsed < 4320 ? 4320 : ceil(timeElapsed / 1960) * 1960;
}

function checkForNestedUpdates() {
  if (nestedUpdateCount > NESTED_UPDATE_LIMIT) {
    nestedUpdateCount = 0;
    rootWithNestedUpdates = null;

    {
      {
        throw Error( "Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops." );
      }
    }
  }

  {
    if (nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT) {
      nestedPassiveUpdateCount = 0;

      error('Maximum update depth exceeded. This can happen when a component ' + "calls setState inside useEffect, but useEffect either doesn't " + 'have a dependency array, or one of the dependencies changes on ' + 'every render.');
    }
  }
}

function flushRenderPhaseStrictModeWarningsInDEV() {
  {
    ReactStrictModeWarnings.flushLegacyContextWarning();

    {
      ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
    }
  }
}

var didWarnStateUpdateForNotYetMountedComponent = null;

function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) {
  {
    if ((executionContext & RenderContext) !== NoContext) {
      // We let the other warning about render phase updates deal with this one.
      return;
    }

    if (!(fiber.mode & (BlockingMode | ConcurrentMode))) {
      return;
    }

    var tag = fiber.tag;

    if (tag !== IndeterminateComponent && tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent && tag !== Block) {
      // Only warn for user-defined components, not internal ones like Suspense.
      return;
    } // We show the whole stack but dedupe on the top component's name because
    // the problematic code almost always lies inside that component.


    var componentName = getComponentName(fiber.type) || 'ReactComponent';

    if (didWarnStateUpdateForNotYetMountedComponent !== null) {
      if (didWarnStateUpdateForNotYetMountedComponent.has(componentName)) {
        return;
      }

      didWarnStateUpdateForNotYetMountedComponent.add(componentName);
    } else {
      didWarnStateUpdateForNotYetMountedComponent = new Set([componentName]);
    }

    var previousFiber = current;

    try {
      setCurrentFiber(fiber);

      error("Can't perform a React state update on a component that hasn't mounted yet. " + 'This indicates that you have a side-effect in your render function that ' + 'asynchronously later calls tries to update the component. Move this work to ' + 'useEffect instead.');
    } finally {
      if (previousFiber) {
        setCurrentFiber(fiber);
      } else {
        resetCurrentFiber();
      }
    }
  }
}

var didWarnStateUpdateForUnmountedComponent = null;

function warnAboutUpdateOnUnmountedFiberInDEV(fiber) {
  {
    var tag = fiber.tag;

    if (tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent && tag !== Block) {
      // Only warn for user-defined components, not internal ones like Suspense.
      return;
    } // If there are pending passive effects unmounts for this Fiber,
    // we can assume that they would have prevented this update.


    if ((fiber.flags & PassiveUnmountPendingDev) !== NoFlags) {
      return;
    } // We show the whole stack but dedupe on the top component's name because
    // the problematic code almost always lies inside that component.


    var componentName = getComponentName(fiber.type) || 'ReactComponent';

    if (didWarnStateUpdateForUnmountedComponent !== null) {
      if (didWarnStateUpdateForUnmountedComponent.has(componentName)) {
        return;
      }

      didWarnStateUpdateForUnmountedComponent.add(componentName);
    } else {
      didWarnStateUpdateForUnmountedComponent = new Set([componentName]);
    }

    if (isFlushingPassiveEffects) ; else {
      var previousFiber = current;

      try {
        setCurrentFiber(fiber);

        error("Can't perform a React state update on an unmounted component. This " + 'is a no-op, but it indicates a memory leak in your application. To ' + 'fix, cancel all subscriptions and asynchronous tasks in %s.', tag === ClassComponent ? 'the componentWillUnmount method' : 'a useEffect cleanup function');
      } finally {
        if (previousFiber) {
          setCurrentFiber(fiber);
        } else {
          resetCurrentFiber();
        }
      }
    }
  }
}

var beginWork$1;

{
  var dummyFiber = null;

  beginWork$1 = function (current, unitOfWork, lanes) {
    // If a component throws an error, we replay it again in a synchronously
    // dispatched event, so that the debugger will treat it as an uncaught
    // error See ReactErrorUtils for more information.
    // Before entering the begin phase, copy the work-in-progress onto a dummy
    // fiber. If beginWork throws, we'll use this to reset the state.
    var originalWorkInProgressCopy = assignFiberPropertiesInDEV(dummyFiber, unitOfWork);

    try {
      return beginWork(current, unitOfWork, lanes);
    } catch (originalError) {
      if (originalError !== null && typeof originalError === 'object' && typeof originalError.then === 'function') {
        // Don't replay promises. Treat everything else like an error.
        throw originalError;
      } // Keep this code in sync with handleError; any changes here must have
      // corresponding changes there.


      resetContextDependencies();
      resetHooksAfterThrow(); // Don't reset current debug fiber, since we're about to work on the
      // same fiber again.
      // Unwind the failed stack frame

      unwindInterruptedWork(unitOfWork); // Restore the original properties of the fiber.

      assignFiberPropertiesInDEV(unitOfWork, originalWorkInProgressCopy);

      if ( unitOfWork.mode & ProfileMode) {
        // Reset the profiler timer.
        startProfilerTimer(unitOfWork);
      } // Run beginWork again.


      invokeGuardedCallback(null, beginWork, null, current, unitOfWork, lanes);

      if (hasCaughtError()) {
        var replayError = clearCaughtError(); // `invokeGuardedCallback` sometimes sets an expando `_suppressLogging`.
        // Rethrow this error instead of the original one.

        throw replayError;
      } else {
        // This branch is reachable if the render phase is impure.
        throw originalError;
      }
    }
  };
}

var didWarnAboutUpdateInRender = false;
var didWarnAboutUpdateInRenderForAnotherComponent;

{
  didWarnAboutUpdateInRenderForAnotherComponent = new Set();
}

function warnAboutRenderPhaseUpdatesInDEV(fiber) {
  {
    if (isRendering && (executionContext & RenderContext) !== NoContext && !getIsUpdatingOpaqueValueInRenderPhaseInDEV()) {
      switch (fiber.tag) {
        case FunctionComponent:
        case ForwardRef:
        case SimpleMemoComponent:
          {
            var renderingComponentName = workInProgress && getComponentName(workInProgress.type) || 'Unknown'; // Dedupe by the rendering component because it's the one that needs to be fixed.

            var dedupeKey = renderingComponentName;

            if (!didWarnAboutUpdateInRenderForAnotherComponent.has(dedupeKey)) {
              didWarnAboutUpdateInRenderForAnotherComponent.add(dedupeKey);
              var setStateComponentName = getComponentName(fiber.type) || 'Unknown';

              error('Cannot update a component (`%s`) while rendering a ' + 'different component (`%s`). To locate the bad setState() call inside `%s`, ' + 'follow the stack trace as described in https://reactjs.org/link/setstate-in-render', setStateComponentName, renderingComponentName, renderingComponentName);
            }

            break;
          }

        case ClassComponent:
          {
            if (!didWarnAboutUpdateInRender) {
              error('Cannot update during an existing state transition (such as ' + 'within `render`). Render methods should be a pure ' + 'function of props and state.');

              didWarnAboutUpdateInRender = true;
            }

            break;
          }
      }
    }
  }
} // a 'shared' variable that changes when act() opens/closes in tests.


var IsThisRendererActing = {
  current: false
};
function warnIfNotScopedWithMatchingAct(fiber) {
  {
    if ( IsSomeRendererActing.current === true && IsThisRendererActing.current !== true) {
      var previousFiber = current;

      try {
        setCurrentFiber(fiber);

        error("It looks like you're using the wrong act() around your test interactions.\n" + 'Be sure to use the matching version of act() corresponding to your renderer:\n\n' + '// for react-dom:\n' + // Break up imports to avoid accidentally parsing them as dependencies.
        'import {act} fr' + "om 'react-dom/test-utils';\n" + '// ...\n' + 'act(() => ...);\n\n' + '// for react-test-renderer:\n' + // Break up imports to avoid accidentally parsing them as dependencies.
        'import TestRenderer fr' + "om react-test-renderer';\n" + 'const {act} = TestRenderer;\n' + '// ...\n' + 'act(() => ...);');
      } finally {
        if (previousFiber) {
          setCurrentFiber(fiber);
        } else {
          resetCurrentFiber();
        }
      }
    }
  }
}
function warnIfNotCurrentlyActingEffectsInDEV(fiber) {
  {
    if ( (fiber.mode & StrictMode) !== NoMode && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) {
      error('An update to %s ran an effect, but was not wrapped in act(...).\n\n' + 'When testing, code that causes React state updates should be ' + 'wrapped into act(...):\n\n' + 'act(() => {\n' + '  /* fire events that update state */\n' + '});\n' + '/* assert on the output */\n\n' + "This ensures that you're testing the behavior the user would see " + 'in the browser.' + ' Learn more at https://reactjs.org/link/wrap-tests-with-act', getComponentName(fiber.type));
    }
  }
}

function warnIfNotCurrentlyActingUpdatesInDEV(fiber) {
  {
    if ( executionContext === NoContext && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) {
      var previousFiber = current;

      try {
        setCurrentFiber(fiber);

        error('An update to %s inside a test was not wrapped in act(...).\n\n' + 'When testing, code that causes React state updates should be ' + 'wrapped into act(...):\n\n' + 'act(() => {\n' + '  /* fire events that update state */\n' + '});\n' + '/* assert on the output */\n\n' + "This ensures that you're testing the behavior the user would see " + 'in the browser.' + ' Learn more at https://reactjs.org/link/wrap-tests-with-act', getComponentName(fiber.type));
      } finally {
        if (previousFiber) {
          setCurrentFiber(fiber);
        } else {
          resetCurrentFiber();
        }
      }
    }
  }
}

var warnIfNotCurrentlyActingUpdatesInDev = warnIfNotCurrentlyActingUpdatesInDEV; // In tests, we want to enforce a mocked scheduler.

var didWarnAboutUnmockedScheduler = false; // TODO Before we release concurrent mode, revisit this and decide whether a mocked
// scheduler is the actual recommendation. The alternative could be a testing build,
// a new lib, or whatever; we dunno just yet. This message is for early adopters
// to get their tests right.

function warnIfUnmockedScheduler(fiber) {
  {
    if (didWarnAboutUnmockedScheduler === false && Scheduler.unstable_flushAllWithoutAsserting === undefined) {
      if (fiber.mode & BlockingMode || fiber.mode & ConcurrentMode) {
        didWarnAboutUnmockedScheduler = true;

        error('In Concurrent or Sync modes, the "scheduler" module needs to be mocked ' + 'to guarantee consistent behaviour across tests and browsers. ' + 'For example, with jest: \n' + // Break up requires to avoid accidentally parsing them as dependencies.
        "jest.mock('scheduler', () => require" + "('scheduler/unstable_mock'));\n\n" + 'For more info, visit https://reactjs.org/link/mock-scheduler');
      }
    }
  }
}

function computeThreadID(root, lane) {
  // Interaction threads are unique per root and expiration time.
  // NOTE: Intentionally unsound cast. All that matters is that it's a number
  // and it represents a batch of work. Could make a helper function instead,
  // but meh this is fine for now.
  return lane * 1000 + root.interactionThreadID;
}

function markSpawnedWork(lane) {

  if (spawnedWorkDuringRender === null) {
    spawnedWorkDuringRender = [lane];
  } else {
    spawnedWorkDuringRender.push(lane);
  }
}

function scheduleInteractions(root, lane, interactions) {

  if (interactions.size > 0) {
    var pendingInteractionMap = root.pendingInteractionMap;
    var pendingInteractions = pendingInteractionMap.get(lane);

    if (pendingInteractions != null) {
      interactions.forEach(function (interaction) {
        if (!pendingInteractions.has(interaction)) {
          // Update the pending async work count for previously unscheduled interaction.
          interaction.__count++;
        }

        pendingInteractions.add(interaction);
      });
    } else {
      pendingInteractionMap.set(lane, new Set(interactions)); // Update the pending async work count for the current interactions.

      interactions.forEach(function (interaction) {
        interaction.__count++;
      });
    }

    var subscriber = tracing.__subscriberRef.current;

    if (subscriber !== null) {
      var threadID = computeThreadID(root, lane);
      subscriber.onWorkScheduled(interactions, threadID);
    }
  }
}

function schedulePendingInteractions(root, lane) {

  scheduleInteractions(root, lane, tracing.__interactionsRef.current);
}

function startWorkOnPendingInteractions(root, lanes) {
  // we can accurately attribute time spent working on it, And so that cascading
  // work triggered during the render phase will be associated with it.


  var interactions = new Set();
  root.pendingInteractionMap.forEach(function (scheduledInteractions, scheduledLane) {
    if (includesSomeLane(lanes, scheduledLane)) {
      scheduledInteractions.forEach(function (interaction) {
        return interactions.add(interaction);
      });
    }
  }); // Store the current set of interactions on the FiberRoot for a few reasons:
  // We can re-use it in hot functions like performConcurrentWorkOnRoot()
  // without having to recalculate it. We will also use it in commitWork() to
  // pass to any Profiler onRender() hooks. This also provides DevTools with a
  // way to access it when the onCommitRoot() hook is called.

  root.memoizedInteractions = interactions;

  if (interactions.size > 0) {
    var subscriber = tracing.__subscriberRef.current;

    if (subscriber !== null) {
      var threadID = computeThreadID(root, lanes);

      try {
        subscriber.onWorkStarted(interactions, threadID);
      } catch (error) {
        // If the subscriber throws, rethrow it in a separate task
        scheduleCallback(ImmediatePriority$1, function () {
          throw error;
        });
      }
    }
  }
}

function finishPendingInteractions(root, committedLanes) {

  var remainingLanesAfterCommit = root.pendingLanes;
  var subscriber;

  try {
    subscriber = tracing.__subscriberRef.current;

    if (subscriber !== null && root.memoizedInteractions.size > 0) {
      // FIXME: More than one lane can finish in a single commit.
      var threadID = computeThreadID(root, committedLanes);
      subscriber.onWorkStopped(root.memoizedInteractions, threadID);
    }
  } catch (error) {
    // If the subscriber throws, rethrow it in a separate task
    scheduleCallback(ImmediatePriority$1, function () {
      throw error;
    });
  } finally {
    // Clear completed interactions from the pending Map.
    // Unless the render was suspended or cascading work was scheduled,
    // In which case– leave pending interactions until the subsequent render.
    var pendingInteractionMap = root.pendingInteractionMap;
    pendingInteractionMap.forEach(function (scheduledInteractions, lane) {
      // Only decrement the pending interaction count if we're done.
      // If there's still work at the current priority,
      // That indicates that we are waiting for suspense data.
      if (!includesSomeLane(remainingLanesAfterCommit, lane)) {
        pendingInteractionMap.delete(lane);
        scheduledInteractions.forEach(function (interaction) {
          interaction.__count--;

          if (subscriber !== null && interaction.__count === 0) {
            try {
              subscriber.onInteractionScheduledWorkCompleted(interaction);
            } catch (error) {
              // If the subscriber throws, rethrow it in a separate task
              scheduleCallback(ImmediatePriority$1, function () {
                throw error;
              });
            }
          }
        });
      }
    });
  }
} // `act` testing API

function shouldForceFlushFallbacksInDEV() {
  // Never force flush in production. This function should get stripped out.
  return  actingUpdatesScopeDepth > 0;
}
// so we can tell if any async act() calls try to run in parallel.


var actingUpdatesScopeDepth = 0;

function detachFiberAfterEffects(fiber) {
  fiber.sibling = null;
  fiber.stateNode = null;
}

var resolveFamily = null; // $FlowFixMe Flow gets confused by a WeakSet feature check below.

var failedBoundaries = null;
var setRefreshHandler = function (handler) {
  {
    resolveFamily = handler;
  }
};
function resolveFunctionForHotReloading(type) {
  {
    if (resolveFamily === null) {
      // Hot reloading is disabled.
      return type;
    }

    var family = resolveFamily(type);

    if (family === undefined) {
      return type;
    } // Use the latest known implementation.


    return family.current;
  }
}
function resolveClassForHotReloading(type) {
  // No implementation differences.
  return resolveFunctionForHotReloading(type);
}
function resolveForwardRefForHotReloading(type) {
  {
    if (resolveFamily === null) {
      // Hot reloading is disabled.
      return type;
    }

    var family = resolveFamily(type);

    if (family === undefined) {
      // Check if we're dealing with a real forwardRef. Don't want to crash early.
      if (type !== null && type !== undefined && typeof type.render === 'function') {
        // ForwardRef is special because its resolved .type is an object,
        // but it's possible that we only have its inner render function in the map.
        // If that inner render function is different, we'll build a new forwardRef type.
        var currentRender = resolveFunctionForHotReloading(type.render);

        if (type.render !== currentRender) {
          var syntheticType = {
            $$typeof: REACT_FORWARD_REF_TYPE,
            render: currentRender
          };

          if (type.displayName !== undefined) {
            syntheticType.displayName = type.displayName;
          }

          return syntheticType;
        }
      }

      return type;
    } // Use the latest known implementation.


    return family.current;
  }
}
function isCompatibleFamilyForHotReloading(fiber, element) {
  {
    if (resolveFamily === null) {
      // Hot reloading is disabled.
      return false;
    }

    var prevType = fiber.elementType;
    var nextType = element.type; // If we got here, we know types aren't === equal.

    var needsCompareFamilies = false;
    var $$typeofNextType = typeof nextType === 'object' && nextType !== null ? nextType.$$typeof : null;

    switch (fiber.tag) {
      case ClassComponent:
        {
          if (typeof nextType === 'function') {
            needsCompareFamilies = true;
          }

          break;
        }

      case FunctionComponent:
        {
          if (typeof nextType === 'function') {
            needsCompareFamilies = true;
          } else if ($$typeofNextType === REACT_LAZY_TYPE) {
            // We don't know the inner type yet.
            // We're going to assume that the lazy inner type is stable,
            // and so it is sufficient to avoid reconciling it away.
            // We're not going to unwrap or actually use the new lazy type.
            needsCompareFamilies = true;
          }

          break;
        }

      case ForwardRef:
        {
          if ($$typeofNextType === REACT_FORWARD_REF_TYPE) {
            needsCompareFamilies = true;
          } else if ($$typeofNextType === REACT_LAZY_TYPE) {
            needsCompareFamilies = true;
          }

          break;
        }

      case MemoComponent:
      case SimpleMemoComponent:
        {
          if ($$typeofNextType === REACT_MEMO_TYPE) {
            // TODO: if it was but can no longer be simple,
            // we shouldn't set this.
            needsCompareFamilies = true;
          } else if ($$typeofNextType === REACT_LAZY_TYPE) {
            needsCompareFamilies = true;
          }

          break;
        }

      default:
        return false;
    } // Check if both types have a family and it's the same one.


    if (needsCompareFamilies) {
      // Note: memo() and forwardRef() we'll compare outer rather than inner type.
      // This means both of them need to be registered to preserve state.
      // If we unwrapped and compared the inner types for wrappers instead,
      // then we would risk falsely saying two separate memo(Foo)
      // calls are equivalent because they wrap the same Foo function.
      var prevFamily = resolveFamily(prevType);

      if (prevFamily !== undefined && prevFamily === resolveFamily(nextType)) {
        return true;
      }
    }

    return false;
  }
}
function markFailedErrorBoundaryForHotReloading(fiber) {
  {
    if (resolveFamily === null) {
      // Hot reloading is disabled.
      return;
    }

    if (typeof WeakSet !== 'function') {
      return;
    }

    if (failedBoundaries === null) {
      failedBoundaries = new WeakSet();
    }

    failedBoundaries.add(fiber);
  }
}
var scheduleRefresh = function (root, update) {
  {
    if (resolveFamily === null) {
      // Hot reloading is disabled.
      return;
    }

    var staleFamilies = update.staleFamilies,
        updatedFamilies = update.updatedFamilies;
    flushPassiveEffects();
    flushSync(function () {
      scheduleFibersWithFamiliesRecursively(root.current, updatedFamilies, staleFamilies);
    });
  }
};
var scheduleRoot = function (root, element) {
  {
    if (root.context !== emptyContextObject) {
      // Super edge case: root has a legacy _renderSubtree context
      // but we don't know the parentComponent so we can't pass it.
      // Just ignore. We'll delete this with _renderSubtree code path later.
      return;
    }

    flushPassiveEffects();
    flushSync(function () {
      updateContainer(element, root, null, null);
    });
  }
};

function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) {
  {
    var alternate = fiber.alternate,
        child = fiber.child,
        sibling = fiber.sibling,
        tag = fiber.tag,
        type = fiber.type;
    var candidateType = null;

    switch (tag) {
      case FunctionComponent:
      case SimpleMemoComponent:
      case ClassComponent:
        candidateType = type;
        break;

      case ForwardRef:
        candidateType = type.render;
        break;
    }

    if (resolveFamily === null) {
      throw new Error('Expected resolveFamily to be set during hot reload.');
    }

    var needsRender = false;
    var needsRemount = false;

    if (candidateType !== null) {
      var family = resolveFamily(candidateType);

      if (family !== undefined) {
        if (staleFamilies.has(family)) {
          needsRemount = true;
        } else if (updatedFamilies.has(family)) {
          if (tag === ClassComponent) {
            needsRemount = true;
          } else {
            needsRender = true;
          }
        }
      }
    }

    if (failedBoundaries !== null) {
      if (failedBoundaries.has(fiber) || alternate !== null && failedBoundaries.has(alternate)) {
        needsRemount = true;
      }
    }

    if (needsRemount) {
      fiber._debugNeedsRemount = true;
    }

    if (needsRemount || needsRender) {
      scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp);
    }

    if (child !== null && !needsRemount) {
      scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies);
    }

    if (sibling !== null) {
      scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies);
    }
  }
}

var findHostInstancesForRefresh = function (root, families) {
  {
    var hostInstances = new Set();
    var types = new Set(families.map(function (family) {
      return family.current;
    }));
    findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances);
    return hostInstances;
  }
};

function findHostInstancesForMatchingFibersRecursively(fiber, types, hostInstances) {
  {
    var child = fiber.child,
        sibling = fiber.sibling,
        tag = fiber.tag,
        type = fiber.type;
    var candidateType = null;

    switch (tag) {
      case FunctionComponent:
      case SimpleMemoComponent:
      case ClassComponent:
        candidateType = type;
        break;

      case ForwardRef:
        candidateType = type.render;
        break;
    }

    var didMatch = false;

    if (candidateType !== null) {
      if (types.has(candidateType)) {
        didMatch = true;
      }
    }

    if (didMatch) {
      // We have a match. This only drills down to the closest host components.
      // There's no need to search deeper because for the purpose of giving
      // visual feedback, "flashing" outermost parent rectangles is sufficient.
      findHostInstancesForFiberShallowly(fiber, hostInstances);
    } else {
      // If there's no match, maybe there will be one further down in the child tree.
      if (child !== null) {
        findHostInstancesForMatchingFibersRecursively(child, types, hostInstances);
      }
    }

    if (sibling !== null) {
      findHostInstancesForMatchingFibersRecursively(sibling, types, hostInstances);
    }
  }
}

function findHostInstancesForFiberShallowly(fiber, hostInstances) {
  {
    var foundHostInstances = findChildHostInstancesForFiberShallowly(fiber, hostInstances);

    if (foundHostInstances) {
      return;
    } // If we didn't find any host children, fallback to closest host parent.


    var node = fiber;

    while (true) {
      switch (node.tag) {
        case HostComponent:
          hostInstances.add(node.stateNode);
          return;

        case HostPortal:
          hostInstances.add(node.stateNode.containerInfo);
          return;

        case HostRoot:
          hostInstances.add(node.stateNode.containerInfo);
          return;
      }

      if (node.return === null) {
        throw new Error('Expected to reach root first.');
      }

      node = node.return;
    }
  }
}

function findChildHostInstancesForFiberShallowly(fiber, hostInstances) {
  {
    var node = fiber;
    var foundHostInstances = false;

    while (true) {
      if (node.tag === HostComponent) {
        // We got a match.
        foundHostInstances = true;
        hostInstances.add(node.stateNode); // There may still be more, so keep searching.
      } else if (node.child !== null) {
        node.child.return = node;
        node = node.child;
        continue;
      }

      if (node === fiber) {
        return foundHostInstances;
      }

      while (node.sibling === null) {
        if (node.return === null || node.return === fiber) {
          return foundHostInstances;
        }

        node = node.return;
      }

      node.sibling.return = node.return;
      node = node.sibling;
    }
  }

  return false;
}

var hasBadMapPolyfill;

{
  hasBadMapPolyfill = false;

  try {
    var nonExtensibleObject = Object.preventExtensions({});
    /* eslint-disable no-new */

    new Map([[nonExtensibleObject, null]]);
    new Set([nonExtensibleObject]);
    /* eslint-enable no-new */
  } catch (e) {
    // TODO: Consider warning about bad polyfills
    hasBadMapPolyfill = true;
  }
}

var debugCounter = 1;

function FiberNode(tag, pendingProps, key, mode) {
  // Instance
  this.tag = tag;
  this.key = key;
  this.elementType = null;
  this.type = null;
  this.stateNode = null; // Fiber

  this.return = null;
  this.child = null;
  this.sibling = null;
  this.index = 0;
  this.ref = null;
  this.pendingProps = pendingProps;
  this.memoizedProps = null;
  this.updateQueue = null;
  this.memoizedState = null;
  this.dependencies = null;
  this.mode = mode; // Effects

  this.flags = NoFlags;
  this.nextEffect = null;
  this.firstEffect = null;
  this.lastEffect = null;
  this.lanes = NoLanes;
  this.childLanes = NoLanes;
  this.alternate = null;

  {
    // Note: The following is done to avoid a v8 performance cliff.
    //
    // Initializing the fields below to smis and later updating them with
    // double values will cause Fibers to end up having separate shapes.
    // This behavior/bug has something to do with Object.preventExtension().
    // Fortunately this only impacts DEV builds.
    // Unfortunately it makes React unusably slow for some applications.
    // To work around this, initialize the fields below with doubles.
    //
    // Learn more about this here:
    // https://github.com/facebook/react/issues/14365
    // https://bugs.chromium.org/p/v8/issues/detail?id=8538
    this.actualDuration = Number.NaN;
    this.actualStartTime = Number.NaN;
    this.selfBaseDuration = Number.NaN;
    this.treeBaseDuration = Number.NaN; // It's okay to replace the initial doubles with smis after initialization.
    // This won't trigger the performance cliff mentioned above,
    // and it simplifies other profiler code (including DevTools).

    this.actualDuration = 0;
    this.actualStartTime = -1;
    this.selfBaseDuration = 0;
    this.treeBaseDuration = 0;
  }

  {
    // This isn't directly used but is handy for debugging internals:
    this._debugID = debugCounter++;
    this._debugSource = null;
    this._debugOwner = null;
    this._debugNeedsRemount = false;
    this._debugHookTypes = null;

    if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') {
      Object.preventExtensions(this);
    }
  }
} // This is a constructor function, rather than a POJO constructor, still
// please ensure we do the following:
// 1) Nobody should add any instance methods on this. Instance methods can be
//    more difficult to predict when they get optimized and they are almost
//    never inlined properly in static compilers.
// 2) Nobody should rely on `instanceof Fiber` for type testing. We should
//    always know when it is a fiber.
// 3) We might want to experiment with using numeric keys since they are easier
//    to optimize in a non-JIT environment.
// 4) We can easily go from a constructor to a createFiber object literal if that
//    is faster.
// 5) It should be easy to port this to a C struct and keep a C implementation
//    compatible.


var createFiber = function (tag, pendingProps, key, mode) {
  // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors
  return new FiberNode(tag, pendingProps, key, mode);
};

function shouldConstruct$1(Component) {
  var prototype = Component.prototype;
  return !!(prototype && prototype.isReactComponent);
}

function isSimpleFunctionComponent(type) {
  return typeof type === 'function' && !shouldConstruct$1(type) && type.defaultProps === undefined;
}
function resolveLazyComponentTag(Component) {
  if (typeof Component === 'function') {
    return shouldConstruct$1(Component) ? ClassComponent : FunctionComponent;
  } else if (Component !== undefined && Component !== null) {
    var $$typeof = Component.$$typeof;

    if ($$typeof === REACT_FORWARD_REF_TYPE) {
      return ForwardRef;
    }

    if ($$typeof === REACT_MEMO_TYPE) {
      return MemoComponent;
    }
  }

  return IndeterminateComponent;
} // This is used to create an alternate fiber to do work on.

function createWorkInProgress(current, pendingProps) {
  var workInProgress = current.alternate;

  if (workInProgress === null) {
    // We use a double buffering pooling technique because we know that we'll
    // only ever need at most two versions of a tree. We pool the "other" unused
    // node that we're free to reuse. This is lazily created to avoid allocating
    // extra objects for things that are never updated. It also allow us to
    // reclaim the extra memory if needed.
    workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode);
    workInProgress.elementType = current.elementType;
    workInProgress.type = current.type;
    workInProgress.stateNode = current.stateNode;

    {
      // DEV-only fields
      workInProgress._debugID = current._debugID;
      workInProgress._debugSource = current._debugSource;
      workInProgress._debugOwner = current._debugOwner;
      workInProgress._debugHookTypes = current._debugHookTypes;
    }

    workInProgress.alternate = current;
    current.alternate = workInProgress;
  } else {
    workInProgress.pendingProps = pendingProps; // Needed because Blocks store data on type.

    workInProgress.type = current.type; // We already have an alternate.
    // Reset the effect tag.

    workInProgress.flags = NoFlags; // The effect list is no longer valid.

    workInProgress.nextEffect = null;
    workInProgress.firstEffect = null;
    workInProgress.lastEffect = null;

    {
      // We intentionally reset, rather than copy, actualDuration & actualStartTime.
      // This prevents time from endlessly accumulating in new commits.
      // This has the downside of resetting values for different priority renders,
      // But works for yielding (the common case) and should support resuming.
      workInProgress.actualDuration = 0;
      workInProgress.actualStartTime = -1;
    }
  }

  workInProgress.childLanes = current.childLanes;
  workInProgress.lanes = current.lanes;
  workInProgress.child = current.child;
  workInProgress.memoizedProps = current.memoizedProps;
  workInProgress.memoizedState = current.memoizedState;
  workInProgress.updateQueue = current.updateQueue; // Clone the dependencies object. This is mutated during the render phase, so
  // it cannot be shared with the current fiber.

  var currentDependencies = current.dependencies;
  workInProgress.dependencies = currentDependencies === null ? null : {
    lanes: currentDependencies.lanes,
    firstContext: currentDependencies.firstContext
  }; // These will be overridden during the parent's reconciliation

  workInProgress.sibling = current.sibling;
  workInProgress.index = current.index;
  workInProgress.ref = current.ref;

  {
    workInProgress.selfBaseDuration = current.selfBaseDuration;
    workInProgress.treeBaseDuration = current.treeBaseDuration;
  }

  {
    workInProgress._debugNeedsRemount = current._debugNeedsRemount;

    switch (workInProgress.tag) {
      case IndeterminateComponent:
      case FunctionComponent:
      case SimpleMemoComponent:
        workInProgress.type = resolveFunctionForHotReloading(current.type);
        break;

      case ClassComponent:
        workInProgress.type = resolveClassForHotReloading(current.type);
        break;

      case ForwardRef:
        workInProgress.type = resolveForwardRefForHotReloading(current.type);
        break;
    }
  }

  return workInProgress;
} // Used to reuse a Fiber for a second pass.

function resetWorkInProgress(workInProgress, renderLanes) {
  // This resets the Fiber to what createFiber or createWorkInProgress would
  // have set the values to before during the first pass. Ideally this wouldn't
  // be necessary but unfortunately many code paths reads from the workInProgress
  // when they should be reading from current and writing to workInProgress.
  // We assume pendingProps, index, key, ref, return are still untouched to
  // avoid doing another reconciliation.
  // Reset the effect tag but keep any Placement tags, since that's something
  // that child fiber is setting, not the reconciliation.
  workInProgress.flags &= Placement; // The effect list is no longer valid.

  workInProgress.nextEffect = null;
  workInProgress.firstEffect = null;
  workInProgress.lastEffect = null;
  var current = workInProgress.alternate;

  if (current === null) {
    // Reset to createFiber's initial values.
    workInProgress.childLanes = NoLanes;
    workInProgress.lanes = renderLanes;
    workInProgress.child = null;
    workInProgress.memoizedProps = null;
    workInProgress.memoizedState = null;
    workInProgress.updateQueue = null;
    workInProgress.dependencies = null;
    workInProgress.stateNode = null;

    {
      // Note: We don't reset the actualTime counts. It's useful to accumulate
      // actual time across multiple render passes.
      workInProgress.selfBaseDuration = 0;
      workInProgress.treeBaseDuration = 0;
    }
  } else {
    // Reset to the cloned values that createWorkInProgress would've.
    workInProgress.childLanes = current.childLanes;
    workInProgress.lanes = current.lanes;
    workInProgress.child = current.child;
    workInProgress.memoizedProps = current.memoizedProps;
    workInProgress.memoizedState = current.memoizedState;
    workInProgress.updateQueue = current.updateQueue; // Needed because Blocks store data on type.

    workInProgress.type = current.type; // Clone the dependencies object. This is mutated during the render phase, so
    // it cannot be shared with the current fiber.

    var currentDependencies = current.dependencies;
    workInProgress.dependencies = currentDependencies === null ? null : {
      lanes: currentDependencies.lanes,
      firstContext: currentDependencies.firstContext
    };

    {
      // Note: We don't reset the actualTime counts. It's useful to accumulate
      // actual time across multiple render passes.
      workInProgress.selfBaseDuration = current.selfBaseDuration;
      workInProgress.treeBaseDuration = current.treeBaseDuration;
    }
  }

  return workInProgress;
}
function createHostRootFiber(tag) {
  var mode;

  if (tag === ConcurrentRoot) {
    mode = ConcurrentMode | BlockingMode | StrictMode;
  } else if (tag === BlockingRoot) {
    mode = BlockingMode | StrictMode;
  } else {
    mode = NoMode;
  }

  if ( isDevToolsPresent) {
    // Always collect profile timings when DevTools are present.
    // This enables DevTools to start capturing timing at any point–
    // Without some nodes in the tree having empty base times.
    mode |= ProfileMode;
  }

  return createFiber(HostRoot, null, null, mode);
}
function createFiberFromTypeAndProps(type, // React$ElementType
key, pendingProps, owner, mode, lanes) {
  var fiberTag = IndeterminateComponent; // The resolved type is set if we know what the final type will be. I.e. it's not lazy.

  var resolvedType = type;

  if (typeof type === 'function') {
    if (shouldConstruct$1(type)) {
      fiberTag = ClassComponent;

      {
        resolvedType = resolveClassForHotReloading(resolvedType);
      }
    } else {
      {
        resolvedType = resolveFunctionForHotReloading(resolvedType);
      }
    }
  } else if (typeof type === 'string') {
    fiberTag = HostComponent;
  } else {
    getTag: switch (type) {
      case REACT_FRAGMENT_TYPE:
        return createFiberFromFragment(pendingProps.children, mode, lanes, key);

      case REACT_DEBUG_TRACING_MODE_TYPE:
        fiberTag = Mode;
        mode |= DebugTracingMode;
        break;

      case REACT_STRICT_MODE_TYPE:
        fiberTag = Mode;
        mode |= StrictMode;
        break;

      case REACT_PROFILER_TYPE:
        return createFiberFromProfiler(pendingProps, mode, lanes, key);

      case REACT_SUSPENSE_TYPE:
        return createFiberFromSuspense(pendingProps, mode, lanes, key);

      case REACT_SUSPENSE_LIST_TYPE:
        return createFiberFromSuspenseList(pendingProps, mode, lanes, key);

      case REACT_OFFSCREEN_TYPE:
        return createFiberFromOffscreen(pendingProps, mode, lanes, key);

      case REACT_LEGACY_HIDDEN_TYPE:
        return createFiberFromLegacyHidden(pendingProps, mode, lanes, key);

      case REACT_SCOPE_TYPE:

      // eslint-disable-next-line no-fallthrough

      default:
        {
          if (typeof type === 'object' && type !== null) {
            switch (type.$$typeof) {
              case REACT_PROVIDER_TYPE:
                fiberTag = ContextProvider;
                break getTag;

              case REACT_CONTEXT_TYPE:
                // This is a consumer
                fiberTag = ContextConsumer;
                break getTag;

              case REACT_FORWARD_REF_TYPE:
                fiberTag = ForwardRef;

                {
                  resolvedType = resolveForwardRefForHotReloading(resolvedType);
                }

                break getTag;

              case REACT_MEMO_TYPE:
                fiberTag = MemoComponent;
                break getTag;

              case REACT_LAZY_TYPE:
                fiberTag = LazyComponent;
                resolvedType = null;
                break getTag;

              case REACT_BLOCK_TYPE:
                fiberTag = Block;
                break getTag;
            }
          }

          var info = '';

          {
            if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
              info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and " + 'named imports.';
            }

            var ownerName = owner ? getComponentName(owner.type) : null;

            if (ownerName) {
              info += '\n\nCheck the render method of `' + ownerName + '`.';
            }
          }

          {
            {
              throw Error( "Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " + (type == null ? type : typeof type) + "." + info );
            }
          }
        }
    }
  }

  var fiber = createFiber(fiberTag, pendingProps, key, mode);
  fiber.elementType = type;
  fiber.type = resolvedType;
  fiber.lanes = lanes;

  {
    fiber._debugOwner = owner;
  }

  return fiber;
}
function createFiberFromElement(element, mode, lanes) {
  var owner = null;

  {
    owner = element._owner;
  }

  var type = element.type;
  var key = element.key;
  var pendingProps = element.props;
  var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes);

  {
    fiber._debugSource = element._source;
    fiber._debugOwner = element._owner;
  }

  return fiber;
}
function createFiberFromFragment(elements, mode, lanes, key) {
  var fiber = createFiber(Fragment, elements, key, mode);
  fiber.lanes = lanes;
  return fiber;
}

function createFiberFromProfiler(pendingProps, mode, lanes, key) {
  {
    if (typeof pendingProps.id !== 'string') {
      error('Profiler must specify an "id" as a prop');
    }
  }

  var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode); // TODO: The Profiler fiber shouldn't have a type. It has a tag.

  fiber.elementType = REACT_PROFILER_TYPE;
  fiber.type = REACT_PROFILER_TYPE;
  fiber.lanes = lanes;

  {
    fiber.stateNode = {
      effectDuration: 0,
      passiveEffectDuration: 0
    };
  }

  return fiber;
}

function createFiberFromSuspense(pendingProps, mode, lanes, key) {
  var fiber = createFiber(SuspenseComponent, pendingProps, key, mode); // TODO: The SuspenseComponent fiber shouldn't have a type. It has a tag.
  // This needs to be fixed in getComponentName so that it relies on the tag
  // instead.

  fiber.type = REACT_SUSPENSE_TYPE;
  fiber.elementType = REACT_SUSPENSE_TYPE;
  fiber.lanes = lanes;
  return fiber;
}
function createFiberFromSuspenseList(pendingProps, mode, lanes, key) {
  var fiber = createFiber(SuspenseListComponent, pendingProps, key, mode);

  {
    // TODO: The SuspenseListComponent fiber shouldn't have a type. It has a tag.
    // This needs to be fixed in getComponentName so that it relies on the tag
    // instead.
    fiber.type = REACT_SUSPENSE_LIST_TYPE;
  }

  fiber.elementType = REACT_SUSPENSE_LIST_TYPE;
  fiber.lanes = lanes;
  return fiber;
}
function createFiberFromOffscreen(pendingProps, mode, lanes, key) {
  var fiber = createFiber(OffscreenComponent, pendingProps, key, mode); // TODO: The OffscreenComponent fiber shouldn't have a type. It has a tag.
  // This needs to be fixed in getComponentName so that it relies on the tag
  // instead.

  {
    fiber.type = REACT_OFFSCREEN_TYPE;
  }

  fiber.elementType = REACT_OFFSCREEN_TYPE;
  fiber.lanes = lanes;
  return fiber;
}
function createFiberFromLegacyHidden(pendingProps, mode, lanes, key) {
  var fiber = createFiber(LegacyHiddenComponent, pendingProps, key, mode); // TODO: The LegacyHidden fiber shouldn't have a type. It has a tag.
  // This needs to be fixed in getComponentName so that it relies on the tag
  // instead.

  {
    fiber.type = REACT_LEGACY_HIDDEN_TYPE;
  }

  fiber.elementType = REACT_LEGACY_HIDDEN_TYPE;
  fiber.lanes = lanes;
  return fiber;
}
function createFiberFromText(content, mode, lanes) {
  var fiber = createFiber(HostText, content, null, mode);
  fiber.lanes = lanes;
  return fiber;
}
function createFiberFromHostInstanceForDeletion() {
  var fiber = createFiber(HostComponent, null, null, NoMode); // TODO: These should not need a type.

  fiber.elementType = 'DELETED';
  fiber.type = 'DELETED';
  return fiber;
}
function createFiberFromPortal(portal, mode, lanes) {
  var pendingProps = portal.children !== null ? portal.children : [];
  var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
  fiber.lanes = lanes;
  fiber.stateNode = {
    containerInfo: portal.containerInfo,
    pendingChildren: null,
    // Used by persistent updates
    implementation: portal.implementation
  };
  return fiber;
} // Used for stashing WIP properties to replay failed work in DEV.

function assignFiberPropertiesInDEV(target, source) {
  if (target === null) {
    // This Fiber's initial properties will always be overwritten.
    // We only use a Fiber to ensure the same hidden class so DEV isn't slow.
    target = createFiber(IndeterminateComponent, null, null, NoMode);
  } // This is intentionally written as a list of all properties.
  // We tried to use Object.assign() instead but this is called in
  // the hottest path, and Object.assign() was too slow:
  // https://github.com/facebook/react/issues/12502
  // This code is DEV-only so size is not a concern.


  target.tag = source.tag;
  target.key = source.key;
  target.elementType = source.elementType;
  target.type = source.type;
  target.stateNode = source.stateNode;
  target.return = source.return;
  target.child = source.child;
  target.sibling = source.sibling;
  target.index = source.index;
  target.ref = source.ref;
  target.pendingProps = source.pendingProps;
  target.memoizedProps = source.memoizedProps;
  target.updateQueue = source.updateQueue;
  target.memoizedState = source.memoizedState;
  target.dependencies = source.dependencies;
  target.mode = source.mode;
  target.flags = source.flags;
  target.nextEffect = source.nextEffect;
  target.firstEffect = source.firstEffect;
  target.lastEffect = source.lastEffect;
  target.lanes = source.lanes;
  target.childLanes = source.childLanes;
  target.alternate = source.alternate;

  {
    target.actualDuration = source.actualDuration;
    target.actualStartTime = source.actualStartTime;
    target.selfBaseDuration = source.selfBaseDuration;
    target.treeBaseDuration = source.treeBaseDuration;
  }

  target._debugID = source._debugID;
  target._debugSource = source._debugSource;
  target._debugOwner = source._debugOwner;
  target._debugNeedsRemount = source._debugNeedsRemount;
  target._debugHookTypes = source._debugHookTypes;
  return target;
}

function FiberRootNode(containerInfo, tag, hydrate) {
  this.tag = tag;
  this.containerInfo = containerInfo;
  this.pendingChildren = null;
  this.current = null;
  this.pingCache = null;
  this.finishedWork = null;
  this.timeoutHandle = noTimeout;
  this.context = null;
  this.pendingContext = null;
  this.hydrate = hydrate;
  this.callbackNode = null;
  this.callbackPriority = NoLanePriority;
  this.eventTimes = createLaneMap(NoLanes);
  this.expirationTimes = createLaneMap(NoTimestamp);
  this.pendingLanes = NoLanes;
  this.suspendedLanes = NoLanes;
  this.pingedLanes = NoLanes;
  this.expiredLanes = NoLanes;
  this.mutableReadLanes = NoLanes;
  this.finishedLanes = NoLanes;
  this.entangledLanes = NoLanes;
  this.entanglements = createLaneMap(NoLanes);

  {
    this.mutableSourceEagerHydrationData = null;
  }

  {
    this.interactionThreadID = tracing.unstable_getThreadID();
    this.memoizedInteractions = new Set();
    this.pendingInteractionMap = new Map();
  }

  {
    switch (tag) {
      case BlockingRoot:
        this._debugRootType = 'createBlockingRoot()';
        break;

      case ConcurrentRoot:
        this._debugRootType = 'createRoot()';
        break;

      case LegacyRoot:
        this._debugRootType = 'createLegacyRoot()';
        break;
    }
  }
}

function createFiberRoot(containerInfo, tag, hydrate, hydrationCallbacks) {
  var root = new FiberRootNode(containerInfo, tag, hydrate);
  // stateNode is any.


  var uninitializedFiber = createHostRootFiber(tag);
  root.current = uninitializedFiber;
  uninitializedFiber.stateNode = root;
  initializeUpdateQueue(uninitializedFiber);
  return root;
}

// This ensures that the version used for server rendering matches the one
// that is eventually read during hydration.
// If they don't match there's a potential tear and a full deopt render is required.

function registerMutableSourceForHydration(root, mutableSource) {
  var getVersion = mutableSource._getVersion;
  var version = getVersion(mutableSource._source); // TODO Clear this data once all pending hydration work is finished.
  // Retaining it forever may interfere with GC.

  if (root.mutableSourceEagerHydrationData == null) {
    root.mutableSourceEagerHydrationData = [mutableSource, version];
  } else {
    root.mutableSourceEagerHydrationData.push(mutableSource, version);
  }
}

function createPortal(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
implementation) {
  var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
  return {
    // This tag allow us to uniquely identify this as a React Portal
    $$typeof: REACT_PORTAL_TYPE,
    key: key == null ? null : '' + key,
    children: children,
    containerInfo: containerInfo,
    implementation: implementation
  };
}

var didWarnAboutNestedUpdates;
var didWarnAboutFindNodeInStrictMode;

{
  didWarnAboutNestedUpdates = false;
  didWarnAboutFindNodeInStrictMode = {};
}

function getContextForSubtree(parentComponent) {
  if (!parentComponent) {
    return emptyContextObject;
  }

  var fiber = get(parentComponent);
  var parentContext = findCurrentUnmaskedContext(fiber);

  if (fiber.tag === ClassComponent) {
    var Component = fiber.type;

    if (isContextProvider(Component)) {
      return processChildContext(fiber, Component, parentContext);
    }
  }

  return parentContext;
}

function findHostInstanceWithWarning(component, methodName) {
  {
    var fiber = get(component);

    if (fiber === undefined) {
      if (typeof component.render === 'function') {
        {
          {
            throw Error( "Unable to find node on an unmounted component." );
          }
        }
      } else {
        {
          {
            throw Error( "Argument appears to not be a ReactComponent. Keys: " + Object.keys(component) );
          }
        }
      }
    }

    var hostFiber = findCurrentHostFiber(fiber);

    if (hostFiber === null) {
      return null;
    }

    if (hostFiber.mode & StrictMode) {
      var componentName = getComponentName(fiber.type) || 'Component';

      if (!didWarnAboutFindNodeInStrictMode[componentName]) {
        didWarnAboutFindNodeInStrictMode[componentName] = true;
        var previousFiber = current;

        try {
          setCurrentFiber(hostFiber);

          if (fiber.mode & StrictMode) {
            error('%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which is inside StrictMode. ' + 'Instead, add a ref directly to the element you want to reference. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-find-node', methodName, methodName, componentName);
          } else {
            error('%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which renders StrictMode children. ' + 'Instead, add a ref directly to the element you want to reference. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-find-node', methodName, methodName, componentName);
          }
        } finally {
          // Ideally this should reset to previous but this shouldn't be called in
          // render and there's another warning for that anyway.
          if (previousFiber) {
            setCurrentFiber(previousFiber);
          } else {
            resetCurrentFiber();
          }
        }
      }
    }

    return hostFiber.stateNode;
  }
}

function createContainer(containerInfo, tag, hydrate, hydrationCallbacks) {
  return createFiberRoot(containerInfo, tag, hydrate);
}
function updateContainer(element, container, parentComponent, callback) {
  {
    onScheduleRoot(container, element);
  }

  var current$1 = container.current;
  var eventTime = requestEventTime();

  {
    // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
    if ('undefined' !== typeof jest) {
      warnIfUnmockedScheduler(current$1);
      warnIfNotScopedWithMatchingAct(current$1);
    }
  }

  var lane = requestUpdateLane(current$1);

  var context = getContextForSubtree(parentComponent);

  if (container.context === null) {
    container.context = context;
  } else {
    container.pendingContext = context;
  }

  {
    if (isRendering && current !== null && !didWarnAboutNestedUpdates) {
      didWarnAboutNestedUpdates = true;

      error('Render methods should be a pure function of props and state; ' + 'triggering nested component updates from render is not allowed. ' + 'If necessary, trigger nested updates in componentDidUpdate.\n\n' + 'Check the render method of %s.', getComponentName(current.type) || 'Unknown');
    }
  }

  var update = createUpdate(eventTime, lane); // Caution: React DevTools currently depends on this property
  // being called "element".

  update.payload = {
    element: element
  };
  callback = callback === undefined ? null : callback;

  if (callback !== null) {
    {
      if (typeof callback !== 'function') {
        error('render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback);
      }
    }

    update.callback = callback;
  }

  enqueueUpdate(current$1, update);
  scheduleUpdateOnFiber(current$1, lane, eventTime);
  return lane;
}
function getPublicRootInstance(container) {
  var containerFiber = container.current;

  if (!containerFiber.child) {
    return null;
  }

  switch (containerFiber.child.tag) {
    case HostComponent:
      return getPublicInstance(containerFiber.child.stateNode);

    default:
      return containerFiber.child.stateNode;
  }
}

function markRetryLaneImpl(fiber, retryLane) {
  var suspenseState = fiber.memoizedState;

  if (suspenseState !== null && suspenseState.dehydrated !== null) {
    suspenseState.retryLane = higherPriorityLane(suspenseState.retryLane, retryLane);
  }
} // Increases the priority of thennables when they resolve within this boundary.


function markRetryLaneIfNotHydrated(fiber, retryLane) {
  markRetryLaneImpl(fiber, retryLane);
  var alternate = fiber.alternate;

  if (alternate) {
    markRetryLaneImpl(alternate, retryLane);
  }
}

function attemptUserBlockingHydration$1(fiber) {
  if (fiber.tag !== SuspenseComponent) {
    // We ignore HostRoots here because we can't increase
    // their priority and they should not suspend on I/O,
    // since you have to wrap anything that might suspend in
    // Suspense.
    return;
  }

  var eventTime = requestEventTime();
  var lane = InputDiscreteHydrationLane;
  scheduleUpdateOnFiber(fiber, lane, eventTime);
  markRetryLaneIfNotHydrated(fiber, lane);
}
function attemptContinuousHydration$1(fiber) {
  if (fiber.tag !== SuspenseComponent) {
    // We ignore HostRoots here because we can't increase
    // their priority and they should not suspend on I/O,
    // since you have to wrap anything that might suspend in
    // Suspense.
    return;
  }

  var eventTime = requestEventTime();
  var lane = SelectiveHydrationLane;
  scheduleUpdateOnFiber(fiber, lane, eventTime);
  markRetryLaneIfNotHydrated(fiber, lane);
}
function attemptHydrationAtCurrentPriority$1(fiber) {
  if (fiber.tag !== SuspenseComponent) {
    // We ignore HostRoots here because we can't increase
    // their priority other than synchronously flush it.
    return;
  }

  var eventTime = requestEventTime();
  var lane = requestUpdateLane(fiber);
  scheduleUpdateOnFiber(fiber, lane, eventTime);
  markRetryLaneIfNotHydrated(fiber, lane);
}
function runWithPriority$2(priority, fn) {

  try {
    setCurrentUpdateLanePriority(priority);
    return fn();
  } finally {
  }
}
function findHostInstanceWithNoPortals(fiber) {
  var hostFiber = findCurrentHostFiberWithNoPortals(fiber);

  if (hostFiber === null) {
    return null;
  }

  if (hostFiber.tag === FundamentalComponent) {
    return hostFiber.stateNode.instance;
  }

  return hostFiber.stateNode;
}

var shouldSuspendImpl = function (fiber) {
  return false;
};

function shouldSuspend(fiber) {
  return shouldSuspendImpl(fiber);
}
var overrideHookState = null;
var overrideHookStateDeletePath = null;
var overrideHookStateRenamePath = null;
var overrideProps = null;
var overridePropsDeletePath = null;
var overridePropsRenamePath = null;
var scheduleUpdate = null;
var setSuspenseHandler = null;

{
  var copyWithDeleteImpl = function (obj, path, index) {
    var key = path[index];
    var updated = Array.isArray(obj) ? obj.slice() : _assign({}, obj);

    if (index + 1 === path.length) {
      if (Array.isArray(updated)) {
        updated.splice(key, 1);
      } else {
        delete updated[key];
      }

      return updated;
    } // $FlowFixMe number or string is fine here


    updated[key] = copyWithDeleteImpl(obj[key], path, index + 1);
    return updated;
  };

  var copyWithDelete = function (obj, path) {
    return copyWithDeleteImpl(obj, path, 0);
  };

  var copyWithRenameImpl = function (obj, oldPath, newPath, index) {
    var oldKey = oldPath[index];
    var updated = Array.isArray(obj) ? obj.slice() : _assign({}, obj);

    if (index + 1 === oldPath.length) {
      var newKey = newPath[index]; // $FlowFixMe number or string is fine here

      updated[newKey] = updated[oldKey];

      if (Array.isArray(updated)) {
        updated.splice(oldKey, 1);
      } else {
        delete updated[oldKey];
      }
    } else {
      // $FlowFixMe number or string is fine here
      updated[oldKey] = copyWithRenameImpl( // $FlowFixMe number or string is fine here
      obj[oldKey], oldPath, newPath, index + 1);
    }

    return updated;
  };

  var copyWithRename = function (obj, oldPath, newPath) {
    if (oldPath.length !== newPath.length) {
      warn('copyWithRename() expects paths of the same length');

      return;
    } else {
      for (var i = 0; i < newPath.length - 1; i++) {
        if (oldPath[i] !== newPath[i]) {
          warn('copyWithRename() expects paths to be the same except for the deepest key');

          return;
        }
      }
    }

    return copyWithRenameImpl(obj, oldPath, newPath, 0);
  };

  var copyWithSetImpl = function (obj, path, index, value) {
    if (index >= path.length) {
      return value;
    }

    var key = path[index];
    var updated = Array.isArray(obj) ? obj.slice() : _assign({}, obj); // $FlowFixMe number or string is fine here

    updated[key] = copyWithSetImpl(obj[key], path, index + 1, value);
    return updated;
  };

  var copyWithSet = function (obj, path, value) {
    return copyWithSetImpl(obj, path, 0, value);
  };

  var findHook = function (fiber, id) {
    // For now, the "id" of stateful hooks is just the stateful hook index.
    // This may change in the future with e.g. nested hooks.
    var currentHook = fiber.memoizedState;

    while (currentHook !== null && id > 0) {
      currentHook = currentHook.next;
      id--;
    }

    return currentHook;
  }; // Support DevTools editable values for useState and useReducer.


  overrideHookState = function (fiber, id, path, value) {
    var hook = findHook(fiber, id);

    if (hook !== null) {
      var newState = copyWithSet(hook.memoizedState, path, value);
      hook.memoizedState = newState;
      hook.baseState = newState; // We aren't actually adding an update to the queue,
      // because there is no update we can add for useReducer hooks that won't trigger an error.
      // (There's no appropriate action type for DevTools overrides.)
      // As a result though, React will see the scheduled update as a noop and bailout.
      // Shallow cloning props works as a workaround for now to bypass the bailout check.

      fiber.memoizedProps = _assign({}, fiber.memoizedProps);
      scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp);
    }
  };

  overrideHookStateDeletePath = function (fiber, id, path) {
    var hook = findHook(fiber, id);

    if (hook !== null) {
      var newState = copyWithDelete(hook.memoizedState, path);
      hook.memoizedState = newState;
      hook.baseState = newState; // We aren't actually adding an update to the queue,
      // because there is no update we can add for useReducer hooks that won't trigger an error.
      // (There's no appropriate action type for DevTools overrides.)
      // As a result though, React will see the scheduled update as a noop and bailout.
      // Shallow cloning props works as a workaround for now to bypass the bailout check.

      fiber.memoizedProps = _assign({}, fiber.memoizedProps);
      scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp);
    }
  };

  overrideHookStateRenamePath = function (fiber, id, oldPath, newPath) {
    var hook = findHook(fiber, id);

    if (hook !== null) {
      var newState = copyWithRename(hook.memoizedState, oldPath, newPath);
      hook.memoizedState = newState;
      hook.baseState = newState; // We aren't actually adding an update to the queue,
      // because there is no update we can add for useReducer hooks that won't trigger an error.
      // (There's no appropriate action type for DevTools overrides.)
      // As a result though, React will see the scheduled update as a noop and bailout.
      // Shallow cloning props works as a workaround for now to bypass the bailout check.

      fiber.memoizedProps = _assign({}, fiber.memoizedProps);
      scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp);
    }
  }; // Support DevTools props for function components, forwardRef, memo, host components, etc.


  overrideProps = function (fiber, path, value) {
    fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value);

    if (fiber.alternate) {
      fiber.alternate.pendingProps = fiber.pendingProps;
    }

    scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp);
  };

  overridePropsDeletePath = function (fiber, path) {
    fiber.pendingProps = copyWithDelete(fiber.memoizedProps, path);

    if (fiber.alternate) {
      fiber.alternate.pendingProps = fiber.pendingProps;
    }

    scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp);
  };

  overridePropsRenamePath = function (fiber, oldPath, newPath) {
    fiber.pendingProps = copyWithRename(fiber.memoizedProps, oldPath, newPath);

    if (fiber.alternate) {
      fiber.alternate.pendingProps = fiber.pendingProps;
    }

    scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp);
  };

  scheduleUpdate = function (fiber) {
    scheduleUpdateOnFiber(fiber, SyncLane, NoTimestamp);
  };

  setSuspenseHandler = function (newShouldSuspendImpl) {
    shouldSuspendImpl = newShouldSuspendImpl;
  };
}

function findHostInstanceByFiber(fiber) {
  var hostFiber = findCurrentHostFiber(fiber);

  if (hostFiber === null) {
    return null;
  }

  return hostFiber.stateNode;
}

function emptyFindFiberByHostInstance(instance) {
  return null;
}

function getCurrentFiberForDevTools() {
  return current;
}

function injectIntoDevTools(devToolsConfig) {
  var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;
  var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
  return injectInternals({
    bundleType: devToolsConfig.bundleType,
    version: devToolsConfig.version,
    rendererPackageName: devToolsConfig.rendererPackageName,
    rendererConfig: devToolsConfig.rendererConfig,
    overrideHookState: overrideHookState,
    overrideHookStateDeletePath: overrideHookStateDeletePath,
    overrideHookStateRenamePath: overrideHookStateRenamePath,
    overrideProps: overrideProps,
    overridePropsDeletePath: overridePropsDeletePath,
    overridePropsRenamePath: overridePropsRenamePath,
    setSuspenseHandler: setSuspenseHandler,
    scheduleUpdate: scheduleUpdate,
    currentDispatcherRef: ReactCurrentDispatcher,
    findHostInstanceByFiber: findHostInstanceByFiber,
    findFiberByHostInstance: findFiberByHostInstance || emptyFindFiberByHostInstance,
    // React Refresh
    findHostInstancesForRefresh:  findHostInstancesForRefresh ,
    scheduleRefresh:  scheduleRefresh ,
    scheduleRoot:  scheduleRoot ,
    setRefreshHandler:  setRefreshHandler ,
    // Enables DevTools to append owner stacks to error messages in DEV mode.
    getCurrentFiber:  getCurrentFiberForDevTools 
  });
}

function ReactDOMRoot(container, options) {
  this._internalRoot = createRootImpl(container, ConcurrentRoot, options);
}

function ReactDOMBlockingRoot(container, tag, options) {
  this._internalRoot = createRootImpl(container, tag, options);
}

ReactDOMRoot.prototype.render = ReactDOMBlockingRoot.prototype.render = function (children) {
  var root = this._internalRoot;

  {
    if (typeof arguments[1] === 'function') {
      error('render(...): does not support the second callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().');
    }

    var container = root.containerInfo;

    if (container.nodeType !== COMMENT_NODE) {
      var hostInstance = findHostInstanceWithNoPortals(root.current);

      if (hostInstance) {
        if (hostInstance.parentNode !== container) {
          error('render(...): It looks like the React-rendered content of the ' + 'root container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + "root.unmount() to empty a root's container.");
        }
      }
    }
  }

  updateContainer(children, root, null, null);
};

ReactDOMRoot.prototype.unmount = ReactDOMBlockingRoot.prototype.unmount = function () {
  {
    if (typeof arguments[0] === 'function') {
      error('unmount(...): does not support a callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().');
    }
  }

  var root = this._internalRoot;
  var container = root.containerInfo;
  updateContainer(null, root, null, function () {
    unmarkContainerAsRoot(container);
  });
};

function createRootImpl(container, tag, options) {
  // Tag is either LegacyRoot or Concurrent Root
  var hydrate = options != null && options.hydrate === true;
  var hydrationCallbacks = options != null && options.hydrationOptions || null;
  var mutableSources = options != null && options.hydrationOptions != null && options.hydrationOptions.mutableSources || null;
  var root = createContainer(container, tag, hydrate);
  markContainerAsRoot(root.current, container);
  var containerNodeType = container.nodeType;

  {
    var rootContainerElement = container.nodeType === COMMENT_NODE ? container.parentNode : container;
    listenToAllSupportedEvents(rootContainerElement);
  }

  if (mutableSources) {
    for (var i = 0; i < mutableSources.length; i++) {
      var mutableSource = mutableSources[i];
      registerMutableSourceForHydration(root, mutableSource);
    }
  }

  return root;
}
function createLegacyRoot(container, options) {
  return new ReactDOMBlockingRoot(container, LegacyRoot, options);
}
function isValidContainer(node) {
  return !!(node && (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE || node.nodeType === COMMENT_NODE && node.nodeValue === ' react-mount-point-unstable '));
}

var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;
var topLevelUpdateWarnings;
var warnedAboutHydrateAPI = false;

{
  topLevelUpdateWarnings = function (container) {
    if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) {
      var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer._internalRoot.current);

      if (hostInstance) {
        if (hostInstance.parentNode !== container) {
          error('render(...): It looks like the React-rendered content of this ' + 'container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + 'ReactDOM.unmountComponentAtNode to empty a container.');
        }
      }
    }

    var isRootRenderedBySomeReact = !!container._reactRootContainer;
    var rootEl = getReactRootElementInContainer(container);
    var hasNonRootReactChild = !!(rootEl && getInstanceFromNode(rootEl));

    if (hasNonRootReactChild && !isRootRenderedBySomeReact) {
      error('render(...): Replacing React-rendered children with a new root ' + 'component. If you intended to update the children of this node, ' + 'you should instead have the existing children update their state ' + 'and render the new components instead of calling ReactDOM.render.');
    }

    if (container.nodeType === ELEMENT_NODE && container.tagName && container.tagName.toUpperCase() === 'BODY') {
      error('render(): Rendering components directly into document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try rendering into a container element created ' + 'for your app.');
    }
  };
}

function getReactRootElementInContainer(container) {
  if (!container) {
    return null;
  }

  if (container.nodeType === DOCUMENT_NODE) {
    return container.documentElement;
  } else {
    return container.firstChild;
  }
}

function shouldHydrateDueToLegacyHeuristic(container) {
  var rootElement = getReactRootElementInContainer(container);
  return !!(rootElement && rootElement.nodeType === ELEMENT_NODE && rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME));
}

function legacyCreateRootFromDOMContainer(container, forceHydrate) {
  var shouldHydrate = forceHydrate || shouldHydrateDueToLegacyHeuristic(container); // First clear any existing content.

  if (!shouldHydrate) {
    var warned = false;
    var rootSibling;

    while (rootSibling = container.lastChild) {
      {
        if (!warned && rootSibling.nodeType === ELEMENT_NODE && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME)) {
          warned = true;

          error('render(): Target node has markup rendered by React, but there ' + 'are unrelated nodes as well. This is most commonly caused by ' + 'white-space inserted around server-rendered markup.');
        }
      }

      container.removeChild(rootSibling);
    }
  }

  {
    if (shouldHydrate && !forceHydrate && !warnedAboutHydrateAPI) {
      warnedAboutHydrateAPI = true;

      warn('render(): Calling ReactDOM.render() to hydrate server-rendered markup ' + 'will stop working in React v18. Replace the ReactDOM.render() call ' + 'with ReactDOM.hydrate() if you want React to attach to the server HTML.');
    }
  }

  return createLegacyRoot(container, shouldHydrate ? {
    hydrate: true
  } : undefined);
}

function warnOnInvalidCallback$1(callback, callerName) {
  {
    if (callback !== null && typeof callback !== 'function') {
      error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
    }
  }
}

function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {
  {
    topLevelUpdateWarnings(container);
    warnOnInvalidCallback$1(callback === undefined ? null : callback, 'render');
  } // TODO: Without `any` type, Flow says "Property cannot be accessed on any
  // member of intersection type." Whyyyyyy.


  var root = container._reactRootContainer;
  var fiberRoot;

  if (!root) {
    // Initial mount
    root = container._reactRootContainer = legacyCreateRootFromDOMContainer(container, forceHydrate);
    fiberRoot = root._internalRoot;

    if (typeof callback === 'function') {
      var originalCallback = callback;

      callback = function () {
        var instance = getPublicRootInstance(fiberRoot);
        originalCallback.call(instance);
      };
    } // Initial mount should not be batched.


    unbatchedUpdates(function () {
      updateContainer(children, fiberRoot, parentComponent, callback);
    });
  } else {
    fiberRoot = root._internalRoot;

    if (typeof callback === 'function') {
      var _originalCallback = callback;

      callback = function () {
        var instance = getPublicRootInstance(fiberRoot);

        _originalCallback.call(instance);
      };
    } // Update


    updateContainer(children, fiberRoot, parentComponent, callback);
  }

  return getPublicRootInstance(fiberRoot);
}

function findDOMNode(componentOrElement) {
  {
    var owner = ReactCurrentOwner$3.current;

    if (owner !== null && owner.stateNode !== null) {
      var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender;

      if (!warnedAboutRefsInRender) {
        error('%s is accessing findDOMNode inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(owner.type) || 'A component');
      }

      owner.stateNode._warnedAboutRefsInRender = true;
    }
  }

  if (componentOrElement == null) {
    return null;
  }

  if (componentOrElement.nodeType === ELEMENT_NODE) {
    return componentOrElement;
  }

  {
    return findHostInstanceWithWarning(componentOrElement, 'findDOMNode');
  }
}
function hydrate(element, container, callback) {
  if (!isValidContainer(container)) {
    {
      throw Error( "Target container is not a DOM element." );
    }
  }

  {
    var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;

    if (isModernRoot) {
      error('You are calling ReactDOM.hydrate() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. ' + 'Did you mean to call createRoot(container, {hydrate: true}).render(element)?');
    }
  } // TODO: throw or warn if we couldn't hydrate?


  return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);
}
function render(element, container, callback) {
  if (!isValidContainer(container)) {
    {
      throw Error( "Target container is not a DOM element." );
    }
  }

  {
    var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;

    if (isModernRoot) {
      error('You are calling ReactDOM.render() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. ' + 'Did you mean to call root.render(element)?');
    }
  }

  return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);
}
function unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {
  if (!isValidContainer(containerNode)) {
    {
      throw Error( "Target container is not a DOM element." );
    }
  }

  if (!(parentComponent != null && has(parentComponent))) {
    {
      throw Error( "parentComponent must be a valid React Component" );
    }
  }

  return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback);
}
function unmountComponentAtNode(container) {
  if (!isValidContainer(container)) {
    {
      throw Error( "unmountComponentAtNode(...): Target container is not a DOM element." );
    }
  }

  {
    var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;

    if (isModernRoot) {
      error('You are calling ReactDOM.unmountComponentAtNode() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. Did you mean to call root.unmount()?');
    }
  }

  if (container._reactRootContainer) {
    {
      var rootEl = getReactRootElementInContainer(container);
      var renderedByDifferentReact = rootEl && !getInstanceFromNode(rootEl);

      if (renderedByDifferentReact) {
        error("unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by another copy of React.');
      }
    } // Unmount should not be batched.


    unbatchedUpdates(function () {
      legacyRenderSubtreeIntoContainer(null, null, container, false, function () {
        // $FlowFixMe This should probably use `delete container._reactRootContainer`
        container._reactRootContainer = null;
        unmarkContainerAsRoot(container);
      });
    }); // If you call unmountComponentAtNode twice in quick succession, you'll
    // get `true` twice. That's probably fine?

    return true;
  } else {
    {
      var _rootEl = getReactRootElementInContainer(container);

      var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode(_rootEl)); // Check if the container itself is a React root node.

      var isContainerReactRoot = container.nodeType === ELEMENT_NODE && isValidContainer(container.parentNode) && !!container.parentNode._reactRootContainer;

      if (hasNonRootReactChild) {
        error("unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by React and is not a top-level container. %s', isContainerReactRoot ? 'You may have accidentally passed in a React root node instead ' + 'of its container.' : 'Instead, have the parent component update its state and ' + 'rerender in order to remove this component.');
      }
    }

    return false;
  }
}

setAttemptUserBlockingHydration(attemptUserBlockingHydration$1);
setAttemptContinuousHydration(attemptContinuousHydration$1);
setAttemptHydrationAtCurrentPriority(attemptHydrationAtCurrentPriority$1);
setAttemptHydrationAtPriority(runWithPriority$2);
var didWarnAboutUnstableCreatePortal = false;

{
  if (typeof Map !== 'function' || // $FlowIssue Flow incorrectly thinks Map has no prototype
  Map.prototype == null || typeof Map.prototype.forEach !== 'function' || typeof Set !== 'function' || // $FlowIssue Flow incorrectly thinks Set has no prototype
  Set.prototype == null || typeof Set.prototype.clear !== 'function' || typeof Set.prototype.forEach !== 'function') {
    error('React depends on Map and Set built-in types. Make sure that you load a ' + 'polyfill in older browsers. https://reactjs.org/link/react-polyfills');
  }
}

setRestoreImplementation(restoreControlledState$3);
setBatchingImplementation(batchedUpdates$1, discreteUpdates$1, flushDiscreteUpdates, batchedEventUpdates$1);

function createPortal$1(children, container) {
  var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;

  if (!isValidContainer(container)) {
    {
      throw Error( "Target container is not a DOM element." );
    }
  } // TODO: pass ReactDOM portal implementation as third argument
  // $FlowFixMe The Flow type is opaque but there's no way to actually create it.


  return createPortal(children, container, null, key);
}

function renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {

  return unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback);
}

function unstable_createPortal(children, container) {
  var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;

  {
    if (!didWarnAboutUnstableCreatePortal) {
      didWarnAboutUnstableCreatePortal = true;

      warn('The ReactDOM.unstable_createPortal() alias has been deprecated, ' + 'and will be removed in React 18+. Update your code to use ' + 'ReactDOM.createPortal() instead. It has the exact same API, ' + 'but without the "unstable_" prefix.');
    }
  }

  return createPortal$1(children, container, key);
}

var Internals = {
  // Keep in sync with ReactTestUtils.js, and ReactTestUtilsAct.js.
  // This is an array for better minification.
  Events: [getInstanceFromNode, getNodeFromInstance, getFiberCurrentPropsFromNode, enqueueStateRestore, restoreStateIfNeeded, flushPassiveEffects, // TODO: This is related to `act`, not events. Move to separate key?
  IsThisRendererActing]
};
var foundDevTools = injectIntoDevTools({
  findFiberByHostInstance: getClosestInstanceFromNode,
  bundleType:  1 ,
  version: ReactVersion,
  rendererPackageName: 'react-dom'
});

{
  if (!foundDevTools && canUseDOM && window.top === window.self) {
    // If we're in Chrome or Firefox, provide a download link if not installed.
    if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {
      var protocol = window.location.protocol; // Don't warn in exotic cases like chrome-extension://.

      if (/^(https?|file):$/.test(protocol)) {
        // eslint-disable-next-line react-internal/no-production-logging
        console.info('%cDownload the React DevTools ' + 'for a better development experience: ' + 'https://reactjs.org/link/react-devtools' + (protocol === 'file:' ? '\nYou might need to use a local HTTP server (instead of file://): ' + 'https://reactjs.org/link/react-devtools-faq' : ''), 'font-weight:bold');
      }
    }
  }
}

exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
exports.createPortal = createPortal$1;
exports.findDOMNode = findDOMNode;
exports.flushSync = flushSync;
exports.hydrate = hydrate;
exports.render = render;
exports.unmountComponentAtNode = unmountComponentAtNode;
exports.unstable_batchedUpdates = batchedUpdates$1;
exports.unstable_createPortal = unstable_createPortal;
exports.unstable_renderSubtreeIntoContainer = renderSubtreeIntoContainer;
exports.version = ReactVersion;
  })();
}


/***/ }),

/***/ "./node_modules/react-dom/index.js":
/*!*****************************************!*\
  !*** ./node_modules/react-dom/index.js ***!
  \*****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


function checkDCE() {
  /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
  if (
    typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
    typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
  ) {
    return;
  }
  if (true) {
    // This branch is unreachable because this function is only called
    // in production, but the condition is true only in development.
    // Therefore if the branch is still here, dead code elimination wasn't
    // properly applied.
    // Don't change the message. React DevTools relies on it. Also make sure
    // this message doesn't occur elsewhere in this function, or it will cause
    // a false positive.
    throw new Error('^_^');
  }
  try {
    // Verify that the code above has been dead code eliminated (DCE'd).
    __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
  } catch (err) {
    // DevTools shouldn't crash React, no matter what.
    // We should still report in case we break this code.
    console.error(err);
  }
}

if (false) {} else {
  module.exports = __webpack_require__(/*! ./cjs/react-dom.development.js */ "./node_modules/react-dom/cjs/react-dom.development.js");
}


/***/ }),

/***/ "./node_modules/react-dropzone/dist/es/index.js":
/*!******************************************************!*\
  !*** ./node_modules/react-dropzone/dist/es/index.js ***!
  \******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var file_selector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! file-selector */ "./node_modules/file-selector/dist/es5/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./node_modules/react-dropzone/dist/es/utils/index.js");
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

/* eslint prefer-template: 0 */






var Dropzone = function (_React$Component) {
  _inherits(Dropzone, _React$Component);

  function Dropzone() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, Dropzone);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Dropzone.__proto__ || Object.getPrototypeOf(Dropzone)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
      draggedFiles: [],
      acceptedFiles: [],
      rejectedFiles: []
    }, _this.isFileDialogActive = false, _this.onDocumentDrop = function (evt) {
      if (_this.node && _this.node.contains(evt.target)) {
        // if we intercepted an event for our instance, let it propagate down to the instance's onDrop handler
        return;
      }
      evt.preventDefault();
      _this.dragTargets = [];
    }, _this.onDragStart = function (evt) {
      evt.persist();
      if (_this.props.onDragStart && (0,_utils__WEBPACK_IMPORTED_MODULE_2__.isDragDataWithFiles)(evt)) {
        _this.props.onDragStart.call(_this, evt);
      }
    }, _this.onDragEnter = function (evt) {
      evt.preventDefault();

      // Count the dropzone and any children that are entered.
      if (_this.dragTargets.indexOf(evt.target) === -1) {
        _this.dragTargets.push(evt.target);
      }

      evt.persist();

      if ((0,_utils__WEBPACK_IMPORTED_MODULE_2__.isDragDataWithFiles)(evt)) {
        Promise.resolve(_this.props.getDataTransferItems(evt)).then(function (draggedFiles) {
          if ((0,_utils__WEBPACK_IMPORTED_MODULE_2__.isPropagationStopped)(evt)) {
            return;
          }

          _this.setState({
            draggedFiles: draggedFiles,
            // Do not rely on files for the drag state. It doesn't work in Safari.
            isDragActive: true
          });
        });

        if (_this.props.onDragEnter) {
          _this.props.onDragEnter.call(_this, evt);
        }
      }
    }, _this.onDragOver = function (evt) {
      // eslint-disable-line class-methods-use-this
      evt.preventDefault();
      evt.persist();

      if (evt.dataTransfer) {
        evt.dataTransfer.dropEffect = 'copy';
      }

      if (_this.props.onDragOver && (0,_utils__WEBPACK_IMPORTED_MODULE_2__.isDragDataWithFiles)(evt)) {
        _this.props.onDragOver.call(_this, evt);
      }

      return false;
    }, _this.onDragLeave = function (evt) {
      evt.preventDefault();
      evt.persist();

      // Only deactivate once the dropzone and all children have been left.
      _this.dragTargets = _this.dragTargets.filter(function (el) {
        return el !== evt.target && _this.node.contains(el);
      });
      if (_this.dragTargets.length > 0) {
        return;
      }

      // Clear dragging files state
      _this.setState({
        isDragActive: false,
        draggedFiles: []
      });

      if (_this.props.onDragLeave && (0,_utils__WEBPACK_IMPORTED_MODULE_2__.isDragDataWithFiles)(evt)) {
        _this.props.onDragLeave.call(_this, evt);
      }
    }, _this.onDrop = function (evt) {
      var _this$props = _this.props,
          onDrop = _this$props.onDrop,
          onDropAccepted = _this$props.onDropAccepted,
          onDropRejected = _this$props.onDropRejected,
          multiple = _this$props.multiple,
          accept = _this$props.accept,
          getDataTransferItems = _this$props.getDataTransferItems;

      // Stop default browser behavior

      evt.preventDefault();

      // Persist event for later usage
      evt.persist();

      // Reset the counter along with the drag on a drop.
      _this.dragTargets = [];
      _this.isFileDialogActive = false;

      // Clear files value
      _this.draggedFiles = null;

      // Reset drag state
      _this.setState({
        isDragActive: false,
        draggedFiles: []
      });

      if ((0,_utils__WEBPACK_IMPORTED_MODULE_2__.isDragDataWithFiles)(evt)) {
        Promise.resolve(getDataTransferItems(evt)).then(function (fileList) {
          var acceptedFiles = [];
          var rejectedFiles = [];

          if ((0,_utils__WEBPACK_IMPORTED_MODULE_2__.isPropagationStopped)(evt)) {
            return;
          }

          fileList.forEach(function (file) {
            if ((0,_utils__WEBPACK_IMPORTED_MODULE_2__.fileAccepted)(file, accept) && (0,_utils__WEBPACK_IMPORTED_MODULE_2__.fileMatchSize)(file, _this.props.maxSize, _this.props.minSize)) {
              acceptedFiles.push(file);
            } else {
              rejectedFiles.push(file);
            }
          });

          if (!multiple && acceptedFiles.length > 1) {
            // if not in multi mode add any extra accepted files to rejected.
            // This will allow end users to easily ignore a multi file drop in "single" mode.
            rejectedFiles.push.apply(rejectedFiles, _toConsumableArray(acceptedFiles.splice(0)));
          }

          // Update `acceptedFiles` and `rejectedFiles` state
          // This will make children render functions receive the appropriate
          // values
          _this.setState({ acceptedFiles: acceptedFiles, rejectedFiles: rejectedFiles }, function () {
            if (onDrop) {
              onDrop.call(_this, acceptedFiles, rejectedFiles, evt);
            }

            if (rejectedFiles.length > 0 && onDropRejected) {
              onDropRejected.call(_this, rejectedFiles, evt);
            }

            if (acceptedFiles.length > 0 && onDropAccepted) {
              onDropAccepted.call(_this, acceptedFiles, evt);
            }
          });
        });
      }
    }, _this.onClick = function (evt) {
      var onClick = _this.props.onClick;

      // if onClick prop is given, run it first

      if (onClick) {
        onClick.call(_this, evt);
      }

      // If the event hasn't been default prevented from within
      // the onClick listener, open the file dialog
      if (!(0,_utils__WEBPACK_IMPORTED_MODULE_2__.isDefaultPrevented)(evt)) {
        evt.stopPropagation();

        // in IE11/Edge the file-browser dialog is blocking, ensure this is behind setTimeout
        // this is so react can handle state changes in the onClick prop above above
        // see: https://github.com/react-dropzone/react-dropzone/issues/450
        if ((0,_utils__WEBPACK_IMPORTED_MODULE_2__.isIeOrEdge)()) {
          setTimeout(_this.open, 0);
        } else {
          _this.open();
        }
      }
    }, _this.onInputElementClick = function (evt) {
      evt.stopPropagation();
    }, _this.onFileDialogCancel = function () {
      // timeout will not recognize context of this method
      var onFileDialogCancel = _this.props.onFileDialogCancel;
      // execute the timeout only if the FileDialog is opened in the browser

      if (_this.isFileDialogActive) {
        setTimeout(function () {
          if (_this.input != null) {
            // Returns an object as FileList
            var files = _this.input.files;


            if (!files.length) {
              _this.isFileDialogActive = false;

              if (typeof onFileDialogCancel === 'function') {
                onFileDialogCancel();
              }
            }
          }
        }, 300);
      }
    }, _this.onFocus = function (evt) {
      var onFocus = _this.props.onFocus;

      if (onFocus) {
        onFocus.call(_this, evt);
      }
      if (!(0,_utils__WEBPACK_IMPORTED_MODULE_2__.isDefaultPrevented)(evt)) {
        _this.setState({ isFocused: true });
      }
    }, _this.onBlur = function (evt) {
      var onBlur = _this.props.onBlur;

      if (onBlur) {
        onBlur.call(_this, evt);
      }
      if (!(0,_utils__WEBPACK_IMPORTED_MODULE_2__.isDefaultPrevented)(evt)) {
        _this.setState({ isFocused: false });
      }
    }, _this.onKeyDown = function (evt) {
      var onKeyDown = _this.props.onKeyDown;

      if (!_this.node.isEqualNode(evt.target)) {
        return;
      }

      if (onKeyDown) {
        onKeyDown.call(_this, evt);
      }

      if (!(0,_utils__WEBPACK_IMPORTED_MODULE_2__.isDefaultPrevented)(evt) && (evt.keyCode === 32 || evt.keyCode === 13)) {
        evt.preventDefault();
        _this.open();
      }
    }, _this.composeHandler = function (handler) {
      if (_this.props.disabled) {
        return null;
      }
      return handler;
    }, _this.getRootProps = function () {
      var _extends2;

      var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

      var _ref2$refKey = _ref2.refKey,
          refKey = _ref2$refKey === undefined ? 'ref' : _ref2$refKey,
          onKeyDown = _ref2.onKeyDown,
          onFocus = _ref2.onFocus,
          onBlur = _ref2.onBlur,
          onClick = _ref2.onClick,
          onDragStart = _ref2.onDragStart,
          onDragEnter = _ref2.onDragEnter,
          onDragOver = _ref2.onDragOver,
          onDragLeave = _ref2.onDragLeave,
          onDrop = _ref2.onDrop,
          rest = _objectWithoutProperties(_ref2, ['refKey', 'onKeyDown', 'onFocus', 'onBlur', 'onClick', 'onDragStart', 'onDragEnter', 'onDragOver', 'onDragLeave', 'onDrop']);

      return _extends((_extends2 = {
        onKeyDown: _this.composeHandler(onKeyDown ? (0,_utils__WEBPACK_IMPORTED_MODULE_2__.composeEventHandlers)(onKeyDown, _this.onKeyDown) : _this.onKeyDown),
        onFocus: _this.composeHandler(onFocus ? (0,_utils__WEBPACK_IMPORTED_MODULE_2__.composeEventHandlers)(onFocus, _this.onFocus) : _this.onFocus),
        onBlur: _this.composeHandler(onBlur ? (0,_utils__WEBPACK_IMPORTED_MODULE_2__.composeEventHandlers)(onBlur, _this.onBlur) : _this.onBlur),
        onClick: _this.composeHandler(onClick ? (0,_utils__WEBPACK_IMPORTED_MODULE_2__.composeEventHandlers)(onClick, _this.onClick) : _this.onClick),
        onDragStart: _this.composeHandler(onDragStart ? (0,_utils__WEBPACK_IMPORTED_MODULE_2__.composeEventHandlers)(onDragStart, _this.onDragStart) : _this.onDragStart),
        onDragEnter: _this.composeHandler(onDragEnter ? (0,_utils__WEBPACK_IMPORTED_MODULE_2__.composeEventHandlers)(onDragEnter, _this.onDragEnter) : _this.onDragEnter),
        onDragOver: _this.composeHandler(onDragOver ? (0,_utils__WEBPACK_IMPORTED_MODULE_2__.composeEventHandlers)(onDragOver, _this.onDragOver) : _this.onDragOver),
        onDragLeave: _this.composeHandler(onDragLeave ? (0,_utils__WEBPACK_IMPORTED_MODULE_2__.composeEventHandlers)(onDragLeave, _this.onDragLeave) : _this.onDragLeave),
        onDrop: _this.composeHandler(onDrop ? (0,_utils__WEBPACK_IMPORTED_MODULE_2__.composeEventHandlers)(onDrop, _this.onDrop) : _this.onDrop)
      }, _defineProperty(_extends2, refKey, _this.setNodeRef), _defineProperty(_extends2, 'tabIndex', _this.props.disabled ? -1 : 0), _extends2), rest);
    }, _this.getInputProps = function () {
      var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

      var _ref3$refKey = _ref3.refKey,
          refKey = _ref3$refKey === undefined ? 'ref' : _ref3$refKey,
          onChange = _ref3.onChange,
          onClick = _ref3.onClick,
          rest = _objectWithoutProperties(_ref3, ['refKey', 'onChange', 'onClick']);

      var _this$props2 = _this.props,
          accept = _this$props2.accept,
          multiple = _this$props2.multiple,
          name = _this$props2.name;

      var inputProps = _defineProperty({
        accept: accept,
        type: 'file',
        style: { display: 'none' },
        multiple: _utils__WEBPACK_IMPORTED_MODULE_2__.supportMultiple && multiple,
        onChange: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.composeEventHandlers)(onChange, _this.onDrop),
        onClick: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.composeEventHandlers)(onClick, _this.onInputElementClick),
        autoComplete: 'off',
        tabIndex: -1
      }, refKey, _this.setInputRef);
      if (name && name.length) {
        inputProps.name = name;
      }
      return _extends({}, inputProps, rest);
    }, _this.setNodeRef = function (node) {
      _this.node = node;
    }, _this.setInputRef = function (input) {
      _this.input = input;
    }, _this.open = function () {
      _this.isFileDialogActive = true;
      if (_this.input) {
        _this.input.value = null;
        _this.input.click();
      }
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(Dropzone, [{
    key: 'componentDidMount',
    value: function componentDidMount() {
      var preventDropOnDocument = this.props.preventDropOnDocument;

      this.dragTargets = [];

      if (preventDropOnDocument) {
        document.addEventListener('dragover', _utils__WEBPACK_IMPORTED_MODULE_2__.onDocumentDragOver, false);
        document.addEventListener('drop', this.onDocumentDrop, false);
      }

      window.addEventListener('focus', this.onFileDialogCancel, false);
    }
  }, {
    key: 'componentWillUnmount',
    value: function componentWillUnmount() {
      var preventDropOnDocument = this.props.preventDropOnDocument;

      if (preventDropOnDocument) {
        document.removeEventListener('dragover', _utils__WEBPACK_IMPORTED_MODULE_2__.onDocumentDragOver);
        document.removeEventListener('drop', this.onDocumentDrop);
      }

      window.removeEventListener('focus', this.onFileDialogCancel, false);
    }

    /**
     * Open system file upload dialog.
     *
     * @public
     */

  }, {
    key: 'render',
    value: function render() {
      var _props = this.props,
          children = _props.children,
          multiple = _props.multiple,
          disabled = _props.disabled;
      var _state = this.state,
          isDragActive = _state.isDragActive,
          isFocused = _state.isFocused,
          draggedFiles = _state.draggedFiles,
          acceptedFiles = _state.acceptedFiles,
          rejectedFiles = _state.rejectedFiles;


      var filesCount = draggedFiles.length;
      var isMultipleAllowed = multiple || filesCount <= 1;
      var isDragAccept = filesCount > 0 && (0,_utils__WEBPACK_IMPORTED_MODULE_2__.allFilesAccepted)(draggedFiles, this.props.accept);
      var isDragReject = filesCount > 0 && (!isDragAccept || !isMultipleAllowed);

      return children({
        isDragActive: isDragActive,
        isDragAccept: isDragAccept,
        isDragReject: isDragReject,
        draggedFiles: draggedFiles,
        acceptedFiles: acceptedFiles,
        rejectedFiles: rejectedFiles,
        isFocused: isFocused && !disabled,
        getRootProps: this.getRootProps,
        getInputProps: this.getInputProps,
        open: this.open
      });
    }
  }]);

  return Dropzone;
}(react__WEBPACK_IMPORTED_MODULE_0__.Component);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Dropzone);

Dropzone.propTypes = {
  /**
   * Allow specific types of files. See https://github.com/okonet/attr-accept for more information.
   * Keep in mind that mime type determination is not reliable across platforms. CSV files,
   * for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
   * Windows. In some cases there might not be a mime type set at all.
   * See: https://github.com/react-dropzone/react-dropzone/issues/276
   */
  accept: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_3___default().string), prop_types__WEBPACK_IMPORTED_MODULE_3___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_3___default().string))]),

  /**
   * Render function that renders the actual component
   *
   * @param {Object} props
   * @param {Function} props.getRootProps Returns the props you should apply to the root drop container you render
   * @param {Function} props.getInputProps Returns the props you should apply to hidden file input you render
   * @param {Function} props.open Open the native file selection dialog
   * @param {Boolean} props.isFocused Dropzone area is in focus
   * @param {Boolean} props.isDragActive Active drag is in progress
   * @param {Boolean} props.isDragAccept Dragged files are accepted
   * @param {Boolean} props.isDragReject Some dragged files are rejected
   * @param {Array} props.draggedFiles Files in active drag
   * @param {Array} props.acceptedFiles Accepted files
   * @param {Array} props.rejectedFiles Rejected files
   */
  children: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func),

  /**
   * Enable/disable the dropzone entirely
   */
  disabled: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool),

  /**
   * If false, allow dropped items to take over the current browser window
   */
  preventDropOnDocument: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool),

  /**
   * Allow dropping multiple files
   */
  multiple: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool),

  /**
   * `name` attribute for the input tag
   */
  name: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string),

  /**
   * Maximum file size (in bytes)
   */
  maxSize: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().number),

  /**
   * Minimum file size (in bytes)
   */
  minSize: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().number),

  /**
   * getDataTransferItems handler
   * @param {Event} event
   * @returns {Array} array of File objects
   */
  getDataTransferItems: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func),

  /**
   * onClick callback
   * @param {Event} event
   */
  onClick: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func),

  /**
   * onFocus callback
   */
  onFocus: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func),

  /**
   * onBlur callback
   */
  onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func),

  /**
   * onKeyDown callback
   */
  onKeyDown: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func),

  /**
   * The `onDrop` method that accepts two arguments.
   * The first argument represents the accepted files and the second argument the rejected files.
   *
   * ```javascript
   * function onDrop(acceptedFiles, rejectedFiles) {
   *   // do stuff with files...
   * }
   * ```
   *
   * Files are accepted or rejected based on the `accept` prop.
   * This must be a valid [MIME type](http://www.iana.org/assignments/media-types/media-types.xhtml) according to [input element specification](https://www.w3.org/wiki/HTML/Elements/input/file) or a valid file extension.
   *
   * Note that the `onDrop` callback will always be called regardless if the dropped files were accepted or rejected.
   * You can use the `onDropAccepted`/`onDropRejected` props if you'd like to react to a specific event instead of the `onDrop` prop.
   *
   * The `onDrop` callback will provide you with an array of [Files](https://developer.mozilla.org/en-US/docs/Web/API/File) which you can then process and send to a server.
   * For example, with [SuperAgent](https://github.com/visionmedia/superagent) as a http/ajax library:
   *
   * ```javascript
   * function onDrop(acceptedFiles) {
   *   const req = request.post('/upload')
   *   acceptedFiles.forEach(file => {
   *     req.attach(file.name, file)
   *   })
   *   req.end(callback)
   * }
   * ```
   */
  onDrop: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func),

  /**
   * onDropAccepted callback
   */
  onDropAccepted: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func),

  /**
   * onDropRejected callback
   */
  onDropRejected: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func),

  /**
   * onDragStart callback
   */
  onDragStart: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func),

  /**
   * onDragEnter callback
   */
  onDragEnter: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func),

  /**
   * onDragOver callback
   */
  onDragOver: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func),

  /**
   * onDragLeave callback
   */
  onDragLeave: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func),

  /**
   * Provide a callback on clicking the cancel button of the file dialog
   */
  onFileDialogCancel: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func)
};

Dropzone.defaultProps = {
  preventDropOnDocument: true,
  disabled: false,
  multiple: true,
  maxSize: Infinity,
  minSize: 0,
  getDataTransferItems: file_selector__WEBPACK_IMPORTED_MODULE_1__.fromEvent
};

/***/ }),

/***/ "./node_modules/react-dropzone/dist/es/utils/index.js":
/*!************************************************************!*\
  !*** ./node_modules/react-dropzone/dist/es/utils/index.js ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "supportMultiple": () => (/* binding */ supportMultiple),
/* harmony export */   "fileAccepted": () => (/* binding */ fileAccepted),
/* harmony export */   "fileMatchSize": () => (/* binding */ fileMatchSize),
/* harmony export */   "allFilesAccepted": () => (/* binding */ allFilesAccepted),
/* harmony export */   "isPropagationStopped": () => (/* binding */ isPropagationStopped),
/* harmony export */   "isDefaultPrevented": () => (/* binding */ isDefaultPrevented),
/* harmony export */   "isDragDataWithFiles": () => (/* binding */ isDragDataWithFiles),
/* harmony export */   "isKindFile": () => (/* binding */ isKindFile),
/* harmony export */   "onDocumentDragOver": () => (/* binding */ onDocumentDragOver),
/* harmony export */   "isIeOrEdge": () => (/* binding */ isIeOrEdge),
/* harmony export */   "composeEventHandlers": () => (/* binding */ composeEventHandlers)
/* harmony export */ });
/* harmony import */ var attr_accept__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! attr-accept */ "./node_modules/attr-accept/dist/index.js");
/* harmony import */ var attr_accept__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(attr_accept__WEBPACK_IMPORTED_MODULE_0__);
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };



var supportMultiple = typeof document !== 'undefined' && document && document.createElement ? 'multiple' in document.createElement('input') : true;

// Firefox versions prior to 53 return a bogus MIME type for every file drag, so dragovers with
// that MIME type will always be accepted
function fileAccepted(file, accept) {
  return file.type === 'application/x-moz-file' || attr_accept__WEBPACK_IMPORTED_MODULE_0___default()(file, accept);
}

function fileMatchSize(file, maxSize, minSize) {
  return file.size <= maxSize && file.size >= minSize;
}

function allFilesAccepted(files, accept) {
  return files.every(function (file) {
    return fileAccepted(file, accept);
  });
}

// React's synthetic events has evt.isPropagationStopped,
// but to remain compatibility with other libs (Preact) fall back
// to check evt.cancelBubble
function isPropagationStopped(evt) {
  if (typeof evt.isPropagationStopped === 'function') {
    return evt.isPropagationStopped();
  } else if (typeof evt.cancelBubble !== 'undefined') {
    return evt.cancelBubble;
  }
  return false;
}

// React's synthetic events has evt.isDefaultPrevented,
// but to remain compatibility with other libs (Preact) first
// check evt.defaultPrevented
function isDefaultPrevented(evt) {
  if (typeof evt.defaultPrevented !== 'undefined') {
    return evt.defaultPrevented;
  } else if (typeof evt.isDefaultPrevented === 'function') {
    return evt.isDefaultPrevented();
  }
  return false;
}

function isDragDataWithFiles(evt) {
  if (!evt.dataTransfer) {
    return true;
  }
  // https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/types
  // https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API/Recommended_drag_types#file
  return Array.prototype.some.call(evt.dataTransfer.types, function (type) {
    return type === 'Files' || type === 'application/x-moz-file';
  });
}

function isKindFile(item) {
  return (typeof item === 'undefined' ? 'undefined' : _typeof(item)) === 'object' && item !== null && item.kind === 'file';
}

// allow the entire document to be a drag target
function onDocumentDragOver(evt) {
  evt.preventDefault();
}

function isIe(userAgent) {
  return userAgent.indexOf('MSIE') !== -1 || userAgent.indexOf('Trident/') !== -1;
}

function isEdge(userAgent) {
  return userAgent.indexOf('Edge/') !== -1;
}

function isIeOrEdge() {
  var userAgent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window.navigator.userAgent;

  return isIe(userAgent) || isEdge(userAgent);
}

/**
 * This is intended to be used to compose event handlers
 * They are executed in order until one of them calls `event.preventDefault()`.
 * Not sure this is the best way to do this, but it seems legit.
 * @param {Function} fns the event hanlder functions
 * @return {Function} the event handler to add to an element
 */
function composeEventHandlers() {
  for (var _len = arguments.length, fns = Array(_len), _key = 0; _key < _len; _key++) {
    fns[_key] = arguments[_key];
  }

  return function (event) {
    for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
      args[_key2 - 1] = arguments[_key2];
    }

    return fns.some(function (fn) {
      fn && fn.apply(undefined, [event].concat(args));
      return event.defaultPrevented;
    });
  };
}

/***/ }),

/***/ "./node_modules/react-fast-compare/index.js":
/*!**************************************************!*\
  !*** ./node_modules/react-fast-compare/index.js ***!
  \**************************************************/
/***/ ((module) => {

"use strict";


var isArray = Array.isArray;
var keyList = Object.keys;
var hasProp = Object.prototype.hasOwnProperty;
var hasElementType = typeof Element !== 'undefined';

function equal(a, b) {
  // fast-deep-equal index.js 2.0.1
  if (a === b) return true;

  if (a && b && typeof a == 'object' && typeof b == 'object') {
    var arrA = isArray(a)
      , arrB = isArray(b)
      , i
      , length
      , key;

    if (arrA && arrB) {
      length = a.length;
      if (length != b.length) return false;
      for (i = length; i-- !== 0;)
        if (!equal(a[i], b[i])) return false;
      return true;
    }

    if (arrA != arrB) return false;

    var dateA = a instanceof Date
      , dateB = b instanceof Date;
    if (dateA != dateB) return false;
    if (dateA && dateB) return a.getTime() == b.getTime();

    var regexpA = a instanceof RegExp
      , regexpB = b instanceof RegExp;
    if (regexpA != regexpB) return false;
    if (regexpA && regexpB) return a.toString() == b.toString();

    var keys = keyList(a);
    length = keys.length;

    if (length !== keyList(b).length)
      return false;

    for (i = length; i-- !== 0;)
      if (!hasProp.call(b, keys[i])) return false;
    // end fast-deep-equal

    // start react-fast-compare
    // custom handling for DOM elements
    if (hasElementType && a instanceof Element && b instanceof Element)
      return a === b;

    // custom handling for React
    for (i = length; i-- !== 0;) {
      key = keys[i];
      if (key === '_owner' && a.$$typeof) {
        // React-specific: avoid traversing React elements' _owner.
        //  _owner contains circular references
        // and is not needed when comparing the actual elements (and not their owners)
        // .$$typeof and ._store on just reasonable markers of a react element
        continue;
      } else {
        // all other properties should be traversed as usual
        if (!equal(a[key], b[key])) return false;
      }
    }
    // end react-fast-compare

    // fast-deep-equal index.js 2.0.1
    return true;
  }

  return a !== a && b !== b;
}
// end fast-deep-equal

module.exports = function exportedEqual(a, b) {
  try {
    return equal(a, b);
  } catch (error) {
    if ((error.message && error.message.match(/stack|recursion/i)) || (error.number === -2146828260)) {
      // warn on circular references, don't crash
      // browsers give this different errors name and messages:
      // chrome/safari: "RangeError", "Maximum call stack size exceeded"
      // firefox: "InternalError", too much recursion"
      // edge: "Error", "Out of stack space"
      console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);
      return false;
    }
    // some other error. we should definitely know about these
    throw error;
  }
};


/***/ }),

/***/ "./node_modules/react-is/cjs/react-is.development.js":
/*!***********************************************************!*\
  !*** ./node_modules/react-is/cjs/react-is.development.js ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, exports) => {

"use strict";
/** @license React v16.13.1
 * react-is.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */





if (true) {
  (function() {
'use strict';

// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
// nor polyfill, then a plain number is used for performance.
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
// (unstable) APIs that have been removed. Can we remove the symbols?

var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;

function isValidElementType(type) {
  return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
  type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
}

function typeOf(object) {
  if (typeof object === 'object' && object !== null) {
    var $$typeof = object.$$typeof;

    switch ($$typeof) {
      case REACT_ELEMENT_TYPE:
        var type = object.type;

        switch (type) {
          case REACT_ASYNC_MODE_TYPE:
          case REACT_CONCURRENT_MODE_TYPE:
          case REACT_FRAGMENT_TYPE:
          case REACT_PROFILER_TYPE:
          case REACT_STRICT_MODE_TYPE:
          case REACT_SUSPENSE_TYPE:
            return type;

          default:
            var $$typeofType = type && type.$$typeof;

            switch ($$typeofType) {
              case REACT_CONTEXT_TYPE:
              case REACT_FORWARD_REF_TYPE:
              case REACT_LAZY_TYPE:
              case REACT_MEMO_TYPE:
              case REACT_PROVIDER_TYPE:
                return $$typeofType;

              default:
                return $$typeof;
            }

        }

      case REACT_PORTAL_TYPE:
        return $$typeof;
    }
  }

  return undefined;
} // AsyncMode is deprecated along with isAsyncMode

var AsyncMode = REACT_ASYNC_MODE_TYPE;
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
var ContextConsumer = REACT_CONTEXT_TYPE;
var ContextProvider = REACT_PROVIDER_TYPE;
var Element = REACT_ELEMENT_TYPE;
var ForwardRef = REACT_FORWARD_REF_TYPE;
var Fragment = REACT_FRAGMENT_TYPE;
var Lazy = REACT_LAZY_TYPE;
var Memo = REACT_MEMO_TYPE;
var Portal = REACT_PORTAL_TYPE;
var Profiler = REACT_PROFILER_TYPE;
var StrictMode = REACT_STRICT_MODE_TYPE;
var Suspense = REACT_SUSPENSE_TYPE;
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated

function isAsyncMode(object) {
  {
    if (!hasWarnedAboutDeprecatedIsAsyncMode) {
      hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint

      console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
    }
  }

  return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
}
function isConcurrentMode(object) {
  return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
}
function isContextConsumer(object) {
  return typeOf(object) === REACT_CONTEXT_TYPE;
}
function isContextProvider(object) {
  return typeOf(object) === REACT_PROVIDER_TYPE;
}
function isElement(object) {
  return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
}
function isForwardRef(object) {
  return typeOf(object) === REACT_FORWARD_REF_TYPE;
}
function isFragment(object) {
  return typeOf(object) === REACT_FRAGMENT_TYPE;
}
function isLazy(object) {
  return typeOf(object) === REACT_LAZY_TYPE;
}
function isMemo(object) {
  return typeOf(object) === REACT_MEMO_TYPE;
}
function isPortal(object) {
  return typeOf(object) === REACT_PORTAL_TYPE;
}
function isProfiler(object) {
  return typeOf(object) === REACT_PROFILER_TYPE;
}
function isStrictMode(object) {
  return typeOf(object) === REACT_STRICT_MODE_TYPE;
}
function isSuspense(object) {
  return typeOf(object) === REACT_SUSPENSE_TYPE;
}

exports.AsyncMode = AsyncMode;
exports.ConcurrentMode = ConcurrentMode;
exports.ContextConsumer = ContextConsumer;
exports.ContextProvider = ContextProvider;
exports.Element = Element;
exports.ForwardRef = ForwardRef;
exports.Fragment = Fragment;
exports.Lazy = Lazy;
exports.Memo = Memo;
exports.Portal = Portal;
exports.Profiler = Profiler;
exports.StrictMode = StrictMode;
exports.Suspense = Suspense;
exports.isAsyncMode = isAsyncMode;
exports.isConcurrentMode = isConcurrentMode;
exports.isContextConsumer = isContextConsumer;
exports.isContextProvider = isContextProvider;
exports.isElement = isElement;
exports.isForwardRef = isForwardRef;
exports.isFragment = isFragment;
exports.isLazy = isLazy;
exports.isMemo = isMemo;
exports.isPortal = isPortal;
exports.isProfiler = isProfiler;
exports.isStrictMode = isStrictMode;
exports.isSuspense = isSuspense;
exports.isValidElementType = isValidElementType;
exports.typeOf = typeOf;
  })();
}


/***/ }),

/***/ "./node_modules/react-is/index.js":
/*!****************************************!*\
  !*** ./node_modules/react-is/index.js ***!
  \****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


if (false) {} else {
  module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/react-is/cjs/react-is.development.js");
}


/***/ }),

/***/ "./node_modules/react/cjs/react.development.js":
/*!*****************************************************!*\
  !*** ./node_modules/react/cjs/react.development.js ***!
  \*****************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

"use strict";
/** @license React v17.0.2
 * react.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */



if (true) {
  (function() {
'use strict';

var _assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");

// TODO: this is special because it gets imported during build.
var ReactVersion = '17.0.2';

// ATTENTION
// When adding new symbols to this file,
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
// nor polyfill, then a plain number is used for performance.
var REACT_ELEMENT_TYPE = 0xeac7;
var REACT_PORTAL_TYPE = 0xeaca;
exports.Fragment = 0xeacb;
exports.StrictMode = 0xeacc;
exports.Profiler = 0xead2;
var REACT_PROVIDER_TYPE = 0xeacd;
var REACT_CONTEXT_TYPE = 0xeace;
var REACT_FORWARD_REF_TYPE = 0xead0;
exports.Suspense = 0xead1;
var REACT_SUSPENSE_LIST_TYPE = 0xead8;
var REACT_MEMO_TYPE = 0xead3;
var REACT_LAZY_TYPE = 0xead4;
var REACT_BLOCK_TYPE = 0xead9;
var REACT_SERVER_BLOCK_TYPE = 0xeada;
var REACT_FUNDAMENTAL_TYPE = 0xead5;
var REACT_SCOPE_TYPE = 0xead7;
var REACT_OPAQUE_ID_TYPE = 0xeae0;
var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
var REACT_OFFSCREEN_TYPE = 0xeae2;
var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;

if (typeof Symbol === 'function' && Symbol.for) {
  var symbolFor = Symbol.for;
  REACT_ELEMENT_TYPE = symbolFor('react.element');
  REACT_PORTAL_TYPE = symbolFor('react.portal');
  exports.Fragment = symbolFor('react.fragment');
  exports.StrictMode = symbolFor('react.strict_mode');
  exports.Profiler = symbolFor('react.profiler');
  REACT_PROVIDER_TYPE = symbolFor('react.provider');
  REACT_CONTEXT_TYPE = symbolFor('react.context');
  REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
  exports.Suspense = symbolFor('react.suspense');
  REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
  REACT_MEMO_TYPE = symbolFor('react.memo');
  REACT_LAZY_TYPE = symbolFor('react.lazy');
  REACT_BLOCK_TYPE = symbolFor('react.block');
  REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
  REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
  REACT_SCOPE_TYPE = symbolFor('react.scope');
  REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id');
  REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
  REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen');
  REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
}

var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
var FAUX_ITERATOR_SYMBOL = '@@iterator';
function getIteratorFn(maybeIterable) {
  if (maybeIterable === null || typeof maybeIterable !== 'object') {
    return null;
  }

  var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];

  if (typeof maybeIterator === 'function') {
    return maybeIterator;
  }

  return null;
}

/**
 * Keeps track of the current dispatcher.
 */
var ReactCurrentDispatcher = {
  /**
   * @internal
   * @type {ReactComponent}
   */
  current: null
};

/**
 * Keeps track of the current batch's configuration such as how long an update
 * should suspend for if it needs to.
 */
var ReactCurrentBatchConfig = {
  transition: 0
};

/**
 * Keeps track of the current owner.
 *
 * The current owner is the component who should own any components that are
 * currently being constructed.
 */
var ReactCurrentOwner = {
  /**
   * @internal
   * @type {ReactComponent}
   */
  current: null
};

var ReactDebugCurrentFrame = {};
var currentExtraStackFrame = null;
function setExtraStackFrame(stack) {
  {
    currentExtraStackFrame = stack;
  }
}

{
  ReactDebugCurrentFrame.setExtraStackFrame = function (stack) {
    {
      currentExtraStackFrame = stack;
    }
  }; // Stack implementation injected by the current renderer.


  ReactDebugCurrentFrame.getCurrentStack = null;

  ReactDebugCurrentFrame.getStackAddendum = function () {
    var stack = ''; // Add an extra top frame while an element is being validated

    if (currentExtraStackFrame) {
      stack += currentExtraStackFrame;
    } // Delegate to the injected renderer-specific implementation


    var impl = ReactDebugCurrentFrame.getCurrentStack;

    if (impl) {
      stack += impl() || '';
    }

    return stack;
  };
}

/**
 * Used by act() to track whether you're inside an act() scope.
 */
var IsSomeRendererActing = {
  current: false
};

var ReactSharedInternals = {
  ReactCurrentDispatcher: ReactCurrentDispatcher,
  ReactCurrentBatchConfig: ReactCurrentBatchConfig,
  ReactCurrentOwner: ReactCurrentOwner,
  IsSomeRendererActing: IsSomeRendererActing,
  // Used by renderers to avoid bundling object-assign twice in UMD bundles:
  assign: _assign
};

{
  ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
}

// by calls to these methods by a Babel plugin.
//
// In PROD (or in packages without access to React internals),
// they are left as they are instead.

function warn(format) {
  {
    for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
      args[_key - 1] = arguments[_key];
    }

    printWarning('warn', format, args);
  }
}
function error(format) {
  {
    for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
      args[_key2 - 1] = arguments[_key2];
    }

    printWarning('error', format, args);
  }
}

function printWarning(level, format, args) {
  // When changing this logic, you might want to also
  // update consoleWithStackDev.www.js as well.
  {
    var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
    var stack = ReactDebugCurrentFrame.getStackAddendum();

    if (stack !== '') {
      format += '%s';
      args = args.concat([stack]);
    }

    var argsWithFormat = args.map(function (item) {
      return '' + item;
    }); // Careful: RN currently depends on this prefix

    argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
    // breaks IE9: https://github.com/facebook/react/issues/13610
    // eslint-disable-next-line react-internal/no-production-logging

    Function.prototype.apply.call(console[level], console, argsWithFormat);
  }
}

var didWarnStateUpdateForUnmountedComponent = {};

function warnNoop(publicInstance, callerName) {
  {
    var _constructor = publicInstance.constructor;
    var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
    var warningKey = componentName + "." + callerName;

    if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
      return;
    }

    error("Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);

    didWarnStateUpdateForUnmountedComponent[warningKey] = true;
  }
}
/**
 * This is the abstract API for an update queue.
 */


var ReactNoopUpdateQueue = {
  /**
   * Checks whether or not this composite component is mounted.
   * @param {ReactClass} publicInstance The instance we want to test.
   * @return {boolean} True if mounted, false otherwise.
   * @protected
   * @final
   */
  isMounted: function (publicInstance) {
    return false;
  },

  /**
   * Forces an update. This should only be invoked when it is known with
   * certainty that we are **not** in a DOM transaction.
   *
   * You may want to call this when you know that some deeper aspect of the
   * component's state has changed but `setState` was not called.
   *
   * This will not invoke `shouldComponentUpdate`, but it will invoke
   * `componentWillUpdate` and `componentDidUpdate`.
   *
   * @param {ReactClass} publicInstance The instance that should rerender.
   * @param {?function} callback Called after component is updated.
   * @param {?string} callerName name of the calling function in the public API.
   * @internal
   */
  enqueueForceUpdate: function (publicInstance, callback, callerName) {
    warnNoop(publicInstance, 'forceUpdate');
  },

  /**
   * Replaces all of the state. Always use this or `setState` to mutate state.
   * You should treat `this.state` as immutable.
   *
   * There is no guarantee that `this.state` will be immediately updated, so
   * accessing `this.state` after calling this method may return the old value.
   *
   * @param {ReactClass} publicInstance The instance that should rerender.
   * @param {object} completeState Next state.
   * @param {?function} callback Called after component is updated.
   * @param {?string} callerName name of the calling function in the public API.
   * @internal
   */
  enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
    warnNoop(publicInstance, 'replaceState');
  },

  /**
   * Sets a subset of the state. This only exists because _pendingState is
   * internal. This provides a merging strategy that is not available to deep
   * properties which is confusing. TODO: Expose pendingState or don't use it
   * during the merge.
   *
   * @param {ReactClass} publicInstance The instance that should rerender.
   * @param {object} partialState Next partial state to be merged with state.
   * @param {?function} callback Called after component is updated.
   * @param {?string} Name of the calling function in the public API.
   * @internal
   */
  enqueueSetState: function (publicInstance, partialState, callback, callerName) {
    warnNoop(publicInstance, 'setState');
  }
};

var emptyObject = {};

{
  Object.freeze(emptyObject);
}
/**
 * Base class helpers for the updating state of a component.
 */


function Component(props, context, updater) {
  this.props = props;
  this.context = context; // If a component has string refs, we will assign a different object later.

  this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
  // renderer.

  this.updater = updater || ReactNoopUpdateQueue;
}

Component.prototype.isReactComponent = {};
/**
 * Sets a subset of the state. Always use this to mutate
 * state. You should treat `this.state` as immutable.
 *
 * There is no guarantee that `this.state` will be immediately updated, so
 * accessing `this.state` after calling this method may return the old value.
 *
 * There is no guarantee that calls to `setState` will run synchronously,
 * as they may eventually be batched together.  You can provide an optional
 * callback that will be executed when the call to setState is actually
 * completed.
 *
 * When a function is provided to setState, it will be called at some point in
 * the future (not synchronously). It will be called with the up to date
 * component arguments (state, props, context). These values can be different
 * from this.* because your function may be called after receiveProps but before
 * shouldComponentUpdate, and this new state, props, and context will not yet be
 * assigned to this.
 *
 * @param {object|function} partialState Next partial state or function to
 *        produce next partial state to be merged with current state.
 * @param {?function} callback Called after state is updated.
 * @final
 * @protected
 */

Component.prototype.setState = function (partialState, callback) {
  if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
    {
      throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." );
    }
  }

  this.updater.enqueueSetState(this, partialState, callback, 'setState');
};
/**
 * Forces an update. This should only be invoked when it is known with
 * certainty that we are **not** in a DOM transaction.
 *
 * You may want to call this when you know that some deeper aspect of the
 * component's state has changed but `setState` was not called.
 *
 * This will not invoke `shouldComponentUpdate`, but it will invoke
 * `componentWillUpdate` and `componentDidUpdate`.
 *
 * @param {?function} callback Called after update is complete.
 * @final
 * @protected
 */


Component.prototype.forceUpdate = function (callback) {
  this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
};
/**
 * Deprecated APIs. These APIs used to exist on classic React classes but since
 * we would like to deprecate them, we're not going to move them over to this
 * modern base class. Instead, we define a getter that warns if it's accessed.
 */


{
  var deprecatedAPIs = {
    isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
    replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
  };

  var defineDeprecationWarning = function (methodName, info) {
    Object.defineProperty(Component.prototype, methodName, {
      get: function () {
        warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);

        return undefined;
      }
    });
  };

  for (var fnName in deprecatedAPIs) {
    if (deprecatedAPIs.hasOwnProperty(fnName)) {
      defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
    }
  }
}

function ComponentDummy() {}

ComponentDummy.prototype = Component.prototype;
/**
 * Convenience component with default shallow equality check for sCU.
 */

function PureComponent(props, context, updater) {
  this.props = props;
  this.context = context; // If a component has string refs, we will assign a different object later.

  this.refs = emptyObject;
  this.updater = updater || ReactNoopUpdateQueue;
}

var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.

_assign(pureComponentPrototype, Component.prototype);

pureComponentPrototype.isPureReactComponent = true;

// an immutable object with a single mutable value
function createRef() {
  var refObject = {
    current: null
  };

  {
    Object.seal(refObject);
  }

  return refObject;
}

function getWrappedName(outerType, innerType, wrapperName) {
  var functionName = innerType.displayName || innerType.name || '';
  return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
}

function getContextName(type) {
  return type.displayName || 'Context';
}

function getComponentName(type) {
  if (type == null) {
    // Host root, text node or just invalid type.
    return null;
  }

  {
    if (typeof type.tag === 'number') {
      error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
    }
  }

  if (typeof type === 'function') {
    return type.displayName || type.name || null;
  }

  if (typeof type === 'string') {
    return type;
  }

  switch (type) {
    case exports.Fragment:
      return 'Fragment';

    case REACT_PORTAL_TYPE:
      return 'Portal';

    case exports.Profiler:
      return 'Profiler';

    case exports.StrictMode:
      return 'StrictMode';

    case exports.Suspense:
      return 'Suspense';

    case REACT_SUSPENSE_LIST_TYPE:
      return 'SuspenseList';
  }

  if (typeof type === 'object') {
    switch (type.$$typeof) {
      case REACT_CONTEXT_TYPE:
        var context = type;
        return getContextName(context) + '.Consumer';

      case REACT_PROVIDER_TYPE:
        var provider = type;
        return getContextName(provider._context) + '.Provider';

      case REACT_FORWARD_REF_TYPE:
        return getWrappedName(type, type.render, 'ForwardRef');

      case REACT_MEMO_TYPE:
        return getComponentName(type.type);

      case REACT_BLOCK_TYPE:
        return getComponentName(type._render);

      case REACT_LAZY_TYPE:
        {
          var lazyComponent = type;
          var payload = lazyComponent._payload;
          var init = lazyComponent._init;

          try {
            return getComponentName(init(payload));
          } catch (x) {
            return null;
          }
        }
    }
  }

  return null;
}

var hasOwnProperty = Object.prototype.hasOwnProperty;
var RESERVED_PROPS = {
  key: true,
  ref: true,
  __self: true,
  __source: true
};
var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;

{
  didWarnAboutStringRefs = {};
}

function hasValidRef(config) {
  {
    if (hasOwnProperty.call(config, 'ref')) {
      var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;

      if (getter && getter.isReactWarning) {
        return false;
      }
    }
  }

  return config.ref !== undefined;
}

function hasValidKey(config) {
  {
    if (hasOwnProperty.call(config, 'key')) {
      var getter = Object.getOwnPropertyDescriptor(config, 'key').get;

      if (getter && getter.isReactWarning) {
        return false;
      }
    }
  }

  return config.key !== undefined;
}

function defineKeyPropWarningGetter(props, displayName) {
  var warnAboutAccessingKey = function () {
    {
      if (!specialPropKeyWarningShown) {
        specialPropKeyWarningShown = true;

        error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
      }
    }
  };

  warnAboutAccessingKey.isReactWarning = true;
  Object.defineProperty(props, 'key', {
    get: warnAboutAccessingKey,
    configurable: true
  });
}

function defineRefPropWarningGetter(props, displayName) {
  var warnAboutAccessingRef = function () {
    {
      if (!specialPropRefWarningShown) {
        specialPropRefWarningShown = true;

        error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
      }
    }
  };

  warnAboutAccessingRef.isReactWarning = true;
  Object.defineProperty(props, 'ref', {
    get: warnAboutAccessingRef,
    configurable: true
  });
}

function warnIfStringRefCannotBeAutoConverted(config) {
  {
    if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
      var componentName = getComponentName(ReactCurrentOwner.current.type);

      if (!didWarnAboutStringRefs[componentName]) {
        error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);

        didWarnAboutStringRefs[componentName] = true;
      }
    }
  }
}
/**
 * Factory method to create a new React element. This no longer adheres to
 * the class pattern, so do not use new to call it. Also, instanceof check
 * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
 * if something is a React Element.
 *
 * @param {*} type
 * @param {*} props
 * @param {*} key
 * @param {string|object} ref
 * @param {*} owner
 * @param {*} self A *temporary* helper to detect places where `this` is
 * different from the `owner` when React.createElement is called, so that we
 * can warn. We want to get rid of owner and replace string `ref`s with arrow
 * functions, and as long as `this` and owner are the same, there will be no
 * change in behavior.
 * @param {*} source An annotation object (added by a transpiler or otherwise)
 * indicating filename, line number, and/or other information.
 * @internal
 */


var ReactElement = function (type, key, ref, self, source, owner, props) {
  var element = {
    // This tag allows us to uniquely identify this as a React Element
    $$typeof: REACT_ELEMENT_TYPE,
    // Built-in properties that belong on the element
    type: type,
    key: key,
    ref: ref,
    props: props,
    // Record the component responsible for creating this element.
    _owner: owner
  };

  {
    // The validation flag is currently mutative. We put it on
    // an external backing store so that we can freeze the whole object.
    // This can be replaced with a WeakMap once they are implemented in
    // commonly used development environments.
    element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
    // the validation flag non-enumerable (where possible, which should
    // include every environment we run tests in), so the test framework
    // ignores it.

    Object.defineProperty(element._store, 'validated', {
      configurable: false,
      enumerable: false,
      writable: true,
      value: false
    }); // self and source are DEV only properties.

    Object.defineProperty(element, '_self', {
      configurable: false,
      enumerable: false,
      writable: false,
      value: self
    }); // Two elements created in two different places should be considered
    // equal for testing purposes and therefore we hide it from enumeration.

    Object.defineProperty(element, '_source', {
      configurable: false,
      enumerable: false,
      writable: false,
      value: source
    });

    if (Object.freeze) {
      Object.freeze(element.props);
      Object.freeze(element);
    }
  }

  return element;
};
/**
 * Create and return a new ReactElement of the given type.
 * See https://reactjs.org/docs/react-api.html#createelement
 */

function createElement(type, config, children) {
  var propName; // Reserved names are extracted

  var props = {};
  var key = null;
  var ref = null;
  var self = null;
  var source = null;

  if (config != null) {
    if (hasValidRef(config)) {
      ref = config.ref;

      {
        warnIfStringRefCannotBeAutoConverted(config);
      }
    }

    if (hasValidKey(config)) {
      key = '' + config.key;
    }

    self = config.__self === undefined ? null : config.__self;
    source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object

    for (propName in config) {
      if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
        props[propName] = config[propName];
      }
    }
  } // Children can be more than one argument, and those are transferred onto
  // the newly allocated props object.


  var childrenLength = arguments.length - 2;

  if (childrenLength === 1) {
    props.children = children;
  } else if (childrenLength > 1) {
    var childArray = Array(childrenLength);

    for (var i = 0; i < childrenLength; i++) {
      childArray[i] = arguments[i + 2];
    }

    {
      if (Object.freeze) {
        Object.freeze(childArray);
      }
    }

    props.children = childArray;
  } // Resolve default props


  if (type && type.defaultProps) {
    var defaultProps = type.defaultProps;

    for (propName in defaultProps) {
      if (props[propName] === undefined) {
        props[propName] = defaultProps[propName];
      }
    }
  }

  {
    if (key || ref) {
      var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;

      if (key) {
        defineKeyPropWarningGetter(props, displayName);
      }

      if (ref) {
        defineRefPropWarningGetter(props, displayName);
      }
    }
  }

  return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
}
function cloneAndReplaceKey(oldElement, newKey) {
  var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
  return newElement;
}
/**
 * Clone and return a new ReactElement using element as the starting point.
 * See https://reactjs.org/docs/react-api.html#cloneelement
 */

function cloneElement(element, config, children) {
  if (!!(element === null || element === undefined)) {
    {
      throw Error( "React.cloneElement(...): The argument must be a React element, but you passed " + element + "." );
    }
  }

  var propName; // Original props are copied

  var props = _assign({}, element.props); // Reserved names are extracted


  var key = element.key;
  var ref = element.ref; // Self is preserved since the owner is preserved.

  var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a
  // transpiler, and the original source is probably a better indicator of the
  // true owner.

  var source = element._source; // Owner will be preserved, unless ref is overridden

  var owner = element._owner;

  if (config != null) {
    if (hasValidRef(config)) {
      // Silently steal the ref from the parent.
      ref = config.ref;
      owner = ReactCurrentOwner.current;
    }

    if (hasValidKey(config)) {
      key = '' + config.key;
    } // Remaining properties override existing props


    var defaultProps;

    if (element.type && element.type.defaultProps) {
      defaultProps = element.type.defaultProps;
    }

    for (propName in config) {
      if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
        if (config[propName] === undefined && defaultProps !== undefined) {
          // Resolve default props
          props[propName] = defaultProps[propName];
        } else {
          props[propName] = config[propName];
        }
      }
    }
  } // Children can be more than one argument, and those are transferred onto
  // the newly allocated props object.


  var childrenLength = arguments.length - 2;

  if (childrenLength === 1) {
    props.children = children;
  } else if (childrenLength > 1) {
    var childArray = Array(childrenLength);

    for (var i = 0; i < childrenLength; i++) {
      childArray[i] = arguments[i + 2];
    }

    props.children = childArray;
  }

  return ReactElement(element.type, key, ref, self, source, owner, props);
}
/**
 * Verifies the object is a ReactElement.
 * See https://reactjs.org/docs/react-api.html#isvalidelement
 * @param {?object} object
 * @return {boolean} True if `object` is a ReactElement.
 * @final
 */

function isValidElement(object) {
  return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
}

var SEPARATOR = '.';
var SUBSEPARATOR = ':';
/**
 * Escape and wrap key so it is safe to use as a reactid
 *
 * @param {string} key to be escaped.
 * @return {string} the escaped key.
 */

function escape(key) {
  var escapeRegex = /[=:]/g;
  var escaperLookup = {
    '=': '=0',
    ':': '=2'
  };
  var escapedString = key.replace(escapeRegex, function (match) {
    return escaperLookup[match];
  });
  return '$' + escapedString;
}
/**
 * TODO: Test that a single child and an array with one item have the same key
 * pattern.
 */


var didWarnAboutMaps = false;
var userProvidedKeyEscapeRegex = /\/+/g;

function escapeUserProvidedKey(text) {
  return text.replace(userProvidedKeyEscapeRegex, '$&/');
}
/**
 * Generate a key string that identifies a element within a set.
 *
 * @param {*} element A element that could contain a manual key.
 * @param {number} index Index that is used if a manual key is not provided.
 * @return {string}
 */


function getElementKey(element, index) {
  // Do some typechecking here since we call this blindly. We want to ensure
  // that we don't block potential future ES APIs.
  if (typeof element === 'object' && element !== null && element.key != null) {
    // Explicit key
    return escape('' + element.key);
  } // Implicit key determined by the index in the set


  return index.toString(36);
}

function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
  var type = typeof children;

  if (type === 'undefined' || type === 'boolean') {
    // All of the above are perceived as null.
    children = null;
  }

  var invokeCallback = false;

  if (children === null) {
    invokeCallback = true;
  } else {
    switch (type) {
      case 'string':
      case 'number':
        invokeCallback = true;
        break;

      case 'object':
        switch (children.$$typeof) {
          case REACT_ELEMENT_TYPE:
          case REACT_PORTAL_TYPE:
            invokeCallback = true;
        }

    }
  }

  if (invokeCallback) {
    var _child = children;
    var mappedChild = callback(_child); // If it's the only child, treat the name as if it was wrapped in an array
    // so that it's consistent if the number of children grows:

    var childKey = nameSoFar === '' ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;

    if (Array.isArray(mappedChild)) {
      var escapedChildKey = '';

      if (childKey != null) {
        escapedChildKey = escapeUserProvidedKey(childKey) + '/';
      }

      mapIntoArray(mappedChild, array, escapedChildKey, '', function (c) {
        return c;
      });
    } else if (mappedChild != null) {
      if (isValidElement(mappedChild)) {
        mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
        // traverseAllChildren used to do for objects as children
        escapedPrefix + ( // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
        mappedChild.key && (!_child || _child.key !== mappedChild.key) ? // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
        escapeUserProvidedKey('' + mappedChild.key) + '/' : '') + childKey);
      }

      array.push(mappedChild);
    }

    return 1;
  }

  var child;
  var nextName;
  var subtreeCount = 0; // Count of children found in the current subtree.

  var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;

  if (Array.isArray(children)) {
    for (var i = 0; i < children.length; i++) {
      child = children[i];
      nextName = nextNamePrefix + getElementKey(child, i);
      subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
    }
  } else {
    var iteratorFn = getIteratorFn(children);

    if (typeof iteratorFn === 'function') {
      var iterableChildren = children;

      {
        // Warn about using Maps as children
        if (iteratorFn === iterableChildren.entries) {
          if (!didWarnAboutMaps) {
            warn('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');
          }

          didWarnAboutMaps = true;
        }
      }

      var iterator = iteratorFn.call(iterableChildren);
      var step;
      var ii = 0;

      while (!(step = iterator.next()).done) {
        child = step.value;
        nextName = nextNamePrefix + getElementKey(child, ii++);
        subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
      }
    } else if (type === 'object') {
      var childrenString = '' + children;

      {
        {
          throw Error( "Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + "). If you meant to render a collection of children, use an array instead." );
        }
      }
    }
  }

  return subtreeCount;
}

/**
 * Maps children that are typically specified as `props.children`.
 *
 * See https://reactjs.org/docs/react-api.html#reactchildrenmap
 *
 * The provided mapFunction(child, index) will be called for each
 * leaf child.
 *
 * @param {?*} children Children tree container.
 * @param {function(*, int)} func The map function.
 * @param {*} context Context for mapFunction.
 * @return {object} Object containing the ordered map of results.
 */
function mapChildren(children, func, context) {
  if (children == null) {
    return children;
  }

  var result = [];
  var count = 0;
  mapIntoArray(children, result, '', '', function (child) {
    return func.call(context, child, count++);
  });
  return result;
}
/**
 * Count the number of children that are typically specified as
 * `props.children`.
 *
 * See https://reactjs.org/docs/react-api.html#reactchildrencount
 *
 * @param {?*} children Children tree container.
 * @return {number} The number of children.
 */


function countChildren(children) {
  var n = 0;
  mapChildren(children, function () {
    n++; // Don't return anything
  });
  return n;
}

/**
 * Iterates through children that are typically specified as `props.children`.
 *
 * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
 *
 * The provided forEachFunc(child, index) will be called for each
 * leaf child.
 *
 * @param {?*} children Children tree container.
 * @param {function(*, int)} forEachFunc
 * @param {*} forEachContext Context for forEachContext.
 */
function forEachChildren(children, forEachFunc, forEachContext) {
  mapChildren(children, function () {
    forEachFunc.apply(this, arguments); // Don't return anything.
  }, forEachContext);
}
/**
 * Flatten a children object (typically specified as `props.children`) and
 * return an array with appropriately re-keyed children.
 *
 * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
 */


function toArray(children) {
  return mapChildren(children, function (child) {
    return child;
  }) || [];
}
/**
 * Returns the first child in a collection of children and verifies that there
 * is only one child in the collection.
 *
 * See https://reactjs.org/docs/react-api.html#reactchildrenonly
 *
 * The current implementation of this function assumes that a single child gets
 * passed without a wrapper, but the purpose of this helper function is to
 * abstract away the particular structure of children.
 *
 * @param {?object} children Child collection structure.
 * @return {ReactElement} The first and only `ReactElement` contained in the
 * structure.
 */


function onlyChild(children) {
  if (!isValidElement(children)) {
    {
      throw Error( "React.Children.only expected to receive a single React element child." );
    }
  }

  return children;
}

function createContext(defaultValue, calculateChangedBits) {
  if (calculateChangedBits === undefined) {
    calculateChangedBits = null;
  } else {
    {
      if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {
        error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);
      }
    }
  }

  var context = {
    $$typeof: REACT_CONTEXT_TYPE,
    _calculateChangedBits: calculateChangedBits,
    // As a workaround to support multiple concurrent renderers, we categorize
    // some renderers as primary and others as secondary. We only expect
    // there to be two concurrent renderers at most: React Native (primary) and
    // Fabric (secondary); React DOM (primary) and React ART (secondary).
    // Secondary renderers store their context values on separate fields.
    _currentValue: defaultValue,
    _currentValue2: defaultValue,
    // Used to track how many concurrent renderers this context currently
    // supports within in a single renderer. Such as parallel server rendering.
    _threadCount: 0,
    // These are circular
    Provider: null,
    Consumer: null
  };
  context.Provider = {
    $$typeof: REACT_PROVIDER_TYPE,
    _context: context
  };
  var hasWarnedAboutUsingNestedContextConsumers = false;
  var hasWarnedAboutUsingConsumerProvider = false;
  var hasWarnedAboutDisplayNameOnConsumer = false;

  {
    // A separate object, but proxies back to the original context object for
    // backwards compatibility. It has a different $$typeof, so we can properly
    // warn for the incorrect usage of Context as a Consumer.
    var Consumer = {
      $$typeof: REACT_CONTEXT_TYPE,
      _context: context,
      _calculateChangedBits: context._calculateChangedBits
    }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here

    Object.defineProperties(Consumer, {
      Provider: {
        get: function () {
          if (!hasWarnedAboutUsingConsumerProvider) {
            hasWarnedAboutUsingConsumerProvider = true;

            error('Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
          }

          return context.Provider;
        },
        set: function (_Provider) {
          context.Provider = _Provider;
        }
      },
      _currentValue: {
        get: function () {
          return context._currentValue;
        },
        set: function (_currentValue) {
          context._currentValue = _currentValue;
        }
      },
      _currentValue2: {
        get: function () {
          return context._currentValue2;
        },
        set: function (_currentValue2) {
          context._currentValue2 = _currentValue2;
        }
      },
      _threadCount: {
        get: function () {
          return context._threadCount;
        },
        set: function (_threadCount) {
          context._threadCount = _threadCount;
        }
      },
      Consumer: {
        get: function () {
          if (!hasWarnedAboutUsingNestedContextConsumers) {
            hasWarnedAboutUsingNestedContextConsumers = true;

            error('Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
          }

          return context.Consumer;
        }
      },
      displayName: {
        get: function () {
          return context.displayName;
        },
        set: function (displayName) {
          if (!hasWarnedAboutDisplayNameOnConsumer) {
            warn('Setting `displayName` on Context.Consumer has no effect. ' + "You should set it directly on the context with Context.displayName = '%s'.", displayName);

            hasWarnedAboutDisplayNameOnConsumer = true;
          }
        }
      }
    }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty

    context.Consumer = Consumer;
  }

  {
    context._currentRenderer = null;
    context._currentRenderer2 = null;
  }

  return context;
}

var Uninitialized = -1;
var Pending = 0;
var Resolved = 1;
var Rejected = 2;

function lazyInitializer(payload) {
  if (payload._status === Uninitialized) {
    var ctor = payload._result;
    var thenable = ctor(); // Transition to the next state.

    var pending = payload;
    pending._status = Pending;
    pending._result = thenable;
    thenable.then(function (moduleObject) {
      if (payload._status === Pending) {
        var defaultExport = moduleObject.default;

        {
          if (defaultExport === undefined) {
            error('lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\n\nYour code should look like: \n  ' + // Break up imports to avoid accidentally parsing them as dependencies.
            'const MyComponent = lazy(() => imp' + "ort('./MyComponent'))", moduleObject);
          }
        } // Transition to the next state.


        var resolved = payload;
        resolved._status = Resolved;
        resolved._result = defaultExport;
      }
    }, function (error) {
      if (payload._status === Pending) {
        // Transition to the next state.
        var rejected = payload;
        rejected._status = Rejected;
        rejected._result = error;
      }
    });
  }

  if (payload._status === Resolved) {
    return payload._result;
  } else {
    throw payload._result;
  }
}

function lazy(ctor) {
  var payload = {
    // We use these fields to store the result.
    _status: -1,
    _result: ctor
  };
  var lazyType = {
    $$typeof: REACT_LAZY_TYPE,
    _payload: payload,
    _init: lazyInitializer
  };

  {
    // In production, this would just set it on the object.
    var defaultProps;
    var propTypes; // $FlowFixMe

    Object.defineProperties(lazyType, {
      defaultProps: {
        configurable: true,
        get: function () {
          return defaultProps;
        },
        set: function (newDefaultProps) {
          error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');

          defaultProps = newDefaultProps; // Match production behavior more closely:
          // $FlowFixMe

          Object.defineProperty(lazyType, 'defaultProps', {
            enumerable: true
          });
        }
      },
      propTypes: {
        configurable: true,
        get: function () {
          return propTypes;
        },
        set: function (newPropTypes) {
          error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');

          propTypes = newPropTypes; // Match production behavior more closely:
          // $FlowFixMe

          Object.defineProperty(lazyType, 'propTypes', {
            enumerable: true
          });
        }
      }
    });
  }

  return lazyType;
}

function forwardRef(render) {
  {
    if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
      error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
    } else if (typeof render !== 'function') {
      error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
    } else {
      if (render.length !== 0 && render.length !== 2) {
        error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');
      }
    }

    if (render != null) {
      if (render.defaultProps != null || render.propTypes != null) {
        error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');
      }
    }
  }

  var elementType = {
    $$typeof: REACT_FORWARD_REF_TYPE,
    render: render
  };

  {
    var ownName;
    Object.defineProperty(elementType, 'displayName', {
      enumerable: false,
      configurable: true,
      get: function () {
        return ownName;
      },
      set: function (name) {
        ownName = name;

        if (render.displayName == null) {
          render.displayName = name;
        }
      }
    });
  }

  return elementType;
}

// Filter certain DOM attributes (e.g. src, href) if their values are empty strings.

var enableScopeAPI = false; // Experimental Create Event Handle API.

function isValidElementType(type) {
  if (typeof type === 'string' || typeof type === 'function') {
    return true;
  } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).


  if (type === exports.Fragment || type === exports.Profiler || type === REACT_DEBUG_TRACING_MODE_TYPE || type === exports.StrictMode || type === exports.Suspense || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI ) {
    return true;
  }

  if (typeof type === 'object' && type !== null) {
    if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
      return true;
    }
  }

  return false;
}

function memo(type, compare) {
  {
    if (!isValidElementType(type)) {
      error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
    }
  }

  var elementType = {
    $$typeof: REACT_MEMO_TYPE,
    type: type,
    compare: compare === undefined ? null : compare
  };

  {
    var ownName;
    Object.defineProperty(elementType, 'displayName', {
      enumerable: false,
      configurable: true,
      get: function () {
        return ownName;
      },
      set: function (name) {
        ownName = name;

        if (type.displayName == null) {
          type.displayName = name;
        }
      }
    });
  }

  return elementType;
}

function resolveDispatcher() {
  var dispatcher = ReactCurrentDispatcher.current;

  if (!(dispatcher !== null)) {
    {
      throw Error( "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." );
    }
  }

  return dispatcher;
}

function useContext(Context, unstable_observedBits) {
  var dispatcher = resolveDispatcher();

  {
    if (unstable_observedBits !== undefined) {
      error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://reactjs.org/link/rules-of-hooks' : '');
    } // TODO: add a more generic warning for invalid values.


    if (Context._context !== undefined) {
      var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
      // and nobody should be using this in existing code.

      if (realContext.Consumer === Context) {
        error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
      } else if (realContext.Provider === Context) {
        error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
      }
    }
  }

  return dispatcher.useContext(Context, unstable_observedBits);
}
function useState(initialState) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useState(initialState);
}
function useReducer(reducer, initialArg, init) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useReducer(reducer, initialArg, init);
}
function useRef(initialValue) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useRef(initialValue);
}
function useEffect(create, deps) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useEffect(create, deps);
}
function useLayoutEffect(create, deps) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useLayoutEffect(create, deps);
}
function useCallback(callback, deps) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useCallback(callback, deps);
}
function useMemo(create, deps) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useMemo(create, deps);
}
function useImperativeHandle(ref, create, deps) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useImperativeHandle(ref, create, deps);
}
function useDebugValue(value, formatterFn) {
  {
    var dispatcher = resolveDispatcher();
    return dispatcher.useDebugValue(value, formatterFn);
  }
}

// Helpers to patch console.logs to avoid logging during side-effect free
// replaying on render function. This currently only patches the object
// lazily which won't cover if the log function was extracted eagerly.
// We could also eagerly patch the method.
var disabledDepth = 0;
var prevLog;
var prevInfo;
var prevWarn;
var prevError;
var prevGroup;
var prevGroupCollapsed;
var prevGroupEnd;

function disabledLog() {}

disabledLog.__reactDisabledLog = true;
function disableLogs() {
  {
    if (disabledDepth === 0) {
      /* eslint-disable react-internal/no-production-logging */
      prevLog = console.log;
      prevInfo = console.info;
      prevWarn = console.warn;
      prevError = console.error;
      prevGroup = console.group;
      prevGroupCollapsed = console.groupCollapsed;
      prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099

      var props = {
        configurable: true,
        enumerable: true,
        value: disabledLog,
        writable: true
      }; // $FlowFixMe Flow thinks console is immutable.

      Object.defineProperties(console, {
        info: props,
        log: props,
        warn: props,
        error: props,
        group: props,
        groupCollapsed: props,
        groupEnd: props
      });
      /* eslint-enable react-internal/no-production-logging */
    }

    disabledDepth++;
  }
}
function reenableLogs() {
  {
    disabledDepth--;

    if (disabledDepth === 0) {
      /* eslint-disable react-internal/no-production-logging */
      var props = {
        configurable: true,
        enumerable: true,
        writable: true
      }; // $FlowFixMe Flow thinks console is immutable.

      Object.defineProperties(console, {
        log: _assign({}, props, {
          value: prevLog
        }),
        info: _assign({}, props, {
          value: prevInfo
        }),
        warn: _assign({}, props, {
          value: prevWarn
        }),
        error: _assign({}, props, {
          value: prevError
        }),
        group: _assign({}, props, {
          value: prevGroup
        }),
        groupCollapsed: _assign({}, props, {
          value: prevGroupCollapsed
        }),
        groupEnd: _assign({}, props, {
          value: prevGroupEnd
        })
      });
      /* eslint-enable react-internal/no-production-logging */
    }

    if (disabledDepth < 0) {
      error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
    }
  }
}

var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
var prefix;
function describeBuiltInComponentFrame(name, source, ownerFn) {
  {
    if (prefix === undefined) {
      // Extract the VM specific prefix used by each line.
      try {
        throw Error();
      } catch (x) {
        var match = x.stack.trim().match(/\n( *(at )?)/);
        prefix = match && match[1] || '';
      }
    } // We use the prefix to ensure our stacks line up with native stack frames.


    return '\n' + prefix + name;
  }
}
var reentry = false;
var componentFrameCache;

{
  var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
  componentFrameCache = new PossiblyWeakMap();
}

function describeNativeComponentFrame(fn, construct) {
  // If something asked for a stack inside a fake render, it should get ignored.
  if (!fn || reentry) {
    return '';
  }

  {
    var frame = componentFrameCache.get(fn);

    if (frame !== undefined) {
      return frame;
    }
  }

  var control;
  reentry = true;
  var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.

  Error.prepareStackTrace = undefined;
  var previousDispatcher;

  {
    previousDispatcher = ReactCurrentDispatcher$1.current; // Set the dispatcher in DEV because this might be call in the render function
    // for warnings.

    ReactCurrentDispatcher$1.current = null;
    disableLogs();
  }

  try {
    // This should throw.
    if (construct) {
      // Something should be setting the props in the constructor.
      var Fake = function () {
        throw Error();
      }; // $FlowFixMe


      Object.defineProperty(Fake.prototype, 'props', {
        set: function () {
          // We use a throwing setter instead of frozen or non-writable props
          // because that won't throw in a non-strict mode function.
          throw Error();
        }
      });

      if (typeof Reflect === 'object' && Reflect.construct) {
        // We construct a different control for this case to include any extra
        // frames added by the construct call.
        try {
          Reflect.construct(Fake, []);
        } catch (x) {
          control = x;
        }

        Reflect.construct(fn, [], Fake);
      } else {
        try {
          Fake.call();
        } catch (x) {
          control = x;
        }

        fn.call(Fake.prototype);
      }
    } else {
      try {
        throw Error();
      } catch (x) {
        control = x;
      }

      fn();
    }
  } catch (sample) {
    // This is inlined manually because closure doesn't do it for us.
    if (sample && control && typeof sample.stack === 'string') {
      // This extracts the first frame from the sample that isn't also in the control.
      // Skipping one frame that we assume is the frame that calls the two.
      var sampleLines = sample.stack.split('\n');
      var controlLines = control.stack.split('\n');
      var s = sampleLines.length - 1;
      var c = controlLines.length - 1;

      while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
        // We expect at least one stack frame to be shared.
        // Typically this will be the root most one. However, stack frames may be
        // cut off due to maximum stack limits. In this case, one maybe cut off
        // earlier than the other. We assume that the sample is longer or the same
        // and there for cut off earlier. So we should find the root most frame in
        // the sample somewhere in the control.
        c--;
      }

      for (; s >= 1 && c >= 0; s--, c--) {
        // Next we find the first one that isn't the same which should be the
        // frame that called our sample function and the control.
        if (sampleLines[s] !== controlLines[c]) {
          // In V8, the first line is describing the message but other VMs don't.
          // If we're about to return the first line, and the control is also on the same
          // line, that's a pretty good indicator that our sample threw at same line as
          // the control. I.e. before we entered the sample frame. So we ignore this result.
          // This can happen if you passed a class to function component, or non-function.
          if (s !== 1 || c !== 1) {
            do {
              s--;
              c--; // We may still have similar intermediate frames from the construct call.
              // The next one that isn't the same should be our match though.

              if (c < 0 || sampleLines[s] !== controlLines[c]) {
                // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
                var _frame = '\n' + sampleLines[s].replace(' at new ', ' at ');

                {
                  if (typeof fn === 'function') {
                    componentFrameCache.set(fn, _frame);
                  }
                } // Return the line we found.


                return _frame;
              }
            } while (s >= 1 && c >= 0);
          }

          break;
        }
      }
    }
  } finally {
    reentry = false;

    {
      ReactCurrentDispatcher$1.current = previousDispatcher;
      reenableLogs();
    }

    Error.prepareStackTrace = previousPrepareStackTrace;
  } // Fallback to just using the name if we couldn't make it throw.


  var name = fn ? fn.displayName || fn.name : '';
  var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';

  {
    if (typeof fn === 'function') {
      componentFrameCache.set(fn, syntheticFrame);
    }
  }

  return syntheticFrame;
}
function describeFunctionComponentFrame(fn, source, ownerFn) {
  {
    return describeNativeComponentFrame(fn, false);
  }
}

function shouldConstruct(Component) {
  var prototype = Component.prototype;
  return !!(prototype && prototype.isReactComponent);
}

function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {

  if (type == null) {
    return '';
  }

  if (typeof type === 'function') {
    {
      return describeNativeComponentFrame(type, shouldConstruct(type));
    }
  }

  if (typeof type === 'string') {
    return describeBuiltInComponentFrame(type);
  }

  switch (type) {
    case exports.Suspense:
      return describeBuiltInComponentFrame('Suspense');

    case REACT_SUSPENSE_LIST_TYPE:
      return describeBuiltInComponentFrame('SuspenseList');
  }

  if (typeof type === 'object') {
    switch (type.$$typeof) {
      case REACT_FORWARD_REF_TYPE:
        return describeFunctionComponentFrame(type.render);

      case REACT_MEMO_TYPE:
        // Memo may contain any component type so we recursively resolve it.
        return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);

      case REACT_BLOCK_TYPE:
        return describeFunctionComponentFrame(type._render);

      case REACT_LAZY_TYPE:
        {
          var lazyComponent = type;
          var payload = lazyComponent._payload;
          var init = lazyComponent._init;

          try {
            // Lazy may contain any component type so we recursively resolve it.
            return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
          } catch (x) {}
        }
    }
  }

  return '';
}

var loggedTypeFailures = {};
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;

function setCurrentlyValidatingElement(element) {
  {
    if (element) {
      var owner = element._owner;
      var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
      ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
    } else {
      ReactDebugCurrentFrame$1.setExtraStackFrame(null);
    }
  }
}

function checkPropTypes(typeSpecs, values, location, componentName, element) {
  {
    // $FlowFixMe This is okay but Flow doesn't know it.
    var has = Function.call.bind(Object.prototype.hasOwnProperty);

    for (var typeSpecName in typeSpecs) {
      if (has(typeSpecs, typeSpecName)) {
        var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
        // fail the render phase where it didn't fail before. So we log it.
        // After these have been cleaned up, we'll let them throw.

        try {
          // This is intentionally an invariant that gets caught. It's the same
          // behavior as without this statement except with a better message.
          if (typeof typeSpecs[typeSpecName] !== 'function') {
            var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
            err.name = 'Invariant Violation';
            throw err;
          }

          error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
        } catch (ex) {
          error$1 = ex;
        }

        if (error$1 && !(error$1 instanceof Error)) {
          setCurrentlyValidatingElement(element);

          error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);

          setCurrentlyValidatingElement(null);
        }

        if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
          // Only monitor this failure once because there tends to be a lot of the
          // same error.
          loggedTypeFailures[error$1.message] = true;
          setCurrentlyValidatingElement(element);

          error('Failed %s type: %s', location, error$1.message);

          setCurrentlyValidatingElement(null);
        }
      }
    }
  }
}

function setCurrentlyValidatingElement$1(element) {
  {
    if (element) {
      var owner = element._owner;
      var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
      setExtraStackFrame(stack);
    } else {
      setExtraStackFrame(null);
    }
  }
}

var propTypesMisspellWarningShown;

{
  propTypesMisspellWarningShown = false;
}

function getDeclarationErrorAddendum() {
  if (ReactCurrentOwner.current) {
    var name = getComponentName(ReactCurrentOwner.current.type);

    if (name) {
      return '\n\nCheck the render method of `' + name + '`.';
    }
  }

  return '';
}

function getSourceInfoErrorAddendum(source) {
  if (source !== undefined) {
    var fileName = source.fileName.replace(/^.*[\\\/]/, '');
    var lineNumber = source.lineNumber;
    return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
  }

  return '';
}

function getSourceInfoErrorAddendumForProps(elementProps) {
  if (elementProps !== null && elementProps !== undefined) {
    return getSourceInfoErrorAddendum(elementProps.__source);
  }

  return '';
}
/**
 * Warn if there's no key explicitly set on dynamic arrays of children or
 * object keys are not valid. This allows us to keep track of children between
 * updates.
 */


var ownerHasKeyUseWarning = {};

function getCurrentComponentErrorInfo(parentType) {
  var info = getDeclarationErrorAddendum();

  if (!info) {
    var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;

    if (parentName) {
      info = "\n\nCheck the top-level render call using <" + parentName + ">.";
    }
  }

  return info;
}
/**
 * Warn if the element doesn't have an explicit key assigned to it.
 * This element is in an array. The array could grow and shrink or be
 * reordered. All children that haven't already been validated are required to
 * have a "key" property assigned to it. Error statuses are cached so a warning
 * will only be shown once.
 *
 * @internal
 * @param {ReactElement} element Element that requires a key.
 * @param {*} parentType element's parent's type.
 */


function validateExplicitKey(element, parentType) {
  if (!element._store || element._store.validated || element.key != null) {
    return;
  }

  element._store.validated = true;
  var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);

  if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
    return;
  }

  ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
  // property, it may be the creator of the child that's responsible for
  // assigning it a key.

  var childOwner = '';

  if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
    // Give the component that originally created this child.
    childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
  }

  {
    setCurrentlyValidatingElement$1(element);

    error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);

    setCurrentlyValidatingElement$1(null);
  }
}
/**
 * Ensure that every element either is passed in a static location, in an
 * array with an explicit keys property defined, or in an object literal
 * with valid key property.
 *
 * @internal
 * @param {ReactNode} node Statically passed child of any type.
 * @param {*} parentType node's parent's type.
 */


function validateChildKeys(node, parentType) {
  if (typeof node !== 'object') {
    return;
  }

  if (Array.isArray(node)) {
    for (var i = 0; i < node.length; i++) {
      var child = node[i];

      if (isValidElement(child)) {
        validateExplicitKey(child, parentType);
      }
    }
  } else if (isValidElement(node)) {
    // This element was passed in a valid location.
    if (node._store) {
      node._store.validated = true;
    }
  } else if (node) {
    var iteratorFn = getIteratorFn(node);

    if (typeof iteratorFn === 'function') {
      // Entry iterators used to provide implicit keys,
      // but now we print a separate warning for them later.
      if (iteratorFn !== node.entries) {
        var iterator = iteratorFn.call(node);
        var step;

        while (!(step = iterator.next()).done) {
          if (isValidElement(step.value)) {
            validateExplicitKey(step.value, parentType);
          }
        }
      }
    }
  }
}
/**
 * Given an element, validate that its props follow the propTypes definition,
 * provided by the type.
 *
 * @param {ReactElement} element
 */


function validatePropTypes(element) {
  {
    var type = element.type;

    if (type === null || type === undefined || typeof type === 'string') {
      return;
    }

    var propTypes;

    if (typeof type === 'function') {
      propTypes = type.propTypes;
    } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
    // Inner props are checked in the reconciler.
    type.$$typeof === REACT_MEMO_TYPE)) {
      propTypes = type.propTypes;
    } else {
      return;
    }

    if (propTypes) {
      // Intentionally inside to avoid triggering lazy initializers:
      var name = getComponentName(type);
      checkPropTypes(propTypes, element.props, 'prop', name, element);
    } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
      propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:

      var _name = getComponentName(type);

      error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
    }

    if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
      error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
    }
  }
}
/**
 * Given a fragment, validate that it can only be provided with fragment props
 * @param {ReactElement} fragment
 */


function validateFragmentProps(fragment) {
  {
    var keys = Object.keys(fragment.props);

    for (var i = 0; i < keys.length; i++) {
      var key = keys[i];

      if (key !== 'children' && key !== 'key') {
        setCurrentlyValidatingElement$1(fragment);

        error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);

        setCurrentlyValidatingElement$1(null);
        break;
      }
    }

    if (fragment.ref !== null) {
      setCurrentlyValidatingElement$1(fragment);

      error('Invalid attribute `ref` supplied to `React.Fragment`.');

      setCurrentlyValidatingElement$1(null);
    }
  }
}
function createElementWithValidation(type, props, children) {
  var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
  // succeed and there will likely be errors in render.

  if (!validType) {
    var info = '';

    if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
      info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
    }

    var sourceInfo = getSourceInfoErrorAddendumForProps(props);

    if (sourceInfo) {
      info += sourceInfo;
    } else {
      info += getDeclarationErrorAddendum();
    }

    var typeString;

    if (type === null) {
      typeString = 'null';
    } else if (Array.isArray(type)) {
      typeString = 'array';
    } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
      typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
      info = ' Did you accidentally export a JSX literal instead of a component?';
    } else {
      typeString = typeof type;
    }

    {
      error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
    }
  }

  var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
  // TODO: Drop this when these are no longer allowed as the type argument.

  if (element == null) {
    return element;
  } // Skip key warning if the type isn't valid since our key validation logic
  // doesn't expect a non-string/function type and can throw confusing errors.
  // We don't want exception behavior to differ between dev and prod.
  // (Rendering will throw with a helpful message and as soon as the type is
  // fixed, the key warnings will appear.)


  if (validType) {
    for (var i = 2; i < arguments.length; i++) {
      validateChildKeys(arguments[i], type);
    }
  }

  if (type === exports.Fragment) {
    validateFragmentProps(element);
  } else {
    validatePropTypes(element);
  }

  return element;
}
var didWarnAboutDeprecatedCreateFactory = false;
function createFactoryWithValidation(type) {
  var validatedFactory = createElementWithValidation.bind(null, type);
  validatedFactory.type = type;

  {
    if (!didWarnAboutDeprecatedCreateFactory) {
      didWarnAboutDeprecatedCreateFactory = true;

      warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');
    } // Legacy hook: remove it


    Object.defineProperty(validatedFactory, 'type', {
      enumerable: false,
      get: function () {
        warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');

        Object.defineProperty(this, 'type', {
          value: type
        });
        return type;
      }
    });
  }

  return validatedFactory;
}
function cloneElementWithValidation(element, props, children) {
  var newElement = cloneElement.apply(this, arguments);

  for (var i = 2; i < arguments.length; i++) {
    validateChildKeys(arguments[i], newElement.type);
  }

  validatePropTypes(newElement);
  return newElement;
}

{

  try {
    var frozenObject = Object.freeze({});
    /* eslint-disable no-new */

    new Map([[frozenObject, null]]);
    new Set([frozenObject]);
    /* eslint-enable no-new */
  } catch (e) {
  }
}

var createElement$1 =  createElementWithValidation ;
var cloneElement$1 =  cloneElementWithValidation ;
var createFactory =  createFactoryWithValidation ;
var Children = {
  map: mapChildren,
  forEach: forEachChildren,
  count: countChildren,
  toArray: toArray,
  only: onlyChild
};

exports.Children = Children;
exports.Component = Component;
exports.PureComponent = PureComponent;
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
exports.cloneElement = cloneElement$1;
exports.createContext = createContext;
exports.createElement = createElement$1;
exports.createFactory = createFactory;
exports.createRef = createRef;
exports.forwardRef = forwardRef;
exports.isValidElement = isValidElement;
exports.lazy = lazy;
exports.memo = memo;
exports.useCallback = useCallback;
exports.useContext = useContext;
exports.useDebugValue = useDebugValue;
exports.useEffect = useEffect;
exports.useImperativeHandle = useImperativeHandle;
exports.useLayoutEffect = useLayoutEffect;
exports.useMemo = useMemo;
exports.useReducer = useReducer;
exports.useRef = useRef;
exports.useState = useState;
exports.version = ReactVersion;
  })();
}


/***/ }),

/***/ "./node_modules/react/index.js":
/*!*************************************!*\
  !*** ./node_modules/react/index.js ***!
  \*************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


if (false) {} else {
  module.exports = __webpack_require__(/*! ./cjs/react.development.js */ "./node_modules/react/cjs/react.development.js");
}


/***/ }),

/***/ "./node_modules/scheduler/cjs/scheduler-tracing.development.js":
/*!*********************************************************************!*\
  !*** ./node_modules/scheduler/cjs/scheduler-tracing.development.js ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, exports) => {

"use strict";
/** @license React v0.20.2
 * scheduler-tracing.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */



if (true) {
  (function() {
'use strict';

var DEFAULT_THREAD_ID = 0; // Counters used to generate unique IDs.

var interactionIDCounter = 0;
var threadIDCounter = 0; // Set of currently traced interactions.
// Interactions "stack"–
// Meaning that newly traced interactions are appended to the previously active set.
// When an interaction goes out of scope, the previous set (if any) is restored.

exports.__interactionsRef = null; // Listener(s) to notify when interactions begin and end.

exports.__subscriberRef = null;

{
  exports.__interactionsRef = {
    current: new Set()
  };
  exports.__subscriberRef = {
    current: null
  };
}
function unstable_clear(callback) {

  var prevInteractions = exports.__interactionsRef.current;
  exports.__interactionsRef.current = new Set();

  try {
    return callback();
  } finally {
    exports.__interactionsRef.current = prevInteractions;
  }
}
function unstable_getCurrent() {
  {
    return exports.__interactionsRef.current;
  }
}
function unstable_getThreadID() {
  return ++threadIDCounter;
}
function unstable_trace(name, timestamp, callback) {
  var threadID = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_THREAD_ID;

  var interaction = {
    __count: 1,
    id: interactionIDCounter++,
    name: name,
    timestamp: timestamp
  };
  var prevInteractions = exports.__interactionsRef.current; // Traced interactions should stack/accumulate.
  // To do that, clone the current interactions.
  // The previous set will be restored upon completion.

  var interactions = new Set(prevInteractions);
  interactions.add(interaction);
  exports.__interactionsRef.current = interactions;
  var subscriber = exports.__subscriberRef.current;
  var returnValue;

  try {
    if (subscriber !== null) {
      subscriber.onInteractionTraced(interaction);
    }
  } finally {
    try {
      if (subscriber !== null) {
        subscriber.onWorkStarted(interactions, threadID);
      }
    } finally {
      try {
        returnValue = callback();
      } finally {
        exports.__interactionsRef.current = prevInteractions;

        try {
          if (subscriber !== null) {
            subscriber.onWorkStopped(interactions, threadID);
          }
        } finally {
          interaction.__count--; // If no async work was scheduled for this interaction,
          // Notify subscribers that it's completed.

          if (subscriber !== null && interaction.__count === 0) {
            subscriber.onInteractionScheduledWorkCompleted(interaction);
          }
        }
      }
    }
  }

  return returnValue;
}
function unstable_wrap(callback) {
  var threadID = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_THREAD_ID;

  var wrappedInteractions = exports.__interactionsRef.current;
  var subscriber = exports.__subscriberRef.current;

  if (subscriber !== null) {
    subscriber.onWorkScheduled(wrappedInteractions, threadID);
  } // Update the pending async work count for the current interactions.
  // Update after calling subscribers in case of error.


  wrappedInteractions.forEach(function (interaction) {
    interaction.__count++;
  });
  var hasRun = false;

  function wrapped() {
    var prevInteractions = exports.__interactionsRef.current;
    exports.__interactionsRef.current = wrappedInteractions;
    subscriber = exports.__subscriberRef.current;

    try {
      var returnValue;

      try {
        if (subscriber !== null) {
          subscriber.onWorkStarted(wrappedInteractions, threadID);
        }
      } finally {
        try {
          returnValue = callback.apply(undefined, arguments);
        } finally {
          exports.__interactionsRef.current = prevInteractions;

          if (subscriber !== null) {
            subscriber.onWorkStopped(wrappedInteractions, threadID);
          }
        }
      }

      return returnValue;
    } finally {
      if (!hasRun) {
        // We only expect a wrapped function to be executed once,
        // But in the event that it's executed more than once–
        // Only decrement the outstanding interaction counts once.
        hasRun = true; // Update pending async counts for all wrapped interactions.
        // If this was the last scheduled async work for any of them,
        // Mark them as completed.

        wrappedInteractions.forEach(function (interaction) {
          interaction.__count--;

          if (subscriber !== null && interaction.__count === 0) {
            subscriber.onInteractionScheduledWorkCompleted(interaction);
          }
        });
      }
    }
  }

  wrapped.cancel = function cancel() {
    subscriber = exports.__subscriberRef.current;

    try {
      if (subscriber !== null) {
        subscriber.onWorkCanceled(wrappedInteractions, threadID);
      }
    } finally {
      // Update pending async counts for all wrapped interactions.
      // If this was the last scheduled async work for any of them,
      // Mark them as completed.
      wrappedInteractions.forEach(function (interaction) {
        interaction.__count--;

        if (subscriber && interaction.__count === 0) {
          subscriber.onInteractionScheduledWorkCompleted(interaction);
        }
      });
    }
  };

  return wrapped;
}

var subscribers = null;

{
  subscribers = new Set();
}

function unstable_subscribe(subscriber) {
  {
    subscribers.add(subscriber);

    if (subscribers.size === 1) {
      exports.__subscriberRef.current = {
        onInteractionScheduledWorkCompleted: onInteractionScheduledWorkCompleted,
        onInteractionTraced: onInteractionTraced,
        onWorkCanceled: onWorkCanceled,
        onWorkScheduled: onWorkScheduled,
        onWorkStarted: onWorkStarted,
        onWorkStopped: onWorkStopped
      };
    }
  }
}
function unstable_unsubscribe(subscriber) {
  {
    subscribers.delete(subscriber);

    if (subscribers.size === 0) {
      exports.__subscriberRef.current = null;
    }
  }
}

function onInteractionTraced(interaction) {
  var didCatchError = false;
  var caughtError = null;
  subscribers.forEach(function (subscriber) {
    try {
      subscriber.onInteractionTraced(interaction);
    } catch (error) {
      if (!didCatchError) {
        didCatchError = true;
        caughtError = error;
      }
    }
  });

  if (didCatchError) {
    throw caughtError;
  }
}

function onInteractionScheduledWorkCompleted(interaction) {
  var didCatchError = false;
  var caughtError = null;
  subscribers.forEach(function (subscriber) {
    try {
      subscriber.onInteractionScheduledWorkCompleted(interaction);
    } catch (error) {
      if (!didCatchError) {
        didCatchError = true;
        caughtError = error;
      }
    }
  });

  if (didCatchError) {
    throw caughtError;
  }
}

function onWorkScheduled(interactions, threadID) {
  var didCatchError = false;
  var caughtError = null;
  subscribers.forEach(function (subscriber) {
    try {
      subscriber.onWorkScheduled(interactions, threadID);
    } catch (error) {
      if (!didCatchError) {
        didCatchError = true;
        caughtError = error;
      }
    }
  });

  if (didCatchError) {
    throw caughtError;
  }
}

function onWorkStarted(interactions, threadID) {
  var didCatchError = false;
  var caughtError = null;
  subscribers.forEach(function (subscriber) {
    try {
      subscriber.onWorkStarted(interactions, threadID);
    } catch (error) {
      if (!didCatchError) {
        didCatchError = true;
        caughtError = error;
      }
    }
  });

  if (didCatchError) {
    throw caughtError;
  }
}

function onWorkStopped(interactions, threadID) {
  var didCatchError = false;
  var caughtError = null;
  subscribers.forEach(function (subscriber) {
    try {
      subscriber.onWorkStopped(interactions, threadID);
    } catch (error) {
      if (!didCatchError) {
        didCatchError = true;
        caughtError = error;
      }
    }
  });

  if (didCatchError) {
    throw caughtError;
  }
}

function onWorkCanceled(interactions, threadID) {
  var didCatchError = false;
  var caughtError = null;
  subscribers.forEach(function (subscriber) {
    try {
      subscriber.onWorkCanceled(interactions, threadID);
    } catch (error) {
      if (!didCatchError) {
        didCatchError = true;
        caughtError = error;
      }
    }
  });

  if (didCatchError) {
    throw caughtError;
  }
}

exports.unstable_clear = unstable_clear;
exports.unstable_getCurrent = unstable_getCurrent;
exports.unstable_getThreadID = unstable_getThreadID;
exports.unstable_subscribe = unstable_subscribe;
exports.unstable_trace = unstable_trace;
exports.unstable_unsubscribe = unstable_unsubscribe;
exports.unstable_wrap = unstable_wrap;
  })();
}


/***/ }),

/***/ "./node_modules/scheduler/cjs/scheduler.development.js":
/*!*************************************************************!*\
  !*** ./node_modules/scheduler/cjs/scheduler.development.js ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, exports) => {

"use strict";
/** @license React v0.20.2
 * scheduler.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */



if (true) {
  (function() {
'use strict';

var enableSchedulerDebugging = false;
var enableProfiling = false;

var requestHostCallback;
var requestHostTimeout;
var cancelHostTimeout;
var requestPaint;
var hasPerformanceNow = typeof performance === 'object' && typeof performance.now === 'function';

if (hasPerformanceNow) {
  var localPerformance = performance;

  exports.unstable_now = function () {
    return localPerformance.now();
  };
} else {
  var localDate = Date;
  var initialTime = localDate.now();

  exports.unstable_now = function () {
    return localDate.now() - initialTime;
  };
}

if ( // If Scheduler runs in a non-DOM environment, it falls back to a naive
// implementation using setTimeout.
typeof window === 'undefined' || // Check if MessageChannel is supported, too.
typeof MessageChannel !== 'function') {
  // If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore,
  // fallback to a naive implementation.
  var _callback = null;
  var _timeoutID = null;

  var _flushCallback = function () {
    if (_callback !== null) {
      try {
        var currentTime = exports.unstable_now();
        var hasRemainingTime = true;

        _callback(hasRemainingTime, currentTime);

        _callback = null;
      } catch (e) {
        setTimeout(_flushCallback, 0);
        throw e;
      }
    }
  };

  requestHostCallback = function (cb) {
    if (_callback !== null) {
      // Protect against re-entrancy.
      setTimeout(requestHostCallback, 0, cb);
    } else {
      _callback = cb;
      setTimeout(_flushCallback, 0);
    }
  };

  requestHostTimeout = function (cb, ms) {
    _timeoutID = setTimeout(cb, ms);
  };

  cancelHostTimeout = function () {
    clearTimeout(_timeoutID);
  };

  exports.unstable_shouldYield = function () {
    return false;
  };

  requestPaint = exports.unstable_forceFrameRate = function () {};
} else {
  // Capture local references to native APIs, in case a polyfill overrides them.
  var _setTimeout = window.setTimeout;
  var _clearTimeout = window.clearTimeout;

  if (typeof console !== 'undefined') {
    // TODO: Scheduler no longer requires these methods to be polyfilled. But
    // maybe we want to continue warning if they don't exist, to preserve the
    // option to rely on it in the future?
    var requestAnimationFrame = window.requestAnimationFrame;
    var cancelAnimationFrame = window.cancelAnimationFrame;

    if (typeof requestAnimationFrame !== 'function') {
      // Using console['error'] to evade Babel and ESLint
      console['error']("This browser doesn't support requestAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://reactjs.org/link/react-polyfills');
    }

    if (typeof cancelAnimationFrame !== 'function') {
      // Using console['error'] to evade Babel and ESLint
      console['error']("This browser doesn't support cancelAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://reactjs.org/link/react-polyfills');
    }
  }

  var isMessageLoopRunning = false;
  var scheduledHostCallback = null;
  var taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main
  // thread, like user events. By default, it yields multiple times per frame.
  // It does not attempt to align with frame boundaries, since most tasks don't
  // need to be frame aligned; for those that do, use requestAnimationFrame.

  var yieldInterval = 5;
  var deadline = 0; // TODO: Make this configurable

  {
    // `isInputPending` is not available. Since we have no way of knowing if
    // there's pending input, always yield at the end of the frame.
    exports.unstable_shouldYield = function () {
      return exports.unstable_now() >= deadline;
    }; // Since we yield every frame regardless, `requestPaint` has no effect.


    requestPaint = function () {};
  }

  exports.unstable_forceFrameRate = function (fps) {
    if (fps < 0 || fps > 125) {
      // Using console['error'] to evade Babel and ESLint
      console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing frame rates higher than 125 fps is not supported');
      return;
    }

    if (fps > 0) {
      yieldInterval = Math.floor(1000 / fps);
    } else {
      // reset the framerate
      yieldInterval = 5;
    }
  };

  var performWorkUntilDeadline = function () {
    if (scheduledHostCallback !== null) {
      var currentTime = exports.unstable_now(); // Yield after `yieldInterval` ms, regardless of where we are in the vsync
      // cycle. This means there's always time remaining at the beginning of
      // the message event.

      deadline = currentTime + yieldInterval;
      var hasTimeRemaining = true;

      try {
        var hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);

        if (!hasMoreWork) {
          isMessageLoopRunning = false;
          scheduledHostCallback = null;
        } else {
          // If there's more work, schedule the next message event at the end
          // of the preceding one.
          port.postMessage(null);
        }
      } catch (error) {
        // If a scheduler task throws, exit the current browser task so the
        // error can be observed.
        port.postMessage(null);
        throw error;
      }
    } else {
      isMessageLoopRunning = false;
    } // Yielding to the browser will give it a chance to paint, so we can
  };

  var channel = new MessageChannel();
  var port = channel.port2;
  channel.port1.onmessage = performWorkUntilDeadline;

  requestHostCallback = function (callback) {
    scheduledHostCallback = callback;

    if (!isMessageLoopRunning) {
      isMessageLoopRunning = true;
      port.postMessage(null);
    }
  };

  requestHostTimeout = function (callback, ms) {
    taskTimeoutID = _setTimeout(function () {
      callback(exports.unstable_now());
    }, ms);
  };

  cancelHostTimeout = function () {
    _clearTimeout(taskTimeoutID);

    taskTimeoutID = -1;
  };
}

function push(heap, node) {
  var index = heap.length;
  heap.push(node);
  siftUp(heap, node, index);
}
function peek(heap) {
  var first = heap[0];
  return first === undefined ? null : first;
}
function pop(heap) {
  var first = heap[0];

  if (first !== undefined) {
    var last = heap.pop();

    if (last !== first) {
      heap[0] = last;
      siftDown(heap, last, 0);
    }

    return first;
  } else {
    return null;
  }
}

function siftUp(heap, node, i) {
  var index = i;

  while (true) {
    var parentIndex = index - 1 >>> 1;
    var parent = heap[parentIndex];

    if (parent !== undefined && compare(parent, node) > 0) {
      // The parent is larger. Swap positions.
      heap[parentIndex] = node;
      heap[index] = parent;
      index = parentIndex;
    } else {
      // The parent is smaller. Exit.
      return;
    }
  }
}

function siftDown(heap, node, i) {
  var index = i;
  var length = heap.length;

  while (index < length) {
    var leftIndex = (index + 1) * 2 - 1;
    var left = heap[leftIndex];
    var rightIndex = leftIndex + 1;
    var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those.

    if (left !== undefined && compare(left, node) < 0) {
      if (right !== undefined && compare(right, left) < 0) {
        heap[index] = right;
        heap[rightIndex] = node;
        index = rightIndex;
      } else {
        heap[index] = left;
        heap[leftIndex] = node;
        index = leftIndex;
      }
    } else if (right !== undefined && compare(right, node) < 0) {
      heap[index] = right;
      heap[rightIndex] = node;
      index = rightIndex;
    } else {
      // Neither child is smaller. Exit.
      return;
    }
  }
}

function compare(a, b) {
  // Compare sort index first, then task id.
  var diff = a.sortIndex - b.sortIndex;
  return diff !== 0 ? diff : a.id - b.id;
}

// TODO: Use symbols?
var ImmediatePriority = 1;
var UserBlockingPriority = 2;
var NormalPriority = 3;
var LowPriority = 4;
var IdlePriority = 5;

function markTaskErrored(task, ms) {
}

/* eslint-disable no-var */
// Math.pow(2, 30) - 1
// 0b111111111111111111111111111111

var maxSigned31BitInt = 1073741823; // Times out immediately

var IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out

var USER_BLOCKING_PRIORITY_TIMEOUT = 250;
var NORMAL_PRIORITY_TIMEOUT = 5000;
var LOW_PRIORITY_TIMEOUT = 10000; // Never times out

var IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt; // Tasks are stored on a min heap

var taskQueue = [];
var timerQueue = []; // Incrementing id counter. Used to maintain insertion order.

var taskIdCounter = 1; // Pausing the scheduler is useful for debugging.
var currentTask = null;
var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrancy.

var isPerformingWork = false;
var isHostCallbackScheduled = false;
var isHostTimeoutScheduled = false;

function advanceTimers(currentTime) {
  // Check for tasks that are no longer delayed and add them to the queue.
  var timer = peek(timerQueue);

  while (timer !== null) {
    if (timer.callback === null) {
      // Timer was cancelled.
      pop(timerQueue);
    } else if (timer.startTime <= currentTime) {
      // Timer fired. Transfer to the task queue.
      pop(timerQueue);
      timer.sortIndex = timer.expirationTime;
      push(taskQueue, timer);
    } else {
      // Remaining timers are pending.
      return;
    }

    timer = peek(timerQueue);
  }
}

function handleTimeout(currentTime) {
  isHostTimeoutScheduled = false;
  advanceTimers(currentTime);

  if (!isHostCallbackScheduled) {
    if (peek(taskQueue) !== null) {
      isHostCallbackScheduled = true;
      requestHostCallback(flushWork);
    } else {
      var firstTimer = peek(timerQueue);

      if (firstTimer !== null) {
        requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
      }
    }
  }
}

function flushWork(hasTimeRemaining, initialTime) {


  isHostCallbackScheduled = false;

  if (isHostTimeoutScheduled) {
    // We scheduled a timeout but it's no longer needed. Cancel it.
    isHostTimeoutScheduled = false;
    cancelHostTimeout();
  }

  isPerformingWork = true;
  var previousPriorityLevel = currentPriorityLevel;

  try {
    if (enableProfiling) {
      try {
        return workLoop(hasTimeRemaining, initialTime);
      } catch (error) {
        if (currentTask !== null) {
          var currentTime = exports.unstable_now();
          markTaskErrored(currentTask, currentTime);
          currentTask.isQueued = false;
        }

        throw error;
      }
    } else {
      // No catch in prod code path.
      return workLoop(hasTimeRemaining, initialTime);
    }
  } finally {
    currentTask = null;
    currentPriorityLevel = previousPriorityLevel;
    isPerformingWork = false;
  }
}

function workLoop(hasTimeRemaining, initialTime) {
  var currentTime = initialTime;
  advanceTimers(currentTime);
  currentTask = peek(taskQueue);

  while (currentTask !== null && !(enableSchedulerDebugging )) {
    if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || exports.unstable_shouldYield())) {
      // This currentTask hasn't expired, and we've reached the deadline.
      break;
    }

    var callback = currentTask.callback;

    if (typeof callback === 'function') {
      currentTask.callback = null;
      currentPriorityLevel = currentTask.priorityLevel;
      var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;

      var continuationCallback = callback(didUserCallbackTimeout);
      currentTime = exports.unstable_now();

      if (typeof continuationCallback === 'function') {
        currentTask.callback = continuationCallback;
      } else {

        if (currentTask === peek(taskQueue)) {
          pop(taskQueue);
        }
      }

      advanceTimers(currentTime);
    } else {
      pop(taskQueue);
    }

    currentTask = peek(taskQueue);
  } // Return whether there's additional work


  if (currentTask !== null) {
    return true;
  } else {
    var firstTimer = peek(timerQueue);

    if (firstTimer !== null) {
      requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
    }

    return false;
  }
}

function unstable_runWithPriority(priorityLevel, eventHandler) {
  switch (priorityLevel) {
    case ImmediatePriority:
    case UserBlockingPriority:
    case NormalPriority:
    case LowPriority:
    case IdlePriority:
      break;

    default:
      priorityLevel = NormalPriority;
  }

  var previousPriorityLevel = currentPriorityLevel;
  currentPriorityLevel = priorityLevel;

  try {
    return eventHandler();
  } finally {
    currentPriorityLevel = previousPriorityLevel;
  }
}

function unstable_next(eventHandler) {
  var priorityLevel;

  switch (currentPriorityLevel) {
    case ImmediatePriority:
    case UserBlockingPriority:
    case NormalPriority:
      // Shift down to normal priority
      priorityLevel = NormalPriority;
      break;

    default:
      // Anything lower than normal priority should remain at the current level.
      priorityLevel = currentPriorityLevel;
      break;
  }

  var previousPriorityLevel = currentPriorityLevel;
  currentPriorityLevel = priorityLevel;

  try {
    return eventHandler();
  } finally {
    currentPriorityLevel = previousPriorityLevel;
  }
}

function unstable_wrapCallback(callback) {
  var parentPriorityLevel = currentPriorityLevel;
  return function () {
    // This is a fork of runWithPriority, inlined for performance.
    var previousPriorityLevel = currentPriorityLevel;
    currentPriorityLevel = parentPriorityLevel;

    try {
      return callback.apply(this, arguments);
    } finally {
      currentPriorityLevel = previousPriorityLevel;
    }
  };
}

function unstable_scheduleCallback(priorityLevel, callback, options) {
  var currentTime = exports.unstable_now();
  var startTime;

  if (typeof options === 'object' && options !== null) {
    var delay = options.delay;

    if (typeof delay === 'number' && delay > 0) {
      startTime = currentTime + delay;
    } else {
      startTime = currentTime;
    }
  } else {
    startTime = currentTime;
  }

  var timeout;

  switch (priorityLevel) {
    case ImmediatePriority:
      timeout = IMMEDIATE_PRIORITY_TIMEOUT;
      break;

    case UserBlockingPriority:
      timeout = USER_BLOCKING_PRIORITY_TIMEOUT;
      break;

    case IdlePriority:
      timeout = IDLE_PRIORITY_TIMEOUT;
      break;

    case LowPriority:
      timeout = LOW_PRIORITY_TIMEOUT;
      break;

    case NormalPriority:
    default:
      timeout = NORMAL_PRIORITY_TIMEOUT;
      break;
  }

  var expirationTime = startTime + timeout;
  var newTask = {
    id: taskIdCounter++,
    callback: callback,
    priorityLevel: priorityLevel,
    startTime: startTime,
    expirationTime: expirationTime,
    sortIndex: -1
  };

  if (startTime > currentTime) {
    // This is a delayed task.
    newTask.sortIndex = startTime;
    push(timerQueue, newTask);

    if (peek(taskQueue) === null && newTask === peek(timerQueue)) {
      // All tasks are delayed, and this is the task with the earliest delay.
      if (isHostTimeoutScheduled) {
        // Cancel an existing timeout.
        cancelHostTimeout();
      } else {
        isHostTimeoutScheduled = true;
      } // Schedule a timeout.


      requestHostTimeout(handleTimeout, startTime - currentTime);
    }
  } else {
    newTask.sortIndex = expirationTime;
    push(taskQueue, newTask);
    // wait until the next time we yield.


    if (!isHostCallbackScheduled && !isPerformingWork) {
      isHostCallbackScheduled = true;
      requestHostCallback(flushWork);
    }
  }

  return newTask;
}

function unstable_pauseExecution() {
}

function unstable_continueExecution() {

  if (!isHostCallbackScheduled && !isPerformingWork) {
    isHostCallbackScheduled = true;
    requestHostCallback(flushWork);
  }
}

function unstable_getFirstCallbackNode() {
  return peek(taskQueue);
}

function unstable_cancelCallback(task) {
  // remove from the queue because you can't remove arbitrary nodes from an
  // array based heap, only the first one.)


  task.callback = null;
}

function unstable_getCurrentPriorityLevel() {
  return currentPriorityLevel;
}

var unstable_requestPaint = requestPaint;
var unstable_Profiling =  null;

exports.unstable_IdlePriority = IdlePriority;
exports.unstable_ImmediatePriority = ImmediatePriority;
exports.unstable_LowPriority = LowPriority;
exports.unstable_NormalPriority = NormalPriority;
exports.unstable_Profiling = unstable_Profiling;
exports.unstable_UserBlockingPriority = UserBlockingPriority;
exports.unstable_cancelCallback = unstable_cancelCallback;
exports.unstable_continueExecution = unstable_continueExecution;
exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;
exports.unstable_next = unstable_next;
exports.unstable_pauseExecution = unstable_pauseExecution;
exports.unstable_requestPaint = unstable_requestPaint;
exports.unstable_runWithPriority = unstable_runWithPriority;
exports.unstable_scheduleCallback = unstable_scheduleCallback;
exports.unstable_wrapCallback = unstable_wrapCallback;
  })();
}


/***/ }),

/***/ "./node_modules/scheduler/index.js":
/*!*****************************************!*\
  !*** ./node_modules/scheduler/index.js ***!
  \*****************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


if (false) {} else {
  module.exports = __webpack_require__(/*! ./cjs/scheduler.development.js */ "./node_modules/scheduler/cjs/scheduler.development.js");
}


/***/ }),

/***/ "./node_modules/scheduler/tracing.js":
/*!*******************************************!*\
  !*** ./node_modules/scheduler/tracing.js ***!
  \*******************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

"use strict";


if (false) {} else {
  module.exports = __webpack_require__(/*! ./cjs/scheduler-tracing.development.js */ "./node_modules/scheduler/cjs/scheduler-tracing.development.js");
}


/***/ }),

/***/ "./node_modules/tabbable/dist/index.esm.js":
/*!*************************************************!*\
  !*** ./node_modules/tabbable/dist/index.esm.js ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "focusable": () => (/* binding */ focusable),
/* harmony export */   "isFocusable": () => (/* binding */ isFocusable),
/* harmony export */   "isTabbable": () => (/* binding */ isTabbable),
/* harmony export */   "tabbable": () => (/* binding */ tabbable)
/* harmony export */ });
/*!
* tabbable 5.2.1
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/
var candidateSelectors = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable="false"])', 'details>summary:first-of-type', 'details'];
var candidateSelector = /* #__PURE__ */candidateSelectors.join(',');
var matches = typeof Element === 'undefined' ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;

var getCandidates = function getCandidates(el, includeContainer, filter) {
  var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));

  if (includeContainer && matches.call(el, candidateSelector)) {
    candidates.unshift(el);
  }

  candidates = candidates.filter(filter);
  return candidates;
};

var isContentEditable = function isContentEditable(node) {
  return node.contentEditable === 'true';
};

var getTabindex = function getTabindex(node) {
  var tabindexAttr = parseInt(node.getAttribute('tabindex'), 10);

  if (!isNaN(tabindexAttr)) {
    return tabindexAttr;
  } // Browsers do not return `tabIndex` correctly for contentEditable nodes;
  // so if they don't have a tabindex attribute specifically set, assume it's 0.


  if (isContentEditable(node)) {
    return 0;
  } // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default
  //  `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,
  //  yet they are still part of the regular tab order; in FF, they get a default
  //  `tabIndex` of 0; since Chrome still puts those elements in the regular tab
  //  order, consider their tab index to be 0.


  if ((node.nodeName === 'AUDIO' || node.nodeName === 'VIDEO' || node.nodeName === 'DETAILS') && node.getAttribute('tabindex') === null) {
    return 0;
  }

  return node.tabIndex;
};

var sortOrderedTabbables = function sortOrderedTabbables(a, b) {
  return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
};

var isInput = function isInput(node) {
  return node.tagName === 'INPUT';
};

var isHiddenInput = function isHiddenInput(node) {
  return isInput(node) && node.type === 'hidden';
};

var isDetailsWithSummary = function isDetailsWithSummary(node) {
  var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {
    return child.tagName === 'SUMMARY';
  });
  return r;
};

var getCheckedRadio = function getCheckedRadio(nodes, form) {
  for (var i = 0; i < nodes.length; i++) {
    if (nodes[i].checked && nodes[i].form === form) {
      return nodes[i];
    }
  }
};

var isTabbableRadio = function isTabbableRadio(node) {
  if (!node.name) {
    return true;
  }

  var radioScope = node.form || node.ownerDocument;

  var queryRadios = function queryRadios(name) {
    return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
  };

  var radioSet;

  if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {
    radioSet = queryRadios(window.CSS.escape(node.name));
  } else {
    try {
      radioSet = queryRadios(node.name);
    } catch (err) {
      // eslint-disable-next-line no-console
      console.error('Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s', err.message);
      return false;
    }
  }

  var checked = getCheckedRadio(radioSet, node.form);
  return !checked || checked === node;
};

var isRadio = function isRadio(node) {
  return isInput(node) && node.type === 'radio';
};

var isNonTabbableRadio = function isNonTabbableRadio(node) {
  return isRadio(node) && !isTabbableRadio(node);
};

var isHidden = function isHidden(node, displayCheck) {
  if (getComputedStyle(node).visibility === 'hidden') {
    return true;
  }

  var isDirectSummary = matches.call(node, 'details>summary:first-of-type');
  var nodeUnderDetails = isDirectSummary ? node.parentElement : node;

  if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {
    return true;
  }

  if (!displayCheck || displayCheck === 'full') {
    while (node) {
      if (getComputedStyle(node).display === 'none') {
        return true;
      }

      node = node.parentElement;
    }
  } else if (displayCheck === 'non-zero-area') {
    var _node$getBoundingClie = node.getBoundingClientRect(),
        width = _node$getBoundingClie.width,
        height = _node$getBoundingClie.height;

    return width === 0 && height === 0;
  }

  return false;
}; // form fields (nested) inside a disabled fieldset are not focusable/tabbable
//  unless they are in the _first_ <legend> element of the top-most disabled
//  fieldset


var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
  if (isInput(node) || node.tagName === 'SELECT' || node.tagName === 'TEXTAREA' || node.tagName === 'BUTTON') {
    var parentNode = node.parentElement;

    while (parentNode) {
      if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {
        // look for the first <legend> as an immediate child of the disabled
        //  <fieldset>: if the node is in that legend, it'll be enabled even
        //  though the fieldset is disabled; otherwise, the node is in a
        //  secondary/subsequent legend, or somewhere else within the fieldset
        //  (however deep nested) and it'll be disabled
        for (var i = 0; i < parentNode.children.length; i++) {
          var child = parentNode.children.item(i);

          if (child.tagName === 'LEGEND') {
            if (child.contains(node)) {
              return false;
            } // the node isn't in the first legend (in doc order), so no matter
            //  where it is now, it'll be disabled


            return true;
          }
        } // the node isn't in a legend, so no matter where it is now, it'll be disabled


        return true;
      }

      parentNode = parentNode.parentElement;
    }
  } // else, node's tabbable/focusable state should not be affected by a fieldset's
  //  enabled/disabled state


  return false;
};

var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
  if (node.disabled || isHiddenInput(node) || isHidden(node, options.displayCheck) || // For a details element with a summary, the summary element gets the focus
  isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
    return false;
  }

  return true;
};

var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
  if (!isNodeMatchingSelectorFocusable(options, node) || isNonTabbableRadio(node) || getTabindex(node) < 0) {
    return false;
  }

  return true;
};

var tabbable = function tabbable(el, options) {
  options = options || {};
  var regularTabbables = [];
  var orderedTabbables = [];
  var candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
  candidates.forEach(function (candidate, i) {
    var candidateTabindex = getTabindex(candidate);

    if (candidateTabindex === 0) {
      regularTabbables.push(candidate);
    } else {
      orderedTabbables.push({
        documentOrder: i,
        tabIndex: candidateTabindex,
        node: candidate
      });
    }
  });
  var tabbableNodes = orderedTabbables.sort(sortOrderedTabbables).map(function (a) {
    return a.node;
  }).concat(regularTabbables);
  return tabbableNodes;
};

var focusable = function focusable(el, options) {
  options = options || {};
  var candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
  return candidates;
};

var isTabbable = function isTabbable(node, options) {
  options = options || {};

  if (!node) {
    throw new Error('No node provided');
  }

  if (matches.call(node, candidateSelector) === false) {
    return false;
  }

  return isNodeMatchingSelectorTabbable(options, node);
};

var focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe').join(',');

var isFocusable = function isFocusable(node, options) {
  options = options || {};

  if (!node) {
    throw new Error('No node provided');
  }

  if (matches.call(node, focusableCandidateSelector) === false) {
    return false;
  }

  return isNodeMatchingSelectorFocusable(options, node);
};


//# sourceMappingURL=index.esm.js.map


/***/ }),

/***/ "./node_modules/tslib/tslib.es6.js":
/*!*****************************************!*\
  !*** ./node_modules/tslib/tslib.es6.js ***!
  \*****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "__extends": () => (/* binding */ __extends),
/* harmony export */   "__assign": () => (/* binding */ __assign),
/* harmony export */   "__rest": () => (/* binding */ __rest),
/* harmony export */   "__decorate": () => (/* binding */ __decorate),
/* harmony export */   "__param": () => (/* binding */ __param),
/* harmony export */   "__metadata": () => (/* binding */ __metadata),
/* harmony export */   "__awaiter": () => (/* binding */ __awaiter),
/* harmony export */   "__generator": () => (/* binding */ __generator),
/* harmony export */   "__createBinding": () => (/* binding */ __createBinding),
/* harmony export */   "__exportStar": () => (/* binding */ __exportStar),
/* harmony export */   "__values": () => (/* binding */ __values),
/* harmony export */   "__read": () => (/* binding */ __read),
/* harmony export */   "__spread": () => (/* binding */ __spread),
/* harmony export */   "__spreadArrays": () => (/* binding */ __spreadArrays),
/* harmony export */   "__spreadArray": () => (/* binding */ __spreadArray),
/* harmony export */   "__await": () => (/* binding */ __await),
/* harmony export */   "__asyncGenerator": () => (/* binding */ __asyncGenerator),
/* harmony export */   "__asyncDelegator": () => (/* binding */ __asyncDelegator),
/* harmony export */   "__asyncValues": () => (/* binding */ __asyncValues),
/* harmony export */   "__makeTemplateObject": () => (/* binding */ __makeTemplateObject),
/* harmony export */   "__importStar": () => (/* binding */ __importStar),
/* harmony export */   "__importDefault": () => (/* binding */ __importDefault),
/* harmony export */   "__classPrivateFieldGet": () => (/* binding */ __classPrivateFieldGet),
/* harmony export */   "__classPrivateFieldSet": () => (/* binding */ __classPrivateFieldSet)
/* harmony export */ });
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise */

var extendStatics = function(d, b) {
    extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
    return extendStatics(d, b);
};

function __extends(d, b) {
    if (typeof b !== "function" && b !== null)
        throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
    extendStatics(d, b);
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}

var __assign = function() {
    __assign = Object.assign || function __assign(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
        }
        return t;
    }
    return __assign.apply(this, arguments);
}

function __rest(s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
}

function __decorate(decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    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;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
}

function __param(paramIndex, decorator) {
    return function (target, key) { decorator(target, key, paramIndex); }
}

function __metadata(metadataKey, metadataValue) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
}

function __awaiter(thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
}

function __generator(thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
}

var __createBinding = Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
});

function __exportStar(m, o) {
    for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
}

function __values(o) {
    var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
    if (m) return m.call(o);
    if (o && typeof o.length === "number") return {
        next: function () {
            if (o && i >= o.length) o = void 0;
            return { value: o && o[i++], done: !o };
        }
    };
    throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
}

function __read(o, n) {
    var m = typeof Symbol === "function" && o[Symbol.iterator];
    if (!m) return o;
    var i = m.call(o), r, ar = [], e;
    try {
        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
    }
    catch (error) { e = { error: error }; }
    finally {
        try {
            if (r && !r.done && (m = i["return"])) m.call(i);
        }
        finally { if (e) throw e.error; }
    }
    return ar;
}

/** @deprecated */
function __spread() {
    for (var ar = [], i = 0; i < arguments.length; i++)
        ar = ar.concat(__read(arguments[i]));
    return ar;
}

/** @deprecated */
function __spreadArrays() {
    for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
    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];
    return r;
}

function __spreadArray(to, from, pack) {
    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
        if (ar || !(i in from)) {
            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
            ar[i] = from[i];
        }
    }
    return to.concat(ar || Array.prototype.slice.call(from));
}

function __await(v) {
    return this instanceof __await ? (this.v = v, this) : new __await(v);
}

function __asyncGenerator(thisArg, _arguments, generator) {
    if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
    var g = generator.apply(thisArg, _arguments || []), i, q = [];
    return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
    function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
    function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
    function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
    function fulfill(value) { resume("next", value); }
    function reject(value) { resume("throw", value); }
    function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
}

function __asyncDelegator(o) {
    var i, p;
    return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
    function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
}

function __asyncValues(o) {
    if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
    var m = o[Symbol.asyncIterator], i;
    return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
    function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
    function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
}

function __makeTemplateObject(cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};

var __setModuleDefault = Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
};

function __importStar(mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
}

function __importDefault(mod) {
    return (mod && mod.__esModule) ? mod : { default: mod };
}

function __classPrivateFieldGet(receiver, state, kind, f) {
    if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
    if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
    return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
}

function __classPrivateFieldSet(receiver, state, value, kind, f) {
    if (kind === "m") throw new TypeError("Private method is not writable");
    if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
    if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
    return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
}


/***/ }),

/***/ "./node_modules/victory-area/es/area.js":
/*!**********************************************!*\
  !*** ./node_modules/victory-area/es/area.js ***!
  \**********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/lineRadial.js");
/* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/index.js");
/* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/line.js");
/* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/area.js");
/* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/areaRadial.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/common-props.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-primitives/path.js");


function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

/*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2] }]*/





var defined = function (d) {
  var y = d._y1 !== undefined ? d._y1 : d._y;
  return y !== null && y !== undefined && d._y0 !== null;
};

var getXAccessor = function (scale) {
  return function (d) {
    return scale.x(d._x1 !== undefined ? d._x1 : d._x);
  };
};

var getYAccessor = function (scale) {
  return function (d) {
    return scale.y(d._y1 !== undefined ? d._y1 : d._y);
  };
};

var getY0Accessor = function (scale) {
  return function (d) {
    return scale.y(d._y0);
  };
};

var getAngleAccessor = function (scale) {
  return function (d) {
    var x = scale.x(d._x1 !== undefined ? d._x1 : d._x);
    return -1 * x + Math.PI / 2;
  };
};

var toNewName = function (interpolation) {
  // d3 shape changed the naming scheme for interpolators from "basis" -> "curveBasis" etc.
  var capitalize = function (s) {
    return s && s[0].toUpperCase() + s.slice(1);
  };

  return "curve".concat(capitalize(interpolation));
};

var getLineFunction = function (props) {
  var polar = props.polar,
      scale = props.scale,
      horizontal = props.horizontal;
  var interpolationFunction = typeof props.interpolation === "function" && props.interpolation;
  var interpolationName = typeof props.interpolation === "string" && toNewName(props.interpolation);
  return polar ? d3_shape__WEBPACK_IMPORTED_MODULE_2__["default"]().defined(defined).curve(interpolationFunction || d3_shape__WEBPACK_IMPORTED_MODULE_3__["".concat(interpolationName, "Closed")]).angle(getAngleAccessor(scale)).radius(getYAccessor(scale)) : d3_shape__WEBPACK_IMPORTED_MODULE_4__["default"]().defined(defined).curve(interpolationFunction || d3_shape__WEBPACK_IMPORTED_MODULE_3__[interpolationName]).x(horizontal ? getYAccessor(scale) : getXAccessor(scale)).y(horizontal ? getXAccessor(scale) : getYAccessor(scale));
};

var getCartesianArea = function (props, interpolation) {
  var horizontal = props.horizontal,
      scale = props.scale;
  var interpolationFunction = typeof interpolation === "function" && interpolation;
  var interpolationName = typeof interpolation === "string" && interpolation;
  return horizontal ? d3_shape__WEBPACK_IMPORTED_MODULE_5__["default"]().defined(defined).curve(interpolationFunction || d3_shape__WEBPACK_IMPORTED_MODULE_3__[interpolationName]).x0(getY0Accessor(scale)).x1(getYAccessor(scale)).y(getXAccessor(scale)) : d3_shape__WEBPACK_IMPORTED_MODULE_5__["default"]().defined(defined).curve(interpolationFunction || d3_shape__WEBPACK_IMPORTED_MODULE_3__[interpolationName]).x(getXAccessor(scale)).y1(getYAccessor(scale)).y0(getY0Accessor(scale));
};

var getAreaFunction = function (props) {
  var polar = props.polar,
      scale = props.scale;
  var interpolationFunction = typeof props.interpolation === "function" && props.interpolation;
  var interpolationName = typeof props.interpolation === "string" && toNewName(props.interpolation);
  var interpolation = interpolationFunction || interpolationName;
  return polar ? d3_shape__WEBPACK_IMPORTED_MODULE_6__["default"]().defined(defined).curve(interpolationFunction || d3_shape__WEBPACK_IMPORTED_MODULE_3__["".concat(interpolationName, "Closed")]).angle(getAngleAccessor(scale)).outerRadius(getYAccessor(scale)).innerRadius(getY0Accessor(scale)) : getCartesianArea(props, interpolation);
};

var evaluateProps = function (props) {
  /**
   * Potential evaluated props are:
   * `ariaLabel`
   * `desc`
   * `id`
   * `style`
   * `tabIndex`
   */
  var ariaLabel = victory_core__WEBPACK_IMPORTED_MODULE_7__.evaluateProp(props.ariaLabel, props);
  var desc = victory_core__WEBPACK_IMPORTED_MODULE_7__.evaluateProp(props.desc, props);
  var id = victory_core__WEBPACK_IMPORTED_MODULE_7__.evaluateProp(props.id, props);
  var style = victory_core__WEBPACK_IMPORTED_MODULE_7__.evaluateStyle(lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    fill: "black"
  }, props.style), props);
  var tabIndex = victory_core__WEBPACK_IMPORTED_MODULE_7__.evaluateProp(props.tabIndex, props);
  return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
    ariaLabel: ariaLabel,
    desc: desc,
    id: id,
    style: style,
    tabIndex: tabIndex
  });
};

var Area = function (props) {
  props = evaluateProps(props);
  var _props = props,
      ariaLabel = _props.ariaLabel,
      role = _props.role,
      shapeRendering = _props.shapeRendering,
      className = _props.className,
      polar = _props.polar,
      origin = _props.origin,
      data = _props.data,
      pathComponent = _props.pathComponent,
      events = _props.events,
      groupComponent = _props.groupComponent,
      clipPath = _props.clipPath,
      id = _props.id,
      style = _props.style,
      desc = _props.desc,
      tabIndex = _props.tabIndex;
  var defaultTransform = polar && origin ? "translate(".concat(origin.x, ", ").concat(origin.y, ")") : undefined;
  var transform = props.transform || defaultTransform;
  var renderLine = style.stroke && style.stroke !== "none" && style.stroke !== "transparent";
  var areaFunction = getAreaFunction(props);
  var lineFunction = renderLine && getLineFunction(props);
  var areaStroke = style.stroke ? "none" : style.fill;

  var sharedProps = _objectSpread({
    "aria-label": ariaLabel,
    className: className,
    role: role,
    shapeRendering: shapeRendering,
    transform: transform
  }, events, {
    clipPath: clipPath,
    tabIndex: tabIndex
  });

  var area = react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(pathComponent, lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    key: "".concat(id, "-area"),
    style: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, style, {
      stroke: areaStroke
    }),
    d: areaFunction(data),
    desc: desc,
    tabIndex: tabIndex
  }, sharedProps));
  var line = renderLine ? react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(pathComponent, lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    key: "".concat(id, "-area-stroke"),
    style: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, style, {
      fill: "none"
    }),
    d: lineFunction(data)
  }, sharedProps)) : null;
  return renderLine ? react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(groupComponent, {}, [area, line]) : area;
};

Area.propTypes = _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_8__.primitiveProps, {
  groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().element),
  interpolation: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_9___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func)]),
  pathComponent: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().element)
});
Area.defaultProps = {
  groupComponent: react__WEBPACK_IMPORTED_MODULE_1__.createElement("g", null),
  pathComponent: react__WEBPACK_IMPORTED_MODULE_1__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_10__["default"], null),
  role: "presentation",
  shapeRendering: "auto"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Area);

/***/ }),

/***/ "./node_modules/victory-area/es/helper-methods.js":
/*!********************************************************!*\
  !*** ./node_modules/victory-area/es/helper-methods.js ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getDataWithBaseline": () => (/* binding */ getDataWithBaseline),
/* harmony export */   "getBaseProps": () => (/* binding */ getBaseProps)
/* harmony export */ });
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js");
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/data.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/scale.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/collection.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/domain.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/label-helpers.js");



var getDataWithBaseline = function (props, scale) {
  var data = victory_core__WEBPACK_IMPORTED_MODULE_2__.getData(props);

  if (data.length < 2) {
    data = [];
  }

  var getDefaultMin = function (axis) {
    var defaultZero = victory_core__WEBPACK_IMPORTED_MODULE_3__.getType(scale[axis]) === "log" ? 1 / Number.MAX_SAFE_INTEGER : 0;
    var domain = scale[axis].domain();
    var minY = victory_core__WEBPACK_IMPORTED_MODULE_4__.getMinValue(domain);
    var maxY = victory_core__WEBPACK_IMPORTED_MODULE_4__.getMaxValue(domain);
    var defaultMin = defaultZero;

    if (minY < 0 && maxY <= 0) {
      defaultMin = maxY;
    } else if (minY >= 0 && maxY > 0) {
      defaultMin = minY;
    }

    return victory_core__WEBPACK_IMPORTED_MODULE_4__.containsDates(domain) ? new Date(defaultMin) : defaultMin;
  };

  return data.map(function (datum) {
    var _y1 = datum._y1 !== undefined ? datum._y1 : datum._y;

    var _y0 = datum._y0 !== undefined ? datum._y0 : getDefaultMin("y");

    var _x1 = datum._x1 !== undefined ? datum._x1 : datum._x;

    var _x0 = datum._x0 !== undefined ? datum._x0 : getDefaultMin("x");

    return lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, datum, {
      _y0: _y0,
      _y1: _y1,
      _x0: _x0,
      _x1: _x1
    });
  });
};

var getCalculatedValues = function (props) {
  var polar = props.polar;
  var defaultStyles = victory_core__WEBPACK_IMPORTED_MODULE_5__.getDefaultStyles(props, "area");
  var style = victory_core__WEBPACK_IMPORTED_MODULE_5__.getStyles(props.style, defaultStyles);
  var range = {
    x: victory_core__WEBPACK_IMPORTED_MODULE_5__.getRange(props, "x"),
    y: victory_core__WEBPACK_IMPORTED_MODULE_5__.getRange(props, "y")
  };
  var domain = {
    x: victory_core__WEBPACK_IMPORTED_MODULE_6__.getDomainWithZero(props, "x"),
    y: victory_core__WEBPACK_IMPORTED_MODULE_6__.getDomainWithZero(props, "y")
  };
  var scale = {
    x: victory_core__WEBPACK_IMPORTED_MODULE_3__.getBaseScale(props, "x").domain(domain.x).range(props.horizontal ? range.y : range.x),
    y: victory_core__WEBPACK_IMPORTED_MODULE_3__.getBaseScale(props, "y").domain(domain.y).range(props.horizontal ? range.x : range.y)
  };
  var origin = polar ? props.origin || victory_core__WEBPACK_IMPORTED_MODULE_5__.getPolarOrigin(props) : undefined;
  var data = getDataWithBaseline(props, scale);
  return {
    style: style,
    data: data,
    scale: scale,
    domain: domain,
    origin: origin
  };
};

var getBaseProps = function (props, fallbackProps) {
  var modifiedProps = victory_core__WEBPACK_IMPORTED_MODULE_5__.modifyProps(props, fallbackProps, "area");
  props = lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, modifiedProps, getCalculatedValues(modifiedProps));
  var _props = props,
      data = _props.data,
      domain = _props.domain,
      events = _props.events,
      groupComponent = _props.groupComponent,
      height = _props.height,
      horizontal = _props.horizontal,
      interpolation = _props.interpolation,
      origin = _props.origin,
      padding = _props.padding,
      polar = _props.polar,
      scale = _props.scale,
      sharedEvents = _props.sharedEvents,
      standalone = _props.standalone,
      style = _props.style,
      theme = _props.theme,
      width = _props.width,
      labels = _props.labels,
      name = _props.name,
      disableInlineStyles = _props.disableInlineStyles;
  var initialChildProps = {
    parent: {
      style: style.parent,
      width: width,
      height: height,
      scale: scale,
      data: data,
      domain: domain,
      standalone: standalone,
      theme: theme,
      polar: polar,
      origin: origin,
      padding: padding,
      name: name,
      horizontal: horizontal
    },
    all: {
      data: {
        horizontal: horizontal,
        polar: polar,
        origin: origin,
        scale: scale,
        data: data,
        interpolation: interpolation,
        groupComponent: groupComponent,
        style: disableInlineStyles ? {} : style.data,
        disableInlineStyles: disableInlineStyles
      }
    }
  };
  return data.reduce(function (childProps, datum, index) {
    var text = victory_core__WEBPACK_IMPORTED_MODULE_7__.getText(props, datum, index);

    if (text !== undefined && text !== null || labels && (events || sharedEvents)) {
      var eventKey = !lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(datum.eventKey) ? datum.eventKey : index;
      childProps[eventKey] = {
        labels: victory_core__WEBPACK_IMPORTED_MODULE_7__.getProps(props, index)
      };
    }

    return childProps;
  }, initialChildProps);
};

/***/ }),

/***/ "./node_modules/victory-area/es/victory-area.js":
/*!******************************************************!*\
  !*** ./node_modules/victory-area/es/victory-area.js ***!
  \******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./helper-methods */ "./node_modules/victory-area/es/helper-methods.js");
/* harmony import */ var _area__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./area */ "./node_modules/victory-area/es/area.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/common-props.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/prop-types.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-container/victory-container.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-clip-container/victory-clip-container.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-label/victory-label.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-theme/victory-theme.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/default-transitions.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/domain.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/data.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/add-events.js");
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }






var fallbackProps = {
  width: 450,
  height: 300,
  padding: 50,
  interpolation: "linear"
};
var options = {
  components: [{
    name: "parent",
    index: "parent"
  }, {
    name: "data",
    index: "all"
  }, {
    name: "labels"
  }]
};

var VictoryArea =
/*#__PURE__*/
function (_React$Component) {
  _inherits(VictoryArea, _React$Component);

  function VictoryArea() {
    _classCallCheck(this, VictoryArea);

    return _possibleConstructorReturn(this, (VictoryArea.__proto__ || Object.getPrototypeOf(VictoryArea)).apply(this, arguments));
  }

  _createClass(VictoryArea, [{
    key: "shouldAnimate",
    // Overridden in native versions
    value: function shouldAnimate() {
      return !!this.props.animate;
    }
  }, {
    key: "render",
    value: function render() {
      var animationWhitelist = VictoryArea.animationWhitelist,
          role = VictoryArea.role;
      var props = victory_core__WEBPACK_IMPORTED_MODULE_1__.modifyProps(this.props, fallbackProps, role);

      if (this.shouldAnimate()) {
        return this.animateComponent(props, animationWhitelist);
      }

      var children = this.renderContinuousData(props);
      return props.standalone ? this.renderContainer(props.containerComponent, children) : children;
    }
  }]);

  return VictoryArea;
}(react__WEBPACK_IMPORTED_MODULE_0__.Component);

Object.defineProperty(VictoryArea, "animationWhitelist", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: ["data", "domain", "height", "padding", "style", "width"]
});
Object.defineProperty(VictoryArea, "propTypes", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_2__.baseProps, victory_core__WEBPACK_IMPORTED_MODULE_2__.dataProps, {
    interpolation: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOf(["basis", "cardinal", "catmullRom", "linear", "monotoneX", "monotoneY", "natural", "step", "stepAfter", "stepBefore"]), (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func)]),
    label: victory_core__WEBPACK_IMPORTED_MODULE_4__.deprecated((prop_types__WEBPACK_IMPORTED_MODULE_3___default().string), "Use `labels` instead for individual data labels")
  })
});
Object.defineProperty(VictoryArea, "defaultProps", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: {
    containerComponent: react__WEBPACK_IMPORTED_MODULE_0__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__["default"], null),
    dataComponent: react__WEBPACK_IMPORTED_MODULE_0__.createElement(_area__WEBPACK_IMPORTED_MODULE_6__["default"], null),
    groupComponent: react__WEBPACK_IMPORTED_MODULE_0__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__["default"], null),
    labelComponent: react__WEBPACK_IMPORTED_MODULE_0__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__["default"], {
      renderInPortal: true
    }),
    samples: 50,
    sortKey: "x",
    sortOrder: "ascending",
    standalone: true,
    theme: victory_core__WEBPACK_IMPORTED_MODULE_9__["default"].grayscale
  }
});
Object.defineProperty(VictoryArea, "displayName", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: "VictoryArea"
});
Object.defineProperty(VictoryArea, "role", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: "area"
});
Object.defineProperty(VictoryArea, "continuous", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: true
});
Object.defineProperty(VictoryArea, "defaultTransitions", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: victory_core__WEBPACK_IMPORTED_MODULE_10__.continuousTransitions()
});
Object.defineProperty(VictoryArea, "defaultPolarTransitions", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: victory_core__WEBPACK_IMPORTED_MODULE_10__.continuousPolarTransitions()
});
Object.defineProperty(VictoryArea, "getDomain", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: victory_core__WEBPACK_IMPORTED_MODULE_11__.getDomainWithZero
});
Object.defineProperty(VictoryArea, "getData", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: victory_core__WEBPACK_IMPORTED_MODULE_12__.getData
});
Object.defineProperty(VictoryArea, "getBaseProps", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: function (props) {
    return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_13__.getBaseProps)(props, fallbackProps);
  }
});
Object.defineProperty(VictoryArea, "expectedComponents", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: ["dataComponent", "labelComponent", "groupComponent", "containerComponent"]
});
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_14__["default"])(VictoryArea, options));

/***/ }),

/***/ "./node_modules/victory-axis/es/helper-methods.js":
/*!********************************************************!*\
  !*** ./node_modules/victory-axis/es/helper-methods.js ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getStyles": () => (/* binding */ getStyles),
/* harmony export */   "getBaseProps": () => (/* binding */ getBaseProps)
/* harmony export */ });
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js");
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/axis.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/scale.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/helpers.js");



function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }


var orientationSign = {
  top: -1,
  left: -1,
  right: 1,
  bottom: 1
};

var exists = function (val) {
  return val !== null && val !== undefined;
};

var getCurrentAxis = function (props, axis) {
  var orientation = props.orientation,
      horizontal = props.horizontal;

  if (orientation) {
    var dimensions = {
      top: "x",
      bottom: "x",
      left: "y",
      right: "y"
    };
    return dimensions[orientation];
  }

  var otherAxis = axis === "x" ? "y" : "x";
  return horizontal ? otherAxis : axis;
};

var getScale = function (props) {
  var axis = victory_core__WEBPACK_IMPORTED_MODULE_2__.getAxis(props);
  var currentAxis = getCurrentAxis(props, axis);
  var scale = victory_core__WEBPACK_IMPORTED_MODULE_3__.getBaseScale(props, axis);
  var propsDomain = props.domain && props.domain[axis];
  var domain = propsDomain || victory_core__WEBPACK_IMPORTED_MODULE_2__.getDomain(props) || scale.domain();
  scale.range(victory_core__WEBPACK_IMPORTED_MODULE_4__.getRange(props, currentAxis));
  scale.domain(domain);
  return scale;
};

var getStyleObject = function (props) {
  var theme = props.theme,
      dependentAxis = props.dependentAxis;
  var generalAxisStyle = theme && theme.axis && theme.axis.style;
  var axisType = dependentAxis ? "dependentAxis" : "independentAxis";
  var specificAxisStyle = theme && theme[axisType] && theme[axisType].style;

  var mergeStyles = function () {
    var styleNamespaces = ["axis", "axisLabel", "grid", "parent", "tickLabels", "ticks"];
    return styleNamespaces.reduce(function (memo, curr) {
      memo[curr] = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, specificAxisStyle[curr], generalAxisStyle[curr]);
      return memo;
    }, {});
  };

  return generalAxisStyle && specificAxisStyle ? mergeStyles() : specificAxisStyle || generalAxisStyle;
};

var getStyles = function (props, styleObject) {
  var style = props.style || {};
  styleObject = styleObject || {};
  var parentStyleProps = {
    height: "100%",
    width: "100%"
  };
  return {
    parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(style.parent, styleObject.parent, parentStyleProps),
    axis: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.axis, styleObject.axis),
    axisLabel: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.axisLabel, styleObject.axisLabel),
    grid: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.grid, styleObject.grid),
    ticks: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.ticks, styleObject.ticks),
    tickLabels: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.tickLabels, styleObject.tickLabels)
  };
};

var getTickProps = function (layout, style, datum) {
  var position = layout.position,
      transform = layout.transform;
  return {
    x1: transform.x,
    y1: transform.y,
    x2: transform.x + position.x2,
    y2: transform.y + position.y2,
    style: style,
    datum: datum
  };
}; // eslint-disable-next-line max-params


var getTickLabelProps = function (layout, style, anchors, datum, text) {
  var position = layout.position,
      transform = layout.transform;
  return {
    style: style,
    x: transform.x + position.x,
    y: transform.y + position.y,
    verticalAnchor: anchors.verticalAnchor,
    textAnchor: anchors.textAnchor,
    angle: style.angle,
    text: text,
    datum: datum
  };
};

var getGridProps = function (layout, style, datum) {
  var edge = layout.edge,
      transform = layout.transform;
  return {
    x1: transform.x,
    y1: transform.y,
    x2: edge.x + transform.x,
    y2: edge.y + transform.y,
    style: style,
    datum: datum
  };
};

var getAxisProps = function (modifiedProps, calculatedValues, globalTransform) {
  var style = calculatedValues.style,
      padding = calculatedValues.padding,
      isVertical = calculatedValues.isVertical;
  var width = modifiedProps.width,
      height = modifiedProps.height;
  return {
    style: style.axis,
    x1: isVertical ? globalTransform.x : padding.left + globalTransform.x,
    x2: isVertical ? globalTransform.x : width - padding.right + globalTransform.x,
    y1: isVertical ? padding.top + globalTransform.y : globalTransform.y,
    y2: isVertical ? height - padding.bottom + globalTransform.y : globalTransform.y
  };
};

var getEvaluatedStyles = function (style, props) {
  return {
    tickStyle: victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(style.ticks, props),
    labelStyle: victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(style.tickLabels, props),
    gridStyle: victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(style.grid, props)
  };
};

var getAxisLabelProps = function (props, calculatedValues, globalTransform) {
  var style = calculatedValues.style,
      orientation = calculatedValues.orientation,
      padding = calculatedValues.padding,
      labelPadding = calculatedValues.labelPadding,
      isVertical = calculatedValues.isVertical;
  var sign = orientationSign[orientation];
  var hPadding = padding.left + padding.right;
  var vPadding = padding.top + padding.bottom;
  var verticalAnchor = sign < 0 ? "end" : "start";
  var labelStyle = style.axisLabel;
  var angle = isVertical ? -90 : 0; // eslint-disable-line no-magic-numbers

  var x = isVertical ? globalTransform.x + sign * labelPadding : (props.width - hPadding) / 2 + padding.left + globalTransform.x;
  var y = isVertical ? (props.height - vPadding) / 2 + padding.top + globalTransform.y : sign * labelPadding + globalTransform.y;
  return {
    x: x,
    y: y,
    verticalAnchor: labelStyle.verticalAnchor || verticalAnchor,
    textAnchor: labelStyle.textAnchor || "middle",
    angle: labelStyle.angle === undefined ? angle : labelStyle.angle,
    style: labelStyle,
    text: props.label
  };
};

var getAnchors = function (orientation, isVertical) {
  var anchorOrientation = {
    top: "end",
    left: "end",
    right: "start",
    bottom: "start"
  };
  var anchor = anchorOrientation[orientation];
  return {
    textAnchor: isVertical ? anchor : "middle",
    verticalAnchor: isVertical ? "middle" : anchor
  };
};

var getLabelPadding = function (props, style) {
  var labelStyle = style.axisLabel || {};

  if (labelStyle.padding !== undefined && labelStyle.padding !== null) {
    return labelStyle.padding;
  }

  var isVertical = victory_core__WEBPACK_IMPORTED_MODULE_2__.isVertical(props); // TODO: magic numbers

  /*eslint-disable no-magic-numbers*/

  var fontSize = labelStyle.fontSize || 14;
  return props.label ? fontSize * (isVertical ? 2.3 : 1.6) : 0;
  /*eslint-enable no-magic-numbers*/
};

var getDefaultOrientations = function (axis, originSign, horizontal) {
  var sign = originSign || "positive";
  var orientations = {
    positive: {
      x: "bottom",
      y: "left"
    },
    negative: {
      x: "top",
      y: "right"
    }
  };
  var horizontalOrientations = {
    positive: {
      x: "left",
      y: "bottom"
    },
    negative: {
      x: "right",
      y: "top"
    }
  };
  return horizontal ? horizontalOrientations[sign][axis] : orientations[sign][axis];
};

var getStandaloneOffset = function (props, calculatedValues) {
  var style = calculatedValues.style,
      scale = calculatedValues.scale,
      orientation = calculatedValues.orientation,
      padding = calculatedValues.padding,
      axis = calculatedValues.axis,
      ticks = calculatedValues.ticks,
      stringTicks = calculatedValues.stringTicks,
      isVertical = calculatedValues.isVertical,
      labelPadding = calculatedValues.labelPadding;
  var polar = props.polar,
      horizontal = props.horizontal;
  var sharedProps = {
    scale: _defineProperty({}, axis, scale),
    polar: polar,
    horizontal: horizontal,
    ticks: ticks,
    stringTicks: stringTicks
  };
  var xPadding = orientation === "right" ? padding.right : padding.left;
  var yPadding = orientation === "top" ? padding.top : padding.bottom;
  var offsetX = props.offsetX !== null && props.offsetX !== undefined ? props.offsetX : xPadding;
  var offsetY = props.offsetY !== null && props.offsetY !== undefined ? props.offsetY : yPadding;
  var fontSize = style.axisLabel.fontSize || 14; // eslint-disable-line no-magic-numbers

  var tickSizes = ticks.map(function (data, index) {
    var tick = stringTicks ? props.tickValues[data - 1] : data;
    var tickStyle = victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(style.ticks, lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, sharedProps, {
      tick: tick,
      index: index
    }));
    return tickStyle.size || 0;
  });
  var totalPadding = fontSize + 2 * Math.max.apply(Math, _toConsumableArray(tickSizes)) + labelPadding;
  var minimumPadding = 1.2 * fontSize; // eslint-disable-line no-magic-numbers

  var x = isVertical ? totalPadding : minimumPadding;
  var y = isVertical ? minimumPadding : totalPadding;
  return {
    x: offsetX !== null && offsetX !== undefined ? offsetX : x,
    y: offsetY !== null && offsetY !== undefined ? offsetY : y
  };
}; // eslint-disable-next-line complexity


var getOffset = function (props, calculatedValues) {
  var scale = calculatedValues.scale,
      origin = calculatedValues.origin,
      orientation = calculatedValues.orientation,
      orientations = calculatedValues.orientations,
      domain = calculatedValues.domain,
      padding = calculatedValues.padding;
  var top = padding.top,
      bottom = padding.bottom,
      left = padding.left,
      right = padding.right;
  var calculatedOrientation = {
    x: orientation === "bottom" || orientation === "top" ? orientation : orientations.x,
    y: orientation === "left" || orientation === "right" ? orientation : orientations.y
  }; // make the axes line up, and cross when appropriate

  var orientationOffset = {
    x: calculatedOrientation.y === "left" ? left : right,
    y: calculatedOrientation.x === "bottom" ? bottom : top
  };
  var originOffset = {
    x: calculatedOrientation.y === "left" ? 0 : props.width,
    y: calculatedOrientation.x === "bottom" ? props.height : 0
  };
  var originPosition = {
    x: origin.x === domain.x[0] || origin.x === domain.x[1] ? 0 : scale.x(origin.x),
    y: origin.y === domain.y[0] || origin.y === domain.y[1] ? 0 : scale.y(origin.y)
  };
  var x = originPosition.x ? Math.abs(originOffset.x - originPosition.x) : orientationOffset.x;
  var y = originPosition.y ? Math.abs(originOffset.y - originPosition.y) : orientationOffset.y;
  var offsetX = exists(props.offsetX) ? props.offsetX : x;
  var offsetY = exists(props.offsetY) ? props.offsetY : y;
  return {
    x: offsetX,
    y: offsetY
  };
}; // eslint-disable-next-line complexity


var getHorizontalOffset = function (props, calculatedValues) {
  var scale = calculatedValues.scale,
      origin = calculatedValues.origin,
      orientation = calculatedValues.orientation,
      orientations = calculatedValues.orientations,
      domain = calculatedValues.domain,
      padding = calculatedValues.padding;
  var top = padding.top,
      bottom = padding.bottom,
      left = padding.left,
      right = padding.right;
  var calculatedOrientation = {
    y: orientation === "bottom" || orientation === "top" ? orientation : orientations.x,
    x: orientation === "left" || orientation === "right" ? orientation : orientations.y
  }; // make the axes line up, and cross when appropriate

  var orientationOffset = {
    x: calculatedOrientation.y === "bottom" ? bottom : top,
    y: calculatedOrientation.x === "left" ? left : right
  };
  var originOffset = {
    y: calculatedOrientation.x === "left" ? 0 : props.width,
    x: calculatedOrientation.y === "bottom" ? props.height : 0
  };
  var originPosition = {
    x: origin.x === domain.x[0] || origin.x === domain.x[1] ? 0 : scale.x(origin.x),
    y: origin.y === domain.y[0] || origin.y === domain.y[1] ? 0 : scale.y(origin.y)
  };
  var y = originPosition.x ? Math.abs(originOffset.x - originPosition.x) : orientationOffset.x;
  var x = originPosition.y ? Math.abs(originOffset.y - originPosition.y) : orientationOffset.y;
  var offsetX = exists(props.offsetX) ? props.offsetX : x;
  var offsetY = exists(props.offsetY) ? props.offsetY : y;
  return {
    x: offsetX,
    y: offsetY
  };
};

var getTransform = function (props, calculatedValues, offset) {
  var orientation = calculatedValues.orientation,
      axis = calculatedValues.axis;
  var axisValue = victory_core__WEBPACK_IMPORTED_MODULE_2__.getAxisValue(props, axis);
  return {
    top: {
      x: 0,
      y: axisValue !== undefined ? axisValue : offset.y
    },
    bottom: {
      x: 0,
      y: axisValue !== undefined ? axisValue : props.height - offset.y
    },
    left: {
      x: axisValue !== undefined ? axisValue : offset.x,
      y: 0
    },
    right: {
      x: axisValue !== undefined ? axisValue : props.width - offset.x,
      y: 0
    }
  }[orientation];
};

var getTickPosition = function (style, orientation, isVertical) {
  var tickStyle = style.tickStyle,
      labelStyle = style.labelStyle;
  var size = tickStyle.size || 0;
  var tickPadding = tickStyle.padding || 0;
  var labelPadding = labelStyle.padding || 0;
  var tickSpacing = size + tickPadding + labelPadding;
  var sign = orientationSign[orientation];
  return {
    x: isVertical ? sign * tickSpacing : 0,
    x2: isVertical ? sign * size : 0,
    y: isVertical ? 0 : sign * tickSpacing,
    y2: isVertical ? 0 : sign * size
  };
};

var getTickTransform = function (tick, globalTransform, isVertical) {
  return {
    x: isVertical ? globalTransform.x : tick + globalTransform.x,
    y: isVertical ? tick + globalTransform.y : globalTransform.y
  };
};

var getGridEdge = function (props, calculatedValues) {
  var orientation = calculatedValues.orientation,
      padding = calculatedValues.padding,
      isVertical = calculatedValues.isVertical;
  var sign = -orientationSign[orientation];
  var x = isVertical ? sign * (props.width - (padding.left + padding.right)) : 0;
  var y = isVertical ? 0 : sign * (props.height - (padding.top + padding.bottom));
  return {
    x: x,
    y: y
  };
};

var getGridOffset = function (calculatedValues, offset) {
  var padding = calculatedValues.padding,
      orientation = calculatedValues.orientation,
      crossAxis = calculatedValues.crossAxis;
  var xPadding = orientation === "right" ? padding.right : padding.left;
  var yPadding = orientation === "top" ? padding.top : padding.bottom;
  return {
    x: crossAxis ? offset.x - xPadding : 0,
    y: crossAxis ? offset.y - yPadding : 0
  };
};

var getLayoutProps = function (modifiedProps, calculatedValues) {
  var offset;

  if (calculatedValues.domain.x && calculatedValues.domain.y) {
    offset = modifiedProps.horizontal ? getHorizontalOffset(modifiedProps, calculatedValues) : getOffset(modifiedProps, calculatedValues);
  } else {
    offset = getStandaloneOffset(modifiedProps, calculatedValues);
  }

  return {
    globalTransform: getTransform(modifiedProps, calculatedValues, offset),
    gridOffset: getGridOffset(calculatedValues, offset),
    gridEdge: getGridEdge(modifiedProps, calculatedValues)
  };
};

var getOrientation = function (props) {
  if (props.orientation) {
    return props.orientation;
  }

  var defaultOrientations = {
    dependent: props.horizontal ? "bottom" : "left",
    independent: props.horizontal ? "left" : "bottom"
  };
  return props.dependentAxis ? defaultOrientations.dependent : defaultOrientations.independent;
}; // eslint-disable-next-line complexity


var getCalculatedValues = function (props) {
  var defaultStyles = getStyleObject(props);
  var style = getStyles(props, defaultStyles);
  var padding = victory_core__WEBPACK_IMPORTED_MODULE_4__.getPadding(props);
  var labelPadding = getLabelPadding(props, style);
  var stringTicks = victory_core__WEBPACK_IMPORTED_MODULE_2__.stringTicks(props) ? props.tickValues : undefined;
  var axis = victory_core__WEBPACK_IMPORTED_MODULE_2__.getAxis(props);
  var axisDomain = victory_core__WEBPACK_IMPORTED_MODULE_2__.getDomain(props);
  var axisScale = getScale(props);
  var xAxisDomain = axis === "x" ? axisDomain : undefined;
  var yAxisDomain = axis === "y" ? axisDomain : undefined;
  var xAxisScale = axis === "x" ? axisScale : undefined;
  var yAxisScale = axis === "y" ? axisScale : undefined;
  var crossAxis = props.crossAxis === false || props.standalone === true ? false : true;
  var ticks = victory_core__WEBPACK_IMPORTED_MODULE_2__.getTicks(props, axisScale, crossAxis);
  var tickFormat = victory_core__WEBPACK_IMPORTED_MODULE_2__.getTickFormat(props, axisScale);
  var range = {
    x: victory_core__WEBPACK_IMPORTED_MODULE_4__.getRange(props, "x"),
    y: victory_core__WEBPACK_IMPORTED_MODULE_4__.getRange(props, "y")
  }; // use full domain if passed in from parent,
  // otherwise use the just the one axis available

  var domain = {
    x: props.domain && props.domain.x ? props.domain.x : xAxisDomain,
    y: props.domain && props.domain.y ? props.domain.y : yAxisDomain
  }; // use full scale if passed in from parent,
  // otherwise use the just the one axis available

  var scale = {
    x: props.domain && props.domain.x ? victory_core__WEBPACK_IMPORTED_MODULE_3__.getBaseScale(props, "x").domain(props.domain.x).range(props.horizontal ? range.y : range.x) : xAxisScale,
    y: props.domain && props.domain.y ? victory_core__WEBPACK_IMPORTED_MODULE_3__.getBaseScale(props, "y").domain(props.domain.y).range(props.horizontal ? range.x : range.y) : yAxisScale
  };
  var origin = domain.x && domain.y ? victory_core__WEBPACK_IMPORTED_MODULE_2__.getOrigin(domain) : undefined;
  var originSign = origin ? {
    x: victory_core__WEBPACK_IMPORTED_MODULE_2__.getOriginSign(origin.x, domain.x),
    y: victory_core__WEBPACK_IMPORTED_MODULE_2__.getOriginSign(origin.y, domain.y)
  } : undefined;
  var orientations = originSign ? {
    x: getDefaultOrientations("x", originSign.y, props.horizontal),
    y: getDefaultOrientations("y", originSign.x, props.horizontal)
  } : undefined;
  var orientation = orientations ? props.orientation || orientations[axis] : getOrientation(props);
  var isVertical = victory_core__WEBPACK_IMPORTED_MODULE_2__.isVertical(Object.assign({}, props, {
    orientation: orientation
  }));
  var anchors = getAnchors(orientation, isVertical);
  return {
    anchors: anchors,
    axis: axis,
    crossAxis: crossAxis,
    domain: domain,
    isVertical: isVertical,
    labelPadding: labelPadding,
    orientation: orientation,
    orientations: orientations,
    origin: origin,
    padding: padding,
    scale: scale,
    stringTicks: stringTicks,
    style: style,
    tickFormat: tickFormat,
    ticks: ticks
  };
};

var getBaseProps = function (props, fallbackProps) {
  props = victory_core__WEBPACK_IMPORTED_MODULE_2__.modifyProps(props, fallbackProps);
  var calculatedValues = getCalculatedValues(props);
  var axis = calculatedValues.axis,
      style = calculatedValues.style,
      orientation = calculatedValues.orientation,
      isVertical = calculatedValues.isVertical,
      scale = calculatedValues.scale,
      ticks = calculatedValues.ticks,
      tickFormat = calculatedValues.tickFormat,
      anchors = calculatedValues.anchors,
      domain = calculatedValues.domain,
      stringTicks = calculatedValues.stringTicks,
      name = calculatedValues.name;
  var otherAxis = axis === "x" ? "y" : "x";
  var _props = props,
      width = _props.width,
      height = _props.height,
      standalone = _props.standalone,
      theme = _props.theme,
      polar = _props.polar,
      padding = _props.padding,
      horizontal = _props.horizontal;

  var _getLayoutProps = getLayoutProps(props, calculatedValues),
      globalTransform = _getLayoutProps.globalTransform,
      gridOffset = _getLayoutProps.gridOffset,
      gridEdge = _getLayoutProps.gridEdge;

  var sharedProps = {
    scale: _defineProperty({}, axis, scale[axis]),
    polar: polar,
    horizontal: horizontal,
    ticks: ticks,
    stringTicks: stringTicks
  };
  var axisProps = getAxisProps(props, calculatedValues, globalTransform);
  var axisLabelProps = getAxisLabelProps(props, calculatedValues, globalTransform);
  var initialChildProps = {
    parent: lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({
      style: style.parent,
      ticks: ticks,
      standalone: standalone,
      theme: theme,
      width: width,
      height: height,
      padding: padding,
      domain: domain,
      name: name
    }, sharedProps)
  };
  var gridProps = {
    dimension: otherAxis,
    range: _defineProperty({}, otherAxis, victory_core__WEBPACK_IMPORTED_MODULE_4__.getRange(props, otherAxis)),
    scale: props.scale && props.scale[otherAxis] ? _defineProperty({}, otherAxis, props.scale[otherAxis]) : undefined
  };
  return ticks.reduce(function (childProps, tickValue, index) {
    var tick = stringTicks ? stringTicks[index] : tickValue;
    var text = tickFormat(tickValue, index, ticks);
    var styles = getEvaluatedStyles(style, lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, sharedProps, {
      tick: tick,
      tickValue: tickValue,
      index: index,
      text: text
    }));
    var tickLayout = {
      position: getTickPosition(styles, orientation, isVertical),
      transform: getTickTransform(scale[axis](tickValue), globalTransform, isVertical)
    };
    var gridLayout = {
      edge: gridEdge,
      transform: {
        x: isVertical ? -gridOffset.x + globalTransform.x : scale[axis](tickValue) + globalTransform.x,
        y: isVertical ? scale[axis](tickValue) + globalTransform.y : gridOffset.y + globalTransform.y
      }
    };
    childProps[index] = {
      axis: lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({
        dimension: axis
      }, sharedProps, axisProps),
      axisLabel: lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, sharedProps, axisLabelProps),
      ticks: lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, sharedProps, getTickProps(tickLayout, styles.tickStyle, tickValue)),
      tickLabels: lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, sharedProps, getTickLabelProps(tickLayout, styles.labelStyle, anchors, tickValue, text)),
      grid: lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, sharedProps, gridProps, getGridProps(gridLayout, styles.gridStyle, tickValue))
    };
    return childProps;
  }, initialChildProps);
};

/***/ }),

/***/ "./node_modules/victory-axis/es/victory-axis.js":
/*!******************************************************!*\
  !*** ./node_modules/victory-axis/es/victory-axis.js ***!
  \******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "./node_modules/lodash/isEmpty.js");
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/axis.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/textsize.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/common-props.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/prop-types.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-primitives/line-segment.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-label/victory-label.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-theme/victory-theme.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-container/victory-container.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/add-events.js");
/* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./helper-methods */ "./node_modules/victory-axis/es/helper-methods.js");



function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }





var fallbackProps = {
  width: 450,
  height: 300,
  padding: 50
};
var options = {
  components: [{
    name: "axis",
    index: 0
  }, {
    name: "axisLabel",
    index: 0
  }, {
    name: "grid"
  }, {
    name: "parent",
    index: "parent"
  }, {
    name: "ticks"
  }, {
    name: "tickLabels"
  }]
};

var VictoryAxis =
/*#__PURE__*/
function (_React$Component) {
  _inherits(VictoryAxis, _React$Component);

  function VictoryAxis() {
    _classCallCheck(this, VictoryAxis);

    return _possibleConstructorReturn(this, (VictoryAxis.__proto__ || Object.getPrototypeOf(VictoryAxis)).apply(this, arguments));
  }

  _createClass(VictoryAxis, [{
    key: "renderLine",
    value: function renderLine(props) {
      var axisComponent = props.axisComponent;
      var axisProps = this.getComponentProps(axisComponent, "axis", 0);
      return react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(axisComponent, axisProps);
    }
  }, {
    key: "renderLabel",
    value: function renderLabel(props) {
      var axisLabelComponent = props.axisLabelComponent,
          label = props.label;

      if (!label) {
        return null;
      }

      var axisLabelProps = this.getComponentProps(axisLabelComponent, "axisLabel", 0);
      return react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(axisLabelComponent, axisLabelProps);
    }
  }, {
    key: "renderGridAndTicks",
    value: function renderGridAndTicks(props) {
      var _this = this;

      var tickComponent = props.tickComponent,
          tickLabelComponent = props.tickLabelComponent,
          gridComponent = props.gridComponent,
          name = props.name;

      var shouldRender = function (componentProps) {
        var _componentProps$style = componentProps.style,
            style = _componentProps$style === void 0 ? {} : _componentProps$style,
            _componentProps$event = componentProps.events,
            events = _componentProps$event === void 0 ? {} : _componentProps$event;
        var visible = style.stroke !== "transparent" && style.stroke !== "none" && style.strokeWidth !== 0;
        return visible || !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(events);
      };

      return this.dataKeys.map(function (key, index) {
        var tickProps = _this.getComponentProps(tickComponent, "ticks", index);

        var BaseTickComponent = react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(tickComponent, tickProps);
        var TickComponent = shouldRender(BaseTickComponent.props) ? BaseTickComponent : undefined;

        var gridProps = _this.getComponentProps(gridComponent, "grid", index);

        var BaseGridComponent = react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(gridComponent, gridProps);
        var GridComponent = shouldRender(BaseGridComponent.props) ? BaseGridComponent : undefined;

        var tickLabelProps = _this.getComponentProps(tickLabelComponent, "tickLabels", index);

        var TickLabel = react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(tickLabelComponent, tickLabelProps);
        var children = [GridComponent, TickComponent, TickLabel].filter(Boolean);
        return react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(props.groupComponent, {
          key: "".concat(name, "-tick-group-").concat(key)
        }, children);
      });
    }
  }, {
    key: "fixLabelOverlap",
    value: function fixLabelOverlap(gridAndTicks, props) {
      var isVertical = victory_core__WEBPACK_IMPORTED_MODULE_3__.isVertical(props);
      var size = isVertical ? props.height : props.width;

      var isVictoryLabel = function (child) {
        return child.type && child.type.role === "label";
      };

      var labels = gridAndTicks.map(function (gridAndTick) {
        return gridAndTick.props.children;
      }).reduce(function (accumulator, childArr) {
        return accumulator.concat(childArr);
      }, []).filter(isVictoryLabel).map(function (child) {
        return child.props;
      });

      var paddingToObject = function (padding) {
        return typeof padding === "object" ? lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, {
          top: 0,
          right: 0,
          bottom: 0,
          left: 0
        }, padding) : {
          top: padding,
          right: padding,
          bottom: padding,
          left: padding
        };
      };

      var labelsSumSize = labels.reduce(function (sum, label) {
        var padding = paddingToObject(label.style.padding);
        var labelSize = victory_core__WEBPACK_IMPORTED_MODULE_4__.approximateTextSize(label.text, {
          angle: label.angle,
          fontSize: label.style.fontSize,
          letterSpacing: label.style.letterSpacing,
          fontFamily: label.style.fontFamily
        });
        return sum + (isVertical ? labelSize.height + padding.top + padding.bottom : labelSize.width + padding.right + padding.left);
      }, 0);
      var availiableLabelCount = Math.floor(size * gridAndTicks.length / labelsSumSize);
      var divider = Math.ceil(gridAndTicks.length / availiableLabelCount) || 1;

      var getLabelCoord = function (gridAndTick) {
        return gridAndTick.props.children.filter(isVictoryLabel).reduce(function (prev, child) {
          return (isVertical ? child.props.y : child.props.x) || 0;
        }, 0);
      };

      var sorted = gridAndTicks.sort(function (a, b) {
        return isVertical ? getLabelCoord(b) - getLabelCoord(a) //ordinary axis has top-bottom orientation
        : getLabelCoord(a) - getLabelCoord(b);
      } //ordinary axis has left-right orientation
      );
      return sorted.filter(function (gridAndTick, index) {
        return index % divider === 0;
      });
    } // Overridden in native versions

  }, {
    key: "shouldAnimate",
    value: function shouldAnimate() {
      return !!this.props.animate;
    }
  }, {
    key: "render",
    value: function render() {
      var animationWhitelist = VictoryAxis.animationWhitelist;
      var props = victory_core__WEBPACK_IMPORTED_MODULE_3__.modifyProps(this.props, fallbackProps);

      if (this.shouldAnimate()) {
        return this.animateComponent(props, animationWhitelist);
      }

      var gridAndTicks = this.renderGridAndTicks(props);
      var modifiedGridAndTicks = props.fixLabelOverlap ? this.fixLabelOverlap(gridAndTicks, props) : gridAndTicks;
      var children = [this.renderLine(props), this.renderLabel(props)].concat(_toConsumableArray(modifiedGridAndTicks));
      return props.standalone ? this.renderContainer(props.containerComponent, children) : react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(props.groupComponent, {}, children);
    }
  }]);

  return VictoryAxis;
}(react__WEBPACK_IMPORTED_MODULE_2__.Component);

Object.defineProperty(VictoryAxis, "animationWhitelist", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: ["style", "domain", "range", "tickCount", "tickValues", "offsetX", "offsetY", "padding", "width", "height"]
});
Object.defineProperty(VictoryAxis, "displayName", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: "VictoryAxis"
});
Object.defineProperty(VictoryAxis, "role", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: "axis"
});
Object.defineProperty(VictoryAxis, "defaultTransitions", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: {
    onExit: {
      duration: 500
    },
    onEnter: {
      duration: 500
    }
  }
});
Object.defineProperty(VictoryAxis, "propTypes", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__.baseProps, {
    axisComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
    axisLabelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
    axisValue: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object)]),
    categories: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_6___default().string)), prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
      x: prop_types__WEBPACK_IMPORTED_MODULE_6___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_6___default().string)),
      y: prop_types__WEBPACK_IMPORTED_MODULE_6___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_6___default().string))
    })]),
    crossAxis: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
    dependentAxis: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
    events: prop_types__WEBPACK_IMPORTED_MODULE_6___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
      target: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(["axis", "axisLabel", "grid", "ticks", "tickLabels"]),
      eventKey: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().array), victory_core__WEBPACK_IMPORTED_MODULE_7__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_7__.integer, victory_core__WEBPACK_IMPORTED_MODULE_7__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string)]),
      eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object)
    })),
    fixLabelOverlap: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
    gridComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
    groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
    invertAxis: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
    label: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().any),
    offsetX: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
    offsetY: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
    orientation: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(["top", "bottom", "left", "right"]),
    origin: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
      x: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
      y: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)
    }),
    stringMap: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
    style: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
      parent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
      axis: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
      axisLabel: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
      grid: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
      ticks: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
      tickLabels: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object)
    }),
    tickComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
    tickCount: victory_core__WEBPACK_IMPORTED_MODULE_7__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_7__.integer, victory_core__WEBPACK_IMPORTED_MODULE_7__.greaterThanZero]),
    tickFormat: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().func), victory_core__WEBPACK_IMPORTED_MODULE_7__.homogeneousArray]),
    tickLabelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
    tickValues: victory_core__WEBPACK_IMPORTED_MODULE_7__.homogeneousArray
  })
});
Object.defineProperty(VictoryAxis, "defaultProps", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: {
    axisComponent: react__WEBPACK_IMPORTED_MODULE_2__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__["default"], null),
    axisLabelComponent: react__WEBPACK_IMPORTED_MODULE_2__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_9__["default"], null),
    tickLabelComponent: react__WEBPACK_IMPORTED_MODULE_2__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_9__["default"], null),
    tickComponent: react__WEBPACK_IMPORTED_MODULE_2__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__["default"], null),
    gridComponent: react__WEBPACK_IMPORTED_MODULE_2__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__["default"], null),
    standalone: true,
    theme: victory_core__WEBPACK_IMPORTED_MODULE_10__["default"].grayscale,
    containerComponent: react__WEBPACK_IMPORTED_MODULE_2__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_11__["default"], null),
    groupComponent: react__WEBPACK_IMPORTED_MODULE_2__.createElement("g", {
      role: "presentation"
    }),
    fixLabelOverlap: false
  }
});
Object.defineProperty(VictoryAxis, "getDomain", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: victory_core__WEBPACK_IMPORTED_MODULE_3__.getDomain
});
Object.defineProperty(VictoryAxis, "getAxis", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: victory_core__WEBPACK_IMPORTED_MODULE_3__.getAxis
});
Object.defineProperty(VictoryAxis, "getStyles", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: function (props) {
    return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_12__.getStyles)(props, fallbackProps.style);
  }
});
Object.defineProperty(VictoryAxis, "getBaseProps", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: function (props) {
    return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_12__.getBaseProps)(props, fallbackProps);
  }
});
Object.defineProperty(VictoryAxis, "expectedComponents", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: ["axisComponent", "axisLabelComponent", "groupComponent", "containerComponent", "tickComponent", "tickLabelComponent", "gridComponent"]
});
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_13__["default"])(VictoryAxis, options));

/***/ }),

/***/ "./node_modules/victory-chart/es/helper-methods.js":
/*!*********************************************************!*\
  !*** ./node_modules/victory-chart/es/helper-methods.js ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getBackgroundWithProps": () => (/* binding */ getBackgroundWithProps),
/* harmony export */   "getCalculatedProps": () => (/* binding */ getCalculatedProps),
/* harmony export */   "getChildren": () => (/* binding */ getChildren),
/* harmony export */   "getChildComponents": () => (/* binding */ getChildComponents)
/* harmony export */ });
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js");
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/axis.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/wrapper.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/scale.js");



function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

/* eslint-disable func-style */

/* eslint-disable no-use-before-define */


var fallbackProps = {
  width: 450,
  height: 300,
  padding: 50
};

function getAxisProps(child, props, calculatedProps) {
  var domain = calculatedProps.domain,
      scale = calculatedProps.scale,
      stringMap = calculatedProps.stringMap,
      categories = calculatedProps.categories,
      horizontal = calculatedProps.horizontal;
  return {
    stringMap: stringMap,
    horizontal: horizontal,
    categories: categories,
    startAngle: props.startAngle,
    endAngle: props.endAngle,
    innerRadius: props.innerRadius,
    domain: domain,
    scale: scale
  };
}

function getBackgroundWithProps(props, calculatedProps) {
  var backgroundElement = props.backgroundComponent;
  var height = props.polar ? calculatedProps.range.y[1] : calculatedProps.range.y[0] - calculatedProps.range.y[1];
  var width = calculatedProps.range.x[1] - calculatedProps.range.x[0];
  var xScale = props.horizontal ? calculatedProps.scale.y.range()[0] : calculatedProps.scale.x.range()[0];
  var yScale = props.horizontal ? calculatedProps.scale.x.range()[1] : calculatedProps.scale.y.range()[1];
  var xCoordinate = props.polar ? calculatedProps.origin.x : xScale;
  var yCoordinate = props.polar ? calculatedProps.origin.y : yScale;
  var parentName = props.name || "chart";
  var backgroundProps = {
    height: height,
    polar: props.polar,
    scale: calculatedProps.scale,
    style: props.style.background,
    x: xCoordinate,
    y: yCoordinate,
    key: "".concat(parentName, "-background"),
    width: width
  };
  return react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(backgroundElement, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundElement.props, backgroundProps));
}

function getChildProps(child, props, calculatedProps) {
  var axisChild = victory_core__WEBPACK_IMPORTED_MODULE_3__.findAxisComponents([child]);

  if (axisChild.length > 0) {
    return getAxisProps(axisChild[0], props, calculatedProps);
  }

  var categories = calculatedProps.categories,
      domain = calculatedProps.domain,
      range = calculatedProps.range,
      scale = calculatedProps.scale,
      stringMap = calculatedProps.stringMap,
      horizontal = calculatedProps.horizontal;
  return {
    categories: categories,
    domain: domain,
    range: range,
    scale: scale,
    stringMap: stringMap,
    horizontal: horizontal
  };
}

function getStyles(props) {
  var styleProps = props.style && props.style.parent;
  return {
    parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, styleProps, {
      height: "100%",
      width: "100%",
      userSelect: "none"
    })
  };
}

function getCalculatedProps(props, childComponents) {
  var style = getStyles(props);
  props = victory_core__WEBPACK_IMPORTED_MODULE_4__.modifyProps(props, fallbackProps, "chart");
  var _props = props,
      horizontal = _props.horizontal,
      polar = _props.polar;
  var allStrings = victory_core__WEBPACK_IMPORTED_MODULE_5__["default"].getStringsFromChildren(props, childComponents);
  var categories = victory_core__WEBPACK_IMPORTED_MODULE_5__["default"].getCategories(props, childComponents, allStrings);
  var stringMap = createStringMap(props, childComponents, allStrings);
  var domain = {
    x: getDomain(lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
      categories: categories
    }), "x", childComponents),
    y: getDomain(lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
      categories: categories
    }), "y", childComponents)
  };
  var range = {
    x: victory_core__WEBPACK_IMPORTED_MODULE_4__.getRange(props, "x"),
    y: victory_core__WEBPACK_IMPORTED_MODULE_4__.getRange(props, "y")
  };
  var baseScale = {
    x: victory_core__WEBPACK_IMPORTED_MODULE_6__.getScaleFromProps(props, "x") || victory_core__WEBPACK_IMPORTED_MODULE_5__["default"].getScale(props, "x"),
    y: victory_core__WEBPACK_IMPORTED_MODULE_6__.getScaleFromProps(props, "y") || victory_core__WEBPACK_IMPORTED_MODULE_5__["default"].getScale(props, "y")
  };
  var scale = {
    x: baseScale.x.domain(domain.x).range(horizontal ? range.y : range.x),
    y: baseScale.y.domain(domain.y).range(horizontal ? range.x : range.y)
  };
  var origin = polar ? victory_core__WEBPACK_IMPORTED_MODULE_4__.getPolarOrigin(props) : victory_core__WEBPACK_IMPORTED_MODULE_3__.getOrigin(domain);
  var padding = victory_core__WEBPACK_IMPORTED_MODULE_4__.getPadding(props);
  return {
    categories: categories,
    domain: domain,
    range: range,
    horizontal: horizontal,
    scale: scale,
    stringMap: stringMap,
    style: style,
    origin: origin,
    padding: padding
  };
}
function getChildren(props, childComponents, calculatedProps) {
  childComponents = childComponents || getChildComponents(props);
  calculatedProps = calculatedProps || getCalculatedProps(props, childComponents);
  var baseStyle = calculatedProps.style.parent;
  var height = props.height,
      polar = props.polar,
      theme = props.theme,
      width = props.width;
  var _calculatedProps = calculatedProps,
      origin = _calculatedProps.origin,
      horizontal = _calculatedProps.horizontal;
  var parentName = props.name || "chart";
  return childComponents.map(function (child, index) {
    var role = child.type && child.type.role;
    var style = Array.isArray(child.props.style) ? child.props.style : lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, child.props.style, {
      parent: baseStyle
    });
    var childProps = getChildProps(child, props, calculatedProps);
    var name = child.props.name || "".concat(parentName, "-").concat(role, "-").concat(index);

    var newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
      horizontal: horizontal,
      height: height,
      polar: polar,
      theme: theme,
      width: width,
      style: style,
      name: name,
      origin: polar ? origin : undefined,
      padding: calculatedProps.padding,
      key: "".concat(name, "-key-").concat(index),
      standalone: false
    }, childProps);

    return react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(child, newProps);
  });
}
var getChildComponents = function (props, defaultAxes) {
  var childComponents = react__WEBPACK_IMPORTED_MODULE_2__.Children.toArray(props.children);

  var newChildComponents = _toConsumableArray(childComponents);

  if (childComponents.length === 0) {
    newChildComponents.push(defaultAxes.independent, defaultAxes.dependent);
  } else {
    var axisComponents = {
      dependent: victory_core__WEBPACK_IMPORTED_MODULE_3__.getAxisComponentsWithParent(childComponents, "dependent"),
      independent: victory_core__WEBPACK_IMPORTED_MODULE_3__.getAxisComponentsWithParent(childComponents, "independent")
    };

    if (axisComponents.dependent.length === 0 && axisComponents.independent.length === 0) {
      newChildComponents = props.prependDefaultAxes ? [defaultAxes.independent, defaultAxes.dependent].concat(newChildComponents) : newChildComponents.concat([defaultAxes.independent, defaultAxes.dependent]);
    }
  }

  return newChildComponents;
};

var getDomain = function (props, axis, childComponents) {
  childComponents = childComponents || react__WEBPACK_IMPORTED_MODULE_2__.Children.toArray(props.children);
  var domain = victory_core__WEBPACK_IMPORTED_MODULE_5__["default"].getDomain(props, axis, childComponents);
  var axisComponent = victory_core__WEBPACK_IMPORTED_MODULE_3__.getAxisComponent(childComponents, axis);
  var invertDomain = axisComponent && axisComponent.props && axisComponent.props.invertAxis;
  return invertDomain ? domain.concat().reverse() : domain;
};

var createStringMap = function (props, childComponents, allStrings) {
  var x = !allStrings.x || allStrings.x.length === 0 ? null : allStrings.x.reduce(function (memo, string, index) {
    memo[string] = index + 1;
    return memo;
  }, {});
  var y = !allStrings.y || allStrings.y.length === 0 ? null : allStrings.y.reduce(function (memo, string, index) {
    memo[string] = index + 1;
    return memo;
  }, {});
  return {
    x: x,
    y: y
  };
};

/***/ }),

/***/ "./node_modules/victory-chart/es/victory-chart.js":
/*!********************************************************!*\
  !*** ./node_modules/victory-chart/es/victory-chart.js ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ VictoryChart)
/* harmony export */ });
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "./node_modules/lodash/isEmpty.js");
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js");
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/wrapper.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/common-props.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/prop-types.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-primitives/background.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-container/victory-container.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-theme/victory-theme.js");
/* harmony import */ var victory_shared_events__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-shared-events */ "./node_modules/victory-shared-events/es/victory-shared-events.js");
/* harmony import */ var victory_axis__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! victory-axis */ "./node_modules/victory-axis/es/victory-axis.js");
/* harmony import */ var victory_polar_axis__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! victory-polar-axis */ "./node_modules/victory-polar-axis/es/victory-polar-axis.js");
/* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./helper-methods */ "./node_modules/victory-chart/es/helper-methods.js");
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-fast-compare */ "./node_modules/react-fast-compare/index.js");
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);




function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }









var fallbackProps = {
  width: 450,
  height: 300,
  padding: 50
};

var VictoryChart =
/*#__PURE__*/
function (_React$Component) {
  _inherits(VictoryChart, _React$Component);

  function VictoryChart(props) {
    var _this;

    _classCallCheck(this, VictoryChart);

    _this = _possibleConstructorReturn(this, (VictoryChart.__proto__ || Object.getPrototypeOf(VictoryChart)).call(this, props));
    _this.state = {};

    if (props.animate) {
      _this.state = {
        nodesShouldLoad: false,
        nodesDoneLoad: false,
        animating: true
      };
      _this.setAnimationState = victory_core__WEBPACK_IMPORTED_MODULE_5__["default"].setAnimationState.bind(_assertThisInitialized(_this));
    }

    return _this;
  }

  _createClass(VictoryChart, [{
    key: "shouldComponentUpdate",
    value: function shouldComponentUpdate(nextProps) {
      if (this.props.animate) {
        if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(this.props, nextProps)) {
          this.setAnimationState(this.props, nextProps);
          return false;
        }
      }

      return true;
    }
  }, {
    key: "getNewChildren",
    value: function getNewChildren(props, childComponents, calculatedProps) {
      var children = (0,_helper_methods__WEBPACK_IMPORTED_MODULE_6__.getChildren)(props, childComponents, calculatedProps);
      var getAnimationProps = victory_core__WEBPACK_IMPORTED_MODULE_5__["default"].getAnimationProps.bind(this);
      var newChildren = children.map(function (child, index) {
        var childProps = lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({
          animate: getAnimationProps(props, child, index)
        }, child.props);

        return react__WEBPACK_IMPORTED_MODULE_3__.cloneElement(child, childProps);
      });

      if (props.style && props.style.background) {
        var backgroundComponent = (0,_helper_methods__WEBPACK_IMPORTED_MODULE_6__.getBackgroundWithProps)(props, calculatedProps);
        newChildren.unshift(backgroundComponent);
      }

      return newChildren;
    }
  }, {
    key: "renderContainer",
    value: function renderContainer(containerComponent, props) {
      var containerProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, containerComponent.props, props);

      return react__WEBPACK_IMPORTED_MODULE_3__.cloneElement(containerComponent, containerProps);
    }
  }, {
    key: "getContainerProps",
    value: function getContainerProps(props, calculatedProps) {
      var width = props.width,
          height = props.height,
          standalone = props.standalone,
          theme = props.theme,
          polar = props.polar,
          name = props.name;
      var domain = calculatedProps.domain,
          scale = calculatedProps.scale,
          style = calculatedProps.style,
          origin = calculatedProps.origin,
          radius = calculatedProps.radius,
          horizontal = calculatedProps.horizontal;
      return {
        domain: domain,
        scale: scale,
        width: width,
        height: height,
        standalone: standalone,
        theme: theme,
        style: style.parent,
        horizontal: horizontal,
        name: name,
        polar: polar,
        radius: radius,
        origin: polar ? origin : undefined
      };
    }
  }, {
    key: "render",
    value: function render() {
      var props = this.state && this.state.nodesWillExit ? this.state.oldProps || this.props : this.props;
      var modifiedProps = victory_core__WEBPACK_IMPORTED_MODULE_7__.modifyProps(props, fallbackProps, "chart");
      var eventKey = modifiedProps.eventKey,
          containerComponent = modifiedProps.containerComponent,
          groupComponent = modifiedProps.groupComponent,
          standalone = modifiedProps.standalone,
          externalEventMutations = modifiedProps.externalEventMutations;
      var axes = props.polar ? modifiedProps.defaultPolarAxes : modifiedProps.defaultAxes;
      var childComponents = (0,_helper_methods__WEBPACK_IMPORTED_MODULE_6__.getChildComponents)(modifiedProps, axes);
      var calculatedProps = (0,_helper_methods__WEBPACK_IMPORTED_MODULE_6__.getCalculatedProps)(modifiedProps, childComponents);
      var newChildren = this.getNewChildren(modifiedProps, childComponents, calculatedProps);
      var containerProps = standalone ? this.getContainerProps(modifiedProps, calculatedProps) : {};
      var container = standalone ? this.renderContainer(containerComponent, containerProps) : groupComponent;
      var events = victory_core__WEBPACK_IMPORTED_MODULE_5__["default"].getAllEvents(props);

      if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(events)) {
        return react__WEBPACK_IMPORTED_MODULE_3__.createElement(victory_shared_events__WEBPACK_IMPORTED_MODULE_8__["default"], {
          container: container,
          eventKey: eventKey,
          events: events,
          externalEventMutations: externalEventMutations
        }, newChildren);
      }

      return react__WEBPACK_IMPORTED_MODULE_3__.cloneElement(container, container.props, newChildren);
    }
  }]);

  return VictoryChart;
}(react__WEBPACK_IMPORTED_MODULE_3__.Component);

Object.defineProperty(VictoryChart, "displayName", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: "VictoryChart"
});
Object.defineProperty(VictoryChart, "propTypes", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_9__.baseProps, {
    backgroundComponent: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().element),
    children: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_10___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_10___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().node)]),
    defaultAxes: prop_types__WEBPACK_IMPORTED_MODULE_10___default().shape({
      independent: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().element),
      dependent: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().element)
    }),
    defaultPolarAxes: prop_types__WEBPACK_IMPORTED_MODULE_10___default().shape({
      independent: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().element),
      dependent: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().element)
    }),
    endAngle: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().number),
    innerRadius: victory_core__WEBPACK_IMPORTED_MODULE_11__.nonNegative,
    prependDefaultAxes: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool),
    startAngle: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().number)
  })
});
Object.defineProperty(VictoryChart, "defaultProps", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: {
    backgroundComponent: react__WEBPACK_IMPORTED_MODULE_3__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_12__["default"], null),
    containerComponent: react__WEBPACK_IMPORTED_MODULE_3__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_13__["default"], null),
    defaultAxes: {
      independent: react__WEBPACK_IMPORTED_MODULE_3__.createElement(victory_axis__WEBPACK_IMPORTED_MODULE_14__["default"], null),
      dependent: react__WEBPACK_IMPORTED_MODULE_3__.createElement(victory_axis__WEBPACK_IMPORTED_MODULE_14__["default"], {
        dependentAxis: true
      })
    },
    defaultPolarAxes: {
      independent: react__WEBPACK_IMPORTED_MODULE_3__.createElement(victory_polar_axis__WEBPACK_IMPORTED_MODULE_15__["default"], null),
      dependent: react__WEBPACK_IMPORTED_MODULE_3__.createElement(victory_polar_axis__WEBPACK_IMPORTED_MODULE_15__["default"], {
        dependentAxis: true
      })
    },
    groupComponent: react__WEBPACK_IMPORTED_MODULE_3__.createElement("g", null),
    standalone: true,
    theme: victory_core__WEBPACK_IMPORTED_MODULE_16__["default"].grayscale
  }
});
Object.defineProperty(VictoryChart, "expectedComponents", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: ["groupComponent", "containerComponent"]
});


/***/ }),

/***/ "./node_modules/victory-core/es/victory-animation/util.js":
/*!****************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-animation/util.js ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "isInterpolatable": () => (/* binding */ isInterpolatable),
/* harmony export */   "interpolateImmediate": () => (/* binding */ interpolateImmediate),
/* harmony export */   "interpolateFunction": () => (/* binding */ interpolateFunction),
/* harmony export */   "interpolateObject": () => (/* binding */ interpolateObject),
/* harmony export */   "interpolateString": () => (/* binding */ interpolateString),
/* harmony export */   "victoryInterpolator": () => (/* binding */ victoryInterpolator)
/* harmony export */ });
/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/orderBy */ "./node_modules/lodash/orderBy.js");
/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isPlainObject */ "./node_modules/lodash/isPlainObject.js");
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "./node_modules/d3-interpolate/src/value.js");



var isInterpolatable = function (obj) {
  // d3 turns null into 0 and undefined into NaN, which we don't want.
  if (obj !== null) {
    switch (typeof obj) {
      case "undefined":
        return false;

      case "number":
        // The standard `isNaN` is fine in this case since we already know the
        // type is number.
        return !isNaN(obj) && obj !== Number.POSITIVE_INFINITY && obj !== Number.NEGATIVE_INFINITY;

      case "string":
        // d3 might not *actually* be able to interpolate the string, but it
        // won't cause any issues to let it try.
        return true;

      case "boolean":
        // d3 turns Booleans into integers, which we don't want. Sure, we could
        // interpolate from 0 -> 1, but we'd be sending a non-Boolean to
        // something expecting a Boolean.
        return false;

      case "object":
        // Don't try to interpolate class instances (except Date or Array).
        return obj instanceof Date || Array.isArray(obj) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(obj);

      case "function":
        // Careful! There may be extra properties on function objects that the
        // component expects to access - for instance, it may be a `d3.scale()`
        // function, which has its own methods attached. We don't know if the
        // component is only going to call the function (in which case it's
        // safely interpolatable) or if it's going to access special properties
        // (in which case our function generated from `interpolateFunction` will
        // most likely cause an error. We could check for enumerable properties
        // on the function object here to see if it's a "plain" function, but
        // let's just require that components prevent such function props from
        // being animated in the first place.
        return true;
    }
  }

  return false;
};
/**
 * Interpolate immediately to the end value at the given step `when`.
 * Some nicer default behavior might be to jump at the halfway point or return
 * `a` if `t` is 0 (instead of always returning `b`). But d3's default
 * interpolator does not do these things:
 *
 *   d3.interpolate('aaa', 'bbb')(0) === 'bbb'
 *
 * ...and things might get wonky if we don't replicate that behavior.
 *
 * @param {any} a - Start value.
 * @param {any} b - End value.
 * @param {Number} when - Step value (0 to 1) at which to jump to `b`.
 * @returns {Function} An interpolation function.
 */

var interpolateImmediate = function (a, b) {
  var when = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  return function (t) {
    return t < when ? a : b;
  };
};
/**
 * Interpolate to or from a function. The interpolated value will be a function
 * that calls `a` (if it's a function) and `b` (if it's a function) and calls
 * `d3.interpolate` on the resulting values. Note that our function won't
 * necessarily be called (that's up to the component this eventually gets
 * passed to) - but if it does get called, it will return an appropriately
 * interpolated value.
 *
 * @param {any} a - Start value.
 * @param {any} b - End value.
 * @returns {Function} An interpolation function.
 */

var interpolateFunction = function (a, b) {
  return function (t) {
    if (t >= 1) {
      return b;
    }

    return function () {
      /* eslint-disable no-invalid-this */
      var aval = typeof a === "function" ? a.apply(this, arguments) : a;
      var bval = typeof b === "function" ? b.apply(this, arguments) : b;
      return (0,d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(aval, bval)(t);
    };
  };
};
/**
 * Interpolate to or from an object. This method is a modification of the object interpolator in
 * d3-interpolate https://github.com/d3/d3-interpolate/blob/master/src/object.js. This interpolator
 * differs in that it uses our custom interpolators when interpolating the value of each property in
 * an object. This allows the correct interpolation of nested objects, including styles
 *
 * @param {any} a - Start value.
 * @param {any} b - End value.
 * @returns {Function} An interpolation function.
 */

var interpolateObject = function (a, b) {
  var interpolateTypes = function (x, y) {
    if (x === y || !isInterpolatable(x) || !isInterpolatable(y)) {
      return interpolateImmediate(x, y);
    }

    if (typeof x === "function" || typeof y === "function") {
      return interpolateFunction(x, y);
    }

    if (typeof x === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(x) || typeof y === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(y)) {
      return interpolateObject(x, y);
    }

    return (0,d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(x, y);
  }; // When the value is an array, attempt to sort by "key" so that animating nodes may be identified
  // based on "key" instead of index


  var keyData = function (val) {
    return Array.isArray(val) ? lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default()(val, "key") : val;
  };

  var i = {};
  var c = {};
  var k;

  if (a === null || typeof a !== "object") {
    a = {};
  }

  if (b === null || typeof b !== "object") {
    b = {};
  }

  for (k in b) {
    if (k in a) {
      i[k] = interpolateTypes(keyData(a[k]), keyData(b[k]));
    } else {
      c[k] = b[k];
    }
  }

  return function (t) {
    for (k in i) {
      c[k] = i[k](t);
    }

    return c;
  };
};
var interpolateString = function (a, b) {
  var format = function (val) {
    return typeof val === "string" ? val.replace(/,/g, "") : val;
  };

  return (0,d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(format(a), format(b));
};
/**
 * By default, the list of interpolators used by `d3.interpolate` has a few
 * downsides:
 *
 * - `null` values get turned into 0.
 * - `undefined`, `function`, and some other value types get turned into NaN.
 * - Boolean types get turned into numbers, which probably will be meaningless
 *   to whatever is consuming them.
 * - It tries to interpolate between identical start and end values, doing
 *   unnecessary calculations that sometimes result in floating point rounding
 *   errors.
 *
 * If only the default interpolators are used, `VictoryAnimation` will happily
 * pass down NaN (and other bad) values as props to the wrapped component.
 * The component will then either use the incorrect values or complain that it
 * was passed props of the incorrect type. This custom interpolator is added
 * using the `d3.interpolators` API, and prevents such cases from happening
 * for most values.
 *
 * @param {any} a - Start value.
 * @param {any} b - End value.
 * @returns {Function|undefined} An interpolation function, if necessary.
 */

var victoryInterpolator = function (a, b) {
  // If the values are strictly equal, or either value is not interpolatable,
  // just use either the start value `a` or end value `b` at every step, as
  // there is no reasonable in-between value.
  if (a === b || !isInterpolatable(a) || !isInterpolatable(b)) {
    return interpolateImmediate(a, b);
  }

  if (typeof a === "function" || typeof b === "function") {
    return interpolateFunction(a, b);
  }

  if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(b)) {
    return interpolateObject(a, b);
  }

  if (typeof a === "string" || typeof b === "string") {
    return interpolateString(a, b);
  }

  return (0,d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(a, b);
};

/***/ }),

/***/ "./node_modules/victory-core/es/victory-animation/victory-animation.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-animation/victory-animation.js ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ VictoryAnimation)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var d3_ease__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-ease */ "./node_modules/d3-ease/src/index.js");
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util */ "./node_modules/victory-core/es/victory-animation/util.js");
/* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/timer-context */ "./node_modules/victory-core/es/victory-util/timer-context.js");
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-fast-compare */ "./node_modules/react-fast-compare/index.js");
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_1__);
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

/*global setTimeout:false */







var VictoryAnimation =
/*#__PURE__*/
function (_React$Component) {
  _inherits(VictoryAnimation, _React$Component);

  function VictoryAnimation(props, context) {
    var _this;

    _classCallCheck(this, VictoryAnimation);

    _this = _possibleConstructorReturn(this, (VictoryAnimation.__proto__ || Object.getPrototypeOf(VictoryAnimation)).call(this, props, context));
    /* defaults */

    _this.state = {
      data: Array.isArray(_this.props.data) ? _this.props.data[0] : _this.props.data,
      animationInfo: {
        progress: 0,
        animating: false
      }
    };
    _this.interpolator = null;
    _this.queue = Array.isArray(_this.props.data) ? _this.props.data.slice(1) : [];
    /* build easing function */

    _this.ease = d3_ease__WEBPACK_IMPORTED_MODULE_2__[_this.toNewName(_this.props.easing)];
    /*
      There is no autobinding of this in ES6 classes
      so we bind functionToBeRunEachFrame to current instance of victory animation class
    */

    _this.functionToBeRunEachFrame = _this.functionToBeRunEachFrame.bind(_assertThisInitialized(_this));
    _this.timer = _this.context.animationTimer;
    return _this;
  }

  _createClass(VictoryAnimation, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      // Length check prevents us from triggering `onEnd` in `traverseQueue`.
      if (this.queue.length) {
        this.traverseQueue();
      }
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      var equalProps = react_fast_compare__WEBPACK_IMPORTED_MODULE_1___default()(this.props, prevProps);

      if (!equalProps) {
        /* If the previous animation didn't finish, force it to complete before starting a new one */
        if (this.interpolator && this.state.animationInfo && this.state.animationInfo.progress < 1) {
          // eslint-disable-next-line react/no-did-update-set-state
          this.setState({
            data: this.interpolator(1),
            animationInfo: {
              progress: 1,
              animating: false,
              terminating: true
            }
          });
        } else {
          /* cancel existing loop if it exists */
          this.timer.unsubscribe(this.loopID);
          /* If an object was supplied */

          if (!Array.isArray(this.props.data)) {
            // Replace the tween queue. Could set `this.queue = [nextProps.data]`,
            // but let's reuse the same array.
            this.queue.length = 0;
            this.queue.push(this.props.data);
            /* If an array was supplied */
          } else {
            var _queue;

            /* Extend the tween queue */
            (_queue = this.queue).push.apply(_queue, _toConsumableArray(this.props.data));
          }
          /* Start traversing the tween queue */


          this.traverseQueue();
        }
      }
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      if (this.loopID) {
        this.timer.unsubscribe(this.loopID);
      } else {
        this.timer.stop();
      }
    }
  }, {
    key: "toNewName",
    value: function toNewName(ease) {
      // d3-ease changed the naming scheme for ease from "linear" -> "easeLinear" etc.
      var capitalize = function (s) {
        return s && s[0].toUpperCase() + s.slice(1);
      };

      return "ease".concat(capitalize(ease));
    }
    /* Traverse the tween queue */

  }, {
    key: "traverseQueue",
    value: function traverseQueue() {
      var _this2 = this;

      if (this.queue.length) {
        /* Get the next index */
        var data = this.queue[0];
        /* compare cached version to next props */

        this.interpolator = (0,_util__WEBPACK_IMPORTED_MODULE_3__.victoryInterpolator)(this.state.data, data);
        /* reset step to zero */

        if (this.props.delay) {
          setTimeout(function () {
            _this2.loopID = _this2.timer.subscribe(_this2.functionToBeRunEachFrame, _this2.props.duration);
          }, this.props.delay);
        } else {
          this.loopID = this.timer.subscribe(this.functionToBeRunEachFrame, this.props.duration);
        }
      } else if (this.props.onEnd) {
        this.props.onEnd();
      }
    }
    /* every frame we... */

  }, {
    key: "functionToBeRunEachFrame",
    value: function functionToBeRunEachFrame(elapsed, duration) {
      /*
        step can generate imprecise values, sometimes greater than 1
        if this happens set the state to 1 and return, cancelling the timer
      */
      duration = duration !== undefined ? duration : this.props.duration;
      var step = duration ? elapsed / duration : 1;

      if (step >= 1) {
        this.setState({
          data: this.interpolator(1),
          animationInfo: {
            progress: 1,
            animating: false,
            terminating: true
          }
        });

        if (this.loopID) {
          this.timer.unsubscribe(this.loopID);
        }

        this.queue.shift();
        this.traverseQueue();
        return;
      }
      /*
        if we're not at the end of the timer, set the state by passing
        current step value that's transformed by the ease function to the
        interpolator, which is cached for performance whenever props are received
      */


      this.setState({
        data: this.interpolator(this.ease(step)),
        animationInfo: {
          progress: step,
          animating: step < 1
        }
      });
    }
  }, {
    key: "render",
    value: function render() {
      return this.props.children(this.state.data, this.state.animationInfo);
    }
  }]);

  return VictoryAnimation;
}(react__WEBPACK_IMPORTED_MODULE_0__.Component);

Object.defineProperty(VictoryAnimation, "displayName", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: "VictoryAnimation"
});
Object.defineProperty(VictoryAnimation, "propTypes", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: {
    children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),
    data: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().array)]),
    delay: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
    duration: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
    easing: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf(["back", "backIn", "backOut", "backInOut", "bounce", "bounceIn", "bounceOut", "bounceInOut", "circle", "circleIn", "circleOut", "circleInOut", "linear", "linearIn", "linearOut", "linearInOut", "cubic", "cubicIn", "cubicOut", "cubicInOut", "elastic", "elasticIn", "elasticOut", "elasticInOut", "exp", "expIn", "expOut", "expInOut", "poly", "polyIn", "polyOut", "polyInOut", "quad", "quadIn", "quadOut", "quadInOut", "sin", "sinIn", "sinOut", "sinInOut"]),
    onEnd: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)
  }
});
Object.defineProperty(VictoryAnimation, "defaultProps", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: {
    data: {},
    delay: 0,
    duration: 1000,
    easing: "quadInOut"
  }
});
Object.defineProperty(VictoryAnimation, "contextType", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__["default"]
});


/***/ }),

/***/ "./node_modules/victory-core/es/victory-clip-container/victory-clip-container.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-clip-container/victory-clip-container.js ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ VictoryClipContainer)
/* harmony export */ });
/* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/uniqueId */ "./node_modules/lodash/uniqueId.js");
/* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isObject */ "./node_modules/lodash/isObject.js");
/* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js");
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/prop-types */ "./node_modules/victory-core/es/victory-util/prop-types.js");
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/helpers */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var _victory_primitives_clip_path__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-primitives/clip-path */ "./node_modules/victory-core/es/victory-primitives/clip-path.js");
/* harmony import */ var _victory_primitives_circle__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-primitives/circle */ "./node_modules/victory-core/es/victory-primitives/circle.js");
/* harmony import */ var _victory_primitives_rect__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-primitives/rect */ "./node_modules/victory-core/es/victory-primitives/rect.js");





function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }









var VictoryClipContainer =
/*#__PURE__*/
function (_React$Component) {
  _inherits(VictoryClipContainer, _React$Component);

  function VictoryClipContainer(props) {
    var _this;

    _classCallCheck(this, VictoryClipContainer);

    _this = _possibleConstructorReturn(this, (VictoryClipContainer.__proto__ || Object.getPrototypeOf(VictoryClipContainer)).call(this, props));
    _this.clipId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(props) || props.clipId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default()("victory-clip-") : props.clipId;
    return _this;
  }

  _createClass(VictoryClipContainer, [{
    key: "calculateAttributes",
    value: function calculateAttributes(props) {
      var polar = props.polar,
          origin = props.origin,
          _props$clipWidth = props.clipWidth,
          clipWidth = _props$clipWidth === void 0 ? 0 : _props$clipWidth,
          _props$clipHeight = props.clipHeight,
          clipHeight = _props$clipHeight === void 0 ? 0 : _props$clipHeight,
          _props$translateX = props.translateX,
          translateX = _props$translateX === void 0 ? 0 : _props$translateX,
          _props$translateY = props.translateY,
          translateY = _props$translateY === void 0 ? 0 : _props$translateY;
      var clipPadding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_5__.getPadding({
        padding: props.clipPadding
      });
      var radius = props.radius || _victory_util_helpers__WEBPACK_IMPORTED_MODULE_5__.getRadius(props);
      return {
        x: (polar ? origin.x : translateX) - clipPadding.left,
        y: (polar ? origin.y : translateY) - clipPadding.top,
        width: Math.max((polar ? radius : clipWidth) + clipPadding.left + clipPadding.right, 0),
        height: Math.max((polar ? radius : clipHeight) + clipPadding.top + clipPadding.bottom, 0)
      };
    }
  }, {
    key: "renderClippedGroup",
    value: function renderClippedGroup(props, clipId) {
      var style = props.style,
          events = props.events,
          transform = props.transform,
          children = props.children,
          className = props.className,
          groupComponent = props.groupComponent,
          tabIndex = props.tabIndex;
      var clipComponent = this.renderClipComponent(props, clipId);

      var groupProps = lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({
        className: className,
        style: style,
        transform: transform,
        key: "clipped-group-".concat(clipId),
        clipPath: "url(#".concat(clipId, ")")
      }, events);

      return react__WEBPACK_IMPORTED_MODULE_4__.cloneElement(groupComponent, _objectSpread({}, groupProps, {
        "aria-label": props["aria-label"],
        tabIndex: tabIndex
      }), [clipComponent].concat(_toConsumableArray(react__WEBPACK_IMPORTED_MODULE_4__.Children.toArray(children))));
    }
  }, {
    key: "renderGroup",
    value: function renderGroup(props) {
      var style = props.style,
          events = props.events,
          transform = props.transform,
          children = props.children,
          className = props.className,
          groupComponent = props.groupComponent,
          tabIndex = props.tabIndex;
      return react__WEBPACK_IMPORTED_MODULE_4__.cloneElement(groupComponent, lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({
        className: className,
        style: style,
        transform: transform,
        "aria-label": props["aria-label"],
        tabIndex: tabIndex
      }, events), children);
    }
  }, {
    key: "renderClipComponent",
    value: function renderClipComponent(props, clipId) {
      var polar = props.polar,
          origin = props.origin,
          _props$clipWidth2 = props.clipWidth,
          clipWidth = _props$clipWidth2 === void 0 ? 0 : _props$clipWidth2,
          _props$clipHeight2 = props.clipHeight,
          clipHeight = _props$clipHeight2 === void 0 ? 0 : _props$clipHeight2,
          _props$translateX2 = props.translateX,
          translateX = _props$translateX2 === void 0 ? 0 : _props$translateX2,
          _props$translateY2 = props.translateY,
          translateY = _props$translateY2 === void 0 ? 0 : _props$translateY2,
          circleComponent = props.circleComponent,
          rectComponent = props.rectComponent,
          clipPathComponent = props.clipPathComponent;

      var _Helpers$getPadding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_5__.getPadding({
        padding: props.clipPadding
      }),
          top = _Helpers$getPadding.top,
          bottom = _Helpers$getPadding.bottom,
          left = _Helpers$getPadding.left,
          right = _Helpers$getPadding.right;

      var child;

      if (polar) {
        var radius = props.radius || _victory_util_helpers__WEBPACK_IMPORTED_MODULE_5__.getRadius(props);
        var circleProps = {
          r: Math.max(radius + left + right, radius + top + bottom, 0),
          cx: origin.x - left,
          cy: origin.y - top
        };
        child = react__WEBPACK_IMPORTED_MODULE_4__.cloneElement(circleComponent, circleProps);
      } else {
        var rectProps = {
          x: translateX - left,
          y: translateY - top,
          width: Math.max(clipWidth + left + right, 0),
          height: Math.max(clipHeight + top + bottom, 0)
        };
        child = react__WEBPACK_IMPORTED_MODULE_4__.cloneElement(rectComponent, rectProps);
      }

      return react__WEBPACK_IMPORTED_MODULE_4__.cloneElement(clipPathComponent, lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({
        key: "clip-path-".concat(clipId)
      }, props, {
        clipId: clipId
      }), child);
    }
  }, {
    key: "getClipValue",
    value: function getClipValue(props, axis) {
      var clipValues = {
        x: props.clipWidth,
        y: props.clipHeight
      };

      if (clipValues[axis] !== undefined) {
        return clipValues[axis];
      }

      var range = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_5__.getRange(props, axis);
      return range ? Math.abs(range[0] - range[1]) || undefined : undefined;
    }
  }, {
    key: "getTranslateValue",
    value: function getTranslateValue(props, axis) {
      var translateValues = {
        x: props.translateX,
        y: props.translateY
      };

      if (translateValues[axis] !== undefined) {
        return translateValues[axis];
      }

      var range = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_5__.getRange(props, axis);
      return range ? Math.min.apply(Math, _toConsumableArray(range)) : undefined;
    }
  }, {
    key: "render",
    value: function render() {
      var clipHeight = this.getClipValue(this.props, "y");
      var clipWidth = this.getClipValue(this.props, "x");

      if (clipWidth === undefined || clipHeight === undefined) {
        return this.renderGroup(this.props);
      }

      var translateX = this.getTranslateValue(this.props, "x");
      var translateY = this.getTranslateValue(this.props, "y");

      var clipProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, this.props, {
        clipHeight: clipHeight,
        clipWidth: clipWidth,
        translateX: translateX,
        translateY: translateY
      });

      return this.renderClippedGroup(clipProps, this.clipId);
    }
  }]);

  return VictoryClipContainer;
}(react__WEBPACK_IMPORTED_MODULE_4__.Component);

Object.defineProperty(VictoryClipContainer, "displayName", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: "VictoryClipContainer"
});
Object.defineProperty(VictoryClipContainer, "role", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: "container"
});
Object.defineProperty(VictoryClipContainer, "propTypes", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: {
    "aria-label": (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
    children: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_6___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().node)]),
    circleComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
    className: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
    clipHeight: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_7__.nonNegative,
    clipId: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string)]),
    clipPadding: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
      top: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
      bottom: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
      left: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
      right: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)
    }),
    clipPathComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
    clipWidth: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_7__.nonNegative,
    events: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
    groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
    origin: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
      x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_7__.nonNegative,
      y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_7__.nonNegative
    }),
    polar: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
    radius: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_7__.nonNegative,
    style: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
    tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
    transform: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
    translateX: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
    translateY: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)
  }
});
Object.defineProperty(VictoryClipContainer, "defaultProps", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: {
    circleComponent: react__WEBPACK_IMPORTED_MODULE_4__.createElement(_victory_primitives_circle__WEBPACK_IMPORTED_MODULE_8__["default"], null),
    rectComponent: react__WEBPACK_IMPORTED_MODULE_4__.createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_9__["default"], null),
    clipPathComponent: react__WEBPACK_IMPORTED_MODULE_4__.createElement(_victory_primitives_clip_path__WEBPACK_IMPORTED_MODULE_10__["default"], null),
    groupComponent: react__WEBPACK_IMPORTED_MODULE_4__.createElement("g", null)
  }
});


/***/ }),

/***/ "./node_modules/victory-core/es/victory-container/victory-container.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-container/victory-container.js ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ VictoryContainer)
/* harmony export */ });
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isObject */ "./node_modules/lodash/isObject.js");
/* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/uniqueId */ "./node_modules/lodash/uniqueId.js");
/* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js");
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-util/prop-types */ "./node_modules/victory-core/es/victory-util/prop-types.js");
/* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-portal/portal */ "./node_modules/victory-core/es/victory-portal/portal.js");
/* harmony import */ var _victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-portal/portal-context */ "./node_modules/victory-core/es/victory-portal/portal-context.js");
/* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-util/timer-context */ "./node_modules/victory-core/es/victory-util/timer-context.js");
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/helpers */ "./node_modules/victory-core/es/victory-util/helpers.js");






function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }









var VictoryContainer =
/*#__PURE__*/
function (_React$Component) {
  _inherits(VictoryContainer, _React$Component);

  function VictoryContainer(props) {
    var _this;

    _classCallCheck(this, VictoryContainer);

    _this = _possibleConstructorReturn(this, (VictoryContainer.__proto__ || Object.getPrototypeOf(VictoryContainer)).call(this, props));
    _this.containerId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(props) || props.containerId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("victory-container-") : props.containerId;

    _this.savePortalRef = function (portal) {
      _this.portalRef = portal;
      return portal;
    };

    _this.portalUpdate = function (key, el) {
      return _this.portalRef.portalUpdate(key, el);
    };

    _this.portalRegister = function () {
      return _this.portalRef.portalRegister();
    };

    _this.portalDeregister = function (key) {
      return _this.portalRef.portalDeregister(key);
    };

    _this.saveContainerRef = props && lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(props.containerRef) ? props.containerRef : function (container) {
      _this.containerRef = container;
      return container;
    };
    _this.shouldHandleWheel = props && props.events && props.events.onWheel;

    if (_this.shouldHandleWheel) {
      _this.handleWheel = function (e) {
        return e.preventDefault();
      };
    }

    return _this;
  }

  _createClass(VictoryContainer, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      if (this.shouldHandleWheel && this.containerRef) {
        this.containerRef.addEventListener("wheel", this.handleWheel);
      }
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      if (this.shouldHandleWheel && this.containerRef) {
        this.containerRef.removeEventListener("wheel", this.handleWheel);
      }
    }
  }, {
    key: "getIdForElement",
    value: function getIdForElement(elementName) {
      return "".concat(this.containerId, "-").concat(elementName);
    } // overridden in custom containers

  }, {
    key: "getChildren",
    value: function getChildren(props) {
      return props.children;
    } // Get props defined by the Open UI Automation (OUIA) 1.0-RC spec
    // See https://ouia.readthedocs.io/en/latest/README.html#ouia-component

  }, {
    key: "getOUIAProps",
    value: function getOUIAProps(props) {
      var ouiaId = props.ouiaId,
          ouiaSafe = props.ouiaSafe,
          ouiaType = props.ouiaType;
      return _objectSpread({}, ouiaId && {
        "data-ouia-component-id": ouiaId
      }, ouiaType && {
        "data-ouia-component-type": ouiaType
      }, ouiaSafe !== undefined && {
        "data-ouia-safe": ouiaSafe
      });
    }
  }, {
    key: "renderContainer",
    value: function renderContainer(props, svgProps, style) {
      var title = props.title,
          desc = props.desc,
          portalComponent = props.portalComponent,
          className = props.className,
          width = props.width,
          height = props.height,
          portalZIndex = props.portalZIndex,
          responsive = props.responsive;
      var children = this.getChildren(props);
      var dimensions = responsive ? {
        width: "100%",
        height: "100%"
      } : {
        width: width,
        height: height
      };

      var divStyle = lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({
        pointerEvents: "none",
        touchAction: "none",
        position: "relative"
      }, dimensions);

      var portalDivStyle = lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({
        zIndex: portalZIndex,
        position: "absolute",
        top: 0,
        left: 0
      }, dimensions);

      var svgStyle = lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({
        pointerEvents: "all"
      }, dimensions);

      var portalSvgStyle = lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({
        overflow: "visible"
      }, dimensions);

      var portalProps = {
        width: width,
        height: height,
        viewBox: svgProps.viewBox,
        preserveAspectRatio: svgProps.preserveAspectRatio,
        style: portalSvgStyle
      };
      return react__WEBPACK_IMPORTED_MODULE_5__.createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__["default"].Provider, {
        value: {
          portalUpdate: this.portalUpdate,
          portalRegister: this.portalRegister,
          portalDeregister: this.portalDeregister
        }
      }, react__WEBPACK_IMPORTED_MODULE_5__.createElement("div", _extends({
        style: lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, style, divStyle),
        className: className,
        ref: this.saveContainerRef
      }, this.getOUIAProps(props)), react__WEBPACK_IMPORTED_MODULE_5__.createElement("svg", _extends({}, svgProps, {
        style: svgStyle
      }), title ? react__WEBPACK_IMPORTED_MODULE_5__.createElement("title", {
        id: this.getIdForElement("title")
      }, title) : null, desc ? react__WEBPACK_IMPORTED_MODULE_5__.createElement("desc", {
        id: this.getIdForElement("desc")
      }, desc) : null, children), react__WEBPACK_IMPORTED_MODULE_5__.createElement("div", {
        style: portalDivStyle
      }, react__WEBPACK_IMPORTED_MODULE_5__.cloneElement(portalComponent, _objectSpread({}, portalProps, {
        ref: this.savePortalRef
      })))));
    }
  }, {
    key: "render",
    value: function render() {
      var _props = this.props,
          width = _props.width,
          height = _props.height,
          responsive = _props.responsive,
          events = _props.events,
          title = _props.title,
          desc = _props.desc,
          tabIndex = _props.tabIndex,
          preserveAspectRatio = _props.preserveAspectRatio,
          role = _props.role;
      var style = responsive ? this.props.style : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__.omit(this.props.style, ["height", "width"]);

      var svgProps = lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({
        width: width,
        height: height,
        tabIndex: tabIndex,
        role: role,
        "aria-labelledby": [title && this.getIdForElement("title"), this.props["aria-labelledby"]].filter(Boolean).join(" ") || undefined,
        "aria-describedby": [desc && this.getIdForElement("desc"), this.props["aria-describedby"]].filter(Boolean).join(" ") || undefined,
        viewBox: responsive ? "0 0 ".concat(width, " ").concat(height) : undefined,
        preserveAspectRatio: responsive ? preserveAspectRatio : undefined
      }, events);

      return this.renderContainer(this.props, svgProps, style);
    }
  }]);

  return VictoryContainer;
}(react__WEBPACK_IMPORTED_MODULE_5__.Component);

Object.defineProperty(VictoryContainer, "displayName", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: "VictoryContainer"
});
Object.defineProperty(VictoryContainer, "role", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: "container"
});
Object.defineProperty(VictoryContainer, "propTypes", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: {
    "aria-describedby": (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
    "aria-labelledby": (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
    children: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_8___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_8___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().node)]),
    className: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
    containerId: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)]),
    containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func),
    desc: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
    events: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object),
    height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative,
    name: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
    origin: prop_types__WEBPACK_IMPORTED_MODULE_8___default().shape({
      x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative,
      y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative
    }),
    ouiaId: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)]),
    ouiaSafe: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
    ouiaType: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
    polar: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
    portalComponent: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().element),
    portalZIndex: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.integer,
    preserveAspectRatio: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
    responsive: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
    role: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
    style: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object),
    tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().number),
    theme: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object),
    title: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
    width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_9__.nonNegative
  }
});
Object.defineProperty(VictoryContainer, "defaultProps", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: {
    className: "VictoryContainer",
    portalComponent: react__WEBPACK_IMPORTED_MODULE_5__.createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_10__["default"], null),
    portalZIndex: 99,
    responsive: true,
    role: "img"
  }
});
Object.defineProperty(VictoryContainer, "contextType", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_11__["default"]
});


/***/ }),

/***/ "./node_modules/victory-core/es/victory-label/victory-label.js":
/*!*********************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-label/victory-label.js ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "./node_modules/lodash/isEmpty.js");
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js");
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var _victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-portal/victory-portal */ "./node_modules/victory-core/es/victory-portal/victory-portal.js");
/* harmony import */ var _victory_primitives_rect__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../victory-primitives/rect */ "./node_modules/victory-core/es/victory-primitives/rect.js");
/* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-util/prop-types */ "./node_modules/victory-core/es/victory-util/prop-types.js");
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/helpers */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var _victory_util_label_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/label-helpers */ "./node_modules/victory-core/es/victory-util/label-helpers.js");
/* harmony import */ var _victory_util_style__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/style */ "./node_modules/victory-core/es/victory-util/style.js");
/* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/log */ "./node_modules/victory-core/es/victory-util/log.js");
/* harmony import */ var _victory_util_textsize__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-util/textsize */ "./node_modules/victory-core/es/victory-util/textsize.js");
/* harmony import */ var _victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../victory-primitives/tspan */ "./node_modules/victory-core/es/victory-primitives/tspan.js");
/* harmony import */ var _victory_primitives_text__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../victory-primitives/text */ "./node_modules/victory-core/es/victory-primitives/text.js");




function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

/*eslint no-magic-numbers: ["error", { "ignore": [-0.5, 0.5, 0, 1, 2] }]*/












var defaultStyles = {
  fill: "#252525",
  fontSize: 14,
  fontFamily: "'Gill Sans', 'Gill Sans MT', 'Ser­avek', 'Trebuchet MS', sans-serif",
  stroke: "transparent"
};

var getPosition = function (props, dimension) {
  if (!props.datum) {
    return 0;
  }

  var scaledPoint = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.scalePoint(props, props.datum);
  return scaledPoint[dimension];
};

var getFontSize = function (style) {
  var baseSize = style && style.fontSize;

  if (typeof baseSize === "number") {
    return baseSize;
  } else if (baseSize === undefined || baseSize === null) {
    return defaultStyles.fontSize;
  } else if (typeof baseSize === "string") {
    var fontSize = +baseSize.replace("px", "");

    if (!isNaN(fontSize)) {
      return fontSize;
    } else {
      _victory_util_log__WEBPACK_IMPORTED_MODULE_5__.warn("fontSize should be expressed as a number of pixels");
      return defaultStyles.fontSize;
    }
  }

  return defaultStyles.fontSize;
};

var getSingleValue = function (prop) {
  var index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  return Array.isArray(prop) ? prop[index] || prop[0] : prop;
};

var useMultiLineBackgrounds = function (props) {
  var backgroundStyle = props.backgroundStyle,
      backgroundPadding = props.backgroundPadding;
  return Array.isArray(backgroundStyle) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(backgroundStyle) || Array.isArray(backgroundPadding) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(backgroundPadding);
};

var getStyles = function (style, props) {
  if (props.disableInlineStyles) {
    var baseStyles = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(style, props);
    return {
      // Font size is necessary to calculate the y position of the label
      fontSize: getFontSize(baseStyles)
    };
  }

  var getSingleStyle = function (s) {
    s = s ? lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, s, defaultStyles) : defaultStyles;
    var baseStyles = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(s, props);
    return lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, baseStyles, {
      fontSize: getFontSize(baseStyles)
    });
  };

  return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(style) ? style.map(function (s) {
    return getSingleStyle(s);
  }) : getSingleStyle(style);
};

var getBackgroundStyles = function (style, props) {
  if (!style) {
    return undefined;
  }

  return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(style) ? style.map(function (s) {
    return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(s, props);
  }) : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(style, props);
};

var getBackgroundPadding = function (props) {
  if (props.backgroundPadding && Array.isArray(props.backgroundPadding)) {
    return props.backgroundPadding.map(function (backgroundPadding) {
      var padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(backgroundPadding, props);
      return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.getPadding({
        padding: padding
      });
    });
  } else {
    var padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.backgroundPadding, props);
    return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.getPadding({
      padding: padding
    });
  }
};

var getLineHeight = function (props) {
  var lineHeight = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.lineHeight, props);

  if (Array.isArray(lineHeight)) {
    return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(lineHeight) ? [1] : lineHeight;
  } else {
    return lineHeight;
  }
};

var getContent = function (text, props) {
  if (text === undefined || text === null) {
    return undefined;
  }

  if (Array.isArray(text)) {
    return text.map(function (line) {
      return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(line, props);
    });
  }

  var child = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(text, props);

  if (child === undefined || child === null) {
    return undefined;
  }

  return Array.isArray(child) ? child : "".concat(child).split("\n");
};

var getDy = function (props, verticalAnchor, lineHeight) {
  var dy = props.dy ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.dy, props) : 0;
  var length = props.inline ? 1 : props.text.length;
  var capHeight = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.capHeight, props);
  var anchor = verticalAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(verticalAnchor, props) : "middle";

  var fontSizes = _toConsumableArray(Array(length).keys()).map(function (i) {
    return getSingleValue(props.style, i).fontSize;
  });

  var lineHeights = _toConsumableArray(Array(length).keys()).map(function (i) {
    return getSingleValue(lineHeight, i);
  });

  if (anchor === "start") {
    return dy + (capHeight / 2 + lineHeights[0] / 2) * fontSizes[0];
  } else if (props.inline) {
    return anchor === "end" ? dy + (capHeight / 2 - lineHeights[0] / 2) * fontSizes[0] : dy + capHeight / 2 * fontSizes[0];
  } else if (length === 1) {
    return anchor === "end" ? dy + (capHeight / 2 + (0.5 - length) * lineHeights[0]) * fontSizes[0] : dy + (capHeight / 2 + (0.5 - length / 2) * lineHeights[0]) * fontSizes[0];
  } else {
    var allHeights = _toConsumableArray(Array(length).keys()).reduce(function (memo, i) {
      return memo + (capHeight / 2 + (0.5 - length) * lineHeights[i]) * fontSizes[i] / length;
    }, 0);

    return anchor === "end" ? dy + allHeights : dy + allHeights / 2 + capHeight / 2 * lineHeights[length - 1] * fontSizes[length - 1];
  }
};

var getTransform = function (props, x, y) {
  var polar = props.polar;
  var style = getSingleValue(props.style);
  var defaultAngle = polar ? _victory_util_label_helpers__WEBPACK_IMPORTED_MODULE_6__.getPolarAngle(props) : 0;
  var baseAngle = style.angle === undefined ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.angle, props) : style.angle;
  var angle = baseAngle === undefined ? defaultAngle : baseAngle;
  var transform = props.transform || style.transform;
  var transformPart = transform && _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(transform, props);
  var rotatePart = angle && {
    rotate: [angle, x, y]
  };
  return transformPart || angle ? _victory_util_style__WEBPACK_IMPORTED_MODULE_7__.toTransformString(transformPart, rotatePart) : undefined;
};

var getXCoordinate = function (calculatedProps, labelSizeWidth) {
  var direction = calculatedProps.direction,
      textAnchor = calculatedProps.textAnchor,
      x = calculatedProps.x,
      dx = calculatedProps.dx;

  if (direction === "rtl") {
    return x - labelSizeWidth;
  }

  switch (textAnchor) {
    case "middle":
      return Math.round(x - labelSizeWidth / 2);

    case "end":
      return Math.round(x - labelSizeWidth);

    default:
      // start
      return x + (dx || 0);
  }
};

var getYCoordinate = function (calculatedProps, textHeight) {
  var verticalAnchor = calculatedProps.verticalAnchor,
      y = calculatedProps.y,
      _calculatedProps$orig = calculatedProps.originalDy,
      originalDy = _calculatedProps$orig === void 0 ? 0 : _calculatedProps$orig;
  var offset = y + originalDy;

  switch (verticalAnchor) {
    case "start":
      return Math.floor(offset);

    case "end":
      return Math.ceil(offset - textHeight);

    default:
      // middle
      return Math.floor(offset - textHeight / 2);
  }
};

var getFullBackground = function (calculatedProps, tspanValues) {
  var _calculatedProps$dx = calculatedProps.dx,
      dx = _calculatedProps$dx === void 0 ? 0 : _calculatedProps$dx,
      transform = calculatedProps.transform,
      backgroundComponent = calculatedProps.backgroundComponent,
      backgroundStyle = calculatedProps.backgroundStyle,
      inline = calculatedProps.inline,
      backgroundPadding = calculatedProps.backgroundPadding,
      capHeight = calculatedProps.capHeight;
  var textSizes = tspanValues.map(function (tspan) {
    return tspan.textSize;
  });
  var height = inline ? Math.max.apply(Math, _toConsumableArray(textSizes.map(function (size) {
    return size.height;
  }))) : textSizes.reduce(function (memo, size, i) {
    var capHeightAdjustment = i ? 0 : capHeight / 2;
    return memo + size.height * (tspanValues[i].lineHeight - capHeightAdjustment);
  }, 0);
  var width = inline ? textSizes.reduce(function (memo, size, index) {
    var offset = index ? dx : 0;
    return memo + size.width + offset;
  }, 0) : Math.max.apply(Math, _toConsumableArray(textSizes.map(function (size) {
    return size.width;
  })));
  var xCoordinate = getXCoordinate(calculatedProps, width);
  var yCoordinate = getYCoordinate(calculatedProps, height);
  var backgroundProps = {
    key: "background",
    height: height + backgroundPadding.top + backgroundPadding.bottom,
    style: backgroundStyle,
    transform: transform,
    width: width + backgroundPadding.left + backgroundPadding.right,
    x: inline ? xCoordinate - backgroundPadding.left : xCoordinate + dx - backgroundPadding.left,
    y: yCoordinate
  };
  return react__WEBPACK_IMPORTED_MODULE_3__.cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
};

var getInlineXOffset = function (calculatedProps, textElements, index) {
  var textAnchor = calculatedProps.textAnchor;
  var widths = textElements.map(function (t) {
    return t.widthWithPadding;
  });
  var totalWidth = widths.reduce(function (memo, width) {
    return memo + width;
  }, 0);
  var centerOffset = -totalWidth / 2;

  switch (textAnchor) {
    case "start":
      return widths.reduce(function (memo, width, i) {
        memo = i < index ? memo + width : memo;
        return memo;
      }, 0);

    case "end":
      return widths.reduce(function (memo, width, i) {
        memo = i > index ? memo - width : memo;
        return memo;
      }, 0);

    default:
      // middle
      return widths.reduce(function (memo, width, i) {
        var offsetWidth = i < index ? width : 0;
        memo = i === index ? memo + width / 2 : memo + offsetWidth;
        return memo;
      }, centerOffset);
  }
};

var getChildBackgrounds = function (calculatedProps, tspanValues) {
  var dy = calculatedProps.dy,
      dx = calculatedProps.dx,
      transform = calculatedProps.transform,
      backgroundStyle = calculatedProps.backgroundStyle,
      backgroundPadding = calculatedProps.backgroundPadding,
      backgroundComponent = calculatedProps.backgroundComponent,
      inline = calculatedProps.inline,
      y = calculatedProps.y;
  var textElements = tspanValues.map(function (current, i) {
    var previous = getSingleValue(tspanValues, i - 1);
    var labelSize = current.textSize;
    var totalLineHeight = current.fontSize * current.lineHeight;
    var textHeight = Math.ceil(totalLineHeight);
    var padding = getSingleValue(backgroundPadding, i);
    var prevPadding = getSingleValue(backgroundPadding, i - 1);
    var xOffset = inline ? dx || 0 : 0;
    var childDy = i && !inline ? previous.fontSize * previous.lineHeight + prevPadding.top + prevPadding.bottom : dy - totalLineHeight * 0.5 - (current.fontSize - current.capHeight);
    return {
      textHeight: textHeight,
      labelSize: labelSize,
      heightWithPadding: textHeight + padding.top + padding.bottom,
      widthWithPadding: labelSize.width + padding.left + padding.right + xOffset,
      y: y,
      fontSize: current.fontSize,
      dy: childDy
    };
  });
  return textElements.map(function (textElement, i) {
    var xCoordinate = getXCoordinate(calculatedProps, textElement.labelSize.width);
    var yCoordinate = textElements.slice(0, i + 1).reduce(function (prev, curr) {
      return prev + curr.dy;
    }, y);
    var padding = getSingleValue(backgroundPadding, i);
    var height = textElement.heightWithPadding;
    var xCoord = inline ? getInlineXOffset(calculatedProps, textElements, i) + xCoordinate - padding.left : xCoordinate;
    var yCoord = inline ? getYCoordinate(calculatedProps, height) - padding.top : yCoordinate;
    var backgroundProps = {
      key: "tspan-background-".concat(i),
      height: height,
      style: getSingleValue(backgroundStyle, i),
      width: textElement.widthWithPadding,
      transform: transform,
      x: xCoord - padding.left,
      y: yCoord
    };
    return react__WEBPACK_IMPORTED_MODULE_3__.cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
  });
};

var getBackgroundElement = function (calculatedProps, tspanValues) {
  return useMultiLineBackgrounds(calculatedProps) ? getChildBackgrounds(calculatedProps, tspanValues) : getFullBackground(calculatedProps, tspanValues);
};

var calculateSpanDy = function (tspanValues, i, calculatedProps) {
  var current = getSingleValue(tspanValues, i);
  var previous = getSingleValue(tspanValues, i - 1);
  var previousHeight = previous.fontSize * previous.lineHeight;
  var currentHeight = current.fontSize * current.lineHeight;
  var previousCaps = previous.fontSize - previous.capHeight;
  var currentCaps = current.fontSize - current.capHeight;
  var textHeight = previousHeight - previous.fontSize / 2 + current.fontSize / 2 - previousHeight / 2 + currentHeight / 2 - currentCaps / 2 + previousCaps / 2;
  return useMultiLineBackgrounds(calculatedProps) ? textHeight + current.backgroundPadding.top + previous.backgroundPadding.bottom : textHeight;
};

var getTSpanDy = function (tspanValues, calculatedProps, i) {
  var inline = calculatedProps.inline;
  var current = getSingleValue(tspanValues, i);

  if (i && !inline) {
    return calculateSpanDy(tspanValues, i, calculatedProps);
  } else if (inline) {
    return i === 0 ? current.backgroundPadding.top : undefined;
  } else {
    return current.backgroundPadding.top;
  }
};

var evaluateProps = function (props) {
  /* Potential evaluated props are
    1) text
    2) style
    3) everything else
  */
  var text = getContent(props.text, props);
  var style = getStyles(props.style, lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
    text: text
  }));
  var backgroundStyle = getBackgroundStyles(props.backgroundStyle, lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
    text: text,
    style: style
  }));
  var backgroundPadding = getBackgroundPadding(lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
    text: text,
    style: style,
    backgroundStyle: backgroundStyle
  }));
  var id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.id, props);
  return lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
    backgroundStyle: backgroundStyle,
    backgroundPadding: backgroundPadding,
    style: style,
    text: text,
    id: id
  });
};

var getCalculatedProps = function (props) {
  var ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.ariaLabel, props);
  var style = getSingleValue(props.style);
  var lineHeight = getLineHeight(props);
  var direction = props.direction ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.direction, props) : "inherit";
  var textAnchor = props.textAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.textAnchor, props) : style.textAnchor || "start";
  var verticalAnchor = props.verticalAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.verticalAnchor, props) : style.verticalAnchor || "middle";
  var dx = props.dx ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.dx, props) : 0;
  var dy = getDy(props, verticalAnchor, lineHeight);
  var x = props.x !== undefined ? props.x : getPosition(props, "x");
  var y = props.y !== undefined ? props.y : getPosition(props, "y");
  var transform = getTransform(props, x, y);
  return lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
    ariaLabel: ariaLabel,
    lineHeight: lineHeight,
    direction: direction,
    textAnchor: textAnchor,
    verticalAnchor: verticalAnchor,
    dx: dx,
    dy: dy,
    originalDy: props.dy,
    transform: transform,
    x: x,
    y: y
  });
};

var renderLabel = function (calculatedProps, tspanValues) {
  var ariaLabel = calculatedProps.ariaLabel,
      inline = calculatedProps.inline,
      className = calculatedProps.className,
      title = calculatedProps.title,
      events = calculatedProps.events,
      direction = calculatedProps.direction,
      text = calculatedProps.text,
      textAnchor = calculatedProps.textAnchor,
      dx = calculatedProps.dx,
      dy = calculatedProps.dy,
      transform = calculatedProps.transform,
      x = calculatedProps.x,
      y = calculatedProps.y,
      desc = calculatedProps.desc,
      id = calculatedProps.id,
      tabIndex = calculatedProps.tabIndex,
      tspanComponent = calculatedProps.tspanComponent,
      textComponent = calculatedProps.textComponent;

  var textProps = _objectSpread({
    "aria-label": ariaLabel,
    key: "text"
  }, events, {
    direction: direction,
    dx: dx,
    x: x,
    y: y + dy,
    transform: transform,
    className: className,
    title: title,
    desc: _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(desc, calculatedProps),
    tabIndex: _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(tabIndex, calculatedProps),
    id: id
  });

  var tspans = text.map(function (line, i) {
    var currentStyle = tspanValues[i].style;
    var tspanProps = {
      key: "".concat(id, "-key-").concat(i),
      x: !inline ? x : undefined,
      dx: inline ? dx + tspanValues[i].backgroundPadding.left : dx,
      dy: getTSpanDy(tspanValues, calculatedProps, i),
      textAnchor: currentStyle.textAnchor || textAnchor,
      style: currentStyle,
      children: line
    };
    return react__WEBPACK_IMPORTED_MODULE_3__.cloneElement(tspanComponent, tspanProps);
  });
  return react__WEBPACK_IMPORTED_MODULE_3__.cloneElement(textComponent, textProps, tspans);
};

var VictoryLabel = function (props) {
  props = evaluateProps(props);

  if (props.text === null || props.text === undefined) {
    return null;
  }

  var calculatedProps = getCalculatedProps(props);
  var text = calculatedProps.text,
      style = calculatedProps.style,
      capHeight = calculatedProps.capHeight,
      backgroundPadding = calculatedProps.backgroundPadding,
      lineHeight = calculatedProps.lineHeight;
  var tspanValues = text.map(function (line, i) {
    var currentStyle = getSingleValue(style, i);
    var capHeightPx = _victory_util_textsize__WEBPACK_IMPORTED_MODULE_8__.convertLengthToPixels("".concat(capHeight, "em"), currentStyle.fontSize);
    var currentLineHeight = getSingleValue(lineHeight, i);
    return {
      style: currentStyle,
      fontSize: currentStyle.fontSize || defaultStyles.fontSize,
      capHeight: capHeightPx,
      text: line,
      textSize: _victory_util_textsize__WEBPACK_IMPORTED_MODULE_8__.approximateTextSize(line, currentStyle),
      lineHeight: currentLineHeight,
      backgroundPadding: getSingleValue(backgroundPadding, i)
    };
  });
  var label = renderLabel(calculatedProps, tspanValues);

  if (props.backgroundStyle) {
    var backgroundElement = getBackgroundElement(calculatedProps, tspanValues);
    var children = [backgroundElement, label];
    var backgroundWithLabel = react__WEBPACK_IMPORTED_MODULE_3__.cloneElement(props.groupComponent, {}, children);
    return props.renderInPortal ? react__WEBPACK_IMPORTED_MODULE_3__.createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_9__["default"], null, backgroundWithLabel) : backgroundWithLabel;
  }

  return props.renderInPortal ? react__WEBPACK_IMPORTED_MODULE_3__.createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_9__["default"], null, label) : label;
};

VictoryLabel.displayName = "VictoryLabel";
VictoryLabel.role = "label";
VictoryLabel.defaultStyles = defaultStyles;
VictoryLabel.propTypes = {
  active: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool),
  angle: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func)]),
  ariaLabel: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func)]),
  backgroundComponent: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().element),
  backgroundPadding: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().array)]),
  backgroundStyle: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().array)]),
  capHeight: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().string), _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_11__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func)]),
  className: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
  data: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().array),
  datum: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().any),
  desc: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func)]),
  direction: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOf(["rtl", "ltr", "inherit"]),
  dx: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func)]),
  dy: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func)]),
  events: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().object),
  groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().element),
  id: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func)]),
  index: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string)]),
  inline: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool),
  labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOf(["parallel", "perpendicular", "vertical"]),
  lineHeight: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().string), _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_11__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().array)]),
  origin: prop_types__WEBPACK_IMPORTED_MODULE_10___default().shape({
    x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_11__.nonNegative,
    y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_11__.nonNegative
  }),
  polar: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool),
  renderInPortal: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool),
  scale: prop_types__WEBPACK_IMPORTED_MODULE_10___default().shape({
    x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_11__.scale,
    y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_11__.scale
  }),
  style: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().array)]),
  tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func)]),
  text: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().array)]),
  textAnchor: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOf(["start", "middle", "end", "inherit"]), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func)]),
  textComponent: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().element),
  title: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string),
  transform: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func)]),
  tspanComponent: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().element),
  verticalAnchor: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOf(["start", "middle", "end"]), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func)]),
  x: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string)]),
  y: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().string)])
};
VictoryLabel.defaultProps = {
  backgroundComponent: react__WEBPACK_IMPORTED_MODULE_3__.createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_12__["default"], null),
  groupComponent: react__WEBPACK_IMPORTED_MODULE_3__.createElement("g", null),
  direction: "inherit",
  textComponent: react__WEBPACK_IMPORTED_MODULE_3__.createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_13__["default"], null),
  tspanComponent: react__WEBPACK_IMPORTED_MODULE_3__.createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_14__["default"], null),
  capHeight: 0.71,
  // Magic number from d3.
  lineHeight: 1
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (VictoryLabel);

/***/ }),

/***/ "./node_modules/victory-core/es/victory-portal/portal-context.js":
/*!***********************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-portal/portal-context.js ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");

/**
 * The React context object consumers may use to access the context of the
 * portal.
 */

var PortalContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext({});
PortalContext.displayName = "PortalContext";
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PortalContext);

/***/ }),

/***/ "./node_modules/victory-core/es/victory-portal/portal.js":
/*!***************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-portal/portal.js ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ Portal)
/* harmony export */ });
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "./node_modules/lodash/keys.js");
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/prop-types */ "./node_modules/victory-core/es/victory-util/prop-types.js");


function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }





var Portal =
/*#__PURE__*/
function (_React$Component) {
  _inherits(Portal, _React$Component);

  function Portal(props) {
    var _this;

    _classCallCheck(this, Portal);

    _this = _possibleConstructorReturn(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).call(this, props));
    _this.map = {};
    _this.index = 1;
    _this.portalUpdate = _this.portalUpdate.bind(_assertThisInitialized(_this));
    _this.portalRegister = _this.portalRegister.bind(_assertThisInitialized(_this));
    _this.portalDeregister = _this.portalDeregister.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(Portal, [{
    key: "portalRegister",
    value: function portalRegister() {
      return ++this.index;
    }
  }, {
    key: "portalUpdate",
    value: function portalUpdate(key, element) {
      this.map[key] = element;
      this.forceUpdate();
    }
  }, {
    key: "portalDeregister",
    value: function portalDeregister(key) {
      delete this.map[key];
      this.forceUpdate();
    }
  }, {
    key: "getChildren",
    value: function getChildren() {
      var _this2 = this;

      return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(this.map).map(function (key) {
        var el = _this2.map[key];
        return el ? react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(el, {
          key: key
        }) : el;
      });
    } // Overridden in victory-core-native

  }, {
    key: "render",
    value: function render() {
      return react__WEBPACK_IMPORTED_MODULE_1__.createElement("svg", this.props, this.getChildren());
    }
  }]);

  return Portal;
}(react__WEBPACK_IMPORTED_MODULE_1__.Component);

Object.defineProperty(Portal, "displayName", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: "Portal"
});
Object.defineProperty(Portal, "propTypes", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: {
    className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
    height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
    style: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
    viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
    width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
  }
});


/***/ }),

/***/ "./node_modules/victory-core/es/victory-portal/victory-portal.js":
/*!***********************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-portal/victory-portal.js ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ VictoryPortal)
/* harmony export */ });
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js");
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/log */ "./node_modules/victory-core/es/victory-util/log.js");
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var _portal_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./portal-context */ "./node_modules/victory-core/es/victory-portal/portal-context.js");


function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }







var VictoryPortal =
/*#__PURE__*/
function (_React$Component) {
  _inherits(VictoryPortal, _React$Component);

  function VictoryPortal() {
    _classCallCheck(this, VictoryPortal);

    return _possibleConstructorReturn(this, (VictoryPortal.__proto__ || Object.getPrototypeOf(VictoryPortal)).apply(this, arguments));
  }

  _createClass(VictoryPortal, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      if (!this.checkedContext) {
        if (typeof this.context.portalUpdate !== "function") {
          var msg = "`renderInPortal` is not supported outside of `VictoryContainer`. " + "Component will be rendered in place";
          _victory_util_log__WEBPACK_IMPORTED_MODULE_2__.warn(msg);
          this.renderInPlace = true;
        }

        this.checkedContext = true;
      }

      this.forceUpdate();
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate() {
      if (!this.renderInPlace) {
        this.portalKey = this.portalKey || this.context.portalRegister();
        this.context.portalUpdate(this.portalKey, this.element);
      }
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      if (this.context && this.context.portalDeregister) {
        this.context.portalDeregister(this.portalKey);
      }
    } // Overridden in victory-core-native

  }, {
    key: "renderPortal",
    value: function renderPortal(child) {
      if (this.renderInPlace) {
        return child;
      }

      this.element = child;
      return null;
    }
  }, {
    key: "render",
    value: function render() {
      var children = Array.isArray(this.props.children) ? this.props.children[0] : this.props.children;
      var groupComponent = this.props.groupComponent;
      var childProps = children && children.props || {};
      var standardProps = childProps.groupComponent ? {
        groupComponent: groupComponent,
        standalone: false
      } : {};

      var newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(standardProps, childProps, _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.omit(this.props, ["children", "groupComponent"]));

      var child = children && react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(children, newProps);
      return this.renderPortal(child);
    }
  }]);

  return VictoryPortal;
}(react__WEBPACK_IMPORTED_MODULE_1__.Component);

Object.defineProperty(VictoryPortal, "displayName", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: "VictoryPortal"
});
Object.defineProperty(VictoryPortal, "role", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: "portal"
});
Object.defineProperty(VictoryPortal, "propTypes", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: {
    children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node),
    groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element)
  }
});
Object.defineProperty(VictoryPortal, "defaultProps", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: {
    groupComponent: react__WEBPACK_IMPORTED_MODULE_1__.createElement("g", null)
  }
});
Object.defineProperty(VictoryPortal, "contextType", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: _portal_context__WEBPACK_IMPORTED_MODULE_5__["default"]
});


/***/ }),

/***/ "./node_modules/victory-core/es/victory-primitives/arc.js":
/*!****************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-primitives/arc.js ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/common-props */ "./node_modules/victory-core/es/victory-util/common-props.js");
/* harmony import */ var _path__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./path */ "./node_modules/victory-core/es/victory-primitives/path.js");


function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

/*eslint no-magic-numbers: ["error", { "ignore": [0, 1, 2, 180] }]*/






var getArcPath = function (props) {
  var cx = props.cx,
      cy = props.cy,
      r = props.r,
      startAngle = props.startAngle,
      endAngle = props.endAngle,
      closedPath = props.closedPath; // Always draw the path as two arcs so that complete circles may be rendered.

  var halfAngle = Math.abs(endAngle - startAngle) / 2 + startAngle;
  var x1 = cx + r * Math.cos(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.degreesToRadians(startAngle));
  var y1 = cy - r * Math.sin(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.degreesToRadians(startAngle));
  var x2 = cx + r * Math.cos(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.degreesToRadians(halfAngle));
  var y2 = cy - r * Math.sin(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.degreesToRadians(halfAngle));
  var x3 = cx + r * Math.cos(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.degreesToRadians(endAngle));
  var y3 = cy - r * Math.sin(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.degreesToRadians(endAngle));
  var largerArcFlag1 = halfAngle - startAngle <= 180 ? 0 : 1;
  var largerArcFlag2 = endAngle - halfAngle <= 180 ? 0 : 1;
  var arcStart = closedPath ? " M ".concat(cx, ", ").concat(cy, " L ").concat(x1, ", ").concat(y1) : "M ".concat(x1, ", ").concat(y1);
  var arc1 = "A ".concat(r, ", ").concat(r, ", 0, ").concat(largerArcFlag1, ", 0, ").concat(x2, ", ").concat(y2);
  var arc2 = "A ".concat(r, ", ").concat(r, ", 0, ").concat(largerArcFlag2, ", 0, ").concat(x3, ", ").concat(y3);
  var arcEnd = closedPath ? "Z" : "";
  return "".concat(arcStart, " ").concat(arc1, " ").concat(arc2, " ").concat(arcEnd);
};

var evaluateProps = function (props) {
  /**
   * Potential evaluated props are:
   * `ariaLabel`
   * `desc`
   * `id`
   * `style`
   * `tabIndex`
   */
  var ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.ariaLabel, props);
  var desc = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.desc, props);
  var id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.id, props);
  var style = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateStyle(lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    stroke: "black",
    fill: "none"
  }, props.style), props);
  var tabIndex = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.tabIndex, props);
  return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
    ariaLabel: ariaLabel,
    desc: desc,
    id: id,
    style: style,
    tabIndex: tabIndex
  });
};

var Arc = function (props) {
  props = evaluateProps(props);
  return react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(props.pathComponent, _objectSpread({}, props.events, {
    "aria-label": props.ariaLabel,
    d: getArcPath(props),
    style: props.style,
    desc: props.desc,
    tabIndex: props.tabIndex,
    className: props.className,
    role: props.role,
    shapeRendering: props.shapeRendering,
    transform: props.transform,
    clipPath: props.clipPath
  }));
};

Arc.propTypes = _objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.primitiveProps, {
  closedPath: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool),
  cx: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
  cy: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
  datum: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().any),
  endAngle: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
  pathComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
  r: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
  startAngle: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number)
});
Arc.defaultProps = {
  pathComponent: react__WEBPACK_IMPORTED_MODULE_1__.createElement(_path__WEBPACK_IMPORTED_MODULE_5__["default"], null),
  role: "presentation",
  shapeRendering: "auto"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Arc);

/***/ }),

/***/ "./node_modules/victory-core/es/victory-primitives/background.js":
/*!***********************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-primitives/background.js ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/common-props */ "./node_modules/victory-core/es/victory-util/common-props.js");
/* harmony import */ var _rect__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./rect */ "./node_modules/victory-core/es/victory-primitives/rect.js");
/* harmony import */ var _circle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./circle */ "./node_modules/victory-core/es/victory-primitives/circle.js");


function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }








var evaluateProps = function (props) {
  /**
   * Potential evaluated prop is:
   * `id`
   */
  var id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.id, props);
  return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
    id: id
  });
};

var Background = function (props) {
  props = evaluateProps(props);
  return props.polar ? react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(props.circleComponent, _objectSpread({}, props.events, {
    style: props.style,
    role: props.role,
    shapeRendering: props.shapeRendering,
    cx: props.x,
    cy: props.y,
    r: props.height,
    className: props.className
  })) : react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(props.rectComponent, _objectSpread({}, props.events, {
    style: props.style,
    role: props.role,
    shapeRendering: props.shapeRendering,
    x: props.x,
    y: props.y,
    rx: props.rx,
    ry: props.ry,
    width: props.width,
    height: props.height,
    className: props.className
  }));
};

Background.propTypes = _objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.primitiveProps, {
  circleComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
  height: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
  rectComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
  rx: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
  ry: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
  width: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
  x: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
  y: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number)
});
Background.defaultProps = {
  circleComponent: react__WEBPACK_IMPORTED_MODULE_1__.createElement(_circle__WEBPACK_IMPORTED_MODULE_5__["default"], null),
  rectComponent: react__WEBPACK_IMPORTED_MODULE_1__.createElement(_rect__WEBPACK_IMPORTED_MODULE_6__["default"], null),
  role: "presentation",
  shapeRendering: "auto"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Background);

/***/ }),

/***/ "./node_modules/victory-core/es/victory-primitives/border.js":
/*!*******************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-primitives/border.js ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/common-props */ "./node_modules/victory-core/es/victory-util/common-props.js");
/* harmony import */ var _rect__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./rect */ "./node_modules/victory-core/es/victory-primitives/rect.js");


function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }







var evaluateProps = function (props) {
  /**
   * Potential evaluated props are:
   * `ariaLabel`
   * `desc`
   * `id`
   * `style`
   * `tabIndex`
   */
  var ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.ariaLabel, props);
  var desc = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.desc, props);
  var id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.id, props);
  var style = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateStyle(lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    fill: "none"
  }, props.style), props);
  var tabIndex = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.tabIndex, props);
  return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
    ariaLabel: ariaLabel,
    desc: desc,
    id: id,
    style: style,
    tabIndex: tabIndex
  });
};

var Border = function (props) {
  props = evaluateProps(props);
  return react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(props.rectComponent, _objectSpread({}, props.events, {
    "aria-label": props.ariaLabel,
    style: props.style,
    desc: props.desc,
    tabIndex: props.tabIndex,
    transform: props.transform,
    className: props.className,
    role: props.role,
    shapeRendering: props.shapeRendering,
    x: props.x,
    y: props.y,
    width: props.width,
    height: props.height,
    clipPath: props.clipPath
  }));
};

Border.propTypes = _objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.primitiveProps, {
  height: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
  rectComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
  width: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
  x: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
  y: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number)
});
Border.defaultProps = {
  rectComponent: react__WEBPACK_IMPORTED_MODULE_1__.createElement(_rect__WEBPACK_IMPORTED_MODULE_5__["default"], null),
  role: "presentation",
  shapeRendering: "auto"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Border);

/***/ }),

/***/ "./node_modules/victory-core/es/victory-primitives/circle.js":
/*!*******************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-primitives/circle.js ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }



var Circle = function (props) {
  // eslint-disable-next-line react/prop-types
  var desc = props.desc,
      rest = _objectWithoutProperties(props, ["desc"]);

  return desc ? react__WEBPACK_IMPORTED_MODULE_0__.createElement("circle", _extends({
    vectorEffect: "non-scaling-stroke"
  }, rest), react__WEBPACK_IMPORTED_MODULE_0__.createElement("desc", null, desc)) : react__WEBPACK_IMPORTED_MODULE_0__.createElement("circle", _extends({
    vectorEffect: "non-scaling-stroke"
  }, rest));
};

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Circle);

/***/ }),

/***/ "./node_modules/victory-core/es/victory-primitives/clip-path.js":
/*!**********************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-primitives/clip-path.js ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);



var ClipPath = function (props) {
  return react__WEBPACK_IMPORTED_MODULE_0__.createElement("defs", null, react__WEBPACK_IMPORTED_MODULE_0__.createElement("clipPath", {
    id: props.clipId
  }, props.children));
};

ClipPath.propTypes = {
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_1___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node)]),
  clipId: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)])
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ClipPath);

/***/ }),

/***/ "./node_modules/victory-core/es/victory-primitives/line-segment.js":
/*!*************************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-primitives/line-segment.js ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/common-props */ "./node_modules/victory-core/es/victory-util/common-props.js");
/* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./line */ "./node_modules/victory-core/es/victory-primitives/line.js");


function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }







var evaluateProps = function (props) {
  /**
   * Potential evaluated props are:
   * `ariaLabel`
   * `desc`
   * `id`
   * `style`
   * `tabIndex`
   */
  var ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.ariaLabel, props);
  var desc = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.desc, props);
  var id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.id, props);
  var style = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateStyle(lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    stroke: "black"
  }, props.style), props);
  var tabIndex = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.tabIndex, props);
  return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
    ariaLabel: ariaLabel,
    desc: desc,
    id: id,
    style: style,
    tabIndex: tabIndex
  });
};

var LineSegment = function (props) {
  props = evaluateProps(props);
  return react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(props.lineComponent, _objectSpread({}, props.events, {
    "aria-label": props.ariaLabel,
    style: props.style,
    desc: props.desc,
    tabIndex: props.tabIndex,
    className: props.className,
    role: props.role,
    shapeRendering: props.shapeRendering,
    x1: props.x1,
    x2: props.x2,
    y1: props.y1,
    y2: props.y2,
    transform: props.transform,
    clipPath: props.clipPath
  }));
};

LineSegment.propTypes = _objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.primitiveProps, {
  datum: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().any),
  lineComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
  x1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
  x2: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
  y1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
  y2: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number)
});
LineSegment.defaultProps = {
  lineComponent: react__WEBPACK_IMPORTED_MODULE_1__.createElement(_line__WEBPACK_IMPORTED_MODULE_5__["default"], null),
  role: "presentation",
  shapeRendering: "auto"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (LineSegment);

/***/ }),

/***/ "./node_modules/victory-core/es/victory-primitives/line.js":
/*!*****************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-primitives/line.js ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }



var Line = function (props) {
  // eslint-disable-next-line react/prop-types
  var desc = props.desc,
      rest = _objectWithoutProperties(props, ["desc"]);

  return desc ? react__WEBPACK_IMPORTED_MODULE_0__.createElement("line", _extends({
    vectorEffect: "non-scaling-stroke"
  }, rest), react__WEBPACK_IMPORTED_MODULE_0__.createElement("desc", null, desc)) : react__WEBPACK_IMPORTED_MODULE_0__.createElement("line", _extends({
    vectorEffect: "non-scaling-stroke"
  }, rest));
};

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Line);

/***/ }),

/***/ "./node_modules/victory-core/es/victory-primitives/path-helpers.js":
/*!*************************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-primitives/path-helpers.js ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/range */ "./node_modules/lodash/range.js");
/* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_0__);

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
  circle: function (x, y, size) {
    return "M ".concat(x, ", ").concat(y, "\n      m ").concat(-size, ", 0\n      a ").concat(size, ", ").concat(size, " 0 1,0 ").concat(size * 2, ",0\n      a ").concat(size, ", ").concat(size, " 0 1,0 ").concat(-size * 2, ",0");
  },
  square: function (x, y, size) {
    var baseSize = 0.87 * size; // eslint-disable-line no-magic-numbers

    var x0 = x - baseSize;
    var y1 = y + baseSize;
    var distance = x + baseSize - x0;
    return "M ".concat(x0, ", ").concat(y1, "\n      h").concat(distance, "\n      v-").concat(distance, "\n      h-").concat(distance, "\n      z");
  },
  diamond: function (x, y, size) {
    var baseSize = 0.87 * size; // eslint-disable-line no-magic-numbers

    var length = Math.sqrt(2 * (baseSize * baseSize));
    return "M ".concat(x, ", ").concat(y + length, "\n      l ").concat(length, ", -").concat(length, "\n      l -").concat(length, ", -").concat(length, "\n      l -").concat(length, ", ").concat(length, "\n      l ").concat(length, ", ").concat(length, "\n      z");
  },
  triangleDown: function (x, y, size) {
    var height = size / 2 * Math.sqrt(3);
    var x0 = x - size;
    var x1 = x + size;
    var y0 = y - size;
    var y1 = y + height;
    return "M ".concat(x0, ", ").concat(y0, "\n      L ").concat(x1, ", ").concat(y0, "\n      L ").concat(x, ", ").concat(y1, "\n      z");
  },
  triangleUp: function (x, y, size) {
    var height = size / 2 * Math.sqrt(3);
    var x0 = x - size;
    var x1 = x + size;
    var y0 = y - height;
    var y1 = y + size;
    return "M ".concat(x0, ", ").concat(y1, "\n      L ").concat(x1, ", ").concat(y1, "\n      L ").concat(x, ", ").concat(y0, "\n      z");
  },
  plus: function (x, y, size) {
    var baseSize = 1.1 * size; // eslint-disable-line no-magic-numbers

    var distance = baseSize / 1.5; // eslint-disable-line no-magic-numbers

    return "\n      M ".concat(x - distance / 2, ", ").concat(y + baseSize, "\n      v-").concat(distance, "\n      h-").concat(distance, "\n      v-").concat(distance, "\n      h").concat(distance, "\n      v-").concat(distance, "\n      h").concat(distance, "\n      v").concat(distance, "\n      h").concat(distance, "\n      v").concat(distance, "\n      h-").concat(distance, "\n      v").concat(distance, "\n      z");
  },
  cross: function (x, y, size) {
    var baseSize = 0.8 * size; // eslint-disable-line no-magic-numbers

    var distance = baseSize / 1.5; // eslint-disable-line no-magic-numbers

    return "\n      M ".concat(x - distance / 2, ", ").concat(y + baseSize + distance, "\n      v-").concat(distance * 2, "\n      h-").concat(distance, "\n      v-").concat(distance, "\n      h").concat(distance, "\n      v-").concat(distance, "\n      h").concat(distance, "\n      v").concat(distance, "\n      h").concat(distance, "\n      v").concat(distance, "\n      h-").concat(distance, "\n      v").concat(distance * 2, "\n      z");
  },
  minus: function (x, y, size) {
    var baseSize = 1.1 * size; // eslint-disable-line no-magic-numbers

    var lineHeight = baseSize - baseSize * 0.3; // eslint-disable-line no-magic-numbers

    var x0 = x - baseSize;
    var y1 = y + lineHeight / 2;
    var distance = x + baseSize - x0;
    return "M ".concat(x0, ", ").concat(y1, "\n      h").concat(distance, "\n      v-").concat(lineHeight, "\n      h-").concat(distance, "\n      z");
  },
  star: function (x, y, size) {
    var baseSize = 1.35 * size; // eslint-disable-line no-magic-numbers

    var angle = Math.PI / 5; // eslint-disable-line no-magic-numbers
    // eslint-disable-next-line no-magic-numbers

    var starCoords = lodash_range__WEBPACK_IMPORTED_MODULE_0___default()(10).map(function (index) {
      var length = index % 2 === 0 ? baseSize : baseSize / 2;
      return "".concat(length * Math.sin(angle * (index + 1)) + x, ",\n        ").concat(length * Math.cos(angle * (index + 1)) + y);
    });

    return "M ".concat(starCoords.join("L"), " z");
  }
});

/***/ }),

/***/ "./node_modules/victory-core/es/victory-primitives/path.js":
/*!*****************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-primitives/path.js ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }



var Path = function (props) {
  // eslint-disable-next-line react/prop-types
  var desc = props.desc,
      rest = _objectWithoutProperties(props, ["desc"]);

  return desc ? react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", rest, react__WEBPACK_IMPORTED_MODULE_0__.createElement("desc", null, desc)) : react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", rest);
};

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Path);

/***/ }),

/***/ "./node_modules/victory-core/es/victory-primitives/point.js":
/*!******************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-primitives/point.js ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var _path_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./path-helpers */ "./node_modules/victory-core/es/victory-primitives/path-helpers.js");
/* harmony import */ var _victory_util_common_props__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/common-props */ "./node_modules/victory-core/es/victory-util/common-props.js");
/* harmony import */ var _path__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./path */ "./node_modules/victory-core/es/victory-primitives/path.js");


function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }








var getPath = function (props) {
  var x = props.x,
      y = props.y,
      size = props.size,
      symbol = props.symbol;

  if (props.getPath) {
    return props.getPath(x, y, size);
  }

  var pathFunctions = {
    circle: _path_helpers__WEBPACK_IMPORTED_MODULE_2__["default"].circle,
    square: _path_helpers__WEBPACK_IMPORTED_MODULE_2__["default"].square,
    diamond: _path_helpers__WEBPACK_IMPORTED_MODULE_2__["default"].diamond,
    triangleDown: _path_helpers__WEBPACK_IMPORTED_MODULE_2__["default"].triangleDown,
    triangleUp: _path_helpers__WEBPACK_IMPORTED_MODULE_2__["default"].triangleUp,
    plus: _path_helpers__WEBPACK_IMPORTED_MODULE_2__["default"].plus,
    minus: _path_helpers__WEBPACK_IMPORTED_MODULE_2__["default"].minus,
    star: _path_helpers__WEBPACK_IMPORTED_MODULE_2__["default"].star,
    cross: _path_helpers__WEBPACK_IMPORTED_MODULE_2__["default"].cross
  };
  var symbolFunction = typeof pathFunctions[symbol] === "function" ? pathFunctions[symbol] : pathFunctions.circle;
  return symbolFunction(x, y, size);
};

var evaluateProps = function (props) {
  /**
   * Potential evaluated props are:
   * `ariaLabel`
   * `desc`
   * `id`
   * `size`
   * `style`
   * `symbol`
   * `tabIndex`
   */
  var ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.ariaLabel, props);
  var desc = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.desc, props);
  var id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.id, props);
  var size = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.size, props);
  var style = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateStyle(props.style, props);
  var symbol = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.symbol, props);
  var tabIndex = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.tabIndex, props);
  return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
    ariaLabel: ariaLabel,
    desc: desc,
    id: id,
    size: size,
    style: style,
    symbol: symbol,
    tabIndex: tabIndex
  });
};

var Point = function (props) {
  props = evaluateProps(props);
  return react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(props.pathComponent, _objectSpread({}, props.events, {
    "aria-label": props.ariaLabel,
    d: getPath(props),
    style: props.style,
    desc: props.desc,
    tabIndex: props.tabIndex,
    role: props.role,
    shapeRendering: props.shapeRendering,
    className: props.className,
    transform: props.transform,
    clipPath: props.clipPath
  }));
};

Point.propTypes = _objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_4__.primitiveProps, {
  datum: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object),
  getPath: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().func),
  pathComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
  size: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_5___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().func)]),
  symbol: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(["circle", "cross", "diamond", "plus", "minus", "square", "star", "triangleDown", "triangleUp"]), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().func)]),
  x: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
  y: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number)
});
Point.defaultProps = {
  pathComponent: react__WEBPACK_IMPORTED_MODULE_1__.createElement(_path__WEBPACK_IMPORTED_MODULE_6__["default"], null),
  role: "presentation",
  shapeRendering: "auto"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Point);

/***/ }),

/***/ "./node_modules/victory-core/es/victory-primitives/rect.js":
/*!*****************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-primitives/rect.js ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }



var Rect = function (props) {
  // eslint-disable-next-line react/prop-types
  var desc = props.desc,
      rest = _objectWithoutProperties(props, ["desc"]);

  return desc ? react__WEBPACK_IMPORTED_MODULE_0__.createElement("rect", _extends({
    vectorEffect: "non-scaling-stroke"
  }, rest), react__WEBPACK_IMPORTED_MODULE_0__.createElement("desc", null, desc)) : react__WEBPACK_IMPORTED_MODULE_0__.createElement("rect", _extends({
    vectorEffect: "non-scaling-stroke"
  }, rest));
};

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Rect);

/***/ }),

/***/ "./node_modules/victory-core/es/victory-primitives/text.js":
/*!*****************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-primitives/text.js ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }




var Text = function (props) {
  var children = props.children,
      title = props.title,
      desc = props.desc,
      rest = _objectWithoutProperties(props, ["children", "title", "desc"]);

  return react__WEBPACK_IMPORTED_MODULE_0__.createElement("text", rest, title && react__WEBPACK_IMPORTED_MODULE_0__.createElement("title", null, title), desc && react__WEBPACK_IMPORTED_MODULE_0__.createElement("desc", null, desc), children);
};

Text.propTypes = {
  children: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
  desc: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
  title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Text);

/***/ }),

/***/ "./node_modules/victory-core/es/victory-primitives/tspan.js":
/*!******************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-primitives/tspan.js ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");


var TSpan = function (props) {
  return react__WEBPACK_IMPORTED_MODULE_0__.createElement("tspan", props);
};

/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TSpan);

/***/ }),

/***/ "./node_modules/victory-core/es/victory-theme/grayscale.js":
/*!*****************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-theme/grayscale.js ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);

// *
// * Colors
// *
var colors = ["#252525", "#525252", "#737373", "#969696", "#bdbdbd", "#d9d9d9", "#f0f0f0"];
var charcoal = "#252525";
var grey = "#969696"; // *
// * Typography
// *

var sansSerif = "'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif";
var letterSpacing = "normal";
var fontSize = 14; // *
// * Layout
// *

var baseProps = {
  width: 450,
  height: 300,
  padding: 50,
  colorScale: colors
}; // *
// * Labels
// *

var baseLabelStyles = {
  fontFamily: sansSerif,
  fontSize: fontSize,
  letterSpacing: letterSpacing,
  padding: 10,
  fill: charcoal,
  stroke: "transparent"
};

var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
  textAnchor: "middle"
}, baseLabelStyles); // *
// * Strokes
// *


var strokeLinecap = "round";
var strokeLinejoin = "round";
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
  area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    style: {
      data: {
        fill: charcoal
      },
      labels: baseLabelStyles
    }
  }, baseProps),
  axis: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    style: {
      axis: {
        fill: "transparent",
        stroke: charcoal,
        strokeWidth: 1,
        strokeLinecap: strokeLinecap,
        strokeLinejoin: strokeLinejoin
      },
      axisLabel: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, centeredLabelStyles, {
        padding: 25
      }),
      grid: {
        fill: "none",
        stroke: "none",
        pointerEvents: "painted"
      },
      ticks: {
        fill: "transparent",
        size: 1,
        stroke: "transparent"
      },
      tickLabels: baseLabelStyles
    }
  }, baseProps),
  bar: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    style: {
      data: {
        fill: charcoal,
        padding: 8,
        strokeWidth: 0
      },
      labels: baseLabelStyles
    }
  }, baseProps),
  boxplot: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    style: {
      max: {
        padding: 8,
        stroke: charcoal,
        strokeWidth: 1
      },
      maxLabels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, {
        padding: 3
      }),
      median: {
        padding: 8,
        stroke: charcoal,
        strokeWidth: 1
      },
      medianLabels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, {
        padding: 3
      }),
      min: {
        padding: 8,
        stroke: charcoal,
        strokeWidth: 1
      },
      minLabels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, {
        padding: 3
      }),
      q1: {
        padding: 8,
        fill: grey
      },
      q1Labels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, {
        padding: 3
      }),
      q3: {
        padding: 8,
        fill: grey
      },
      q3Labels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, {
        padding: 3
      })
    },
    boxWidth: 20
  }, baseProps),
  candlestick: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    style: {
      data: {
        stroke: charcoal,
        strokeWidth: 1
      },
      labels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, {
        padding: 5
      })
    },
    candleColors: {
      positive: "#ffffff",
      negative: charcoal
    }
  }, baseProps),
  chart: baseProps,
  errorbar: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    borderWidth: 8,
    style: {
      data: {
        fill: "transparent",
        stroke: charcoal,
        strokeWidth: 2
      },
      labels: baseLabelStyles
    }
  }, baseProps),
  group: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    colorScale: colors
  }, baseProps),
  histogram: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    style: {
      data: {
        fill: grey,
        stroke: charcoal,
        strokeWidth: 2
      },
      labels: baseLabelStyles
    }
  }, baseProps),
  legend: {
    colorScale: colors,
    gutter: 10,
    orientation: "vertical",
    titleOrientation: "top",
    style: {
      data: {
        type: "circle"
      },
      labels: baseLabelStyles,
      title: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, {
        padding: 5
      })
    }
  },
  line: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    style: {
      data: {
        fill: "transparent",
        stroke: charcoal,
        strokeWidth: 2
      },
      labels: baseLabelStyles
    }
  }, baseProps),
  pie: {
    style: {
      data: {
        padding: 10,
        stroke: "transparent",
        strokeWidth: 1
      },
      labels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, {
        padding: 20
      })
    },
    colorScale: colors,
    width: 400,
    height: 400,
    padding: 50
  },
  scatter: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    style: {
      data: {
        fill: charcoal,
        stroke: "transparent",
        strokeWidth: 0
      },
      labels: baseLabelStyles
    }
  }, baseProps),
  stack: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    colorScale: colors
  }, baseProps),
  tooltip: {
    style: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, {
      padding: 0,
      pointerEvents: "none"
    }),
    flyoutStyle: {
      stroke: charcoal,
      strokeWidth: 1,
      fill: "#f0f0f0",
      pointerEvents: "none"
    },
    flyoutPadding: 5,
    cornerRadius: 5,
    pointerLength: 10
  },
  voronoi: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    style: {
      data: {
        fill: "transparent",
        stroke: "transparent",
        strokeWidth: 0
      },
      labels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, {
        padding: 5,
        pointerEvents: "none"
      }),
      flyout: {
        stroke: charcoal,
        strokeWidth: 1,
        fill: "#f0f0f0",
        pointerEvents: "none"
      }
    }
  }, baseProps)
});

/***/ }),

/***/ "./node_modules/victory-core/es/victory-theme/material.js":
/*!****************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-theme/material.js ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);

// *
// * Colors
// *
var yellow200 = "#FFF59D";
var deepOrange600 = "#F4511E";
var lime300 = "#DCE775";
var lightGreen500 = "#8BC34A";
var teal700 = "#00796B";
var cyan900 = "#006064";
var colors = [deepOrange600, yellow200, lime300, lightGreen500, teal700, cyan900];
var blueGrey50 = "#ECEFF1";
var blueGrey300 = "#90A4AE";
var blueGrey700 = "#455A64";
var grey900 = "#212121"; // *
// * Typography
// *

var sansSerif = "'Helvetica Neue', 'Helvetica', sans-serif";
var letterSpacing = "normal";
var fontSize = 12; // *
// * Layout
// *

var padding = 8;
var baseProps = {
  width: 350,
  height: 350,
  padding: 50
}; // *
// * Labels
// *

var baseLabelStyles = {
  fontFamily: sansSerif,
  fontSize: fontSize,
  letterSpacing: letterSpacing,
  padding: padding,
  fill: blueGrey700,
  stroke: "transparent",
  strokeWidth: 0
};

var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
  textAnchor: "middle"
}, baseLabelStyles); // *
// * Strokes
// *


var strokeDasharray = "10, 5";
var strokeLinecap = "round";
var strokeLinejoin = "round";
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
  area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    style: {
      data: {
        fill: grey900
      },
      labels: baseLabelStyles
    }
  }, baseProps),
  axis: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    style: {
      axis: {
        fill: "transparent",
        stroke: blueGrey300,
        strokeWidth: 2,
        strokeLinecap: strokeLinecap,
        strokeLinejoin: strokeLinejoin
      },
      axisLabel: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, centeredLabelStyles, {
        padding: padding,
        stroke: "transparent"
      }),
      grid: {
        fill: "none",
        stroke: blueGrey50,
        strokeDasharray: strokeDasharray,
        strokeLinecap: strokeLinecap,
        strokeLinejoin: strokeLinejoin,
        pointerEvents: "painted"
      },
      ticks: {
        fill: "transparent",
        size: 5,
        stroke: blueGrey300,
        strokeWidth: 1,
        strokeLinecap: strokeLinecap,
        strokeLinejoin: strokeLinejoin
      },
      tickLabels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, {
        fill: blueGrey700
      })
    }
  }, baseProps),
  polarDependentAxis: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    style: {
      ticks: {
        fill: "transparent",
        size: 1,
        stroke: "transparent"
      }
    }
  }),
  bar: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    style: {
      data: {
        fill: blueGrey700,
        padding: padding,
        strokeWidth: 0
      },
      labels: baseLabelStyles
    }
  }, baseProps),
  boxplot: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    style: {
      max: {
        padding: padding,
        stroke: blueGrey700,
        strokeWidth: 1
      },
      maxLabels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, {
        padding: 3
      }),
      median: {
        padding: padding,
        stroke: blueGrey700,
        strokeWidth: 1
      },
      medianLabels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, {
        padding: 3
      }),
      min: {
        padding: padding,
        stroke: blueGrey700,
        strokeWidth: 1
      },
      minLabels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, {
        padding: 3
      }),
      q1: {
        padding: padding,
        fill: blueGrey700
      },
      q1Labels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, {
        padding: 3
      }),
      q3: {
        padding: padding,
        fill: blueGrey700
      },
      q3Labels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, {
        padding: 3
      })
    },
    boxWidth: 20
  }, baseProps),
  candlestick: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    style: {
      data: {
        stroke: blueGrey700
      },
      labels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, {
        padding: 5
      })
    },
    candleColors: {
      positive: "#ffffff",
      negative: blueGrey700
    }
  }, baseProps),
  chart: baseProps,
  errorbar: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    borderWidth: 8,
    style: {
      data: {
        fill: "transparent",
        opacity: 1,
        stroke: blueGrey700,
        strokeWidth: 2
      },
      labels: baseLabelStyles
    }
  }, baseProps),
  group: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    colorScale: colors
  }, baseProps),
  histogram: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    style: {
      data: {
        fill: blueGrey700,
        stroke: grey900,
        strokeWidth: 2
      },
      labels: baseLabelStyles
    }
  }, baseProps),
  legend: {
    colorScale: colors,
    gutter: 10,
    orientation: "vertical",
    titleOrientation: "top",
    style: {
      data: {
        type: "circle"
      },
      labels: baseLabelStyles,
      title: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, {
        padding: 5
      })
    }
  },
  line: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    style: {
      data: {
        fill: "transparent",
        opacity: 1,
        stroke: blueGrey700,
        strokeWidth: 2
      },
      labels: baseLabelStyles
    }
  }, baseProps),
  pie: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    colorScale: colors,
    style: {
      data: {
        padding: padding,
        stroke: blueGrey50,
        strokeWidth: 1
      },
      labels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, {
        padding: 20
      })
    }
  }, baseProps),
  scatter: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    style: {
      data: {
        fill: blueGrey700,
        opacity: 1,
        stroke: "transparent",
        strokeWidth: 0
      },
      labels: baseLabelStyles
    }
  }, baseProps),
  stack: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    colorScale: colors
  }, baseProps),
  tooltip: {
    style: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, {
      padding: 0,
      pointerEvents: "none"
    }),
    flyoutStyle: {
      stroke: grey900,
      strokeWidth: 1,
      fill: "#f0f0f0",
      pointerEvents: "none"
    },
    flyoutPadding: 5,
    cornerRadius: 5,
    pointerLength: 10
  },
  voronoi: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
    style: {
      data: {
        fill: "transparent",
        stroke: "transparent",
        strokeWidth: 0
      },
      labels: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, baseLabelStyles, {
        padding: 5,
        pointerEvents: "none"
      }),
      flyout: {
        stroke: grey900,
        strokeWidth: 1,
        fill: "#f0f0f0",
        pointerEvents: "none"
      }
    }
  }, baseProps)
});

/***/ }),

/***/ "./node_modules/victory-core/es/victory-theme/victory-theme.js":
/*!*********************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-theme/victory-theme.js ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./material */ "./node_modules/victory-core/es/victory-theme/material.js");
/* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./grayscale */ "./node_modules/victory-core/es/victory-theme/grayscale.js");


/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
  material: _material__WEBPACK_IMPORTED_MODULE_0__["default"],
  grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_1__["default"]
});

/***/ }),

/***/ "./node_modules/victory-core/es/victory-transition/victory-transition.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-transition/victory-transition.js ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ VictoryTransition)
/* harmony export */ });
/* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isObject */ "./node_modules/lodash/isObject.js");
/* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "./node_modules/lodash/pick.js");
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js");
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var _victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-animation/victory-animation */ "./node_modules/victory-core/es/victory-animation/victory-animation.js");
/* harmony import */ var _victory_util_collection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/collection */ "./node_modules/victory-core/es/victory-util/collection.js");
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-util/helpers */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-util/timer-context */ "./node_modules/victory-core/es/victory-util/timer-context.js");
/* harmony import */ var _victory_util_transitions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/transitions */ "./node_modules/victory-core/es/victory-util/transitions.js");
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-fast-compare */ "./node_modules/react-fast-compare/index.js");
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_5__);





function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }










var VictoryTransition =
/*#__PURE__*/
function (_React$Component) {
  _inherits(VictoryTransition, _React$Component);

  function VictoryTransition(props, context) {
    var _this;

    _classCallCheck(this, VictoryTransition);

    _this = _possibleConstructorReturn(this, (VictoryTransition.__proto__ || Object.getPrototypeOf(VictoryTransition)).call(this, props, context));
    _this.state = {
      nodesShouldLoad: false,
      nodesDoneLoad: false
    };
    var child = _this.props.children;
    var polar = child.props.polar;
    _this.continuous = !polar && child.type && child.type.continuous === true;
    _this.getTransitionState = _this.getTransitionState.bind(_assertThisInitialized(_this));
    _this.timer = _this.context.transitionTimer;
    return _this;
  }

  _createClass(VictoryTransition, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.setState({
        nodesShouldLoad: true
      }); //eslint-disable-line react/no-did-mount-set-state
    }
  }, {
    key: "shouldComponentUpdate",
    value: function shouldComponentUpdate(nextProps) {
      var _this2 = this;

      if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_5___default()(this.props, nextProps)) {
        this.timer.bypassAnimation();
        this.setState(this.getTransitionState(this.props, nextProps), function () {
          return _this2.timer.resumeAnimation();
        });
      }

      return true;
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      this.timer.stop();
    }
  }, {
    key: "getTransitionState",
    value: function getTransitionState(props, nextProps) {
      var animate = props.animate;

      if (!animate) {
        return {};
      } else if (animate.parentState) {
        var state = animate.parentState;
        var oldProps = state.nodesWillExit ? props : null;
        return {
          oldProps: oldProps,
          nextProps: nextProps
        };
      } else {
        var oldChildren = react__WEBPACK_IMPORTED_MODULE_4__.Children.toArray(props.children);
        var nextChildren = react__WEBPACK_IMPORTED_MODULE_4__.Children.toArray(nextProps.children);

        var _Transitions$getIniti = _victory_util_transitions__WEBPACK_IMPORTED_MODULE_6__.getInitialTransitionState(oldChildren, nextChildren),
            nodesWillExit = _Transitions$getIniti.nodesWillExit,
            nodesWillEnter = _Transitions$getIniti.nodesWillEnter,
            childrenTransitions = _Transitions$getIniti.childrenTransitions,
            nodesShouldEnter = _Transitions$getIniti.nodesShouldEnter;

        return {
          nodesWillExit: nodesWillExit,
          nodesWillEnter: nodesWillEnter,
          childrenTransitions: childrenTransitions,
          nodesShouldEnter: nodesShouldEnter,
          oldProps: nodesWillExit ? props : null,
          nextProps: nextProps
        };
      }
    }
  }, {
    key: "getDomainFromChildren",
    value: function getDomainFromChildren(props, axis) {
      var getChildDomains = function (children) {
        return children.reduce(function (memo, child) {
          if (child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(child.type.getDomain)) {
            var childDomain = child.props && child.type.getDomain(child.props, axis);
            return childDomain ? memo.concat(childDomain) : memo;
          } else if (child.props && child.props.children) {
            return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_4__.Children.toArray(child.props.children)));
          }

          return memo;
        }, []);
      };

      var child = react__WEBPACK_IMPORTED_MODULE_4__.Children.toArray(props.children)[0];
      var childProps = child.props || {};
      var domain = Array.isArray(childProps.domain) ? childProps.domain : childProps.domain && childProps.domain[axis];

      if (!childProps.children && domain) {
        return domain;
      } else {
        var childDomains = getChildDomains([child]);
        return childDomains.length === 0 ? [0, 1] : [_victory_util_collection__WEBPACK_IMPORTED_MODULE_7__.getMinValue(childDomains), _victory_util_collection__WEBPACK_IMPORTED_MODULE_7__.getMaxValue(childDomains)];
      }
    }
  }, {
    key: "pickProps",
    value: function pickProps() {
      if (!this.state) {
        return this.props;
      }

      return this.state.nodesWillExit ? this.state.oldProps || this.props : this.props;
    }
  }, {
    key: "pickDomainProps",
    value: function pickDomainProps(props) {
      var parentState = lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(props.animate) && props.animate.parentState;

      if (parentState && parentState.nodesWillExit) {
        return this.continous || parentState.continuous ? parentState.nextProps || this.state.nextProps || props : props;
      }

      return this.continuous && this.state.nodesWillExit ? this.state.nextProps || props : props;
    }
  }, {
    key: "getClipWidth",
    value: function getClipWidth(props, child) {
      var getDefaultClipWidth = function () {
        var range = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_8__.getRange(child.props, "x");
        return range ? Math.abs(range[1] - range[0]) : props.width;
      };

      var clipWidth = this.transitionProps ? this.transitionProps.clipWidth : undefined;
      return clipWidth !== undefined ? clipWidth : getDefaultClipWidth();
    }
  }, {
    key: "render",
    value: function render() {
      var _this3 = this;

      var props = this.pickProps();
      var getTransitionProps = lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(this.props.animate) && this.props.animate.getTransitions ? this.props.animate.getTransitions : _victory_util_transitions__WEBPACK_IMPORTED_MODULE_6__.getTransitionPropsFactory(props, this.state, function (newState) {
        return _this3.setState(newState);
      });
      var child = react__WEBPACK_IMPORTED_MODULE_4__.Children.toArray(props.children)[0];
      var transitionProps = getTransitionProps(child);
      this.transitionProps = transitionProps;
      var domain = {
        x: this.getDomainFromChildren(this.pickDomainProps(props), "x"),
        y: this.getDomainFromChildren(props, "y")
      };
      var clipWidth = this.getClipWidth(props, child);

      var combinedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({
        domain: domain,
        clipWidth: clipWidth
      }, transitionProps, child.props);

      var animationWhitelist = props.animationWhitelist || [];
      var whitelist = animationWhitelist.concat(["clipWidth"]);
      var propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(combinedProps, whitelist) : combinedProps;
      return react__WEBPACK_IMPORTED_MODULE_4__.createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_9__["default"], _extends({}, combinedProps.animate, {
        data: propsToAnimate
      }), function (newProps) {
        if (child.props.groupComponent) {
          var groupComponent = _this3.continuous ? react__WEBPACK_IMPORTED_MODULE_4__.cloneElement(child.props.groupComponent, {
            clipWidth: newProps.clipWidth || 0
          }) : child.props.groupComponent;
          return react__WEBPACK_IMPORTED_MODULE_4__.cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({
            animate: null,
            animating: true,
            groupComponent: groupComponent
          }, newProps, combinedProps));
        }

        return react__WEBPACK_IMPORTED_MODULE_4__.cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({
          animate: null,
          animating: true
        }, newProps, combinedProps));
      });
    }
  }]);

  return VictoryTransition;
}(react__WEBPACK_IMPORTED_MODULE_4__.Component);

Object.defineProperty(VictoryTransition, "displayName", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: "VictoryTransition"
});
Object.defineProperty(VictoryTransition, "propTypes", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: {
    animate: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().object)]),
    animationWhitelist: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().array),
    children: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().node)
  }
});
Object.defineProperty(VictoryTransition, "contextType", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_11__["default"]
});


/***/ }),

/***/ "./node_modules/victory-core/es/victory-util/add-events.js":
/*!*****************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-util/add-events.js ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/difference */ "./node_modules/lodash/difference.js");
/* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js");
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isEmpty */ "./node_modules/lodash/isEmpty.js");
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/without */ "./node_modules/lodash/without.js");
/* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/pick */ "./node_modules/lodash/pick.js");
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/keys */ "./node_modules/lodash/keys.js");
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js");
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./events */ "./node_modules/victory-core/es/victory-util/events.js");
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-fast-compare */ "./node_modules/react-fast-compare/index.js");
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var _victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../victory-transition/victory-transition */ "./node_modules/victory-core/es/victory-transition/victory-transition.js");










function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

/*global window:false */





var datumHasXandY = function (datum) {
  return !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._y);
}; //  used for checking state changes. Expected components can be passed in via options


var defaultComponents = [{
  name: "parent",
  index: "parent"
}, {
  name: "data"
}, {
  name: "labels"
}];
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (function (WrappedComponent, options) {
  return (
    /*#__PURE__*/
    function (_WrappedComponent) {
      _inherits(addEvents, _WrappedComponent);

      function addEvents(props) {
        var _this;

        _classCallCheck(this, addEvents);

        _this = _possibleConstructorReturn(this, (addEvents.__proto__ || Object.getPrototypeOf(addEvents)).call(this, props));
        var getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
        var boundGetEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.bind(_assertThisInitialized(_this));
        _this.state = {};

        _this.getEvents = function (p, target, eventKey) {
          return boundGetEvents(p, target, eventKey, getScopedEvents);
        };

        _this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));

        var calculatedValues = _this.getCalculatedValues(props);

        _this.cacheValues(calculatedValues);

        _this.externalMutations = _this.getExternalMutations(props);
        _this.calculatedState = _this.getStateChanges(props);
        _this.globalEvents = {};
        _this.prevGlobalEventKeys = [];
        _this.boundGlobalEvents = {};
        return _this;
      }

      _createClass(addEvents, [{
        key: "shouldComponentUpdate",
        value: function shouldComponentUpdate(nextProps) {
          var externalMutations = this.getExternalMutations(nextProps);
          var animating = this.props.animating || this.props.animate;
          var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(externalMutations, this.externalMutations);

          if (animating || newMutation) {
            this.cacheValues(this.getCalculatedValues(nextProps));
            this.externalMutations = externalMutations;
            this.applyExternalMutations(nextProps, externalMutations);
            return true;
          }

          var calculatedState = this.getStateChanges(nextProps);

          if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(this.calculatedState, calculatedState)) {
            this.cacheValues(this.getCalculatedValues(nextProps));
            return true;
          }

          if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(this.props, nextProps)) {
            this.cacheValues(this.getCalculatedValues(nextProps));
            return true;
          }

          return false;
        }
      }, {
        key: "componentDidMount",
        value: function componentDidMount() {
          var _this2 = this;

          var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);

          globalEventKeys.forEach(function (key) {
            return _this2.addGlobalListener(key);
          });
          this.prevGlobalEventKeys = globalEventKeys;
        }
      }, {
        key: "componentDidUpdate",
        value: function componentDidUpdate(prevProps) {
          var _this3 = this;

          var calculatedState = this.getStateChanges(prevProps);
          this.calculatedState = calculatedState;

          var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);

          var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(this.prevGlobalEventKeys, globalEventKeys);

          removedGlobalEventKeys.forEach(function (key) {
            return _this3.removeGlobalListener(key);
          });

          var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(globalEventKeys, this.prevGlobalEventKeys);

          addedGlobalEventKeys.forEach(function (key) {
            return _this3.addGlobalListener(key);
          });
          this.prevGlobalEventKeys = globalEventKeys;
        }
      }, {
        key: "componentWillUnmount",
        value: function componentWillUnmount() {
          var _this4 = this;

          this.prevGlobalEventKeys.forEach(function (key) {
            return _this4.removeGlobalListener(key);
          });
        }
      }, {
        key: "addGlobalListener",
        value: function addGlobalListener(key) {
          var _this5 = this;

          var boundListener = function (event) {
            var listener = _this5.globalEvents[key];
            return listener && listener(_events__WEBPACK_IMPORTED_MODULE_11__.emulateReactEvent(event));
          };

          this.boundGlobalEvents[key] = boundListener;
          window.addEventListener(_events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEventNameFromKey(key), boundListener);
        }
      }, {
        key: "removeGlobalListener",
        value: function removeGlobalListener(key) {
          window.removeEventListener(_events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
        } // compile all state changes from own and parent state. Order doesn't matter, as any state
        // state change should trigger a re-render

      }, {
        key: "getStateChanges",
        value: function getStateChanges(props) {
          var _this6 = this;

          if (!this.hasEvents) {
            return {};
          }

          var getState = function (key, type) {
            var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));

            return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(result) ? undefined : result;
          };

          options = options || {};
          var components = options.components || defaultComponents;
          var stateChanges = components.map(function (component) {
            if (!props.standalone && component.name === "parent") {
              // don't check for changes on parent props for non-standalone components
              return undefined;
            } else {
              return component.index !== undefined ? getState(component.index, component.name) : _this6.dataKeys.map(function (key) {
                return getState(key, component.name);
              }).filter(Boolean);
            }
          }).filter(Boolean);
          return stateChanges;
        }
      }, {
        key: "applyExternalMutations",
        value: function applyExternalMutations(props, externalMutations) {
          if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) {
            var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
              memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
              return memo;
            }, []);
            var compiledCallbacks = callbacks.length ? function () {
              callbacks.forEach(function (c) {
                return c();
              });
            } : undefined;
            this.setState(externalMutations, compiledCallbacks);
          }
        }
      }, {
        key: "getCalculatedValues",
        value: function getCalculatedValues(props) {
          var sharedEvents = props.sharedEvents;
          var components = WrappedComponent.expectedComponents;
          var componentEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getComponentEvents(props, components);
          var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
            return undefined;
          };
          var baseProps = this.getBaseProps(props, getSharedEventState);

          var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(baseProps).filter(function (key) {
            return key !== "parent";
          });

          var hasEvents = props.events || props.sharedEvents || componentEvents;
          var events = this.getAllEvents(props);
          return {
            componentEvents: componentEvents,
            getSharedEventState: getSharedEventState,
            baseProps: baseProps,
            dataKeys: dataKeys,
            hasEvents: hasEvents,
            events: events
          };
        }
      }, {
        key: "getExternalMutations",
        value: function getExternalMutations(props) {
          var sharedEvents = props.sharedEvents,
              externalEventMutations = props.externalEventMutations;
          return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
        }
      }, {
        key: "cacheValues",
        value: function cacheValues(obj) {
          var _this7 = this;

          lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(obj).forEach(function (key) {
            _this7[key] = obj[key];
          });
        }
      }, {
        key: "getBaseProps",
        value: function getBaseProps(props, getSharedEventState) {
          getSharedEventState = getSharedEventState || this.getSharedEventState;
          var sharedParentState = getSharedEventState("parent", "parent");
          var parentState = this.getEventState("parent", "parent");

          var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentState, sharedParentState);

          var parentPropsList = baseParentProps.parentControlledProps;
          var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_4___default()(baseParentProps, parentPropsList) : {};

          var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentProps, props);

          return lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(WrappedComponent.getBaseProps) ? WrappedComponent.getBaseProps(modifiedProps) : {};
        }
      }, {
        key: "getAllEvents",
        value: function getAllEvents(props) {
          if (Array.isArray(this.componentEvents)) {
            var _componentEvents;

            return Array.isArray(props.events) ? (_componentEvents = this.componentEvents).concat.apply(_componentEvents, _toConsumableArray(props.events)) : this.componentEvents;
          }

          return props.events;
        }
      }, {
        key: "getComponentProps",
        value: function getComponentProps(component, type, index) {
          var name = this.props.name || WrappedComponent.role;
          var key = this.dataKeys && this.dataKeys[index] || index;
          var id = "".concat(name, "-").concat(type, "-").concat(key);
          var baseProps = this.baseProps[key] && this.baseProps[key][type] || this.baseProps[key];

          if (!baseProps && !this.hasEvents) {
            return undefined;
          }

          if (this.hasEvents) {
            var baseEvents = this.getEvents(this.props, type, key);

            var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
              index: index,
              key: id
            }, this.getEventState(key, type), this.getSharedEventState(key, type), component.props, baseProps, {
              id: id
            });

            var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);

            return lodash_assign__WEBPACK_IMPORTED_MODULE_7___default()({}, componentProps, {
              events: events
            });
          }

          return lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
            index: index,
            key: id
          }, component.props, baseProps, {
            id: id
          });
        }
      }, {
        key: "renderContainer",
        value: function renderContainer(component, children) {
          var isContainer = component.type && component.type.role === "container";
          var parentProps = isContainer ? this.getComponentProps(component, "parent", "parent") : {};

          if (parentProps.events) {
            this.globalEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEvents(parentProps.events);
            parentProps.events = _events__WEBPACK_IMPORTED_MODULE_11__.omitGlobalEvents(parentProps.events);
          }

          return react__WEBPACK_IMPORTED_MODULE_9__.cloneElement(component, parentProps, children);
        }
      }, {
        key: "animateComponent",
        value: function animateComponent(props, defaultAnimationWhitelist) {
          var animationWhitelist = props.animate && props.animate.animationWhitelist ? props.animate.animationWhitelist : defaultAnimationWhitelist;
          return react__WEBPACK_IMPORTED_MODULE_9__.createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__["default"], {
            animate: props.animate,
            animationWhitelist: animationWhitelist
          }, react__WEBPACK_IMPORTED_MODULE_9__.createElement(this.constructor, props));
        } // Used by `VictoryLine` and `VictoryArea`

      }, {
        key: "renderContinuousData",
        value: function renderContinuousData(props) {
          var _this8 = this;

          var dataComponent = props.dataComponent,
              labelComponent = props.labelComponent,
              groupComponent = props.groupComponent;

          var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_3___default()(this.dataKeys, "all");

          var labelComponents = dataKeys.reduce(function (memo, key) {
            var labelProps = _this8.getComponentProps(labelComponent, "labels", key);

            if (labelProps && labelProps.text !== undefined && labelProps.text !== null) {
              memo = memo.concat(react__WEBPACK_IMPORTED_MODULE_9__.cloneElement(labelComponent, labelProps));
            }

            return memo;
          }, []);
          var dataProps = this.getComponentProps(dataComponent, "data", "all");
          var children = [react__WEBPACK_IMPORTED_MODULE_9__.cloneElement(dataComponent, dataProps)].concat(_toConsumableArray(labelComponents));
          return this.renderContainer(groupComponent, children);
        }
      }, {
        key: "renderData",
        value: function renderData(props) {
          var _this9 = this;

          var shouldRenderDatum = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : datumHasXandY;
          var dataComponent = props.dataComponent,
              labelComponent = props.labelComponent,
              groupComponent = props.groupComponent;
          var dataComponents = this.dataKeys.reduce(function (validDataComponents, _dataKey, index) {
            var dataProps = _this9.getComponentProps(dataComponent, "data", index);

            if (shouldRenderDatum(dataProps.datum)) {
              validDataComponents.push(react__WEBPACK_IMPORTED_MODULE_9__.cloneElement(dataComponent, dataProps));
            }

            return validDataComponents;
          }, []);
          var labelComponents = this.dataKeys.map(function (_dataKey, index) {
            var labelProps = _this9.getComponentProps(labelComponent, "labels", index);

            if (labelProps.text !== undefined && labelProps.text !== null) {
              return react__WEBPACK_IMPORTED_MODULE_9__.cloneElement(labelComponent, labelProps);
            }

            return undefined;
          }).filter(Boolean);

          var children = _toConsumableArray(dataComponents).concat(_toConsumableArray(labelComponents));

          return this.renderContainer(groupComponent, children);
        }
      }]);

      return addEvents;
    }(WrappedComponent)
  );
});

/***/ }),

/***/ "./node_modules/victory-core/es/victory-util/axis.js":
/*!***********************************************************!*\
  !*** ./node_modules/victory-core/es/victory-util/axis.js ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getAxis": () => (/* binding */ getAxis),
/* harmony export */   "findAxisComponents": () => (/* binding */ findAxisComponents),
/* harmony export */   "getAxisComponent": () => (/* binding */ getAxisComponent),
/* harmony export */   "getAxisComponentsWithParent": () => (/* binding */ getAxisComponentsWithParent),
/* harmony export */   "getOrigin": () => (/* binding */ getOrigin),
/* harmony export */   "getOriginSign": () => (/* binding */ getOriginSign),
/* harmony export */   "isVertical": () => (/* binding */ isVertical),
/* harmony export */   "stringTicks": () => (/* binding */ stringTicks),
/* harmony export */   "getTickFormat": () => (/* binding */ getTickFormat),
/* harmony export */   "getTicks": () => (/* binding */ getTicks),
/* harmony export */   "getDomain": () => (/* binding */ getDomain),
/* harmony export */   "getAxisValue": () => (/* binding */ getAxisValue),
/* harmony export */   "modifyProps": () => (/* binding */ modifyProps)
/* harmony export */ });
/* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/without */ "./node_modules/lodash/without.js");
/* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/includes */ "./node_modules/lodash/includes.js");
/* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_includes__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_values__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/values */ "./node_modules/lodash/values.js");
/* harmony import */ var lodash_values__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_values__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/orderBy */ "./node_modules/lodash/orderBy.js");
/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/range */ "./node_modules/lodash/range.js");
/* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/uniq */ "./node_modules/lodash/uniq.js");
/* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var lodash_invert__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/invert */ "./node_modules/lodash/invert.js");
/* harmony import */ var lodash_invert__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_invert__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/isObject */ "./node_modules/lodash/isObject.js");
/* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/identity */ "./node_modules/lodash/identity.js");
/* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js");
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./collection */ "./node_modules/victory-core/es/victory-util/collection.js");
/* harmony import */ var _domain__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./domain */ "./node_modules/victory-core/es/victory-util/domain.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./helpers */ "./node_modules/victory-core/es/victory-util/helpers.js");













function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

/* eslint-disable func-style */




/**
 * Returns the axis (x or y) of a particular axis component
 * @param {Object} props: the props object.
 * @param {Boolean} horizontal: true for horizontal charts
 * @returns {String} the dimension appropriate for the axis given its props
 */

function getAxis(props) {
  var dependentAxis = props.dependentAxis;
  return dependentAxis ? "y" : "x";
}
/**
 * Returns all axis components that pass a given predicate
 * @param {Array} childComponents: an array of children
 * @param {Function} predicate: a predicate function that will be called with each
 * @returns {Array} all axis components that pass the given predicate or []
 */

function findAxisComponents(childComponents, predicate) {
  predicate = predicate || (lodash_identity__WEBPACK_IMPORTED_MODULE_9___default());

  var findAxes = function (children) {
    return children.reduce(function (memo, child) {
      if (child.type && child.type.role === "axis" && predicate(child)) {
        return memo.concat(child);
      } else if (child.props && child.props.children) {
        return memo.concat(findAxes(react__WEBPACK_IMPORTED_MODULE_12__.Children.toArray(child.props.children)));
      }

      return memo;
    }, []);
  };

  return findAxes(childComponents);
}
/**
 * Returns a single axis component of the desired axis type (x or y)
 * @param {Array} childComponents: an array of children
 * @param {String} axis: desired axis either "x" or "y".
 * @returns {ReactComponent} an axis component of the desired axis or undefined
 */

function getAxisComponent(childComponents, axis) {
  var matchesAxis = function (component) {
    var type = component.type.getAxis(component.props);
    return type === axis;
  };

  return findAxisComponents(childComponents, matchesAxis)[0];
}
/**
 * Returns all axis components of the desired axis type (x or y) along with any
 * parent components excluding VictoryChart
 * @param {Array} childComponents: an optional array of children.
 * @param {String} type: desired axis either "dependent" or "independent".
 * @returns {ReactComponent} an axis component of the desired type or undefined
 */

function getAxisComponentsWithParent(childComponents, type) {
  var matchesType = function (child) {
    return type === "dependent" ? child.props.dependentAxis : !child.props.dependentAxis;
  };

  var findComponents = function (children) {
    return children.reduce(function (memo, child) {
      if (child.type && child.type.role === "axis" && matchesType(child)) {
        return memo.concat(child);
      } else if (child.props && child.props.children) {
        var childAxis = findComponents(react__WEBPACK_IMPORTED_MODULE_12__.Children.toArray(child.props.children));
        return childAxis.length > 0 ? memo.concat(child) : memo;
      }

      return memo;
    }, []);
  };

  return findComponents(childComponents);
}
function getOrigin(domain) {
  var getSingleOrigin = function (d) {
    var domainMin = Math.min.apply(Math, _toConsumableArray(d));
    var domainMax = Math.max.apply(Math, _toConsumableArray(d));
    return domainMax < 0 ? domainMax : Math.max(0, domainMin);
  };

  return {
    x: _collection__WEBPACK_IMPORTED_MODULE_13__.containsDates(domain.x) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.x))) : getSingleOrigin(domain.x),
    y: _collection__WEBPACK_IMPORTED_MODULE_13__.containsDates(domain.y) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.y))) : getSingleOrigin(domain.y)
  };
}
function getOriginSign(origin, domain) {
  var getSign = function () {
    return origin <= 0 && Math.max.apply(Math, _toConsumableArray(domain)) <= 0 ? "negative" : "positive";
  };

  return _collection__WEBPACK_IMPORTED_MODULE_13__.containsDates(domain) ? "positive" : getSign();
}
/**
 * @param {Object} props: axis component props
 * @returns {Boolean} true when the axis is vertical
 */

function isVertical(props) {
  var orientation = props.orientation || (props.dependentAxis ? "left" : "bottom");
  var vertical = {
    top: false,
    bottom: false,
    left: true,
    right: true
  };
  return vertical[orientation];
}
/**
 * @param {Object} props: axis component props
 * @returns {Boolean} true when tickValues contain strings
 */

function stringTicks(props) {
  return props.tickValues !== undefined && _collection__WEBPACK_IMPORTED_MODULE_13__.containsStrings(props.tickValues);
}

function getDefaultTickFormat(props) {
  var tickValues = props.tickValues;
  var axis = getAxis(props);
  var stringMap = props.stringMap && props.stringMap[axis];
  var fallbackFormat = tickValues && !_collection__WEBPACK_IMPORTED_MODULE_13__.containsDates(tickValues) ? function (x) {
    return x;
  } : undefined;

  if (!stringMap) {
    return stringTicks(props) ? function (x, index) {
      return tickValues[index];
    } : fallbackFormat;
  } else {
    var invertedStringMap = stringMap && lodash_invert__WEBPACK_IMPORTED_MODULE_6___default()(stringMap);

    var tickValueArray = lodash_orderBy__WEBPACK_IMPORTED_MODULE_3___default()(lodash_values__WEBPACK_IMPORTED_MODULE_2___default()(stringMap), function (n) {
      return n;
    });

    var dataNames = tickValueArray.map(function (tick) {
      return invertedStringMap[tick];
    }); // string ticks should have one tick of padding at the beginning

    var dataTicks = [""].concat(_toConsumableArray(dataNames), [""]);
    return function (x) {
      return dataTicks[x];
    };
  }
}

function getStringTicks(props) {
  var axis = getAxis(props);
  var stringMap = props.stringMap && props.stringMap[axis];
  var categories = Array.isArray(props.categories) ? props.categories : props.categories && props.categories[axis];
  var ticksFromCategories = categories && _collection__WEBPACK_IMPORTED_MODULE_13__.containsOnlyStrings(categories) ? categories.map(function (tick) {
    return stringMap[tick];
  }) : undefined;

  var ticksFromStringMap = stringMap && lodash_values__WEBPACK_IMPORTED_MODULE_2___default()(stringMap);

  return ticksFromCategories && ticksFromCategories.length !== 0 ? ticksFromCategories : ticksFromStringMap;
}

function getTickArray(props) {
  var tickValues = props.tickValues,
      tickFormat = props.tickFormat;
  var axis = getAxis(props);
  var stringMap = props.stringMap && props.stringMap[axis];

  var getTicksFromFormat = function () {
    if (!tickFormat || !Array.isArray(tickFormat)) {
      return undefined;
    }

    return _collection__WEBPACK_IMPORTED_MODULE_13__.containsStrings(tickFormat) ? tickFormat.map(function (t, i) {
      return i;
    }) : tickFormat;
  };

  var ticks = tickValues;

  if (stringMap) {
    ticks = getStringTicks(props);
  }

  if (tickValues && _collection__WEBPACK_IMPORTED_MODULE_13__.containsStrings(tickValues)) {
    ticks = stringMap ? tickValues.map(function (tick) {
      return stringMap[tick];
    }) : lodash_range__WEBPACK_IMPORTED_MODULE_4___default()(1, tickValues.length + 1);
  }

  var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(ticks) : getTicksFromFormat(props);

  var buildTickArray = function (arr) {
    var newTickArray = [];
    var domain = props.domain && props.domain[axis] || props.domain;

    if (arr) {
      arr.forEach(function (t, index) {
        if (Array.isArray(domain)) {
          if (t >= _collection__WEBPACK_IMPORTED_MODULE_13__.getMinValue(domain) && t <= _collection__WEBPACK_IMPORTED_MODULE_13__.getMaxValue(domain)) {
            newTickArray.push({
              value: t,
              index: index
            });
          }
        } else {
          newTickArray.push({
            value: t,
            index: index
          });
        }
      });
      return newTickArray;
    } else return undefined;
  };

  return Array.isArray(tickArray) && tickArray.length ? buildTickArray(tickArray) : undefined;
}

function getTickFormat(props, scale) {
  var tickFormat = props.tickFormat;
  var axis = getAxis(props);
  var stringMap = props.stringMap && props.stringMap[axis];

  if (!tickFormat) {
    var defaultTickFormat = getDefaultTickFormat(props);
    var scaleTickFormat = scale.tickFormat && lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default()(scale.tickFormat) ? scale.tickFormat() : function (x) {
      return x;
    };
    return defaultTickFormat || scaleTickFormat;
  } else if (tickFormat && Array.isArray(tickFormat)) {
    var tickArray = getTickArray(props);
    var tickArrayIndices = tickArray ? tickArray.map(function (v) {
      return v.index;
    }) : undefined;
    var filteredTickFormat = tickFormat.filter(function (t, index) {
      return tickArrayIndices.includes(index);
    });
    return function (x, index) {
      return filteredTickFormat[index];
    };
  } else if (tickFormat && lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default()(tickFormat)) {
    var applyStringTicks = function (tick, index, ticks) {
      var invertedStringMap = lodash_invert__WEBPACK_IMPORTED_MODULE_6___default()(stringMap);

      var stringTickArray = ticks.map(function (t) {
        return invertedStringMap[t];
      });
      return props.tickFormat(invertedStringMap[tick], index, stringTickArray);
    };

    return stringMap ? applyStringTicks : tickFormat;
  } else {
    return function (x) {
      return x;
    };
  }
}

function downsampleTicks(ticks, tickCount) {
  if (!tickCount || !Array.isArray(ticks) || ticks.length <= tickCount) {
    return ticks;
  }

  var k = Math.floor(ticks.length / tickCount);
  return ticks.filter(function (d, i) {
    return i % k === 0;
  });
}

function getTicks(props, scale, filterZero) {
  var tickCount = props.tickCount;
  var tickArray = getTickArray(props);
  var tickValues = tickArray ? tickArray.map(function (v) {
    return v.value;
  }) : undefined;

  if (tickValues) {
    return downsampleTicks(tickValues, tickCount);
  } else if (scale.ticks && lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default()(scale.ticks)) {
    // eslint-disable-next-line no-magic-numbers
    var defaultTickCount = tickCount || 5;
    var scaleTicks = scale.ticks(defaultTickCount);
    var scaledTickArray = Array.isArray(scaleTicks) && scaleTicks.length ? scaleTicks : scale.domain();
    var ticks = downsampleTicks(scaledTickArray, tickCount);

    if (filterZero) {
      var filteredTicks = lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(ticks, 0) ? lodash_without__WEBPACK_IMPORTED_MODULE_0___default()(ticks, 0) : ticks;
      return filteredTicks.length ? filteredTicks : ticks;
    }

    return ticks;
  }

  return scale.domain();
}
/**
 * Returns a domain based tickValues
 * @param {Object} props: the props object
 * @param {String} axis: either x or y
 * @returns {Array} returns a domain from tickValues
 */
//eslint-disable-next-line max-statements

function getDomainFromData(props, axis) {
  var polar = props.polar,
      _props$startAngle = props.startAngle,
      startAngle = _props$startAngle === void 0 ? 0 : _props$startAngle,
      _props$endAngle = props.endAngle,
      endAngle = _props$endAngle === void 0 ? 360 : _props$endAngle;
  var tickArray = getTickArray(props);
  var tickValues = tickArray ? tickArray.map(function (v) {
    return v.value;
  }) : undefined;

  if (!Array.isArray(tickValues)) {
    return undefined;
  }

  var minDomain = _domain__WEBPACK_IMPORTED_MODULE_14__.getMinFromProps(props, axis);
  var maxDomain = _domain__WEBPACK_IMPORTED_MODULE_14__.getMaxFromProps(props, axis);
  var tickStrings = stringTicks(props);
  var ticks = tickValues.map(function (value) {
    return +value;
  });
  var defaultMin = tickStrings ? 1 : _collection__WEBPACK_IMPORTED_MODULE_13__.getMinValue(ticks);
  var defaultMax = tickStrings ? tickValues.length : _collection__WEBPACK_IMPORTED_MODULE_13__.getMaxValue(ticks);
  var min = minDomain !== undefined ? minDomain : defaultMin;
  var max = maxDomain !== undefined ? maxDomain : defaultMax;
  var initialDomain = _domain__WEBPACK_IMPORTED_MODULE_14__.getDomainFromMinMax(min, max);
  var domain = polar && axis === "x" && Math.abs(startAngle - endAngle) === 360 ? _domain__WEBPACK_IMPORTED_MODULE_14__.getSymmetricDomain(initialDomain, ticks) : initialDomain;

  if (isVertical(props) && !polar) {
    domain.reverse();
  }

  return domain;
} // exposed for use by VictoryChart


function getDomain(props, axis) {
  var inherentAxis = getAxis(props);

  if (axis && axis !== inherentAxis) {
    return undefined;
  }

  return _domain__WEBPACK_IMPORTED_MODULE_14__.createDomainFunction(getDomainFromData)(props, inherentAxis);
}
function getAxisValue(props, axis) {
  if (!props.axisValue) {
    return undefined;
  }

  var scaleAxis = axis === "x" ? "y" : "x";
  var scale = lodash_isObject__WEBPACK_IMPORTED_MODULE_7___default()(props.scale) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default()(props.scale[scaleAxis]) ? props.scale[scaleAxis] : undefined;

  if (!scale) {
    return undefined;
  }

  var stringMapAxis = axis === "x" ? "y" : "x";
  var stringMap = lodash_isObject__WEBPACK_IMPORTED_MODULE_7___default()(props.stringMap) && props.stringMap[stringMapAxis];
  var axisValue = stringMap && typeof props.axisValue === "string" ? stringMap[props.axisValue] : props.axisValue;
  return scale(axisValue);
}
function modifyProps(props, fallbackProps) {
  if (!lodash_isObject__WEBPACK_IMPORTED_MODULE_7___default()(props.theme)) {
    return _helpers__WEBPACK_IMPORTED_MODULE_15__.modifyProps(props, fallbackProps, "axis");
  }

  var role = "axis";

  if (props.dependentAxis && props.theme.dependentAxis) {
    role = "dependentAxis";
  } else if (!props.dependentAxis && props.theme.independentAxis) {
    role = "independentAxis";
  }

  if (role === "axis") {
    return _helpers__WEBPACK_IMPORTED_MODULE_15__.modifyProps(props, fallbackProps, "axis");
  }

  var axisTheme = lodash_defaults__WEBPACK_IMPORTED_MODULE_10___default()({}, props.theme[role], props.theme.axis);

  var theme = lodash_assign__WEBPACK_IMPORTED_MODULE_11___default()({}, props.theme, {
    axis: axisTheme
  });

  return _helpers__WEBPACK_IMPORTED_MODULE_15__.modifyProps(lodash_assign__WEBPACK_IMPORTED_MODULE_11___default()({}, props, {
    theme: theme
  }), fallbackProps, "axis");
}

/***/ }),

/***/ "./node_modules/victory-core/es/victory-util/collection.js":
/*!*****************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-util/collection.js ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "containsStrings": () => (/* binding */ containsStrings),
/* harmony export */   "containsDates": () => (/* binding */ containsDates),
/* harmony export */   "containsNumbers": () => (/* binding */ containsNumbers),
/* harmony export */   "containsOnlyStrings": () => (/* binding */ containsOnlyStrings),
/* harmony export */   "isArrayOfArrays": () => (/* binding */ isArrayOfArrays),
/* harmony export */   "removeUndefined": () => (/* binding */ removeUndefined),
/* harmony export */   "getMaxValue": () => (/* binding */ getMaxValue),
/* harmony export */   "getMinValue": () => (/* binding */ getMinValue)
/* harmony export */ });
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

/* eslint-disable func-style */

/* eslint-disable no-use-before-define */
function isNonEmptyArray(collection) {
  return Array.isArray(collection) && collection.length > 0;
}

function containsStrings(collection) {
  return Array.isArray(collection) && collection.some(function (value) {
    return typeof value === "string";
  });
}
function containsDates(collection) {
  return Array.isArray(collection) && collection.some(function (value) {
    return value instanceof Date;
  });
}
function containsNumbers(collection) {
  return Array.isArray(collection) && collection.some(function (value) {
    return typeof value === "number";
  });
}
function containsOnlyStrings(collection) {
  return isNonEmptyArray(collection) && collection.every(function (value) {
    return typeof value === "string";
  });
}
function isArrayOfArrays(collection) {
  return isNonEmptyArray(collection) && collection.every(Array.isArray);
}
function removeUndefined(arr) {
  return arr.filter(function (el) {
    return el !== undefined;
  });
}
function getMaxValue(arr) {
  for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
    values[_key - 1] = arguments[_key];
  }

  var array = arr.concat(values);
  return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) : Math.max.apply(Math, _toConsumableArray(array));
}
function getMinValue(arr) {
  for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
    values[_key2 - 1] = arguments[_key2];
  }

  var array = arr.concat(values);
  return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) : Math.min.apply(Math, _toConsumableArray(array));
}

/***/ }),

/***/ "./node_modules/victory-core/es/victory-util/common-props.js":
/*!*******************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-util/common-props.js ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "dataProps": () => (/* binding */ dataProps),
/* harmony export */   "baseProps": () => (/* binding */ baseProps),
/* harmony export */   "primitiveProps": () => (/* binding */ primitiveProps)
/* harmony export */ });
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./prop-types */ "./node_modules/victory-core/es/victory-util/prop-types.js");


var dataProps = {
  categories: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
    x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
    y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
  })]),
  data: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
  dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
  disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
  labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
  labels: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)]),
  samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
  sortKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
  sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
  style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
    parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
    data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
    labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
  }),
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
  y0: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))])
};
var baseProps = {
  animate: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
  containerComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
  domain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
    x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
    y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
  })]),
  maxDomain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
    x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)]),
    y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)])
  })]),
  minDomain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
    x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)]),
    y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)])
  })]),
  domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
    x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))]),
    y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))])
  }), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))]),
  eventKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
  events: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
    target: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["data", "labels", "parent"]),
    eventKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
    eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
  })),
  externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
    callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default()["function"]),
    childName: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)]),
    eventKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
    mutation: (prop_types__WEBPACK_IMPORTED_MODULE_0___default()["function"]),
    target: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)])
  })),
  groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
  height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
  name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
  origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
    x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
    y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
  }),
  padding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
    top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
    bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
    left: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
    right: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
  })]),
  polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
  range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
    x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
    y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
  })]),
  scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
    x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
    y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
  })]),
  sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
    events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
    getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
  }),
  singleQuadrantDomainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
    x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
    y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
  })]),
  standalone: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
  theme: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
  width: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative
};
var primitiveProps = {
  active: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
  ariaLabel: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
  className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
  clipPath: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
  data: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
  desc: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
  disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
  events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
  id: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
  index: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
  origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
    x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
    y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
  }),
  polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
  role: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
  scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
    x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
    y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
  })]),
  shapeRendering: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
  style: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
  tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
  transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
};

/***/ }),

/***/ "./node_modules/victory-core/es/victory-util/data.js":
/*!***********************************************************!*\
  !*** ./node_modules/victory-core/es/victory-util/data.js ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "formatDataFromDomain": () => (/* binding */ formatDataFromDomain),
/* harmony export */   "createStringMap": () => (/* binding */ createStringMap),
/* harmony export */   "downsample": () => (/* binding */ downsample),
/* harmony export */   "formatData": () => (/* binding */ formatData),
/* harmony export */   "generateData": () => (/* binding */ generateData),
/* harmony export */   "getCategories": () => (/* binding */ getCategories),
/* harmony export */   "getData": () => (/* binding */ getData),
/* harmony export */   "getStringsFromAxes": () => (/* binding */ getStringsFromAxes),
/* harmony export */   "getStringsFromCategories": () => (/* binding */ getStringsFromCategories),
/* harmony export */   "getStringsFromData": () => (/* binding */ getStringsFromData),
/* harmony export */   "isDataComponent": () => (/* binding */ isDataComponent)
/* harmony export */ });
/* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/omitBy */ "./node_modules/lodash/omitBy.js");
/* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isUndefined */ "./node_modules/lodash/isUndefined.js");
/* harmony import */ var lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/includes */ "./node_modules/lodash/includes.js");
/* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_includes__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isEqual */ "./node_modules/lodash/isEqual.js");
/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isEmpty */ "./node_modules/lodash/isEmpty.js");
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/orderBy */ "./node_modules/lodash/orderBy.js");
/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/property */ "./node_modules/lodash/property.js");
/* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/isPlainObject */ "./node_modules/lodash/isPlainObject.js");
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var lodash_last__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/last */ "./node_modules/lodash/last.js");
/* harmony import */ var lodash_last__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_last__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash/range */ "./node_modules/lodash/range.js");
/* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lodash/uniq */ "./node_modules/lodash/uniq.js");
/* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./helpers */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./collection */ "./node_modules/victory-core/es/victory-util/collection.js");
/* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./scale */ "./node_modules/victory-core/es/victory-util/scale.js");
/* harmony import */ var _immutable__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./immutable */ "./node_modules/victory-core/es/victory-util/immutable.js");














function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

/* eslint-disable func-style */

/* eslint-disable no-use-before-define */




 // Private Functions

function parseDatum(datum) {
  var immutableDatumWhitelist = {
    errorX: true,
    errorY: true
  };
  return _immutable__WEBPACK_IMPORTED_MODULE_14__.isImmutable(datum) ? _immutable__WEBPACK_IMPORTED_MODULE_14__.shallowToJS(datum, immutableDatumWhitelist) : datum;
}

function getLength(data) {
  return _immutable__WEBPACK_IMPORTED_MODULE_14__.isIterable(data) ? data.size : data.length;
} // Returns generated data for a given axis based on domain and sample from props


function generateDataArray(props, axis) {
  var propsDomain = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_7___default()(props.domain) ? props.domain[axis] : props.domain;
  var domain = propsDomain || _scale__WEBPACK_IMPORTED_MODULE_15__.getBaseScale(props, axis).domain();
  var samples = props.samples || 1;
  var domainMax = Math.max.apply(Math, _toConsumableArray(domain));
  var domainMin = Math.min.apply(Math, _toConsumableArray(domain));
  var step = (domainMax - domainMin) / samples;

  var values = lodash_range__WEBPACK_IMPORTED_MODULE_10___default()(domainMin, domainMax, step);

  return lodash_last__WEBPACK_IMPORTED_MODULE_9___default()(values) === domainMax ? values : values.concat(domainMax);
} // Returns sorted data. If no sort keys are provided, data is returned unaltered.


function sortData(dataset, sortKey) {
  var sortOrder = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "ascending";

  if (!sortKey) {
    return dataset;
  } // Ensures previous VictoryLine api for sortKey prop stays consistent


  if (sortKey === "x" || sortKey === "y") {
    sortKey = "_".concat(sortKey);
  }

  var order = sortOrder === "ascending" ? "asc" : "desc";
  return lodash_orderBy__WEBPACK_IMPORTED_MODULE_5___default()(dataset, sortKey, order);
} // This method will remove data points that break certain scales. (log scale only)


function cleanData(dataset, props) {
  var smallNumber = 1 / Number.MAX_SAFE_INTEGER;
  var scaleType = {
    x: _scale__WEBPACK_IMPORTED_MODULE_15__.getScaleType(props, "x"),
    y: _scale__WEBPACK_IMPORTED_MODULE_15__.getScaleType(props, "y")
  };

  if (scaleType.x !== "log" && scaleType.y !== "log") {
    return dataset;
  }

  var rules = function (datum, axis) {
    return scaleType[axis] === "log" ? datum["_".concat(axis)] !== 0 : true;
  };

  var sanitize = function (datum) {
    var _x = rules(datum, "x") ? datum._x : smallNumber;

    var _y = rules(datum, "y") ? datum._y : smallNumber;

    var _y0 = rules(datum, "y0") ? datum._y0 : smallNumber;

    return lodash_assign__WEBPACK_IMPORTED_MODULE_12___default()({}, datum, {
      _x: _x,
      _y: _y,
      _y0: _y0
    });
  };

  return dataset.map(function (datum) {
    if (rules(datum, "x") && rules(datum, "y") && rules(datum, "y0")) {
      return datum;
    }

    return sanitize(datum);
  });
} // Returns a data accessor given an eventKey prop


function getEventKey(key) {
  // creates a data accessor function
  // given a property key, path, array index, or null for identity.
  if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default()(key)) {
    return key;
  } else if (key === null || key === undefined) {
    return function () {
      return undefined;
    };
  } // otherwise, assume it is an array index, property key or path (_.property handles all three)


  return lodash_property__WEBPACK_IMPORTED_MODULE_6___default()(key);
} // Returns data with an eventKey prop added to each datum


function addEventKeys(props, data) {
  var hasEventKeyAccessor = !!props.eventKey;
  var eventKeyAccessor = getEventKey(props.eventKey);
  return data.map(function (datum, index) {
    if (datum.eventKey !== undefined) {
      return datum;
    } else if (hasEventKeyAccessor) {
      var eventKey = eventKeyAccessor(datum, index);
      return eventKey !== undefined ? lodash_assign__WEBPACK_IMPORTED_MODULE_12___default()({
        eventKey: eventKey
      }, datum) : datum;
    } else {
      return datum;
    }
  });
} // Exported Functions
// This method will remove data points that fall outside of the desired domain (non-continuous charts only)


function formatDataFromDomain(dataset, domain, defaultBaseline) {
  var exists = function (val) {
    return val !== undefined;
  };

  var minDomainX = _collection__WEBPACK_IMPORTED_MODULE_16__.getMinValue(domain.x);
  var maxDomainX = _collection__WEBPACK_IMPORTED_MODULE_16__.getMaxValue(domain.x);
  var minDomainY = _collection__WEBPACK_IMPORTED_MODULE_16__.getMinValue(domain.y);
  var maxDomainY = _collection__WEBPACK_IMPORTED_MODULE_16__.getMaxValue(domain.y);

  var underMin = function (min) {
    return function (val) {
      return exists(val) && val < min;
    };
  };

  var overMax = function (max) {
    return function (val) {
      return exists(val) && val > max;
    };
  };

  var isUnderMinX = underMin(minDomainX);
  var isUnderMinY = underMin(minDomainY);
  var isOverMaxX = overMax(maxDomainX);
  var isOverMaxY = overMax(maxDomainY); // eslint-disable-next-line complexity

  return dataset.map(function (datum) {
    var _x = datum._x,
        _y = datum._y,
        _y0 = datum._y0,
        _y1 = datum._y1; // single x point less than min domain

    if (isUnderMinX(_x) || isOverMaxX(_x)) _x = null;
    var baseline = exists(_y0) ? _y0 : defaultBaseline;
    var value = exists(_y1) ? _y1 : _y;
    if (!exists(value)) return datum; // value only and less than min domain or greater than max domain

    if (!exists(baseline) && (isUnderMinY(value) || isOverMaxY(value))) _y = null; // baseline and value are both less than min domain or both greater than max domain

    if (isUnderMinY(baseline) && isUnderMinY(value) || isOverMaxY(baseline) && isOverMaxY(value)) _y = _y0 = _y1 = null; // baseline and value with only baseline below min, set baseline to minDomainY

    if (isUnderMinY(baseline) && !isUnderMinY(value)) _y0 = minDomainY; // baseline and value with only baseline above max, set baseline to maxDomainY

    if (isOverMaxY(baseline) && !isOverMaxY(value)) _y0 = maxDomainY;
    return lodash_assign__WEBPACK_IMPORTED_MODULE_12___default()({}, datum, lodash_omitBy__WEBPACK_IMPORTED_MODULE_0___default()({
      _x: _x,
      _y: _y,
      _y0: _y0,
      _y1: _y1
    }, (lodash_isUndefined__WEBPACK_IMPORTED_MODULE_1___default())));
  });
}
/**
 * Returns an object mapping string data to numeric data
 * @param {Object} props: the props object
 * @param {String} axis: the current axis
 * @returns {Object} an object mapping string data to numeric data
 */

function createStringMap(props, axis) {
  var stringsFromAxes = getStringsFromAxes(props, axis);
  var stringsFromCategories = getStringsFromCategories(props, axis);
  var stringsFromData = getStringsFromData(props, axis);

  var allStrings = lodash_uniq__WEBPACK_IMPORTED_MODULE_11___default()(_toConsumableArray(stringsFromAxes).concat(_toConsumableArray(stringsFromCategories), _toConsumableArray(stringsFromData)));

  return allStrings.length === 0 ? null : allStrings.reduce(function (memo, string, index) {
    memo[string] = index + 1;
    return memo;
  }, {});
}
/**
 * Reduces the size of a data array, such that it is <= maxPoints.
 * @param {Array} data: an array of data; must be sorted
 * @param {Number} maxPoints: maximum number of data points to return
 * @param {Number} startingIndex: the index of the data[0] *in the entire dataset*; this function
                   assumes `data` param is a subset of larger dataset that has been zoommed
  * @returns {Array} an array of data, a subset of data param
  */

function downsample(data, maxPoints) {
  var startingIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  // ensures that the downampling of data while zooming looks good.
  var dataLength = getLength(data);

  if (dataLength > maxPoints) {
    // limit k to powers of 2, e.g. 64, 128, 256
    // so that the same points will be chosen reliably, reducing flicker on zoom
    var k = Math.pow(2, Math.ceil(Math.log2(dataLength / maxPoints)));
    return data.filter( // ensure modulo is always calculated from same reference: i + startingIndex
    function (d, i) {
      return (i + startingIndex) % k === 0;
    });
  }

  return data;
}
/**
 * Returns formatted data. Data accessors are applied, and string values are replaced.
 * @param {Array} dataset: the original domain
 * @param {Object} props: the props object
 * @param {Array} expectedKeys: an array of expected data keys
 * @returns {Array} the formatted data
 */

function formatData(dataset, props, expectedKeys) {
  var isArrayOrIterable = Array.isArray(dataset) || _immutable__WEBPACK_IMPORTED_MODULE_14__.isIterable(dataset);

  if (!isArrayOrIterable || getLength(dataset) < 1) {
    return [];
  }

  var defaultKeys = ["x", "y", "y0"];
  expectedKeys = Array.isArray(expectedKeys) ? expectedKeys : defaultKeys;

  var createAccessor = function (name) {
    return _helpers__WEBPACK_IMPORTED_MODULE_17__.createAccessor(props[name] !== undefined ? props[name] : name);
  };

  var accessor = expectedKeys.reduce(function (memo, type) {
    memo[type] = createAccessor(type);
    return memo;
  }, {});
  var preformattedData = lodash_isEqual__WEBPACK_IMPORTED_MODULE_3___default()(expectedKeys, defaultKeys) && props.x === "_x" && props.y === "_y" && props.y0 === "_y0";
  var stringMap;

  if (preformattedData === false) {
    // stringMap is not required if the data is preformatted
    stringMap = {
      x: expectedKeys.indexOf("x") !== -1 ? createStringMap(props, "x") : undefined,
      y: expectedKeys.indexOf("y") !== -1 ? createStringMap(props, "y") : undefined,
      y0: expectedKeys.indexOf("y0") !== -1 ? createStringMap(props, "y") : undefined
    };
  }

  var data = preformattedData ? dataset : dataset.reduce(function (dataArr, datum, index) {
    // eslint-disable-line complexity
    datum = parseDatum(datum);
    var fallbackValues = {
      x: index,
      y: datum
    };
    var processedValues = expectedKeys.reduce(function (memo, type) {
      var processedValue = accessor[type](datum);
      var value = processedValue !== undefined ? processedValue : fallbackValues[type];

      if (value !== undefined) {
        if (typeof value === "string" && stringMap[type]) {
          memo["".concat(type, "Name")] = value;
          memo["_".concat(type)] = stringMap[type][value];
        } else {
          memo["_".concat(type)] = value;
        }
      }

      return memo;
    }, {});

    var formattedDatum = lodash_assign__WEBPACK_IMPORTED_MODULE_12___default()({}, processedValues, datum);

    if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_4___default()(formattedDatum)) {
      dataArr.push(formattedDatum);
    }

    return dataArr;
  }, []);
  var sortedData = sortData(data, props.sortKey, props.sortOrder);
  var cleanedData = cleanData(sortedData, props);
  return addEventKeys(props, cleanedData);
}
/**
 * Returns generated x and y data based on domain and sample from props
 * @param {Object} props: the props object
 * @returns {Array} an array of data
 */

function generateData(props) {
  var xValues = generateDataArray(props, "x");
  var yValues = generateDataArray(props, "y");
  var values = xValues.map(function (x, i) {
    return {
      x: x,
      y: yValues[i]
    };
  });
  return values;
}
/**
 * Returns an array of categories for a given axis
 * @param {Object} props: the props object
 * @param {String} axis: the current axis
 * @returns {Array} an array of categories
 */

function getCategories(props, axis) {
  return props.categories && !Array.isArray(props.categories) ? props.categories[axis] : props.categories;
}
/**
 * Returns an array of formatted data
 * @param {Object} props: the props object
 * @returns {Array} an array of data
 */

function getData(props) {
  return props.data ? formatData(props.data, props) : formatData(generateData(props), props);
}
/**
 * Returns an array of strings from axis tickValues for a given axis
 * @param {Object} props: the props object
 * @param {String} axis: the current axis
 * @returns {Array} an array of strings
 */

function getStringsFromAxes(props, axis) {
  var tickValues = props.tickValues,
      tickFormat = props.tickFormat;
  var tickValueArray;

  if (!tickValues || !Array.isArray(tickValues) && !tickValues[axis]) {
    tickValueArray = tickFormat && Array.isArray(tickFormat) ? tickFormat : [];
  } else {
    tickValueArray = tickValues[axis] || tickValues;
  }

  return tickValueArray.filter(function (val) {
    return typeof val === "string";
  });
}
/**
 * Returns an array of strings from categories for a given axis
 * @param {Object} props: the props object
 * @param {String} axis: the current axis
 * @returns {Array} an array of strings
 */

function getStringsFromCategories(props, axis) {
  if (!props.categories) {
    return [];
  }

  var categories = getCategories(props, axis);
  var categoryStrings = categories && categories.filter(function (val) {
    return typeof val === "string";
  });
  return categoryStrings ? _collection__WEBPACK_IMPORTED_MODULE_16__.removeUndefined(categoryStrings) : [];
}
/**
 * Returns an array of strings from data
 * @param {Object} props: the props object
 * @param {String} axis: the current axis
 * @returns {Array} an array of strings
 */

function getStringsFromData(props, axis) {
  var isArrayOrIterable = Array.isArray(props.data) || _immutable__WEBPACK_IMPORTED_MODULE_14__.isIterable(props.data);

  if (!isArrayOrIterable) {
    return [];
  }

  var key = props[axis] === undefined ? axis : props[axis];
  var accessor = _helpers__WEBPACK_IMPORTED_MODULE_17__.createAccessor(key); // support immutable data

  var data = props.data.reduce(function (memo, d) {
    memo.push(parseDatum(d));
    return memo;
  }, []);
  var sortedData = sortData(data, props.sortKey, props.sortOrder);
  var dataStrings = sortedData.reduce(function (dataArr, datum) {
    datum = parseDatum(datum);
    dataArr.push(accessor(datum));
    return dataArr;
  }, []).filter(function (datum) {
    return typeof datum === "string";
  }); // return a unique set of strings

  return dataStrings.reduce(function (prev, curr) {
    if (curr !== undefined && curr !== null && prev.indexOf(curr) === -1) {
      prev.push(curr);
    }

    return prev;
  }, []);
}
/**
 * Checks whether a given component can be used to calculate data
 * @param {Component} component: a React component instance
 * @returns {Boolean} Returns true if the given component has a role included in the whitelist
 */

function isDataComponent(component) {
  var getRole = function (child) {
    return child && child.type ? child.type.role : "";
  };

  var role = getRole(component);

  if (role === "portal") {
    var children = react__WEBPACK_IMPORTED_MODULE_13__.Children.toArray(component.props.children);
    role = children.length ? getRole(children[0]) : "";
  }

  var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
  return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
}

/***/ }),

/***/ "./node_modules/victory-core/es/victory-util/default-transitions.js":
/*!**************************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-util/default-transitions.js ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "continuousTransitions": () => (/* binding */ continuousTransitions),
/* harmony export */   "continuousPolarTransitions": () => (/* binding */ continuousPolarTransitions),
/* harmony export */   "discreteTransitions": () => (/* binding */ discreteTransitions)
/* harmony export */ });
/* eslint-disable func-style */
function continuousTransitions() {
  return {
    onLoad: {
      duration: 2000
    },
    onExit: {
      duration: 500
    },
    onEnter: {
      duration: 500
    }
  };
}
function continuousPolarTransitions() {
  return {
    onLoad: {
      duration: 2000,
      before: function () {
        return {
          _y: 0,
          _y1: 0,
          _y0: 0
        };
      },
      after: function (datum) {
        return {
          _y: datum._y,
          _y1: datum._y1,
          _y0: datum._y0
        };
      }
    },
    onExit: {
      duration: 500,
      before: function (datum, index, data) {
        var adjacent = function (attr) {
          var adj = index === 0 ? data[index + 1] : data[index - 1];
          return adj[attr];
        };

        return {
          _x: adjacent("_x"),
          _y: adjacent("_y"),
          _y0: adjacent("_y0")
        };
      }
    },
    onEnter: {
      duration: 500,
      before: function (datum, index, data) {
        var adjacent = function (attr) {
          var adj = index === 0 ? data[index + 1] : data[index - 1];
          return adj[attr];
        };

        return {
          _x: adjacent("_x"),
          _y: adjacent("_y"),
          _y0: adjacent("_y0")
        };
      },
      after: function (datum) {
        return {
          _x: datum._x,
          _y: datum._y,
          _y1: datum._y1,
          _y0: datum._y0
        };
      }
    }
  };
}
function discreteTransitions() {
  return {
    onLoad: {
      duration: 2000,
      before: function () {
        return {
          opacity: 0
        };
      },
      after: function (datum) {
        return datum;
      }
    },
    onExit: {
      duration: 600,
      before: function () {
        return {
          opacity: 0
        };
      }
    },
    onEnter: {
      duration: 600,
      before: function () {
        return {
          opacity: 0
        };
      },
      after: function (datum) {
        return datum;
      }
    }
  };
}

/***/ }),

/***/ "./node_modules/victory-core/es/victory-util/domain.js":
/*!*************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-util/domain.js ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "createDomainFunction": () => (/* binding */ createDomainFunction),
/* harmony export */   "formatDomain": () => (/* binding */ formatDomain),
/* harmony export */   "getDomain": () => (/* binding */ getDomain),
/* harmony export */   "getDomainFromCategories": () => (/* binding */ getDomainFromCategories),
/* harmony export */   "getDomainFromData": () => (/* binding */ getDomainFromData),
/* harmony export */   "getDomainFromMinMax": () => (/* binding */ getDomainFromMinMax),
/* harmony export */   "getDomainFromProps": () => (/* binding */ getDomainFromProps),
/* harmony export */   "getDomainWithZero": () => (/* binding */ getDomainWithZero),
/* harmony export */   "getMaxFromProps": () => (/* binding */ getMaxFromProps),
/* harmony export */   "getMinFromProps": () => (/* binding */ getMinFromProps),
/* harmony export */   "getSymmetricDomain": () => (/* binding */ getSymmetricDomain),
/* harmony export */   "isDomainComponent": () => (/* binding */ isDomainComponent)
/* harmony export */ });
/* harmony import */ var lodash_isDate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isDate */ "./node_modules/lodash/isDate.js");
/* harmony import */ var lodash_isDate__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isDate__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/includes */ "./node_modules/lodash/includes.js");
/* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_includes__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/sortedUniq */ "./node_modules/lodash/sortedUniq.js");
/* harmony import */ var lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isPlainObject */ "./node_modules/lodash/isPlainObject.js");
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var lodash_flatten__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/flatten */ "./node_modules/lodash/flatten.js");
/* harmony import */ var lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_flatten__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./data */ "./node_modules/victory-core/es/victory-util/data.js");
/* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./scale */ "./node_modules/victory-core/es/victory-util/scale.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./helpers */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./collection */ "./node_modules/victory-core/es/victory-util/collection.js");







function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

/* eslint-disable func-style */

/* eslint-disable no-use-before-define */




 // Private Methods

function cleanDomain(domain, props, axis) {
  var scaleType = _scale__WEBPACK_IMPORTED_MODULE_7__.getScaleType(props, axis);

  if (scaleType !== "log") {
    return domain;
  }

  var rules = function (dom) {
    var almostZero = dom[0] < 0 || dom[1] < 0 ? -1 / Number.MAX_SAFE_INTEGER : 1 / Number.MAX_SAFE_INTEGER;
    var domainOne = dom[0] === 0 ? almostZero : dom[0];
    var domainTwo = dom[1] === 0 ? almostZero : dom[1];
    return [domainOne, domainTwo];
  };

  return rules(domain);
}

function getDomainPadding(props, axis) {
  var formatPadding = function (padding) {
    return Array.isArray(padding) ? {
      left: padding[0],
      right: padding[1]
    } : {
      left: padding,
      right: padding
    };
  };

  return lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_4___default()(props.domainPadding) ? formatPadding(props.domainPadding[axis]) : formatPadding(props.domainPadding);
}

function getFlatData(dataset, axis) {
  return lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(dataset).map(function (datum) {
    return datum["_".concat(axis)] && datum["_".concat(axis)][1] !== undefined ? datum["_".concat(axis)][1] : datum["_".concat(axis)];
  });
}

function getExtremeFromData(dataset, axis) {
  var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "min";

  var getExtreme = function (arr) {
    return type === "max" ? Math.max.apply(Math, _toConsumableArray(arr)) : Math.min.apply(Math, _toConsumableArray(arr));
  };

  var initialValue = type === "max" ? -Infinity : Infinity;
  var containsDate = false;

  var result = lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(dataset).reduce(function (memo, datum) {
    var current0 = datum["_".concat(axis, "0")] !== undefined ? datum["_".concat(axis, "0")] : datum["_".concat(axis)];
    var current1 = datum["_".concat(axis, "1")] !== undefined ? datum["_".concat(axis, "1")] : datum["_".concat(axis)];
    var current = getExtreme([current0, current1]);
    containsDate = containsDate || current0 instanceof Date || current1 instanceof Date;
    return getExtreme([memo, current]);
  }, initialValue);

  return containsDate ? new Date(result) : result;
} //eslint-disable-next-line max-statements


function padDomain(domain, props, axis) {
  if (!props.domainPadding) {
    return domain;
  }

  var minDomain = getMinFromProps(props, axis);
  var maxDomain = getMaxFromProps(props, axis);
  var padding = getDomainPadding(props, axis);

  if (!padding.left && !padding.right) {
    return domain;
  }

  var min = _collection__WEBPACK_IMPORTED_MODULE_8__.getMinValue(domain);
  var max = _collection__WEBPACK_IMPORTED_MODULE_8__.getMaxValue(domain);
  var currentAxis = _helpers__WEBPACK_IMPORTED_MODULE_9__.getCurrentAxis(axis, props.horizontal);
  var range = _helpers__WEBPACK_IMPORTED_MODULE_9__.getRange(props, currentAxis);
  var rangeExtent = Math.abs(range[0] - range[1]);
  var paddedRangeExtent = Math.max(rangeExtent - padding.left - padding.right, 1);
  var paddedDomainExtent = Math.abs(max.valueOf() - min.valueOf()) / paddedRangeExtent * rangeExtent;
  var simplePadding = {
    left: paddedDomainExtent * padding.left / rangeExtent,
    right: paddedDomainExtent * padding.right / rangeExtent
  };
  var paddedDomain = {
    min: min.valueOf() - simplePadding.left,
    max: max.valueOf() + simplePadding.right
  };
  var singleQuadrantDomainPadding = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_4___default()(props.singleQuadrantDomainPadding) ? props.singleQuadrantDomainPadding[axis] : props.singleQuadrantDomainPadding;
  var addsQuadrants = min >= 0 && paddedDomain.min <= 0 || max <= 0 && paddedDomain.max >= 0;

  var adjust = function (val, type) {
    var coerce = type === "min" && min >= 0 && val <= 0 || type === "max" && max <= 0 && val >= 0;
    return coerce ? 0 : val;
  };

  if (addsQuadrants && singleQuadrantDomainPadding !== false) {
    // Naive initial padding calculation
    var initialPadding = {
      left: Math.abs(max - min) * padding.left / rangeExtent,
      right: Math.abs(max - min) * padding.right / rangeExtent
    }; // Adjust the domain by the initial padding

    var adjustedDomain = {
      min: adjust(min.valueOf() - initialPadding.left, "min"),
      max: adjust(max.valueOf() + initialPadding.right, "max")
    }; // re-calculate padding, taking the adjusted domain into account

    var finalPadding = {
      left: Math.abs(adjustedDomain.max - adjustedDomain.min) * padding.left / rangeExtent,
      right: Math.abs(adjustedDomain.max - adjustedDomain.min) * padding.right / rangeExtent
    }; // Adjust the domain by the final padding

    paddedDomain = {
      min: adjust(min.valueOf() - finalPadding.left, "min"),
      max: adjust(max.valueOf() + finalPadding.right, "max")
    };
  } // default to minDomain / maxDomain if they exist


  var finalDomain = {
    min: minDomain !== undefined ? minDomain : paddedDomain.min,
    max: maxDomain !== undefined ? maxDomain : paddedDomain.max
  };
  return min instanceof Date || max instanceof Date ? getDomainFromMinMax(new Date(finalDomain.min), new Date(finalDomain.max)) : getDomainFromMinMax(finalDomain.min, finalDomain.max);
} // Public Methods

/**
 * Returns a getDomain function
 * @param {Function} getDomainFromDataFunction: a function that takes props and axis and
 * returns a domain based on data
 * @param {Function} formatDomainFunction: a function that takes domain, props, and axis and
 * returns a formatted domain
 * @returns {Function} a function that takes props and axis and returns a formatted domain
 */


function createDomainFunction(getDomainFromDataFunction, formatDomainFunction) {
  getDomainFromDataFunction = lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(getDomainFromDataFunction) ? getDomainFromDataFunction : getDomainFromData;
  formatDomainFunction = lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(formatDomainFunction) ? formatDomainFunction : formatDomain;
  return function (props, axis) {
    var propsDomain = getDomainFromProps(props, axis);

    if (propsDomain) {
      return formatDomainFunction(propsDomain, props, axis);
    }

    var categories = _data__WEBPACK_IMPORTED_MODULE_10__.getCategories(props, axis);
    var domain = categories ? getDomainFromCategories(props, axis, categories) : getDomainFromDataFunction(props, axis);
    return domain ? formatDomainFunction(domain, props, axis) : undefined;
  };
}
/**
 * Returns a formatted domain.
 * @param {Array} domain: a domain in the form of a two element array
 * @param {Object} props: the props object
 * @param {String} axis: the current axis
 * @returns {Array} a domain in the form of a two element array
 */

function formatDomain(domain, props, axis) {
  return cleanDomain(padDomain(domain, props, axis), props, axis);
}
/**
 * Returns a domain for a given axis based on props, category, or data
 * @param {Object} props: the props object
 * @param {String} axis: the current axis
 * @returns {Array} the domain for the given axis
 */

function getDomain(props, axis) {
  return createDomainFunction()(props, axis);
}
/**
 * Returns a domain based on categories if they exist
 * @param {Object} props: the props object
 * @param {String} axis: the current axis
 * @param {Array} categories: an array of categories corresponding to a given axis
 * @returns {Array|undefined} returns a domain from categories or undefined
 */

function getDomainFromCategories(props, axis, categories) {
  categories = categories || _data__WEBPACK_IMPORTED_MODULE_10__.getCategories(props, axis);
  var polar = props.polar,
      _props$startAngle = props.startAngle,
      startAngle = _props$startAngle === void 0 ? 0 : _props$startAngle,
      _props$endAngle = props.endAngle,
      endAngle = _props$endAngle === void 0 ? 360 : _props$endAngle;

  if (!categories) {
    return undefined;
  }

  var minDomain = getMinFromProps(props, axis);
  var maxDomain = getMaxFromProps(props, axis);
  var stringArray = _collection__WEBPACK_IMPORTED_MODULE_8__.containsStrings(categories) ? _data__WEBPACK_IMPORTED_MODULE_10__.getStringsFromCategories(props, axis) : [];
  var stringMap = stringArray.length === 0 ? null : stringArray.reduce(function (memo, string, index) {
    memo[string] = index + 1;
    return memo;
  }, {});
  var categoryValues = stringMap ? categories.map(function (value) {
    return stringMap[value];
  }) : categories;
  var min = minDomain !== undefined ? minDomain : _collection__WEBPACK_IMPORTED_MODULE_8__.getMinValue(categoryValues);
  var max = maxDomain !== undefined ? maxDomain : _collection__WEBPACK_IMPORTED_MODULE_8__.getMaxValue(categoryValues);
  var categoryDomain = getDomainFromMinMax(min, max);
  return polar && axis === "x" && Math.abs(startAngle - endAngle) === 360 ? getSymmetricDomain(categoryDomain, categoryValues) : categoryDomain;
}
/**
 * Returns a domain from a dataset for a given axis
 * @param {Object} props: the props object
 * @param {String} axis: the current axis
 * @param {Array} dataset: an array of data
 * @returns {Array} the domain based on data
 */

function getDomainFromData(props, axis, dataset) {
  dataset = dataset || _data__WEBPACK_IMPORTED_MODULE_10__.getData(props);
  var polar = props.polar,
      _props$startAngle2 = props.startAngle,
      startAngle = _props$startAngle2 === void 0 ? 0 : _props$startAngle2,
      _props$endAngle2 = props.endAngle,
      endAngle = _props$endAngle2 === void 0 ? 360 : _props$endAngle2;
  var minDomain = getMinFromProps(props, axis);
  var maxDomain = getMaxFromProps(props, axis);

  if (dataset.length < 1) {
    return minDomain !== undefined && maxDomain !== undefined ? getDomainFromMinMax(minDomain, maxDomain) : undefined;
  }

  var min = minDomain !== undefined ? minDomain : getExtremeFromData(dataset, axis, "min");
  var max = maxDomain !== undefined ? maxDomain : getExtremeFromData(dataset, axis, "max");
  var domain = getDomainFromMinMax(min, max);
  return polar && axis === "x" && Math.abs(startAngle - endAngle) === 360 ? getSymmetricDomain(domain, getFlatData(dataset, axis)) : domain;
}
/**
 * Returns a domain in the form of a two element array given a min and max value.
 * @param {Number|Date} min: the props object
 * @param {Number|Date} max: the current axis
 * @returns {Array} the minDomain based on props
 */

function getDomainFromMinMax(min, max) {
  var getSinglePointDomain = function (val) {
    // d3-scale does not properly resolve very small differences.
    var verySmallNumber = // eslint-disable-next-line no-magic-numbers
    val === 0 ? 2 * Math.pow(10, -10) : Math.pow(10, -10);
    var verySmallDate = 1;
    var minVal = val instanceof Date ? new Date(+val - verySmallDate) : +val - verySmallNumber;
    var maxVal = val instanceof Date ? new Date(+val + verySmallDate) : +val + verySmallNumber;
    return val === 0 ? [0, maxVal] : [minVal, maxVal];
  };

  return +min === +max ? getSinglePointDomain(max) : [min, max];
}
/**
 * Returns a the domain for a given axis if domain is given in props
 * @param {Object} props: the props object
 * @param {String} axis: the current axis
 * @returns {Array|undefined} the domain based on props
 */

function getDomainFromProps(props, axis) {
  var minDomain = getMinFromProps(props, axis);
  var maxDomain = getMaxFromProps(props, axis);

  if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_4___default()(props.domain) && props.domain[axis]) {
    return props.domain[axis];
  } else if (Array.isArray(props.domain)) {
    return props.domain;
  } else if (minDomain !== undefined && maxDomain !== undefined) {
    return getDomainFromMinMax(minDomain, maxDomain);
  }

  return undefined;
}
/**
 * Returns a domain for a given axis. This method forces the domain to include
 * zero unless the domain is explicitly specified in props.
 * @param {Object} props: the props object
 * @param {String} axis: the current axis
 * @returns {Array} the domain for the given axis
 */

function getDomainWithZero(props, axis) {
  var propsDomain = getDomainFromProps(props, axis);

  if (propsDomain) {
    return propsDomain;
  }

  var dataset = _data__WEBPACK_IMPORTED_MODULE_10__.getData(props);
  var y0Min = dataset.reduce(function (min, datum) {
    return datum._y0 < min ? datum._y0 : min;
  }, Infinity);

  var ensureZero = function (domain) {
    if (axis === "x") {
      return domain;
    }

    var defaultMin = y0Min !== Infinity ? y0Min : 0;
    var maxDomainProp = getMaxFromProps(props, axis);
    var minDomainProp = getMinFromProps(props, axis);
    var max = maxDomainProp !== undefined ? maxDomainProp : _collection__WEBPACK_IMPORTED_MODULE_8__.getMaxValue(domain, defaultMin);
    var min = minDomainProp !== undefined ? minDomainProp : _collection__WEBPACK_IMPORTED_MODULE_8__.getMinValue(domain, defaultMin);
    return getDomainFromMinMax(min, max);
  };

  var getDomainFunction = function () {
    return getDomainFromData(props, axis, dataset);
  };

  var formatDomainFunction = function (domain) {
    return formatDomain(ensureZero(domain), props, axis);
  };

  return createDomainFunction(getDomainFunction, formatDomainFunction)(props, axis);
}
/**
 * Returns the maxDomain from props if it exists
 * @param {Object} props: the props object
 * @param {String} axis: the current axis
 * @returns {Number|Date|undefined} the maxDomain based on props
 */

function getMaxFromProps(props, axis) {
  if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_4___default()(props.maxDomain) && props.maxDomain[axis] !== undefined) {
    return props.maxDomain[axis];
  }

  return typeof props.maxDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_0___default()(props.maxDomain) ? props.maxDomain : undefined;
}
/**
 * Returns the minDomain from props if it exists
 * @param {Object} props: the props object
 * @param {String} axis: the current axis
 * @returns {Number|Date|undefined} the minDomain based on props
 */

function getMinFromProps(props, axis) {
  if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_4___default()(props.minDomain) && props.minDomain[axis] !== undefined) {
    return props.minDomain[axis];
  }

  return typeof props.minDomain === "number" || lodash_isDate__WEBPACK_IMPORTED_MODULE_0___default()(props.minDomain) ? props.minDomain : undefined;
}
/**
 * Returns a symmetrically padded domain for polar charts
 * @param {Array} domain: the original domain
 * @param {Array} values: a flat array of values corresponding to either tickValues, or data values
 * for a given dimension i.e. only x values.
 * @returns {Array} the symmetric domain
 */

function getSymmetricDomain(domain, values) {
  var processedData = lodash_sortedUniq__WEBPACK_IMPORTED_MODULE_3___default()(values.sort(function (a, b) {
    return a - b;
  }));

  var step = processedData[1] - processedData[0];
  return [domain[0], domain[1] + step];
}
/**
 * Checks whether a given component can be used to calculate domain
 * @param {Component} component: a React component instance
 * @returns {Boolean} Returns true if the given component has a role included in the whitelist
 */

function isDomainComponent(component) {
  var getRole = function (child) {
    return child && child.type ? child.type.role : "";
  };

  var role = getRole(component);

  if (role === "portal") {
    var children = react__WEBPACK_IMPORTED_MODULE_6__.Children.toArray(component.props.children);
    role = children.length ? getRole(children[0]) : "";
  }

  var whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
  return lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(whitelist, role);
}

/***/ }),

/***/ "./node_modules/victory-core/es/victory-util/events.js":
/*!*************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-util/events.js ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getEvents": () => (/* binding */ getEvents),
/* harmony export */   "getScopedEvents": () => (/* binding */ getScopedEvents),
/* harmony export */   "getPartialEvents": () => (/* binding */ getPartialEvents),
/* harmony export */   "getEventState": () => (/* binding */ getEventState),
/* harmony export */   "getExternalMutationsWithChildren": () => (/* binding */ getExternalMutationsWithChildren),
/* harmony export */   "getExternalMutations": () => (/* binding */ getExternalMutations),
/* harmony export */   "getExternalMutation": () => (/* binding */ getExternalMutation),
/* harmony export */   "getComponentEvents": () => (/* binding */ getComponentEvents),
/* harmony export */   "getGlobalEventNameFromKey": () => (/* binding */ getGlobalEventNameFromKey),
/* harmony export */   "getGlobalEvents": () => (/* binding */ getGlobalEvents),
/* harmony export */   "omitGlobalEvents": () => (/* binding */ omitGlobalEvents),
/* harmony export */   "emulateReactEvent": () => (/* binding */ emulateReactEvent)
/* harmony export */ });
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "./node_modules/lodash/keys.js");
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/includes */ "./node_modules/lodash/includes.js");
/* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_includes__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/uniq */ "./node_modules/lodash/uniq.js");
/* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/omitBy */ "./node_modules/lodash/omitBy.js");
/* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/pickBy */ "./node_modules/lodash/pickBy.js");
/* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_pickBy__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/without */ "./node_modules/lodash/without.js");
/* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/isEmpty */ "./node_modules/lodash/isEmpty.js");
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_8__);










function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
/* Returns all own and shared events that should be attached to a single target element,
 * i.e. an individual bar specified by target: "data", eventKey: [index].
 * Returned events are scoped to the appropriate state. Either that of the component itself
 * (i.e. VictoryBar) in the case of own events, or that of the parent component
 * (i.e. VictoryChart) in the case of shared events
 */
// eslint-disable-next-line max-params,no-shadow

function getEvents(props, target, eventKey, getScopedEvents) {
  var _this = this;

  // Returns all events that apply to a particular target element
  var getEventsByTarget = function (events) {
    var getSelectedEvents = function () {
      var targetEvents = events.reduce(function (memo, event) {
        if (event.target !== undefined) {
          var matchesTarget = Array.isArray(event.target) ? lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(event.target, target) : "".concat(event.target) === "".concat(target);
          return matchesTarget ? memo.concat(event) : memo;
        }

        return memo.concat(event);
      }, []);

      if (eventKey !== undefined && target !== "parent") {
        return targetEvents.filter(function (obj) {
          var targetKeys = obj.eventKey;

          var useKey = function (key) {
            return key ? "".concat(key) === "".concat(eventKey) : true;
          };

          return Array.isArray(targetKeys) ? targetKeys.some(function (k) {
            return useKey(k);
          }) : useKey(targetKeys);
        });
      }

      return targetEvents;
    };

    var selectedEvents = getSelectedEvents();
    return Array.isArray(selectedEvents) && selectedEvents.reduce(function (memo, event) {
      return event ? lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(memo, event.eventHandlers) : memo;
    }, {});
  };
  /* Returns all events from props and defaultEvents from components. Events handlers
   * specified in props will override handlers for the same event if they are also
   * specified in defaultEvents of a sub-component
   */


  var getAllEvents = function () {
    // Mandatory usage: `getEvents.bind(this)`

    /* eslint-disable no-invalid-this */
    if (Array.isArray(_this.componentEvents)) {
      var _this$componentEvents;

      return Array.isArray(props.events) ? (_this$componentEvents = _this.componentEvents).concat.apply(_this$componentEvents, _toConsumableArray(props.events)) : _this.componentEvents;
    }
    /* eslint-enable no-invalid-this */


    return props.events;
  };

  var allEvents = getAllEvents();
  var ownEvents = allEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default()(getScopedEvents) ? getScopedEvents(getEventsByTarget(allEvents), target) : undefined;

  if (!props.sharedEvents) {
    return ownEvents;
  }

  var getSharedEvents = props.sharedEvents.getEvents;
  var sharedEvents = props.sharedEvents.events && getSharedEvents(getEventsByTarget(props.sharedEvents.events), target);
  return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, sharedEvents, ownEvents);
}
/* Returns a modified events object where each event handler is replaced by a new
 * function that calls the original handler and then calls setState with the return
 * of the original event handler assigned to state property that maps to the target
 * element.
 */
// eslint-disable-next-line max-params

function getScopedEvents(events, namespace, childType, baseProps) {
  var _this2 = this;

  if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_7___default()(events)) {
    return {};
  } // Mandatory usage: `getScopedEvents.bind(this)`
  // eslint-disable-next-line no-invalid-this


  baseProps = baseProps || this.baseProps; // returns the original base props or base state of a given target element

  var getTargetProps = function (identifier, type) {
    var childName = identifier.childName,
        target = identifier.target,
        key = identifier.key; // eslint-disable-next-line no-invalid-this

    var baseType = type === "props" ? baseProps : _this2.state || {};
    var base = childName === undefined || childName === null || !baseType[childName] ? baseType : baseType[childName];
    return key === "parent" ? base.parent : base[key] && base[key][target];
  }; // Returns the state object with the mutation caused by a given eventReturn
  // applied to the appropriate property on the state object


  var parseEvent = function (eventReturn, eventKey) {
    var childNames = namespace === "parent" ? eventReturn.childName : eventReturn.childName || childType;
    var target = eventReturn.target || namespace; // returns all eventKeys to modify for a targeted childName

    var getKeys = function (childName) {
      if (target === "parent") {
        return "parent";
      }

      if (eventReturn.eventKey === "all") {
        return baseProps[childName] ? lodash_without__WEBPACK_IMPORTED_MODULE_5___default()(lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(baseProps[childName]), "parent") : lodash_without__WEBPACK_IMPORTED_MODULE_5___default()(lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(baseProps), "parent");
      } else if (eventReturn.eventKey === undefined && eventKey === "parent") {
        return baseProps[childName] ? lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(baseProps[childName]) : lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(baseProps);
      }

      return eventReturn.eventKey !== undefined ? eventReturn.eventKey : eventKey;
    }; // returns the state object with mutated props applied for a single key


    var getMutationObject = function (key, childName) {
      // eslint-disable-next-line no-invalid-this
      var baseState = _this2.state || {};

      if (!lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default()(eventReturn.mutation)) {
        return baseState;
      }

      var mutationTargetProps = getTargetProps({
        childName: childName,
        key: key,
        target: target
      }, "props");
      var mutationTargetState = getTargetProps({
        childName: childName,
        key: key,
        target: target
      }, "state");
      var mutatedProps = eventReturn.mutation(lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, mutationTargetProps, mutationTargetState), baseProps);
      var childState = baseState[childName] || {};

      var filterState = function (state) {
        if (state[key] && state[key][target]) {
          delete state[key][target];
        }

        if (state[key] && !lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(state[key]).length) {
          delete state[key];
        }

        return state;
      };

      var extendState = function (state) {
        return target === "parent" ? lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(state, _defineProperty({}, key, lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(state[key], mutatedProps))) : lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(state, _defineProperty({}, key, lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(state[key], _defineProperty({}, target, mutatedProps))));
      };

      var updateState = function (state) {
        return mutatedProps ? extendState(state) : filterState(state);
      };

      return childName !== undefined && childName !== null ? lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(baseState, _defineProperty({}, childName, updateState(childState))) : updateState(baseState);
    }; // returns entire mutated state for a given childName


    var getReturnByChild = function (childName) {
      var mutationKeys = getKeys(childName);
      return Array.isArray(mutationKeys) ? mutationKeys.reduce(function (memo, key) {
        return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(memo, getMutationObject(key, childName));
      }, {}) : getMutationObject(mutationKeys, childName);
    }; // returns an entire mutated state for all children


    var allChildNames = childNames === "all" ? lodash_without__WEBPACK_IMPORTED_MODULE_5___default()(lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(baseProps), "parent") : childNames;
    return Array.isArray(allChildNames) ? allChildNames.reduce(function (memo, childName) {
      return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(memo, getReturnByChild(childName));
    }, {}) : getReturnByChild(allChildNames);
  }; // Parses an array of event returns into a single state mutation


  var parseEventReturn = function (eventReturn, eventKey) {
    return Array.isArray(eventReturn) ? eventReturn.reduce(function (memo, props) {
      memo = lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, memo, parseEvent(props, eventKey));
      return memo;
    }, {}) : parseEvent(eventReturn, eventKey);
  };

  var compileCallbacks = function (eventReturn) {
    var getCallback = function (obj) {
      return lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default()(obj.callback) && obj.callback;
    };

    var callbacks = Array.isArray(eventReturn) ? eventReturn.map(function (evtObj) {
      return getCallback(evtObj);
    }) : [getCallback(eventReturn)];
    var callbackArray = callbacks.filter(function (callback) {
      return callback !== false;
    });
    return callbackArray.length ? function () {
      return callbackArray.forEach(function (callback) {
        return callback();
      });
    } : undefined;
  }; // A function that calls a particular event handler, parses its return
  // into a state mutation, and calls setState
  // eslint-disable-next-line max-params


  var onEvent = function (evt, childProps, eventKey, eventName) {
    // eslint-disable-next-line no-invalid-this
    var eventReturn = events[eventName](evt, childProps, eventKey, _this2);

    if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_7___default()(eventReturn)) {
      var callbacks = compileCallbacks(eventReturn); // eslint-disable-next-line no-invalid-this

      _this2.setState(parseEventReturn(eventReturn, eventKey), callbacks);
    }
  }; // returns a new events object with enhanced event handlers


  return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, event) {
    memo[event] = onEvent;
    return memo;
  }, {});
}
/* Returns a partially applied event handler for a specific target element
 * This allows event handlers to have access to props controlling each element
 */

function getPartialEvents(events, eventKey, childProps) {
  return events ? lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
    var appliedEvent = function (evt) {
      return events[eventName](evt, childProps, eventKey, eventName);
    };

    memo[eventName] = appliedEvent;
    return memo;
  }, {}) : {};
}
/* Returns the property of the state object corresponding to event changes for
 * a particular element
 */

function getEventState(eventKey, namespace, childType) {
  // Mandatory usage: `getEventState.bind(this)`
  // eslint-disable-next-line no-invalid-this
  var state = this.state || {};

  if (!childType) {
    return eventKey === "parent" ? state[eventKey] && state[eventKey][namespace] || state[eventKey] : state[eventKey] && state[eventKey][namespace];
  }

  return state[childType] && state[childType][eventKey] && state[childType][eventKey][namespace];
}
/**
 * Returns a set of all mutations for shared events
 *
 * @param  {Array} mutations an array of mutations objects
 * @param  {Object} baseProps an object that describes all props for children of VictorySharedEvents
 * @param  {Object} baseState an object that describes state for children of VictorySharedEvents
 * @param  {Array} childNames an array of childNames
 *
 * @return {Object} a object describing all mutations for VictorySharedEvents
 */
// eslint-disable-next-line max-params

function getExternalMutationsWithChildren(mutations, baseProps, baseState, childNames) {
  baseProps = baseProps || {};
  baseState = baseState || {};
  return childNames.reduce(function (memo, childName) {
    var childState = baseState[childName];
    var mutation = getExternalMutations(mutations, baseProps[childName], baseState[childName], childName);
    memo[childName] = mutation ? mutation : childState;
    return lodash_pickBy__WEBPACK_IMPORTED_MODULE_4___default()(memo, function (v) {
      return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_7___default()(v);
    });
  }, {});
}
/**
 * Returns a set of all mutations for a component
 *
 * @param  {Array} mutations an array of mutations objects
 * @param  {Object} baseProps a props object (scoped to a childName when used by shared events)
 * @param  {Object} baseState a state object (scoped to a childName when used by shared events)
 * @param  {String} childName an optional childName
 *
 * @return {Object} a object describing mutations for a given component
 */
// eslint-disable-next-line max-params

function getExternalMutations(mutations, baseProps, baseState, childName) {
  baseProps = baseProps || {};
  baseState = baseState || {};

  var eventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(baseProps);

  return eventKeys.reduce(function (memo, eventKey) {
    var keyState = baseState[eventKey] || {};
    var keyProps = baseProps[eventKey] || {};

    if (eventKey === "parent") {
      var identifier = {
        eventKey: eventKey,
        target: "parent"
      };
      var mutation = getExternalMutation(mutations, keyProps, keyState, identifier);
      memo[eventKey] = mutation !== undefined ? lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, keyState, mutation) : keyState;
    } else {
      // use keys from both state and props so that elements not intially included in baseProps
      // will be used. (i.e. labels)
      var targets = lodash_uniq__WEBPACK_IMPORTED_MODULE_2___default()(lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(keyProps).concat(lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(keyState)));

      memo[eventKey] = targets.reduce(function (m, target) {
        var identifier = {
          eventKey: eventKey,
          target: target,
          childName: childName
        };
        var mutation = getExternalMutation(mutations, keyProps[target], keyState[target], identifier);
        m[target] = mutation !== undefined ? lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, keyState[target], mutation) : keyState[target];
        return lodash_pickBy__WEBPACK_IMPORTED_MODULE_4___default()(m, function (v) {
          return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_7___default()(v);
        });
      }, {});
    }

    return lodash_pickBy__WEBPACK_IMPORTED_MODULE_4___default()(memo, function (v) {
      return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_7___default()(v);
    });
  }, {});
}
/**
 * Returns a set of mutations for a particular element given scoped baseProps and baseState
 *
 * @param  {Array} mutations an array of mutations objects
 * @param  {Object} baseProps a props object (scoped the element specified by the identifier)
 * @param  {Object} baseState a state object (scoped the element specified by the identifier)
 * @param  {Object} identifier { eventKey, target, childName }
 *
 * @return {Object | undefined} a object describing mutations for a given element, or undefined
 */
// eslint-disable-next-line max-params

function getExternalMutation(mutations, baseProps, baseState, identifier) {
  var filterMutations = function (mutation, type) {
    if (typeof mutation[type] === "string") {
      return mutation[type] === "all" || mutation[type] === identifier[type];
    } else if (Array.isArray(mutation[type])) {
      // coerce arrays to strings before matching
      var stringArray = mutation[type].map(function (m) {
        return "".concat(m);
      });
      return lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(stringArray, identifier[type]);
    } else {
      return false;
    }
  };

  mutations = Array.isArray(mutations) ? mutations : [mutations];
  var scopedMutations = mutations;

  if (identifier.childName) {
    scopedMutations = mutations.filter(function (m) {
      return filterMutations(m, "childName");
    });
  } // find any mutation objects that match the target


  var targetMutations = scopedMutations.filter(function (m) {
    return filterMutations(m, "target");
  });

  if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_7___default()(targetMutations)) {
    return undefined;
  }

  var keyMutations = targetMutations.filter(function (m) {
    return filterMutations(m, "eventKey");
  });

  if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_7___default()(keyMutations)) {
    return undefined;
  }

  return keyMutations.reduce(function (memo, curr) {
    var mutationFunction = curr && lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default()(curr.mutation) ? curr.mutation : function () {
      return undefined;
    };
    var currentMutation = mutationFunction(lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, baseProps, baseState));
    return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, memo, currentMutation);
  }, {});
}
/* Returns an array of defaultEvents from sub-components of a given component.
 * i.e. any static `defaultEvents` on `labelComponent` will be returned
 */

function getComponentEvents(props, components) {
  var events = Array.isArray(components) && components.reduce(function (memo, componentName) {
    var _memo;

    var component = props[componentName];
    var defaultEvents = component && component.type && component.type.defaultEvents;
    var componentEvents = lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default()(defaultEvents) ? defaultEvents(component.props) : defaultEvents;
    memo = Array.isArray(componentEvents) ? (_memo = memo).concat.apply(_memo, _toConsumableArray(componentEvents)) : memo;
    return memo;
  }, []);
  return events && events.length ? events : undefined;
}
function getGlobalEventNameFromKey(key) {
  var match = key.match(GLOBAL_EVENT_REGEX);
  return match && match[1] && match[1].toLowerCase();
}
var getGlobalEvents = function (events) {
  return lodash_pickBy__WEBPACK_IMPORTED_MODULE_4___default()(events, function (_, key) {
    return GLOBAL_EVENT_REGEX.test(key);
  });
};
var omitGlobalEvents = function (events) {
  return lodash_omitBy__WEBPACK_IMPORTED_MODULE_3___default()(events, function (_, key) {
    return GLOBAL_EVENT_REGEX.test(key);
  });
};
var emulateReactEvent = function (event) {
  return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()(event, {
    nativeEvent: event
  });
};

/***/ }),

/***/ "./node_modules/victory-core/es/victory-util/helpers.js":
/*!**************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-util/helpers.js ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "omit": () => (/* binding */ omit),
/* harmony export */   "getPoint": () => (/* binding */ getPoint),
/* harmony export */   "scalePoint": () => (/* binding */ scalePoint),
/* harmony export */   "getPadding": () => (/* binding */ getPadding),
/* harmony export */   "isTooltip": () => (/* binding */ isTooltip),
/* harmony export */   "getDefaultStyles": () => (/* binding */ getDefaultStyles),
/* harmony export */   "getStyles": () => (/* binding */ getStyles),
/* harmony export */   "evaluateProp": () => (/* binding */ evaluateProp),
/* harmony export */   "evaluateStyle": () => (/* binding */ evaluateStyle),
/* harmony export */   "degreesToRadians": () => (/* binding */ degreesToRadians),
/* harmony export */   "radiansToDegrees": () => (/* binding */ radiansToDegrees),
/* harmony export */   "getRadius": () => (/* binding */ getRadius),
/* harmony export */   "getPolarOrigin": () => (/* binding */ getPolarOrigin),
/* harmony export */   "getRange": () => (/* binding */ getRange),
/* harmony export */   "createAccessor": () => (/* binding */ createAccessor),
/* harmony export */   "modifyProps": () => (/* binding */ modifyProps),
/* harmony export */   "getCurrentAxis": () => (/* binding */ getCurrentAxis),
/* harmony export */   "reduceChildren": () => (/* binding */ reduceChildren),
/* harmony export */   "isHorizontal": () => (/* binding */ isHorizontal)
/* harmony export */ });
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "./node_modules/lodash/keys.js");
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/pick */ "./node_modules/lodash/pick.js");
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/property */ "./node_modules/lodash/property.js");
/* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js");
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");







/* eslint-disable func-style */

/* eslint-disable no-use-before-define */


// Private Functions
function getCartesianRange(props, axis) {
  // determine how to lay the axis and what direction positive and negative are
  var vertical = axis !== "x";
  var padding = getPadding(props);

  if (vertical) {
    return [props.height - padding.bottom, padding.top];
  }

  return [padding.left, props.width - padding.right];
}

function getPolarRange(props, axis) {
  if (axis === "x") {
    var startAngle = degreesToRadians(props.startAngle || 0);
    var endAngle = degreesToRadians(props.endAngle || 360);
    return [startAngle, endAngle];
  }

  return [props.innerRadius || 0, getRadius(props)];
} // Exported Functions

/**
 * creates an object with some keys excluded
 * replacement for lodash.omit for performance. does not mimick the entire lodash.omit api
 * @param {Object} originalObject: created object will be based on this object
 * @param {Array<String>} ks: an array of keys to omit from the new object
 * @returns {Object} new object with same properties as originalObject
 */


function omit(originalObject) {
  var ks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  // code based on babel's _objectWithoutProperties
  var newObject = {};

  for (var key in originalObject) {
    if (ks.indexOf(key) >= 0) {
      continue;
    }

    if (!Object.prototype.hasOwnProperty.call(originalObject, key)) {
      continue;
    }

    newObject[key] = originalObject[key];
  }

  return newObject;
}
function getPoint(datum) {
  var exists = function (val) {
    return val !== undefined;
  };

  var _x = datum._x,
      _x1 = datum._x1,
      _x0 = datum._x0,
      _voronoiX = datum._voronoiX,
      _y = datum._y,
      _y1 = datum._y1,
      _y0 = datum._y0,
      _voronoiY = datum._voronoiY;
  var defaultX = exists(_x1) ? _x1 : _x;
  var defaultY = exists(_y1) ? _y1 : _y;
  var point = {
    x: exists(_voronoiX) ? _voronoiX : defaultX,
    x0: exists(_x0) ? _x0 : _x,
    y: exists(_voronoiY) ? _voronoiY : defaultY,
    y0: exists(_y0) ? _y0 : _y
  };
  return lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default()({}, point, datum);
}
function scalePoint(props, datum) {
  var scale = props.scale,
      polar = props.polar,
      horizontal = props.horizontal;
  var d = getPoint(datum);
  var origin = props.origin || {
    x: 0,
    y: 0
  };
  var x = horizontal ? scale.y(d.y) : scale.x(d.x);
  var x0 = horizontal ? scale.y(d.y0) : scale.x(d.x0);
  var y = horizontal ? scale.x(d.x) : scale.y(d.y);
  var y0 = horizontal ? scale.x(d.x0) : scale.y(d.y0);
  return {
    x: polar ? y * Math.cos(x) + origin.x : x,
    x0: polar ? y0 * Math.cos(x0) + origin.x : x0,
    y: polar ? -y * Math.sin(x) + origin.y : y,
    y0: polar ? -y0 * Math.sin(x0) + origin.x : y0
  };
}
function getPadding(props) {
  var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "padding";
  var padding = props[name];
  var paddingVal = typeof padding === "number" ? padding : 0;
  var paddingObj = typeof padding === "object" ? padding : {};
  return {
    top: paddingObj.top || paddingVal,
    bottom: paddingObj.bottom || paddingVal,
    left: paddingObj.left || paddingVal,
    right: paddingObj.right || paddingVal
  };
}
function isTooltip(component) {
  var labelRole = component && component.type && component.type.role;
  return labelRole === "tooltip";
}
function getDefaultStyles(props, role) {
  var _props$theme = props.theme,
      theme = _props$theme === void 0 ? {} : _props$theme,
      labelComponent = props.labelComponent;
  var defaultStyles = theme[role] && theme[role].style || {};

  if (!isTooltip(labelComponent)) {
    return defaultStyles;
  }

  var tooltipStyle = theme.tooltip && theme.tooltip.style || {};

  var labelStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default()({}, tooltipStyle, defaultStyles.labels);

  return lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default()({}, {
    labels: labelStyle
  }, defaultStyles);
}
function getStyles(style, defaultStyles) {
  var width = "100%";
  var height = "100%";

  if (!style) {
    return lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default()({
      parent: {
        height: height,
        width: width
      }
    }, defaultStyles);
  }

  var data = style.data,
      labels = style.labels,
      parent = style.parent;
  var defaultParent = defaultStyles && defaultStyles.parent || {};
  var defaultLabels = defaultStyles && defaultStyles.labels || {};
  var defaultData = defaultStyles && defaultStyles.data || {};
  return {
    parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default()({}, parent, defaultParent, {
      width: width,
      height: height
    }),
    labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default()({}, labels, defaultLabels),
    data: lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default()({}, data, defaultData)
  };
}
function evaluateProp(prop, props) {
  return lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(prop) ? prop(props) : prop;
}
function evaluateStyle(style, props) {
  if (props.disableInlineStyles) {
    return {};
  }

  if (!style || !lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(style).some(function (value) {
    return lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(style[value]);
  })) {
    return style;
  }

  return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(style).reduce(function (prev, curr) {
    prev[curr] = evaluateProp(style[curr], props);
    return prev;
  }, {});
}
function degreesToRadians(degrees) {
  return typeof degrees === "number" ? degrees * (Math.PI / 180) : degrees;
}
function radiansToDegrees(radians) {
  return typeof radians === "number" ? radians / (Math.PI / 180) : radians;
}
function getRadius(props) {
  var _getPadding = getPadding(props),
      left = _getPadding.left,
      right = _getPadding.right,
      top = _getPadding.top,
      bottom = _getPadding.bottom;

  var width = props.width,
      height = props.height;
  return Math.min(width - left - right, height - top - bottom) / 2;
}
function getPolarOrigin(props) {
  var width = props.width,
      height = props.height;

  var _getPadding2 = getPadding(props),
      top = _getPadding2.top,
      bottom = _getPadding2.bottom,
      left = _getPadding2.left,
      right = _getPadding2.right;

  var radius = Math.min(width - left - right, height - top - bottom) / 2;
  var offsetWidth = width / 2 + left - right;
  var offsetHeight = height / 2 + top - bottom;
  return {
    x: offsetWidth + radius > width ? radius + left - right : offsetWidth,
    y: offsetHeight + radius > height ? radius + top - bottom : offsetHeight
  };
}
function getRange(props, axis) {
  if (props.range && props.range[axis]) {
    return props.range[axis];
  } else if (props.range && Array.isArray(props.range)) {
    return props.range;
  }

  return props.polar ? getPolarRange(props, axis) : getCartesianRange(props, axis);
}
function createAccessor(key) {
  // creates a data accessor function
  // given a property key, path, array index, or null for identity.
  if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(key)) {
    return key;
  } else if (key === null || key === undefined) {
    // null/undefined means "return the data item itself"
    return function (x) {
      return x;
    };
  } // otherwise, assume it is an array index, property key or path (_.property handles all three)


  return lodash_property__WEBPACK_IMPORTED_MODULE_3___default()(key);
}
function modifyProps(props, fallbackProps, role) {
  var theme = props.theme && props.theme[role] ? props.theme[role] : {};
  var themeProps = omit(theme, ["style"]);
  var horizontal = isHorizontal(props);
  var defaultObject = horizontal === undefined ? {} : {
    horizontal: horizontal
  };
  return lodash_defaults__WEBPACK_IMPORTED_MODULE_5___default()(defaultObject, props, themeProps, fallbackProps);
}
/**
 * Returns the given axis or the opposite axis when horizontal
 * @param {string} axis: the given axis, either "x" pr "y"
 * @param {Boolean} horizontal: true when the chart is flipped to the horizontal orientation
 * @returns {String} the dimension appropriate for the axis given its props "x" or "y"
 */

function getCurrentAxis(axis, horizontal) {
  var otherAxis = axis === "x" ? "y" : "x";
  return horizontal ? otherAxis : axis;
}
/**
 * @param {Array} children: an array of child components
 * @param {Function} iteratee: a function with arguments "child", "childName", and "parent"
 * @param {Object} parentProps: props from the parent that are applied to children
 * @param {any}  initialMemo: The object in which the iteration results are combined.
 * @param {Function} combine: Combines the result of the iteratee with the current memo
 *   to the memo for the next iteration step
 * @returns {Array} returns an array of results from calling the iteratee on all nested children
 */

/* eslint-disable max-params */

function reduceChildren(children, iteratee) {
  var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
    return memo.concat(item);
  };
  var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];

  var traverseChildren = function (childArray, names, parent) {
    return childArray.reduce(function (memo, child, index) {
      var childRole = child.type && child.type.role;
      var childName = child.props.name || "".concat(childRole, "-").concat(names[index]);

      if (child.props && child.props.children) {
        var childProps = lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, child.props, lodash_pick__WEBPACK_IMPORTED_MODULE_2___default()(parentProps, sharedProps));

        var nestedChildren = child.type && child.type.role === "stack" && lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(child.type.getChildren) ? child.type.getChildren(childProps) : react__WEBPACK_IMPORTED_MODULE_6__.Children.toArray(child.props.children).map(function (c) {
          var nestedChildProps = lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, c.props, lodash_pick__WEBPACK_IMPORTED_MODULE_2___default()(childProps, sharedProps));

          return react__WEBPACK_IMPORTED_MODULE_6__.cloneElement(c, nestedChildProps);
        });

        var _childNames = nestedChildren.map(function (c, i) {
          return "".concat(childName, "-").concat(i);
        });

        var nestedResults = traverseChildren(nestedChildren, _childNames, child);
        memo = combine(memo, nestedResults);
      } else {
        var result = iteratee(child, childName, parent);

        if (result) {
          memo = combine(memo, result);
        }
      }

      return memo;
    }, initialMemo);
  };

  var childNames = children.map(function (c, i) {
    return i;
  });
  return traverseChildren(children, childNames);
}
/**
 * @param {Object} props: the props object
 * @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
 * children or nested children are hoizontal
 */

function isHorizontal(props) {
  if (props.horizontal !== undefined || !props.children) {
    return props.horizontal;
  }

  var traverseChildren = function (childArray) {
    return childArray.reduce(function (memo, child) {
      var childProps = child.props || {};

      if (memo || childProps.horizontal || !childProps.children) {
        memo = memo || childProps.horizontal;
        return memo;
      }

      return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6__.Children.toArray(childProps.children));
    }, false);
  };

  return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6__.Children.toArray(props.children));
}

/***/ }),

/***/ "./node_modules/victory-core/es/victory-util/immutable.js":
/*!****************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-util/immutable.js ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "IMMUTABLE_ITERABLE": () => (/* binding */ IMMUTABLE_ITERABLE),
/* harmony export */   "IMMUTABLE_RECORD": () => (/* binding */ IMMUTABLE_RECORD),
/* harmony export */   "IMMUTABLE_LIST": () => (/* binding */ IMMUTABLE_LIST),
/* harmony export */   "IMMUTABLE_MAP": () => (/* binding */ IMMUTABLE_MAP),
/* harmony export */   "isIterable": () => (/* binding */ isIterable),
/* harmony export */   "isRecord": () => (/* binding */ isRecord),
/* harmony export */   "isImmutable": () => (/* binding */ isImmutable),
/* harmony export */   "isList": () => (/* binding */ isList),
/* harmony export */   "isMap": () => (/* binding */ isMap),
/* harmony export */   "shallowToJS": () => (/* binding */ shallowToJS)
/* harmony export */ });
/* eslint-disable func-style */
var IMMUTABLE_ITERABLE = "@@__IMMUTABLE_ITERABLE__@@";
var IMMUTABLE_RECORD = "@@__IMMUTABLE_RECORD__@@";
var IMMUTABLE_LIST = "@@__IMMUTABLE_LIST__@@";
var IMMUTABLE_MAP = "@@__IMMUTABLE_MAP__@@";
function isIterable(x) {
  return !!(x && x[IMMUTABLE_ITERABLE]);
}
function isRecord(x) {
  return !!(x && x[IMMUTABLE_RECORD]);
}
function isImmutable(x) {
  return isIterable(x) || isRecord(x);
}
function isList(x) {
  return !!(x && x[IMMUTABLE_LIST]);
}
function isMap(x) {
  return !!(x && x[IMMUTABLE_MAP]);
}
function shallowToJS(x, whitelist) {
  return isIterable(x) ? x.reduce(function (prev, curr, key) {
    if (whitelist && whitelist[key]) {
      curr = shallowToJS(curr);
    }

    prev[key] = curr;
    return prev;
  }, isList(x) ? [] : {}) : x;
}

/***/ }),

/***/ "./node_modules/victory-core/es/victory-util/label-helpers.js":
/*!********************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-util/label-helpers.js ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getText": () => (/* binding */ getText),
/* harmony export */   "getPolarTextAnchor": () => (/* binding */ getPolarTextAnchor),
/* harmony export */   "getPolarVerticalAnchor": () => (/* binding */ getPolarVerticalAnchor),
/* harmony export */   "getPolarAngle": () => (/* binding */ getPolarAngle),
/* harmony export */   "getDegrees": () => (/* binding */ getDegrees),
/* harmony export */   "getProps": () => (/* binding */ getProps)
/* harmony export */ });
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js");
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "./node_modules/victory-core/es/victory-util/helpers.js");


/* eslint-disable func-style */

/* eslint-disable no-use-before-define */


// Private Functions
function getVerticalAnchor(props, datum) {
  datum = datum || {};
  var sign = datum._y >= 0 ? 1 : -1;
  var labelStyle = props.style && props.style.labels || {};

  if (datum.verticalAnchor || labelStyle.verticalAnchor) {
    return datum.verticalAnchor || labelStyle.verticalAnchor;
  } else if (!props.horizontal) {
    return sign >= 0 ? "end" : "start";
  } else {
    return "middle";
  }
}

function getTextAnchor(props, datum) {
  datum = datum || {};
  var style = props.style,
      horizontal = props.horizontal;
  var sign = datum._y >= 0 ? 1 : -1;
  var labelStyle = style && style.labels || {};

  if (datum.verticalAnchor || labelStyle.verticalAnchor) {
    return datum.verticalAnchor || labelStyle.verticalAnchor;
  } else if (!horizontal) {
    return "middle";
  } else {
    return sign >= 0 ? "start" : "end";
  }
}

function getAngle(props, datum) {
  datum = datum || {};
  var labelStyle = props.style && props.style.labels || {};
  return datum.angle === undefined ? labelStyle.angle : datum.angle;
}

function getPadding(props, datum) {
  datum = datum || {};
  var horizontal = props.horizontal,
      style = props.style;
  var labelStyle = style.labels || {};
  var defaultPadding = _helpers__WEBPACK_IMPORTED_MODULE_1__.evaluateProp(labelStyle.padding, props) || 0;
  var sign = datum._y < 0 ? -1 : 1;
  return {
    x: horizontal ? sign * defaultPadding : 0,
    y: horizontal ? 0 : -1 * sign * defaultPadding
  };
}

function getOffset(props, datum) {
  if (props.polar) {
    return {};
  }

  var padding = getPadding(props, datum);
  return {
    dx: padding.x,
    dy: padding.y
  };
}

function getPosition(props, datum) {
  var polar = props.polar;

  var _Helpers$scalePoint = _helpers__WEBPACK_IMPORTED_MODULE_1__.scalePoint(props, datum),
      x = _Helpers$scalePoint.x,
      y = _Helpers$scalePoint.y;

  if (!polar) {
    return {
      x: x,
      y: y
    };
  } else {
    var polarPadding = getPolarPadding(props, datum);
    return {
      x: x + polarPadding.x,
      y: y + polarPadding.y
    };
  }
}

function getPolarPadding(props, datum) {
  var style = props.style;
  var degrees = getDegrees(props, datum);
  var labelStyle = style.labels || {};
  var padding = _helpers__WEBPACK_IMPORTED_MODULE_1__.evaluateProp(labelStyle.padding, props) || 0;
  var angle = _helpers__WEBPACK_IMPORTED_MODULE_1__.degreesToRadians(degrees);
  return {
    x: padding * Math.cos(angle),
    y: -padding * Math.sin(angle)
  };
}

function getLabelPlacement(props) {
  var labelComponent = props.labelComponent,
      labelPlacement = props.labelPlacement,
      polar = props.polar;
  var defaultLabelPlacement = polar ? "perpendicular" : "vertical";
  return labelPlacement ? labelPlacement : labelComponent.props && labelComponent.props.labelPlacement || defaultLabelPlacement;
}

function getPolarOrientation(degrees) {
  // eslint-disable-next-line no-magic-numbers
  if (degrees < 45 || degrees > 315) {
    return "right"; // eslint-disable-next-line no-magic-numbers
  } else if (degrees >= 45 && degrees <= 135) {
    return "top"; // eslint-disable-next-line no-magic-numbers
  } else if (degrees > 135 && degrees < 225) {
    return "left";
  } else {
    return "bottom";
  }
} // Exported Functions


function getText(props, datum, index) {
  datum = datum || {};

  if (datum.label !== undefined) {
    return datum.label;
  }

  return Array.isArray(props.labels) ? props.labels[index] : props.labels;
}
function getPolarTextAnchor(props, degrees) {
  var labelPlacement = getLabelPlacement(props);

  if (labelPlacement === "perpendicular" || labelPlacement === "vertical" && (degrees === 90 || degrees === 270)) {
    return "middle";
  }

  return degrees <= 90 || degrees > 270 ? "start" : "end";
}
function getPolarVerticalAnchor(props, degrees) {
  var labelPlacement = getLabelPlacement(props);
  var orientation = getPolarOrientation(degrees);

  if (labelPlacement === "parallel" || orientation === "left" || orientation === "right") {
    return "middle";
  }

  return orientation === "top" ? "end" : "start";
}
function getPolarAngle(props, baseAngle) {
  var labelPlacement = props.labelPlacement,
      datum = props.datum;

  if (!labelPlacement || labelPlacement === "vertical") {
    return 0;
  }

  var degrees = baseAngle !== undefined ? baseAngle % 360 : getDegrees(props, datum);
  var sign = degrees > 90 && degrees < 180 || degrees > 270 ? 1 : -1;
  var angle = 0;

  if (degrees === 0 || degrees === 180) {
    angle = 90;
  } else if (degrees > 0 && degrees < 180) {
    angle = 90 - degrees;
  } else if (degrees > 180 && degrees < 360) {
    angle = 270 - degrees;
  }

  var labelRotation = labelPlacement === "perpendicular" ? 0 : 90;
  return angle + sign * labelRotation;
}
function getDegrees(props, datum) {
  var _Helpers$getPoint = _helpers__WEBPACK_IMPORTED_MODULE_1__.getPoint(datum),
      x = _Helpers$getPoint.x;

  return _helpers__WEBPACK_IMPORTED_MODULE_1__.radiansToDegrees(props.scale.x(x)) % 360;
}
function getProps(props, index) {
  var scale = props.scale,
      data = props.data,
      style = props.style,
      horizontal = props.horizontal,
      polar = props.polar,
      width = props.width,
      height = props.height,
      theme = props.theme,
      labelComponent = props.labelComponent,
      disableInlineStyles = props.disableInlineStyles;
  var datum = data[index];
  var degrees = getDegrees(props, datum);
  var textAnchor = polar ? getPolarTextAnchor(props, degrees) : getTextAnchor(props, datum);
  var verticalAnchor = polar ? getPolarVerticalAnchor(props, degrees) : getVerticalAnchor(props, datum);
  var angle = getAngle(props, datum);
  var text = getText(props, datum, index);
  var labelPlacement = getLabelPlacement(props);

  var _getPosition = getPosition(props, datum),
      x = _getPosition.x,
      y = _getPosition.y;

  var _getOffset = getOffset(props, datum),
      dx = _getOffset.dx,
      dy = _getOffset.dy;

  var labelProps = {
    angle: angle,
    data: data,
    datum: datum,
    disableInlineStyles: disableInlineStyles,
    horizontal: horizontal,
    index: index,
    polar: polar,
    scale: scale,
    labelPlacement: labelPlacement,
    text: text,
    textAnchor: textAnchor,
    verticalAnchor: verticalAnchor,
    x: x,
    y: y,
    dx: dx,
    dy: dy,
    width: width,
    height: height,
    style: style.labels
  };

  if (!_helpers__WEBPACK_IMPORTED_MODULE_1__.isTooltip(labelComponent)) {
    return labelProps;
  }

  var tooltipTheme = theme && theme.tooltip || {};
  return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, labelProps, _helpers__WEBPACK_IMPORTED_MODULE_1__.omit(tooltipTheme, ["style"]));
}

/***/ }),

/***/ "./node_modules/victory-core/es/victory-util/log.js":
/*!**********************************************************!*\
  !*** ./node_modules/victory-core/es/victory-util/log.js ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "warn": () => (/* binding */ warn)
/* harmony export */ });
/* global console */

/* eslint-disable no-console */
// TODO: Use "warning" npm module like React is switching to.
// eslint-disable-next-line func-style
function warn(message) {
  if (true) {
    if (console && console.warn) {
      console.warn(message);
    }
  }
}

/***/ }),

/***/ "./node_modules/victory-core/es/victory-util/prop-types.js":
/*!*****************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-util/prop-types.js ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "deprecated": () => (/* binding */ deprecated),
/* harmony export */   "allOfType": () => (/* binding */ allOfType),
/* harmony export */   "nonNegative": () => (/* binding */ nonNegative),
/* harmony export */   "integer": () => (/* binding */ integer),
/* harmony export */   "greaterThanZero": () => (/* binding */ greaterThanZero),
/* harmony export */   "domain": () => (/* binding */ domain),
/* harmony export */   "scale": () => (/* binding */ scale),
/* harmony export */   "homogeneousArray": () => (/* binding */ homogeneousArray),
/* harmony export */   "matchDataLength": () => (/* binding */ matchDataLength),
/* harmony export */   "regExp": () => (/* binding */ regExp)
/* harmony export */ });
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isRegExp */ "./node_modules/lodash/isRegExp.js");
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "./node_modules/lodash/find.js");
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./log */ "./node_modules/victory-core/es/victory-util/log.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);




function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }



/**
 * Return a new validator based on `validator` but with the option to chain
 * `isRequired` onto the validation. This is nearly identical to how React
 * does it internally, but they don't expose their helper for us to use.
 * @param {Function} validator Validation function.
 * @returns {Function} Validator with `isRequired` option.
 */

var makeChainable = function (validator) {
  /* eslint-disable max-params */
  var _chainable = function (isRequired, props, propName, componentName) {
    var value = props[propName];

    if (value === undefined || value === null) {
      if (isRequired) {
        return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
      }

      return null;
    }

    for (var _len = arguments.length, rest = new Array(_len > 4 ? _len - 4 : 0), _key = 4; _key < _len; _key++) {
      rest[_key - 4] = arguments[_key];
    }

    return validator.apply(void 0, [props, propName, componentName].concat(rest));
  };

  var chainable = _chainable.bind(null, false);

  chainable.isRequired = _chainable.bind(null, true);
  return chainable;
};

var nullConstructor = function () {
  return null;
};

var undefinedConstructor = function () {
  return undefined;
};
/**
 * Get the constructor of `value`. If `value` is null or undefined, return the
 * special singletons `nullConstructor` or `undefinedConstructor`, respectively.
 * @param {*} value Instance to return the constructor of.
 * @returns {Function} Constructor of `value`.
 */


var getConstructor = function (value) {
  if (value === undefined) {
    return undefinedConstructor;
  } else if (value === null) {
    return nullConstructor;
  } else {
    return value.constructor;
  }
};
/**
 * Get the name of the constructor used to create `value`, using
 * `Object.protoype.toString`. If the value is null or undefined, return
 * "null" or "undefined", respectively.
 * @param {*} value Instance to return the constructor name of.
 * @returns {String} Name of the constructor.
 */


var getConstructorName = function (value) {
  if (value === undefined) {
    return "undefined";
  } else if (value === null) {
    return "null";
  }

  return Object.prototype.toString.call(value).slice(8, -1); // eslint-disable-line no-magic-numbers
};
/**
 * Return a new validator based on `propType` but which logs a `console.error`
 * with `explanation` if used.
 * @param {Function} propType The old, deprecated propType.
 * @param {String} explanation The message to provide the user of the deprecated propType.
 * @returns {Function} Validator which logs usage of this propType
 */


function deprecated(propType, explanation) {
  return function (props, propName, componentName) {
    var value = props[propName];

    if (value !== null && value !== undefined) {
      _log__WEBPACK_IMPORTED_MODULE_3__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
    }

    return prop_types__WEBPACK_IMPORTED_MODULE_4___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
  };
}
/**
 * Return a new validator which returns true
 * if and only if all validators passed as arguments return true.
 * Like React.propTypes.oneOfType, except "all" instead of "any"
 * @param {Array} validators Validation functions.
 * @returns {Function} Combined validator function
 */

function allOfType(validators) {
  return makeChainable(function (props, propName, componentName) {
    for (var _len2 = arguments.length, rest = new Array(_len2 > 3 ? _len2 - 3 : 0), _key2 = 3; _key2 < _len2; _key2++) {
      rest[_key2 - 3] = arguments[_key2];
    }

    return validators.reduce(function (result, validator) {
      return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
    }, undefined);
  });
}
/**
 * Check that the value is a non-negative number.
 */

var nonNegative = makeChainable(function (props, propName, componentName) {
  var value = props[propName];

  if (typeof value !== "number" || value < 0) {
    return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
  }

  return undefined;
});
/**
 * Check that the value is an integer.
 */

var integer = makeChainable(function (props, propName, componentName) {
  var value = props[propName];

  if (typeof value !== "number" || value % 1 !== 0) {
    return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
  }

  return undefined;
});
/**
 * Check that the value is greater than zero.
 */

var greaterThanZero = makeChainable(function (props, propName, componentName) {
  var value = props[propName];

  if (typeof value !== "number" || value <= 0) {
    return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
  }

  return undefined;
});
/**
 * Check that the value is an Array of two unique values.
 */

var domain = makeChainable(function (props, propName, componentName) {
  var value = props[propName];

  if (!Array.isArray(value) || value.length !== 2 || value[1] === value[0]) {
    return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
  }

  return undefined;
});
/**
 * Check that the value looks like a d3 `scale` function.
 */

var scale = makeChainable(function (props, propName, componentName) {
  var supportedScaleStrings = ["linear", "time", "log", "sqrt"];

  var validScale = function (scl) {
    if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl)) {
      return lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.copy) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.domain) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.range);
    } else if (typeof scl === "string") {
      return supportedScaleStrings.indexOf(scl) !== -1;
    }

    return false;
  };

  var value = props[propName];

  if (!validScale(value)) {
    return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
  }

  return undefined;
});
/**
 * Check that an array contains items of the same type.
 */

var homogeneousArray = makeChainable(function (props, propName, componentName) {
  var values = props[propName];

  if (!Array.isArray(values)) {
    return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array."));
  }

  if (values.length < 2) {
    return undefined;
  }

  var comparisonConstructor = getConstructor(values[0]);

  var typeMismatchedValue = lodash_find__WEBPACK_IMPORTED_MODULE_1___default()(values, function (value) {
    return comparisonConstructor !== getConstructor(value);
  });

  if (typeMismatchedValue) {
    var constructorName = getConstructorName(values[0]);
    var otherConstructorName = getConstructorName(typeMismatchedValue);
    return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
  }

  return undefined;
});
/**
 * Check that array prop length matches props.data.length
 */

var matchDataLength = makeChainable(function (props, propName) {
  if (props[propName] && Array.isArray(props[propName]) && props[propName].length !== props.data.length) {
    return new Error("Length of data and ".concat(propName, " arrays must match."));
  }

  return undefined;
});
/**
 * Check that the value is a regular expression
 */

var regExp = makeChainable(function (props, propName, componentName) {
  if (props[propName] && !lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default()(props[propName])) {
    return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
  }

  return undefined;
});

/***/ }),

/***/ "./node_modules/victory-core/es/victory-util/scale.js":
/*!************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-util/scale.js ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getScaleFromName": () => (/* binding */ getScaleFromName),
/* harmony export */   "getBaseScale": () => (/* binding */ getBaseScale),
/* harmony export */   "getDefaultScale": () => (/* binding */ getDefaultScale),
/* harmony export */   "getScaleFromProps": () => (/* binding */ getScaleFromProps),
/* harmony export */   "getScaleType": () => (/* binding */ getScaleType),
/* harmony export */   "getType": () => (/* binding */ getType)
/* harmony export */ });
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "./node_modules/lodash/isPlainObject.js");
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/includes */ "./node_modules/lodash/includes.js");
/* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_includes__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helpers */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./collection */ "./node_modules/victory-core/es/victory-util/collection.js");
/* harmony import */ var d3_scale__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-scale */ "./node_modules/d3-scale/index.js");






var supportedScaleStrings = ["linear", "time", "log", "sqrt"]; // Private Functions

function toNewName(scale) {
  // d3 scale changed the naming scheme for scale from "linear" -> "scaleLinear" etc.
  var capitalize = function (s) {
    return s && s[0].toUpperCase() + s.slice(1);
  };

  return "scale".concat(capitalize(scale));
}

function validScale(scale) {
  if (typeof scale === "function") {
    return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale.copy) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale.domain) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale.range);
  } else if (typeof scale === "string") {
    return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(supportedScaleStrings, scale);
  }

  return false;
}

function isScaleDefined(props, axis) {
  if (!props.scale) {
    return false;
  } else if (props.scale.x || props.scale.y) {
    return props.scale[axis] ? true : false;
  }

  return true;
}

function getScaleTypeFromProps(props, axis) {
  if (!isScaleDefined(props, axis)) {
    return undefined;
  }

  var scale = props.scale[axis] || props.scale;
  return typeof scale === "string" ? scale : getType(scale);
}

function getScaleFromDomain(props, axis) {
  var domain;

  if (props.domain && props.domain[axis]) {
    domain = props.domain[axis];
  } else if (props.domain && Array.isArray(props.domain)) {
    domain = props.domain;
  }

  if (!domain) {
    return undefined;
  }

  return _collection__WEBPACK_IMPORTED_MODULE_4__.containsDates(domain) ? "time" : "linear";
}

function getScaleTypeFromData(props, axis) {
  if (!props.data) {
    return "linear";
  }

  var accessor = _helpers__WEBPACK_IMPORTED_MODULE_5__.createAccessor(props[axis]);
  var axisData = props.data.map(function (datum) {
    var processedData = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(accessor(datum)) ? accessor(datum)[axis] : accessor(datum);
    return processedData !== undefined ? processedData : datum[axis];
  });
  return _collection__WEBPACK_IMPORTED_MODULE_4__.containsDates(axisData) ? "time" : "linear";
} // Exported Functions


function getScaleFromName(name) {
  return validScale(name) ? d3_scale__WEBPACK_IMPORTED_MODULE_3__[toNewName(name)]() : d3_scale__WEBPACK_IMPORTED_MODULE_3__.scaleLinear();
}
function getBaseScale(props, axis) {
  var scale = getScaleFromProps(props, axis);

  if (scale) {
    return typeof scale === "string" ? getScaleFromName(scale) : scale;
  }

  var defaultScale = getScaleFromDomain(props, axis) || getScaleTypeFromData(props, axis);
  return d3_scale__WEBPACK_IMPORTED_MODULE_3__[toNewName(defaultScale)]();
}
function getDefaultScale() {
  return d3_scale__WEBPACK_IMPORTED_MODULE_3__.scaleLinear();
}
function getScaleFromProps(props, axis) {
  if (!isScaleDefined(props, axis)) {
    return undefined;
  }

  var scale = props.scale[axis] || props.scale;

  if (validScale(scale)) {
    return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : d3_scale__WEBPACK_IMPORTED_MODULE_3__[toNewName(scale)]();
  }

  return undefined;
}
function getScaleType(props, axis) {
  // if the scale was not given in props, it will be set to linear or time depending on data
  return getScaleTypeFromProps(props, axis) || getScaleTypeFromData(props, axis);
}
function getType(scale) {
  if (typeof scale === "string") {
    return scale;
  }

  var duckTypes = [{
    name: "log",
    method: "base"
  }, {
    name: "ordinal",
    method: "unknown"
  }, {
    name: "pow-sqrt",
    method: "exponent"
  }, {
    name: "quantile",
    method: "quantiles"
  }, {
    name: "quantize-threshold",
    method: "invertExtent"
  }];
  var scaleType = duckTypes.filter(function (type) {
    return scale[type.method] !== undefined;
  })[0];
  return scaleType ? scaleType.name : undefined;
}

/***/ }),

/***/ "./node_modules/victory-core/es/victory-util/selection.js":
/*!****************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-util/selection.js ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getParentSVG": () => (/* binding */ getParentSVG),
/* harmony export */   "getSVGEventCoordinates": () => (/* binding */ getSVGEventCoordinates),
/* harmony export */   "getDomainCoordinates": () => (/* binding */ getDomainCoordinates),
/* harmony export */   "getDataCoordinates": () => (/* binding */ getDataCoordinates),
/* harmony export */   "getBounds": () => (/* binding */ getBounds)
/* harmony export */ });
/* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./collection */ "./node_modules/victory-core/es/victory-util/collection.js");
/* eslint-disable func-style */

/* eslint-disable no-use-before-define */
 // Private Functions

function transformTarget(target, matrix, dimension) {
  var a = matrix.a,
      d = matrix.d,
      e = matrix.e,
      f = matrix.f;
  return dimension === "y" ? d * target + f : a * target + e;
}

function getTransformationMatrix(svg) {
  return svg.getScreenCTM().inverse();
} // Exported Functions


function getParentSVG(evt) {
  if (evt.nativeEvent && evt.nativeEvent.identifier !== undefined) {
    return undefined;
  }

  var getParent = function (target) {
    if (target.nodeName === "svg") {
      return target;
    } else {
      return target.parentNode ? getParent(target.parentNode) : target;
    }
  };

  return getParent(evt.target);
}
function getSVGEventCoordinates(evt, svg) {
  if (evt.nativeEvent && evt.nativeEvent.identifier !== undefined) {
    // react-native override. relies on the RN.View being the _exact_ same size as its child SVG.
    // this should be fine: the svg is the only child of View and the View shirks to its children
    return {
      x: evt.nativeEvent.locationX,
      y: evt.nativeEvent.locationY
    };
  }

  evt = evt.changedTouches && evt.changedTouches.length ? evt.changedTouches[0] : evt;
  svg = svg || getParentSVG(evt);
  var matrix = getTransformationMatrix(svg);
  return {
    x: transformTarget(evt.clientX, matrix, "x"),
    y: transformTarget(evt.clientY, matrix, "y")
  };
}
function getDomainCoordinates(props, domain) {
  var scale = props.scale,
      horizontal = props.horizontal;
  domain = domain || {
    x: scale.x.domain(),
    y: scale.y.domain()
  };
  return {
    x: horizontal ? [scale.y(domain.y[0]), scale.y(domain.y[1])] : [scale.x(domain.x[0]), scale.x(domain.x[1])],
    y: horizontal ? [scale.x(domain.x[0]), scale.x(domain.x[1])] : [scale.y(domain.y[0]), scale.y(domain.y[1])]
  };
} // eslint-disable-next-line max-params

function getDataCoordinates(props, scale, x, y) {
  var polar = props.polar,
      horizontal = props.horizontal;

  if (!polar) {
    return {
      x: horizontal ? scale.x.invert(y) : scale.x.invert(x),
      y: horizontal ? scale.y.invert(x) : scale.y.invert(y)
    };
  } else {
    var origin = props.origin || {
      x: 0,
      y: 0
    };
    var baseX = x - origin.x;
    var baseY = y - origin.y;
    var radius = Math.abs(baseX * Math.sqrt(1 + Math.pow(-baseY / baseX, 2)));
    var angle = (-Math.atan2(baseY, baseX) + Math.PI * 2) % (Math.PI * 2);
    return {
      x: scale.x.invert(angle),
      y: scale.y.invert(radius)
    };
  }
}
function getBounds(props) {
  var x1 = props.x1,
      x2 = props.x2,
      y1 = props.y1,
      y2 = props.y2,
      scale = props.scale;
  var point1 = getDataCoordinates(props, scale, x1, y1);
  var point2 = getDataCoordinates(props, scale, x2, y2);

  var makeBound = function (a, b) {
    return [_collection__WEBPACK_IMPORTED_MODULE_0__.getMinValue([a, b]), _collection__WEBPACK_IMPORTED_MODULE_0__.getMaxValue([a, b])];
  };

  return {
    x: makeBound(point1.x, point2.x),
    y: makeBound(point1.y, point2.y)
  };
}

/***/ }),

/***/ "./node_modules/victory-core/es/victory-util/style.js":
/*!************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-util/style.js ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "toTransformString": () => (/* binding */ toTransformString),
/* harmony export */   "getColorScale": () => (/* binding */ getColorScale)
/* harmony export */ });
/* eslint-disable func-style */

/**
 * Given an object with CSS/SVG transform definitions, return the string value
 * for use with the `transform` CSS property or SVG attribute. Note that we
 * can't always guarantee the order will match the author's intended order, so
 * authors should only use the object notation if they know that their transform
 * is commutative or that there is only one.
 * @param {Object} obj An object of transform definitions.
 * @returns {String} The generated transform string.
 */
var toTransformString = function (obj) {
  for (var _len = arguments.length, more = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
    more[_key - 1] = arguments[_key];
  }

  if (more.length > 0) {
    return more.reduce(function (memo, currentObj) {
      return [memo, toTransformString(currentObj)].join(" ");
    }, toTransformString(obj)).trim();
  } else {
    if (obj === undefined || obj === null || typeof obj === "string") {
      return obj;
    }

    var transforms = [];

    for (var key in obj) {
      if (obj.hasOwnProperty(key)) {
        var value = obj[key];
        transforms.push("".concat(key, "(").concat(value, ")"));
      }
    }

    return transforms.join(" ").trim();
  }
};
/**
 * Given the name of a color scale, getColorScale will return an array
 * of 5 hex string values in that color scale. If no 'name' parameter
 * is given, it will return the Victory default grayscale.
 * @param {String} name The name of the color scale to return (optional).
 * @returns {Array} An array of 5 hex string values composing a color scale.
 */

function getColorScale(name) {
  var scales = {
    grayscale: ["#cccccc", "#969696", "#636363", "#252525"],
    qualitative: ["#334D5C", "#45B29D", "#EFC94C", "#E27A3F", "#DF5A49", "#4F7DA1", "#55DBC1", "#EFDA97", "#E2A37F", "#DF948A"],
    heatmap: ["#428517", "#77D200", "#D6D305", "#EC8E19", "#C92B05"],
    warm: ["#940031", "#C43343", "#DC5429", "#FF821D", "#FFAF55"],
    cool: ["#2746B9", "#0B69D4", "#2794DB", "#31BB76", "#60E83B"],
    red: ["#FCAE91", "#FB6A4A", "#DE2D26", "#A50F15", "#750B0E"],
    blue: ["#002C61", "#004B8F", "#006BC9", "#3795E5", "#65B4F4"],
    green: ["#354722", "#466631", "#649146", "#8AB25C", "#A9C97E"]
  };
  return name ? scales[name] : scales.grayscale;
}

/***/ }),

/***/ "./node_modules/victory-core/es/victory-util/textsize.js":
/*!***************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-util/textsize.js ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "convertLengthToPixels": () => (/* binding */ convertLengthToPixels),
/* harmony export */   "_approximateTextSizeInternal": () => (/* binding */ _approximateTextSizeInternal),
/* harmony export */   "approximateTextSize": () => (/* binding */ approximateTextSize)
/* harmony export */ });
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js");
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__);



function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

// Based on measuring specific character widths
// as in the following example https://bl.ocks.org/tophtucker/62f93a4658387bb61e4510c37e2e97cf
//prettier-ignore
var fonts = {
  "American Typewriter": {
    widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.25, 0.4203125, 0.3296875, 0.6, 0.6375, 0.8015625, 0.8203125, 0.1875, 0.45625, 0.45625, 0.6375, 0.5, 0.2734375, 0.309375, 0.2734375, 0.4390625, 0.6375, 0.6375, 0.6375, 0.6375, 0.6375, 0.6375, 0.6375, 0.6375, 0.6375, 0.6375, 0.2734375, 0.2734375, 0.5, 0.5, 0.5, 0.6, 0.6921875, 0.7640625, 0.6921875, 0.6375, 0.728125, 0.6734375, 0.6203125, 0.7109375, 0.784375, 0.3828125, 0.6421875, 0.7859375, 0.6375, 0.9484375, 0.7640625, 0.65625, 0.6375, 0.65625, 0.7296875, 0.6203125, 0.6375, 0.7109375, 0.740625, 0.940625, 0.784375, 0.7578125, 0.6203125, 0.4375, 0.5, 0.4375, 0.5, 0.5, 0.4921875, 0.5734375, 0.5890625, 0.5109375, 0.6, 0.528125, 0.43125, 0.5578125, 0.6375, 0.3109375, 0.40625, 0.6234375, 0.309375, 0.928125, 0.6375, 0.546875, 0.6, 0.58125, 0.4921875, 0.4921875, 0.4, 0.6203125, 0.625, 0.825, 0.6375, 0.640625, 0.528125, 0.5, 0.5, 0.5, 0.6671875],
    avg: 0.5793421052631578
  },
  Arial: {
    widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.278125, 0.278125, 0.35625, 0.55625, 0.55625, 0.890625, 0.6671875, 0.1921875, 0.334375, 0.334375, 0.390625, 0.584375, 0.278125, 0.334375, 0.278125, 0.278125, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.278125, 0.278125, 0.584375, 0.584375, 0.584375, 0.55625, 1.015625, 0.6703125, 0.6671875, 0.7234375, 0.7234375, 0.6671875, 0.6109375, 0.778125, 0.7234375, 0.278125, 0.5, 0.6671875, 0.55625, 0.834375, 0.7234375, 0.778125, 0.6671875, 0.778125, 0.7234375, 0.6671875, 0.6109375, 0.7234375, 0.6671875, 0.9453125, 0.6671875, 0.6671875, 0.6109375, 0.278125, 0.278125, 0.278125, 0.4703125, 0.584375, 0.334375, 0.55625, 0.55625, 0.5, 0.55625, 0.55625, 0.3125, 0.55625, 0.55625, 0.2234375, 0.2703125, 0.5, 0.2234375, 0.834375, 0.55625, 0.55625, 0.55625, 0.55625, 0.346875, 0.5, 0.278125, 0.55625, 0.5, 0.7234375, 0.5, 0.5, 0.5, 0.334375, 0.2609375, 0.334375, 0.584375],
    avg: 0.528733552631579
  },
  "Arial Black": {
    widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.33125, 0.334375, 0.5, 0.6609375, 0.6671875, 1, 0.890625, 0.278125, 0.390625, 0.390625, 0.55625, 0.6609375, 0.334375, 0.334375, 0.334375, 0.28125, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.334375, 0.334375, 0.6609375, 0.6609375, 0.6609375, 0.6109375, 0.7453125, 0.78125, 0.778125, 0.778125, 0.778125, 0.7234375, 0.6671875, 0.834375, 0.834375, 0.390625, 0.6671875, 0.834375, 0.6671875, 0.9453125, 0.834375, 0.834375, 0.7234375, 0.834375, 0.78125, 0.7234375, 0.7234375, 0.834375, 0.7796875, 1.003125, 0.78125, 0.78125, 0.7234375, 0.390625, 0.28125, 0.390625, 0.6609375, 0.5125, 0.334375, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.41875, 0.6671875, 0.6671875, 0.334375, 0.384375, 0.6671875, 0.334375, 1, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.4703125, 0.6109375, 0.4453125, 0.6671875, 0.6140625, 0.946875, 0.6671875, 0.615625, 0.55625, 0.390625, 0.278125, 0.390625, 0.6609375],
    avg: 0.6213157894736842
  },
  Baskerville: {
    widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.25, 0.25, 0.40625, 0.6671875, 0.490625, 0.875, 0.7015625, 0.178125, 0.2453125, 0.246875, 0.4171875, 0.6671875, 0.25, 0.3125, 0.25, 0.521875, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.25, 0.25, 0.6671875, 0.6671875, 0.6671875, 0.396875, 0.9171875, 0.684375, 0.615625, 0.71875, 0.7609375, 0.625, 0.553125, 0.771875, 0.803125, 0.3546875, 0.515625, 0.78125, 0.6046875, 0.928125, 0.75, 0.8234375, 0.5625, 0.96875, 0.7296875, 0.5421875, 0.6984375, 0.771875, 0.7296875, 0.9484375, 0.771875, 0.678125, 0.6359375, 0.3640625, 0.521875, 0.3640625, 0.46875, 0.5125, 0.334375, 0.46875, 0.521875, 0.428125, 0.521875, 0.4375, 0.3890625, 0.4765625, 0.53125, 0.25, 0.359375, 0.4640625, 0.240625, 0.803125, 0.53125, 0.5, 0.521875, 0.521875, 0.365625, 0.334375, 0.2921875, 0.521875, 0.4640625, 0.678125, 0.4796875, 0.465625, 0.428125, 0.4796875, 0.5109375, 0.4796875, 0.6671875],
    avg: 0.5323519736842108
  },
  Courier: {
    widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.5984375, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6078125, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.61875, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.615625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6140625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625],
    avg: 0.6020559210526316
  },
  "Courier New": {
    widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.5984375, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625],
    avg: 0.6015296052631579
  },
  cursive: {
    widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.1921875, 0.24375, 0.40625, 0.5671875, 0.3984375, 0.721875, 0.909375, 0.2328125, 0.434375, 0.365625, 0.4734375, 0.5578125, 0.19375, 0.3484375, 0.19375, 0.7734375, 0.503125, 0.4171875, 0.5453125, 0.45, 0.6046875, 0.4703125, 0.5984375, 0.55625, 0.503125, 0.5546875, 0.20625, 0.2, 0.5625, 0.5546875, 0.546875, 0.403125, 0.70625, 0.734375, 0.7078125, 0.64375, 0.85, 0.753125, 0.75, 0.6484375, 1.0765625, 0.44375, 0.5359375, 0.8359375, 0.653125, 1.0109375, 1.1515625, 0.6796875, 0.6984375, 1.0625, 0.8234375, 0.5125, 0.9234375, 0.8546875, 0.70625, 0.9109375, 0.7421875, 0.715625, 0.6015625, 0.4640625, 0.3359375, 0.4109375, 0.5421875, 0.5421875, 0.4328125, 0.5125, 0.5, 0.3859375, 0.7375, 0.359375, 0.75625, 0.540625, 0.5328125, 0.3203125, 0.5296875, 0.5015625, 0.484375, 0.7890625, 0.5640625, 0.4203125, 0.703125, 0.471875, 0.4734375, 0.35, 0.4125, 0.5640625, 0.471875, 0.6484375, 0.5296875, 0.575, 0.4140625, 0.415625, 0.20625, 0.3796875, 0.5421875],
    avg: 0.5604440789473684
  },
  fantasy: {
    widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.215625, 0.2625, 0.3265625, 0.6109375, 0.534375, 0.7625, 0.7828125, 0.2, 0.4359375, 0.4359375, 0.3765625, 0.5109375, 0.2796875, 0.4609375, 0.2796875, 0.5296875, 0.6640625, 0.253125, 0.521875, 0.4765625, 0.6640625, 0.490625, 0.528125, 0.5546875, 0.496875, 0.5421875, 0.2796875, 0.2796875, 0.5625, 0.4609375, 0.5625, 0.4828125, 0.609375, 0.740625, 0.7234375, 0.740625, 0.8265625, 0.7234375, 0.6171875, 0.7359375, 0.765625, 0.240625, 0.5453125, 0.715625, 0.6078125, 0.8640625, 0.653125, 0.9125, 0.6484375, 0.946875, 0.6921875, 0.653125, 0.6953125, 0.8015625, 0.58125, 0.784375, 0.671875, 0.6265625, 0.690625, 0.4359375, 0.5296875, 0.4359375, 0.53125, 0.5, 0.2875, 0.5375, 0.603125, 0.4984375, 0.60625, 0.53125, 0.434375, 0.6421875, 0.56875, 0.209375, 0.4671875, 0.5484375, 0.2203125, 0.709375, 0.55, 0.5984375, 0.6140625, 0.5765625, 0.40625, 0.4734375, 0.3734375, 0.559375, 0.4421875, 0.6421875, 0.4890625, 0.578125, 0.4484375, 0.2546875, 0.2203125, 0.2546875, 0.55],
    avg: 0.536496710526316
  },
  Geneva: {
    widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.3328125, 0.3046875, 0.5, 0.6671875, 0.6671875, 0.90625, 0.728125, 0.3046875, 0.446875, 0.446875, 0.5078125, 0.6671875, 0.3046875, 0.3796875, 0.3046875, 0.5390625, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.6671875, 0.3046875, 0.3046875, 0.6671875, 0.6671875, 0.6671875, 0.56875, 0.871875, 0.728125, 0.6375, 0.6515625, 0.7015625, 0.5765625, 0.5546875, 0.675, 0.690625, 0.2421875, 0.4921875, 0.6640625, 0.584375, 0.7890625, 0.709375, 0.7359375, 0.584375, 0.78125, 0.60625, 0.60625, 0.640625, 0.6671875, 0.728125, 0.946875, 0.6109375, 0.6109375, 0.5765625, 0.446875, 0.5390625, 0.446875, 0.6671875, 0.6671875, 0.5921875, 0.5546875, 0.6109375, 0.546875, 0.603125, 0.5765625, 0.390625, 0.6109375, 0.584375, 0.2359375, 0.334375, 0.5390625, 0.2359375, 0.8953125, 0.584375, 0.60625, 0.603125, 0.603125, 0.3875, 0.509375, 0.44375, 0.584375, 0.565625, 0.78125, 0.53125, 0.571875, 0.5546875, 0.4515625, 0.246875, 0.4515625, 0.6671875],
    avg: 0.5762664473684211
  },
  Georgia: {
    widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2421875, 0.33125, 0.4125, 0.64375, 0.6109375, 0.81875, 0.7109375, 0.215625, 0.375, 0.375, 0.4734375, 0.64375, 0.2703125, 0.375, 0.2703125, 0.46875, 0.6140625, 0.4296875, 0.559375, 0.553125, 0.565625, 0.5296875, 0.5671875, 0.503125, 0.596875, 0.5671875, 0.3125, 0.3125, 0.64375, 0.64375, 0.64375, 0.4796875, 0.9296875, 0.715625, 0.6546875, 0.6421875, 0.75, 0.6546875, 0.6, 0.7265625, 0.815625, 0.390625, 0.51875, 0.7203125, 0.6046875, 0.928125, 0.7671875, 0.7453125, 0.6109375, 0.7453125, 0.7234375, 0.5625, 0.61875, 0.7578125, 0.70625, 0.99375, 0.7125, 0.6640625, 0.6015625, 0.375, 0.46875, 0.375, 0.64375, 0.65, 0.5, 0.5046875, 0.56875, 0.4546875, 0.575, 0.484375, 0.39375, 0.509375, 0.5828125, 0.29375, 0.3671875, 0.546875, 0.2875, 0.88125, 0.5921875, 0.5390625, 0.571875, 0.5640625, 0.4109375, 0.4328125, 0.3453125, 0.5765625, 0.5203125, 0.75625, 0.50625, 0.5171875, 0.4453125, 0.43125, 0.375, 0.43125, 0.64375],
    avg: 0.5551809210526316
  },
  "Gill Sans": {
    widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2765625, 0.271875, 0.3546875, 0.584375, 0.5421875, 0.6765625, 0.625, 0.1890625, 0.3234375, 0.3234375, 0.4171875, 0.584375, 0.2203125, 0.3234375, 0.2203125, 0.28125, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.2203125, 0.2296875, 0.584375, 0.584375, 0.584375, 0.334375, 1.0109375, 0.6671875, 0.5640625, 0.709375, 0.75, 0.5, 0.4703125, 0.740625, 0.7296875, 0.25, 0.3125, 0.65625, 0.490625, 0.78125, 0.78125, 0.8234375, 0.5109375, 0.8234375, 0.6046875, 0.459375, 0.6046875, 0.709375, 0.6046875, 1.0421875, 0.709375, 0.6046875, 0.646875, 0.334375, 0.28125, 0.334375, 0.4703125, 0.5828125, 0.334375, 0.428125, 0.5, 0.4390625, 0.5109375, 0.4796875, 0.296875, 0.428125, 0.5, 0.2203125, 0.2265625, 0.5, 0.2203125, 0.771875, 0.5, 0.553125, 0.5, 0.5, 0.3984375, 0.3859375, 0.334375, 0.5, 0.4390625, 0.7203125, 0.5, 0.4390625, 0.4171875, 0.334375, 0.2609375, 0.334375, 0.584375],
    avg: 0.4933717105263159
  },
  Helvetica: {
    widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2796875, 0.2765625, 0.3546875, 0.5546875, 0.5546875, 0.8890625, 0.665625, 0.190625, 0.3328125, 0.3328125, 0.3890625, 0.5828125, 0.2765625, 0.3328125, 0.2765625, 0.3015625, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.2765625, 0.2765625, 0.584375, 0.5828125, 0.584375, 0.5546875, 1.0140625, 0.665625, 0.665625, 0.721875, 0.721875, 0.665625, 0.609375, 0.7765625, 0.721875, 0.2765625, 0.5, 0.665625, 0.5546875, 0.8328125, 0.721875, 0.7765625, 0.665625, 0.7765625, 0.721875, 0.665625, 0.609375, 0.721875, 0.665625, 0.94375, 0.665625, 0.665625, 0.609375, 0.2765625, 0.3546875, 0.2765625, 0.4765625, 0.5546875, 0.3328125, 0.5546875, 0.5546875, 0.5, 0.5546875, 0.5546875, 0.2765625, 0.5546875, 0.5546875, 0.221875, 0.240625, 0.5, 0.221875, 0.8328125, 0.5546875, 0.5546875, 0.5546875, 0.5546875, 0.3328125, 0.5, 0.2765625, 0.5546875, 0.5, 0.721875, 0.5, 0.5, 0.5, 0.3546875, 0.259375, 0.353125, 0.5890625],
    avg: 0.5279276315789471
  },
  "Helvetica Neue": {
    widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.278125, 0.259375, 0.4265625, 0.55625, 0.55625, 1, 0.6453125, 0.278125, 0.2703125, 0.26875, 0.353125, 0.6, 0.278125, 0.3890625, 0.278125, 0.36875, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.278125, 0.278125, 0.6, 0.6, 0.6, 0.55625, 0.8, 0.6625, 0.6859375, 0.7234375, 0.7046875, 0.6125, 0.575, 0.759375, 0.7234375, 0.259375, 0.5203125, 0.6703125, 0.55625, 0.871875, 0.7234375, 0.7609375, 0.6484375, 0.7609375, 0.6859375, 0.6484375, 0.575, 0.7234375, 0.6140625, 0.9265625, 0.6125, 0.6484375, 0.6125, 0.259375, 0.36875, 0.259375, 0.6, 0.5, 0.25625, 0.5375, 0.59375, 0.5375, 0.59375, 0.5375, 0.2984375, 0.575, 0.55625, 0.2234375, 0.2375, 0.5203125, 0.2234375, 0.853125, 0.55625, 0.575, 0.59375, 0.59375, 0.334375, 0.5, 0.315625, 0.55625, 0.5, 0.759375, 0.51875, 0.5, 0.48125, 0.334375, 0.2234375, 0.334375, 0.6],
    avg: 0.5279440789473684
  },
  "Hoefler Text": {
    widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2359375, 0.2234375, 0.3921875, 0.7125, 0.49375, 0.8859375, 0.771875, 0.2125, 0.3078125, 0.309375, 0.375, 0.4234375, 0.234375, 0.3125, 0.234375, 0.3, 0.5828125, 0.365625, 0.434375, 0.3921875, 0.5234375, 0.3984375, 0.5125, 0.4328125, 0.46875, 0.5125, 0.234375, 0.234375, 0.515625, 0.4234375, 0.515625, 0.340625, 0.7609375, 0.7359375, 0.6359375, 0.721875, 0.8125, 0.6375, 0.5875, 0.8078125, 0.853125, 0.4296875, 0.503125, 0.78125, 0.609375, 0.9609375, 0.8515625, 0.8140625, 0.6125, 0.8140625, 0.71875, 0.49375, 0.7125, 0.76875, 0.771875, 1.125, 0.7765625, 0.7734375, 0.65625, 0.321875, 0.3078125, 0.321875, 0.3546875, 0.5, 0.3375, 0.446875, 0.5359375, 0.45, 0.5296875, 0.4546875, 0.425, 0.4921875, 0.54375, 0.2671875, 0.240625, 0.5390625, 0.25, 0.815625, 0.5375, 0.5234375, 0.5390625, 0.5421875, 0.365625, 0.36875, 0.35625, 0.5171875, 0.5015625, 0.75, 0.5, 0.509375, 0.44375, 0.2421875, 0.14375, 0.2421875, 0.35],
    avg: 0.5116447368421051
  },
  "Montserrat": {
    widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2625, 0.2609375, 0.3734375, 0.696875, 0.615625, 0.8296875, 0.6703125, 0.203125, 0.3296875, 0.3296875, 0.3875, 0.575, 0.2125, 0.3828125, 0.2125, 0.3953125, 0.6625, 0.3625, 0.56875, 0.5640625, 0.6625, 0.5671875, 0.609375, 0.5890625, 0.6390625, 0.609375, 0.2125, 0.2125, 0.575, 0.575, 0.575, 0.5671875, 1.034375, 0.7171875, 0.7546875, 0.7203125, 0.8265625, 0.6703125, 0.634375, 0.7734375, 0.8140625, 0.303125, 0.5078125, 0.7125, 0.5890625, 0.95625, 0.8140625, 0.8390625, 0.71875, 0.8390625, 0.7234375, 0.615625, 0.575, 0.7921875, 0.6984375, 1.1125, 0.65625, 0.6359375, 0.6515625, 0.31875, 0.396875, 0.31875, 0.5765625, 0.5, 0.6, 0.590625, 0.678125, 0.5640625, 0.678125, 0.6046875, 0.375, 0.6875, 0.678125, 0.2703125, 0.365625, 0.6015625, 0.2703125, 1.0625, 0.678125, 0.628125, 0.678125, 0.678125, 0.4015625, 0.4890625, 0.40625, 0.6734375, 0.5421875, 0.8796875, 0.534375, 0.5671875, 0.5125, 0.334375, 0.2953125, 0.334375, 0.575],
    avg: 0.571792763157895
  },
  monospace: {
    widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.5984375, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6078125, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.61875, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.615625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6140625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625, 0.6015625],
    avg: 0.6020559210526316
  },
  Overpass: {
    widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2296875, 0.2765625, 0.4203125, 0.68125, 0.584375, 0.8515625, 0.7015625, 0.2203125, 0.3453125, 0.3453125, 0.53125, 0.63125, 0.2234375, 0.3953125, 0.2234375, 0.509375, 0.65, 0.4046875, 0.6171875, 0.60625, 0.6484375, 0.60625, 0.6015625, 0.5375, 0.615625, 0.6015625, 0.2234375, 0.2234375, 0.63125, 0.63125, 0.63125, 0.5015625, 0.8203125, 0.696875, 0.6671875, 0.65, 0.6859375, 0.6015625, 0.559375, 0.690625, 0.7078125, 0.2953125, 0.565625, 0.678125, 0.58125, 0.8046875, 0.7109375, 0.740625, 0.6421875, 0.740625, 0.6765625, 0.6046875, 0.590625, 0.696875, 0.6640625, 0.853125, 0.65, 0.6671875, 0.6625, 0.3734375, 0.509375, 0.3734375, 0.63125, 0.5125, 0.4, 0.5328125, 0.5625, 0.51875, 0.5625, 0.546875, 0.3359375, 0.5625, 0.565625, 0.25625, 0.3203125, 0.55, 0.265625, 0.85, 0.565625, 0.5671875, 0.5625, 0.5625, 0.4046875, 0.4765625, 0.3796875, 0.565625, 0.521875, 0.7265625, 0.53125, 0.5390625, 0.5125, 0.3671875, 0.275, 0.3671875, 0.63125],
    avg: 0.5430756578947369
  },
  Palatino: {
    widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.25, 0.278125, 0.371875, 0.60625, 0.5, 0.840625, 0.778125, 0.209375, 0.334375, 0.334375, 0.390625, 0.60625, 0.2578125, 0.334375, 0.25, 0.60625, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.25, 0.25, 0.60625, 0.60625, 0.60625, 0.4453125, 0.7484375, 0.778125, 0.6109375, 0.709375, 0.775, 0.6109375, 0.55625, 0.7640625, 0.8328125, 0.3375, 0.346875, 0.7265625, 0.6109375, 0.946875, 0.83125, 0.7875, 0.6046875, 0.7875, 0.66875, 0.525, 0.6140625, 0.778125, 0.7234375, 1, 0.6671875, 0.6671875, 0.6671875, 0.334375, 0.60625, 0.334375, 0.60625, 0.5, 0.334375, 0.5, 0.565625, 0.4453125, 0.6109375, 0.4796875, 0.340625, 0.55625, 0.5828125, 0.2921875, 0.2671875, 0.5640625, 0.2921875, 0.8828125, 0.5828125, 0.546875, 0.6015625, 0.5609375, 0.3953125, 0.425, 0.3265625, 0.603125, 0.565625, 0.834375, 0.5171875, 0.55625, 0.5, 0.334375, 0.60625, 0.334375, 0.60625],
    avg: 0.5408552631578947
  },
  "RedHatText": {
    widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2328125, 0.2203125, 0.35625, 0.6890625, 0.55, 0.7390625, 0.6703125, 0.2140625, 0.4015625, 0.4015625, 0.4546875, 0.53125, 0.2203125, 0.45625, 0.2203125, 0.515625, 0.6609375, 0.3078125, 0.5484375, 0.5875, 0.61875, 0.5703125, 0.6203125, 0.559375, 0.6140625, 0.6203125, 0.2203125, 0.2234375, 0.465625, 0.534375, 0.465625, 0.5125, 0.7671875, 0.6609375, 0.6703125, 0.7265625, 0.728125, 0.6203125, 0.6109375, 0.8, 0.73125, 0.253125, 0.6, 0.6125, 0.6078125, 0.8625, 0.7390625, 0.8109375, 0.6546875, 0.809375, 0.6484375, 0.6234375, 0.6171875, 0.7125, 0.6609375, 0.8984375, 0.6546875, 0.646875, 0.60625, 0.3625, 0.5203125, 0.3625, 0.540625, 0.4609375, 0.5234375, 0.5265625, 0.584375, 0.509375, 0.5828125, 0.5578125, 0.3703125, 0.5828125, 0.553125, 0.2234375, 0.24375, 0.4890625, 0.2234375, 0.8453125, 0.553125, 0.58125, 0.584375, 0.5828125, 0.353125, 0.453125, 0.378125, 0.553125, 0.5015625, 0.6984375, 0.4875, 0.4984375, 0.459375, 0.3953125, 0.2921875, 0.3953125, 0.58125],
    avg: 0.5341940789473685
  },
  "sans-serif": {
    widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.278125, 0.278125, 0.35625, 0.55625, 0.55625, 0.890625, 0.6671875, 0.1921875, 0.334375, 0.334375, 0.390625, 0.584375, 0.278125, 0.334375, 0.278125, 0.303125, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.55625, 0.278125, 0.278125, 0.5859375, 0.584375, 0.5859375, 0.55625, 1.015625, 0.6671875, 0.6671875, 0.7234375, 0.7234375, 0.6671875, 0.6109375, 0.778125, 0.7234375, 0.278125, 0.5, 0.6671875, 0.55625, 0.834375, 0.7234375, 0.778125, 0.6671875, 0.778125, 0.7234375, 0.6671875, 0.6109375, 0.7234375, 0.6671875, 0.9453125, 0.6671875, 0.6671875, 0.6109375, 0.278125, 0.35625, 0.278125, 0.478125, 0.55625, 0.334375, 0.55625, 0.55625, 0.5, 0.55625, 0.55625, 0.278125, 0.55625, 0.55625, 0.2234375, 0.2421875, 0.5, 0.2234375, 0.834375, 0.55625, 0.55625, 0.55625, 0.55625, 0.334375, 0.5, 0.278125, 0.55625, 0.5, 0.7234375, 0.5, 0.5, 0.5, 0.35625, 0.2609375, 0.3546875, 0.590625],
    avg: 0.5293256578947368
  },
  Seravek: {
    widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.215625, 0.296875, 0.4171875, 0.6734375, 0.4953125, 0.9125, 0.740625, 0.2421875, 0.3375, 0.3375, 0.409375, 0.60625, 0.2609375, 0.35625, 0.25625, 0.41875, 0.5921875, 0.3515625, 0.475, 0.4875, 0.5375, 0.509375, 0.5484375, 0.4546875, 0.5421875, 0.5484375, 0.25625, 0.2546875, 0.5875, 0.6171875, 0.5875, 0.4578125, 0.8140625, 0.6765625, 0.5703125, 0.6109375, 0.684375, 0.5109375, 0.4953125, 0.678125, 0.6859375, 0.2625, 0.2625, 0.5859375, 0.4734375, 0.846875, 0.709375, 0.740625, 0.509375, 0.740625, 0.584375, 0.5015625, 0.528125, 0.675, 0.5953125, 0.9453125, 0.596875, 0.540625, 0.540625, 0.359375, 0.4203125, 0.359375, 0.5109375, 0.421875, 0.4046875, 0.5015625, 0.5421875, 0.446875, 0.5453125, 0.484375, 0.38125, 0.5140625, 0.5546875, 0.240625, 0.2640625, 0.490625, 0.2765625, 0.8625, 0.5546875, 0.546875, 0.5453125, 0.5453125, 0.3625, 0.41875, 0.3890625, 0.5453125, 0.4703125, 0.7546875, 0.4921875, 0.4609375, 0.453125, 0.4015625, 0.2640625, 0.4015625, 0.58125],
    avg: 0.5044078947368421
  },
  serif: {
    widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2484375, 0.334375, 0.409375, 0.5, 0.5, 0.834375, 0.778125, 0.18125, 0.334375, 0.334375, 0.5, 0.5640625, 0.25, 0.334375, 0.25, 0.278125, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.278125, 0.278125, 0.5640625, 0.5640625, 0.5640625, 0.4453125, 0.921875, 0.7234375, 0.6671875, 0.6671875, 0.7234375, 0.6109375, 0.55625, 0.7234375, 0.7234375, 0.334375, 0.390625, 0.7234375, 0.6109375, 0.890625, 0.7234375, 0.7234375, 0.55625, 0.7234375, 0.6671875, 0.55625, 0.6109375, 0.7234375, 0.7234375, 0.9453125, 0.7234375, 0.7234375, 0.6109375, 0.334375, 0.340625, 0.334375, 0.4703125, 0.5, 0.3453125, 0.4453125, 0.5, 0.4453125, 0.5, 0.4453125, 0.3828125, 0.5, 0.5, 0.278125, 0.3359375, 0.5, 0.278125, 0.778125, 0.5, 0.5, 0.5, 0.5, 0.3375, 0.390625, 0.2796875, 0.5, 0.5, 0.7234375, 0.5, 0.5, 0.4453125, 0.48125, 0.2015625, 0.48125, 0.5421875],
    avg: 0.5126315789473684
  },
  Tahoma: {
    widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.3109375, 0.3328125, 0.4015625, 0.728125, 0.546875, 0.9765625, 0.70625, 0.2109375, 0.3828125, 0.3828125, 0.546875, 0.728125, 0.303125, 0.3640625, 0.303125, 0.3953125, 0.546875, 0.546875, 0.546875, 0.546875, 0.546875, 0.546875, 0.546875, 0.546875, 0.546875, 0.546875, 0.3546875, 0.3546875, 0.728125, 0.728125, 0.728125, 0.475, 0.909375, 0.6109375, 0.590625, 0.6015625, 0.6796875, 0.5625, 0.521875, 0.66875, 0.6765625, 0.3734375, 0.4171875, 0.6046875, 0.4984375, 0.771875, 0.66875, 0.7078125, 0.5515625, 0.7078125, 0.6375, 0.5578125, 0.5875, 0.65625, 0.60625, 0.903125, 0.58125, 0.5890625, 0.559375, 0.3828125, 0.39375, 0.3828125, 0.728125, 0.5625, 0.546875, 0.525, 0.553125, 0.4625, 0.553125, 0.5265625, 0.3546875, 0.553125, 0.5578125, 0.2296875, 0.328125, 0.51875, 0.2296875, 0.840625, 0.5578125, 0.54375, 0.553125, 0.553125, 0.3609375, 0.446875, 0.3359375, 0.5578125, 0.4984375, 0.7421875, 0.4953125, 0.4984375, 0.4453125, 0.48125, 0.3828125, 0.48125, 0.728125],
    avg: 0.5384374999999998
  },
  "Times New Roman": {
    widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2484375, 0.334375, 0.409375, 0.5, 0.5, 0.834375, 0.778125, 0.18125, 0.334375, 0.334375, 0.5, 0.5640625, 0.25, 0.334375, 0.25, 0.28125, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.278125, 0.278125, 0.5640625, 0.5640625, 0.5640625, 0.4453125, 0.921875, 0.7234375, 0.6671875, 0.6671875, 0.7234375, 0.6109375, 0.55625, 0.7234375, 0.7234375, 0.334375, 0.390625, 0.73125, 0.6109375, 0.890625, 0.7375, 0.7234375, 0.55625, 0.7234375, 0.6765625, 0.55625, 0.6109375, 0.7234375, 0.7234375, 0.9453125, 0.7234375, 0.7234375, 0.6109375, 0.334375, 0.28125, 0.334375, 0.4703125, 0.51875, 0.334375, 0.4453125, 0.503125, 0.4453125, 0.503125, 0.4453125, 0.4359375, 0.5, 0.5, 0.278125, 0.35625, 0.50625, 0.278125, 0.778125, 0.5, 0.5, 0.5046875, 0.5, 0.340625, 0.390625, 0.2796875, 0.5, 0.5, 0.7234375, 0.5, 0.5, 0.4453125, 0.48125, 0.2015625, 0.48125, 0.5421875],
    avg: 0.5134375
  },
  "Trebuchet MS": {
    widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.3015625, 0.3671875, 0.325, 0.53125, 0.525, 0.6015625, 0.70625, 0.1609375, 0.3671875, 0.3671875, 0.3671875, 0.525, 0.3671875, 0.3671875, 0.3671875, 0.525, 0.525, 0.525, 0.525, 0.525, 0.525, 0.525, 0.525, 0.525, 0.525, 0.525, 0.3671875, 0.3671875, 0.525, 0.525, 0.525, 0.3671875, 0.771875, 0.590625, 0.5671875, 0.5984375, 0.6140625, 0.5359375, 0.525, 0.6765625, 0.6546875, 0.2796875, 0.4765625, 0.5765625, 0.5078125, 0.7109375, 0.6390625, 0.675, 0.5578125, 0.7421875, 0.5828125, 0.48125, 0.58125, 0.6484375, 0.5875, 0.853125, 0.5578125, 0.5703125, 0.5515625, 0.3671875, 0.3578125, 0.3671875, 0.525, 0.53125, 0.525, 0.5265625, 0.5578125, 0.4953125, 0.5578125, 0.546875, 0.375, 0.503125, 0.546875, 0.2859375, 0.3671875, 0.5046875, 0.2953125, 0.83125, 0.546875, 0.5375, 0.5578125, 0.5578125, 0.3890625, 0.40625, 0.396875, 0.546875, 0.490625, 0.7453125, 0.5015625, 0.49375, 0.475, 0.3671875, 0.525, 0.3671875, 0.525],
    avg: 0.5085197368421052
  },
  Verdana: {
    widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.35, 0.39375, 0.459375, 0.81875, 0.6359375, 1.0765625, 0.759375, 0.26875, 0.4546875, 0.4546875, 0.6359375, 0.81875, 0.3640625, 0.4546875, 0.3640625, 0.4703125, 0.6359375, 0.6359375, 0.6359375, 0.6359375, 0.6359375, 0.6359375, 0.6359375, 0.6359375, 0.6359375, 0.6359375, 0.4546875, 0.4546875, 0.81875, 0.81875, 0.81875, 0.546875, 1, 0.684375, 0.6859375, 0.6984375, 0.771875, 0.6328125, 0.575, 0.7765625, 0.7515625, 0.421875, 0.4546875, 0.69375, 0.5578125, 0.84375, 0.7484375, 0.7875, 0.603125, 0.7875, 0.7, 0.684375, 0.6171875, 0.7328125, 0.684375, 0.9890625, 0.6859375, 0.615625, 0.6859375, 0.4546875, 0.46875, 0.4546875, 0.81875, 0.6421875, 0.6359375, 0.6015625, 0.6234375, 0.521875, 0.6234375, 0.596875, 0.384375, 0.6234375, 0.6328125, 0.275, 0.3765625, 0.5921875, 0.275, 0.9734375, 0.6328125, 0.6078125, 0.6234375, 0.6234375, 0.43125, 0.521875, 0.3953125, 0.6328125, 0.5921875, 0.81875, 0.5921875, 0.5921875, 0.5265625, 0.6359375, 0.4546875, 0.6359375, 0.81875],
    avg: 0.6171875000000003
  } //https://developer.mozilla.org/en/docs/Web/CSS/length
  // Absolute sizes in pixels for obsolete measurement units.

};
var absoluteMeasurementUnitsToPixels = {
  mm: 3.8,
  sm: 38,
  pt: 1.33,
  pc: 16,
  in: 96,
  px: 1
};
var relativeMeasurementUnitsCoef = {
  em: 1,
  ex: 0.5
};
var coefficients = {
  heightOverlapCoef: 1.05,
  // Coefficient for height value to prevent overlap.
  lineCapitalCoef: 1.15 // Coefficient for height value. Reserve space for capital chars.

};
var defaultStyle = {
  lineHeight: 1,
  letterSpacing: "0px",
  fontSize: 0,
  angle: 0,
  fontFamily: ""
};

var _degreeToRadian = function (angle) {
  return angle * Math.PI / 180;
};

var _getFontData = function (fontFamily) {
  var possibleFonts = fontFamily.split(",").map(function (f) {
    return f.replace(/'|"/g, "");
  });
  var fontMatch = possibleFonts.find(function (f) {
    return fonts[f];
  }) || "Helvetica";
  return fonts[fontMatch];
};

var _splitToLines = function (text) {
  return Array.isArray(text) ? text : text.toString().split(/\r\n|\r|\n/g);
};

var _getSizeWithRotate = function (axisSize, dependentSize, angle) {
  var angleInRadian = _degreeToRadian(angle);

  return Math.abs(Math.cos(angleInRadian) * axisSize) + Math.abs(Math.sin(angleInRadian) * dependentSize);
};
/**
 * Convert length-type parameters from specific measurement units to pixels
 * @param  {string} length Css length string value.
 * @param  {number} fontSize Current text font-size.
 * @returns {number} Approximate Css length in pixels.
 */


var convertLengthToPixels = function (length, fontSize) {
  var attribute = length.match(/[a-zA-Z%]+/) && length.match(/[a-zA-Z%]+/)[0];
  var value = length.match(/[0-9.,]+/);
  var result;

  if (!attribute) {
    result = value || 0;
  } else if (absoluteMeasurementUnitsToPixels.hasOwnProperty(attribute)) {
    result = value * absoluteMeasurementUnitsToPixels[attribute];
  } else if (relativeMeasurementUnitsCoef.hasOwnProperty(attribute)) {
    result = (fontSize ? value * fontSize : value * defaultStyle.fontSize) * relativeMeasurementUnitsCoef[attribute];
  } else {
    result = value;
  }

  return result;
};

var _prepareParams = function (inputStyle, index) {
  var lineStyle = Array.isArray(inputStyle) ? inputStyle[index] : inputStyle;

  var style = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, lineStyle, defaultStyle);

  return lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, style, {
    fontFamily: style.fontFamily,
    letterSpacing: typeof style.letterSpacing === "number" ? style.letterSpacing : convertLengthToPixels(String(style.letterSpacing), style.fontSize),
    fontSize: typeof style.fontSize === "number" ? style.fontSize : convertLengthToPixels(String(style.fontSize))
  });
};

var _approximateTextWidthInternal = function (text, style) {
  if (text === undefined || text === "" || text === null) {
    return 0;
  }

  var widths = _splitToLines(text).map(function (line, index) {
    var len = line.toString().length;

    var _prepareParams2 = _prepareParams(style, index),
        fontSize = _prepareParams2.fontSize,
        letterSpacing = _prepareParams2.letterSpacing,
        fontFamily = _prepareParams2.fontFamily;

    var fontData = _getFontData(fontFamily);

    var width = line.toString().split("").map(function (c) {
      return c.charCodeAt(0) < fontData.widths.length ? fontData.widths[c.charCodeAt(0)] : fontData.avg;
    }).reduce(function (cur, acc) {
      return acc + cur;
    }, 0) * fontSize;
    return width + letterSpacing * Math.max(len - 1, 0);
  });

  return Math.max.apply(Math, _toConsumableArray(widths));
};

var _approximateTextHeightInternal = function (text, style) {
  if (text === undefined || text === "" || text === null) {
    return 0;
  }

  return _splitToLines(text).reduce(function (total, line, index) {
    var lineStyle = _prepareParams(style, index);

    var containsCaps = line.toString().match(/[(A-Z)(0-9)]/);
    var height = containsCaps ? lineStyle.fontSize * coefficients.lineCapitalCoef : lineStyle.fontSize;
    return total + lineStyle.lineHeight * height;
  }, 0);
}; // Stubbable implementation.


var _approximateTextSizeInternal = {
  impl: function (text, style) {
    var angle = Array.isArray(style) ? style[0] && style[0].angle : style && style.angle;

    var height = _approximateTextHeightInternal(text, style);

    var width = _approximateTextWidthInternal(text, style);

    var widthWithRotate = angle ? _getSizeWithRotate(width, height, angle) : width;
    var heightWithRotate = angle ? _getSizeWithRotate(height, width, angle) : height;
    return {
      width: widthWithRotate,
      height: heightWithRotate * coefficients.heightOverlapCoef
    };
  }
};
/**
 * Predict text size by font params.
 * @param {string} text Content for width calculation.
 * @param {Object} style Text styles, ,fontFamily, fontSize, etc.
 * @param {string} style.fontFamily Text fontFamily.
 * @param {(number|string)} style.fontSize Text fontSize.
 * @param {number} style.angle Text rotate angle.
 * @param {string} style.letterSpacing Text letterSpacing(space between letters).
 * @param {number} style.lineHeight Line height coefficient.
 * @returns {number} Approximate text label height.
 */

var approximateTextSize = function (text, style) {
  return _approximateTextSizeInternal.impl(text, style);
};

/***/ }),

/***/ "./node_modules/victory-core/es/victory-util/timer-context.js":
/*!********************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-util/timer-context.js ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _timer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./timer */ "./node_modules/victory-core/es/victory-util/timer.js");


/**
 * The React context object consumers may use to access or override the global
 * timer.
 */

var TimerContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext({
  transitionTimer: new _timer__WEBPACK_IMPORTED_MODULE_1__["default"](),
  animationTimer: new _timer__WEBPACK_IMPORTED_MODULE_1__["default"]()
});
TimerContext.displayName = "TimerContext";
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);

/***/ }),

/***/ "./node_modules/victory-core/es/victory-util/timer.js":
/*!************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-util/timer.js ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ Timer)
/* harmony export */ });
/* harmony import */ var d3_timer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-timer */ "./node_modules/d3-timer/src/timer.js");
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }



var Timer =
/*#__PURE__*/
function () {
  function Timer() {
    _classCallCheck(this, Timer);

    this.shouldAnimate = true;
    this.subscribers = [];
    this.loop = this.loop.bind(this);
    this.timer = null;
    this.activeSubscriptions = 0;
  }

  _createClass(Timer, [{
    key: "bypassAnimation",
    value: function bypassAnimation() {
      this.shouldAnimate = false;
    }
  }, {
    key: "resumeAnimation",
    value: function resumeAnimation() {
      this.shouldAnimate = true;
    }
  }, {
    key: "loop",
    value: function loop() {
      this.subscribers.forEach(function (s) {
        s.callback((0,d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
      });
    }
  }, {
    key: "start",
    value: function start() {
      if (!this.timer) {
        this.timer = (0,d3_timer__WEBPACK_IMPORTED_MODULE_0__.timer)(this.loop);
      }
    }
  }, {
    key: "stop",
    value: function stop() {
      if (this.timer) {
        this.timer.stop();
        this.timer = null;
      }
    }
  }, {
    key: "subscribe",
    value: function subscribe(callback, duration) {
      duration = this.shouldAnimate ? duration : 0;
      var subscriptionID = this.subscribers.push({
        startTime: (0,d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)(),
        callback: callback,
        duration: duration
      });
      this.activeSubscriptions++;
      this.start();
      return subscriptionID;
    }
  }, {
    key: "unsubscribe",
    value: function unsubscribe(id) {
      if (id !== null && this.subscribers[id - 1]) {
        delete this.subscribers[id - 1];
        this.activeSubscriptions--;
      }

      if (this.activeSubscriptions === 0) {
        this.stop();
      }
    }
  }]);

  return Timer;
}();



/***/ }),

/***/ "./node_modules/victory-core/es/victory-util/transitions.js":
/*!******************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-util/transitions.js ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getInitialTransitionState": () => (/* binding */ getInitialTransitionState),
/* harmony export */   "getTransitionPropsFactory": () => (/* binding */ getTransitionPropsFactory)
/* harmony export */ });
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "./node_modules/lodash/keys.js");
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/identity */ "./node_modules/lodash/identity.js");
/* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js");
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");






function getDatumKey(datum, idx) {
  return (datum.key || idx).toString();
}

function getKeyedData(data) {
  return data.reduce(function (keyedData, datum, idx) {
    var key = getDatumKey(datum, idx);
    keyedData[key] = datum;
    return keyedData;
  }, {});
}

function getKeyedDataDifference(a, b) {
  var hasDifference = false;

  var difference = lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(a).reduce(function (_difference, key) {
    if (!(key in b)) {
      hasDifference = true;
      _difference[key] = true;
    }

    return _difference;
  }, {});

  return hasDifference && difference;
}
/**
 * Calculate which data-points exist in oldData and not nextData -
 * these are the `exiting` data-points.  Also calculate which
 * data-points exist in nextData and not oldData - these are the
 * `entering` data-points.
 *
 * @param  {Array} oldData   this.props.data Array
 * @param  {Array} nextData  this.props.data Array
 *
 * @return {Object}          Object with `entering` and `exiting` properties.
 *                           entering[datum.key] will be true if the data is
 *                           entering, and similarly for `exiting`.
 */


function getNodeTransitions(oldData, nextData) {
  var oldDataKeyed = oldData && getKeyedData(oldData);
  var nextDataKeyed = nextData && getKeyedData(nextData);
  return {
    entering: oldDataKeyed && getKeyedDataDifference(nextDataKeyed, oldDataKeyed),
    exiting: nextDataKeyed && getKeyedDataDifference(oldDataKeyed, nextDataKeyed)
  };
}

function getChildData(child) {
  if (child.type && child.type.getData) {
    return child.type.getData(child.props);
  }

  return child.props && child.props.data || false;
}
/**
 * If a parent component has animation enabled, calculate the transitions
 * for any data of any child component that supports data transitions
 * Data transitions are defined as any two datasets where data nodes exist
 * in the first set and not the second, in the second and not the first,
 * or both.
 *
 * @param  {Children}  oldChildren   this.props.children from old props
 * @param  {Children}  nextChildren  this.props.children from next props
 *
 * @return {Object}                  Object with the following properties:
 *                                    - nodesWillExit
 *                                    - nodesWillEnter
 *                                    - childrenTransitions
 *                                    - nodesShouldEnter
 */


function getInitialTransitionState(oldChildren, nextChildren) {
  var nodesWillExit = false;
  var nodesWillEnter = false;

  var getTransition = function (oldChild, newChild) {
    if (!newChild || oldChild.type !== newChild.type) {
      return {};
    }

    var _ref = getNodeTransitions(getChildData(oldChild), getChildData(newChild)) || {},
        entering = _ref.entering,
        exiting = _ref.exiting;

    nodesWillExit = nodesWillExit || !!exiting;
    nodesWillEnter = nodesWillEnter || !!entering;
    return {
      entering: entering || false,
      exiting: exiting || false
    };
  };

  var getTransitionsFromChildren = function (old, next) {
    return old.map(function (child, idx) {
      if (child && child.props && child.props.children && next[idx]) {
        return getTransitionsFromChildren(react__WEBPACK_IMPORTED_MODULE_4__.Children.toArray(old[idx].props.children), react__WEBPACK_IMPORTED_MODULE_4__.Children.toArray(next[idx].props.children));
      } // get Transition entering and exiting nodes


      return getTransition(child, next[idx]);
    });
  };

  var childrenTransitions = getTransitionsFromChildren(react__WEBPACK_IMPORTED_MODULE_4__.Children.toArray(oldChildren), react__WEBPACK_IMPORTED_MODULE_4__.Children.toArray(nextChildren));
  return {
    nodesWillExit: nodesWillExit,
    nodesWillEnter: nodesWillEnter,
    childrenTransitions: childrenTransitions,
    // TODO: This may need to be refactored for the following situation.
    //       The component receives new props, and the data provided
    //       is a perfect match for the previous data and domain except
    //       for new nodes. In this case, we wouldn't want a delay before
    //       the new nodes appear.
    nodesShouldEnter: false
  };
}

function getInitialChildProps(animate, data) {
  var after = animate.onEnter && animate.onEnter.after ? animate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_1___default());
  return {
    data: data.map(function (datum, idx) {
      return lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, datum, after(datum, idx, data));
    })
  };
} // eslint-disable-next-line max-params


function getChildBeforeLoad(animate, child, data, cb) {
  animate = lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, animate, {
    onEnd: cb
  });

  if (animate && animate.onLoad && !animate.onLoad.duration) {
    return {
      animate: animate,
      data: data
    };
  }

  var before = animate.onLoad && animate.onLoad.before ? animate.onLoad.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_1___default()); // If nodes need to exit, transform them with the provided onLoad.before function.

  data = data.map(function (datum, idx) {
    return lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, datum, before(datum, idx, data));
  });
  return {
    animate: animate,
    data: data,
    clipWidth: 0
  };
} // eslint-disable-next-line max-params


function getChildOnLoad(animate, data, cb) {
  animate = lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, animate, {
    onEnd: cb
  });

  if (animate && animate.onLoad && !animate.onLoad.duration) {
    return {
      animate: animate,
      data: data
    };
  }

  var after = animate.onLoad && animate.onLoad.after ? animate.onLoad.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_1___default()); // If nodes need to exit, transform them with the provided onLoad.after function.

  data = data.map(function (datum, idx) {
    return lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, datum, after(datum, idx, data));
  });
  return {
    animate: animate,
    data: data
  };
} // eslint-disable-next-line max-params, max-len


function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
  // Whether or not _this_ child has exiting nodes, we want the exit-
  // transition for all children to have the same duration, delay, etc.
  var onExit = animate && animate.onExit;
  animate = lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, animate, onExit);

  if (exitingNodes) {
    // After the exit transition occurs, trigger the animations for
    // nodes that are neither exiting or entering.
    animate.onEnd = cb;
    var before = animate.onExit && animate.onExit.before ? animate.onExit.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_1___default()); // If nodes need to exit, transform them with the provided onExit.before function.

    data = data.map(function (datum, idx) {
      var key = (datum.key || idx).toString();
      return exitingNodes[key] ? lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, datum, before(datum, idx, data)) : datum;
    });
  }

  return {
    animate: animate,
    data: data
  };
} // eslint-disable-next-line max-params,max-len


function getChildPropsBeforeEnter(animate, child, data, enteringNodes, cb) {
  if (enteringNodes) {
    // Perform a normal animation here, except - when it finishes - trigger
    // the transition for entering nodes.
    animate = lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, animate, {
      onEnd: cb
    });
    var before = animate.onEnter && animate.onEnter.before ? animate.onEnter.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_1___default()); // We want the entering nodes to be included in the transition target
    // domain.  However, we may not want these nodes to be displayed initially,
    // so perform the `onEnter.before` transformation on each node.

    data = data.map(function (datum, idx) {
      var key = (datum.key || idx).toString();
      return enteringNodes[key] ? lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, datum, before(datum, idx, data)) : datum;
    });
  }

  return {
    animate: animate,
    data: data
  };
} // eslint-disable-next-line max-params, max-len


function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
  // Whether or not _this_ child has entering nodes, we want the entering-
  // transition for all children to have the same duration, delay, etc.
  var onEnter = animate && animate.onEnter;
  animate = lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, animate, onEnter);

  if (enteringNodes) {
    // Old nodes have been transitioned to their new values, and the
    // domain should encompass the nodes that will now enter. So perform
    // the `onEnter.after` transformation on each node.
    animate.onEnd = cb;
    var after = animate.onEnter && animate.onEnter.after ? animate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_1___default());
    data = data.map(function (datum, idx) {
      var key = getDatumKey(datum, idx);
      return enteringNodes[key] ? lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, datum, after(datum, idx, data)) : datum;
    });
  }

  return {
    animate: animate,
    data: data
  };
}
/**
 * getTransitionPropsFactory - putting the Java in JavaScript.  This will return a
 * function that returns prop transformations for a child, given that child's props
 * and its index in the parent's children array.
 *
 * In particular, this will include an `animate` object that is set appropriately
 * so that each child will be synchoronized for each stage of a transition
 * animation.  It will also include a transformed `data` object, where each datum
 * is transformed by `animate.onExit` and `animate.onEnter` `before` and `after`
 * functions.
 *
 * @param  {Object}  props       `this.props` for the parent component.
 * @param  {Object} state        `this.state` for the parent component.
 * @param  {Function} setState    Function that, when called, will `this.setState` on
 *                                 the parent component with the provided object.
 *
 * @return {Function}              Child-prop transformation function.
 */


function getTransitionPropsFactory(props, state, setState) {
  var nodesWillExit = state && state.nodesWillExit;
  var nodesWillEnter = state && state.nodesWillEnter;
  var nodesShouldEnter = state && state.nodesShouldEnter;
  var nodesShouldLoad = state && state.nodesShouldLoad;
  var nodesDoneLoad = state && state.nodesDoneLoad;
  var childrenTransitions = state && state.childrenTransitions || [];
  var transitionDurations = {
    enter: props.animate && props.animate.onEnter && props.animate.onEnter.duration,
    exit: props.animate && props.animate.onExit && props.animate.onExit.duration,
    load: props.animate && props.animate.onLoad && props.animate.onLoad.duration,
    move: props.animate && props.animate.duration
  };

  var onLoad = function (child, data, animate) {
    if (nodesShouldLoad) {
      return getChildOnLoad(animate, data, function () {
        setState({
          nodesShouldLoad: false,
          nodesDoneLoad: true
        });
      });
    }

    return getChildBeforeLoad(animate, child, data, function () {
      setState({
        nodesDoneLoad: true
      });
    });
  }; // eslint-disable-next-line max-params


  var onExit = function (nodes, child, data, animate) {
    return getChildPropsOnExit(animate, child, data, nodes, function () {
      setState({
        nodesWillExit: false
      });
    });
  }; // eslint-disable-next-line max-params


  var onEnter = function (nodes, child, data, animate) {
    if (nodesShouldEnter) {
      return getChildPropsOnEnter(animate, data, nodes, function () {
        setState({
          nodesWillEnter: false
        });
      });
    }

    return getChildPropsBeforeEnter(animate, child, data, nodes, function () {
      setState({
        nodesShouldEnter: true
      });
    });
  };

  var getChildTransitionDuration = function (child, type) {
    var animate = child.props.animate;

    if (!child.type) {
      return {};
    }

    var defaultTransitions = child.props && child.props.polar ? child.type.defaultPolarTransitions || child.type.defaultTransitions : child.type.defaultTransitions;

    if (defaultTransitions) {
      var animationDuration = animate[type] && animate[type].duration;
      return animationDuration !== undefined ? animationDuration : defaultTransitions[type] && defaultTransitions[type].duration;
    } else {
      return {};
    }
  }; // eslint-disable-next-line max-statements, complexity, max-len


  return function getTransitionProps(child, index) {
    var data = getChildData(child) || [];

    var animate = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, props.animate, child.props.animate);

    var defaultTransitions = child.props.polar ? child.type.defaultPolarTransitions || child.type.defaultTransitions : child.type.defaultTransitions;
    animate.onExit = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, animate.onExit, defaultTransitions && defaultTransitions.onExit);
    animate.onEnter = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, animate.onEnter, defaultTransitions && defaultTransitions.onEnter);
    animate.onLoad = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, animate.onLoad, defaultTransitions && defaultTransitions.onLoad);
    var childTransitions = childrenTransitions[index] || childrenTransitions[0];

    if (!nodesDoneLoad) {
      // should do onLoad animation
      var load = transitionDurations.load !== undefined ? transitionDurations.load : getChildTransitionDuration(child, "onLoad");
      var animation = {
        duration: load
      };
      return onLoad(child, data, lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, animate, animation));
    } else if (nodesWillExit) {
      var exitingNodes = childTransitions && childTransitions.exiting;
      var exit = transitionDurations.exit !== undefined ? transitionDurations.exit : getChildTransitionDuration(child, "onExit"); // if nodesWillExit, but this child has no exiting nodes, set a delay instead of a duration

      var _animation = exitingNodes ? {
        duration: exit
      } : {
        delay: exit
      };

      return onExit(exitingNodes, child, data, lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, animate, _animation));
    } else if (nodesWillEnter) {
      var enteringNodes = childTransitions && childTransitions.entering;
      var enter = transitionDurations.enter !== undefined ? transitionDurations.enter : getChildTransitionDuration(child, "onEnter");
      var move = transitionDurations.move !== undefined ? transitionDurations.move : child.props.animate && child.props.animate.duration;
      var _animation2 = {
        duration: nodesShouldEnter && enteringNodes ? enter : move
      };
      return onEnter(enteringNodes, child, data, lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, animate, _animation2));
    } else if (!state && animate && animate.onExit) {
      // This is the initial render, and nodes may enter when props change. Because
      // animation interpolation is determined by old- and next- props, data may need
      // to be augmented with certain properties.
      //
      // For example, it may be desired that exiting nodes go from `opacity: 1` to
      // `opacity: 0`. Without setting this on a per-datum basis, the interpolation
      // might go from `opacity: undefined` to `opacity: 0`, which would result in
      // interpolated `opacity: NaN` values.
      //
      return getInitialChildProps(animate, data);
    }

    return {
      animate: animate,
      data: data
    };
  };
}

/***/ }),

/***/ "./node_modules/victory-core/es/victory-util/wrapper.js":
/*!**************************************************************!*\
  !*** ./node_modules/victory-core/es/victory-util/wrapper.js ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "./node_modules/lodash/isPlainObject.js");
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_values__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/values */ "./node_modules/lodash/values.js");
/* harmony import */ var lodash_values__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_values__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_uniqBy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/uniqBy */ "./node_modules/lodash/uniqBy.js");
/* harmony import */ var lodash_uniqBy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqBy__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/groupBy */ "./node_modules/lodash/groupBy.js");
/* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_groupBy__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var lodash_some__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/some */ "./node_modules/lodash/some.js");
/* harmony import */ var lodash_some__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_some__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/uniq */ "./node_modules/lodash/uniq.js");
/* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var lodash_flatten__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/flatten */ "./node_modules/lodash/flatten.js");
/* harmony import */ var lodash_flatten__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_flatten__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js");
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var _axis__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./axis */ "./node_modules/victory-core/es/victory-util/axis.js");
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./style */ "./node_modules/victory-core/es/victory-util/style.js");
/* harmony import */ var _transitions__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./transitions */ "./node_modules/victory-core/es/victory-util/transitions.js");
/* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./data */ "./node_modules/victory-core/es/victory-util/data.js");
/* harmony import */ var _domain__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./domain */ "./node_modules/victory-core/es/victory-util/domain.js");
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./events */ "./node_modules/victory-core/es/victory-util/events.js");
/* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./collection */ "./node_modules/victory-core/es/victory-util/collection.js");
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./helpers */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./scale */ "./node_modules/victory-core/es/victory-util/scale.js");
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./log */ "./node_modules/victory-core/es/victory-util/log.js");











function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }












/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
  getData: function (props, childComponents) {
    if (props.data) {
      return _data__WEBPACK_IMPORTED_MODULE_11__.getData(props);
    }

    childComponents = childComponents || react__WEBPACK_IMPORTED_MODULE_10__.Children.toArray(props.children);
    return this.getDataFromChildren(childComponents);
  },
  getDefaultDomainPadding: function (props, axis, childComponents) {
    if (props.polar || axis !== "x") {
      return undefined;
    }

    var groupComponent = childComponents.filter(function (child) {
      return child.type && child.type.role && child.type.role === "group";
    });

    if (groupComponent.length < 1) {
      return undefined;
    }

    var _groupComponent$0$pro = groupComponent[0].props,
        offset = _groupComponent$0$pro.offset,
        children = _groupComponent$0$pro.children;

    if (!offset) {
      return undefined;
    }

    var firstChild = Array.isArray(children) && children[0];

    if (!firstChild) {
      return undefined;
    }

    var barWidth = firstChild.props.barWidth;
    var dataLength = firstChild.props.data && firstChild.props.data.length || 1;

    if (firstChild && firstChild.type.role === "stack") {
      var nestedChild = firstChild.props.children && firstChild.props.children[0];

      if (!nestedChild) {
        return undefined;
      }

      barWidth = nestedChild.props.barWidth;
      dataLength = firstChild.props.children.length;
    }

    var width = barWidth || this.getWidth(props, children.length, dataLength);
    return {
      x: width * children.length / 2 + (offset - width * ((children.length - 1) / 2))
    };
  },
  getDomain: function (props, axis, childComponents) {
    childComponents = childComponents || react__WEBPACK_IMPORTED_MODULE_10__.Children.toArray(props.children);
    var propsDomain = _domain__WEBPACK_IMPORTED_MODULE_12__.getDomainFromProps(props, axis);
    var domainPadding = this.getDefaultDomainPadding(props, axis, childComponents);
    var domain;

    if (propsDomain) {
      domain = propsDomain;
    } else {
      var minDomain = _domain__WEBPACK_IMPORTED_MODULE_12__.getMinFromProps(props, axis);
      var maxDomain = _domain__WEBPACK_IMPORTED_MODULE_12__.getMaxFromProps(props, axis);
      var dataset = (props.data || props.y) && _data__WEBPACK_IMPORTED_MODULE_11__.getData(props);
      var dataDomain = dataset ? _domain__WEBPACK_IMPORTED_MODULE_12__.getDomainFromData(props, axis, dataset) : [];
      var childDomain = this.getDomainFromChildren(props, axis, childComponents);
      var min = minDomain || _collection__WEBPACK_IMPORTED_MODULE_13__.getMinValue(_toConsumableArray(dataDomain).concat(_toConsumableArray(childDomain)));
      var max = maxDomain || _collection__WEBPACK_IMPORTED_MODULE_13__.getMaxValue(_toConsumableArray(dataDomain).concat(_toConsumableArray(childDomain)));
      domain = _domain__WEBPACK_IMPORTED_MODULE_12__.getDomainFromMinMax(min, max);
    }

    return _domain__WEBPACK_IMPORTED_MODULE_12__.formatDomain(domain, lodash_assign__WEBPACK_IMPORTED_MODULE_9___default()({
      domainPadding: domainPadding
    }, props), axis);
  },
  getScale: function (props, axis, childComponents) {
    if (props.data) {
      return _scale__WEBPACK_IMPORTED_MODULE_14__.getBaseScale(props, axis);
    }

    var children = childComponents ? childComponents.slice(0) : react__WEBPACK_IMPORTED_MODULE_10__.Children.toArray(props.children);

    var iteratee = function (child) {
      var sharedProps = lodash_assign__WEBPACK_IMPORTED_MODULE_9___default()({}, child.props, {
        horizontal: props.horizontal
      });

      return _scale__WEBPACK_IMPORTED_MODULE_14__.getScaleType(sharedProps, axis);
    };

    var childScale = lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(_helpers__WEBPACK_IMPORTED_MODULE_15__.reduceChildren(children, iteratee, props)); // default to linear scale if more than one uniq scale type is given by children


    return childScale.length > 1 ? _scale__WEBPACK_IMPORTED_MODULE_14__.getScaleFromName("linear") : _scale__WEBPACK_IMPORTED_MODULE_14__.getScaleFromName(childScale[0]);
  },
  setAnimationState: function (props, nextProps) {
    if (!props.animate) {
      return;
    }

    if (props.animate.parentState) {
      var nodesWillExit = props.animate.parentState.nodesWillExit;
      var oldProps = nodesWillExit ? props : null;
      this.setState(lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
        oldProps: oldProps,
        nextProps: nextProps
      }, props.animate.parentState));
    } else {
      var oldChildren = react__WEBPACK_IMPORTED_MODULE_10__.Children.toArray(props.children);
      var nextChildren = react__WEBPACK_IMPORTED_MODULE_10__.Children.toArray(nextProps.children);

      var isContinuous = function (child) {
        var check = function (c) {
          return c.type && c.type.continuous;
        };

        return Array.isArray(child) ? lodash_some__WEBPACK_IMPORTED_MODULE_4___default()(child, check) : check(child);
      };

      var continuous = !props.polar && lodash_some__WEBPACK_IMPORTED_MODULE_4___default()(oldChildren, function (child) {
        return isContinuous(child) || child.props.children && isContinuous(child.props.children);
      });

      var _Transitions$getIniti = _transitions__WEBPACK_IMPORTED_MODULE_16__.getInitialTransitionState(oldChildren, nextChildren),
          _nodesWillExit = _Transitions$getIniti.nodesWillExit,
          nodesWillEnter = _Transitions$getIniti.nodesWillEnter,
          childrenTransitions = _Transitions$getIniti.childrenTransitions,
          nodesShouldEnter = _Transitions$getIniti.nodesShouldEnter;

      this.setState({
        nodesWillExit: _nodesWillExit,
        nodesWillEnter: nodesWillEnter,
        nodesShouldEnter: nodesShouldEnter,
        childrenTransitions: _collection__WEBPACK_IMPORTED_MODULE_13__.isArrayOfArrays(childrenTransitions) ? childrenTransitions[0] : childrenTransitions,
        oldProps: _nodesWillExit ? props : null,
        nextProps: nextProps,
        continuous: continuous
      });
    }
  },
  getAllEvents: function (props) {
    var components = ["groupComponent", "containerComponent", "labelComponent"];
    this.componentEvents = _events__WEBPACK_IMPORTED_MODULE_17__.getComponentEvents(props, components);
    var events = props.events;

    if (Array.isArray(this.componentEvents)) {
      var _componentEvents;

      events = Array.isArray(props.events) ? (_componentEvents = this.componentEvents).concat.apply(_componentEvents, _toConsumableArray(props.events)) : this.componentEvents;
    }

    return events || [];
  },
  getAnimationProps: function (props, child, index) {
    var _this = this;

    if (!props.animate) {
      return child.props.animate;
    }

    var getFilteredState = function () {
      var childrenTransitions = _this.state && _this.state.childrenTransitions;
      childrenTransitions = _collection__WEBPACK_IMPORTED_MODULE_13__.isArrayOfArrays(childrenTransitions) ? childrenTransitions[index] : childrenTransitions;
      return lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
        childrenTransitions: childrenTransitions
      }, _this.state);
    };

    var getTransitions = props.animate && props.animate.getTransitions;
    var state = getFilteredState();
    var parentState = props.animate && props.animate.parentState || state;

    if (!getTransitions) {
      var getTransitionProps = _transitions__WEBPACK_IMPORTED_MODULE_16__.getTransitionPropsFactory(props, state, function (newState) {
        return _this.setState(newState);
      });

      getTransitions = function (childComponent) {
        return getTransitionProps(childComponent, index);
      };
    }

    return lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
      getTransitions: getTransitions,
      parentState: parentState
    }, props.animate, child.props.animate);
  },
  getDomainFromChildren: function (props, axis, childComponents) {
    // eslint-disable-line max-statements, complexity, max-len
    var children = childComponents ? childComponents.slice(0) : react__WEBPACK_IMPORTED_MODULE_10__.Children.toArray(props.children);
    var parentData = props.data ? _data__WEBPACK_IMPORTED_MODULE_11__.getData(props, axis) : undefined;
    var polar = props.polar,
        startAngle = props.startAngle,
        endAngle = props.endAngle,
        categories = props.categories,
        minDomain = props.minDomain,
        maxDomain = props.maxDomain,
        horizontal = props.horizontal;
    var baseParentProps = {
      horizontal: horizontal,
      polar: polar,
      startAngle: startAngle,
      endAngle: endAngle,
      minDomain: minDomain,
      maxDomain: maxDomain,
      categories: categories
    };
    var parentProps = parentData ? lodash_assign__WEBPACK_IMPORTED_MODULE_9___default()(baseParentProps, {
      data: parentData
    }) : baseParentProps;

    var iteratee = function (child) {
      var sharedProps = lodash_assign__WEBPACK_IMPORTED_MODULE_9___default()({}, child.props, parentProps);

      if (!_domain__WEBPACK_IMPORTED_MODULE_12__.isDomainComponent(child)) {
        return null;
      } else if (child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default()(child.type.getDomain)) {
        return child.props && child.type.getDomain(sharedProps, axis);
      } else {
        return _domain__WEBPACK_IMPORTED_MODULE_12__.getDomain(sharedProps, axis);
      }
    };

    var childDomains = _helpers__WEBPACK_IMPORTED_MODULE_15__.reduceChildren(children, iteratee, props);
    var min = childDomains.length === 0 ? 0 : _collection__WEBPACK_IMPORTED_MODULE_13__.getMinValue(childDomains);
    var max = childDomains.length === 0 ? 1 : _collection__WEBPACK_IMPORTED_MODULE_13__.getMaxValue(childDomains);
    return [min, max];
  },
  addBinsToParentPropsIfHistogram: function (_ref) {
    var children = _ref.children,
        props = _ref.props,
        childComponents = _ref.childComponents,
        parentProps = _ref.parentProps;
    var someChildrenAreHistograms = children.some(function (child) {
      return child.type && child.type.role === "histogram";
    });
    var allChildrenAreHistograms = someChildrenAreHistograms && children.length && children.every(function (child) {
      return child.type && child.type.role === "histogram";
    });

    if (someChildrenAreHistograms && !allChildrenAreHistograms) {
      _log__WEBPACK_IMPORTED_MODULE_18__.warn("VictoryHistogram only supports being stacked with other VictoryHistogram components. Check to make sure that you are only passing VictoryHistogram components to VictoryStack");
    } // if we are stacking histograms, we need to generate explicit bins
    // or else each histogram may end up having different bins


    if (!allChildrenAreHistograms) {
      return parentProps;
    }

    var childBins = props.bins || childComponents[0].props.bins; // if we have explicit bins then we don't need to calculate them

    if (!Array.isArray(childBins)) {
      var combinedData = children.reduce(function (memo, child) {
        var xAccessor = _helpers__WEBPACK_IMPORTED_MODULE_15__.createAccessor(child.props.x || "x");
        return memo.concat(child.props.data.map(function (datum) {
          return {
            x: xAccessor(datum)
          };
        }));
      }, []); // use the same function to generate bins as VictoryHistogram but with
      // the combined data from above, then get explicit bins from that

      var getFormattedHistogramData = children[0].type.getFormattedData;
      childBins = getFormattedHistogramData({
        data: combinedData,
        bins: childBins
      }).reduce(function (memo, _ref2, index) {
        var x0 = _ref2.x0,
            x1 = _ref2.x1;
        return index === 0 ? memo.concat([x0, x1]) : memo.concat(x1);
      }, []);
    }

    return _objectSpread({}, parentProps, {
      bins: childBins
    });
  },
  getDataFromChildren: function (props, childComponents) {
    var polar = props.polar,
        startAngle = props.startAngle,
        endAngle = props.endAngle,
        categories = props.categories,
        minDomain = props.minDomain,
        maxDomain = props.maxDomain;
    var parentProps = {
      polar: polar,
      startAngle: startAngle,
      endAngle: endAngle,
      categories: categories,
      minDomain: minDomain,
      maxDomain: maxDomain
    };
    var stack = 0;
    var children = childComponents ? childComponents.slice(0) : react__WEBPACK_IMPORTED_MODULE_10__.Children.toArray(props.children);
    parentProps = this.addBinsToParentPropsIfHistogram({
      children: children,
      props: props,
      childComponents: childComponents,
      parentProps: parentProps
    });

    var iteratee = function (child, childName, parent) {
      var childProps = lodash_assign__WEBPACK_IMPORTED_MODULE_9___default()({}, child.props, parentProps);

      var childData;

      if (!_data__WEBPACK_IMPORTED_MODULE_11__.isDataComponent(child)) {
        return null;
      } else if (child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default()(child.type.getData)) {
        child = parent ? react__WEBPACK_IMPORTED_MODULE_10__.cloneElement(child, parent.props) : child;
        childData = child.type.getData(childProps);
      } else {
        childData = _data__WEBPACK_IMPORTED_MODULE_11__.getData(childProps);
      }

      stack += 1;
      return childData.map(function (datum, index) {
        return lodash_assign__WEBPACK_IMPORTED_MODULE_9___default()({
          _stack: stack,
          _group: index
        }, datum);
      });
    };

    var stacked = children.filter(function (c) {
      return c.type && c.type.role === "stack";
    }).length;

    var combine = function (memo, val) {
      return memo.concat(lodash_uniqBy__WEBPACK_IMPORTED_MODULE_2___default()(val, "_group"));
    };

    var datasets = _helpers__WEBPACK_IMPORTED_MODULE_15__.reduceChildren(children, iteratee, props, [], combine);
    var group = stacked ? "_group" : "_stack";
    return lodash_values__WEBPACK_IMPORTED_MODULE_1___default()(lodash_groupBy__WEBPACK_IMPORTED_MODULE_3___default()(datasets, group));
  },
  getColor: function (calculatedProps, child, index) {
    // check for styles first
    var style = calculatedProps.style;
    var colorScale = calculatedProps.colorScale,
        color = calculatedProps.color;

    if (style && style.data && style.data.fill) {
      return style.data.fill;
    }

    colorScale = child.props && child.props.colorScale ? child.props.colorScale : colorScale;
    color = child.props && child.props.color ? child.props.color : color;

    if (!colorScale && !color) {
      return undefined;
    }

    var colors = Array.isArray(colorScale) ? colorScale : _style__WEBPACK_IMPORTED_MODULE_19__.getColorScale(colorScale);
    return color || colors[index % colors.length];
  },
  getWidth: function (props, groupLength, seriesLength) {
    var datasets = props.datasets,
        horizontal = props.horizontal;
    var range = horizontal ? _helpers__WEBPACK_IMPORTED_MODULE_15__.getRange(props, "y") : _helpers__WEBPACK_IMPORTED_MODULE_15__.getRange(props, "x");
    var extent = Math.abs(range[1] - range[0]);
    seriesLength = seriesLength !== undefined ? seriesLength : Array.isArray(datasets[0]) && datasets[0].length || 1;
    groupLength = groupLength || datasets.length;
    var bars = groupLength * seriesLength;
    var barRatio = 0.5;
    return Math.round(barRatio * extent / bars);
  },
  getStyle: function (theme, style, role) {
    var defaultStyle = theme && theme[role] && theme[role].style ? theme[role].style : {};
    return _helpers__WEBPACK_IMPORTED_MODULE_15__.getStyles(style, defaultStyle);
  },
  getChildStyle: function (child, index, calculatedProps) {
    var style = calculatedProps.style,
        role = calculatedProps.role;
    var childStyle = child.props.style || {};

    if (Array.isArray(childStyle)) {
      return childStyle;
    }

    var childRole = child.type && child.type.role;
    var defaultFill = childRole === "stack" ? undefined : this.getColor(calculatedProps, child, index);
    var defaultColor = childRole === "line" ? {
      fill: "none",
      stroke: defaultFill
    } : {
      fill: defaultFill
    };
    var dataWidth = role === "stack" ? {} : {
      width: this.getWidth(calculatedProps)
    };

    var dataStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, childStyle.data, lodash_assign__WEBPACK_IMPORTED_MODULE_9___default()({}, dataWidth, style.data, defaultColor));

    var labelsStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, childStyle.labels, style.labels);

    return {
      parent: style.parent,
      data: dataStyle,
      labels: labelsStyle
    };
  },
  getStringsFromCategories: function (childComponents, axis) {
    var iteratee = function (child) {
      var childProps = child.props || {};

      if (!_domain__WEBPACK_IMPORTED_MODULE_12__.isDomainComponent(child) || !childProps.categories) {
        return null;
      } else {
        var categories = childProps.categories && !Array.isArray(childProps.categories) ? childProps.categories[axis] : childProps.props.categories;
        var categoryStrings = categories && categories.filter(function (val) {
          return typeof val === "string";
        });
        return categoryStrings ? _collection__WEBPACK_IMPORTED_MODULE_13__.removeUndefined(categoryStrings) : [];
      }
    };

    return _helpers__WEBPACK_IMPORTED_MODULE_15__.reduceChildren(childComponents.slice(0), iteratee);
  },
  getStringsFromData: function (childComponents) {
    var iteratee = function (child) {
      var childProps = child.props || {};
      var data;

      if (!_data__WEBPACK_IMPORTED_MODULE_11__.isDataComponent(child)) {
        return null;
      } else if (child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default()(child.type.getData)) {
        data = child.type.getData(childProps);
      } else {
        data = _data__WEBPACK_IMPORTED_MODULE_11__.getData(childProps);
      }

      return data.map(function (d) {
        return {
          x: d.xName,
          y: d.yName
        };
      });
    };

    var initialMemo = {
      x: [],
      y: []
    };

    var combine = function (memo, datum) {
      var x = Array.isArray(datum) ? datum.map(function (d) {
        return d.x;
      }).filter(Boolean) : datum.x;
      var y = Array.isArray(datum) ? datum.map(function (d) {
        return d.y;
      }).filter(Boolean) : datum.y;
      return {
        x: x !== undefined ? memo.x.concat(x) : memo.x,
        y: y !== undefined ? memo.y.concat(y) : memo.y
      };
    };

    return _helpers__WEBPACK_IMPORTED_MODULE_15__.reduceChildren(childComponents.slice(0), iteratee, {}, initialMemo, combine);
  },
  getCategoryAndAxisStringsFromChildren: function (props, axis, childComponents) {
    var categories = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(props.categories) ? props.categories[axis] : props.categories;
    var axisComponent = _axis__WEBPACK_IMPORTED_MODULE_20__.getAxisComponent(childComponents, axis);
    var axisStrings = axisComponent ? _data__WEBPACK_IMPORTED_MODULE_11__.getStringsFromAxes(axisComponent.props, axis) : [];
    var categoryStrings = categories || this.getStringsFromCategories(childComponents, axis);
    return lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(lodash_flatten__WEBPACK_IMPORTED_MODULE_7___default()(_toConsumableArray(categoryStrings).concat(_toConsumableArray(axisStrings))));
  },
  getStringsFromChildren: function (props, childComponents) {
    childComponents = childComponents || react__WEBPACK_IMPORTED_MODULE_10__.Children.toArray(props.children);
    var xStrings = this.getCategoryAndAxisStringsFromChildren(props, "x", childComponents);
    var yStrings = this.getCategoryAndAxisStringsFromChildren(props, "y", childComponents);
    var dataStrings = this.getStringsFromData(childComponents);
    return {
      x: lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(lodash_flatten__WEBPACK_IMPORTED_MODULE_7___default()(_toConsumableArray(xStrings).concat(_toConsumableArray(dataStrings.x)))),
      y: lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(lodash_flatten__WEBPACK_IMPORTED_MODULE_7___default()(_toConsumableArray(yStrings).concat(_toConsumableArray(dataStrings.y))))
    };
  },
  getCategories: function (props, childComponents, allStrings) {
    var xPropCategories = props.categories && !Array.isArray(props.categories) ? props.categories.x : props.categories;
    var yPropCategories = props.categories && !Array.isArray(props.categories) ? props.categories.y : props.categories;
    var fallbackRequired = !xPropCategories || !yPropCategories;
    var fallbackProps = fallbackRequired ? allStrings || this.getStringsFromChildren(props, childComponents) : {};
    var xCategories = xPropCategories || fallbackProps.x;
    var yCategories = yPropCategories || fallbackProps.y;
    return {
      x: xCategories.length > 0 ? xCategories : undefined,
      y: yCategories.length > 0 ? yCategories : undefined
    };
  }
});

/***/ }),

/***/ "./node_modules/victory-group/es/helper-methods.js":
/*!*********************************************************!*\
  !*** ./node_modules/victory-group/es/helper-methods.js ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getCalculatedProps": () => (/* binding */ getCalculatedProps),
/* harmony export */   "getChildren": () => (/* binding */ getChildren)
/* harmony export */ });
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/wrapper.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/scale.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/data.js");


function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }



var fallbackProps = {
  width: 450,
  height: 300,
  padding: 50,
  offset: 0
}; // eslint-disable-next-line max-statements

function getCalculatedProps(props, childComponents) {
  var role = "group";
  props = victory_core__WEBPACK_IMPORTED_MODULE_2__.modifyProps(props, fallbackProps, role);
  var style = victory_core__WEBPACK_IMPORTED_MODULE_3__["default"].getStyle(props.theme, props.style, role);
  var _props = props,
      offset = _props.offset,
      colorScale = _props.colorScale,
      color = _props.color,
      polar = _props.polar,
      horizontal = _props.horizontal;
  var categories = props.categories || victory_core__WEBPACK_IMPORTED_MODULE_3__["default"].getCategories(props, childComponents);
  var datasets = props.datasets || victory_core__WEBPACK_IMPORTED_MODULE_3__["default"].getDataFromChildren(props);
  var domain = {
    x: victory_core__WEBPACK_IMPORTED_MODULE_3__["default"].getDomain(lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
      categories: categories
    }), "x", childComponents),
    y: victory_core__WEBPACK_IMPORTED_MODULE_3__["default"].getDomain(lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
      categories: categories
    }), "y", childComponents)
  };
  var range = props.range || {
    x: victory_core__WEBPACK_IMPORTED_MODULE_2__.getRange(props, "x"),
    y: victory_core__WEBPACK_IMPORTED_MODULE_2__.getRange(props, "y")
  };
  var baseScale = {
    x: victory_core__WEBPACK_IMPORTED_MODULE_4__.getScaleFromProps(props, "x") || victory_core__WEBPACK_IMPORTED_MODULE_3__["default"].getScale(props, "x"),
    y: victory_core__WEBPACK_IMPORTED_MODULE_4__.getScaleFromProps(props, "y") || victory_core__WEBPACK_IMPORTED_MODULE_3__["default"].getScale(props, "y")
  };
  var scale = {
    x: baseScale.x.domain(domain.x).range(props.horizontal ? range.y : range.x),
    y: baseScale.y.domain(domain.y).range(props.horizontal ? range.x : range.y)
  };
  var origin = polar ? props.origin : victory_core__WEBPACK_IMPORTED_MODULE_2__.getPolarOrigin(props);
  var padding = victory_core__WEBPACK_IMPORTED_MODULE_2__.getPadding(props);
  return {
    datasets: datasets,
    categories: categories,
    range: range,
    domain: domain,
    horizontal: horizontal,
    scale: scale,
    style: style,
    colorScale: colorScale,
    color: color,
    offset: offset,
    origin: origin,
    padding: padding
  };
}

function pixelsToValue(props, axis, calculatedProps) {
  if (!props.offset) {
    return 0;
  }

  var currentAxis = victory_core__WEBPACK_IMPORTED_MODULE_2__.getCurrentAxis(axis, props.horizontal);
  var domain = calculatedProps.domain[axis];
  var range = calculatedProps.range[currentAxis];
  var domainExtent = Math.max.apply(Math, _toConsumableArray(domain)) - Math.min.apply(Math, _toConsumableArray(domain));
  var rangeExtent = Math.max.apply(Math, _toConsumableArray(range)) - Math.min.apply(Math, _toConsumableArray(range));
  return domainExtent / rangeExtent * props.offset;
} // eslint-disable-next-line max-params


function getX0(props, calculatedProps, index, role) {
  var groupLength = role === "stack" ? calculatedProps.datasets[0].length : calculatedProps.datasets.length;
  var center = (groupLength - 1) / 2;
  var totalWidth = pixelsToValue(props, "x", calculatedProps);
  return (index - center) * totalWidth;
} // eslint-disable-next-line max-params


function getPolarX0(props, calculatedProps, index, role) {
  var groupLength = role === "stack" ? calculatedProps.datasets[0].length : calculatedProps.datasets.length;
  var center = (groupLength - 1) / 2;
  var width = getAngularWidth(props, calculatedProps);
  return (index - center) * width;
}

function getAngularWidth(props, calculatedProps) {
  var range = calculatedProps.range;
  var angularRange = Math.abs(range.x[1] - range.x[0]);
  var r = Math.max.apply(Math, _toConsumableArray(range.y));
  return props.offset / (2 * Math.PI * r) * angularRange;
}

function getLabels(props, datasets, index) {
  if (!props.labels) {
    return undefined;
  }

  return Math.floor(datasets.length / 2) === index ? props.labels : undefined;
}

function getChildProps(props, calculatedProps) {
  var categories = calculatedProps.categories,
      domain = calculatedProps.domain,
      range = calculatedProps.range,
      scale = calculatedProps.scale,
      horizontal = calculatedProps.horizontal,
      origin = calculatedProps.origin,
      padding = calculatedProps.padding;
  var width = props.width,
      height = props.height,
      theme = props.theme,
      polar = props.polar;
  return {
    height: height,
    width: width,
    theme: theme,
    polar: polar,
    origin: origin,
    categories: categories,
    domain: domain,
    range: range,
    scale: scale,
    horizontal: horizontal,
    padding: padding,
    standalone: false
  };
}

function getColorScale(props, child) {
  var role = child.type && child.type.role;
  var colorScaleOptions = child.props.colorScale || props.colorScale;

  if (role !== "group" && role !== "stack") {
    return undefined;
  }

  return props.theme && props.theme.group ? colorScaleOptions || props.theme.group.colorScale : colorScaleOptions;
}

function getDataWithOffset(props) {
  var defaultDataset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  var offset = arguments.length > 2 ? arguments[2] : undefined;
  var dataset = props.data || props.y ? victory_core__WEBPACK_IMPORTED_MODULE_5__.getData(props) : defaultDataset;
  var xOffset = offset || 0;
  return dataset.map(function (datum) {
    var _x1 = datum._x instanceof Date ? new Date(datum._x.getTime() + xOffset) : datum._x + xOffset;

    return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, datum, {
      _x1: _x1
    });
  });
}

function getChildren(props, childComponents, calculatedProps) {
  props = victory_core__WEBPACK_IMPORTED_MODULE_2__.modifyProps(props, fallbackProps, "stack");
  childComponents = childComponents || react__WEBPACK_IMPORTED_MODULE_1__.Children.toArray(props.children);
  calculatedProps = calculatedProps || getCalculatedProps(props, childComponents);
  var _calculatedProps = calculatedProps,
      datasets = _calculatedProps.datasets;
  var _props2 = props,
      labelComponent = _props2.labelComponent,
      polar = _props2.polar;
  var childProps = getChildProps(props, calculatedProps);
  var parentName = props.name || "group";
  return childComponents.map(function (child, index) {
    var role = child.type && child.type.role;
    var xOffset = polar ? getPolarX0(props, calculatedProps, index, role) : getX0(props, calculatedProps, index, role);
    var style = role === "voronoi" || role === "tooltip" || role === "label" ? child.props.style : victory_core__WEBPACK_IMPORTED_MODULE_3__["default"].getChildStyle(child, index, calculatedProps);
    var labels = props.labels ? getLabels(props, datasets, index) : child.props.labels;
    var name = child.props.name || "".concat(parentName, "-").concat(role, "-").concat(index);
    return react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(child, lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
      labels: labels,
      style: style,
      key: "".concat(name, "-key-").concat(index),
      name: name,
      data: getDataWithOffset(props, datasets[index], xOffset),
      colorScale: getColorScale(props, child),
      labelComponent: labelComponent || child.props.labelComponent,
      xOffset: xOffset
    }, childProps));
  });
}

/***/ }),

/***/ "./node_modules/victory-group/es/victory-group.js":
/*!********************************************************!*\
  !*** ./node_modules/victory-group/es/victory-group.js ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ VictoryGroup)
/* harmony export */ });
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "./node_modules/lodash/isEmpty.js");
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js");
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/wrapper.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/common-props.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-container/victory-container.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-theme/victory-theme.js");
/* harmony import */ var victory_shared_events__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-shared-events */ "./node_modules/victory-shared-events/es/victory-shared-events.js");
/* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./helper-methods */ "./node_modules/victory-group/es/helper-methods.js");
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-fast-compare */ "./node_modules/react-fast-compare/index.js");
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);




function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }







var fallbackProps = {
  width: 450,
  height: 300,
  padding: 50,
  offset: 0
};

var VictoryGroup =
/*#__PURE__*/
function (_React$Component) {
  _inherits(VictoryGroup, _React$Component);

  function VictoryGroup(props) {
    var _this;

    _classCallCheck(this, VictoryGroup);

    _this = _possibleConstructorReturn(this, (VictoryGroup.__proto__ || Object.getPrototypeOf(VictoryGroup)).call(this, props));

    if (props.animate) {
      _this.state = {
        nodesShouldLoad: false,
        nodesDoneLoad: false,
        animating: true
      };
      _this.setAnimationState = victory_core__WEBPACK_IMPORTED_MODULE_5__["default"].setAnimationState.bind(_assertThisInitialized(_this));
    }

    return _this;
  }

  _createClass(VictoryGroup, [{
    key: "shouldComponentUpdate",
    value: function shouldComponentUpdate(nextProps) {
      if (this.props.animate) {
        if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(this.props, nextProps)) {
          this.setAnimationState(this.props, nextProps);
          return false;
        }
      }

      return true;
    }
  }, {
    key: "getNewChildren",
    value: function getNewChildren(props, childComponents, calculatedProps) {
      var children = (0,_helper_methods__WEBPACK_IMPORTED_MODULE_6__.getChildren)(props, childComponents, calculatedProps);
      var getAnimationProps = victory_core__WEBPACK_IMPORTED_MODULE_5__["default"].getAnimationProps.bind(this);
      return children.map(function (child, index) {
        var childProps = lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({
          animate: getAnimationProps(props, child, index)
        }, child.props);

        return react__WEBPACK_IMPORTED_MODULE_3__.cloneElement(child, childProps);
      });
    }
  }, {
    key: "renderContainer",
    value: function renderContainer(containerComponent, props) {
      var containerProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, containerComponent.props, props);

      return react__WEBPACK_IMPORTED_MODULE_3__.cloneElement(containerComponent, containerProps);
    }
  }, {
    key: "getContainerProps",
    value: function getContainerProps(props, calculatedProps) {
      var width = props.width,
          height = props.height,
          standalone = props.standalone,
          theme = props.theme,
          polar = props.polar,
          horizontal = props.horizontal,
          name = props.name;
      var domain = calculatedProps.domain,
          scale = calculatedProps.scale,
          style = calculatedProps.style,
          origin = calculatedProps.origin;
      return {
        domain: domain,
        scale: scale,
        width: width,
        height: height,
        standalone: standalone,
        theme: theme,
        style: style.parent,
        horizontal: horizontal,
        polar: polar,
        origin: origin,
        name: name
      };
    }
  }, {
    key: "render",
    value: function render() {
      var role = this.constructor.role;
      var props = this.state && this.state.nodesWillExit ? this.state.oldProps || this.props : this.props;
      var modifiedProps = victory_core__WEBPACK_IMPORTED_MODULE_7__.modifyProps(props, fallbackProps, role);
      var eventKey = modifiedProps.eventKey,
          containerComponent = modifiedProps.containerComponent,
          standalone = modifiedProps.standalone,
          groupComponent = modifiedProps.groupComponent,
          externalEventMutations = modifiedProps.externalEventMutations;
      var childComponents = react__WEBPACK_IMPORTED_MODULE_3__.Children.toArray(modifiedProps.children);
      var calculatedProps = (0,_helper_methods__WEBPACK_IMPORTED_MODULE_6__.getCalculatedProps)(modifiedProps, childComponents);
      var newChildren = this.getNewChildren(modifiedProps, childComponents, calculatedProps);
      var containerProps = standalone ? this.getContainerProps(modifiedProps, calculatedProps) : {};
      var container = standalone ? this.renderContainer(containerComponent, containerProps) : groupComponent;
      var events = victory_core__WEBPACK_IMPORTED_MODULE_5__["default"].getAllEvents(props);

      if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(events)) {
        return react__WEBPACK_IMPORTED_MODULE_3__.createElement(victory_shared_events__WEBPACK_IMPORTED_MODULE_8__["default"], {
          container: container,
          eventKey: eventKey,
          events: events,
          externalEventMutations: externalEventMutations
        }, newChildren);
      }

      return react__WEBPACK_IMPORTED_MODULE_3__.cloneElement(container, container.props, newChildren);
    }
  }]);

  return VictoryGroup;
}(react__WEBPACK_IMPORTED_MODULE_3__.Component);

Object.defineProperty(VictoryGroup, "displayName", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: "VictoryGroup"
});
Object.defineProperty(VictoryGroup, "role", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: "group"
});
Object.defineProperty(VictoryGroup, "propTypes", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_9__.baseProps, victory_core__WEBPACK_IMPORTED_MODULE_9__.dataProps, {
    children: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_10___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_10___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().node)]),
    color: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_10___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_10___default().func)]),
    colorScale: prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_10___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_10___default().string)), prop_types__WEBPACK_IMPORTED_MODULE_10___default().oneOf(["grayscale", "qualitative", "heatmap", "warm", "cool", "red", "green", "blue"])]),
    horizontal: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().bool),
    offset: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().number)
  })
});
Object.defineProperty(VictoryGroup, "defaultProps", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: {
    containerComponent: react__WEBPACK_IMPORTED_MODULE_3__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_11__["default"], null),
    groupComponent: react__WEBPACK_IMPORTED_MODULE_3__.createElement("g", null),
    samples: 50,
    sortOrder: "ascending",
    standalone: true,
    theme: victory_core__WEBPACK_IMPORTED_MODULE_12__["default"].grayscale
  }
});
Object.defineProperty(VictoryGroup, "expectedComponents", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: ["groupComponent", "containerComponent", "labelComponent"]
});
Object.defineProperty(VictoryGroup, "getChildren", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: _helper_methods__WEBPACK_IMPORTED_MODULE_6__.getChildren
});


/***/ }),

/***/ "./node_modules/victory-legend/es/helper-methods.js":
/*!**********************************************************!*\
  !*** ./node_modules/victory-legend/es/helper-methods.js ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getDimensions": () => (/* binding */ getDimensions),
/* harmony export */   "getBaseProps": () => (/* binding */ getBaseProps)
/* harmony export */ });
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js");
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/range */ "./node_modules/lodash/range.js");
/* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_sum__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/sum */ "./node_modules/lodash/sum.js");
/* harmony import */ var lodash_sum__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_sum__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/keys */ "./node_modules/lodash/keys.js");
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/groupBy */ "./node_modules/lodash/groupBy.js");
/* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_groupBy__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js");
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/style.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/textsize.js");








function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }



var getColorScale = function (props) {
  var colorScale = props.colorScale;
  return typeof colorScale === "string" ? victory_core__WEBPACK_IMPORTED_MODULE_7__.getColorScale(colorScale) : colorScale || [];
};

var getLabelStyles = function (props) {
  var data = props.data,
      style = props.style;
  return data.map(function (datum, index) {
    var baseLabelStyles = lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, datum.labels, style.labels);

    return victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateStyle(baseLabelStyles, {
      datum: datum,
      index: index,
      data: data
    });
  });
};

var getStyles = function (props, styleObject) {
  var style = props.style || {};
  styleObject = styleObject || {};
  var parentStyleProps = {
    height: "100%",
    width: "100%"
  };
  return {
    parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()(style.parent, styleObject.parent, parentStyleProps),
    data: lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, style.data, styleObject.data),
    labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, style.labels, styleObject.labels),
    border: lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, style.border, styleObject.border),
    title: lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, style.title, styleObject.title)
  };
};

var getCalculatedValues = function (props) {
  var orientation = props.orientation,
      theme = props.theme;
  var defaultStyles = theme && theme.legend && theme.legend.style ? theme.legend.style : {};
  var style = getStyles(props, defaultStyles);
  var colorScale = getColorScale(props);
  var isHorizontal = orientation === "horizontal";
  var borderPadding = victory_core__WEBPACK_IMPORTED_MODULE_8__.getPadding({
    padding: props.borderPadding
  });
  return lodash_assign__WEBPACK_IMPORTED_MODULE_5___default()({}, props, {
    style: style,
    isHorizontal: isHorizontal,
    colorScale: colorScale,
    borderPadding: borderPadding
  });
};

var getColumn = function (props, index) {
  var itemsPerRow = props.itemsPerRow,
      isHorizontal = props.isHorizontal;

  if (!itemsPerRow) {
    return isHorizontal ? index : 0;
  }

  return isHorizontal ? index % itemsPerRow : Math.floor(index / itemsPerRow);
};

var getRow = function (props, index) {
  var itemsPerRow = props.itemsPerRow,
      isHorizontal = props.isHorizontal;

  if (!itemsPerRow) {
    return isHorizontal ? 0 : index;
  }

  return isHorizontal ? Math.floor(index / itemsPerRow) : index % itemsPerRow;
};

var groupData = function (props) {
  var data = props.data;
  var style = props.style && props.style.data || {};
  var labelStyles = getLabelStyles(props);
  return data.map(function (datum, index) {
    var symbol = datum.symbol || {};
    var fontSize = labelStyles[index].fontSize; // eslint-disable-next-line no-magic-numbers

    var size = symbol.size || style.size || fontSize / 2.5;
    var symbolSpacer = props.symbolSpacer || Math.max(size, fontSize);
    return _objectSpread({}, datum, {
      size: size,
      symbolSpacer: symbolSpacer,
      fontSize: fontSize,
      textSize: victory_core__WEBPACK_IMPORTED_MODULE_9__.approximateTextSize(datum.name, labelStyles[index]),
      column: getColumn(props, index),
      row: getRow(props, index)
    });
  });
};

var getColumnWidths = function (props, data) {
  var gutter = props.gutter || {};
  var gutterWidth = typeof gutter === "object" ? (gutter.left || 0) + (gutter.right || 0) : gutter || 0;

  var dataByColumn = lodash_groupBy__WEBPACK_IMPORTED_MODULE_4___default()(data, "column");

  var columns = lodash_keys__WEBPACK_IMPORTED_MODULE_3___default()(dataByColumn);

  return columns.reduce(function (memo, curr, index) {
    var lengths = dataByColumn[curr].map(function (d) {
      return d.textSize.width + d.size + d.symbolSpacer + gutterWidth;
    });
    memo[index] = Math.max.apply(Math, _toConsumableArray(lengths));
    return memo;
  }, []);
};

var getRowHeights = function (props, data) {
  var gutter = props.rowGutter || {};
  var gutterHeight = typeof gutter === "object" ? (gutter.top || 0) + (gutter.bottom || 0) : gutter || 0;

  var dataByRow = lodash_groupBy__WEBPACK_IMPORTED_MODULE_4___default()(data, "row");

  return lodash_keys__WEBPACK_IMPORTED_MODULE_3___default()(dataByRow).reduce(function (memo, curr, index) {
    var rows = dataByRow[curr];
    var lengths = rows.map(function (d) {
      return d.textSize.height + d.symbolSpacer + gutterHeight;
    });
    memo[index] = Math.max.apply(Math, _toConsumableArray(lengths));
    return memo;
  }, []);
};

var getTitleDimensions = function (props) {
  var style = props.style && props.style.title || {};
  var textSize = victory_core__WEBPACK_IMPORTED_MODULE_9__.approximateTextSize(props.title, style);
  var padding = style.padding || 0;
  return {
    height: textSize.height + 2 * padding || 0,
    width: textSize.width + 2 * padding || 0
  };
};

var getOffset = function (datum, rowHeights, columnWidths) {
  var column = datum.column,
      row = datum.row;
  return {
    x: lodash_range__WEBPACK_IMPORTED_MODULE_1___default()(column).reduce(function (memo, curr) {
      memo += columnWidths[curr];
      return memo;
    }, 0),
    y: lodash_range__WEBPACK_IMPORTED_MODULE_1___default()(row).reduce(function (memo, curr) {
      memo += rowHeights[curr];
      return memo;
    }, 0)
  };
};

var getAnchors = function (titleOrientation, centerTitle) {
  var standardAnchors = {
    textAnchor: titleOrientation === "right" ? "end" : "start",
    verticalAnchor: titleOrientation === "bottom" ? "end" : "start"
  };

  if (centerTitle) {
    var horizontal = titleOrientation === "top" || titleOrientation === "bottom";
    return {
      textAnchor: horizontal ? "middle" : standardAnchors.textAnchor,
      verticalAnchor: horizontal ? standardAnchors.verticalAnchor : "middle"
    };
  } else {
    return standardAnchors;
  }
};

var getTitleStyle = function (props) {
  var titleOrientation = props.titleOrientation,
      centerTitle = props.centerTitle,
      titleComponent = props.titleComponent;
  var baseStyle = props.style && props.style.title || {};
  var componentStyle = titleComponent.props && titleComponent.props.style || {};
  var anchors = getAnchors(titleOrientation, centerTitle);
  return Array.isArray(componentStyle) ? componentStyle.map(function (obj) {
    return lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, obj, baseStyle, anchors);
  }) : lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, componentStyle, baseStyle, anchors);
}; // eslint-disable-next-line complexity


var getTitleProps = function (props, borderProps) {
  var title = props.title,
      titleOrientation = props.titleOrientation,
      centerTitle = props.centerTitle,
      borderPadding = props.borderPadding;
  var height = borderProps.height,
      width = borderProps.width;
  var style = getTitleStyle(props);
  var padding = Array.isArray(style) ? style[0].padding : style.padding;
  var horizontal = titleOrientation === "top" || titleOrientation === "bottom";
  var xOrientation = titleOrientation === "bottom" ? "bottom" : "top";
  var yOrientation = titleOrientation === "right" ? "right" : "left";
  var standardPadding = {
    x: centerTitle ? width / 2 : borderPadding[xOrientation] + (padding || 0),
    y: centerTitle ? height / 2 : borderPadding[yOrientation] + (padding || 0)
  };

  var getPadding = function () {
    return borderPadding[titleOrientation] + (padding || 0);
  };

  var xOffset = horizontal ? standardPadding.x : getPadding();
  var yOffset = horizontal ? getPadding() : standardPadding.y;
  return {
    x: titleOrientation === "right" ? props.x + width - xOffset : props.x + xOffset,
    y: titleOrientation === "bottom" ? props.y + height - yOffset : props.y + yOffset,
    style: style,
    text: title
  };
};

var getBorderProps = function (props, contentHeight, contentWidth) {
  var x = props.x,
      y = props.y,
      borderPadding = props.borderPadding,
      style = props.style;
  var height = (contentHeight || 0) + borderPadding.top + borderPadding.bottom;
  var width = (contentWidth || 0) + borderPadding.left + borderPadding.right;
  return {
    x: x,
    y: y,
    height: height,
    width: width,
    style: lodash_assign__WEBPACK_IMPORTED_MODULE_5___default()({
      fill: "none"
    }, style.border)
  };
};

var getDimensions = function (props, fallbackProps) {
  var modifiedProps = victory_core__WEBPACK_IMPORTED_MODULE_8__.modifyProps(props, fallbackProps, "legend");
  props = lodash_assign__WEBPACK_IMPORTED_MODULE_5___default()({}, modifiedProps, getCalculatedValues(modifiedProps));
  var _props = props,
      title = _props.title,
      titleOrientation = _props.titleOrientation;
  var groupedData = groupData(props);
  var columnWidths = getColumnWidths(props, groupedData);
  var rowHeights = getRowHeights(props, groupedData);
  var titleDimensions = title ? getTitleDimensions(props) : {
    height: 0,
    width: 0
  };
  return {
    height: titleOrientation === "left" || titleOrientation === "right" ? Math.max(lodash_sum__WEBPACK_IMPORTED_MODULE_2___default()(rowHeights), titleDimensions.height) : lodash_sum__WEBPACK_IMPORTED_MODULE_2___default()(rowHeights) + titleDimensions.height,
    width: titleOrientation === "left" || titleOrientation === "right" ? lodash_sum__WEBPACK_IMPORTED_MODULE_2___default()(columnWidths) + titleDimensions.width : Math.max(lodash_sum__WEBPACK_IMPORTED_MODULE_2___default()(columnWidths), titleDimensions.width)
  };
};
var getBaseProps = function (props, fallbackProps) {
  var modifiedProps = victory_core__WEBPACK_IMPORTED_MODULE_8__.modifyProps(props, fallbackProps, "legend");
  props = lodash_assign__WEBPACK_IMPORTED_MODULE_5___default()({}, modifiedProps, getCalculatedValues(modifiedProps));
  var _props2 = props,
      data = _props2.data,
      standalone = _props2.standalone,
      theme = _props2.theme,
      padding = _props2.padding,
      style = _props2.style,
      colorScale = _props2.colorScale,
      gutter = _props2.gutter,
      rowGutter = _props2.rowGutter,
      borderPadding = _props2.borderPadding,
      title = _props2.title,
      titleOrientation = _props2.titleOrientation,
      name = _props2.name,
      _props2$x = _props2.x,
      x = _props2$x === void 0 ? 0 : _props2$x,
      _props2$y = _props2.y,
      y = _props2$y === void 0 ? 0 : _props2$y;
  var groupedData = groupData(props);
  var columnWidths = getColumnWidths(props, groupedData);
  var rowHeights = getRowHeights(props, groupedData);
  var labelStyles = getLabelStyles(props);
  var titleDimensions = title ? getTitleDimensions(props) : {
    height: 0,
    width: 0
  };
  var titleOffset = {
    x: titleOrientation === "left" ? titleDimensions.width : 0,
    y: titleOrientation === "top" ? titleDimensions.height : 0
  };
  var gutterOffset = {
    x: gutter && typeof gutter === "object" ? gutter.left || 0 : 0,
    y: rowGutter && typeof rowGutter === "object" ? rowGutter.top || 0 : 0
  };

  var _getDimensions = getDimensions(props, fallbackProps),
      height = _getDimensions.height,
      width = _getDimensions.width;

  var borderProps = getBorderProps(props, height, width);
  var titleProps = getTitleProps(props, borderProps);
  var initialProps = {
    parent: {
      data: data,
      standalone: standalone,
      theme: theme,
      padding: padding,
      name: name,
      height: props.height,
      width: props.width,
      style: style.parent
    },
    all: {
      border: borderProps,
      title: titleProps
    }
  };
  return groupedData.reduce(function (childProps, datum, i) {
    var color = colorScale[i % colorScale.length];

    var dataStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_6___default()({}, datum.symbol, style.data, {
      fill: color
    });

    var eventKey = !lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(datum.eventKey) ? datum.eventKey : i;
    var offset = getOffset(datum, rowHeights, columnWidths);
    var originY = y + borderPadding.top + datum.symbolSpacer;
    var originX = x + borderPadding.left + datum.symbolSpacer;
    var dataProps = {
      index: i,
      data: data,
      datum: datum,
      symbol: dataStyle.type || dataStyle.symbol || "circle",
      size: datum.size,
      style: dataStyle,
      y: originY + offset.y + titleOffset.y + gutterOffset.y,
      x: originX + offset.x + titleOffset.x + gutterOffset.x
    };
    var labelProps = {
      datum: datum,
      data: data,
      text: datum.name,
      style: labelStyles[i],
      y: dataProps.y,
      x: dataProps.x + datum.symbolSpacer + datum.size / 2
    };
    childProps[eventKey] = {
      data: dataProps,
      labels: labelProps
    };
    return childProps;
  }, initialProps);
};

/***/ }),

/***/ "./node_modules/victory-legend/es/victory-legend.js":
/*!**********************************************************!*\
  !*** ./node_modules/victory-legend/es/victory-legend.js ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./helper-methods */ "./node_modules/victory-legend/es/helper-methods.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/prop-types.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-primitives/border.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-container/victory-container.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-primitives/point.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-label/victory-label.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-theme/victory-theme.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/add-events.js");
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }





var fallbackProps = {
  orientation: "vertical",
  titleOrientation: "top",
  width: 450,
  height: 300,
  x: 0,
  y: 0
};
var defaultLegendData = [{
  name: "Series 1"
}, {
  name: "Series 2"
}];

var VictoryLegend =
/*#__PURE__*/
function (_React$Component) {
  _inherits(VictoryLegend, _React$Component);

  function VictoryLegend() {
    _classCallCheck(this, VictoryLegend);

    return _possibleConstructorReturn(this, (VictoryLegend.__proto__ || Object.getPrototypeOf(VictoryLegend)).apply(this, arguments));
  }

  _createClass(VictoryLegend, [{
    key: "renderChildren",
    value: function renderChildren(props) {
      var _this = this;

      var dataComponent = props.dataComponent,
          labelComponent = props.labelComponent,
          title = props.title;
      var dataComponents = this.dataKeys.map(function (_dataKey, index) {
        if (_dataKey === "all") {
          return undefined;
        }

        var dataProps = _this.getComponentProps(dataComponent, "data", index);

        return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(dataComponent, dataProps);
      }).filter(Boolean);
      var labelComponents = this.dataKeys.map(function (_dataKey, index) {
        if (_dataKey === "all") {
          return undefined;
        }

        var labelProps = _this.getComponentProps(labelComponent, "labels", index);

        if (labelProps.text !== undefined && labelProps.text !== null) {
          return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(labelComponent, labelProps);
        }

        return undefined;
      }).filter(Boolean);
      var borderProps = this.getComponentProps(props.borderComponent, "border", "all");
      var borderComponent = react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(props.borderComponent, borderProps);

      if (title) {
        var titleProps = this.getComponentProps(props.title, "title", "all");
        var titleComponent = react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(props.titleComponent, titleProps);
        return [borderComponent].concat(_toConsumableArray(dataComponents), [titleComponent], _toConsumableArray(labelComponents));
      }

      return [borderComponent].concat(_toConsumableArray(dataComponents), _toConsumableArray(labelComponents));
    }
  }, {
    key: "render",
    value: function render() {
      var role = this.constructor.role;
      var props = victory_core__WEBPACK_IMPORTED_MODULE_1__.modifyProps(this.props, fallbackProps, role);
      var children = [this.renderChildren(props)];
      return props.standalone ? this.renderContainer(props.containerComponent, children) : react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(props.groupComponent, {}, children);
    }
  }]);

  return VictoryLegend;
}(react__WEBPACK_IMPORTED_MODULE_0__.Component);

Object.defineProperty(VictoryLegend, "displayName", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: "VictoryLegend"
});
Object.defineProperty(VictoryLegend, "role", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: "legend"
});
Object.defineProperty(VictoryLegend, "propTypes", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: {
    borderComponent: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().element),
    borderPadding: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_2___default().number), prop_types__WEBPACK_IMPORTED_MODULE_2___default().shape({
      top: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number),
      bottom: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number),
      left: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number),
      right: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number)
    })]),
    centerTitle: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
    colorScale: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_2___default().string)), prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(["grayscale", "qualitative", "heatmap", "warm", "cool", "red", "green", "blue"])]),
    containerComponent: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().element),
    data: prop_types__WEBPACK_IMPORTED_MODULE_2___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_2___default().shape({
      name: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string.isRequired),
      label: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
      symbol: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object)
    })),
    dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().element),
    eventKey: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_2___default().func), victory_core__WEBPACK_IMPORTED_MODULE_3__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_3__.integer, victory_core__WEBPACK_IMPORTED_MODULE_3__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string)]),
    events: prop_types__WEBPACK_IMPORTED_MODULE_2___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_2___default().shape({
      target: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(["data", "labels", "parent"]),
      eventKey: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_2___default().array), victory_core__WEBPACK_IMPORTED_MODULE_3__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_3__.integer, victory_core__WEBPACK_IMPORTED_MODULE_3__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string)]),
      eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object)
    })),
    externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_2___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_2___default().shape({
      callback: (prop_types__WEBPACK_IMPORTED_MODULE_2___default()["function"]),
      childName: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_2___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().array)]),
      eventKey: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_2___default().array), victory_core__WEBPACK_IMPORTED_MODULE_3__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_3__.integer, victory_core__WEBPACK_IMPORTED_MODULE_3__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string)]),
      mutation: (prop_types__WEBPACK_IMPORTED_MODULE_2___default()["function"]),
      target: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_2___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().array)])
    })),
    groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().element),
    gutter: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_2___default().number), prop_types__WEBPACK_IMPORTED_MODULE_2___default().shape({
      left: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number),
      right: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number)
    })]),
    height: victory_core__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
    itemsPerRow: victory_core__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
    labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().element),
    name: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
    orientation: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(["horizontal", "vertical"]),
    padding: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_2___default().number), prop_types__WEBPACK_IMPORTED_MODULE_2___default().shape({
      top: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number),
      bottom: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number),
      left: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number),
      right: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number)
    })]),
    rowGutter: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_2___default().number), prop_types__WEBPACK_IMPORTED_MODULE_2___default().shape({
      top: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number),
      bottom: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number)
    })]),
    sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_2___default().shape({
      events: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().array),
      getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().func)
    }),
    standalone: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
    style: prop_types__WEBPACK_IMPORTED_MODULE_2___default().shape({
      border: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
      data: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
      labels: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
      parent: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
      title: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object)
    }),
    symbolSpacer: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number),
    theme: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
    title: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_2___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().array)]),
    titleComponent: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().element),
    titleOrientation: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(["top", "bottom", "left", "right"]),
    width: victory_core__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
    x: victory_core__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
    y: victory_core__WEBPACK_IMPORTED_MODULE_3__.nonNegative
  }
});
Object.defineProperty(VictoryLegend, "defaultProps", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: {
    borderComponent: react__WEBPACK_IMPORTED_MODULE_0__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__["default"], null),
    data: defaultLegendData,
    containerComponent: react__WEBPACK_IMPORTED_MODULE_0__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__["default"], null),
    dataComponent: react__WEBPACK_IMPORTED_MODULE_0__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__["default"], null),
    groupComponent: react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", null),
    labelComponent: react__WEBPACK_IMPORTED_MODULE_0__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__["default"], null),
    standalone: true,
    theme: victory_core__WEBPACK_IMPORTED_MODULE_8__["default"].grayscale,
    titleComponent: react__WEBPACK_IMPORTED_MODULE_0__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__["default"], null)
  }
});
Object.defineProperty(VictoryLegend, "getBaseProps", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: function (props) {
    return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_9__.getBaseProps)(props, fallbackProps);
  }
});
Object.defineProperty(VictoryLegend, "getDimensions", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: function (props) {
    return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_9__.getDimensions)(props, fallbackProps);
  }
});
Object.defineProperty(VictoryLegend, "expectedComponents", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: ["borderComponent", "containerComponent", "dataComponent", "groupComponent", "labelComponent", "titleComponent"]
});
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_10__["default"])(VictoryLegend));

/***/ }),

/***/ "./node_modules/victory-polar-axis/es/helper-methods.js":
/*!**************************************************************!*\
  !*** ./node_modules/victory-polar-axis/es/helper-methods.js ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "getScale": () => (/* binding */ getScale),
/* harmony export */   "getStyles": () => (/* binding */ getStyles),
/* harmony export */   "getBaseProps": () => (/* binding */ getBaseProps)
/* harmony export */ });
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js");
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_uniqBy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/uniqBy */ "./node_modules/lodash/uniqBy.js");
/* harmony import */ var lodash_uniqBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqBy__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/axis.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/scale.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/label-helpers.js");





var getPosition = function (r, angle, axis) {
  return axis === "x" ? r * Math.cos(angle) : -r * Math.sin(angle);
};

var getAxisType = function (props) {
  var typicalType = props.dependentAxis ? "radial" : "angular";
  var invertedType = typicalType === "angular" ? "radial" : "angular";
  return props.horizontal ? invertedType : typicalType;
};

var filterTicks = function (ticks, scale) {
  var compareTicks = function (t) {
    return scale(t) % (2 * Math.PI);
  };

  return lodash_uniqBy__WEBPACK_IMPORTED_MODULE_1___default()(ticks, compareTicks);
};

var getEvaluatedStyles = function (style, props) {
  return {
    tickStyle: victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateStyle(style.ticks, props),
    labelStyle: victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateStyle(style.tickLabels, props),
    gridStyle: victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateStyle(style.grid, props)
  };
};

var getStyleObject = function (props) {
  var _props$theme = props.theme,
      theme = _props$theme === void 0 ? {} : _props$theme,
      dependentAxis = props.dependentAxis;
  var generalAxisStyle = theme.polarAxis && theme.polarAxis.style || theme.axis && theme.axis.style;
  var polarAxisType = dependentAxis ? "polarDependentAxis" : "polarIndependentAxis";
  var standardAxisType = dependentAxis ? "dependentAxis" : "independentAxis";
  var specificAxisStyle = theme[polarAxisType] && theme[polarAxisType].style || theme[standardAxisType] && theme[standardAxisType].style;

  var mergeStyles = function () {
    var styleNamespaces = ["axis", "axisLabel", "grid", "parent", "tickLabels", "ticks"];
    return styleNamespaces.reduce(function (memo, curr) {
      memo[curr] = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, specificAxisStyle[curr], generalAxisStyle[curr]);
      return memo;
    }, {});
  };

  return generalAxisStyle && specificAxisStyle ? mergeStyles() : specificAxisStyle || generalAxisStyle;
};

var getRadius = function (props) {
  var _Helpers$getPadding = victory_core__WEBPACK_IMPORTED_MODULE_3__.getPadding(props),
      left = _Helpers$getPadding.left,
      right = _Helpers$getPadding.right,
      top = _Helpers$getPadding.top,
      bottom = _Helpers$getPadding.bottom;

  var width = props.width,
      height = props.height;
  return Math.min(width - left - right, height - top - bottom) / 2;
};

var getRange = function (props, axis) {
  // Return the range from props if one is given.
  if (props.range && props.range[axis]) {
    return props.range[axis];
  } else if (props.range && Array.isArray(props.range)) {
    return props.range;
  }

  var axisType = getAxisType(props);

  if (axisType === "angular") {
    var startAngle = victory_core__WEBPACK_IMPORTED_MODULE_3__.degreesToRadians(props.startAngle);
    var endAngle = victory_core__WEBPACK_IMPORTED_MODULE_3__.degreesToRadians(props.endAngle);
    return [startAngle, endAngle];
  }

  var radius = getRadius(props);
  return [props.innerRadius || 0, radius];
}; // exposed for use by VictoryChart (necessary?)


var getScale = function (props) {
  var axis = victory_core__WEBPACK_IMPORTED_MODULE_4__.getAxis(props);
  var scale = victory_core__WEBPACK_IMPORTED_MODULE_5__.getBaseScale(props, axis);
  var domain = victory_core__WEBPACK_IMPORTED_MODULE_4__.getDomain(props, axis) || scale.domain();
  var range = getRange(props, axis);
  scale.range(range);
  scale.domain(domain);
  return scale;
};
var getStyles = function (props, styleObject) {
  if (props.disableInlineStyles) {
    return {};
  }

  var style = props.style || {};
  styleObject = styleObject || {};
  var parentStyleProps = {
    height: "auto",
    width: "100%"
  };
  return {
    parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(parentStyleProps, style.parent, styleObject.parent),
    axis: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.axis, styleObject.axis),
    axisLabel: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.axisLabel, styleObject.axisLabel),
    grid: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.grid, styleObject.grid),
    ticks: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.ticks, styleObject.ticks),
    tickLabels: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.tickLabels, styleObject.tickLabels)
  };
};

var getAxisAngle = function (props) {
  var axisAngle = props.axisAngle,
      startAngle = props.startAngle,
      dependentAxis = props.dependentAxis;
  var axis = victory_core__WEBPACK_IMPORTED_MODULE_4__.getAxis(props);
  var axisValue = victory_core__WEBPACK_IMPORTED_MODULE_4__.getAxisValue(props, axis);

  if (axisValue === undefined || !dependentAxis) {
    return axisAngle === undefined ? startAngle : axisAngle;
  }

  return victory_core__WEBPACK_IMPORTED_MODULE_3__.radiansToDegrees(axisValue);
}; //eslint-disable-next-line max-params


var getTickProps = function (props, calculatedValues, tickValue, index) {
  var axisType = calculatedValues.axisType,
      radius = calculatedValues.radius,
      scale = calculatedValues.scale,
      style = calculatedValues.style,
      stringTicks = calculatedValues.stringTicks,
      ticks = calculatedValues.ticks,
      tickFormat = calculatedValues.tickFormat,
      origin = calculatedValues.origin;
  var text = tickFormat(tickValue, index, ticks);
  var tick = stringTicks ? stringTicks[index] : tickValue;

  var _getEvaluatedStyles = getEvaluatedStyles(style, {
    tick: tick,
    tickValue: tickValue,
    index: index,
    ticks: ticks,
    stringTicks: stringTicks,
    radius: radius,
    scale: scale,
    axisType: axisType,
    text: text
  }),
      tickStyle = _getEvaluatedStyles.tickStyle;

  var axisAngle = axisType === "radial" ? getAxisAngle(props, scale) : undefined;
  var tickPadding = tickStyle.padding || tickStyle.size || 0;
  var padAngle = victory_core__WEBPACK_IMPORTED_MODULE_3__.degreesToRadians(90 - axisAngle);
  var tickAngle = axisType === "angular" ? scale(tickValue) : victory_core__WEBPACK_IMPORTED_MODULE_3__.degreesToRadians(-1 * axisAngle);
  var tickRadius = axisType === "angular" ? radius : scale(tickValue);
  return axisType === "angular" ? {
    index: index,
    datum: tick,
    style: tickStyle,
    x1: getPosition(tickRadius, tickAngle, "x") + origin.x,
    y1: getPosition(tickRadius, tickAngle, "y") + origin.y,
    x2: getPosition(tickRadius + tickPadding, tickAngle, "x") + origin.x,
    y2: getPosition(tickRadius + tickPadding, tickAngle, "y") + origin.y
  } : {
    index: index,
    datum: tick,
    style: tickStyle,
    x1: tickRadius * Math.cos(tickAngle) + Math.cos(padAngle) * tickPadding + origin.x,
    x2: tickRadius * Math.cos(tickAngle) - Math.cos(padAngle) * tickPadding + origin.x,
    y1: tickRadius * Math.sin(tickAngle) + Math.sin(padAngle) * tickPadding + origin.y,
    y2: tickRadius * Math.sin(tickAngle) - Math.sin(padAngle) * tickPadding + origin.y
  };
}; //eslint-disable-next-line max-params


var getTickLabelProps = function (props, calculatedValues, tickValue, index) {
  var axisType = calculatedValues.axisType,
      radius = calculatedValues.radius,
      tickFormat = calculatedValues.tickFormat,
      style = calculatedValues.style,
      scale = calculatedValues.scale,
      ticks = calculatedValues.ticks,
      stringTicks = calculatedValues.stringTicks,
      origin = calculatedValues.origin;
  var text = tickFormat(tickValue, index, ticks);
  var tick = stringTicks ? stringTicks[index] : tickValue;

  var _getEvaluatedStyles2 = getEvaluatedStyles(style, {
    text: text,
    tick: tick,
    tickValue: tickValue,
    index: index,
    ticks: ticks,
    stringTicks: stringTicks,
    radius: radius,
    scale: scale,
    axisType: axisType
  }),
      labelStyle = _getEvaluatedStyles2.labelStyle;

  var tickLabelComponent = props.tickLabelComponent;
  var labelPlacement = tickLabelComponent.props && tickLabelComponent.props.labelPlacement ? tickLabelComponent.props.labelPlacement : props.labelPlacement;
  var tickPadding = labelStyle.padding || 0;
  var angularPadding = 0; // TODO: do some geometry

  var axisAngle = axisType === "radial" ? getAxisAngle(props, scale) : undefined;
  var labelAngle = axisType === "angular" ? victory_core__WEBPACK_IMPORTED_MODULE_3__.radiansToDegrees(scale(tickValue)) : axisAngle + angularPadding;
  var textAngle = labelStyle.angle === undefined ? victory_core__WEBPACK_IMPORTED_MODULE_6__.getPolarAngle(lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
    labelPlacement: labelPlacement
  }), labelAngle) : labelStyle.angle;
  var labelRadius = axisType === "angular" ? radius + tickPadding : scale(tickValue);
  var textAnchor = labelStyle.textAnchor || victory_core__WEBPACK_IMPORTED_MODULE_6__.getPolarTextAnchor(lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
    labelPlacement: labelPlacement
  }), labelAngle);
  return {
    index: index,
    datum: tick,
    style: labelStyle,
    angle: textAngle,
    textAnchor: textAnchor,
    text: text,
    x: labelRadius * Math.cos(victory_core__WEBPACK_IMPORTED_MODULE_3__.degreesToRadians(labelAngle)) + origin.x,
    y: -labelRadius * Math.sin(victory_core__WEBPACK_IMPORTED_MODULE_3__.degreesToRadians(labelAngle)) + origin.y
  };
}; //eslint-disable-next-line max-params


var getGridProps = function (props, calculatedValues, tickValue, index) {
  var axisType = calculatedValues.axisType,
      radius = calculatedValues.radius,
      style = calculatedValues.style,
      scale = calculatedValues.scale,
      stringTicks = calculatedValues.stringTicks,
      ticks = calculatedValues.ticks,
      tickFormat = calculatedValues.tickFormat,
      origin = calculatedValues.origin;
  var text = tickFormat(tickValue, index, ticks);
  var startAngle = props.startAngle,
      endAngle = props.endAngle,
      _props$innerRadius = props.innerRadius,
      innerRadius = _props$innerRadius === void 0 ? 0 : _props$innerRadius;
  var tick = stringTicks ? stringTicks[index] : tickValue;

  var _getEvaluatedStyles3 = getEvaluatedStyles(style, {
    tick: tick,
    tickValue: tickValue,
    index: index,
    ticks: ticks,
    stringTicks: stringTicks,
    radius: radius,
    scale: scale,
    axisType: axisType,
    text: text
  }),
      gridStyle = _getEvaluatedStyles3.gridStyle;

  var angle = scale(tickValue);
  return axisType === "angular" ? {
    index: index,
    datum: tick,
    style: gridStyle,
    x1: getPosition(radius, angle, "x") + origin.x,
    y1: getPosition(radius, angle, "y") + origin.y,
    x2: getPosition(innerRadius, angle, "x") + origin.x,
    y2: getPosition(innerRadius, angle, "y") + origin.y
  } : {
    style: gridStyle,
    index: index,
    datum: tick,
    cx: origin.x,
    cy: origin.y,
    r: scale(tickValue),
    startAngle: startAngle,
    endAngle: endAngle
  };
};

var getAxisLabelProps = function (props, calculatedValues) {
  var axisType = calculatedValues.axisType,
      radius = calculatedValues.radius,
      style = calculatedValues.style,
      scale = calculatedValues.scale,
      origin = calculatedValues.origin;
  var axisLabelComponent = props.axisLabelComponent;

  if (axisType !== "radial") {
    return {};
  }

  var labelPlacement = axisLabelComponent.props && axisLabelComponent.props.labelPlacement ? axisLabelComponent.props.labelPlacement : props.labelPlacement;
  var labelStyle = style && style.axisLabel || {};
  var axisAngle = axisType === "radial" ? getAxisAngle(props, scale) : undefined;
  var textAngle = labelStyle.angle === undefined ? victory_core__WEBPACK_IMPORTED_MODULE_6__.getPolarAngle(lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
    labelPlacement: labelPlacement
  }), axisAngle) : labelStyle.angle;
  var labelRadius = radius + (labelStyle.padding || 0);
  var textAnchor = labelStyle.textAnchor || victory_core__WEBPACK_IMPORTED_MODULE_6__.getPolarTextAnchor(lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
    labelPlacement: labelPlacement
  }), axisAngle);
  var verticalAnchor = labelStyle.verticalAnchor || victory_core__WEBPACK_IMPORTED_MODULE_6__.getPolarVerticalAnchor(lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
    labelPlacement: labelPlacement
  }), axisAngle);
  return {
    style: labelStyle,
    angle: textAngle,
    textAnchor: textAnchor,
    verticalAnchor: verticalAnchor,
    text: props.label,
    x: getPosition(labelRadius, victory_core__WEBPACK_IMPORTED_MODULE_3__.degreesToRadians(axisAngle), "x") + origin.x,
    y: getPosition(labelRadius, victory_core__WEBPACK_IMPORTED_MODULE_3__.degreesToRadians(axisAngle), "y") + origin.y
  };
};

var getAxisProps = function (modifiedProps, calculatedValues) {
  var style = calculatedValues.style,
      axisType = calculatedValues.axisType,
      radius = calculatedValues.radius,
      scale = calculatedValues.scale,
      origin = calculatedValues.origin;
  var startAngle = modifiedProps.startAngle,
      endAngle = modifiedProps.endAngle,
      _modifiedProps$innerR = modifiedProps.innerRadius,
      innerRadius = _modifiedProps$innerR === void 0 ? 0 : _modifiedProps$innerR;
  var axisAngle = axisType === "radial" ? victory_core__WEBPACK_IMPORTED_MODULE_3__.degreesToRadians(getAxisAngle(modifiedProps, scale)) : undefined;
  return axisType === "radial" ? {
    style: style.axis,
    x1: getPosition(innerRadius, axisAngle, "x") + origin.x,
    x2: getPosition(radius, axisAngle, "x") + origin.x,
    y1: getPosition(innerRadius, axisAngle, "y") + origin.y,
    y2: getPosition(radius, axisAngle, "y") + origin.y
  } : {
    style: style.axis,
    cx: origin.x,
    cy: origin.y,
    r: radius,
    startAngle: startAngle,
    endAngle: endAngle
  };
};

var getCalculatedValues = function (props) {
  props = lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({
    polar: true
  }, props);
  var defaultStyles = getStyleObject(props);
  var style = getStyles(props, defaultStyles);
  var padding = victory_core__WEBPACK_IMPORTED_MODULE_3__.getPadding(props);
  var axis = victory_core__WEBPACK_IMPORTED_MODULE_4__.getAxis(props);
  var axisType = getAxisType(props);
  var stringTicks = victory_core__WEBPACK_IMPORTED_MODULE_4__.stringTicks(props) ? props.tickValues : undefined;
  var domain = victory_core__WEBPACK_IMPORTED_MODULE_4__.getDomain(props, axis);
  var range = getRange(props, axis);
  var scale = getScale(props);
  var initialTicks = victory_core__WEBPACK_IMPORTED_MODULE_4__.getTicks(props, scale);
  var ticks = axisType === "angular" ? filterTicks(initialTicks, scale) : initialTicks;
  var tickFormat = victory_core__WEBPACK_IMPORTED_MODULE_4__.getTickFormat(props, scale);
  var radius = getRadius(props);
  var origin = victory_core__WEBPACK_IMPORTED_MODULE_3__.getPolarOrigin(props);
  return {
    axis: axis,
    style: style,
    padding: padding,
    stringTicks: stringTicks,
    axisType: axisType,
    scale: scale,
    ticks: ticks,
    tickFormat: tickFormat,
    domain: domain,
    range: range,
    radius: radius,
    origin: origin
  };
};

var getBaseProps = function (props, fallbackProps) {
  props = victory_core__WEBPACK_IMPORTED_MODULE_4__.modifyProps(props, fallbackProps);
  var calculatedValues = getCalculatedValues(props);
  var style = calculatedValues.style,
      scale = calculatedValues.scale,
      ticks = calculatedValues.ticks,
      domain = calculatedValues.domain;
  var _props = props,
      width = _props.width,
      height = _props.height,
      standalone = _props.standalone,
      theme = _props.theme,
      name = _props.name;
  var axisProps = getAxisProps(props, calculatedValues);
  var axisLabelProps = getAxisLabelProps(props, calculatedValues);
  var initialChildProps = {
    parent: {
      style: style.parent,
      ticks: ticks,
      scale: scale,
      width: width,
      height: height,
      domain: domain,
      standalone: standalone,
      theme: theme,
      name: name
    }
  };
  return ticks.reduce(function (childProps, tick, index) {
    childProps[index] = {
      axis: axisProps,
      axisLabel: axisLabelProps,
      ticks: getTickProps(props, calculatedValues, tick, index),
      tickLabels: getTickLabelProps(props, calculatedValues, tick, index),
      grid: getGridProps(props, calculatedValues, tick, index)
    };
    return childProps;
  }, initialChildProps);
};

/***/ }),

/***/ "./node_modules/victory-polar-axis/es/victory-polar-axis.js":
/*!******************************************************************!*\
  !*** ./node_modules/victory-polar-axis/es/victory-polar-axis.js ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "./node_modules/lodash/isEmpty.js");
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/axis.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/common-props.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/prop-types.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-primitives/line-segment.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-label/victory-label.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-primitives/arc.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-container/victory-container.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-theme/victory-theme.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/add-events.js");
/* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./helper-methods */ "./node_modules/victory-polar-axis/es/helper-methods.js");



function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }





var fallbackProps = {
  width: 450,
  height: 300,
  padding: 50
};
var options = {
  components: [{
    name: "axis",
    index: 0
  }, {
    name: "axisLabel",
    index: 0
  }, {
    name: "grid"
  }, {
    name: "parent",
    index: "parent"
  }, {
    name: "ticks"
  }, {
    name: "tickLabels"
  }]
};

var VictoryPolarAxis =
/*#__PURE__*/
function (_React$Component) {
  _inherits(VictoryPolarAxis, _React$Component);

  function VictoryPolarAxis() {
    _classCallCheck(this, VictoryPolarAxis);

    return _possibleConstructorReturn(this, (VictoryPolarAxis.__proto__ || Object.getPrototypeOf(VictoryPolarAxis)).apply(this, arguments));
  }

  _createClass(VictoryPolarAxis, [{
    key: "renderAxisLine",
    value: function renderAxisLine(props) {
      var dependentAxis = props.dependentAxis;
      var axisComponent = dependentAxis ? props.axisComponent : props.circularAxisComponent;
      var axisProps = this.getComponentProps(axisComponent, "axis", 0);
      return react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(axisComponent, axisProps);
    }
  }, {
    key: "renderLabel",
    value: function renderLabel(props) {
      var axisLabelComponent = props.axisLabelComponent,
          dependentAxis = props.dependentAxis,
          label = props.label;

      if (!label || !dependentAxis) {
        return null;
      }

      var axisLabelProps = this.getComponentProps(axisLabelComponent, "axisLabel", 0);
      return react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(axisLabelComponent, axisLabelProps);
    }
  }, {
    key: "renderAxis",
    value: function renderAxis(props) {
      var _this = this;

      var tickComponent = props.tickComponent,
          tickLabelComponent = props.tickLabelComponent,
          name = props.name;

      var shouldRender = function (componentProps) {
        var _componentProps$style = componentProps.style,
            style = _componentProps$style === void 0 ? {} : _componentProps$style,
            _componentProps$event = componentProps.events,
            events = _componentProps$event === void 0 ? {} : _componentProps$event;
        var visible = style.stroke !== "transparent" && style.stroke !== "none" && style.strokeWidth !== 0;
        return visible || !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(events);
      };

      var axisType = props.dependentAxis ? "radial" : "angular";
      var gridComponent = axisType === "radial" ? props.circularGridComponent : props.gridComponent;
      var tickComponents = this.dataKeys.map(function (key, index) {
        var tickProps = lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({
          key: "".concat(name, "-tick-").concat(key)
        }, _this.getComponentProps(tickComponent, "ticks", index));

        var TickComponent = react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(tickComponent, tickProps);
        return shouldRender(TickComponent.props) ? TickComponent : undefined;
      }).filter(Boolean);
      var gridComponents = this.dataKeys.map(function (key, index) {
        var gridProps = lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({
          key: "".concat(name, "-grid-").concat(key)
        }, _this.getComponentProps(gridComponent, "grid", index));

        var GridComponent = react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(gridComponent, gridProps);
        return shouldRender(GridComponent.props) ? GridComponent : undefined;
      }).filter(Boolean);
      var tickLabelComponents = this.dataKeys.map(function (key, index) {
        var tickLabelProps = lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({
          key: "".concat(name, "-tick-").concat(key)
        }, _this.getComponentProps(tickLabelComponent, "tickLabels", index));

        return react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(tickLabelComponent, tickLabelProps);
      });
      var axis = this.renderAxisLine(props);
      var axisLabel = this.renderLabel(props);
      var children = [axis, axisLabel].concat(_toConsumableArray(tickComponents), _toConsumableArray(gridComponents), _toConsumableArray(tickLabelComponents));
      return this.renderGroup(props, children);
    } // Overridden in victory-native

  }, {
    key: "renderGroup",
    value: function renderGroup(props, children) {
      var groupComponent = props.groupComponent;
      return react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(groupComponent, {}, children);
    }
  }, {
    key: "shouldAnimate",
    value: function shouldAnimate() {
      return !!this.props.animate;
    }
  }, {
    key: "render",
    value: function render() {
      var animationWhitelist = VictoryPolarAxis.animationWhitelist;
      var props = victory_core__WEBPACK_IMPORTED_MODULE_3__.modifyProps(this.props, fallbackProps);

      if (this.shouldAnimate()) {
        return this.animateComponent(props, animationWhitelist);
      }

      var children = this.renderAxis(props);
      return props.standalone ? this.renderContainer(props.containerComponent, children) : children;
    }
  }]);

  return VictoryPolarAxis;
}(react__WEBPACK_IMPORTED_MODULE_2__.Component);

Object.defineProperty(VictoryPolarAxis, "animationWhitelist", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: ["style", "domain", "range", "tickCount", "tickValues", "padding", "width", "height"]
});
Object.defineProperty(VictoryPolarAxis, "displayName", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: "VictoryAxis"
});
Object.defineProperty(VictoryPolarAxis, "role", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: "axis"
});
Object.defineProperty(VictoryPolarAxis, "defaultTransitions", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: {
    onExit: {
      duration: 500
    },
    onEnter: {
      duration: 500
    }
  }
});
Object.defineProperty(VictoryPolarAxis, "propTypes", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__.baseProps, {
    axisAngle: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
    axisComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
    axisLabelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
    axisValue: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_5___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object)]),
    categories: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_5___default().string)), prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({
      x: prop_types__WEBPACK_IMPORTED_MODULE_5___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_5___default().string)),
      y: prop_types__WEBPACK_IMPORTED_MODULE_5___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_5___default().string))
    })]),
    circularAxisComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
    circularGridComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
    containerComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
    dependentAxis: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool),
    disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool),
    endAngle: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
    events: prop_types__WEBPACK_IMPORTED_MODULE_5___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({
      target: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(["axis", "axisLabel", "grid", "ticks", "tickLabels"]),
      eventKey: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_5___default().array), victory_core__WEBPACK_IMPORTED_MODULE_6__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_6__.integer, victory_core__WEBPACK_IMPORTED_MODULE_6__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string)]),
      eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object)
    })),
    gridComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
    innerRadius: victory_core__WEBPACK_IMPORTED_MODULE_6__.nonNegative,
    labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(["parallel", "perpendicular", "vertical"]),
    startAngle: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
    stringMap: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object),
    style: prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({
      parent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object),
      axis: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object),
      axisLabel: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object),
      grid: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object),
      ticks: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object),
      tickLabels: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object)
    }),
    tickComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
    tickCount: victory_core__WEBPACK_IMPORTED_MODULE_6__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_6__.integer, victory_core__WEBPACK_IMPORTED_MODULE_6__.greaterThanZero]),
    tickFormat: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_5___default().func), victory_core__WEBPACK_IMPORTED_MODULE_6__.homogeneousArray]),
    tickLabelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
    tickValues: victory_core__WEBPACK_IMPORTED_MODULE_6__.homogeneousArray
  })
});
Object.defineProperty(VictoryPolarAxis, "defaultProps", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: {
    axisComponent: react__WEBPACK_IMPORTED_MODULE_2__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__["default"], null),
    axisLabelComponent: react__WEBPACK_IMPORTED_MODULE_2__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__["default"], null),
    circularAxisComponent: react__WEBPACK_IMPORTED_MODULE_2__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_9__["default"], null),
    circularGridComponent: react__WEBPACK_IMPORTED_MODULE_2__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_9__["default"], null),
    containerComponent: react__WEBPACK_IMPORTED_MODULE_2__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_10__["default"], null),
    endAngle: 360,
    gridComponent: react__WEBPACK_IMPORTED_MODULE_2__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__["default"], null),
    groupComponent: react__WEBPACK_IMPORTED_MODULE_2__.createElement("g", {
      role: "presentation"
    }),
    labelPlacement: "parallel",
    startAngle: 0,
    standalone: true,
    theme: victory_core__WEBPACK_IMPORTED_MODULE_11__["default"].grayscale,
    tickComponent: react__WEBPACK_IMPORTED_MODULE_2__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__["default"], null),
    tickLabelComponent: react__WEBPACK_IMPORTED_MODULE_2__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__["default"], null)
  }
});
Object.defineProperty(VictoryPolarAxis, "getDomain", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: victory_core__WEBPACK_IMPORTED_MODULE_3__.getDomain
});
Object.defineProperty(VictoryPolarAxis, "getAxis", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: victory_core__WEBPACK_IMPORTED_MODULE_3__.getAxis
});
Object.defineProperty(VictoryPolarAxis, "getScale", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: _helper_methods__WEBPACK_IMPORTED_MODULE_12__.getScale
});
Object.defineProperty(VictoryPolarAxis, "getStyles", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: function (props) {
    return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_12__.getStyles)(props, fallbackProps.style);
  }
});
Object.defineProperty(VictoryPolarAxis, "getBaseProps", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: function (props) {
    return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_12__.getBaseProps)(props, fallbackProps);
  }
});
Object.defineProperty(VictoryPolarAxis, "expectedComponents", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: ["axisComponent", "circularAxisComponent", "groupComponent", "containerComponent", "tickComponent", "tickLabelComponent", "gridComponent", "circularGridComponent"]
});
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_13__["default"])(VictoryPolarAxis, options));

/***/ }),

/***/ "./node_modules/victory-shared-events/es/victory-shared-events.js":
/*!************************************************************************!*\
  !*** ./node_modules/victory-shared-events/es/victory-shared-events.js ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ VictorySharedEvents)
/* harmony export */ });
/* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/difference */ "./node_modules/lodash/difference.js");
/* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/keys */ "./node_modules/lodash/keys.js");
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_fromPairs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/fromPairs */ "./node_modules/lodash/fromPairs.js");
/* harmony import */ var lodash_fromPairs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_fromPairs__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isEmpty */ "./node_modules/lodash/isEmpty.js");
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js");
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/events.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/prop-types.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/timer-context.js");
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-fast-compare */ "./node_modules/react-fast-compare/index.js");
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var json_stringify_safe__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! json-stringify-safe */ "./node_modules/json-stringify-safe/stringify.js");
/* harmony import */ var json_stringify_safe__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(json_stringify_safe__WEBPACK_IMPORTED_MODULE_9__);








function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }

function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }

function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }







var VictorySharedEvents =
/*#__PURE__*/
function (_React$Component) {
  _inherits(VictorySharedEvents, _React$Component);

  function VictorySharedEvents(props) {
    var _this;

    _classCallCheck(this, VictorySharedEvents);

    _this = _possibleConstructorReturn(this, (VictorySharedEvents.__proto__ || Object.getPrototypeOf(VictorySharedEvents)).call(this, props));
    _this.state = _this.state || {};
    _this.getScopedEvents = victory_core__WEBPACK_IMPORTED_MODULE_10__.getScopedEvents.bind(_assertThisInitialized(_this));
    _this.getEventState = victory_core__WEBPACK_IMPORTED_MODULE_10__.getEventState.bind(_assertThisInitialized(_this));
    _this.baseProps = _this.getBaseProps(props);
    _this.sharedEventsCache = {};
    _this.globalEvents = {};
    _this.prevGlobalEventKeys = [];
    _this.boundGlobalEvents = {};
    return _this;
  }

  _createClass(VictorySharedEvents, [{
    key: "shouldComponentUpdate",
    value: function shouldComponentUpdate(nextProps) {
      if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_8___default()(this.props, nextProps)) {
        this.baseProps = this.getBaseProps(nextProps);
        var externalMutations = this.getExternalMutations(nextProps, this.baseProps);
        this.applyExternalMutations(nextProps, externalMutations);
      }

      return true;
    }
  }, {
    key: "componentDidMount",
    value: function componentDidMount() {
      var _this2 = this;

      var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_1___default()(this.globalEvents);

      globalEventKeys.forEach(function (key) {
        return _this2.addGlobalListener(key);
      });
      this.prevGlobalEventKeys = globalEventKeys;
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate() {
      var _this3 = this;

      var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_1___default()(this.globalEvents);

      var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(this.prevGlobalEventKeys, globalEventKeys);

      removedGlobalEventKeys.forEach(function (key) {
        return _this3.removeGlobalListener(key);
      });

      var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(globalEventKeys, this.prevGlobalEventKeys);

      addedGlobalEventKeys.forEach(function (key) {
        return _this3.addGlobalListener(key);
      });
      this.prevGlobalEventKeys = globalEventKeys;
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      var _this4 = this;

      this.prevGlobalEventKeys.forEach(function (key) {
        return _this4.removeGlobalListener(key);
      });
    }
  }, {
    key: "addGlobalListener",
    value: function addGlobalListener(key) {
      var _this5 = this;

      var boundListener = function (event) {
        var listener = _this5.globalEvents[key];
        return listener && listener(victory_core__WEBPACK_IMPORTED_MODULE_10__.emulateReactEvent(event));
      };

      this.boundGlobalEvents[key] = boundListener;
      window.addEventListener(victory_core__WEBPACK_IMPORTED_MODULE_10__.getGlobalEventNameFromKey(key), boundListener);
    }
  }, {
    key: "removeGlobalListener",
    value: function removeGlobalListener(key) {
      window.removeEventListener(victory_core__WEBPACK_IMPORTED_MODULE_10__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
    }
  }, {
    key: "getAllEvents",
    value: function getAllEvents(props) {
      var components = ["container", "groupComponent"];
      var componentEvents = victory_core__WEBPACK_IMPORTED_MODULE_10__.getComponentEvents(props, components);

      if (Array.isArray(componentEvents)) {
        return Array.isArray(props.events) ? componentEvents.concat.apply(componentEvents, _toConsumableArray(props.events)) : componentEvents;
      }

      return props.events;
    }
  }, {
    key: "applyExternalMutations",
    value: function applyExternalMutations(props, externalMutations) {
      if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(externalMutations)) {
        var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
          memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
          return memo;
        }, []);
        var compiledCallbacks = callbacks.length ? function () {
          callbacks.forEach(function (c) {
            return c();
          });
        } : undefined;
        this.setState(externalMutations, compiledCallbacks);
      }
    }
  }, {
    key: "getExternalMutations",
    value: function getExternalMutations(props, baseProps) {
      return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(props.externalEventMutations) ? victory_core__WEBPACK_IMPORTED_MODULE_10__.getExternalMutationsWithChildren(props.externalEventMutations, baseProps, this.state, lodash_keys__WEBPACK_IMPORTED_MODULE_1___default()(baseProps)) : undefined;
    }
  }, {
    key: "cacheSharedEvents",
    value: function cacheSharedEvents(name, sharedEvents, cacheValues) {
      this.sharedEventsCache[name] = [sharedEvents, cacheValues];
    }
  }, {
    key: "getCachedSharedEvents",
    value: function getCachedSharedEvents(name, cacheValues) {
      var _ref = this.sharedEventsCache[name] || [],
          _ref2 = _slicedToArray(_ref, 2),
          sharedEvents = _ref2[0],
          prevCacheValues = _ref2[1];

      if (sharedEvents && react_fast_compare__WEBPACK_IMPORTED_MODULE_8___default()(cacheValues, prevCacheValues)) {
        return sharedEvents;
      }

      return undefined;
    }
  }, {
    key: "getBaseProps",
    value: function getBaseProps(props) {
      var container = props.container;
      var children = react__WEBPACK_IMPORTED_MODULE_7__.Children.toArray(this.props.children);
      var childBaseProps = this.getBasePropsFromChildren(children);
      var parentBaseProps = container ? container.props : {};
      return lodash_assign__WEBPACK_IMPORTED_MODULE_6___default()({}, childBaseProps, {
        parent: parentBaseProps
      });
    }
  }, {
    key: "getBasePropsFromChildren",
    value: function getBasePropsFromChildren(childComponents) {
      var iteratee = function (child, childName) {
        if (child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(child.type.getBaseProps)) {
          var _baseProps = child.props && child.type.getBaseProps(child.props);

          return _baseProps ? [[childName, _baseProps]] : null;
        } else {
          return null;
        }
      };

      var baseProps = victory_core__WEBPACK_IMPORTED_MODULE_11__.reduceChildren(childComponents, iteratee);
      return lodash_fromPairs__WEBPACK_IMPORTED_MODULE_2___default()(baseProps);
    }
  }, {
    key: "getNewChildren",
    value: function getNewChildren(props, baseProps) {
      var _this6 = this;

      var events = props.events,
          eventKey = props.eventKey;

      var alterChildren = function (children, childNames) {
        return children.reduce(function (memo, child, index) {
          if (child.props.children) {
            var newChildren = react__WEBPACK_IMPORTED_MODULE_7__.Children.toArray(child.props.children);
            var names = childNames.slice(index, index + newChildren.length);
            var results = react__WEBPACK_IMPORTED_MODULE_7__.cloneElement(child, child.props, alterChildren(newChildren, names));
            return memo.concat(results);
          } else if (childNames[index] !== "parent" && child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(child.type.getBaseProps)) {
            var name = child.props.name || childNames[index];
            var childEvents = Array.isArray(events) && events.filter(function (event) {
              if (event.target === "parent") {
                return false;
              }

              return Array.isArray(event.childName) ? event.childName.indexOf(name) > -1 : event.childName === name || event.childName === "all";
            });
            var sharedEventsCacheValues = [name, baseProps, childEvents, json_stringify_safe__WEBPACK_IMPORTED_MODULE_9___default()(_this6.state[name])];
            var sharedEvents = _this6.getCachedSharedEvents(name, sharedEventsCacheValues) || {
              events: childEvents,
              // partially apply child name and baseProps,
              getEvents: function (evts, target) {
                return _this6.getScopedEvents(evts, target, name, baseProps);
              },
              // partially apply child name
              getEventState: function (key, target) {
                return _this6.getEventState(key, target, name);
              }
            };

            _this6.cacheSharedEvents(name, sharedEvents, sharedEventsCacheValues);

            return memo.concat(react__WEBPACK_IMPORTED_MODULE_7__.cloneElement(child, lodash_assign__WEBPACK_IMPORTED_MODULE_6___default()({
              key: "events-".concat(name),
              sharedEvents: sharedEvents,
              eventKey: eventKey,
              name: name
            }, child.props)));
          } else {
            return memo.concat(child);
          }
        }, []);
      };

      var childNames = lodash_keys__WEBPACK_IMPORTED_MODULE_1___default()(baseProps);

      var childComponents = react__WEBPACK_IMPORTED_MODULE_7__.Children.toArray(props.children);
      return alterChildren(childComponents, childNames);
    }
  }, {
    key: "getContainer",
    value: function getContainer(props, baseProps, events) {
      var _this7 = this;

      var children = this.getNewChildren(props, baseProps);
      var parents = Array.isArray(events) && events.filter(function (event) {
        return event.target === "parent";
      });
      var sharedEvents = parents.length > 0 ? {
        events: parents,
        // partially apply childName (null) and baseProps,
        getEvents: function (evts, target) {
          return _this7.getScopedEvents(evts, target, null, baseProps);
        },
        getEventState: this.getEventState
      } : null;
      var container = props.container || props.groupComponent;
      var role = container.type && container.type.role;
      var containerProps = container.props || {};
      var boundGetEvents = victory_core__WEBPACK_IMPORTED_MODULE_10__.getEvents.bind(this);
      var parentEvents = sharedEvents && boundGetEvents({
        sharedEvents: sharedEvents
      }, "parent");

      var parentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default()({}, this.getEventState("parent", "parent"), containerProps, baseProps.parent, {
        children: children
      });

      var containerEvents = lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default()({}, victory_core__WEBPACK_IMPORTED_MODULE_10__.getPartialEvents(parentEvents, "parent", parentProps), containerProps.events);

      this.globalEvents = victory_core__WEBPACK_IMPORTED_MODULE_10__.getGlobalEvents(containerEvents);
      var localEvents = victory_core__WEBPACK_IMPORTED_MODULE_10__.omitGlobalEvents(containerEvents);
      return role === "container" ? react__WEBPACK_IMPORTED_MODULE_7__.cloneElement(container, lodash_assign__WEBPACK_IMPORTED_MODULE_6___default()({}, parentProps, {
        events: localEvents
      })) : react__WEBPACK_IMPORTED_MODULE_7__.cloneElement(container, localEvents, children);
    }
  }, {
    key: "render",
    value: function render() {
      var events = this.getAllEvents(this.props);

      if (events) {
        return this.getContainer(this.props, this.baseProps, events);
      }

      return react__WEBPACK_IMPORTED_MODULE_7__.cloneElement(this.props.container, {
        children: this.props.children
      });
    }
  }]);

  return VictorySharedEvents;
}(react__WEBPACK_IMPORTED_MODULE_7__.Component);

Object.defineProperty(VictorySharedEvents, "displayName", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: "VictorySharedEvents"
});
Object.defineProperty(VictorySharedEvents, "role", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: "shared-event-wrapper"
});
Object.defineProperty(VictorySharedEvents, "propTypes", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: {
    children: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_12___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_12___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().node)]),
    container: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().node),
    eventKey: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_12___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func), victory_core__WEBPACK_IMPORTED_MODULE_13__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_13__.integer, victory_core__WEBPACK_IMPORTED_MODULE_13__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string)]),
    events: prop_types__WEBPACK_IMPORTED_MODULE_12___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_12___default().shape({
      childName: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_12___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().array)]),
      eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().object),
      eventKey: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_12___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func), victory_core__WEBPACK_IMPORTED_MODULE_13__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_13__.integer, victory_core__WEBPACK_IMPORTED_MODULE_13__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string)]),
      target: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string)
    })),
    externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_12___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_12___default().shape({
      callback: (prop_types__WEBPACK_IMPORTED_MODULE_12___default()["function"]),
      childName: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_12___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().array)]),
      eventKey: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_12___default().array), victory_core__WEBPACK_IMPORTED_MODULE_13__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_13__.integer, victory_core__WEBPACK_IMPORTED_MODULE_13__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string)]),
      mutation: (prop_types__WEBPACK_IMPORTED_MODULE_12___default()["function"]),
      target: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_12___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().array)])
    })),
    groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().node)
  }
});
Object.defineProperty(VictorySharedEvents, "defaultProps", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: {
    groupComponent: react__WEBPACK_IMPORTED_MODULE_7__.createElement("g", null)
  }
});
Object.defineProperty(VictorySharedEvents, "contextType", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: victory_core__WEBPACK_IMPORTED_MODULE_14__["default"]
});


/***/ }),

/***/ "./node_modules/victory-tooltip/es/flyout.js":
/*!***************************************************!*\
  !*** ./node_modules/victory-tooltip/es/flyout.js ***!
  \***************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isPlainObject */ "./node_modules/lodash/isPlainObject.js");
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/common-props.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-primitives/path.js");



function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

/*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2] }]*/




var getVerticalPath = function (props) {
  var pointerWidth = props.pointerWidth,
      cornerRadius = props.cornerRadius,
      orientation = props.orientation,
      width = props.width,
      height = props.height,
      center = props.center;
  var sign = orientation === "bottom" ? 1 : -1;
  var x = props.x + (props.dx || 0);
  var y = props.y + (props.dy || 0);
  var centerX = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(center) && center.x;
  var centerY = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(center) && center.y;
  var pointerEdge = centerY + sign * (height / 2);
  var oppositeEdge = centerY - sign * (height / 2);
  var rightEdge = centerX + width / 2;
  var leftEdge = centerX - width / 2;
  var pointerLength = sign * (y - pointerEdge) < 0 ? 0 : props.pointerLength;
  var direction = orientation === "bottom" ? "0 0 0" : "0 0 1";
  var arc = "".concat(cornerRadius, " ").concat(cornerRadius, " ").concat(direction);
  return "M ".concat(centerX - pointerWidth / 2, ", ").concat(pointerEdge, "\n    L ").concat(pointerLength ? x : centerX + pointerWidth / 2, ", ").concat(pointerLength ? y : pointerEdge, "\n    L ").concat(centerX + pointerWidth / 2, ", ").concat(pointerEdge, "\n    L ").concat(rightEdge - cornerRadius, ", ").concat(pointerEdge, "\n    A ").concat(arc, " ").concat(rightEdge, ", ").concat(pointerEdge - sign * cornerRadius, "\n    L ").concat(rightEdge, ", ").concat(oppositeEdge + sign * cornerRadius, "\n    A ").concat(arc, " ").concat(rightEdge - cornerRadius, ", ").concat(oppositeEdge, "\n    L ").concat(leftEdge + cornerRadius, ", ").concat(oppositeEdge, "\n    A ").concat(arc, " ").concat(leftEdge, ", ").concat(oppositeEdge + sign * cornerRadius, "\n    L ").concat(leftEdge, ", ").concat(pointerEdge - sign * cornerRadius, "\n    A ").concat(arc, " ").concat(leftEdge + cornerRadius, ", ").concat(pointerEdge, "\n    z");
};

var getHorizontalPath = function (props) {
  var pointerWidth = props.pointerWidth,
      cornerRadius = props.cornerRadius,
      orientation = props.orientation,
      width = props.width,
      height = props.height,
      center = props.center;
  var sign = orientation === "left" ? 1 : -1;
  var x = props.x + (props.dx || 0);
  var y = props.y + (props.dy || 0);
  var centerX = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(center) && center.x;
  var centerY = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(center) && center.y;
  var pointerEdge = centerX - sign * (width / 2);
  var oppositeEdge = centerX + sign * (width / 2);
  var bottomEdge = centerY + height / 2;
  var topEdge = centerY - height / 2;
  var pointerLength = sign * (x - pointerEdge) > 0 ? 0 : props.pointerLength;
  var direction = orientation === "left" ? "0 0 0" : "0 0 1";
  var arc = "".concat(cornerRadius, " ").concat(cornerRadius, " ").concat(direction);
  return "M ".concat(pointerEdge, ", ").concat(centerY - pointerWidth / 2, "\n    L ").concat(pointerLength ? x : pointerEdge, ", ").concat(pointerLength ? y : centerY + pointerWidth / 2, "\n    L ").concat(pointerEdge, ", ").concat(centerY + pointerWidth / 2, "\n    L ").concat(pointerEdge, ", ").concat(bottomEdge - cornerRadius, "\n    A ").concat(arc, " ").concat(pointerEdge + sign * cornerRadius, ", ").concat(bottomEdge, "\n    L ").concat(oppositeEdge - sign * cornerRadius, ", ").concat(bottomEdge, "\n    A ").concat(arc, " ").concat(oppositeEdge, ", ").concat(bottomEdge - cornerRadius, "\n    L ").concat(oppositeEdge, ", ").concat(topEdge + cornerRadius, "\n    A ").concat(arc, " ").concat(oppositeEdge - sign * cornerRadius, ", ").concat(topEdge, "\n    L ").concat(pointerEdge + sign * cornerRadius, ", ").concat(topEdge, "\n    A ").concat(arc, " ").concat(pointerEdge, ", ").concat(topEdge + cornerRadius, "\n    z");
};

var getFlyoutPath = function (props) {
  var orientation = props.orientation || "top";
  return orientation === "left" || orientation === "right" ? getHorizontalPath(props) : getVerticalPath(props);
};

var evaluateProps = function (props) {
  /**
   * Potential evaluated props are:
   * `id`
   * `style`
   */
  var id = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.id, props);
  var style = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateStyle(props.style, props);
  return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
    id: id,
    style: style
  });
};

var Flyout = function (props) {
  props = evaluateProps(props);
  return react__WEBPACK_IMPORTED_MODULE_2__.cloneElement(props.pathComponent, _objectSpread({}, props.events, {
    style: props.style,
    d: getFlyoutPath(props),
    className: props.className,
    shapeRendering: props.shapeRendering,
    role: props.role,
    transform: props.transform,
    clipPath: props.clipPath
  }));
};

Flyout.propTypes = _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__.primitiveProps, {
  center: prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({
    x: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
    y: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number)
  }),
  cornerRadius: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
  datum: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object),
  dx: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
  dy: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
  height: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
  orientation: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(["top", "bottom", "left", "right"]),
  pathComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
  pointerLength: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
  pointerWidth: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
  width: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
  x: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
  y: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number)
});
Flyout.defaultProps = {
  pathComponent: react__WEBPACK_IMPORTED_MODULE_2__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__["default"], null),
  role: "presentation",
  shapeRendering: "auto"
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Flyout);

/***/ }),

/***/ "./node_modules/victory-tooltip/es/victory-tooltip.js":
/*!************************************************************!*\
  !*** ./node_modules/victory-tooltip/es/victory-tooltip.js ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (/* binding */ VictoryTooltip)
/* harmony export */ });
/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/orderBy */ "./node_modules/lodash/orderBy.js");
/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isPlainObject */ "./node_modules/lodash/isPlainObject.js");
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/uniqueId */ "./node_modules/lodash/uniqueId.js");
/* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js");
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/label-helpers.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-theme/victory-theme.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/textsize.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-portal/victory-portal.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/prop-types.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-label/victory-label.js");
/* harmony import */ var _flyout__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./flyout */ "./node_modules/victory-tooltip/es/flyout.js");






function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }





var fallbackProps = {
  cornerRadius: 5,
  pointerLength: 10,
  pointerWidth: 10
};

var VictoryTooltip =
/*#__PURE__*/
function (_React$Component) {
  _inherits(VictoryTooltip, _React$Component);

  function VictoryTooltip(props) {
    var _this;

    _classCallCheck(this, VictoryTooltip);

    _this = _possibleConstructorReturn(this, (VictoryTooltip.__proto__ || Object.getPrototypeOf(VictoryTooltip)).call(this, props));
    _this.id = props.id === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("tooltip-") : props.id;
    return _this;
  }

  _createClass(VictoryTooltip, [{
    key: "getDefaultOrientation",
    value: function getDefaultOrientation(props) {
      var datum = props.datum,
          horizontal = props.horizontal,
          polar = props.polar;

      if (!polar) {
        var positive = horizontal ? "right" : "top";
        var negative = horizontal ? "left" : "bottom";
        return datum && datum.y < 0 ? negative : positive;
      } else {
        return this.getPolarOrientation(props, datum);
      }
    }
  }, {
    key: "getPolarOrientation",
    value: function getPolarOrientation(props, datum) {
      var degrees = victory_core__WEBPACK_IMPORTED_MODULE_6__.getDegrees(props, datum);
      var placement = props.labelPlacement || "vertical";

      if (placement === " vertical") {
        return this.getVerticalOrientations(degrees);
      } else if (placement === "parallel") {
        return degrees < 90 || degrees > 270 ? "right" : "left";
      } else {
        return degrees > 180 ? "bottom" : "top";
      }
    }
  }, {
    key: "getVerticalOrientations",
    value: function getVerticalOrientations(degrees) {
      // eslint-disable-next-line no-magic-numbers
      if (degrees < 45 || degrees > 315) {
        return "right"; // eslint-disable-next-line no-magic-numbers
      } else if (degrees >= 45 && degrees <= 135) {
        return "top"; // eslint-disable-next-line no-magic-numbers
      } else if (degrees > 135 && degrees < 225) {
        return "left";
      } else {
        return "bottom";
      }
    }
  }, {
    key: "getStyles",
    value: function getStyles(props) {
      var theme = props.theme || victory_core__WEBPACK_IMPORTED_MODULE_7__["default"].grayscale;
      var defaultLabelStyles = theme && theme.tooltip && theme.tooltip.style ? theme.tooltip.style : {};
      var baseLabelStyle = Array.isArray(props.style) ? props.style.map(function (s) {
        return lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, s, defaultLabelStyles);
      }) : lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, props.style, defaultLabelStyles);
      var defaultFlyoutStyles = theme && theme.tooltip && theme.tooltip.flyoutStyle ? theme.tooltip.flyoutStyle : {};
      var baseFlyoutStyle = props.flyoutStyle ? lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, props.flyoutStyle, defaultFlyoutStyles) : defaultFlyoutStyles;
      var style = Array.isArray(baseLabelStyle) ? baseLabelStyle.map(function (s) {
        return victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateStyle(s, props);
      }) : victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateStyle(baseLabelStyle, props);
      var flyoutStyle = victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateStyle(baseFlyoutStyle, lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, {
        style: style
      }));
      return {
        style: style,
        flyoutStyle: flyoutStyle
      };
    }
  }, {
    key: "getEvaluatedProps",
    value: function getEvaluatedProps(props) {
      var cornerRadius = props.cornerRadius,
          centerOffset = props.centerOffset,
          dx = props.dx,
          dy = props.dy;
      var active = victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(props.active, props);
      var text = victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(props.text, lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, {
        active: active
      }));

      var _getStyles = this.getStyles(lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, {
        active: active,
        text: text
      })),
          style = _getStyles.style,
          flyoutStyle = _getStyles.flyoutStyle;

      var orientation = victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(props.orientation, lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, {
        active: active,
        text: text,
        style: style,
        flyoutStyle: flyoutStyle
      })) || this.getDefaultOrientation(props);
      var padding = victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(props.flyoutPadding, lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, {
        active: active,
        text: text,
        style: style,
        flyoutStyle: flyoutStyle,
        orientation: orientation
      })) || this.getLabelPadding(style);
      var flyoutPadding = victory_core__WEBPACK_IMPORTED_MODULE_8__.getPadding({
        padding: padding
      });
      var pointerWidth = victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(props.pointerWidth, lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, {
        active: active,
        text: text,
        style: style,
        flyoutStyle: flyoutStyle,
        orientation: orientation
      }));
      var pointerLength = victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(props.pointerLength, lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, {
        active: active,
        text: text,
        style: style,
        flyoutStyle: flyoutStyle,
        orientation: orientation
      }));
      var labelSize = victory_core__WEBPACK_IMPORTED_MODULE_9__.approximateTextSize(text, style);

      var _getDimensions = this.getDimensions(lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, {
        style: style,
        flyoutStyle: flyoutStyle,
        active: active,
        text: text,
        orientation: orientation,
        flyoutPadding: flyoutPadding,
        pointerWidth: pointerWidth,
        pointerLength: pointerLength
      }), labelSize),
          flyoutHeight = _getDimensions.flyoutHeight,
          flyoutWidth = _getDimensions.flyoutWidth;

      var evaluatedProps = lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, {
        active: active,
        text: text,
        style: style,
        flyoutStyle: flyoutStyle,
        orientation: orientation,
        flyoutHeight: flyoutHeight,
        flyoutWidth: flyoutWidth,
        flyoutPadding: flyoutPadding,
        pointerWidth: pointerWidth,
        pointerLength: pointerLength
      });

      var offsetX = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(centerOffset) && centerOffset.x !== undefined ? victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(centerOffset.x, evaluatedProps) : 0;
      var offsetY = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(centerOffset) && centerOffset.y !== undefined ? victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(centerOffset.y, evaluatedProps) : 0;
      return lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, evaluatedProps, {
        centerOffset: {
          x: offsetX,
          y: offsetY
        },
        dx: dx !== undefined ? victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(dx, evaluatedProps) : 0,
        dy: dy !== undefined ? victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(dy, evaluatedProps) : 0,
        cornerRadius: victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(cornerRadius, evaluatedProps)
      });
    }
  }, {
    key: "getCalculatedValues",
    value: function getCalculatedValues(props) {
      var style = props.style,
          text = props.text,
          flyoutStyle = props.flyoutStyle,
          flyoutHeight = props.flyoutHeight,
          flyoutWidth = props.flyoutWidth;
      var labelSize = victory_core__WEBPACK_IMPORTED_MODULE_9__.approximateTextSize(text, style);
      var flyoutDimensions = {
        height: flyoutHeight,
        width: flyoutWidth
      };
      var flyoutCenter = this.getFlyoutCenter(props, flyoutDimensions);
      var transform = this.getTransform(props);
      return {
        style: style,
        flyoutStyle: flyoutStyle,
        labelSize: labelSize,
        flyoutDimensions: flyoutDimensions,
        flyoutCenter: flyoutCenter,
        transform: transform
      };
    }
  }, {
    key: "getTransform",
    value: function getTransform(props) {
      var x = props.x,
          y = props.y,
          style = props.style;
      var labelStyle = style || {};
      var angle = labelStyle.angle || props.angle || this.getDefaultAngle(props);
      return angle ? "rotate(".concat(angle, " ").concat(x, " ").concat(y, ")") : undefined;
    } // eslint-disable-next-line complexity

  }, {
    key: "getDefaultAngle",
    value: function getDefaultAngle(props) {
      var polar = props.polar,
          labelPlacement = props.labelPlacement,
          orientation = props.orientation,
          datum = props.datum;

      if (!polar || !labelPlacement || labelPlacement === "vertical") {
        return 0;
      }

      var degrees = victory_core__WEBPACK_IMPORTED_MODULE_6__.getDegrees(props, datum);
      var sign = degrees > 90 && degrees < 180 || degrees > 270 ? 1 : -1;
      var labelRotation = labelPlacement === "perpendicular" ? 0 : 90;
      var angle;

      if (degrees === 0 || degrees === 180) {
        angle = orientation === "top" && degrees === 180 ? 270 : 90;
      } else if (degrees > 0 && degrees < 180) {
        angle = 90 - degrees;
      } else if (degrees > 180 && degrees < 360) {
        angle = 270 - degrees;
      }

      return angle + sign * labelRotation;
    }
  }, {
    key: "constrainTooltip",
    value: function constrainTooltip(center, props, dimensions) {
      var x = center.x,
          y = center.y;
      var width = dimensions.width,
          height = dimensions.height;
      var extent = {
        x: [0, props.width],
        y: [0, props.height]
      };
      var flyoutExtent = {
        x: [x - width / 2, x + width / 2],
        y: [y - height / 2, y + height / 2]
      };
      var adjustments = {
        x: [flyoutExtent.x[0] < extent.x[0] ? extent.x[0] - flyoutExtent.x[0] : 0, flyoutExtent.x[1] > extent.x[1] ? flyoutExtent.x[1] - extent.x[1] : 0],
        y: [flyoutExtent.y[0] < extent.y[0] ? extent.y[0] - flyoutExtent.y[0] : 0, flyoutExtent.y[1] > extent.y[1] ? flyoutExtent.y[1] - extent.y[1] : 0]
      };
      return {
        x: Math.round(x + adjustments.x[0] - adjustments.x[1]),
        y: Math.round(y + adjustments.y[0] - adjustments.y[1])
      };
    } // eslint-disable-next-line complexity

  }, {
    key: "getFlyoutCenter",
    value: function getFlyoutCenter(props, dimensions) {
      var x = props.x,
          y = props.y,
          dx = props.dx,
          dy = props.dy,
          pointerLength = props.pointerLength,
          orientation = props.orientation,
          constrainToVisibleArea = props.constrainToVisibleArea,
          centerOffset = props.centerOffset;
      var height = dimensions.height,
          width = dimensions.width;
      var xSign = orientation === "left" ? -1 : 1;
      var ySign = orientation === "bottom" ? -1 : 1;
      var flyoutCenter = {
        x: orientation === "left" || orientation === "right" ? x + xSign * (pointerLength + width / 2 + xSign * dx) : x + dx,
        y: orientation === "top" || orientation === "bottom" ? y - ySign * (pointerLength + height / 2 - ySign * dy) : y + dy
      };
      var center = {
        x: lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(props.center) && props.center.x !== undefined ? props.center.x : flyoutCenter.x,
        y: lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(props.center) && props.center.y !== undefined ? props.center.y : flyoutCenter.y
      };
      var centerWithOffset = {
        x: center.x + centerOffset.x,
        y: center.y + centerOffset.y
      };
      return constrainToVisibleArea ? this.constrainTooltip(centerWithOffset, props, dimensions) : centerWithOffset;
    }
  }, {
    key: "getLabelPadding",
    value: function getLabelPadding(style) {
      if (!style) {
        return 0;
      }

      var paddings = Array.isArray(style) ? style.map(function (s) {
        return s.padding;
      }) : [style.padding];
      return Math.max.apply(Math, _toConsumableArray(paddings).concat([0]));
    }
  }, {
    key: "getDimensions",
    value: function getDimensions(props, labelSize) {
      var orientation = props.orientation,
          pointerLength = props.pointerLength,
          pointerWidth = props.pointerWidth,
          flyoutHeight = props.flyoutHeight,
          flyoutWidth = props.flyoutWidth,
          flyoutPadding = props.flyoutPadding;
      var cornerRadius = victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(props.cornerRadius, props);

      var getHeight = function () {
        var calculatedHeight = labelSize.height + flyoutPadding.top + flyoutPadding.bottom;
        var minHeight = orientation === "top" || orientation === "bottom" ? 2 * cornerRadius : 2 * cornerRadius + pointerWidth;
        return Math.max(minHeight, calculatedHeight);
      };

      var getWidth = function () {
        var calculatedWidth = labelSize.width + flyoutPadding.left + flyoutPadding.right;
        var minWidth = orientation === "left" || orientation === "right" ? 2 * cornerRadius + pointerLength : 2 * cornerRadius;
        return Math.max(minWidth, calculatedWidth);
      };

      return {
        flyoutHeight: flyoutHeight ? victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(flyoutHeight, props) : getHeight(props, labelSize, orientation),
        flyoutWidth: flyoutWidth ? victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(flyoutWidth, props) : getWidth(props, labelSize, orientation)
      };
    }
  }, {
    key: "getLabelProps",
    value: function getLabelProps(props, calculatedValues) {
      var flyoutCenter = calculatedValues.flyoutCenter,
          style = calculatedValues.style,
          labelSize = calculatedValues.labelSize,
          _calculatedValues$dy = calculatedValues.dy,
          dy = _calculatedValues$dy === void 0 ? 0 : _calculatedValues$dy,
          _calculatedValues$dx = calculatedValues.dx,
          dx = _calculatedValues$dx === void 0 ? 0 : _calculatedValues$dx;
      var text = props.text,
          datum = props.datum,
          activePoints = props.activePoints,
          labelComponent = props.labelComponent,
          index = props.index,
          flyoutPadding = props.flyoutPadding;
      var textAnchor = (Array.isArray(style) && style.length ? style[0].textAnchor : style.textAnchor) || "middle";

      var getLabelX = function () {
        if (!textAnchor || textAnchor === "middle") {
          return flyoutCenter.x;
        }

        var sign = textAnchor === "end" ? -1 : 1;
        return flyoutCenter.x - sign * (labelSize.width / 2);
      };

      return lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, labelComponent.props, {
        key: "".concat(this.id, "-label-").concat(index),
        text: text,
        datum: datum,
        activePoints: activePoints,
        textAnchor: textAnchor,
        dy: dy,
        dx: dx,
        style: style,
        x: getLabelX() + (flyoutPadding.left - flyoutPadding.right) / 2,
        y: flyoutCenter.y + (flyoutPadding.top - flyoutPadding.bottom) / 2,
        verticalAnchor: "middle",
        angle: style.angle
      });
    }
  }, {
    key: "getPointerOrientation",
    value: function getPointerOrientation(point, center, flyoutDimensions) {
      var edges = {
        bottom: center.y + flyoutDimensions.height / 2,
        top: center.y - flyoutDimensions.height / 2,
        left: center.x - flyoutDimensions.width / 2,
        right: center.x + flyoutDimensions.width / 2
      };
      var gaps = [{
        side: "top",
        val: edges.top > point.y ? edges.top - point.y : -1
      }, {
        side: "bottom",
        val: edges.bottom < point.y ? point.y - edges.bottom : -1
      }, {
        side: "right",
        val: edges.right < point.x ? point.x - edges.right : -1
      }, {
        side: "left",
        val: edges.left > point.x ? edges.left - point.x : -1
      }];
      return lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default()(gaps, "val", "desc")[0].side;
    }
  }, {
    key: "getFlyoutProps",
    value: function getFlyoutProps(props, calculatedValues) {
      var flyoutDimensions = calculatedValues.flyoutDimensions,
          flyoutStyle = calculatedValues.flyoutStyle,
          flyoutCenter = calculatedValues.flyoutCenter;
      var x = props.x,
          y = props.y,
          dx = props.dx,
          dy = props.dy,
          datum = props.datum,
          activePoints = props.activePoints,
          index = props.index,
          pointerLength = props.pointerLength,
          pointerWidth = props.pointerWidth,
          cornerRadius = props.cornerRadius,
          events = props.events,
          flyoutComponent = props.flyoutComponent;
      var pointerOrientation = victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(props.pointerOrientation, props);
      return lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, flyoutComponent.props, {
        x: x,
        y: y,
        dx: dx,
        dy: dy,
        datum: datum,
        activePoints: activePoints,
        index: index,
        pointerLength: pointerLength,
        pointerWidth: pointerWidth,
        cornerRadius: cornerRadius,
        events: events,
        orientation: pointerOrientation || this.getPointerOrientation({
          x: x,
          y: y
        }, flyoutCenter, flyoutDimensions),
        key: "".concat(this.id, "-tooltip-").concat(index),
        width: flyoutDimensions.width,
        height: flyoutDimensions.height,
        style: flyoutStyle,
        center: flyoutCenter
      });
    } // Overridden in victory-core-native

  }, {
    key: "renderTooltip",
    value: function renderTooltip(props) {
      var active = victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(props.active, props);
      var renderInPortal = props.renderInPortal;

      if (!active) {
        return renderInPortal ? react__WEBPACK_IMPORTED_MODULE_5__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_10__["default"], null, null) : null;
      }

      var evaluatedProps = this.getEvaluatedProps(props);
      var flyoutComponent = evaluatedProps.flyoutComponent,
          labelComponent = evaluatedProps.labelComponent,
          groupComponent = evaluatedProps.groupComponent;
      var calculatedValues = this.getCalculatedValues(evaluatedProps);
      var children = [react__WEBPACK_IMPORTED_MODULE_5__.cloneElement(flyoutComponent, this.getFlyoutProps(evaluatedProps, calculatedValues)), react__WEBPACK_IMPORTED_MODULE_5__.cloneElement(labelComponent, this.getLabelProps(evaluatedProps, calculatedValues))];
      var tooltip = react__WEBPACK_IMPORTED_MODULE_5__.cloneElement(groupComponent, {
        role: "presentation",
        transform: calculatedValues.transform
      }, children);
      return renderInPortal ? react__WEBPACK_IMPORTED_MODULE_5__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_10__["default"], null, tooltip) : tooltip;
    }
  }, {
    key: "render",
    value: function render() {
      var props = victory_core__WEBPACK_IMPORTED_MODULE_8__.modifyProps(this.props, fallbackProps, "tooltip");
      return this.renderTooltip(props);
    }
  }]);

  return VictoryTooltip;
}(react__WEBPACK_IMPORTED_MODULE_5__.Component);

Object.defineProperty(VictoryTooltip, "displayName", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: "VictoryTooltip"
});
Object.defineProperty(VictoryTooltip, "role", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: "tooltip"
});
Object.defineProperty(VictoryTooltip, "propTypes", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: {
    activateData: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
    active: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
    activePoints: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array),
    angle: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number),
    center: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
      x: victory_core__WEBPACK_IMPORTED_MODULE_12__.nonNegative,
      y: victory_core__WEBPACK_IMPORTED_MODULE_12__.nonNegative
    }),
    centerOffset: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
      x: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
      y: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)])
    }),
    constrainToVisibleArea: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
    cornerRadius: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_12__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
    data: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array),
    datum: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object),
    dx: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
    dy: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
    events: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object),
    flyoutComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
    flyoutHeight: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_12__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
    flyoutPadding: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
      top: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number),
      bottom: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number),
      left: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number),
      right: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number)
    })]),
    flyoutStyle: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object),
    flyoutWidth: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_12__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
    groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
    height: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number),
    horizontal: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
    id: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)]),
    index: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)]),
    labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
    orientation: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["top", "bottom", "left", "right"]), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
    pointerLength: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_12__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
    pointerOrientation: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["top", "bottom", "left", "right"]), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
    pointerWidth: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_12__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
    polar: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
    renderInPortal: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
    scale: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
      x: victory_core__WEBPACK_IMPORTED_MODULE_12__.scale,
      y: victory_core__WEBPACK_IMPORTED_MODULE_12__.scale
    }),
    style: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
    text: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
    theme: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object),
    width: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number),
    x: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number),
    y: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number)
  }
});
Object.defineProperty(VictoryTooltip, "defaultProps", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: {
    active: false,
    renderInPortal: true,
    labelComponent: react__WEBPACK_IMPORTED_MODULE_5__.createElement(victory_core__WEBPACK_IMPORTED_MODULE_13__["default"], null),
    flyoutComponent: react__WEBPACK_IMPORTED_MODULE_5__.createElement(_flyout__WEBPACK_IMPORTED_MODULE_14__["default"], null),
    groupComponent: react__WEBPACK_IMPORTED_MODULE_5__.createElement("g", null)
  }
});
Object.defineProperty(VictoryTooltip, "defaultEvents", {
  configurable: true,
  enumerable: true,
  writable: true,
  value: function (props) {
    var activate = props.activateData ? [{
      target: "labels",
      mutation: function () {
        return {
          active: true
        };
      }
    }, {
      target: "data",
      mutation: function () {
        return {
          active: true
        };
      }
    }] : [{
      target: "labels",
      mutation: function () {
        return {
          active: true
        };
      }
    }];
    var deactivate = props.activateData ? [{
      target: "labels",
      mutation: function () {
        return {
          active: undefined
        };
      }
    }, {
      target: "data",
      mutation: function () {
        return {
          active: undefined
        };
      }
    }] : [{
      target: "labels",
      mutation: function () {
        return {
          active: undefined
        };
      }
    }];
    return [{
      target: "data",
      eventHandlers: {
        onMouseOver: function () {
          return activate;
        },
        onFocus: function () {
          return activate;
        },
        onTouchStart: function () {
          return activate;
        },
        onMouseOut: function () {
          return deactivate;
        },
        onBlur: function () {
          return deactivate;
        },
        onTouchEnd: function () {
          return deactivate;
        }
      }
    }];
  }
});


/***/ }),

/***/ "./node_modules/victory-voronoi-container/es/victory-voronoi-container.js":
/*!********************************************************************************!*\
  !*** ./node_modules/victory-voronoi-container/es/victory-voronoi-container.js ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "voronoiContainerMixin": () => (/* binding */ voronoiContainerMixin),
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/pick */ "./node_modules/lodash/pick.js");
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "./node_modules/lodash/defaults.js");
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var victory_tooltip__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-tooltip */ "./node_modules/victory-tooltip/es/victory-tooltip.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-container/victory-container.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/prop-types.js");
/* harmony import */ var _voronoi_helpers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./voronoi-helpers */ "./node_modules/victory-voronoi-container/es/voronoi-helpers.js");




function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }






var voronoiContainerMixin = function (base) {
  var _class, _temp;

  return _temp = _class =
  /*#__PURE__*/
  function (_base) {
    _inherits(VictoryVoronoiContainer, _base);

    function VictoryVoronoiContainer() {
      _classCallCheck(this, VictoryVoronoiContainer);

      return _possibleConstructorReturn(this, (VictoryVoronoiContainer.__proto__ || Object.getPrototypeOf(VictoryVoronoiContainer)).apply(this, arguments));
    }

    _createClass(VictoryVoronoiContainer, [{
      key: "getDimension",
      value: function getDimension(props) {
        var horizontal = props.horizontal,
            voronoiDimension = props.voronoiDimension;

        if (!horizontal || !voronoiDimension) {
          return voronoiDimension;
        }

        return voronoiDimension === "x" ? "y" : "x";
      }
    }, {
      key: "getPoint",
      value: function getPoint(point) {
        var whitelist = ["_x", "_x1", "_x0", "_y", "_y1", "_y0"];
        return lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(point, whitelist);
      }
    }, {
      key: "getLabelPosition",
      value: function getLabelPosition(props, labelProps, points) {
        var mousePosition = props.mousePosition,
            mouseFollowTooltips = props.mouseFollowTooltips;
        var voronoiDimension = this.getDimension(props);
        var point = this.getPoint(points[0]);
        var basePosition = victory_core__WEBPACK_IMPORTED_MODULE_4__.scalePoint(props, point);
        var center = mouseFollowTooltips ? mousePosition : undefined;

        if (!voronoiDimension || points.length < 2) {
          return _objectSpread({}, basePosition, {
            center: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, labelProps.center, center)
          });
        }

        var x = voronoiDimension === "y" ? mousePosition.x : basePosition.x;
        var y = voronoiDimension === "x" ? mousePosition.y : basePosition.y;
        center = mouseFollowTooltips ? mousePosition : {
          x: x,
          y: y
        };
        return {
          x: x,
          y: y,
          center: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, labelProps.center, center)
        };
      }
    }, {
      key: "getStyle",
      value: function getStyle(props, points, type) {
        var labels = props.labels,
            labelComponent = props.labelComponent,
            theme = props.theme;
        var componentProps = labelComponent.props || {};
        var themeStyles = theme && theme.voronoi && theme.voronoi.style ? theme.voronoi.style : {};
        var componentStyleArray = type === "flyout" ? componentProps.flyoutStyle : componentProps.style;
        return points.reduce(function (memo, datum, index) {
          var labelProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, componentProps, {
            datum: datum,
            active: true
          });

          var text = lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(labels) ? labels(labelProps) : undefined;
          var textArray = text !== undefined ? "".concat(text).split("\n") : [];
          var baseStyle = datum.style && datum.style[type] || {};
          var componentStyle = Array.isArray(componentStyleArray) ? componentStyleArray[index] : componentStyleArray;
          var style = victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, componentStyle, baseStyle, themeStyles[type]), labelProps);
          var styleArray = textArray.length ? textArray.map(function () {
            return style;
          }) : [style];
          memo = memo.concat(styleArray);
          return memo;
        }, []);
      }
    }, {
      key: "getDefaultLabelProps",
      value: function getDefaultLabelProps(props, points) {
        var voronoiDimension = props.voronoiDimension,
            horizontal = props.horizontal,
            mouseFollowTooltips = props.mouseFollowTooltips;
        var point = this.getPoint(points[0]);
        var multiPoint = voronoiDimension && points.length > 1;
        var y = point._y1 !== undefined ? point._y1 : point._y;
        var defaultHorizontalOrientation = y < 0 ? "left" : "right";
        var defaultOrientation = y < 0 ? "bottom" : "top";
        var labelOrientation = horizontal ? defaultHorizontalOrientation : defaultOrientation;
        var orientation = mouseFollowTooltips ? undefined : labelOrientation;
        return {
          orientation: orientation,
          pointerLength: multiPoint ? 0 : undefined,
          constrainToVisibleArea: multiPoint || mouseFollowTooltips ? true : undefined
        };
      }
    }, {
      key: "getLabelProps",
      value: function getLabelProps(props, points) {
        var labels = props.labels,
            scale = props.scale,
            labelComponent = props.labelComponent,
            theme = props.theme,
            width = props.width,
            height = props.height;
        var componentProps = labelComponent.props || {};
        var text = points.reduce(function (memo, datum) {
          var labelProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, componentProps, {
            datum: datum,
            active: true
          });

          var t = lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(labels) ? labels(labelProps) : null;

          if (t === null || t === undefined) {
            return memo;
          }

          memo = memo.concat("".concat(t).split("\n"));
          return memo;
        }, []); // remove properties from first point to make datum
        // eslint-disable-next-line no-unused-vars

        var _points$ = points[0],
            childName = _points$.childName,
            eventKey = _points$.eventKey,
            style = _points$.style,
            continuous = _points$.continuous,
            datum = _objectWithoutProperties(_points$, ["childName", "eventKey", "style", "continuous"]);

        var name = props.name === childName ? childName : "".concat(props.name, "-").concat(childName);

        var labelProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
          key: "".concat(name, "-").concat(eventKey, "-voronoi-tooltip"),
          id: "".concat(name, "-").concat(eventKey, "-voronoi-tooltip"),
          active: true,
          renderInPortal: false,
          activePoints: points,
          datum: datum,
          scale: scale,
          theme: theme
        }, componentProps, {
          text: text,
          width: width,
          height: height,
          style: this.getStyle(props, points, "labels"),
          flyoutStyle: this.getStyle(props, points, "flyout")[0]
        }, this.getDefaultLabelProps(props, points));

        var labelPosition = this.getLabelPosition(props, labelProps, points);
        return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, labelPosition, labelProps);
      }
    }, {
      key: "getTooltip",
      value: function getTooltip(props) {
        var labels = props.labels,
            activePoints = props.activePoints,
            labelComponent = props.labelComponent;

        if (!labels) {
          return null;
        }

        if (Array.isArray(activePoints) && activePoints.length) {
          var labelProps = this.getLabelProps(props, activePoints);
          var text = labelProps.text;
          var showLabel = Array.isArray(text) ? text.filter(Boolean).length : text;
          return showLabel ? react__WEBPACK_IMPORTED_MODULE_3__.cloneElement(labelComponent, labelProps) : null;
        } else {
          return null;
        }
      } // Overrides method in VictoryContainer

    }, {
      key: "getChildren",
      value: function getChildren(props) {
        return _toConsumableArray(react__WEBPACK_IMPORTED_MODULE_3__.Children.toArray(props.children)).concat([this.getTooltip(props)]);
      }
    }]);

    return VictoryVoronoiContainer;
  }(base), Object.defineProperty(_class, "displayName", {
    configurable: true,
    enumerable: true,
    writable: true,
    value: "VictoryVoronoiContainer"
  }), Object.defineProperty(_class, "propTypes", {
    configurable: true,
    enumerable: true,
    writable: true,
    value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__["default"].propTypes, {
      activateData: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
      activateLabels: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
      disable: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
      labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
      labels: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
      mouseFollowTooltips: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
      onActivated: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
      onDeactivated: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
      radius: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
      voronoiBlacklist: prop_types__WEBPACK_IMPORTED_MODULE_6___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), victory_core__WEBPACK_IMPORTED_MODULE_7__.regExp])),
      voronoiDimension: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(["x", "y"]),
      voronoiPadding: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
        top: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
        bottom: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
        left: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
        right: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)
      })])
    })
  }), Object.defineProperty(_class, "defaultProps", {
    configurable: true,
    enumerable: true,
    writable: true,
    value: _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__["default"].defaultProps, {
      activateData: true,
      activateLabels: true,
      labelComponent: react__WEBPACK_IMPORTED_MODULE_3__.createElement(victory_tooltip__WEBPACK_IMPORTED_MODULE_8__["default"], null),
      voronoiPadding: 5
    })
  }), Object.defineProperty(_class, "defaultEvents", {
    configurable: true,
    enumerable: true,
    writable: true,
    value: function (props) {
      return [{
        target: "parent",
        eventHandlers: {
          onMouseLeave: function (evt, targetProps) {
            return props.disable ? {} : _voronoi_helpers__WEBPACK_IMPORTED_MODULE_9__["default"].onMouseLeave(evt, targetProps);
          },
          onTouchCancel: function (evt, targetProps) {
            return props.disable ? {} : _voronoi_helpers__WEBPACK_IMPORTED_MODULE_9__["default"].onMouseLeave(evt, targetProps);
          },
          onMouseMove: function (evt, targetProps) {
            return props.disable ? {} : _voronoi_helpers__WEBPACK_IMPORTED_MODULE_9__["default"].onMouseMove(evt, targetProps);
          },
          onTouchMove: function (evt, targetProps) {
            return props.disable ? {} : _voronoi_helpers__WEBPACK_IMPORTED_MODULE_9__["default"].onMouseMove(evt, targetProps);
          }
        }
      }, {
        target: "data",
        eventHandlers: props.disable ? {} : {
          onMouseOver: function () {
            return null;
          },
          onMouseOut: function () {
            return null;
          },
          onMouseMove: function () {
            return null;
          }
        }
      }];
    }
  }), _temp;
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (voronoiContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_5__["default"]));

/***/ }),

/***/ "./node_modules/victory-voronoi-container/es/voronoi-helpers.js":
/*!**********************************************************************!*\
  !*** ./node_modules/victory-voronoi-container/es/voronoi-helpers.js ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isRegExp */ "./node_modules/lodash/isRegExp.js");
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_isString__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isString */ "./node_modules/lodash/isString.js");
/* harmony import */ var lodash_isString__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isString__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/includes */ "./node_modules/lodash/includes.js");
/* harmony import */ var lodash_includes__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_includes__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isEmpty */ "./node_modules/lodash/isEmpty.js");
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isFunction */ "./node_modules/lodash/isFunction.js");
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/throttle */ "./node_modules/lodash/throttle.js");
/* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_throttle__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/assign */ "./node_modules/lodash/assign.js");
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/helpers.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/collection.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/data.js");
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! victory-core */ "./node_modules/victory-core/es/victory-util/selection.js");
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-fast-compare */ "./node_modules/react-fast-compare/index.js");
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var delaunay_find_lib_index_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! delaunay-find/lib/index.js */ "./node_modules/delaunay-find/lib/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");








function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }





var VoronoiHelpers = {
  withinBounds: function (props, point) {
    var width = props.width,
        height = props.height,
        polar = props.polar,
        origin = props.origin,
        scale = props.scale;
    var padding = victory_core__WEBPACK_IMPORTED_MODULE_10__.getPadding(props, "voronoiPadding");
    var x = point.x,
        y = point.y;

    if (polar) {
      var distanceSquared = Math.pow(x - origin.x, 2) + Math.pow(y - origin.y, 2);
      var radius = Math.max.apply(Math, _toConsumableArray(scale.y.range()));
      return distanceSquared < Math.pow(radius, 2);
    } else {
      return x >= padding.left && x <= width - padding.right && y >= padding.top && y <= height - padding.bottom;
    }
  },
  getDatasets: function (props) {
    var minDomain = {
      x: victory_core__WEBPACK_IMPORTED_MODULE_11__.getMinValue(props.domain.x),
      y: victory_core__WEBPACK_IMPORTED_MODULE_11__.getMinValue(props.domain.y)
    };
    var children = react__WEBPACK_IMPORTED_MODULE_9__.Children.toArray(props.children);

    var addMeta = function (data, name, child) {
      var continuous = child && child.type && child.type.continuous;
      var style = child ? child.props && child.props.style : props.style;
      return data.map(function (datum, index) {
        var _Helpers$getPoint = victory_core__WEBPACK_IMPORTED_MODULE_10__.getPoint(datum),
            x = _Helpers$getPoint.x,
            y = _Helpers$getPoint.y,
            y0 = _Helpers$getPoint.y0,
            x0 = _Helpers$getPoint.x0;

        var voronoiX = (+x + +x0) / 2;
        var voronoiY = (+y + +y0) / 2;
        return lodash_assign__WEBPACK_IMPORTED_MODULE_6___default()({
          _voronoiX: props.voronoiDimension === "y" ? minDomain.x : voronoiX,
          _voronoiY: props.voronoiDimension === "x" ? minDomain.y : voronoiY,
          eventKey: index,
          childName: name,
          continuous: continuous,
          style: style
        }, datum);
      });
    };

    if (props.data) {
      return addMeta(props.data);
    }

    var getData = function (childProps) {
      var data = victory_core__WEBPACK_IMPORTED_MODULE_12__.getData(childProps);
      return Array.isArray(data) && data.length > 0 ? data : undefined;
    };

    var iteratee = function (child, childName) {
      var childProps = child.props || {};
      var name = childProps.name || childName;
      var blacklist = props.voronoiBlacklist || [];
      var blacklistStr = blacklist.filter((lodash_isString__WEBPACK_IMPORTED_MODULE_1___default()));
      var blacklistRegExp = blacklist.filter((lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default()));
      var isRegExpMatch = blacklistRegExp.some(function (regExp) {
        return regExp.test(name);
      });

      if (!victory_core__WEBPACK_IMPORTED_MODULE_12__.isDataComponent(child) || lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(blacklistStr, name) || isRegExpMatch) {
        return null;
      }

      var getChildData = child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(child.type.getData) ? child.type.getData : getData;
      var childData = getChildData(child.props);
      return childData ? addMeta(childData, name, child) : null;
    };

    return victory_core__WEBPACK_IMPORTED_MODULE_10__.reduceChildren(children, iteratee, props);
  },
  findPoints: function (datasets, point) {
    return datasets.filter(function (d) {
      return point._voronoiX === d._voronoiX && point._voronoiY === d._voronoiY;
    });
  },
  withinRadius: function (point, mousePosition, radius) {
    if (!point) {
      return false;
    }

    if (!radius) {
      return true;
    }

    var x = mousePosition.x,
        y = mousePosition.y;
    var distanceSquared = Math.pow(x - point[0], 2) + Math.pow(y - point[1], 2);
    return distanceSquared < Math.pow(radius, 2);
  },
  getVoronoiPoints: function (props, mousePosition) {
    var datasets = this.getDatasets(props);
    var scaledData = datasets.map(function (d) {
      var _Helpers$scalePoint = victory_core__WEBPACK_IMPORTED_MODULE_10__.scalePoint(props, d),
          x = _Helpers$scalePoint.x,
          y = _Helpers$scalePoint.y;

      return [x, y];
    });
    var delaunay = delaunay_find_lib_index_js__WEBPACK_IMPORTED_MODULE_8__["default"].from(scaledData);
    var index = delaunay.find(mousePosition.x, mousePosition.y);
    var withinRadius = this.withinRadius(scaledData[index], mousePosition, props.radius);
    var points = withinRadius ? this.findPoints(datasets, datasets[index]) : [];
    return {
      points: points,
      index: index
    };
  },
  getActiveMutations: function (props, point) {
    var childName = point.childName,
        continuous = point.continuous;
    var activateData = props.activateData,
        activateLabels = props.activateLabels,
        labels = props.labels;

    if (!activateData && !activateLabels) {
      return [];
    }

    var defaultTarget = activateData ? ["data"] : [];
    var targets = labels && !activateLabels ? defaultTarget : defaultTarget.concat("labels");

    if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(targets)) {
      return [];
    }

    return targets.map(function (target) {
      var eventKey = continuous === true && target === "data" ? "all" : point.eventKey;
      return {
        childName: childName,
        eventKey: eventKey,
        target: target,
        mutation: function () {
          return {
            active: true
          };
        }
      };
    });
  },
  getInactiveMutations: function (props, point) {
    var childName = point.childName,
        continuous = point.continuous;
    var activateData = props.activateData,
        activateLabels = props.activateLabels,
        labels = props.labels;

    if (!activateData && !activateLabels) {
      return [];
    }

    var defaultTarget = activateData ? ["data"] : [];
    var targets = labels && !activateLabels ? defaultTarget : defaultTarget.concat("labels");

    if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(targets)) {
      return [];
    }

    return targets.map(function (target) {
      var eventKey = continuous && target === "data" ? "all" : point.eventKey;
      return {
        childName: childName,
        eventKey: eventKey,
        target: target,
        mutation: function () {
          return null;
        }
      };
    });
  },
  // eslint-disable-next-line max-params
  getParentMutation: function (activePoints, mousePosition, parentSVG, vIndex) {
    return [{
      target: "parent",
      eventKey: "parent",
      mutation: function () {
        return {
          activePoints: activePoints,
          mousePosition: mousePosition,
          parentSVG: parentSVG,
          vIndex: vIndex
        };
      }
    }];
  },
  onActivated: function (props, points) {
    if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(props.onActivated)) {
      props.onActivated(points, props);
    }
  },
  onDeactivated: function (props, points) {
    if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(props.onDeactivated)) {
      props.onDeactivated(points, props);
    }
  },
  onMouseLeave: function (evt, targetProps) {
    var _this = this,
        _getParentMutation;

    var activePoints = targetProps.activePoints || [];
    this.onDeactivated(targetProps, activePoints);
    var inactiveMutations = activePoints.length ? activePoints.map(function (point) {
      return _this.getInactiveMutations(targetProps, point);
    }) : [];
    return (_getParentMutation = this.getParentMutation([])).concat.apply(_getParentMutation, _toConsumableArray(inactiveMutations));
  },
  onMouseMove: function (evt, targetProps) {
    var _this2 = this;

    // eslint-disable-line max-statements
    var activePoints = targetProps.activePoints || [];
    var parentSVG = targetProps.parentSVG || victory_core__WEBPACK_IMPORTED_MODULE_13__.getParentSVG(evt);
    var mousePosition = victory_core__WEBPACK_IMPORTED_MODULE_13__.getSVGEventCoordinates(evt, parentSVG);

    if (!this.withinBounds(targetProps, mousePosition)) {
      var _getParentMutation2;

      this.onDeactivated(targetProps, activePoints);
      var inactiveMutations = activePoints.length ? activePoints.map(function (point) {
        return _this2.getInactiveMutations(targetProps, point);
      }) : [];
      return (_getParentMutation2 = this.getParentMutation([], mousePosition, parentSVG)).concat.apply(_getParentMutation2, _toConsumableArray(inactiveMutations));
    }

    var _getVoronoiPoints = this.getVoronoiPoints(targetProps, mousePosition),
        _getVoronoiPoints$poi = _getVoronoiPoints.points,
        points = _getVoronoiPoints$poi === void 0 ? [] : _getVoronoiPoints$poi,
        index = _getVoronoiPoints.index;

    var parentMutations = this.getParentMutation(points, mousePosition, parentSVG, index);

    if (activePoints.length && react_fast_compare__WEBPACK_IMPORTED_MODULE_7___default()(points, activePoints)) {
      return parentMutations;
    } else {
      this.onActivated(targetProps, points);
      this.onDeactivated(targetProps, activePoints);
      var activeMutations = points.length ? points.map(function (point) {
        return _this2.getActiveMutations(targetProps, point);
      }) : [];

      var _inactiveMutations = activePoints.length ? activePoints.map(function (point) {
        return _this2.getInactiveMutations(targetProps, point);
      }) : [];

      return parentMutations.concat.apply(parentMutations, _toConsumableArray(_inactiveMutations).concat(_toConsumableArray(activeMutations)));
    }
  }
};
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
  onMouseLeave: VoronoiHelpers.onMouseLeave.bind(VoronoiHelpers),
  onMouseMove: lodash_throttle__WEBPACK_IMPORTED_MODULE_5___default()(VoronoiHelpers.onMouseMove.bind(VoronoiHelpers), 32, // eslint-disable-line no-magic-numbers
  {
    leading: true,
    trailing: false
  })
});

/***/ }),

/***/ "cockpit":
/*!**************************!*\
  !*** external "cockpit" ***!
  \**************************/
/***/ ((module) => {

"use strict";
module.exports = cockpit;

/***/ })

/******/ 	});
/************************************************************************/
/******/ 	// The module cache
/******/ 	var __webpack_module_cache__ = {};
/******/ 	
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/ 		// Check if module is in cache
/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
/******/ 		if (cachedModule !== undefined) {
/******/ 			return cachedModule.exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = __webpack_module_cache__[moduleId] = {
/******/ 			id: moduleId,
/******/ 			loaded: false,
/******/ 			exports: {}
/******/ 		};
/******/ 	
/******/ 		// Execute the module function
/******/ 		__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ 	
/******/ 		// Flag the module as loaded
/******/ 		module.loaded = true;
/******/ 	
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/ 	
/************************************************************************/
/******/ 	/* webpack/runtime/compat get default export */
/******/ 	(() => {
/******/ 		// getDefaultExport function for compatibility with non-harmony modules
/******/ 		__webpack_require__.n = (module) => {
/******/ 			var getter = module && module.__esModule ?
/******/ 				() => (module['default']) :
/******/ 				() => (module);
/******/ 			__webpack_require__.d(getter, { a: getter });
/******/ 			return getter;
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/define property getters */
/******/ 	(() => {
/******/ 		// define getter functions for harmony exports
/******/ 		__webpack_require__.d = (exports, definition) => {
/******/ 			for(var key in definition) {
/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ 				}
/******/ 			}
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/global */
/******/ 	(() => {
/******/ 		__webpack_require__.g = (function() {
/******/ 			if (typeof globalThis === 'object') return globalThis;
/******/ 			try {
/******/ 				return this || new Function('return this')();
/******/ 			} catch (e) {
/******/ 				if (typeof window === 'object') return window;
/******/ 			}
/******/ 		})();
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
/******/ 	(() => {
/******/ 		__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/make namespace object */
/******/ 	(() => {
/******/ 		// define __esModule on exports
/******/ 		__webpack_require__.r = (exports) => {
/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 			}
/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/node module decorator */
/******/ 	(() => {
/******/ 		__webpack_require__.nmd = (module) => {
/******/ 			module.paths = [];
/******/ 			if (!module.children) module.children = [];
/******/ 			return module;
/******/ 		};
/******/ 	})();
/******/ 	
/************************************************************************/
var __webpack_exports__ = {};
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
(() => {
"use strict";
/*!***********************!*\
  !*** ./src/index.es6 ***!
  \***********************/
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _css_patternfly_4_cockpit_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./css/patternfly-4-cockpit.scss */ "./src/css/patternfly-4-cockpit.scss");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js");
/* harmony import */ var _css_ds_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./css/ds.css */ "./src/css/ds.css");
/* harmony import */ var _css_branding_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./css/branding.css */ "./src/css/branding.css");
/* harmony import */ var _ds_jsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ds.jsx */ "./src/ds.jsx");
 // import "core-js/stable";






document.addEventListener("DOMContentLoaded", function () {
  react_dom__WEBPACK_IMPORTED_MODULE_2__.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ds_jsx__WEBPACK_IMPORTED_MODULE_5__.DSInstance, {}), document.getElementById('dsinstance'));
});
})();

/******/ })()
;
//# sourceMappingURL=index.js.map